.portal-shell { min-height: 100vh; }
.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; width: var(--sidebar); flex-direction: column; padding: 24px 16px 18px; overflow-y: auto; background: linear-gradient(175deg, var(--green-900), var(--green-950)); color: var(--white); }
.portal-brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; text-decoration: none; }
.portal-brand img { width: 39px; height: 39px; }
.portal-brand span { display: flex; flex-direction: column; line-height: 1; }
.portal-brand strong { font-size: 1.17rem; }
.portal-brand small { margin-top: 5px; color: #92b8aa; font-size: .6rem; font-weight: 800; letter-spacing: .13em; }
.role-chip { display: inline-flex; align-self: flex-start; margin: 24px 8px 5px; padding: 5px 9px; border: 1px solid rgba(165, 222, 201, .16); border-radius: 999px; background: rgba(255,255,255,.06); color: #a9d5c5; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 17px; }
.portal-nav button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; min-height: 48px; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 11px; background: transparent; color: #a8c5bb; text-align: left; cursor: pointer; }
.portal-nav button:hover { background: rgba(255,255,255,.07); color: var(--white); }
.portal-nav button.is-active { background: linear-gradient(135deg, rgba(90, 197, 159, .25), rgba(255,255,255,.08)); color: var(--white); box-shadow: inset 3px 0 0 #72d1ae; }
.nav-symbol { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.07); color: #8cddbf; font-size: .76rem; font-weight: 900; }
.portal-nav button span:nth-child(2) { overflow: hidden; font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nav-value { min-width: 23px; padding: 2px 6px; border-radius: 9px; background: rgba(255,255,255,.09); color: #c6ddd5; font-size: .65rem; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.role-switch { display: block; margin: 18px 7px; padding: 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.04); color: #a8c5bb; font-size: .72rem; text-decoration: none; }
.role-switch strong { display: block; margin-top: 2px; color: var(--white); font-size: .78rem; }
.portal-user { display: grid; grid-template-columns: 37px minmax(0,1fr); align-items: center; gap: 10px; padding: 15px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #c9efdf, #79c9aa); color: var(--green-950); font-size: .75rem; font-style: normal; font-weight: 900; }
.portal-user span { display: flex; min-width: 0; flex-direction: column; }
.portal-user strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-user small { color: #85aa9e; font-size: .67rem; }
.portal-workspace { min-height: 100vh; margin-left: var(--sidebar); }
.portal-topbar { position: sticky; top: 0; z-index: 40; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px clamp(20px, 3vw, 42px); border-bottom: 1px solid rgba(220,232,227,.85); background: rgba(250, 252, 251, .92); backdrop-filter: blur(13px); }
.portal-title h1 { margin: 2px 0 0; font-size: 1.35rem; line-height: 1.15; }
.topbar-tools { display: flex; align-items: center; gap: 9px; }
.portal-search { display: flex; width: min(27vw, 300px); height: 42px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink-500); }
.portal-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink-950); font-size: .85rem; }
.portal-search span { font-size: .9rem; }
.portal-menu, .sidebar-close { display: none; }
.portal-main { width: 100%; max-width: 1560px; margin-inline: auto; padding: 30px clamp(20px, 3vw, 42px) 50px; }
.portal-view { display: none; }
.portal-view.is-active { display: block; animation: view-in .2s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-head h2 { margin: 4px 0 3px; font-size: clamp(1.7rem, 3vw, 2.15rem); letter-spacing: -.04em; line-height: 1.1; }
.page-head p { margin: 0; color: var(--ink-600); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.summary-card { display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 10px 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.summary-icon { display: grid; width: 43px; height: 43px; grid-row: span 2; place-items: center; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-weight: 900; }
.summary-icon.blue { background: var(--blue-soft); color: var(--blue); }
.summary-icon.amber { background: var(--amber-soft); color: var(--amber); }
.summary-icon.violet { background: var(--violet-soft); color: var(--violet); }
.summary-card div { display: flex; min-width: 0; flex-direction: column; }
.summary-card small { color: var(--ink-500); font-size: .72rem; }
.summary-card strong { font-size: 1.45rem; line-height: 1.05; }
.summary-trend { grid-column: 2; color: var(--green-600); font-size: .68rem; }
.summary-trend.warning { color: var(--amber); }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 18px; align-items: start; }
.grid-equal { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.course-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; margin-bottom: 18px; padding: clamp(24px, 4vw, 38px); border-radius: 22px; background: linear-gradient(120deg, var(--green-900), #1c6c57); color: var(--white); box-shadow: var(--shadow-md); }
.course-banner h2 { max-width: 720px; margin: 9px 0 6px; font-size: clamp(1.4rem, 3vw, 2rem); }
.course-banner p { margin: 0; color: #aed3c5; }
.course-banner .eyebrow { color: #99dec4; }
.course-percent { display: flex; flex: 0 0 auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(0,0,0,.11); }
.course-percent strong { font-size: 2rem; }
.course-percent span { color: #b3d5c9; font-size: .73rem; }
.progress-list { margin: 0; padding: 0; list-style: none; }
.progress-list li { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.progress-list li:first-child { border-top: 0; }
.step-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-500); font-size: .75rem; font-weight: 900; }
.progress-list .done .step-mark { border-color: var(--green-300); background: var(--green-100); color: var(--green-700); }
.progress-list .current { margin-inline: -8px; padding-inline: 8px; border: 1px solid var(--green-200); border-radius: 12px; background: var(--green-50); }
.progress-list .current + li { border-top-color: transparent; }
.progress-list .current .step-mark { border-color: var(--green-700); background: var(--green-700); color: var(--white); }
.step-copy { display: flex; min-width: 0; flex-direction: column; }
.step-copy strong { font-size: .83rem; }
.step-copy small { margin-top: 2px; color: var(--ink-500); font-size: .7rem; }
.step-state { color: var(--ink-500); font-size: .68rem; font-weight: 800; }
.done .step-state, .current .step-state { color: var(--green-700); }
.notice-list { display: flex; flex-direction: column; }
.notice { display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.notice:first-child { border-top: 0; }
.notice-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--green-100); color: var(--green-700); font-size: .76rem; font-weight: 900; }
.notice-mark.amber { background: var(--amber-soft); color: var(--amber); }
.notice div { display: flex; flex-direction: column; }
.notice strong { font-size: .8rem; }
.notice small { margin-top: 2px; color: var(--ink-500); font-size: .69rem; }
.table-panel { padding: 0; overflow: hidden; }
.table-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 13px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.field-search { display: flex; width: min(100%, 370px); height: 41px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-500); }
.field-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink-950); }
.select-wrap { display: flex; align-items: center; gap: 8px; color: var(--ink-500); font-size: .72rem; font-weight: 700; }
.select-wrap select { height: 41px; padding: 0 30px 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink-950); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.data-table th { padding: 11px 14px; background: #f8fbf9; color: var(--ink-500); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-top: 1px solid var(--line); color: var(--ink-600); white-space: nowrap; }
.data-table tbody tr:hover { background: #fbfdfc; }
.person { display: flex; min-width: 205px; align-items: center; gap: 9px; }
.person .avatar { width: 34px; height: 34px; flex: 0 0 34px; }
.person span { display: flex; flex-direction: column; }
.person strong { color: var(--ink-950); font-size: .8rem; }
.person small { color: var(--ink-500); font-size: .68rem; }
.row-menu { border: 0; background: transparent; color: var(--ink-500); cursor: pointer; }
.table-empty { display: none; padding: 28px; color: var(--ink-500); text-align: center; }
.file-list article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.file-list article:first-child { border-top: 0; }
.file-type { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: .62rem; font-weight: 900; }
.file-copy { display: flex; min-width: 0; flex-direction: column; }
.file-copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { margin-top: 2px; color: var(--ink-500); font-size: .69rem; }
.chart { display: flex; min-height: 230px; align-items: flex-end; gap: 12px; padding-top: 26px; }
.bar { display: flex; min-width: 0; flex: 1; align-items: center; flex-direction: column; gap: 8px; }
.bar i { display: block; width: min(35px, 70%); height: 4px; min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--green-500), var(--green-700)); }
.bar .bar-52 { height: 52px; }
.bar .bar-69 { height: 69px; }
.bar .bar-86 { height: 86px; }
.bar .bar-103 { height: 103px; }
.bar .bar-121 { height: 121px; }
.bar .bar-138 { height: 138px; }
.bar .bar-155 { height: 155px; }
.bar .bar-172 { height: 172px; }
.bar span { color: var(--ink-500); font-size: .64rem; }
.bar strong { color: var(--ink-600); font-size: .68rem; }
.exam-card { padding: 28px; border-radius: 20px; background: linear-gradient(145deg, var(--green-950), var(--green-700)); color: var(--white); }
.exam-card .eyebrow { color: #95d7bf; }
.exam-card h3 { margin: 10px 0 8px; font-size: 1.55rem; }
.exam-card p { margin: 0; color: #b2d3c7; }
.exam-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 25px 0; }
.exam-facts div { padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.06); }
.exam-facts small, .exam-facts strong { display: block; }
.exam-facts small { color: #9bc1b4; font-size: .65rem; text-transform: uppercase; }
.exam-facts strong { margin-top: 3px; font-size: .83rem; }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; }
.field.wide { grid-column: 1 / -1; }
.field span { margin-bottom: 5px; color: var(--ink-600); font-size: .72rem; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--white); color: var(--ink-950); outline: 0; }
.field input, .field select { height: 42px; padding: 0 11px; }
.field textarea { min-height: 116px; padding: 11px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(57,169,130,.1); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-600); font-size: .78rem; cursor: pointer; }
.check-card input { accent-color: var(--green-700); }
.metric-score { color: var(--green-700); font-size: 2rem; }
.space-top { margin-top: 18px; }
.portal-overlay { display: none; }
@media (max-width: 1140px) { :root { --sidebar: 220px; } .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-two { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .portal-workspace { margin-left: 0; } .portal-sidebar { width: min(84vw, 285px); transform: translateX(-105%); transition: transform .23s ease; } .portal-sidebar.is-open { transform: none; box-shadow: 14px 0 48px rgba(8,35,28,.25); } .portal-overlay { position: fixed; inset: 0; z-index: 55; display: block; background: rgba(8,35,28,.46); opacity: 0; visibility: hidden; transition: opacity .23s ease, visibility .23s ease; } .portal-overlay.is-visible { opacity: 1; visibility: visible; } .portal-menu, .sidebar-close { display: inline-grid; } .sidebar-close { position: absolute; top: 22px; right: 14px; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.06); color: var(--white); } .portal-search { width: 42px; padding: 0; justify-content: center; } .portal-search input { display: none; } .grid-equal { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .portal-topbar { min-height: 68px; padding: 10px 13px; } .portal-title .eyebrow { display: none; } .portal-title h1 { font-size: 1.07rem; } .topbar-tools .avatar { display: none; } .portal-main { padding: 22px 12px 42px; } .page-head { align-items: stretch; flex-direction: column; } .page-head .button { align-self: flex-start; } .summary-grid { grid-template-columns: 1fr; gap: 10px; } .course-banner { align-items: flex-start; flex-direction: column; } .course-percent { align-self: stretch; } .progress-list li { grid-template-columns: 34px minmax(0,1fr); } .step-state { display: none; } .table-tools { align-items: stretch; flex-direction: column; } .field-search { width: 100%; } .select-wrap select { flex: 1; } .file-list article { grid-template-columns: 41px minmax(0,1fr); } .file-list article .badge, .file-list article .button { grid-column: 2; justify-self: start; } .exam-facts, .settings-form, .check-grid { grid-template-columns: 1fr; } .field.wide { grid-column: auto; } }
