:root {
    color-scheme: dark;
    --bg: #05080d;
    --bg-soft: #071116;
    --panel: #0c1621;
    --panel-soft: #101e2b;
    --line: rgba(93, 236, 255, 0.16);
    --line-strong: rgba(93, 236, 255, 0.42);
    --cyan: #5decff;
    --cyan-dark: #17bedb;
    --green: #35e5a6;
    --blue: #5fa7ff;
    --orange: #ff9f2a;
    --red: #ff5c7a;
    --yellow: #ffd166;
    --text: #f6fbff;
    --muted: #aab8c8;
    --soft: #78889b;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
    --radius: 16px;
    --max: 1420px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { color: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 72px; padding: 12px max(22px, calc((100% - 1400px) / 2)); border-bottom: 1px solid var(--line); background: rgba(5, 8, 13, 0.88); backdrop-filter: blur(18px); }
.brand img { width: 154px; }
.site-nav { display: flex; justify-content: center; gap: 28px; color: rgba(246, 251, 255, 0.78); font-size: 14px; font-weight: 800; }
.site-nav a:hover { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.ghost-button, .primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 10px; font-size: 12px; font-weight: 900; line-height: 1.15; }
.ghost-button, .secondary-button { border: 1px solid var(--line-strong); background: rgba(93, 236, 255, 0.03); }
.primary-button { color: #031116; background: linear-gradient(135deg, var(--cyan), #2cc8e2); box-shadow: 0 12px 30px rgba(45, 209, 235, 0.2); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.landing { min-height: 100vh; background: radial-gradient(circle at 84% 20%, rgba(93, 236, 255, 0.08), transparent 28%), linear-gradient(180deg, #05080d, #071219 60%, #08161e); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr); gap: 54px; min-height: 710px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 118px 36px 54px; }
.hero::before, .modules-section::before { position: absolute; inset: 0; content: ""; opacity: 0.12; pointer-events: none; background-image: linear-gradient(rgba(93,236,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(93,236,255,.22) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 48%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0; font-size: clamp(52px, 6vw, 82px); letter-spacing: -0.055em; line-height: 0.95; }
.hero-copy > p { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 25px); font-weight: 650; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions a { min-height: 56px; padding-inline: 28px; font-size: 16px; }
.hero-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 42px; }
.hero-point { display: grid; justify-items: center; gap: 8px; padding: 0 16px; border-left: 1px solid rgba(170, 184, 200, 0.24); color: var(--muted); text-align: center; font-size: 12px; font-weight: 800; line-height: 1.35; }
.hero-point:first-child { border-left: 0; }
.hero-point i { color: var(--cyan); font-size: 31px; }
.dashboard-preview { position: relative; z-index: 2; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(7, 15, 23, 0.98); box-shadow: var(--shadow), 0 0 34px rgba(93, 236, 255, 0.08); }
.preview-top { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.preview-top img { width: 95px; }
.preview-top strong { margin-left: 16px; }
.preview-top small { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-grid { display: grid; grid-template-columns: 145px 1fr; min-height: 495px; }
.preview-nav { display: grid; align-content: start; gap: 5px; padding: 14px 9px; border-right: 1px solid var(--line); }
.preview-nav span { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.preview-nav span:first-child { color: var(--cyan); background: rgba(93,236,255,.1); }
.preview-main { padding: 15px; }
.preview-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.preview-stat, .preview-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(15,27,39,.72); }
.preview-stat { padding: 12px; }
.preview-stat small, .preview-stat b { display: block; }
.preview-stat small { color: var(--muted); font-size: 9px; }
.preview-stat b { margin-top: 7px; font-size: 20px; }
.preview-stat em { color: var(--green); font-size: 8px; font-style: normal; }
.preview-panels { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; margin-top: 11px; }
.preview-card { min-height: 178px; padding: 13px; }
.preview-card h3 { margin: 0 0 14px; font-size: 12px; }
.chart { display: flex; height: 105px; align-items: end; gap: 7px; padding: 10px 4px; border-left: 1px solid rgba(170,184,200,.13); border-bottom: 1px solid rgba(170,184,200,.13); }
.chart span { flex: 1; min-height: 15%; border-radius: 3px 3px 0 0; background: linear-gradient(var(--cyan), rgba(93,236,255,.25)); }
.activity-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(170,184,200,.12); font-size: 9px; }
.activity-row:first-of-type { border-top: 0; }
.activity-row i { color: var(--green); }
.activity-row .avatar { width: 26px; height: 26px; font-size: 8.5px; }
.activity-row > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.activity-row > span:nth-child(2) b { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.activity-row > span:nth-child(2) small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.preview-lower { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.preview-lower .preview-card { min-height: 125px; }

.modules-section { position: relative; padding: 45px max(24px, calc((100% - 1400px) / 2)) 90px; border-top: 1px solid var(--line); background: #071019; }
.modules-section::before { mask-image: linear-gradient(90deg, transparent, #000, transparent); }
.modules-section > * { position: relative; z-index: 1; }
.modules-section h2 { margin: 0; font-size: clamp(29px, 4vw, 43px); letter-spacing: -0.035em; }
.modules-section > p { margin: 8px 0 27px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { min-height: 270px; padding: 23px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9,18,27,.82); }
.module-card:nth-child(1) { border-top-color: var(--green); }
.module-card:nth-child(2) { border-top-color: var(--blue); }
.module-card:nth-child(3) { border-top-color: var(--orange); }
.module-card h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 21px; }
.module-card h3 i { color: var(--cyan); font-size: 29px; }
.module-card p, .module-card li { color: var(--muted); font-weight: 650; line-height: 1.55; }
.module-card ul { display: grid; gap: 7px; padding: 0; list-style: none; }
.module-card li::before { margin-right: 8px; color: var(--green); content: "✓"; }

.how-to-hire-section { padding: 45px max(24px, calc((100% - 1400px) / 2)) 90px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.how-to-hire-section h2 { margin: 0; font-size: clamp(29px, 4vw, 43px); letter-spacing: -0.035em; }
.how-to-hire-section > p { margin: 8px 0 27px; color: var(--muted); }
.how-to-hire-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 27px; }
.how-to-hire-step { position: relative; padding: 23px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9,18,27,.82); }
.how-to-hire-step__number { position: absolute; top: 16px; right: 18px; font-weight: 800; font-size: 21px; color: var(--line-strong); }
.how-to-hire-step i { color: var(--cyan); font-size: 29px; }
.how-to-hire-step h3 { margin: 12px 0 6px; font-size: 19px; }
.how-to-hire-step p { margin: 0; color: var(--muted); font-weight: 650; line-height: 1.55; }
.how-to-hire-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-button { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9,18,27,.82); font-weight: 700; }
.store-button i { font-size: 22px; color: var(--cyan); }
@media (max-width: 720px) { .how-to-hire-steps { grid-template-columns: 1fr; } }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 15%, rgba(93,236,255,.1), transparent 30%), var(--bg); }
.login-panel, .blocked-panel { width: min(100%, 430px); padding: 30px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(10,21,31,.96); box-shadow: var(--shadow); }
.login-panel img, .blocked-panel img { width: 165px; margin: 0 auto 26px; }
.login-panel h1, .blocked-panel h1 { margin: 0; text-align: center; font-size: 28px; }
.login-panel > p, .blocked-panel > p { color: var(--muted); text-align: center; line-height: 1.5; }
.form-field { display: grid; gap: 7px; margin-top: 15px; }
.form-field label { color: var(--muted); font-size: 12px; font-weight: 850; }
.form-field input, .form-field textarea, .form-field select, .search-field { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: rgba(5,12,19,.72); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field .form-hint { margin-top: -1px; color: var(--soft); font-size: 10.5px; font-weight: 700; line-height: 1.4; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .search-field:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(93,236,255,.08); }
.login-panel .primary-button { width: 100%; margin-top: 20px; }
.login-error { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: 12px; text-align: center; }
.dashboard { min-height: 100vh; padding-left: 204px; background: #05090f; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 204px; flex-direction: column; padding: 22px 13px 16px; border-right: 1px solid var(--line); background: #05090f; }
.sidebar-logo { width: 152px; margin: 0 auto 24px; }
.sidebar-logo small { display: block; margin-top: 4px; color: var(--cyan); font-size: 10px; font-weight: 950; letter-spacing: .12em; text-align: center; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav button { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 13px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 850; text-align: left; }
.sidebar-nav button.is-active { color: var(--cyan); background: rgba(93,236,255,.1); box-shadow: inset 2px 0 var(--cyan); }
.sidebar-nav button.is-disabled { opacity: .38; cursor: not-allowed; }
.sidebar-nav button.sidebar-nav__more-trigger { display: none; }
.sidebar-nav i { width: 20px; font-size: 19px; text-align: center; }
.sidebar-footer { display: grid; gap: 10px; margin-top: auto; }
.plan-mini { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(14,27,39,.72); }
.plan-mini small, .plan-mini b { display: block; }
.plan-mini small { color: var(--muted); font-size: 10px; }
.plan-mini b { margin-top: 6px; color: var(--cyan); }
.logout-button { min-height: 42px; border: 1px solid rgba(255,92,122,.24); border-radius: 9px; color: var(--muted); background: rgba(255,92,122,.025); font-weight: 800; }
.dashboard-main { width: min(100%, var(--max)); margin: 0 auto; padding: 16px 18px 40px; }
.dashboard-header { display: grid; grid-template-columns: 285px minmax(260px, 1fr) auto; align-items: center; gap: 20px; min-height: 58px; }
.welcome small, .welcome b { display: block; }
.welcome small { color: var(--muted); font-size: 11px; font-weight: 750; }
.welcome b { margin-top: 1px; font-size: 21px; }
.dashboard-search { position: relative; }
.dashboard-search i { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.dashboard-search input { padding-left: 40px; }
.account-chip { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #347fd9, #38506c); font-size: 12px; font-weight: 950; }
.js-pro-avatar { padding: 0; overflow: hidden; }
.js-pro-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-chip span b, .account-chip span small { display: block; }
.account-chip span small { color: var(--muted); font-size: 9px; }
/* Exact match for the app's own .language-input (www/css/app.css): a globe icon next to a
   plain, borderless, backgroundless <select> showing "Idioma (Português)" with its native
   dropdown arrow left in place (no appearance:none) — not a custom-styled control. */
.language-input { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.language-input > i { flex: 0 0 auto; font-size: 16px; }
.lang-select { width: auto; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; box-shadow: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-select option { color: var(--text); background: var(--panel); }
.lang-select:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 3px; }
.topbar-logout { display: none; width: 34px; height: 34px; padding: 0; align-items: center; justify-content: center; border: 1px solid rgba(255,92,122,.25); border-radius: 10px; color: var(--red); background: rgba(255,92,122,.06); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(13,27,39,.98), rgba(8,17,26,.98)); }
.stat-card { display: grid; grid-template-columns: 1fr auto; min-height: 86px; align-items: center; padding: 12px; }
.stat-card small, .stat-card b, .stat-card em { display: block; }
.stat-card small { color: var(--muted); font-size: 9px; font-weight: 750; }
.stat-card b { margin-top: 4px; font-size: 21px; }
.stat-card em { margin-top: 3px; color: var(--green); font-size: 9px; font-style: normal; font-weight: 850; }
.stat-card i { color: var(--cyan); font-size: 26px; }
.module-access { margin-top: 10px; padding: 13px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head h2 { font-size: 16px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.access-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.access-card { min-height: 116px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,19,29,.8); }
.access-card.is-included { border-color: rgba(53,229,166,.55); }
.access-card.is-locked { opacity: .52; }
.access-card i { color: var(--cyan); font-size: 23px; }
.access-card b, .access-card small { display: block; }
.access-card b { margin-top: 8px; font-size: 12px; }
.access-card small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.badge { display: inline-flex; min-height: 21px; align-items: center; justify-content: center; padding: 0 7px; border-radius: 5px; font-size: 8px; font-weight: 950; }
.badge--active { color: var(--green); background: rgba(53,229,166,.12); }
.badge--pending { color: var(--orange); background: rgba(255,159,42,.12); }
.badge--locked { color: var(--muted); background: rgba(170,184,200,.1); }
.badge--sync { gap: 4px; color: var(--cyan); background: rgba(93,236,255,.1); }
/* Connection strip under the topbar: only present while offline or with changes waiting. */
.sync-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 36px; margin: 0 0 12px; padding: 7px 12px; border: 1px solid rgba(255,159,42,.3); border-radius: 10px; color: var(--orange); background: rgba(255,159,42,.08); font-size: 11px; font-weight: 800; line-height: 1.35; }
.sync-strip.is-pending { border-color: rgba(93,236,255,.25); color: var(--cyan); background: rgba(93,236,255,.06); }
.sync-strip > i { font-size: 16px; }
.sync-strip span + span { color: var(--text); font-weight: 700; }
.sync-strip button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 10px; border: 1px solid rgba(93,236,255,.3); border-radius: 7px; color: var(--cyan); background: rgba(93,236,255,.08); font-size: 10.5px; font-weight: 900; }
/* Refused changes: red strip, one row per entry, resend/discard side by side. */
.sync-strip.is-stuck { flex-direction: column; align-items: stretch; border-color: rgba(255,92,122,.35); color: var(--red); background: rgba(255,92,122,.07); }
.sync-strip.is-stuck > i { position: absolute; }
.sync-strip.is-stuck > span { padding-left: 24px; }
.sync-strip.is-stuck { position: relative; }
.sync-list { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.sync-list__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid rgba(255,92,122,.22); border-radius: 8px; color: var(--text); background: rgba(5,12,19,.55); }
.sync-list__item > span:first-child { display: grid; gap: 2px; min-width: 0; }
.sync-list__item b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sync-list__item small { color: var(--muted); font-size: 10px; font-weight: 700; }
.sync-list__actions { display: flex; flex: none; gap: 6px; }
.sync-list__actions button { margin-left: 0; }
.sync-list__actions button.is-danger { border-color: rgba(255,92,122,.35); color: var(--red); background: rgba(255,92,122,.08); }
button[data-busy] { opacity: .6; cursor: progress; }
.workspace { display: grid; grid-template-columns: minmax(400px, .4fr) minmax(520px, .6fr); gap: 12px; margin-top: 12px; }
.students-panel, .detail-panel { min-height: 555px; padding: 14px; }
.student-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.student-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.student-filters button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 850; }
.student-filters button.is-active { color: var(--cyan); border-color: var(--cyan); background: rgba(93,236,255,.07); }
.student-list { display: grid; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; overflow-y: hidden; }
.student-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 55px 76px; align-items: center; gap: 7px; min-height: 61px; min-width: 340px; padding: 8px 10px; border-top: 1px solid rgba(170,184,200,.1); background: transparent; text-align: left; }
.student-row:first-child { border-top: 0; }
.student-row.is-selected { background: rgba(93,236,255,.08); box-shadow: inset 0 0 0 1px var(--cyan); }
.student-person { display: flex; min-width: 0; align-items: center; gap: 8px; }
.student-person .avatar { flex: 0 0 auto; width: 34px; height: 34px; }
.student-person span { min-width: 0; }
.student-person b, .student-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-person b { font-size: 10px; }
.student-person small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.module-icons { font-size: 16px; white-space: nowrap; }
.module-icon { display: inline-flex; }
.module-icon.is-active { color: var(--cyan); }
.module-icon.is-inactive { color: var(--muted); opacity: 0.45; }
.active-since { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.module-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; cursor: pointer; user-select: none; }
.module-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.module-toggle__track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(93, 236, 255, 0.12); border: 1px solid var(--line-strong); transition: background 0.15s ease; flex: none; }
.module-toggle__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.15s ease, background 0.15s ease; }
.module-toggle input:checked + .module-toggle__track { background: var(--cyan); border-color: var(--cyan); }
.module-toggle input:checked + .module-toggle__track .module-toggle__thumb { transform: translateX(18px); background: #031116; }
.module-toggle input:disabled + .module-toggle__track { opacity: 0.5; }
.module-toggle__label { font-size: 12px; font-weight: 800; color: var(--text); }
.empty-detail { display: grid; min-height: 520px; place-items: center; color: var(--muted); text-align: center; }
.empty-detail i { color: var(--orange); font-size: 45px; }
.waiting-actions { display: flex; justify-content: center; gap: 10px; margin-top: 1rem; }
.waiting-actions i { font-size: 16px; }
.waiting-invited-date { margin: 2rem 0 0; color: var(--muted); font-size: 12px; }
.danger-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 10px; font-size: 12px; font-weight: 900; line-height: 1.15; color: var(--red); border: 1px solid rgba(255, 92, 122, 0.35); background: rgba(255, 92, 122, 0.06); }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-person { display: flex; align-items: center; gap: 12px; }
.detail-person .avatar { width: 44px; height: 44px; }
.detail-person h2 { margin: 0; font-size: 16px; }
.detail-person p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.detail-head__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.text-link { padding: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: underline; }
.text-link:hover { color: var(--text); }
.detail-tabs { display: flex; gap: 20px; overflow-x: auto; margin-top: 12px; border-bottom: 1px solid var(--line); }
.detail-tabs button { min-height: 39px; flex: 0 0 auto; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 9px; font-weight: 850; }
.detail-tabs button.is-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.detail-content { padding-top: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.metric-card { min-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(12,24,35,.74); }
.metric-card small, .metric-card b, .metric-card em { display: block; }
.metric-card small { color: var(--muted); font-size: 8px; }
.metric-card b { margin-top: 9px; font-size: 22px; }
.metric-card em { margin-top: 8px; color: var(--green); font-size: 8px; font-style: normal; }
.data-list { display: grid; gap: 7px; margin-top: 10px; }
.data-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 50px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,18,27,.7); }
.data-row b, .data-row small { display: block; }
.data-row b { font-size: 10px; }
.data-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.data-row span { color: var(--cyan); font-size: 10px; font-weight: 900; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.billing-row__actions { display: flex; align-items: center; gap: 8px; }
.billing-receipt-link { display: block; margin-top: 3px; color: var(--cyan); font-size: 8px; font-weight: 800; text-decoration: underline; }
.icon-action, .editor-icon, .editor-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); background: rgba(93,236,255,.04); }
.icon-action--accent { color: var(--cyan); border-color: rgba(93,236,255,.35); background: rgba(93,236,255,.06); }
.badge--mine { color: var(--cyan); background: rgba(93,236,255,.12); }
.student-plan-row .badge { margin-left: 6px; vertical-align: middle; gap: 0; }
.student-plan-row .badge i { font-size: 11px; }
.panel-hint { margin: 3px 0 0; color: var(--muted); font-size: 10px; max-width: 520px; }
.plan-mini.is-inactive b { color: var(--muted); }
.plan-mini.is-inactive b em { font-size: 10px; font-style: normal; font-weight: 700; color: var(--orange); }
.sync-strip.is-readonly { color: var(--text); background: rgba(169, 180, 196, 0.08); border-color: rgba(169, 180, 196, 0.32); }
.sync-strip.is-readonly > i { color: var(--orange); }
.sync-strip.is-readonly span + span { opacity: .75; font-weight: 600; }
.dashboard.is-readonly [data-readonly-disabled="1"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.dashboard.is-readonly [data-readonly-disabled="1"].primary-button, .dashboard.is-readonly [data-readonly-disabled="1"].secondary-button { filter: grayscale(.6); }
.editor-field--video { grid-column: 1 / -1; }
.editor-field__hint { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.editor-video-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; color: #ff5a5a; font-size: 11px; font-weight: 800; text-decoration: none; }
.editor-video-link i { font-size: 15px; }
.editor-video-invalid { display: block; margin-top: 6px; color: var(--orange); font-size: 10.5px; font-style: normal; font-weight: 700; }
.editor-readonly-note { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--muted); font-size: 10.5px; }
.editor-panel.is-readonly .editor-row__actions, .editor-panel.is-readonly .editor-add, .editor-panel.is-readonly .editor-link-toggle, .editor-panel.is-readonly [data-editor-action="ai-open"], .editor-panel.is-readonly .editor-actions .primary-button { display: none !important; }
.editor-panel.is-readonly input, .editor-panel.is-readonly textarea, .editor-panel.is-readonly select { pointer-events: none; opacity: .85; }
.icon-action--danger, .editor-icon--danger { color: var(--red); border-color: rgba(255,92,122,.25); background: rgba(255,92,122,.035); }
.editor-icon--ai { color: #a855f7; border-color: rgba(168,85,247,.3); background: rgba(168,85,247,.06); }
.icon-action i, .editor-icon i, .editor-close i { font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.form-grid .form-field { margin-top: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.locked-module { display: grid; min-height: 330px; place-items: center; padding: 40px; color: var(--muted); text-align: center; }
.locked-module i { color: var(--orange); font-size: 42px; }
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.68); }
.modal-panel { width: min(100%, 460px); padding: 22px; border: 1px solid var(--line-strong); border-radius: 15px; background: #0b1722; box-shadow: var(--shadow); }
.modal-panel h2 { margin: 0; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.editor-modal { align-items: start; overflow-y: auto; }
.editor-panel { width: min(1320px, 96vw); margin: 18px auto; padding: 0; overflow: hidden; }
.editor-head { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(11,23,34,.97); backdrop-filter: blur(16px); }
.editor-head small { color: var(--cyan); font-size: 9px; font-weight: 950; text-transform: uppercase; }
.editor-head h2 { margin-top: 4px; }
.editor-close { color: var(--muted); background: transparent; }
.editor-body, .editor-grid--top { margin-inline: 20px; }
.editor-grid--top { margin-top: 16px; }
.editor-grid--names { grid-template-columns: 1fr 1fr auto; align-items: end; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.editor-grid--sets { grid-template-columns: repeat(5, minmax(0,1fr)); }
.editor-grid--food { grid-template-columns: minmax(190px,1.5fr) repeat(4,minmax(90px,.72fr)); }
.editor-field { display: grid; min-width: 0; gap: 6px; }
.editor-field > span { color: var(--muted); font-size: 10px; font-weight: 850; }
.editor-field input, .editor-field textarea, .editor-field select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: rgba(5,12,19,.72); font-size: 11px; }
.editor-field textarea { min-height: 72px; resize: vertical; }
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(93,236,255,.07); }
.editor-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; align-items: start; }
.editor-column { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,18,27,.76); }
.editor-column--exercises { border-color: rgba(95,167,255,.24); background: rgba(10,21,32,.9); }
.editor-column--sets, .editor-column--items { border-color: rgba(170,184,200,.14); background: rgba(5,13,21,.72); }
.editor-column .editor-grid, .editor-column .editor-grid--sets, .editor-column .editor-grid--food { grid-template-columns: repeat(2, minmax(0,1fr)); }
.editor-column__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.editor-column__head h3 { margin: 0; font-size: 13px; }
.editor-column .editor-grid { margin-bottom: 10px; }
.editor-empty { margin: 0; padding: 14px 0; color: var(--muted); font-size: 10px; text-align: center; }
.editor-row-list, .editor-accordion-list { display: grid; gap: 7px; }
.editor-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5,12,19,.5); }
.editor-row.is-selected { border-color: var(--cyan); background: rgba(93,236,255,.08); }
.editor-row__main { display: grid; min-width: 0; gap: 2px; padding: 6px 8px; text-align: left; color: var(--text); background: transparent; }
.editor-row__main strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.editor-row__main small { display: block; color: var(--muted); font-size: 9px; }
.editor-row__actions { display: flex; flex-wrap: nowrap; gap: 4px; }
.editor-row--period { display: grid; grid-template-columns: 1fr; gap: 2px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; text-align: left; color: var(--text); background: rgba(5,12,19,.5); }
.editor-row--period strong { font-size: 11px; }
.editor-row--period small { color: var(--muted); font-size: 9px; }
.editor-row--period.is-selected { border-color: var(--cyan); background: rgba(93,236,255,.08); }
.editor-accordion { border: 1px solid var(--line); border-radius: 9px; background: rgba(5,12,19,.5); overflow: hidden; }
.editor-accordion[open] { border-color: rgba(93,236,255,.3); }
.editor-accordion__summary { padding: 9px 10px; color: var(--text); font-size: 10.5px; font-weight: 750; cursor: pointer; list-style: none; }
.editor-accordion__summary::-webkit-details-marker { display: none; }
.editor-accordion__summary::before { content: '\25b8'; display: inline-block; margin-right: 6px; color: var(--cyan); transition: transform .15s ease; }
.editor-accordion[open] > .editor-accordion__summary::before { transform: rotate(90deg); }
.editor-accordion__body { padding: 0 10px 10px; }
.editor-accordion__body .editor-row__actions { margin-bottom: 10px; }
.editor-icon { width: 28px; height: 28px; }
.editor-exercise-slot { position: relative; }
.editor-exercise-slot.is-linked .editor-row, .editor-exercise-slot.is-linked-prev .editor-row { border-color: rgba(93,236,255,.36); }
.editor-exercise-slot.is-linked:after { content: ''; position: absolute; left: 40px; bottom: -8px; width: 2px; height: 9px; background: rgba(93,236,255,.55); }
.editor-link-toggle { position: absolute; z-index: 2; left: 8px; bottom: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid rgba(169,180,196,.34); border-radius: 50%; color: rgba(169,180,196,.8); background: #061115; font-size: 12px; transform: translateY(calc(50% + 3px)); box-shadow: 0 3px 10px rgba(0,0,0,.35); cursor: pointer; }
.editor-link-toggle i { font-size: 12px; }
.editor-link-toggle.is-active { border-color: rgba(93,236,255,.7); color: #05080d; background: var(--cyan); }
.editor-icon i { font-size: 14px; }
.editor-add-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.editor-add-row .editor-add { margin-top: 0; flex: 1; }
.ai-input-modal { z-index: 110; }
/* Exercise presets: a compact scrollable list, same panel chrome as the other editor modals. */
.editor-add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-add-row > * { flex: 1 1 auto; }
.exercise-picker { z-index: 112; }
.exercise-picker__panel { width: min(100%, 460px); max-height: min(78vh, 620px); display: flex; flex-direction: column; }
.exercise-picker__panel .editor-field { margin: 12px 0 0; }
.exercise-picker__list { display: grid; gap: 5px; max-height: 46vh; margin: 12px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.exercise-picker__item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: rgba(5,12,19,.55); text-align: left; }
.exercise-picker__item:hover { border-color: var(--line-strong); background: rgba(93,236,255,.07); }
.exercise-picker__item span { display: grid; gap: 2px; min-width: 0; }
.exercise-picker__item b { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.exercise-picker__item small { color: var(--muted); font-size: 10px; font-weight: 700; }
.exercise-picker__item i { flex: none; color: var(--cyan); font-size: 17px; }
/* Library section on the Treinos screen. */
.exercise-library { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.exercise-library__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5,12,19,.5); }
.exercise-library__item span { display: grid; gap: 2px; min-width: 0; }
.exercise-library__item b { font-size: 12.5px; }
.exercise-library__item small { color: var(--muted); font-size: 10px; font-weight: 700; }
.exercise-library__origin { flex: none; color: var(--soft); font-size: 10px; font-weight: 700; }
/* Shared "Use AI" modal: four attachment slots, upload and camera circles, an optional note. */
.ai-input-panel { position: relative; width: min(100%, 470px); }
.ai-input-panel h2 { padding-right: 30px; font-size: 17px; }
.ai-input-panel .editor-close { position: absolute; top: 14px; right: 14px; }
.ai-input-hint { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.ai-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 50px; gap: 12px; align-items: start; margin-top: 16px; }
.ai-input-row--text { margin-top: 12px; }
.ai-input-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ai-input-slot { position: relative; display: grid; aspect-ratio: 4 / 4; min-width: 0; padding: 0; place-items: center; overflow: hidden; border: 1px solid rgba(169,180,196,.3); border-radius: 11px; color: rgba(224,230,241,.7); background: rgba(255,255,255,.045); font-size: 20px; cursor: pointer; }
.ai-input-slot:hover { border-color: var(--line-strong); }
.ai-input-slot.is-filled { border-color: rgba(93,236,255,.5); background: #050b12; }
.ai-input-slot img { width: 100%; height: 100%; object-fit: cover; }
.ai-input-slot__file { display: grid; gap: 2px; place-items: center; color: var(--cyan); font-size: 22px; }
.ai-input-slot__file small { color: rgba(224,230,241,.78); font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.ai-input-slot__remove { position: absolute; top: 4px; right: 4px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: rgba(0,0,0,.62); font-size: 11px; }
.ai-input-slot__remove i { font-size: 11px; }
.ai-input-circle { display: grid; width: 50px; height: 50px; padding: 0; cursor: pointer; place-items: center; border-radius: 50%; 
    /* border: 1.5px solid transparent; color: var(--cyan); background: linear-gradient(#0b1722, #0b1722) padding-box, linear-gradient(135deg, #5decff, #a855f7) border-box; font-size: 22px; */
    gap: 7px; border: 1px solid rgba(93, 236, 255, 0.56); color: var(--cyan); background: transparent; font-size: 11px; font-weight: 900;
}
.ai-input-circle i { font-size: 22px; }
.ai-input-circle:hover { filter: brightness(1.15); }
.ai-input-text { width: 100%; height: 90px; min-height: 90px; padding: 11px 13px; border: 1px solid rgba(169, 180, 196, 0.3); /* border: 1px solid rgba(168,85,247,.62); */ border-radius: 12px; color: var(--text); background: rgba(255,255,255,.03); font: inherit; font-size: 13px; line-height: 1.4; resize: vertical; }
.ai-input-text:focus { outline: none; /* border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,.18); */ }
.ai-input-submit { width: 100%; min-height: 46px; margin-top: 16px; font-size: 13px; }
.ai-input-submit:disabled { opacity: .6; cursor: wait; }
.ai-input-modal.is-busy .ai-input-submit i { animation: spin .9s linear infinite; }
.ai-input-modal.is-busy .ai-input-slot, .ai-input-modal.is-busy .ai-input-circle, .ai-input-modal.is-busy .ai-input-text { opacity: .55; pointer-events: none; }
.editor-template-panel { width: min(100%, 520px); padding: 0; overflow: hidden; }
.editor-template-body { padding: 18px 20px 20px; }
.editor-template-body h3 { margin: 18px 0 10px; font-size: 12px; color: var(--muted); }
.editor-template-blank { width: 100%; min-height: 46px; }
.editor-row--template { width: 100%; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.editor-check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.editor-check input { accent-color: var(--cyan); }
.editor-add { margin-top: 10px; min-height: 36px; }
.editor-actions { position: sticky; z-index: 5; bottom: 0; margin-top: 18px; padding: 13px 20px; border-top: 1px solid var(--line); background: rgba(11,23,34,.97); backdrop-filter: blur(16px); }
.toast { position: fixed; z-index: 150; right: 20px; bottom: 20px; max-width: 390px; padding: 13px 17px; opacity: 0; border: 1px solid var(--line-strong); border-radius: 10px; pointer-events: none; color: var(--text); background: #10202d; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; transform: translateY(12px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
    .hero { grid-template-columns: 1fr; }
    .dashboard-preview { max-width: 900px; }
    .workspace { grid-template-columns: 1fr; }
    .detail-panel { min-height: 500px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .editor-columns { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-nav { display: none; }
    .header-actions .primary-button span { display: none; }
    .hero { min-height: 0; padding: 116px 18px 52px; }
    .hero-copy h1 { font-size: 48px; }
    .hero-points { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-nav { display: none; }
    .preview-stats { grid-template-columns: repeat(2, 1fr); }
    .preview-panels { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .dashboard { padding-left: 0; }
    .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
    .sidebar-logo { width: 95px; margin: 0 8px 0 0; }
    .sidebar-logo small, .plan-mini { display: none; }
    .sidebar-footer { display: block; margin-left: auto; }
    .logout-button { min-width: 43px; padding: 0 11px; white-space: nowrap; }
    .logout-button i { margin: 0; }
    .logout-button { font-size: 0; }
    .logout-button i { font-size: 16px; }
    .sidebar-nav { display: flex; gap: 3px; }
    .sidebar-nav button { min-width: 43px; padding: 0 11px; }
    .sidebar-nav button span { display: none; }
    .dashboard-main { padding: 10px 10px 30px; }
    .dashboard-header { grid-template-columns: 1fr auto; }
    .dashboard-search { grid-column: 1 / -1; grid-row: 2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .access-grid { grid-template-columns: repeat(2, 1fr); }
    .workspace { display: block; }
    .detail-panel { margin-top: 10px; }
    .student-row { grid-template-columns: minmax(150px, 1fr) 72px; min-width: 0; }
    .student-row > :nth-child(2) { display: none; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .editor-panel { margin: 0; border-radius: 0; }
    .editor-grid, .editor-grid--sets, .editor-grid--food,
    .editor-column .editor-grid, .editor-column .editor-grid--sets, .editor-column .editor-grid--food { grid-template-columns: 1fr; }
    .editor-ai, .editor-body, .editor-grid--top { margin-inline: 12px; }
    .editor-head, .editor-actions { padding-inline: 12px; }
    .editor-actions > * { flex: 1; }
}

/* ---------- Assessments ---------- */
.assessment-head { align-items: flex-start; }
.assessment-head p { max-width: 520px; }
.assessment-head__actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.assessment-empty { min-height: 320px; }
.assessment-empty h3 { margin: 12px 0 4px; color: var(--text); }
.assessment-empty p { margin: 0; font-size: 11px; }
.assessment-evolution { margin-top: 16px; }
.assessment-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.assessment-chip { min-height: 28px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(9,18,27,.7); font-size: 9.5px; font-weight: 850; }
.assessment-chip.is-active { color: #031116; background: var(--cyan); border-color: var(--cyan); }
.assessment-chart { padding: 14px 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(12,24,35,.9), rgba(7,15,22,.9)); }
.assessment-chart--empty { display: grid; min-height: 120px; place-items: center; color: var(--muted); font-size: 11px; text-align: center; }
.assessment-chart--empty p { margin: 0; }
.assessment-chart__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.assessment-chart__head small { display: block; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.assessment-chart__head b { display: block; margin-top: 3px; font-size: 22px; color: var(--assessment-series, var(--cyan)); }
.assessment-chart__head b span { font-size: 11px; color: var(--muted); }
.assessment-chart__head em { font-size: 10px; font-style: normal; font-weight: 900; color: var(--muted); }
.assessment-chart__head em.is-good { color: var(--green); }
.assessment-chart__head em.is-bad { color: var(--orange); }
.assessment-chart__head em.is-neutral { color: var(--cyan); }
.assessment-chart__scroll { overflow-x: auto; scrollbar-width: none; }
.assessment-chart__scroll::-webkit-scrollbar { display: none; }
.assessment-chart__canvas { position: relative; min-width: 100%; }
.assessment-chart svg { display: block; height: 190px; }
.assessment-chart__points circle[data-chart-point] { cursor: pointer; outline: 0; }
.assessment-chart__points circle[data-chart-point]:focus-visible { stroke-width: 4; }
.assessment-chart__tip { position: absolute; z-index: 3; display: grid; gap: 1px; padding: 6px 10px; border: 1px solid rgba(93,236,255,.35); border-radius: 9px; color: var(--text); background: #0b1722; box-shadow: 0 8px 24px rgba(0,0,0,.45); font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.assessment-chart__tip b { font-size: 13px; font-weight: 900; color: var(--assessment-series, var(--cyan)); }
.assessment-chart__tip small { font-size: 10.5px; color: var(--muted); font-weight: 800; }
.assessment-chart__grid { stroke: rgba(170,184,200,.16); stroke-width: 1.5; stroke-dasharray: 4 8; }
.assessment-chart__line { fill: none; stroke: var(--assessment-series, var(--cyan)); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.assessment-chart__points circle { fill: #0b1722; stroke: var(--assessment-series, var(--cyan)); stroke-width: 2.5; }
.assessment-chart__points circle.is-latest { fill: var(--assessment-series, var(--cyan)); stroke: rgba(255,255,255,.55); }
.assessment-chart__value { fill: var(--text); font-size: 12px; font-weight: 900; text-anchor: middle; }
.assessment-chart__label { fill: var(--muted); font-size: 11px; font-weight: 800; text-anchor: middle; }
.assessment-table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; }
.assessment-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.assessment-table th, .assessment-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.assessment-table thead th { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; background: rgba(9,18,27,.8); }
.assessment-table thead th span { display: block; color: var(--text); font-size: 10px; text-transform: none; letter-spacing: 0; }
.assessment-table thead th small { display: block; margin-top: 2px; font-size: 8px; color: var(--cyan); }
.assessment-table tbody th { color: var(--text); font-weight: 800; text-align: left; }
.assessment-table tbody th small { color: var(--muted); font-weight: 700; }
.assessment-table tbody td { color: var(--text); font-weight: 800; }
.assessment-table tbody tr:last-child th, .assessment-table tbody tr:last-child td { border-bottom: 0; }
.assessment-table__delta { font-weight: 900; color: var(--muted); }
.assessment-table__delta.is-good { color: var(--green); }
.assessment-table__delta.is-bad { color: var(--orange); }
.assessment-table__delta.is-neutral { color: var(--cyan); }
.assessment-row { align-items: flex-start; }
.assessment-row__main { display: grid; gap: 4px; }
.assessment-row__main b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.assessment-row__main .badge i { font-size: 10px; }
.assessment-row__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.assessment-row__chip { padding: 2px 7px; border-radius: 6px; font-size: 8.5px; font-weight: 800; color: var(--muted); background: rgba(93,236,255,.06); border: 1px solid var(--line); }
.assessment-overview { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12,24,35,.74); }
.assessment-overview.is-empty { border-style: dashed; }
.assessment-overview__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(93,236,255,.08); }
.assessment-overview__icon i { font-size: 20px; }
.assessment-overview small { display: block; color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; }
.assessment-overview b { display: block; margin-top: 2px; font-size: 12px; }
.assessment-overview .secondary-button { min-height: 34px; padding: 0 12px; font-size: 10px; }

.assessment-panel { width: min(1360px, 96vw); }
.assessment-top { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(170px,.7fr) minmax(0,1.4fr); align-items: end; gap: 12px; margin: 16px 20px 0; }
.assessment-mirror { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5,12,19,.5); }
.assessment-mirror input { accent-color: var(--cyan); }
.assessment-mirror span { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.assessment-mirror i { color: var(--green); font-size: 14px; }
.assessment-notice { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; padding: 9px 12px; border: 1px solid rgba(53,229,166,.3); border-radius: 8px; color: var(--green); background: rgba(53,229,166,.06); font-size: 10px; font-weight: 750; }
.assessment-editor { display: grid; grid-template-columns: 220px minmax(0,1fr) 290px; gap: 12px; margin: 16px 20px 0; align-items: start; }
.assessment-nav { position: sticky; top: 84px; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,18,27,.76); }
.assessment-nav__item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10.5px; font-weight: 800; text-align: left; }
.assessment-nav__item i { font-size: 15px; color: var(--cyan); }
.assessment-nav__item em { min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 8.5px; font-style: normal; font-weight: 950; color: #031116; background: var(--green); text-align: center; }
.assessment-nav__item:hover { color: var(--text); background: rgba(93,236,255,.05); }
.assessment-nav__item.is-active { color: var(--text); border-color: var(--cyan); background: rgba(93,236,255,.09); }
.assessment-nav__toggle { margin: 8px 4px 2px; }
.assessment-section, .assessment-results { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,18,27,.76); }
.assessment-results { position: sticky; top: 84px; }
.assessment-fields { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.assessment-fields--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.assessment-field { display: grid; min-width: 0; gap: 5px; }
.assessment-field > span:first-child { color: var(--muted); font-size: 9.5px; font-weight: 850; line-height: 1.25; }
.assessment-field__input { position: relative; display: flex; align-items: center; }
.assessment-field__input input, .assessment-field__input select, .assessment-field textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: rgba(5,12,19,.72); font-size: 11.5px; font-weight: 750; }
.assessment-field__input em { position: absolute; right: 10px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 850; pointer-events: none; }
.assessment-field__input input:focus, .assessment-field__input select:focus, .assessment-field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(93,236,255,.07); }
.assessment-field__input input[type="date"] { color-scheme: dark; }
.assessment-field--wide textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.assessment-hint { margin: 10px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.assessment-divider { margin: 16px 0; border: 0; border-top: 1px dashed var(--line); }
.assessment-dyn { display: grid; gap: 6px; }
.assessment-dyn__head, .assessment-dyn__row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(90px,.8fr) minmax(90px,.8fr) 64px; align-items: center; gap: 8px; }
.assessment-dyn__head { padding: 0 4px 4px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.assessment-dyn__head span:not(:first-child), .assessment-dyn__delta { text-align: center; }
.assessment-dyn__row b { font-size: 10.5px; }
.assessment-dyn__delta { font-size: 10px; font-weight: 900; color: var(--green); }
.assessment-dyn__delta.is-warn { color: var(--orange); }
.assessment-custom { display: grid; gap: 8px; margin-top: 10px; }
.assessment-custom-row { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) 90px auto; gap: 8px; align-items: center; }
.assessment-custom-row input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: rgba(5,12,19,.72); font-size: 11px; }
.assessment-custom-row input:focus { border-color: var(--cyan); }
.assessment-photos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.assessment-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,12,19,.6); }
.assessment-photo__pending { position: absolute; top: 8px; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(8,12,24,.85); box-shadow: 0 0 0 1px rgba(93,236,255,.3); font-size: 15px; }
.assessment-photo img, .assessment-photo__empty { display: grid; width: 100%; aspect-ratio: 3 / 4; place-items: center; object-fit: cover; color: var(--muted); background: rgba(93,236,255,.04); }
.assessment-photo__empty i { font-size: 28px; }
.assessment-photo figcaption { display: grid; gap: 6px; padding: 8px; }
.assessment-photo figcaption b { font-size: 10px; }
.assessment-photo__actions { display: flex; gap: 6px; }
.assessment-photo__actions .secondary-button { flex: 1; min-height: 32px; padding: 0 8px; font-size: 9.5px; }
.assessment-photo__actions .secondary-button i { font-size: 13px; }
.assessment-result { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.assessment-result:last-child { border-bottom: 0; }
.assessment-result span { color: var(--muted); font-size: 9.5px; font-weight: 800; line-height: 1.3; }
.assessment-result b { display: grid; justify-items: end; font-size: 12px; color: var(--cyan); }
.assessment-result b small { font-size: 8.5px; font-weight: 800; color: var(--muted); }
.assessment-result.is-ok b { color: var(--green); }
.assessment-result.is-warn b { color: var(--orange); }
.assessment-result.is-danger b { color: var(--red); }
.assessment-result.is-ok b small { color: var(--green); }
.assessment-result.is-warn b small { color: var(--orange); }
.assessment-result.is-danger b small { color: var(--red); }
@media (max-width: 1180px) {
    .assessment-editor { grid-template-columns: 190px minmax(0,1fr); }
    .assessment-results { grid-column: 1 / -1; position: static; }
    .assessment-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .assessment-top { grid-template-columns: 1fr; margin-inline: 12px; }
    .assessment-editor { grid-template-columns: 1fr; margin-inline: 12px; }
    .assessment-nav { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
    .assessment-notice { margin-inline: 12px; }
    .assessment-photos { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .assessment-head { flex-direction: column; }
    .assessment-head__actions { justify-content: flex-start; }
    .assessment-overview { grid-template-columns: auto minmax(0,1fr); }
    .assessment-overview .secondary-button { grid-column: 1 / -1; }
    /* Editor header (assessments and plans): title and actions share one row on desktop, but
       three long buttons ("Preencher com IA", "Enviar questionário online", "Voltar") cannot sit
       next to a title on a phone — and flex: none pushed them off the right edge instead of
       wrapping, leaving them unreachable. Give the actions their own full-width row under the
       title, wrapping among themselves, like the topbar already does. The actions selector is
       doubled up on purpose: the base `.editor-head__actions { flex: none }` is declared later
       in this file, so a single-class rule here would lose the cascade and the row would stay
       glued to its content width instead of wrapping. */
    .editor-head { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
    .editor-head > div:first-child { flex: 1 1 100%; min-width: 0; }
    .editor-head .editor-head__actions { flex: 1 1 100%; flex-wrap: wrap; }
    .editor-head .editor-head__actions > * { flex: 1 1 auto; justify-content: center; }
    .editor-head > .secondary-button { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .assessment-fields, .assessment-fields--two, .assessment-nav { grid-template-columns: 1fr; }
    .assessment-custom-row { grid-template-columns: 1fr 1fr; }
    .assessment-dyn__head, .assessment-dyn__row { grid-template-columns: minmax(0,1fr) 70px 70px 48px; }
}

/* ---------- Federated login ---------- */
.login-providers { display: grid; gap: 9px; margin-top: 22px; }
.provider-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 900; line-height: 1.15; border: 1px solid transparent; transition: filter .15s ease, transform .15s ease; }
.provider-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.provider-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.provider-button--google { color: #1f1f1f; background: #ffffff; border-color: #d9dde3; }
.provider-button--apple { color: #ffffff; background: #000000; border-color: rgba(255,255,255,.18); }
.provider-button__mark { width: 18px; height: 18px; flex: none; }
.provider-button i { font-size: 20px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--muted); font-size: 11px; font-weight: 800; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-panel .login-error { min-height: 16px; margin: 12px 0 0; text-align: center; }

/* ---------- Admin shell (screens) ---------- */
.dashboard-main { width: min(100%, 1400px); padding: 14px 22px 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin-bottom: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.breadcrumb button { padding: 0; color: var(--cyan); background: none; font-size: 11px; font-weight: 800; }
.breadcrumb i { font-style: normal; opacity: .5; }
.breadcrumb span { color: var(--text); }
.screen-body { display: grid; gap: 14px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 6px 0 2px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; }
.page-head h1 .count { padding: 2px 9px; border-radius: 999px; font-size: 11px; color: var(--cyan); background: rgba(93,236,255,.12); }
.page-head p { max-width: 640px; margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.page-head__actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.page-head--person { align-items: center; }
.page-head--person .detail-person { display: flex; align-items: center; gap: 14px; }
.page-head--person .detail-person h1 { font-size: 22px; }
.page-head--person .detail-person p { margin: 2px 0 0; }
.avatar--lg { width: 52px; height: 52px; font-size: 16px; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.panel { padding: 16px; }
.panel--inner { padding: 14px; background: rgba(9,18,27,.6); }
.panel > .panel-head + * { margin-top: 12px; }
.detail-panel { min-height: 0; padding: 0 16px 16px; }
.detail-panel .detail-tabs { margin-top: 0; }
.detail-content { padding-top: 16px; }
.detail-content h3 { margin: 18px 0 10px; font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.kpi { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(13,27,39,.98), rgba(8,17,26,.98)); }
.kpi__icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(93,236,255,.08); }
.kpi__icon i { font-size: 20px; }
.kpi small, .kpi b, .kpi em { display: block; }
.kpi small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { margin-top: 3px; font-size: 20px; line-height: 1.1; }
.kpi em { margin-top: 3px; color: var(--muted); font-size: 9.5px; font-style: normal; font-weight: 750; }
.kpi--ok .kpi__icon { color: var(--green); background: rgba(53,229,166,.1); }
.kpi--warn .kpi__icon { color: var(--orange); background: rgba(255,159,42,.1); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: start; }
.grid-2--wide { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.mini-stats > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,18,27,.6); }
.mini-stats small, .mini-stats b, .mini-stats em { display: block; }
.mini-stats small { color: var(--muted); font-size: 9px; font-weight: 800; }
.mini-stats b { margin-top: 4px; font-size: 20px; }
.mini-stats em { margin-top: 2px; color: var(--muted); font-size: 9.5px; font-style: normal; }
.is-good { color: var(--green) !important; }
.is-bad { color: var(--orange) !important; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: 11px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; background: rgba(9,18,27,.85); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-clickable { cursor: pointer; }
.table tbody tr.is-clickable:hover { background: rgba(93,236,255,.05); }
.table td b { display: block; font-size: 11.5px; }
.table td small { display: block; color: var(--muted); font-size: 9.5px; }
.table td .row-actions { justify-content: flex-end; }
.table .secondary-button, .table .primary-button, .table .outline-pill { min-height: 32px; padding: 0 11px; font-size: 10px; }
.table .badge { white-space: nowrap; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { width: 34px; height: 34px; flex: none; font-size: 11px; }
.person span b { display: block; font-size: 11.5px; }
.person span small { display: block; color: var(--muted); font-size: 9.5px; }
.today-cell { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.today-cell i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 10px; color: var(--text); }
.today-cell i i { color: var(--cyan); font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.toolbar .dashboard-search { flex: 1 1 260px; max-width: 420px; }
.inline-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 14px; align-items: end; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(93,236,255,.04); }
.inline-form .form-field { margin-top: 0; }
.inline-form__actions { display: flex; gap: 8px; }
.inline-form .hint { grid-column: 1 / -1; margin: 0; }
.inline-form--charge { grid-template-columns: 1fr; }
/* One row for the plain fields (however many there are — the student picker only shows on the
   global billing screen), then the amount on its own row with the explanation beside it. Putting
   the hint inside a shared row made that column taller than the rest and knocked the whole line
   out of alignment. The column count is explicit rather than auto-fit, which leaves empty
   tracks parked on the right instead of letting the fields span the full width. */
.form-grid--charge { grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
.form-grid--charge-picker { grid-template-columns: repeat(4, minmax(0,1fr)); }
.form-grid--charge .form-field { margin-top: 0; }
.inline-form--charge .form-field input, .inline-form--charge .form-field select { min-height: 40px; padding: 8px 12px; }
.form-field--amount { grid-column: 1 / -1; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); grid-template-areas: 'label label' 'input hint'; align-items: center; column-gap: 12px; }
.form-field--amount > label { grid-area: label; }
.form-field--amount > input { grid-area: input; }
.form-field--amount > .form-hint { grid-area: hint; margin-top: 0; text-align: right; }
.billing-row__actions { display: flex; align-items: center; gap: 6px; }
.billing-row b .badge { margin-left: 6px; vertical-align: middle; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.empty-block { display: grid; min-height: 120px; place-items: center; padding: 20px; color: var(--muted); text-align: center; }
.empty-block p { margin: 0 0 8px; font-size: 11px; }
.empty-block.is-loading { gap: 6px; }
.spinner { display: block; width: 26px; height: 26px; border: 3px solid rgba(93,236,255,.15); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Day picker + day content */
.day-picker { margin-top: 4px; padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9,18,27,.6); }
.day-picker__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.day-picker__head small { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.day-picker__head b { font-size: 13px; text-transform: capitalize; }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-strip__day { display: grid; flex: none; width: 46px; justify-items: center; gap: 2px; padding: 7px 0 6px; border: 1px solid transparent; border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.02); }
.day-strip__day small { font-size: 8.5px; font-weight: 800; text-transform: uppercase; }
.day-strip__day b { font-size: 14px; color: var(--text); }
.day-strip__day.is-today { border-color: rgba(53,229,166,.35); }
.day-strip__day.is-selected { color: #031116; background: var(--cyan); border-color: var(--cyan); }
.day-strip__day.is-selected b { color: #031116; }
.day-strip__dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.day-strip__dot.is-on { background: var(--green); }
.day-strip__dot.is-strong { box-shadow: 0 0 0 2px rgba(53,229,166,.3); }
.day-strip__day.is-selected .day-strip__dot.is-on { background: #031116; }
.day-section { display: grid; gap: 10px; margin-top: 14px; }
.day-section .panel-head h3 { font-size: 12px; }
.day-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,18,27,.7); }
.day-item__head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.day-item__head > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: var(--cyan); background: rgba(93,236,255,.08); }
.day-item__head b { display: block; font-size: 11.5px; }
.day-item__head small { display: block; color: var(--muted); font-size: 9.5px; }
.day-item__value { color: var(--cyan); font-size: 12px; white-space: nowrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 9.5px; font-weight: 750; color: var(--muted); background: rgba(93,236,255,.04); }
.chip b { color: var(--text); }
.day-item__note { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 0; padding: 8px 10px; border: 1px solid rgba(255,159,42,.22); border-radius: 9px; color: var(--text); background: rgba(255,159,42,.05); font-size: 11px; line-height: 1.45; }
.day-item__note i { flex: none; margin-top: 1px; color: var(--orange); font-size: 14px; }
.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.goal-progress { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,18,27,.7); }
.goal-progress__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.goal-progress__head span { color: var(--muted); font-size: 9.5px; font-weight: 850; }
.goal-progress__head b { font-size: 14px; color: var(--series, var(--cyan)); }
.goal-progress__head b small { color: var(--muted); font-size: 9.5px; }
.goal-progress__track { height: 7px; border-radius: 999px; background: rgba(170,184,200,.14); overflow: hidden; }
.goal-progress__track i { display: block; height: 100%; border-radius: inherit; background: var(--series, var(--cyan)); transition: width .3s ease; }
.goal-progress.is-over .goal-progress__track i { background: var(--orange); }
.goals-form .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.goals-form .form-field { margin-top: 0; }
.goals-form .form-grid.form-grid--goals-inline { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.goals-form .form-grid.form-grid--goals-inline .primary-button { height: 46px; }
.form-field--inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.form-field--inline span { color: var(--muted); font-size: 10px; font-weight: 850; }
.form-field--inline select { min-width: 200px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: rgba(5,12,19,.72); font-size: 11px; }
.metric-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.metric-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 12px; }
.day-section .metric-grid { margin-top: 4px; }
.metric-grid--1 { grid-template-columns: 1fr; margin-top: 12px; }
.metric-grid .metric-card { min-height: 96px; }

/* Charts */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9.5px; font-weight: 800; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--series, var(--cyan)); }
.chart-scroll { overflow-x: auto; scrollbar-width: none; }
.chart-scroll::-webkit-scrollbar { display: none; }
.day-chart { display: block; width: auto; min-width: 100%; height: 170px; }
.day-chart__grid { stroke: rgba(170,184,200,.16); stroke-width: 1.5; stroke-dasharray: 4 8; }
.day-chart__selected { fill: rgba(93,236,255,.12); }
.day-chart__today { fill: rgba(53,229,166,.08); }
.day-chart__series polyline { fill: none; stroke: var(--series); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.day-chart__series circle { fill: #0b1722; stroke: var(--series); stroke-width: 2; }
.day-chart__series circle.is-selected { fill: var(--series); }
.day-chart__label { fill: var(--muted); font-size: 9px; font-weight: 800; text-anchor: middle; }
.day-chart__label.is-today { fill: var(--green); }
.day-chart__hit { fill: rgba(255,255,255,.001); cursor: pointer; }
.day-chart__empty { fill: var(--muted); font-size: 11px; font-weight: 800; text-anchor: middle; }
.bar-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 8px; height: 150px; align-items: end; padding: 6px 4px 0; }
.bar-chart__col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; height: 100%; min-width: 0; }
.bar-chart__col b { font-size: 9.5px; color: var(--text); }
.bar-chart__bar { display: block; width: min(100%, 34px); height: var(--h, 0%); min-height: 2px; align-self: end; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--series), color-mix(in srgb, var(--series) 45%, transparent)); }
.bar-chart__col small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 8.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

/* Pickers and full-page editors */
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.picker__item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; color: var(--text); background: rgba(9,18,27,.7); }
.picker__item:hover { border-color: var(--cyan); background: rgba(93,236,255,.06); }
.picker__item > i { color: var(--muted); }
.picker__item > .avatar { flex: none; }
.picker__item span b { display: block; font-size: 12px; }
.picker__item span small { display: block; color: var(--muted); font-size: 10px; }
.picker__grid--kinds .picker__item > i:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(93,236,255,.08); font-size: 20px; }
.editor-screen { width: 100%; margin: 0; padding: 0; overflow: visible; }
.editor-screen .editor-head { border-radius: 10px 10px 0 0; }
.editor-screen .editor-actions { border-radius: 0 0 10px 10px; }
.editor-screen .editor-head .secondary-button { min-height: 38px; padding: 0 14px; font-size: 11px; }
.editor-template-panel.editor-screen { width: min(100%, 640px); }
.assessment-panel.editor-screen { width: 100%; }

@media (max-width: 1180px) {
    .kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .grid-2, .grid-2--wide { grid-template-columns: 1fr; }
    .mini-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    /* A 1:1 copy of the app's own bottombar. Values come straight from the vendored library
       defaults (www/js/vendor/menu.js: .menujs-bottombar / -nav / -btn / -ic / -label) plus the
       app's overrides (www/css/app.css ~7932-7969) and the theme tokens they reference
       (www/css/theme/colors.css: --app-radial-gradient, --app-primary-dark, --app-border-strong).
       Only deliberate deviation: the bar is centered with left/right+margin auto instead of the
       app's translateX(-50%), because a transform on the bar would re-anchor the fixed-position
       "Mais" popover that lives inside it. Same 82px bar, 64px round buttons, same ring/glow. */
    .dashboard { padding-left: 0; padding-bottom: calc(8rem + env(safe-area-inset-bottom)); }
    .sidebar { position: fixed; z-index: 80; top: auto; right: 0; bottom: env(safe-area-inset-bottom); left: 0; display: block; width: min(calc(100% - 18px), 480px); height: 82px; margin-inline: auto; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 2.4rem; background: rgba(8,12,24,.94); box-shadow: 0 12px 28px rgba(0,0,0,.36); }
    .sidebar-logo, .sidebar-footer { display: none; }
    .sidebar-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; justify-content: center; gap: .15rem; padding: .48rem .34rem; }
    .sidebar-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .24rem; min-width: 0; min-height: 62px; height: 64px; padding: 7px 5px; border: 0; border-radius: 999px; color: #8a919f; background: transparent; box-shadow: none; font-size: 10px; font-weight: 900; line-height: 1.05; text-align: center; transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease; }
    .sidebar-nav button:active { transform: scale(.98); }
    .sidebar-nav button span { display: block; max-width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sidebar-nav i { display: inline-flex; width: 22px; height: 22px; flex: none; align-items: center; justify-content: center; color: currentColor; font-size: 19px; }
    .sidebar-nav button.is-active { color: #14b8d4; background: radial-gradient(circle at 50% 0%, rgba(93,236,255,.34) 0%, rgba(93,236,255,.14) 55%, rgba(93,236,255,.03) 100%); box-shadow: inset 0 0 0 1px rgba(93,236,255,.32); }
    .sidebar-nav button.sidebar-nav__more-item { display: none; }
    .sidebar-nav button.sidebar-nav__more-trigger { display: flex; }
    .dashboard-main { padding: 10px 12px 40px; }
    .topbar { flex-wrap: wrap; }
    .account-chip span { display: none; }
    .topbar-logout { display: inline-flex; }
    /* Same compact popover as the "..." gym menu on Agora (www/css/app.css .now-gym-menu):
       small, solid dark card, no title/close button, no dimming backdrop — a tap anywhere
       outside it just dismisses it (see the click handler in events.js). */
    .mobile-more-sheet { position: fixed; z-index: 91; right: max(16px, calc((100% - 480px) / 2 + 7px)); bottom: calc(90px + env(safe-area-inset-bottom)); display: grid; width: 148px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #17191c; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
    .mobile-more-sheet button[data-screen] { display: grid; grid-template-columns: 17px minmax(0,1fr); align-items: center; gap: 7px; min-height: 32px; padding: 0 7px; border-radius: 7px; color: rgba(238,242,248,.82); background: transparent; font-size: 10px; font-weight: 850; text-align: left; white-space: nowrap; }
    .mobile-more-sheet button[data-screen]:active { color: #fff; background: rgba(255,255,255,.07); }
    .mobile-more-sheet i { font-size: 14px; text-align: center; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .page-head__actions { justify-content: flex-start; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .goal-grid, .goals-form .form-grid, .metric-grid--3 { grid-template-columns: 1fr 1fr; }
    .inline-form { grid-template-columns: 1fr; }
    .form-grid--charge { grid-template-columns: 1fr 1fr; }
    /* Too narrow to sit the hint next to the input: stack it back under the field. */
    .form-field--amount { grid-template-columns: minmax(0,1fr); grid-template-areas: 'label' 'input' 'hint'; }
    .form-field--amount > .form-hint { text-align: left; }
}
@media (max-width: 600px) {
    .kpi-grid, .goal-grid, .goals-form .form-grid, .metric-grid--3 { grid-template-columns: 1fr; }
    .bar-chart { gap: 4px; }
}
@media (max-width: 380px) {
    .goals-form .form-grid.form-grid--goals-inline { grid-template-columns: 1fr; }
}
/* Grid children must be allowed to shrink so day strips and charts scroll instead of widening the page. */
.dashboard { overflow-x: hidden; }
.dashboard-main, .screen-body, .screen-body > *, .panel, .grid-2 > *, .day-section, .detail-content, .detail-content > *, .chart-scroll, .day-picker, .assessment-evolution, .assessment-chart { min-width: 0; max-width: 100%; }

/* Assessment AI fill */
.editor-head__actions { display: flex; flex: none; gap: 8px; }
.assessment-ai-button { color: #a855f7; border-color: rgba(168,85,247,.4); background: rgba(168,85,247,.06); }
.assessment-ai-button i { color: #a855f7; }

/* ---------- Landing: features showcase (public site only; nothing here touches the shell) ---------- */
.features-section { position: relative; padding: 72px max(24px, calc((100% - 1400px) / 2)) 80px; border-top: 1px solid var(--line); background: radial-gradient(circle at 12% 0%, rgba(93,236,255,.09), transparent 34%), radial-gradient(circle at 92% 70%, rgba(53,229,166,.06), transparent 30%), #060d14; }
.features-head { max-width: 760px; margin: 0 0 44px; }
.features-head h2 { margin: 6px 0 0; font-size: clamp(31px, 4.4vw, 50px); letter-spacing: -0.04em; line-height: 1.02; }
.features-head p { margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); font-weight: 650; line-height: 1.55; }
.feature-block__kicker { display: inline-block; color: var(--cyan); font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.feature-block { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature-block:first-of-type { border-top: 0; }
.feature-block.is-flipped .feature-block__copy { order: 2; }
.feature-block__copy h3 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.08; }
.feature-block__copy p { margin: 14px 0 0; color: var(--muted); font-size: 16px; font-weight: 650; line-height: 1.6; }
.feature-block__icon { display: grid; width: 54px; height: 54px; margin-bottom: 18px; place-items: center; border: 1px solid rgba(93,236,255,.28); border-radius: 14px; color: var(--cyan); background: rgba(93,236,255,.08); box-shadow: 0 0 28px rgba(93,236,255,.12); }
.feature-block__icon i { font-size: 27px; }
.feature-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.feature-stat { padding: 14px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9,18,27,.82); text-align: center; }
.feature-stat b { display: block; font-size: 30px; letter-spacing: -0.04em; line-height: 1; color: var(--cyan); }
.feature-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 10.5px; font-weight: 800; line-height: 1.25; }
.feature-block__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-block__list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: rgba(9,18,27,.82); font-size: 14px; font-weight: 650; line-height: 1.5; }
.feature-block__list li i { flex: none; margin-top: 2px; color: var(--green); font-size: 16px; }
.feature-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--line); }
.feature-extra { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9,18,27,.82); }
.feature-extra i { height: 30px; color: var(--cyan); font-size: 26px; line-height: 30px; }
.feature-extra b { font-size: 16px; letter-spacing: -0.01em; }
.feature-extra span { color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.5; }
@media (max-width: 1120px) {
    .feature-block { grid-template-columns: 1fr; gap: 26px; }
    .feature-block.is-flipped .feature-block__copy { order: 0; }
    .feature-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .features-section { padding-top: 52px; padding-bottom: 56px; }
    .feature-block { padding: 30px 0; }
    .feature-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-extras { grid-template-columns: 1fr; margin-top: 36px; padding-top: 30px; }
}

/* ---------- Landing: welcome offer in gold — pill, band and plan tags only (public site only) ---------- */
/* The offer's three touchpoints share one gold: this pill above the hero headline, the promo
   band, and the tag on each plan card. Nothing else on the site uses it. */
.promo-pill { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 7px 14px 7px 10px; border: 1px solid rgba(255,214,110,.55); border-radius: 999px; color: #1a1200; background: linear-gradient(135deg, #ffe08a 0%, #f2c14e 55%, #d9a520 100%); box-shadow: 0 8px 24px rgba(242,193,78,.28), inset 0 1px 0 rgba(255,255,255,.55); font-size: 12px; font-weight: 950; letter-spacing: .02em; text-transform: uppercase; }
.promo-pill i { font-size: 17px; }
.promo-band { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px 30px; align-items: center; margin: 0 0 34px; padding: 22px 26px; border: 1px solid rgba(255,214,110,.42); border-radius: 16px; background: linear-gradient(135deg, rgba(242,193,78,.14), rgba(9,18,27,.92) 42%), rgba(9,18,27,.92); box-shadow: 0 0 0 1px rgba(242,193,78,.08), 0 18px 50px rgba(0,0,0,.35), 0 0 44px rgba(242,193,78,.10); }
.promo-band::before { position: absolute; inset: 0; content: ""; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at 8% 50%, rgba(255,224,138,.16), transparent 32%); }
.promo-band__emblem { position: relative; display: grid; width: 118px; height: 118px; place-items: center; align-content: center; gap: 0; border-radius: 50%; color: #1a1200; background: radial-gradient(circle at 35% 30%, #fff1b8, #f2c14e 45%, #b8860b 100%); box-shadow: 0 0 0 5px rgba(9,18,27,.92), 0 0 0 6px rgba(242,193,78,.7), 0 14px 34px rgba(242,193,78,.35), inset 0 -6px 14px rgba(120,80,0,.35), inset 0 3px 8px rgba(255,255,255,.55); }
.promo-band__emblem i { font-size: 22px; margin-bottom: -2px; }
.promo-band__emblem b { font-size: 40px; letter-spacing: -0.05em; line-height: 1; }
.promo-band__emblem small { font-size: 9.5px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.promo-band__kicker { display: inline-block; color: #f2c14e; font-size: 11px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.promo-band__copy h3 { margin: 6px 0 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
.promo-band__copy p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 650; line-height: 1.55; }
.promo-band__copy em { display: block; margin-top: 8px; color: rgba(191,203,218,.72); font-size: 11.5px; font-style: normal; font-weight: 700; }
.promo-band__cta { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 22px; border: 1px solid rgba(255,214,110,.6); border-radius: 12px; color: #1a1200; background: linear-gradient(135deg, #ffe08a, #f2c14e 60%, #d9a520); box-shadow: 0 10px 26px rgba(242,193,78,.3), inset 0 1px 0 rgba(255,255,255,.55); font-size: 14px; font-weight: 950; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.promo-band__cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.promo-band__cta i { font-size: 19px; }
.module-card.module-card { position: relative; }
.module-card__trial { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid rgba(255,214,110,.55); border-radius: 999px; color: #1a1200; background: linear-gradient(135deg, #ffe08a, #f2c14e 60%, #d9a520); box-shadow: 0 6px 16px rgba(242,193,78,.28); font-size: 10.5px; font-weight: 950; letter-spacing: .03em; text-transform: uppercase; }
.module-card__trial i { font-size: 13px; }
.site-nav a i { margin-left: 4px; font-size: 12px; opacity: .7; }
@media (max-width: 1120px) {
    .promo-band { grid-template-columns: auto minmax(0, 1fr); }
    .promo-band__cta { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 760px) {
    .promo-band { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; }
    .promo-band__emblem { width: 104px; height: 104px; }
    .promo-band__emblem b { font-size: 36px; }
    .promo-band__cta { width: 100%; }
    .promo-pill { font-size: 11px; }
}

/* ---------- Invite: "Adicionar usuário" panel (e-mail or link) ---------- */
.invite-panel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 18px 22px; }
.invite-panel__col { display: grid; gap: 10px; min-width: 0; }
.invite-panel__col h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.invite-panel__col h3 i { color: var(--cyan); font-size: 18px; }
.invite-panel__col .hint { margin: 0; }
.invite-panel__col .form-field { margin-top: 0; }
.invite-panel__or { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.invite-panel__or::before, .invite-panel__or::after { content: ''; flex: 1; width: 1px; background: var(--line); }
.invite-panel__footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.invite-link { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-link__url { flex: 1 1 220px; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--cyan); background: rgba(5,12,19,.72); font-size: 13px; font-weight: 800; }
.invite-link__rotate { display: inline-flex; align-items: center; gap: 5px; justify-self: start; font-size: 11.5px; }
@media (max-width: 900px) {
    .invite-panel { grid-template-columns: 1fr; }
    .invite-panel__or { flex-direction: row; }
    .invite-panel__or::before, .invite-panel__or::after { width: auto; height: 1px; }
}

/* ---------- Pending user (invite not accepted yet) ---------- */
.pending-notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border: 1px solid rgba(255,159,42,.32); border-radius: 12px; background: rgba(255,159,42,.07); }
.pending-notice > i { flex: none; color: var(--orange); font-size: 22px; }
.pending-notice b { display: block; font-size: 13.5px; }
.pending-notice p { margin: 4px 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 650; line-height: 1.5; }
.pending-notice small { color: var(--soft); font-size: 11px; font-weight: 700; }
.text-link--danger { color: var(--red); }

/* ---------- Invite landing (pro.draviafit.com/c/<code>) ---------- */
.invite-shell { min-height: 100vh; background: radial-gradient(circle at 50% 0%, rgba(93,236,255,.12), transparent 38%), var(--bg); }
.invite-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; margin: 0 auto; padding: 22px 20px 6px; }
.invite-top__logo { width: 124px; }
.invite-page { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; padding: 12px 20px 48px; }
.invite-card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(160deg, rgba(13,27,39,.96), rgba(7,15,23,.98)); box-shadow: var(--shadow); }
.invite-card h1 { margin: 0; font-size: clamp(18px, 5vw, 23px); letter-spacing: -0.03em; line-height: 1.15; }
.invite-card h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.invite-card p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.55; }
.invite-card--hero { justify-items: center; text-align: center; }
.invite-card--center { justify-items: center; text-align: center; min-height: 160px; align-content: center; }
.invite-card--center > i { color: var(--muted); font-size: 34px; }
.invite-avatar { display: grid; width: 76px; height: 76px; place-items: center; overflow: hidden; border: 2px solid rgba(93,236,255,.45); border-radius: 50%; color: #031116; background: linear-gradient(135deg, var(--cyan), #2cc8e2); box-shadow: 0 0 26px rgba(93,236,255,.25); font-size: 24px; font-weight: 950; }
.invite-avatar img { width: 100%; height: 100%; object-fit: cover; }
.invite-card .login-providers { margin-top: 2px; }
.invite-card .form-field { margin-top: 10px; }
.invite-submit { width: 100%; margin-top: 16px; }
.invite-switch { justify-self: center; }
.invite-card .login-error { min-height: 0; margin: 0; color: var(--red); text-align: center; font-size: 12.5px; font-weight: 800; }
.invite-card--confirm, .invite-card--done { justify-items: center; text-align: center; }
.invite-confirm__icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(93,236,255,.1); font-size: 28px; }
.invite-confirm__icon.is-good { color: var(--green); background: rgba(53,229,166,.12); }
.invite-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; margin-top: 6px; }
.invite-actions > * { flex: 1 1 160px; }
.invite-signed { font-size: 12px !important; }
.invite-signed .text-link { font-size: 12px; }
/* Same badges as draviafit.com (site/styles.css .store-button). */
.invite-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.official-store { display: inline-flex; align-items: center; gap: 11px; min-height: 58px; min-width: 180px; padding: 9px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #fff; background: linear-gradient(180deg, #171c24 0%, #080c12 100%); box-shadow: 0 14px 34px rgba(0,0,0,.26); text-align: left; transition: transform .15s ease; }
.official-store:hover { transform: translateY(-1px); }
.official-store i { width: 30px; font-size: 29px; }
.official-store span { display: grid; gap: 2px; line-height: 1; }
.official-store small { color: rgba(255,255,255,.74); font-size: 11px; font-weight: 650; }
.official-store strong { color: #fff; font-size: 16px; font-weight: 850; }
@media (max-width: 420px) {
    .invite-card { padding: 20px 16px; }
    .official-store { flex: 1 1 100%; }
}

/* AI-agent authorization page (/agent): consent card, connection code, connected agents. */
.agent-hero__icon { font-size: 30px; }
.agent-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,12,19,.5); }
.agent-account__avatar { width: 44px; height: 44px; font-size: 15px; box-shadow: none; }
.agent-account__text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.agent-account__text b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.agent-account__text small { overflow: hidden; color: var(--muted); font-size: 11.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.agent-consent__lead { font-size: 13.5px !important; }
.agent-scopes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agent-scopes li { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.45; }
.agent-scopes li i { flex: none; margin-top: 2px; color: var(--green); font-size: 16px; }
.agent-plan { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(93,236,255,.06); color: var(--muted); font-size: 12.5px !important; line-height: 1.45 !important; }
.agent-plan i { flex: none; margin-top: 1px; color: var(--cyan); font-size: 16px; }
.agent-plan--good { background: rgba(53,229,166,.08); }
.agent-plan--good i { color: var(--green); }
.agent-plan--warn { background: rgba(255,120,120,.08); }
.agent-plan--warn i { color: var(--red); }
.agent-consent__foot { font-size: 12px !important; text-align: center; }
.agent-code { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.agent-code__value { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--cyan); background: rgba(5,12,19,.72); font: 800 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .01em; }
.agent-code__hint { font-size: 12.5px !important; }
.agent-connections h2 { font-size: 15px; }
.agent-connections__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agent-connections__list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,12,19,.5); }
.agent-connections__icon { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--cyan); background: rgba(93,236,255,.1); font-size: 16px; }
.agent-connections__text { display: grid; flex: 1; min-width: 0; gap: 1px; }
.agent-connections__text b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.agent-connections__text small { color: var(--muted); font-size: 11px; font-weight: 700; }
