/* AUM.A Studio — identidade: vinho profundo, bordô, champagne, creme e berinjela */
:root {
  --wine: #6A163D;
  --bordo: #8A2B53;
  --champ: #E7D8B6;
  --cream: #F3E9D3;
  --plum: #4D1230;

  --bg: var(--cream);
  --paper: #FFFCF6;
  --paper-2: #FAF4E8;
  --ink: #2E1520;
  --muted: #7F6971;
  --line: #E4D4B8;
  --line-soft: #EFE4D0;
  --gold: #A98549;
  --gold-l: #F2E7CF;
  --rose: #B9708A;
  --rose-l: #F6E4EA;
  --wine-l: #F4E6EC;
  --ok: #3E7558;
  --ok-l: #E3EEE6;
  --warn: #9C6A22;
  --warn-l: #F7EBD3;
  --danger: #A2323F;
  --danger-l: #F7E1E2;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(77, 18, 48, .05), 0 10px 28px rgba(77, 18, 48, .07);
  --shadow-lg: 0 24px 60px rgba(77, 18, 48, .22);
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --bottom-h: 70px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--wine); font-weight: 600; letter-spacing: -.005em; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; }
h3 { font-size: 1.02rem; font-weight: 600; }
h4 { font-size: 1rem; }
h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 22px 0 10px; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
img { max-width: 100%; display: block; height: auto; }
:focus-visible { outline: 2px solid var(--bordo); outline-offset: 2px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mark { display: block; color: currentColor; }
.muted { color: var(--muted); }
.sm { font-size: .86rem; }
.xs { font-size: .76rem; line-height: 1.35; }
.mt { margin-top: 12px; }
.mt-xs { margin-top: 6px; }
.block { display: block; }
.center { text-align: center; justify-content: center; }
.grow { flex: 1; min-width: 0; }
.right { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.danger-t { color: var(--danger) !important; }
.warn-t { color: var(--warn) !important; }
.eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.eyebrow.light { color: var(--champ); opacity: .85; }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 40%, var(--bordo), var(--plum) 75%); display: grid; place-items: center; transition: opacity .6s ease; }
#splash img { width: min(200px, 52vw); animation: breathe 1.3s var(--ease) both; }
#splash.hide { opacity: 0; pointer-events: none; }
@keyframes breathe { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ---------- Faixa de demonstração ---------- */
.demo-ribbon { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; background: var(--plum); color: var(--champ); font-size: .72rem; letter-spacing: .08em; padding: 6px 16px; text-align: center; position: relative; z-index: 45; }
.demo-ribbon b { text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.demo-ribbon span { opacity: .8; }
.demo-ribbon .ic { width: 14px; height: 14px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 500; font-size: .92rem; letter-spacing: .01em; transition: background .25s, transform .12s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--wine); color: var(--paper); box-shadow: 0 8px 18px rgba(106, 22, 61, .22); }
.btn.primary:hover:not(:disabled) { background: var(--bordo); }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--wine); }
.btn.ghost:hover:not(:disabled) { border-color: var(--champ); background: var(--paper-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.light { background: var(--champ); color: var(--plum); }
.btn.light:hover { background: var(--cream); }
.btn.outline-light { border-color: rgba(231, 216, 182, .45); color: var(--champ); background: transparent; }
.btn.outline-light:hover { background: rgba(231, 216, 182, .1); }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 22px; font-size: 1rem; }
.btn.sm { padding: 8px 15px; font-size: .84rem; }
.btn.xs { padding: 6px 11px; font-size: .78rem; box-shadow: none; }
.btn .ic { width: 18px; height: 18px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--wine); transition: background .2s; flex-shrink: 0; }
.icon-btn:hover:not(:disabled) { background: var(--paper-2); }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--bordo); font-weight: 500; font-size: .86rem; }
.link .ic { width: 16px; height: 16px; }

/* ---------- Tags e status ---------- */
.tag { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: .74rem; font-weight: 500; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
button.tag { cursor: pointer; }
.tag-particular { background: var(--wine-l); color: var(--wine); }
.tag-totalpass { background: var(--gold-l); color: #7A5B26; }
.tag-wellhub { background: var(--rose-l); color: #8A3F5A; }
.tag.on { border-color: currentColor; }
.tag.soft { background: var(--paper-2); color: var(--muted); }
.pill { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bk-reservado, .ts-pendente, .pay-open, .plat-pendente { background: var(--warn-l); color: var(--warn); }
.bk-presente, .ts-concluido, .pay-ok, .plat-confirmado { background: var(--ok-l); color: var(--ok); }
.bk-faltou, .plat-recusado { background: var(--danger-l); color: var(--danger); }
.bk-cancelado, .ts-cancelado { background: #EEE7E9; color: #8A7A80; }
.ts-confirmado { background: var(--wine-l); color: var(--wine); }
.pill.full { background: var(--danger-l); color: var(--danger); }
.status { font-size: .8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ativo { color: var(--ok); }
.status.inativo { color: #A0939A; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mix { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.mix.big { margin: 0 0 12px; }

/* ---------- Avatares ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gold-l); color: var(--wine); font-weight: 600; font-size: .8rem; letter-spacing: .04em; flex-shrink: 0; }
.avatar.sm { width: 38px; height: 38px; background: var(--wine); color: var(--champ); }
.avatar.lg { width: 60px; height: 60px; font-size: 1.05rem; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.5rem; background: var(--wine); color: var(--champ); margin: 0 auto 12px; }

/* ---------- Cartões ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid rgba(228, 212, 184, .7); }
.link-card { display: flex; transition: transform .2s var(--ease), box-shadow .2s; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; gap: 10px; }
.section-head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.empty { text-align: center; padding: 32px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; list-style: none; }
.empty .ic { width: 30px; height: 30px; color: var(--gold); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 13px 16px; margin: 12px 0; font-size: .88rem; }
.notice .ic { color: var(--bordo); margin-top: 1px; }
.notice.warn { background: var(--warn-l); border-color: #EBD7AE; }
.notice.warn .ic { color: var(--warn); }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--ink); }
input, select { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 13px; padding: 12px 14px; font-size: .95rem; outline: none; transition: border .2s, box-shadow .2s; min-height: 46px; }
input:focus, select:focus { border-color: var(--bordo); box-shadow: 0 0 0 4px rgba(138, 43, 83, .1); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A163D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
select:disabled { opacity: .7; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form.three { grid-template-columns: repeat(3, 1fr); }
.form .full { grid-column: 1 / -1; }
.form-err { color: var(--danger); font-size: .86rem; min-height: 1px; }
.form .muted .ic { width: 15px; height: 15px; vertical-align: -3px; }

/* ---------- Login ---------- */
.login { min-height: calc(100vh - 30px); display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { background: radial-gradient(circle at 30% 20%, var(--bordo), var(--wine) 45%, var(--plum)); position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px; color: var(--champ); }
.rays { position: absolute; inset: 0; opacity: .1; background: repeating-conic-gradient(from -90deg at 50% 118%, var(--champ) 0deg .5deg, transparent .5deg 9deg); -webkit-mask: linear-gradient(to top, #000 10%, transparent 85%); mask: linear-gradient(to top, #000 10%, transparent 85%); }
.login-art-inner { position: relative; z-index: 1; max-width: 420px; text-align: center; }
.login-logo { width: min(240px, 70%); margin: 0 auto 28px; }
.login-quote { font-family: var(--serif); font-size: 2rem; line-height: 1.2; color: var(--cream); }
.login-quote em { color: var(--champ); }
.login-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; text-align: left; }
.login-points li { display: flex; gap: 12px; align-items: center; background: rgba(243, 233, 211, .08); border: 1px solid rgba(231, 216, 182, .18); border-radius: 16px; padding: 12px 16px; font-size: .92rem; color: var(--cream); }
.login-points .ic { color: var(--champ); }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 420px; background: var(--paper); border-radius: 28px; padding: 34px 30px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.login-card h2 { font-size: 2.2rem; }
.login-logo-sm { display: none; width: 120px; margin: 0 auto 2px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-top: 4px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-btn { display: grid; gap: 4px; justify-items: start; text-align: left; border: 1px solid var(--line); background: var(--paper-2); border-radius: 18px; padding: 14px; transition: all .25s var(--ease); }
.demo-btn:hover { border-color: var(--bordo); background: var(--wine-l); transform: translateY(-1px); }
.demo-btn .ic { color: var(--bordo); }
.demo-btn b { color: var(--wine); font-weight: 600; }
.demo-btn small { color: var(--muted); font-size: .74rem; line-height: 1.35; word-break: break-all; }
.credit { font-size: .74rem; color: var(--muted); text-align: center; }
.credit b { color: var(--wine); font-weight: 600; }

/* ---------- Shell administrativo ---------- */
.shell.admin { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 30px); }
.sidebar { background: linear-gradient(180deg, var(--wine), var(--plum)); color: var(--cream); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.side-logo { padding: 6px 0 4px; }
.side-logo img { width: 118px; margin: 0 auto; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: .94rem; color: rgba(243, 233, 211, .82); transition: background .2s, color .2s; }
.side-nav a:hover { background: rgba(243, 233, 211, .08); color: var(--cream); }
.side-nav a.active { background: var(--cream); color: var(--wine); font-weight: 500; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.side-btn { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid rgba(231, 216, 182, .25); color: var(--cream); border-radius: 13px; padding: 10px 12px; font-size: .8rem; text-align: left; }
.side-btn:hover { background: rgba(243, 233, 211, .07); }
.side-btn .ic { width: 17px; height: 17px; color: var(--champ); }
.sidebar .credit { color: rgba(243, 233, 211, .6); margin-top: 8px; }
.sidebar .credit b { color: var(--champ); }
.side-scrim { display: none; }
.main { min-width: 0; padding: 0 32px 48px; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 22px 0 18px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 80%, rgba(243, 233, 211, 0)); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title small { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.topbar h1 { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1.05; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user b { display: block; font-size: .86rem; font-weight: 500; }
.topbar-user small { color: var(--muted); font-size: .74rem; }
.only-mobile { display: none; }
.view { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bottomnav { display: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 52px; color: var(--wine); }
.brand strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1; color: var(--wine); letter-spacing: .04em; }
.brand small { display: block; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* ---------- Painel ---------- */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: radial-gradient(circle at 85% 120%, var(--bordo), var(--wine) 45%, var(--plum)); color: var(--cream); padding: 28px 30px; position: relative; overflow: hidden; border: 0; }
.hero h2 { color: var(--cream); margin-bottom: 6px; font-size: 2.1rem; }
.hero p { color: rgba(243, 233, 211, .85); }
.hero-mark { position: absolute; right: -30px; bottom: -14px; width: 300px; color: var(--champ); opacity: .12; pointer-events: none; }
.hero > div:not(.hero-mark) { position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.kpi-grid.six { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.kpi { display: flex; flex-direction: column; gap: 3px; position: relative; padding: 18px 18px 16px; }
.kpi-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--wine-l); color: var(--wine); display: grid; place-items: center; margin-bottom: 8px; }
.kpi-label { font-size: .82rem; color: var(--muted); }
.kpi-value { font-family: var(--serif); font-weight: 600; font-size: 2.1rem; color: var(--wine); line-height: 1.05; }
.kpi-sub { font-size: .78rem; color: var(--muted); }
.kpi .occ { margin: 6px 0 2px; }
.pend-card { margin-top: 14px; }
.pend-list { display: grid; gap: 8px; }
.pend { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.pend:hover { border-color: var(--champ); background: var(--wine-l); }
.pend > .ic:first-child { color: var(--bordo); width: 22px; height: 22px; }
.pend span { flex: 1; min-width: 0; }
.pend b { display: block; font-weight: 500; color: var(--wine); }
.pend small { color: var(--muted); font-size: .8rem; }
.pend-ok { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 14px; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.grid-2 > *, .kpi-grid > *, .channel-grid > *, .occ-list > li { min-width: 0; }
.occ-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.occ-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; width: 100%; text-align: left; background: transparent; border: 0; transition: background .2s; }
.occ-row:hover { background: var(--paper-2); }
.occ-title { font-weight: 500; }
.time { font-family: var(--serif); font-size: 1.35rem; color: var(--wine); width: 58px; font-weight: 600; flex-shrink: 0; }
.occ-count { font-weight: 600; font-size: .86rem; color: var(--wine); }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.channel { display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.channel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.ch-particular::before, .c-particular { background: var(--wine); }
.ch-totalpass::before, .c-totalpass { background: var(--gold); }
.ch-wellhub::before, .c-wellhub { background: var(--rose); }
.c-tarot { background: var(--plum); }
.channel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.channel-logo { font-family: var(--serif); font-size: 1.45rem; color: var(--wine); font-weight: 600; }
.channel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.channel-stats strong { display: block; font-size: 1.6rem; font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.1; }
.channel-stats small { font-size: .74rem; color: var(--muted); line-height: 1.3; display: block; }

/* barras */
.occ { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; margin: 6px 0; }
.occ div { height: 100%; background: var(--champ); border-radius: 99px; transition: width .5s var(--ease); }
.occ.high div { background: var(--rose); }
.occ.full div { background: var(--wine); }
.hbars { display: grid; gap: 12px; }
.hbar-top { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: 5px; gap: 10px; }
.hbar-top span { color: var(--muted); }
.hbar-top b { font-weight: 500; }
.hbar-track { height: 10px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.hbar-track div { height: 100%; border-radius: 99px; transition: width .5s var(--ease); }

/* ---------- Tabelas e listas ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar.card { padding: 14px; }
.search { flex: 1 1 260px; position: relative; display: block; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 40px; }
.select { flex: 0 1 200px; }
.count { margin: 0 4px 8px; }
.table-card { padding: 6px 8px; overflow-x: auto; }
.table-card.flat { padding: 0; box-shadow: none; border: 0; background: transparent; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 12px 10px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-st] { cursor: pointer; }
.table tbody tr:hover { background: var(--paper-2); }
.t-name { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.t-name b { display: block; color: var(--ink); font-weight: 500; }
.t-name small { color: var(--muted); font-size: .78rem; }
.t-act { text-align: right; white-space: nowrap; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mini-table th { font-size: .72rem; color: var(--muted); text-align: right; padding: 8px 6px; font-weight: 600; }
.mini-table td { padding: 9px 6px; border-top: 1px solid var(--line-soft); text-align: right; font-weight: 500; }
.mini-table td:first-child { text-align: left; color: var(--muted); font-weight: 400; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.people li:last-child { border-bottom: 0; }
.people b { display: block; font-size: .94rem; font-weight: 500; }
.people small { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-acts.left { justify-content: flex-start; margin-top: 4px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.hist li:last-child { border-bottom: 0; }
.cx-list { margin-top: 10px; font-size: .86rem; }
.cx-list summary { cursor: pointer; color: var(--muted); }

/* ---------- Agenda ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 8px 15px; border-radius: 999px; font-size: .84rem; color: var(--muted); transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--champ); }
.chip.on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.chip.sm { padding: 5px 6px 5px 12px; font-size: .8rem; }
.chip button { border: 0; background: rgba(243, 233, 211, .18); color: inherit; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.chip button .ic { width: 13px; height: 13px; }
.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px; gap: 2px; }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .25s var(--ease); }
.seg button .ic { width: 17px; height: 17px; }
.seg button.on { background: var(--paper); color: var(--wine); box-shadow: 0 2px 8px rgba(77, 18, 48, .1); font-weight: 500; }
.agenda-bar { justify-content: space-between; }
.week-nav { display: flex; align-items: center; gap: 12px; }
.week-nav b { display: block; color: var(--wine); font-size: 1rem; font-weight: 500; }
.week-nav small { color: var(--muted); font-size: .76rem; }
.week-occ { min-width: 170px; }
.week-occ small { color: var(--muted); font-size: .76rem; display: block; }
.week-occ b { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); font-weight: 600; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day-col { background: rgba(255, 252, 246, .5); border-radius: var(--radius-sm); padding: 8px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-soft); min-height: 160px; }
.day-col.is-today { border-color: var(--champ); background: rgba(255, 252, 246, .9); }
.day-head { display: flex; align-items: baseline; gap: 8px; padding: 4px 6px 4px; }
.day-head span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.day-head b { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); font-weight: 600; }
.is-today .day-head span::after { content: ' · hoje'; color: var(--bordo); }
.day-empty { color: var(--muted); font-size: .78rem; padding: 0 6px; opacity: .7; }
.slot { text-align: left; background: var(--paper); border: 1px solid var(--line-soft); border-left: 4px solid var(--champ); border-radius: 14px; padding: 10px 11px; display: grid; gap: 1px; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 1px 2px rgba(77, 18, 48, .04); width: 100%; }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.slot.full { border-left-color: var(--wine); }
.slot.past { opacity: .66; }
.slot.cx { border-left-color: #C8BCC1; background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 8px, var(--paper-2) 8px, var(--paper-2) 16px); }
.slot-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.slot-top b { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); font-weight: 600; }
.slot-state { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ok); text-align: right; }
.slot.full .slot-state, .slot.cx .slot-state { color: var(--danger); }
.slot.past .slot-state { color: var(--muted); }
.slot-mod { font-weight: 500; font-size: .88rem; line-height: 1.25; }
.avulsa { font-style: normal; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bordo); background: var(--wine-l); padding: 1px 6px; border-radius: 99px; }
.slot small { color: var(--muted); font-size: .76rem; display: flex; align-items: center; gap: 3px; line-height: 1.3; }
.slot small .ic { width: 13px; height: 13px; }
.slot-count { font-size: .72rem; color: var(--muted); }
.cx-reason { color: var(--danger) !important; font-size: .76rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.day-tabs { display: none; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.day-tab { flex: 1 0 52px; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 8px 6px; display: grid; justify-items: center; gap: 0; transition: all .2s; }
.day-tab span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.day-tab b { font-family: var(--serif); font-size: 1.4rem; color: var(--wine); font-weight: 600; line-height: 1.1; }
.day-tab small { font-size: .64rem; color: var(--muted); }
.day-tab.on { background: var(--wine); border-color: var(--wine); }
.day-tab.on span, .day-tab.on small { color: var(--champ); }
.day-tab.on b { color: var(--cream); }

/* calendário mensal */
.month-card { padding: 14px; }
.mgrid { width: 100%; }
.mg-head, .mg-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mg-head span { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; padding: 4px 0 8px; }
.mg-day { min-height: 92px; border: 1px solid var(--line-soft); background: var(--paper); border-radius: 14px; padding: 6px 7px; text-align: left; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, background .2s; overflow: hidden; }
.mg-day:hover { border-color: var(--champ); }
.mg-day b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1; }
.mg-day.out { opacity: .35; background: transparent; pointer-events: none; }
.mg-day.past { opacity: .5; }
.mg-day.today b { color: var(--paper); background: var(--bordo); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 1rem; }
.mg-day.sel { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); background: var(--wine-l); }
.mg-day.mine { background: var(--gold-l); }
.mg-pills { display: grid; gap: 3px; }
.mg-pills i { font-style: normal; font-size: .68rem; background: var(--paper-2); border-left: 3px solid var(--champ); border-radius: 6px; padding: 1px 5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-pills i.full { border-left-color: var(--wine); }
.mg-pills i.cx { text-decoration: line-through; color: var(--muted); border-left-color: #C8BCC1; }
.mg-dots { display: none; gap: 3px; flex-wrap: wrap; margin-top: auto; }
.mg-dots i, .mg-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.mg-dots i.full, .mg-legend i.full { background: var(--wine); }
.mg-dots i.cx { background: #C8BCC1; }
.mg-legend { display: flex; gap: 14px; justify-content: center; margin-top: 12px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }
.mg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mg-legend i.mine { background: var(--gold-l); border: 1px solid var(--gold); width: 12px; height: 12px; border-radius: 4px; }
.month-card.compact .mg-day { min-height: 54px; align-items: center; }
.month-card.compact .mg-dots { display: flex; justify-content: center; }
.month-card.compact .mg-day.has { cursor: pointer; }

/* ---------- Tarot (admin) ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; transition: all .2s; }
.tabs button.on { background: var(--plum); border-color: var(--plum); color: var(--cream); }
.tabs button .ic { width: 18px; height: 18px; }
.ts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ts-card { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 14px 18px; transition: transform .2s var(--ease), box-shadow .2s; }
.ts-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.ts-card.ts-cancelado { opacity: .7; }
.ts-date { width: 54px; height: 58px; border-radius: 16px; background: var(--plum); color: var(--cream); display: grid; place-items: center; align-content: center; flex-shrink: 0; }
.ts-date b { font-family: var(--serif); font-size: 1.6rem; line-height: 1; font-weight: 600; }
.ts-date span { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--champ); }
.ts-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-top b { font-weight: 500; }
.ts-price { text-align: right; display: grid; gap: 4px; justify-items: end; }
.ts-price b { font-family: var(--serif); font-size: 1.3rem; color: var(--wine); font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 8px; }
.svc.off { opacity: .6; }
.svc h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.svc-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--plum); color: var(--champ); display: grid; place-items: center; }
.svc-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.svc-meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.svc-meta .ic { width: 16px; height: 16px; }
.svc-meta b { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); font-weight: 600; }
.avail { list-style: none; margin: 0; padding: 0; display: grid; }
.avail li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.avail li > b { width: 82px; font-weight: 500; flex-shrink: 0; }
.avail-w { display: flex; gap: 6px; flex-wrap: wrap; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.slot-chips.big .chip { padding: 10px 16px; font-size: .95rem; min-width: 74px; justify-content: center; }
.add-row { display: flex; gap: 8px; }
.add-row select, .add-row input { flex: 1; min-width: 0; }
.add-row.wrap { flex-wrap: wrap; }
.add-row.wrap > * { flex: 1 1 120px; }
.add-row.wrap .btn { flex: 0 0 auto; }

/* ---------- Modal ---------- */
#modal { display: none; position: fixed; inset: 0; z-index: 50; }
#modal.open { display: grid; place-items: center; }
.modal-back { position: absolute; inset: 0; background: rgba(46, 21, 32, .45); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.modal-card { position: relative; background: var(--paper); width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 26px; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); }
.modal-card.wide { width: min(680px, calc(100% - 32px)); }
.modal-head { position: sticky; top: 0; background: var(--paper); z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px 12px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.modal-body { padding: 16px 22px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 8px; }
.stat-row.four { grid-template-columns: repeat(4, 1fr); }
.stat-row > div { background: var(--paper-2); border-radius: 16px; padding: 12px 8px; text-align: center; }
.stat-row strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--wine); font-weight: 600; line-height: 1.05; }
.stat-row small { font-size: .74rem; color: var(--muted); }
.stat-row.cards > div { background: var(--paper); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 14px 0 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head h4 { font-size: 1.2rem; font-weight: 500; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: 24px; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--wine); color: var(--cream); padding: 13px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: pop .3s var(--ease); transition: opacity .3s, transform .3s; }
.toast .ic { color: var(--champ); }
.toast.err { background: #4A1B22; }
.toast.err .ic { color: #F2B7BC; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- Área do aluno ---------- */
.shell.aluno { min-height: calc(100vh - 30px); display: flex; justify-content: center; }
.phone { width: 100%; max-width: 560px; position: relative; padding: 0 16px calc(var(--bottom-h) + 34px); }
.a-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 12px; }
.a-view { display: grid; gap: 14px; }
.a-view > * { min-width: 0; }
.welcome h2 { font-size: 2.2rem; }
.welcome h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-top: 8px; }
.a-hero { display: flex; align-items: center; gap: 18px; background: radial-gradient(circle at 90% 110%, var(--bordo), var(--wine) 45%, var(--plum)); color: var(--cream); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.a-hero::after { content: ''; position: absolute; inset: 0; opacity: .08; background: repeating-conic-gradient(from -90deg at 100% 130%, var(--champ) 0deg .6deg, transparent .6deg 9deg); pointer-events: none; }
.a-hero-logo { width: 96px; flex-shrink: 0; position: relative; z-index: 1; }
.a-hero > div { position: relative; z-index: 1; }
.a-hero h2 { color: var(--cream); font-size: 2.1rem; }
.a-hero p:not(.eyebrow) { color: rgba(243, 233, 211, .85); font-size: .92rem; }
.next-card { display: block; background: var(--paper); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); border: 1px solid var(--line-soft); border-left: 5px solid var(--wine); transition: transform .2s var(--ease); }
.next-card:hover { transform: translateY(-1px); }
.next-card.tarot { border-left-color: var(--plum); }
.next-card .eyebrow { color: var(--muted); }
.next-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 10px; }
.next-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.next-meta span { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); padding: 6px 12px; border-radius: 999px; font-size: .84rem; }
.next-meta .ic { width: 16px; height: 16px; color: var(--bordo); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-btn { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px; padding: 16px 12px; display: grid; justify-items: center; text-align: center; gap: 3px; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.quick-btn:hover { transform: translateY(-2px); border-color: var(--champ); }
.quick-btn .ic { width: 28px; height: 28px; color: var(--wine); margin-bottom: 4px; }
.quick-btn b { font-weight: 500; font-size: .92rem; color: var(--wine); line-height: 1.2; }
.quick-btn small { font-size: .72rem; color: var(--muted); }
.quick-btn.plum { background: var(--plum); border-color: var(--plum); }
.quick-btn.plum .ic, .quick-btn.plum b { color: var(--champ); }
.quick-btn.plum small { color: rgba(243, 233, 211, .7); }
.tarot-teaser { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--plum), var(--wine)); color: var(--cream); border: 0; }
.tarot-teaser b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--champ); }
.tarot-teaser p { color: rgba(243, 233, 211, .82); }
.tarot-teaser > .ic { color: var(--champ); }
.tt-ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(231, 216, 182, .14); display: grid; place-items: center; color: var(--champ); flex-shrink: 0; }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.class-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.class-item.mine { border: 1.5px solid var(--champ); background: linear-gradient(90deg, var(--gold-l), var(--paper) 40%); }
.class-item.tarot.mine { background: linear-gradient(90deg, var(--wine-l), var(--paper) 40%); border-color: #E3C3D0; }
.class-item.cx { opacity: .7; }
.ci-time { width: 62px; text-align: center; flex-shrink: 0; }
.ci-time b { font-family: var(--serif); font-size: 1.55rem; color: var(--wine); font-weight: 600; display: block; line-height: 1.05; }
.ci-time small { color: var(--muted); font-size: .72rem; }
.ci-title { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ci-title b { font-weight: 500; }
.ci-meta { display: flex; align-items: center; gap: 4px; }
.ci-meta .ic { width: 14px; height: 14px; }
.class-item .occ { margin: 7px 0 3px; }
.mine-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mine-tag .ic { width: 14px; height: 14px; }
.ci-act { flex-shrink: 0; text-align: right; }
.day-group h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 8px 2px 10px; }
.day-group h4::first-letter { text-transform: uppercase; }
.success { text-align: center; padding: 8px 0; display: grid; gap: 6px; justify-items: center; }
.success-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--wine-l); display: grid; place-items: center; color: var(--wine); margin-bottom: 6px; animation: pop .45s var(--ease); border: 6px solid var(--paper); box-shadow: 0 0 0 1px var(--champ); }
.success-ic.plum { background: var(--plum); color: var(--champ); }
.success-ic .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.success h4 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; }
.profile-card { text-align: center; }
.profile-card h2 { font-size: 1.8rem; }
.step { display: flex; align-items: center; gap: 10px; margin: 8px 0 -4px; }
.step span { width: 24px; height: 24px; border-radius: 50%; background: var(--plum); color: var(--champ); display: grid; place-items: center; font-size: .74rem; letter-spacing: 0; }
.svc-pick { display: grid; gap: 8px; }
.svc-opt { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 14px 16px; transition: border-color .2s, background .2s; }
.svc-opt b { display: block; font-weight: 500; font-size: 1rem; color: var(--wine); }
.svc-opt small { display: block; font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.svc-opt.on { border: 1.5px solid var(--plum); background: linear-gradient(90deg, var(--wine-l), var(--paper) 60%); }
.svc-side { text-align: right; flex-shrink: 0; }
.svc-side b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.svc-side small { color: var(--muted); }
.date-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.date-strip .day-tab { flex: 0 0 60px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper-2); }
.summary > div { display: grid; gap: 1px; }
.summary b { font-weight: 500; color: var(--wine); }
.summary span { font-size: .86rem; }
.sum-price { font-family: var(--serif); font-size: 1.7rem !important; font-weight: 600 !important; }
.bottomnav.always { display: flex; }
.bottomnav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); background: rgba(255, 252, 246, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); justify-content: space-around; align-items: flex-start; padding: 6px 6px env(safe-area-inset-bottom); z-index: 20; box-shadow: 0 -10px 28px rgba(77, 18, 48, .06); }
.bottomnav a { flex: 1; display: grid; justify-items: center; gap: 3px; font-size: .68rem; color: var(--muted); padding: 6px 2px; border-radius: 14px; min-width: 0; }
.bottomnav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bottomnav a .ic { width: 22px; height: 22px; }
.bottomnav a.active { color: var(--wine); font-weight: 500; }
.bottomnav a.active .ic { background: var(--wine-l); border-radius: 10px; padding: 3px; width: 36px; height: 28px; }

/* ---------- Responsivo ---------- */
/* ---------- Três perfis: Superadmin, Administradora e Aluno ---------- */
.demo-grid.three { grid-template-columns: repeat(3, 1fr); }
.side-label { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--champ); opacity: .7; margin: 0 0 -14px 14px; font-weight: 600; }
.topbar-viewas .ic { width: 17px; height: 17px; }
.viewas-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 -32px; padding: 10px 32px; background: linear-gradient(90deg, var(--plum), var(--wine)); color: var(--cream); font-size: .84rem; }
.viewas-bar > .ic { color: var(--champ); flex-shrink: 0; }
.viewas-bar p { flex: 1; min-width: 200px; margin: 0; display: grid; gap: 1px; }
.viewas-bar p b { font-weight: 600; letter-spacing: .02em; }
.viewas-bar p span { opacity: .82; font-size: .78rem; }
.viewas-bar ~ .topbar { top: 58px; }
.viewas-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; border-left: 4px solid var(--wine); }
.viewas-card > div { flex: 1; min-width: 240px; }
.pill.role-superadmin { background: var(--plum); color: var(--champ); }
.pill.role-admin { background: var(--wine-l); color: var(--wine); }
.pill.role-aluno { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.pill.role-viewas { background: var(--warn-l); color: var(--warn); }
.perm { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.perm .ic { width: 15px; height: 15px; }
.perm.yes { background: var(--ok-l); color: var(--ok); }
.perm.no { background: var(--paper-2); color: var(--muted); opacity: .6; }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; }
.who { display: flex; align-items: center; gap: 10px; }
.nowrap { white-space: nowrap; }
.card-head.pad { padding: 12px 10px 0; margin-bottom: 4px; }
.table td.ta-r { text-align: right; white-space: nowrap; }
@media (max-width: 1280px) {
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid.six { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.even { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .form.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell.admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; width: 280px; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-scrim.open { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(46, 21, 32, .42); }
  .only-mobile { display: inline-grid; }
  .main { padding: 0 16px calc(var(--bottom-h) + 34px); }
  .topbar { padding: 14px 0 12px; gap: 12px; }
  .topbar h1 { font-size: 1.6rem; }
  .topbar-user div { display: none; }
  .viewas-bar { margin: 0 -16px; padding: 10px 16px; }
  .viewas-bar ~ .topbar { top: 0; position: static; }
  .topbar-viewas span { display: none; }
  .topbar-viewas { padding: 9px 12px; }
  .shell.admin .bottomnav { display: flex; max-width: none; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hero h2 { font-size: 1.7rem; }
  .week-grid { grid-template-columns: 1fr; }
  .day-col { display: none; background: transparent; border: 0; padding: 0; min-height: 0; }
  .day-col.active { display: flex; }
  .day-head { display: none; }
  .day-tabs { display: flex; }
  .agenda-bar { flex-direction: column; align-items: stretch; }
  .agenda-bar .seg { align-self: stretch; }
  .agenda-bar .seg button { flex: 1; }
  .week-nav { justify-content: space-between; }
  .mg-day { min-height: 58px; align-items: center; padding: 6px 2px; }
  .mg-pills { display: none; }
  .mg-dots { display: flex; justify-content: center; }
}
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-logo-sm { display: block; }
  .login-form-wrap { padding: 20px 16px 32px; align-items: start; }
  .login-card { padding: 26px 20px; box-shadow: var(--shadow); }
  .login-card h2, .login-card > .muted { text-align: center; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table-card { padding: 0; background: transparent; box-shadow: none; border: 0; }
  .table tr { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; border: 1px solid var(--line-soft); }
  .table td { border: 0; padding: 2px 0; font-size: .86rem; }
  .perm-table tr { grid-template-columns: repeat(3, 1fr); }
  .perm-table td:first-child { grid-column: 1 / -1; font-weight: 500; }
  .perm-table td[data-l] { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .7rem; color: var(--muted); }
  .perm-table td[data-l]::before { content: attr(data-l); }
  .demo-grid.three { grid-template-columns: 1fr; }
  .table td.t-name { grid-column: 1 / -1; min-width: 0; padding-bottom: 6px; }
  .table td[data-l]::before { content: attr(data-l); display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
  .table td.t-act { grid-column: 1 / -1; text-align: left; }
  .table td.t-act:empty { display: none; }
  .table-card.flat .table tr { box-shadow: none; background: var(--paper-2); }
  .select { flex: 1 1 45%; }
  .toolbar .btn.primary { flex: 1 1 100%; }
  .form, .form.three { grid-template-columns: 1fr; }
  .modal-card, .modal-card.wide { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; align-self: end; }
  #modal.open { place-items: end center; }
  #toasts { bottom: calc(var(--bottom-h) + 16px); }
  .stat-row.four { grid-template-columns: repeat(2, 1fr); }
  .ts-card { flex-wrap: wrap; gap: 12px; }
  .ts-price { width: 100%; display: flex; justify-content: space-between; align-items: center; }
}
@media (max-width: 480px) {
  .occ-row .pill { white-space: normal; text-align: center; justify-content: center; max-width: 96px; line-height: 1.25; flex-shrink: 0; }
  h2 { font-size: 1.75rem; }
  .welcome h2 { font-size: 1.9rem; }
  .kpi-grid, .kpi-grid.six { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 1.7rem; }
  .kpi-ic { width: 34px; height: 34px; margin-bottom: 4px; }
  .channel-stats strong { font-size: 1.35rem; }
  .demo-grid { grid-template-columns: 1fr; }
  .add-row { flex-direction: column; }
  .class-item { flex-wrap: wrap; }
  .class-item .grow { flex: 1 1 calc(100% - 80px); }
  .ci-act { width: 100%; text-align: left; }
  .ci-act .btn { width: 100%; }
  .quick { gap: 8px; }
  .quick-btn { padding: 14px 6px; }
  .a-hero { padding: 18px; gap: 14px; }
  .a-hero-logo { width: 74px; }
  .a-hero h2 { font-size: 1.75rem; }
  .people li .row-acts { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .mg-head, .mg-body { gap: 4px; }
  .mg-day { min-height: 48px; border-radius: 10px; }
  .mg-day b { font-size: 1rem; }
  .demo-ribbon span { display: none; }
}

/* ---------- Impressão (relatórios) ---------- */
@media print {
  .sidebar, .bottomnav, .topbar .icon-btn, .topbar-user, .no-print, .demo-ribbon, #toasts { display: none !important; }
  .shell.admin { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .topbar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===================== Versão funcional: componentes novos ===================== */
textarea { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 13px; padding: 12px 14px; font: inherit; font-size: .95rem; outline: none; resize: vertical; transition: border .2s, box-shadow .2s; }
textarea:focus { border-color: var(--bordo); box-shadow: 0 0 0 4px rgba(138, 43, 83, .1); }
input:disabled { opacity: .6; }
body.busy, body.busy * { cursor: progress !important; }
body.busy .btn { pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.4; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--wine); flex-shrink: 0; }
.ok-t { color: var(--ok); }
.modal-actions.wrap { justify-content: flex-start; }

/* Sino de avisos */
.bell { position: relative; }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--bordo); color: var(--paper); font-size: .68rem; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.topbar .bell { margin-left: auto; }
.topbar .bell + .topbar-user { margin-left: 0; }
.a-top-acts { display: flex; gap: 8px; }
.nav-n { font-style: normal; margin-left: auto; background: var(--bordo); color: var(--paper); border-radius: 999px; font-size: .68rem; font-weight: 600; padding: 1px 7px; line-height: 1.5; }
.bottomnav a { position: relative; }
.bottomnav .nav-n { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; }
.notif-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.notif-list li > a, .notif-list li > div { display: grid; gap: 3px; padding: 11px 14px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line-soft); color: inherit; text-decoration: none; font-size: .88rem; }
.notif-list li.new > a, .notif-list li.new > div { background: var(--wine-l); border-color: #E8CFD9; }
.notif-list small { color: var(--muted); font-size: .74rem; }
.notif-list.compact { margin: 0; }

/* Status do Tarot, cobranças, reposições e comissões */
.ts-solicitado, .sit-pendente, .mk-solicitada, .mk-proposta, .cm-a_combinar, .cm-combinado { background: var(--warn-l); color: var(--warn); }
.ts-andamento, .sit-a_vencer { background: var(--gold-l); color: #7A5B26; }
.ts-entregue, .sit-pago, .mk-aprovada, .cm-pago, .cm-creditado { background: var(--ok-l); color: var(--ok); }
.sit-atrasado, .mk-recusada { background: var(--danger-l); color: var(--danger); }
.mk-cancelada, .cm-estornado { background: #EEE7E9; color: #8A7A80; }
.ts-card.ts-solicitado { border-left: 3px solid var(--warn); }
.ts-card.ts-andamento { border-left: 3px solid var(--gold); }
.demo-pill { background: var(--plum); color: var(--champ); gap: 4px; margin-left: 8px; vertical-align: middle; }
.demo-pill .ic { width: 12px; height: 12px; }
.status.pendente { color: var(--warn); }
.status.recusado { color: var(--danger); }

/* Fluxo Solicitação → Confirmado → Em andamento → Entregue */
.flow { list-style: none; display: flex; gap: 4px; padding: 0; margin: 12px 0 4px; counter-reset: f; }
.flow li { flex: 1; position: relative; text-align: center; font-size: .7rem; color: var(--muted); padding-top: 16px; }
.flow li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--line-soft); }
.flow li.done::before { background: var(--champ); }
.flow li.now::before { background: var(--wine); }
.flow li.now { color: var(--wine); font-weight: 600; }

/* Regras em destaque (24 horas) */
.notice.rule { background: var(--wine-l); border-color: #E8CFD9; }
.notice.rule .ic { color: var(--wine); }
a.link-notice { color: inherit; text-decoration: none; align-items: center; }
a.link-notice p { flex: 1; margin: 0; }
.notice .row-acts { margin-left: auto; }

/* Cadastro */
.login-card.wide { max-width: 520px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.plan-opt { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; background: var(--paper); transition: all .2s; }
.plan-opt input { position: absolute; opacity: 0; width: 0; height: 0; min-height: 0; }
.plan-opt b { font-weight: 500; font-size: .88rem; }
.plan-opt small { color: var(--muted); font-size: .78rem; }
.plan-opt:has(input:checked) { border-color: var(--wine); background: var(--wine-l); box-shadow: 0 0 0 3px rgba(106, 22, 61, .08); }

/* Lista de espera e turma lotada */
.full-acts { display: grid; gap: 5px; justify-items: end; }
.wait-pos { font-size: .72rem; text-align: right; color: var(--muted); line-height: 1.2; margin-bottom: 4px; display: block; }
.wait-pos b { color: var(--wine); font-size: 1rem; }
.wait-occ { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.wait-occ:last-child { border-bottom: 0; }
.wait-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wait-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wait-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .88rem; background: var(--paper-2); border-radius: 12px; padding: 8px 12px; }

/* Cartões do aluno (Tarot e reposições) */
.tarot-item { display: block; }
.ti-head { display: flex; gap: 12px; align-items: flex-start; }
.ti-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--wine-l); color: var(--wine); display: grid; place-items: center; flex-shrink: 0; }
.ref-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper-2); border: 1px dashed var(--champ); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.ref-box b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--wine); letter-spacing: .06em; }

/* Resumo financeiro */
.fin-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fin-row small { display: block; color: var(--muted); font-size: .76rem; }
.fin-row b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--wine); }
.card-head h3 .ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--bordo); }
@media (max-width: 760px) {
  .fin-row { grid-template-columns: 1fr 1fr; }
  .plan-pick { grid-template-columns: 1fr; }
  .flow li { font-size: .62rem; }
  .topbar .bell { margin-left: auto; }
}

/* Olho da senha e QR de cadastro */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; border-radius: 10px; padding: 0; }
.pw-eye:hover { color: var(--wine); background: var(--paper-2); }
.pw-eye .ic { width: 20px; height: 20px; }
.qr-box { width: min(280px, 70vw); margin: 6px auto 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box svg path, .qr-box svg rect[fill="black"] { fill: var(--plum); }
.qr-url { word-break: break-all; }
