:root {
  --ui-red: #ef3340;
  --ui-red-600: #cf2035;
  --ui-red-800: #99152a;
  --ui-red-950: #5f0c1b;
  --ink: #1d1c24;
  --ink-soft: #55535f;
  --paper: #ffffff;
  --canvas: #f7f5f3;
  --line: #e8e3df;
  --gold: #c8a15a;
  --success: #20785b;
  --warning: #a35e08;
  --info: #315b8a;
  --shadow-sm: 0 8px 28px rgba(43, 25, 28, .08);
  --shadow-lg: 0 26px 70px rgba(62, 16, 24, .18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --sidebar: 272px;
  --font-ui: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --font-brand: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(239, 51, 64, .28); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-credit { padding: 22px 28px; color: #77717a; background: #f2efed; text-align: center; font-size: .78rem; }
.site-credit a { color: var(--ui-red-800); font-weight: 750; text-decoration: none; }
.app-shell .site-credit { margin-left: var(--sidebar); }
.password-help { display: block; margin-top: -4px; color: var(--ui-red-800); text-align: center; font-size: .88rem; font-weight: 700; text-decoration: none; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; background: #fff; padding: 12px 18px; border-radius: 8px; color: var(--ui-red-800); font-weight: 700; }
.skip-link:focus { top: 16px; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { line-height: 1.25; }
.muted { color: var(--ink-soft); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--ui-red-600); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.72); }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 52px; padding: 14px 24px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--ui-red) 0%, var(--ui-red-600) 100%); box-shadow: 0 12px 25px rgba(207, 32, 53, .22); }
.btn-primary:hover { box-shadow: 0 15px 30px rgba(207, 32, 53, .3); }
.btn-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-warning { color: #7d4300; background: #fff4da; border-color: #efd39a; }
.btn-light { color: var(--ui-red-800); background: #fff; box-shadow: 0 12px 32px rgba(65, 7, 16, .18); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.08); }

/* Public landing */
.public-main { min-height: 100vh; background: #fff; }
.landing-hero { min-height: 760px; color: #fff; background:
  radial-gradient(circle at 85% 14%, rgba(239,51,64,.2), transparent 28%),
  linear-gradient(132deg, #12141a 0%, #20232b 54%, #2d3039 100%); position: relative; overflow: hidden; }
.landing-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -210px; bottom: -240px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.03), 0 0 0 160px rgba(255,255,255,.025); }
.public-nav { max-width: 1240px; height: 96px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.public-brand img { width: 240px; max-height: 64px; object-fit: contain; object-position: left center; }
.public-actions { display: flex; align-items: center; gap: 18px; }
.text-link-light { color: #fff; text-decoration: none; font-weight: 700; }
.hero-grid { max-width: 1240px; margin: 0 auto; padding: 72px 28px 110px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero-copy h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 720; letter-spacing: -.055em; }
.hero-copy > p { max-width: 650px; color: rgba(255,255,255,.82); font-size: 1.18rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; color: rgba(255,255,255,.74); font-size: .83rem; font-weight: 650; }
.hero-visual { min-height: 510px; position: relative; display: grid; place-items: center; }
.cv-sheet { width: min(410px, 88%); min-height: 495px; padding: 30px; color: var(--ink); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.65); border-radius: 22px; box-shadow: 0 40px 90px rgba(47, 5, 13, .34); transform: rotate(2.5deg); }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head > div:nth-child(2) { display: grid; gap: 7px; flex: 1; }
.sheet-head b, .sheet-head span, .sheet-section div span { display: block; height: 8px; border-radius: 20px; background: #e8e5e2; }
.sheet-head b { width: 58%; background: #cbc5c2; }
.sheet-head span { width: 38%; }
.sheet-avatar { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, #f5d6d9, #e9939c); }
.sheet-head em { color: var(--ui-red-600); font-style: normal; font-weight: 850; }
.sheet-progress { height: 7px; margin: 24px 0 26px; background: #f0ecea; border-radius: 20px; overflow: hidden; }
.sheet-progress i { display: block; width: 86%; height: 100%; background: var(--ui-red); }
.sheet-section { display: grid; grid-template-columns: 42px 1fr 25px; gap: 14px; align-items: center; padding: 18px 2px; border-bottom: 1px solid #eee9e6; }
.sheet-section > i { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f1; border-radius: 10px; font-style: normal; font-size: .75rem; font-weight: 850; }
.sheet-section div { display: grid; gap: 7px; }
.sheet-section div b { font-size: .88rem; }
.sheet-section div span { width: 76%; height: 6px; }
.sheet-section div span:last-child { width: 52%; }
.sheet-section > strong { color: var(--success); }
.sheet-section.active { margin: 8px -12px 0; padding: 18px 14px; background: #fff5f5; border-radius: 14px; border: 1px solid #f8d6da; }
.sheet-section.active > strong { color: var(--ui-red); }
.floating-note { position: absolute; left: -5px; bottom: 25px; display: flex; align-items: center; gap: 12px; padding: 13px 18px; color: var(--ink); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
.floating-note > span { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--ui-red); border-radius: 10px; font-family: var(--font-brand); font-weight: 800; }
.floating-note div { display: grid; }
.floating-note small { color: var(--ink-soft); }
.landing-section { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-intro { max-width: 720px; margin-bottom: 48px; }
.section-intro > p { color: var(--ink-soft); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { min-height: 250px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-card > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f1; border-radius: 50%; font-weight: 850; font-size: .75rem; }
.feature-card h3 { margin: 42px 0 12px; font-size: 1.14rem; }
.feature-card p { color: var(--ink-soft); }
.landing-cta { max-width: 1180px; margin: 0 auto 90px; padding: 45px 52px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 34px; color: #fff; background: linear-gradient(135deg, #191b22, #30333c); border: 1px solid rgba(239,51,64,.2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.landing-cta img { max-height: 94px; }
.landing-cta h2 { max-width: 650px; margin: 0; }

/* Authentication */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .9fr) 1.1fr; }
.auth-story { min-height: 100vh; padding: 54px clamp(34px, 6vw, 88px); display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(circle at 20% 20%, rgba(239,51,64,.18), transparent 28%), linear-gradient(150deg, #14161c, #292c35); }
.auth-logo img { width: 260px; max-height: 78px; object-fit: contain; object-position: left; }
.auth-story > div { max-width: 540px; }
.auth-story h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
.auth-story p { color: rgba(255,255,255,.78); font-size: 1.1rem; }
.auth-story > small { color: rgba(255,255,255,.6); font-family: var(--font-brand); font-style: italic; }
.signup-story { background: radial-gradient(circle at 80% 14%, rgba(239,51,64,.2), transparent 27%), linear-gradient(145deg, #15171d, #30333c); }
.auth-panel { display: grid; place-items: center; padding: 50px 30px; background: #fbfaf9; }
.auth-card { width: min(440px, 100%); }
.auth-card-wide { width: min(520px, 100%); }
.auth-card h2 { margin-bottom: 10px; font-size: 2rem; }
.auth-switch { margin-top: 25px; text-align: center; color: var(--ink-soft); }
.auth-switch a { color: var(--ui-red-600); font-weight: 750; }

/* Forms */
.form-stack { display: grid; gap: 19px; margin-top: 30px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; color: #393640; font-size: .86rem; font-weight: 750; }
.field label span { color: var(--ui-red); }
.form-control, .form-select { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #dcd6d2; border-radius: 10px; transition: border .2s ease, box-shadow .2s ease; }
textarea.form-control { min-height: 112px; resize: vertical; }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--ui-red); box-shadow: 0 0 0 4px rgba(239,51,64,.1); }
.has-error .form-control, .has-error .form-select { border-color: var(--ui-red); }
.field-error { display: block; margin-top: 5px; color: #b20f27; font-size: .78rem; font-weight: 650; }
.help-text { display: block; margin-top: 6px; color: #77717a; font-size: .76rem; }
.help-text ul { margin: 6px 0 0 18px; padding: 0; }
.form-alert { padding: 12px 14px; color: #891125; background: #fff0f2; border: 1px solid #ffd1d7; border-radius: 10px; }

/* Application shell */
.app-shell { background: var(--canvas); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; color: #fff; background: linear-gradient(180deg, #171920 0%, #242730 58%, #15171d 100%); box-shadow: 12px 0 40px rgba(20, 21, 26, .15); }
.sidebar-brand { min-height: 112px; padding: 24px 25px 16px; display: flex; align-items: center; }
.sidebar-brand img { width: 210px; max-height: 67px; object-fit: contain; object-position: left; }
.sidebar-caption { margin: 0 22px 17px; padding: 10px 12px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 6px 14px; overflow-y: auto; }
.nav-item { min-height: 45px; margin: 3px 0; padding: 10px 12px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 650; transition: .18s ease; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.11); }
.nav-item.active { box-shadow: inset 3px 0 0 #fff; }
.nav-icon { width: 22px; text-align: center; font-size: 1.1rem; }
.sidebar-footer { padding: 16px 20px 22px; border-top: 1px solid rgba(255,255,255,.1); }
.user-mini { display: flex; align-items: center; gap: 10px; }
.user-mini > span:last-child { display: grid; min-width: 0; }
.user-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.user-mini small { color: rgba(255,255,255,.58); font-size: .7rem; }
.avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ui-red-800); background: #fff; border-radius: 50%; font-weight: 850; }
.avatar.dark { color: #fff; background: var(--ui-red-800); }
.avatar.xl { width: 72px; height: 72px; font-size: 1.5rem; }
.logout-link { margin: 12px 0 0 48px; padding: 0; color: rgba(255,255,255,.62); background: none; border: 0; font-size: .75rem; cursor: pointer; }
.mobile-header { display: none; }
.app-main { min-height: 100vh; margin-left: var(--sidebar); padding: 56px clamp(28px, 4vw, 68px) 90px; }
.page-header { max-width: 1180px; margin: 0 auto 34px; }
.page-header > div:first-child { max-width: 780px; }
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--ink-soft); font-size: 1rem; }
.page-header.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.back-link { display: block; margin-bottom: 26px; color: var(--ink-soft); text-decoration: none; font-size: .83rem; font-weight: 650; }
.message-stack { position: fixed; z-index: 100; top: 22px; right: 22px; width: min(410px, calc(100% - 44px)); display: grid; gap: 8px; }
.message { padding: 14px 42px 14px 16px; position: relative; color: #fff; background: #33303a; border-radius: 11px; box-shadow: var(--shadow-lg); font-weight: 600; }
.message.success { background: var(--success); }
.message.error { background: #ad1730; }
.message.info { background: var(--info); }
.message button { position: absolute; right: 9px; top: 8px; color: #fff; background: transparent; border: 0; font-size: 1.2rem; cursor: pointer; }

/* Dashboard */
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.status-chip { width: max-content; min-height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; color: #5e5961; background: #ede9e6; border-radius: 50px; font-size: .74rem; font-weight: 800; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: #9f9893; }
.status-submitted, .status-in_review { color: #244f7e; background: #e8f2fc; }
.status-submitted i, .status-in_review i { background: #3a78b3; }
.status-observed { color: #8d510a; background: #fff0d5; }
.status-observed i { background: #d98a1f; }
.status-approved { color: #176047; background: #dff4eb; }
.status-approved i { background: #26906d; }
.progress-hero { max-width: 1180px; min-height: 250px; margin: 0 auto 26px; padding: 38px 48px; display: flex; align-items: center; justify-content: space-between; gap: 36px; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(239,51,64,.18), transparent 30%), linear-gradient(130deg, #171920, #30333c); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.progress-copy { max-width: 660px; }
.progress-copy h2 { margin-bottom: 12px; }
.progress-copy > p { max-width: 620px; margin: 0; color: rgba(255,255,255,.75); }
.observation-callout { margin-top: 18px; padding: 13px 15px; background: rgba(255,255,255,.1); border-radius: 10px; }
.observation-callout p { margin: 5px 0 0; font-size: .85rem; }
.progress-ring { --p: calc(var(--progress) * 1%); width: 150px; height: 150px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#fff var(--p), rgba(255,255,255,.17) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 10px; background: #242730; border-radius: 50%; }

@media (max-width: 767px) {
  .app-shell .site-credit { margin-left: 0; }
}
.progress-ring div { position: relative; display: grid; text-align: center; }
.progress-ring strong { font-size: 2rem; }
.progress-ring span { color: rgba(255,255,255,.65); font-size: .7rem; }
.dashboard-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 24px; }
.section-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.journey-card { min-height: 168px; padding: 24px; display: grid; grid-template-columns: 42px 1fr 24px; gap: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: .22s ease; }
.journey-card:hover { transform: translateY(-3px); border-color: #efc5ca; box-shadow: var(--shadow-sm); }
.journey-index { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f2; border-radius: 11px; font-size: .74rem; font-weight: 850; }
.journey-card h3 { margin: 3px 0 7px; font-size: 1rem; }
.journey-card p { margin-bottom: 12px; color: var(--ink-soft); font-size: .82rem; }
.journey-card small { color: var(--ui-red-600); font-weight: 750; }
.journey-card > b { color: #a29b98; font-size: 1.2rem; }
.journey-card.research .journey-index { color: #315b8a; background: #edf5fc; }
.journey-card.extension .journey-index { color: #197158; background: #eaf7f2; }
.dashboard-aside { display: grid; align-content: start; gap: 14px; }
.aside-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card h3 { margin: 14px 0 8px; }
.aside-card p { color: var(--ink-soft); font-size: .84rem; }
.aside-card a:not(.btn) { color: var(--ui-red-600); font-size: .82rem; font-weight: 800; }
.mini-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--ui-red); border-radius: 10px; font-family: var(--font-brand); font-weight: 800; }
.submit-card { background: #f2eeeb; }

/* Internal forms and records */
.content-narrow { max-width: 900px; margin: 0 auto; }
.content-wide { max-width: 1180px; margin: 0 auto; }
.premium-form { display: grid; gap: 18px; }
.form-section { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-section-head { margin-bottom: 28px; display: flex; gap: 14px; align-items: flex-start; }
.form-section-head > span { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f1; border-radius: 10px; font-size: .72rem; font-weight: 850; }
.form-section-head h2 { margin: 0 0 4px; font-size: 1.14rem; }
.form-section-head p { margin: 0; color: var(--ink-soft); font-size: .82rem; }
.form-grid { display: grid; gap: 21px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid.two .field:has(textarea), .form-grid.two .field:has(input[type=file]), .form-grid.two .field:has(input[type=checkbox]) { grid-column: 1 / -1; }
.check-list { display: grid; gap: 10px; }
.check-card { min-height: 58px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 12px; background: #faf8f6; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.check-card input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--ui-red); }
.check-card strong { font-size: .84rem; }
.sticky-actions { padding: 16px 0; display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; z-index: 5; background: linear-gradient(transparent, var(--canvas) 25%); }
.record-stack { display: grid; gap: 12px; }
.record-card { padding: 24px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.record-marker span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f1; border-radius: 11px; font-size: .75rem; font-weight: 850; }
.record-top { display: flex; justify-content: space-between; gap: 25px; }
.record-top h2 { margin-bottom: 5px; font-size: 1.08rem; }
.record-meta { color: var(--ink-soft); font-size: .82rem; }
.record-content > p { color: var(--ink-soft); font-size: .86rem; }
.record-actions { display: flex; gap: 12px; }
.record-actions a, .record-actions button { padding: 0; color: var(--ui-red-600); background: none; border: 0; text-decoration: underline; font-size: .78rem; font-weight: 700; cursor: pointer; }
.evidence-link { color: var(--info); font-size: .78rem; font-weight: 750; }
.empty-state { min-height: 350px; padding: 50px 30px; display: grid; place-items: center; align-content: center; text-align: center; background: #fff; border: 1px dashed #d5cdc8; border-radius: var(--radius-lg); }
.empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; color: var(--ui-red); background: #fff0f2; border-radius: 50%; font-size: 1.5rem; }
.empty-state h2 { margin: 20px 0 8px; }
.empty-state p { color: var(--ink-soft); }
.documents-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; }
.document-list, .upload-card { padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.document-list > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.document-list > h2 span { padding: 2px 8px; color: var(--ui-red-600); background: #fff0f1; border-radius: 20px; font-size: .72rem; }
.document-card { min-height: 70px; display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 13px; border-top: 1px solid var(--line); }
.file-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f1; border-radius: 9px; font-size: .62rem; font-weight: 850; }
.document-card h3 { margin: 0 0 2px; font-size: .88rem; }
.document-card p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.document-card > a, .document-card button { color: var(--ui-red-600); background: none; border: 0; text-decoration: none; font-size: 1.1rem; cursor: pointer; }
.upload-card { position: sticky; top: 25px; }
.upload-card h2 { font-size: 1.3rem; }
.upload-card > p { color: var(--ink-soft); font-size: .82rem; }

/* Review */
.review-summary { display: grid; text-align: right; }
.review-summary strong { color: var(--ui-red); font-size: 2.2rem; line-height: 1; }
.review-summary span { color: var(--ink-soft); font-size: .75rem; }
.filter-bar { margin-bottom: 15px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.filter-bar label { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.filter-bar input { width: 280px; }
.review-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.review-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.review-table th { padding: 15px 18px; color: #6c666c; background: #faf8f7; border-bottom: 1px solid var(--line); text-align: left; font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.review-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: .84rem; }
.review-table tbody tr:last-child td { border-bottom: 0; }
.teacher-cell { display: flex; align-items: center; gap: 10px; }
.teacher-cell > span:last-child { display: grid; }
.teacher-cell small { color: var(--ink-soft); font-size: .72rem; }
.table-action { color: var(--ui-red-600); font-weight: 750; text-decoration: none; }
.review-detail-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
.dossier { display: grid; gap: 14px; }
.dossier-hero, .dossier-section { padding: 29px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.dossier-hero { display: flex; gap: 20px; }
.dossier-hero h2 { margin-bottom: 5px; }
.dossier-hero p { color: var(--ink-soft); }
.profile-links { display: flex; gap: 15px; }
.profile-links a { color: var(--ui-red-600); font-size: .8rem; font-weight: 750; }
.dossier-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dossier-title span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ui-red-600); background: #fff0f1; border-radius: 9px; font-size: .7rem; font-weight: 850; }
.dossier-title h2 { margin: 0; font-size: 1.15rem; }
.dossier-row { padding: 14px 0; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.dossier-row h3 { margin: 0 0 4px; font-size: .9rem; }
.dossier-row p, .dossier-row small { margin: 0; color: var(--ink-soft); font-size: .76rem; }
.dossier-row a { color: var(--info); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.emphasis-research { border-left: 4px solid #4b79a7; }
.emphasis-extension { border-left: 4px solid #31856b; }
.evaluation-panel { position: relative; }
.evaluation-sticky { padding: 29px; position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.evaluation-sticky h2 { margin-bottom: 7px; }
.evaluation-sticky > p { color: var(--ink-soft); font-size: .8rem; }
.evaluation-form { display: grid; gap: 20px; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.score-field { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: end; background: #faf8f7; border: 1px solid var(--line); border-radius: 10px; }
.score-field > span { grid-column: 1 / -1; font-size: .72rem; font-weight: 750; }
.score-field input { width: 70px; min-height: 40px; padding: 8px; border: 1px solid #d8d1cd; border-radius: 8px; font-weight: 850; }
.score-field small { color: var(--ink-soft); font-size: .7rem; }
.score-field em { grid-column: 1 / -1; color: var(--ui-red-600); font-size: .68rem; }
.total-score { padding: 15px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: var(--ui-red-800); border-radius: 11px; }
.total-score span { font-size: .78rem; font-weight: 750; }
.total-score strong { font-size: 1.7rem; }
.total-score small { font-size: .7rem; }
.evaluation-actions { display: grid; gap: 8px; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-aside { grid-template-columns: repeat(2, 1fr); }
  .documents-layout { grid-template-columns: 1fr; }
  .upload-card { position: static; }
  .review-detail-grid { grid-template-columns: 1fr; }
  .evaluation-sticky { position: static; }
}

@media (max-width: 880px) {
  :root { --sidebar: 280px; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { height: 66px; padding: 10px 17px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
  .mobile-header img { width: 160px; max-height: 45px; object-fit: contain; }
  .menu-toggle { min-height: 42px; padding: 8px 12px; color: var(--ui-red-800); background: #fff0f1; border: 0; border-radius: 9px; font-weight: 750; }
  .app-main { margin-left: 0; padding: 35px 18px 75px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 35px; }
  .hero-visual { min-height: 430px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 360px; }
  .auth-panel { padding: 55px 24px; }
  .landing-cta { margin-inline: 18px; grid-template-columns: 75px 1fr; }
  .landing-cta .btn { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.25rem; }
  .public-nav { height: 82px; padding: 0 18px; }
  .public-brand img { width: 175px; }
  .public-actions .text-link-light { display: none; }
  .public-actions .btn { min-height: 40px; padding: 8px 12px; font-size: .77rem; }
  .hero-grid { padding: 35px 18px 85px; gap: 25px; }
  .hero-copy h1 { font-size: 3.05rem; }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .trust-row { display: grid; gap: 8px; }
  .hero-visual { min-height: 390px; }
  .cv-sheet { padding: 23px; min-height: 420px; }
  .floating-note { left: 0; bottom: 2px; }
  .landing-section { padding: 75px 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .landing-cta { padding: 30px; grid-template-columns: 1fr; text-align: center; }
  .landing-cta img { margin: auto; }
  .auth-story { min-height: 320px; padding: 35px 24px; }
  .auth-story h1 { font-size: 2.7rem; }
  .auth-story > small { display: none; }
  .page-header.split, .dashboard-header { display: grid; }
  .progress-hero { padding: 28px 24px; display: grid; }
  .progress-ring { width: 125px; height: 125px; margin: auto; }
  .section-card-grid, .dashboard-aside { grid-template-columns: 1fr; }
  .journey-card { min-height: 150px; padding: 20px; }
  .form-section { padding: 22px 18px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .record-card { grid-template-columns: 1fr; }
  .record-top { display: grid; }
  .record-actions { justify-content: flex-start; }
  .documents-layout { gap: 15px; }
  .document-list, .upload-card { padding: 20px 16px; }
  .document-card { grid-template-columns: 40px 1fr auto; padding: 10px 0; }
  .document-card form { grid-column: 3; }
  .filter-bar { display: grid; justify-content: stretch; }
  .filter-bar input { width: 100%; }
  .dossier-hero { display: grid; }
  .dossier-row { display: grid; }
  .score-grid { grid-template-columns: 1fr; }
  .message-stack { top: 75px; right: 12px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
