:root {
  --ink: #17211f;
  --ink-soft: #53625e;
  --muted: #77837f;
  --line: #dfe9e5;
  --line-strong: #cbdad4;
  --canvas: #f3f8f5;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --green-950: #0c2b25;
  --green-900: #123a32;
  --green-800: #195044;
  --green-700: #21705d;
  --green-600: #278b70;
  --green-500: #35a884;
  --green-300: #a7ddc8;
  --green-100: #e4f5ed;
  --green-50: #f0faf5;
  --blue: #3c7fa4;
  --gold: #c38a28;
  --violet: #7565a9;
  --red: #b94d54;
  --shadow: 0 12px 34px rgba(22, 67, 54, .08);
  --shadow-soft: 0 4px 16px rgba(22, 67, 54, .06);
  --radius: 18px;
  --radius-small: 12px;
  --sidebar-width: 254px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: Calibri, Candara, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--surface); color: var(--green-900); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 0 0, rgba(62, 166, 129, .22), transparent 38%),
    linear-gradient(175deg, var(--green-900), var(--green-950));
  color: #fff;
}

.brand { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 0 10px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #dff8ed, #92d8be); color: var(--green-900); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.brand-mark svg { width: 27px; height: 27px; stroke-width: 1.7; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 1.35rem; letter-spacing: -.04em; }
.brand-copy small { margin-top: 6px; color: #a6c8bd; font-size: .66rem; font-weight: 700; letter-spacing: .13em; }

.nav-list { display: flex; flex-direction: column; gap: 7px; margin-top: 38px; }
.nav-item { position: relative; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 49px; padding: 11px 13px; border: 0; border-radius: 12px; background: transparent; color: #b8d0c8; text-align: left; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-item svg { width: 21px; height: 21px; }
.nav-item span:nth-child(2) { font-weight: 700; }
.nav-item:hover, .nav-item:focus-visible { outline: 0; background: rgba(255,255,255,.075); color: #fff; }
.nav-item.is-active { background: linear-gradient(135deg, rgba(74,181,143,.28), rgba(255,255,255,.1)); color: #fff; box-shadow: inset 3px 0 0 #70d1ae; }
.nav-item.is-active svg { color: #89e0c1; }
.nav-count { min-width: 24px; padding: 2px 7px; border-radius: 10px; background: rgba(255,255,255,.11); color: #d9eee7; font-size: .75rem; text-align: center; }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: #70d1ae; box-shadow: 0 0 0 4px rgba(112,209,174,.12); }

.sidebar-help { display: flex; align-items: center; gap: 10px; margin: auto 5px 18px; padding: 13px; border: 1px solid rgba(185,222,209,.14); border-radius: 13px; background: rgba(255,255,255,.045); }
.help-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #9fe5ca; font-weight: 800; }
.sidebar-help div, .sidebar-user > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.sidebar-help strong { font-size: .79rem; }
.sidebar-help small, .sidebar-user small { margin-top: 2px; color: #8fb4a8; font-size: .68rem; }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 14px 9px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user strong { overflow: hidden; font-size: .87rem; text-overflow: ellipsis; white-space: nowrap; }
.avatar, .top-avatar { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #b4ead5, #6bc3a3); color: var(--green-950); font-style: normal; font-weight: 800; }
.avatar { width: 38px; height: 38px; }
.more-button { border: 0; background: transparent; color: #9cbdb2; cursor: pointer; letter-spacing: .05em; }
.sidebar-close { display: none !important; }
.sidebar-overlay { display: none; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; padding: 15px clamp(20px, 3.2vw, 48px); border-bottom: 1px solid rgba(207,221,216,.8); background: rgba(248,251,249,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topbar-title h1 { margin: 1px 0 0; font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.2; letter-spacing: -.02em; }
.eyebrow { display: block; color: var(--green-600); font-size: .7rem; font-weight: 800; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search { display: flex; align-items: center; gap: 9px; min-width: min(27vw, 320px); height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.global-search:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(53,168,132,.12); }
.global-search svg { width: 17px; height: 17px; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .9rem; }
.icon-button { display: inline-grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { outline: 0; border-color: var(--green-300); background: var(--green-50); color: var(--green-700); }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #e29a3d; }
.top-avatar { width: 42px; height: 42px; margin-left: 2px; }
.menu-button { display: none; }

.main-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 34px clamp(20px, 3.2vw, 48px) 54px; outline: 0; }
.app-view { display: none; animation: fadeIn .25s ease both; }
.app-view.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.welcome-row, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.welcome-row h2, .section-heading h2 { margin: 4px 0 2px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.035em; }
.welcome-row p, .section-heading p { margin: 0; color: var(--ink-soft); }
.demo-badge { padding: 7px 11px; border: 1px solid #d5e5df; border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); font-size: .75rem; font-weight: 700; }

.course-hero { position: relative; display: flex; min-height: 214px; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; padding: clamp(26px, 4vw, 43px); border-radius: 24px; background: linear-gradient(118deg, #123a32 0%, #185446 58%, #20705b 100%); color: #fff; box-shadow: 0 18px 42px rgba(12,43,37,.18); }
.course-hero::before, .course-hero::after { content: ""; position: absolute; border: 1px solid rgba(177,235,213,.16); border-radius: 50%; }
.course-hero::before { right: -75px; bottom: -160px; width: 390px; height: 390px; }
.course-hero::after { top: -130px; right: 190px; width: 300px; height: 300px; }
.hero-copy, .course-progress { position: relative; z-index: 1; }
.hero-label { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid rgba(169,232,209,.28); border-radius: 999px; background: rgba(173,232,210,.12); color: #bcebd9; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-copy h3 { max-width: 720px; margin: 13px 0 7px; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; }
.hero-copy > p { margin: 0; color: #b7d5cb; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 26px; }
.hero-meta span { color: #9bc1b5; font-size: .82rem; }
.hero-meta strong { display: block; color: #fff; font-size: .96rem; }
.course-progress { display: flex; flex: 0 0 auto; align-items: center; gap: 17px; padding: 15px 18px 15px 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(6,39,31,.32); }
.progress-ring { --progress: 0; position: relative; display: grid; width: 88px; height: 88px; place-items: center; border-radius: 50%; background: conic-gradient(#7dd8b7 calc(var(--progress) * 1%), rgba(255,255,255,.12) 0); }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #194d41; }
.progress-ring span { position: relative; z-index: 1; font-size: 1.55rem; font-weight: 800; }
.progress-ring small { font-size: .8rem; }
.course-progress > div:last-child { display: flex; flex-direction: column; }
.course-progress > div:last-child strong { font-size: .95rem; }
.course-progress > div:last-child small { margin-top: 3px; color: #a7cabf; font-size: .76rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.stat-card { display: grid; grid-template-columns: 43px 1fr; gap: 7px 13px; min-width: 0; padding: 18px; border: 1px solid rgba(215,229,224,.9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.stat-icon { display: grid; width: 43px; height: 43px; grid-row: span 2; place-items: center; border-radius: 12px; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.mint { background: var(--green-100); color: var(--green-700); }
.stat-icon.blue { background: #e8f3f8; color: var(--blue); }
.stat-icon.gold { background: #fbf2df; color: var(--gold); }
.stat-icon.violet { background: #f0edf8; color: var(--violet); }
.stat-card div { display: flex; min-width: 0; flex-direction: column; }
.stat-card div small { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.stat-card div strong { margin-top: 1px; font-size: 1.45rem; line-height: 1.1; }
.stat-card div em { color: var(--muted); font-size: .82rem; font-style: normal; font-weight: 600; }
.trend { grid-column: 2; color: var(--muted); font-size: .69rem; }
.trend.positive { color: var(--green-600); }
.trend.warning { color: var(--gold); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 20px; align-items: start; }
.panel { min-width: 0; padding: 24px; border: 1px solid rgba(215,229,224,.95); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.panel-header h3, .panel h3 { margin: 4px 0 0; font-size: 1.13rem; line-height: 1.25; letter-spacing: -.015em; }
.compact-progress { display: inline-flex; padding: 6px 9px; border-radius: 8px; background: var(--green-100); color: var(--green-700); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.small-link, .text-button { border: 0; background: transparent; color: var(--green-700); font-weight: 800; cursor: pointer; }
.small-link { padding: 3px 0; font-size: .8rem; }
.small-link:hover { text-decoration: underline; }
.text-button { display: inline-flex; align-items: center; gap: 5px; margin-top: 17px; padding: 3px 0; font-size: .82rem; }
.text-button svg { width: 15px; height: 15px; transition: transform .2s ease; }
.text-button:hover svg { transform: translateX(3px); }

.module-list { display: flex; flex-direction: column; }
.module-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 15px 0; border: 0; border-top: 1px solid #e9efec; background: transparent; text-align: left; cursor: pointer; }
.module-row:first-child { border-top: 0; }
.module-check { display: grid; width: 34px; height: 34px; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.module-check svg { width: 16px; height: 16px; }
.module-row.is-done .module-check { border-color: var(--green-500); background: var(--green-100); color: var(--green-700); }
.module-row.is-current { padding-right: 10px; padding-left: 10px; border: 1px solid var(--green-300); border-radius: 13px; background: var(--green-50); }
.module-row.is-current + .module-row { border-top-color: transparent; }
.module-row.is-current .module-check { border-color: var(--green-600); background: var(--green-700); color: #fff; }
.module-info { display: flex; min-width: 0; flex-direction: column; }
.module-info strong { font-size: .88rem; }
.module-info small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.module-status { color: var(--muted); font-size: .72rem; font-weight: 800; }
.module-row.is-done .module-status { color: var(--green-600); }
.module-row.is-current .module-status { color: var(--green-700); }
.mini-bar { display: block; width: 130px; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: var(--line); }
.mini-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green-500); }

.profile-heading { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-avatar { display: inline-grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: linear-gradient(145deg, #d9f4e8, #92d5bb); color: var(--green-900); font-size: 1.05rem; font-weight: 800; }
.profile-heading > div { display: flex; min-width: 0; flex-direction: column; }
.profile-heading strong { font-size: .92rem; }
.profile-heading small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.verified { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--green-600); color: #fff; }
.verified svg { width: 12px; height: 12px; stroke-width: 2.5; }
.profile-data { display: flex; flex-direction: column; margin: 10px 0 0; }
.profile-data div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.profile-data dt { color: var(--muted); font-size: .75rem; }
.profile-data dd { margin: 0; font-size: .78rem; font-weight: 700; text-align: right; }

.document-list { display: flex; flex-direction: column; }
.document-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 34px; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #e9efec; }
.document-row:first-child { border-top: 0; }
.file-icon { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; font-size: .61rem; font-weight: 900; letter-spacing: .03em; }
.file-icon.pdf { background: #fbe9e8; color: #b84b50; }
.file-icon.doc { background: #e8f1f8; color: #42799c; }
.document-row > div { display: flex; min-width: 0; flex-direction: column; }
.document-row strong { overflow: hidden; font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.document-row small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.status-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; }
.status-icon.ok { background: var(--green-100); color: var(--green-700); }
.status-icon svg { width: 13px; height: 13px; stroke-width: 2.4; }
.document-action { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); cursor: pointer; }
.document-action:hover { border-color: var(--green-300); background: var(--green-50); color: var(--green-700); }
.document-action svg { width: 15px; height: 15px; }

.exam-panel { position: relative; overflow: hidden; background: linear-gradient(160deg, #fafdfb, #eef8f3); }
.exam-panel::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(70,170,134,.08); }
.exam-art { display: grid; width: 47px; height: 47px; margin-bottom: 17px; place-items: center; border-radius: 13px; background: var(--green-900); color: #b8ead7; }
.exam-art svg { width: 23px; height: 23px; }
.exam-panel h3 { margin-top: 4px; font-size: 1.2rem; }
.exam-date { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; }
.exam-date strong { color: var(--green-800); font-size: 2.45rem; line-height: .9; }
.exam-date span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; line-height: 1.25; }
.exam-panel ul { margin: 0 0 19px; padding: 0; list-style: none; }
.exam-panel li { position: relative; margin-top: 7px; padding-left: 15px; color: var(--ink-soft); font-size: .76rem; }
.exam-panel li::before { content: ""; position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }

.primary-button, .secondary-button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 11px; font-weight: 800; line-height: 1.1; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.primary-button { border: 1px solid var(--green-800); background: var(--green-800); color: #fff; box-shadow: 0 6px 16px rgba(25,80,68,.16); }
.primary-button:hover, .primary-button:focus-visible { outline: 0; background: var(--green-700); box-shadow: 0 8px 20px rgba(25,80,68,.22); transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--green-800); }
.secondary-button:hover, .secondary-button:focus-visible { outline: 0; border-color: var(--green-400, #79c7aa); background: var(--green-50); }
.primary-button.small, .secondary-button.small { min-height: 34px; padding: 7px 11px; border-radius: 9px; font-size: .76rem; }
.primary-button.full { width: 100%; }

.status-pill { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; padding: 4px 8px; border-radius: 999px; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.status-pill.success { background: var(--green-100); color: var(--green-700); }
.status-pill.warning { background: #fff1d6; color: #98661b; }
.status-pill.info { background: #e7f1f6; color: #326b8c; }
.status-pill.neutral { background: #eef1f0; color: #69736f; }

.section-heading { align-items: flex-end; margin-bottom: 26px; }
.section-heading p { max-width: 620px; }
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.field-with-icon { display: flex; width: min(100%, 380px); height: 42px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); }
.field-with-icon:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(53,168,132,.1); }
.field-with-icon svg { width: 17px; height: 17px; }
.field-with-icon input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.select-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.select-field select { height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); outline: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th { padding: 12px 15px; background: var(--surface-soft); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 15px; border-top: 1px solid #e9efec; color: var(--ink-soft); white-space: nowrap; }
tbody tr:hover { background: #fafdfb; }
.table-person { display: flex; min-width: 210px; align-items: center; gap: 10px; }
.table-person > span { display: flex; flex-direction: column; }
.table-person strong { color: var(--ink); font-size: .81rem; }
.table-person small { color: var(--muted); font-size: .7rem; }
.avatar.small { width: 34px; height: 34px; flex: 0 0 34px; font-size: .7rem; }
.avatar.rose { background: #f1d8db; color: #8d4047; }
.avatar.amber { background: #f4e3bf; color: #835d1b; }
.avatar.blue-avatar { background: #d9e9f2; color: #356984; }
.table-progress { display: inline-block; width: 76px; height: 5px; margin-right: 6px; overflow: hidden; border-radius: 4px; background: var(--line); vertical-align: middle; }
.table-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-500); }
.row-action { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.empty-state { display: none; padding: 32px; color: var(--muted); text-align: center; }

.cards-grid { display: grid; gap: 20px; }
.cards-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.test-card { position: relative; display: flex; min-height: 320px; flex-direction: column; }
.test-card.featured { border-color: var(--green-300); background: linear-gradient(155deg, #fff, #eff9f4); }
.test-number { display: grid; width: 48px; height: 48px; margin-bottom: 28px; place-items: center; border-radius: 14px; background: var(--green-800); color: #fff; font-size: .88rem; font-weight: 800; }
.test-number.done { background: var(--green-100); color: var(--green-700); }
.test-card > .status-pill { position: absolute; top: 25px; right: 24px; }
.test-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.test-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.score-row { display: flex; align-items: flex-end; justify-content: space-between; margin: auto 0 18px; padding-top: 30px; }
.score-row strong { color: var(--green-800); font-size: 2rem; line-height: 1; }
.score-row span { color: var(--muted); font-size: .75rem; }

.results-layout { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.4fr); gap: 20px; align-items: stretch; }
.result-summary { background: linear-gradient(145deg, #123a32, #1c6553); color: #fff; }
.result-summary .eyebrow { color: #98d8c0; }
.big-score { margin: 18px 0 3px; font-size: 4rem; font-weight: 800; line-height: 1; }
.big-score small { font-size: 1.3rem; }
.result-summary > p { margin: 0; color: #acd0c3; font-size: .8rem; }
.result-bars { display: flex; flex-direction: column; gap: 15px; margin-top: 34px; }
.result-bars span, .result-bars label { display: block; }
.result-bars label { display: flex; justify-content: space-between; color: #d8eee6; font-size: .73rem; }
.result-bars label b { color: #fff; }
.result-bars i { display: block; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.15); }
.result-bars em { display: block; height: 100%; border-radius: inherit; background: #7dd8b7; }
.result-list article { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); }
.result-list article:first-child { border-top: 0; }
.result-list article > div { display: flex; flex-direction: column; }
.result-list strong { font-size: .86rem; }
.result-list small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.score-dot { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; font-size: .78rem; font-weight: 800; }
.score-dot.excellent { background: var(--green-100); color: var(--green-700); }
.score-dot.good { background: #e7f1f6; color: #326b8c; }

.document-categories { display: grid; gap: 20px; }
.large-file-list article { display: grid; grid-template-columns: 44px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.large-file-list article:first-child { border-top: 0; }
.large-file-list article > div { display: flex; min-width: 0; flex-direction: column; }
.large-file-list strong { font-size: .86rem; }
.large-file-list small { margin-top: 3px; color: var(--muted); font-size: .73rem; }

.exam-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(285px, .6fr); gap: 20px; }
.exam-main-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(26px,4vw,44px); border-radius: 22px; background: linear-gradient(118deg, var(--green-900), #1f6b58); color: #fff; box-shadow: var(--shadow); }
.exam-main-copy h3 { max-width: 720px; margin: 13px 0 6px; font-size: clamp(1.4rem,3vw,2rem); }
.exam-main-copy > p { margin: 0; color: #afd2c5; }
.exam-facts { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 26px; }
.exam-facts span { display: flex; flex-direction: column; }
.exam-facts small { color: #9fc4b7; font-size: .68rem; text-transform: uppercase; }
.exam-facts strong { margin-top: 3px; font-size: .9rem; }
.exam-countdown { display: flex; width: 124px; height: 124px; flex: 0 0 124px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(0,0,0,.12); }
.exam-countdown small { color: #9fc4b7; font-size: .7rem; text-transform: uppercase; }
.exam-countdown strong { font-size: 2.6rem; line-height: 1; }
.exam-countdown span { color: #b9d8cd; font-size: .74rem; }
.exam-instructions ol { margin: 0; padding: 0; list-style: none; }
.exam-instructions li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.exam-instructions li:first-child { border-top: 0; }
.exam-instructions li > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--green-100); color: var(--green-700); font-size: .74rem; font-weight: 800; }
.exam-instructions li div { display: flex; flex-direction: column; }
.exam-instructions li strong { font-size: .83rem; }
.exam-instructions li small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.exam-access { display: flex; align-items: stretch; flex-direction: column; background: linear-gradient(160deg,#fff,#f2faf6); }
.exam-access .exam-art { margin-bottom: 12px; }
.exam-access > p { margin: 8px 0 20px; color: var(--muted); font-size: .8rem; }
.exam-access label { margin-bottom: 6px; color: var(--ink-soft); font-size: .73rem; font-weight: 700; }
.exam-access input { width: 100%; height: 42px; margin-bottom: 12px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; outline: 0; }
.exam-access input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(53,168,132,.1); }
.access-note { align-self: center; margin-top: 9px; color: var(--muted); font-size: .69rem; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 20px; align-items: start; }
.settings-avatar { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid label { display: flex; flex-direction: column; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid label span { margin-bottom: 6px; color: var(--ink-soft); font-size: .74rem; font-weight: 700; }
.form-grid input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); outline: 0; }
.form-grid input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(53,168,132,.1); }
.toggle-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row > span { display: flex; flex-direction: column; }
.toggle-row strong { font-size: .84rem; }
.toggle-row small { margin-top: 2px; color: var(--muted); font-size: .71rem; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row i { position: relative; width: 42px; height: 24px; border-radius: 15px; background: #ccd6d2; transition: background .2s ease; }
.toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .2s ease; }
.toggle-row input:checked + i { background: var(--green-600); }
.toggle-row input:checked + i::after { transform: translateX(18px); }
.toggle-row input:focus-visible + i { box-shadow: 0 0 0 3px rgba(53,168,132,.18); }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; max-width: min(420px, calc(100vw - 32px)); align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #cce4da; border-radius: 13px; background: #fff; box-shadow: 0 16px 44px rgba(12,43,37,.18); opacity: 0; pointer-events: none; transform: translateY(15px); transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.toast-icon svg { width: 14px; height: 14px; }
#toastText { font-size: .82rem; font-weight: 700; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 18px; }
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,30,25,.58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; width: min(100%, 440px); padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.22); text-align: center; animation: modalIn .2s ease both; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 18px; place-items: center; border-radius: 17px; background: var(--green-100); color: var(--green-700); }
.modal-icon svg { width: 27px; height: 27px; }
.modal-card h2 { margin: 0 0 9px; font-size: 1.35rem; }
.modal-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

@media (max-width: 1180px) {
  :root { --sidebar-width: 224px; }
  .sidebar { padding-right: 14px; padding-left: 14px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .test-card:last-child { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .workspace { margin-left: 0; }
  .sidebar { width: min(84vw, 290px); transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.is-open { transform: none; box-shadow: 15px 0 50px rgba(4,25,20,.25); }
  .sidebar-close { position: absolute; top: 27px; right: 16px; display: grid !important; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(8,30,25,.46); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .sidebar-overlay.is-visible { display: block; opacity: 1; pointer-events: auto; }
  .menu-button { display: grid; }
  .topbar { gap: 14px; }
  .global-search { min-width: 42px; width: 42px; padding: 0; justify-content: center; cursor: pointer; }
  .global-search input { display: none; }
  .global-search.is-expanded { position: absolute; inset: 14px 20px 14px 76px; z-index: 2; width: auto; padding: 0 13px; justify-content: flex-start; }
  .global-search.is-expanded input { display: block; }
  .course-hero { align-items: flex-start; flex-direction: column; }
  .course-progress { align-self: stretch; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .study-panel, .documents-panel { grid-column: 1 / -1; }
  .documents-panel { grid-row: 2; }
  .profile-panel { grid-column: 1; }
  .exam-panel { grid-column: 2; }
  .exam-layout { grid-template-columns: 1fr; }
  .exam-instructions, .exam-access { grid-column: 1; }
  .results-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { min-height: 70px; padding: 11px 16px; }
  .topbar-title .eyebrow { display: none; }
  .topbar-title h1 { font-size: 1.08rem; }
  .top-avatar { display: none; }
  .main-content { padding: 24px 15px 42px; }
  .welcome-row { align-items: flex-start; }
  .demo-badge { display: none; }
  .course-hero { min-height: 0; padding: 25px 21px; border-radius: 18px; }
  .hero-copy h3 { font-size: 1.55rem; }
  .hero-meta { gap: 16px; margin-top: 21px; }
  .course-progress { padding: 12px; }
  .progress-ring { width: 72px; height: 72px; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 15px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 14px; }
  .study-panel, .documents-panel, .profile-panel, .exam-panel { grid-column: 1; grid-row: auto; }
  .panel { padding: 19px 17px; border-radius: 15px; }
  .module-row { grid-template-columns: 34px minmax(0,1fr); }
  .module-status { display: none; }
  .module-info strong { font-size: .83rem; }
  .document-row { grid-template-columns: 39px minmax(0,1fr) 32px; }
  .document-row .status-icon, .document-row .status-pill { display: none; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-heading > button { align-self: flex-start; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .field-with-icon { width: 100%; }
  .select-field { justify-content: space-between; }
  .select-field select { flex: 1; }
  .cards-grid.three { grid-template-columns: 1fr; }
  .test-card:last-child { grid-column: auto; }
  .test-card { min-height: 290px; }
  .large-file-list article { grid-template-columns: 40px minmax(0,1fr); gap: 10px; }
  .large-file-list article .status-pill, .large-file-list article button { grid-column: 2; justify-self: start; }
  .exam-main-card { align-items: flex-start; flex-direction: column; }
  .exam-countdown { width: 92px; height: 92px; flex-basis: 92px; }
  .exam-facts { gap: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .modal-card { padding: 29px 20px 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .toast { right: 16px; bottom: 16px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .section-heading button, .document-action, .sidebar-overlay, .toast { display: none !important; }
  .workspace { margin-left: 0; }
  .main-content { max-width: none; padding: 0; }
  body { background: #fff; }
  .panel, .course-hero, .stat-card { break-inside: avoid; box-shadow: none; }
}
