.portal-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; width: 252px; flex-direction: column; padding: 24px 16px 18px; overflow-y: auto; border-right: 1px solid #82968d; background: #ffffff; }
.portal-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #17231f; text-decoration: none; }
.portal-brand img { width: 42px; height: 42px; }
.portal-brand span { display: flex; flex-direction: column; line-height: 1; }
.portal-brand strong { font-size: 1.2rem; }
.portal-brand small { margin-top: 6px; color: #18523e; font-size: .61rem; font-weight: 900; letter-spacing: .12em; }
.role-chip { display: inline-flex; align-self: flex-start; margin: 25px 8px 7px; padding: 5px 9px; border-radius: 999px; background: #dff4ea; color: #18523e; font-size: .67rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.portal-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 15px; }
.portal-nav button { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; min-height: 50px; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; color: #43574f; text-align: left; cursor: pointer; }
.portal-nav button:hover { background: #edf8f2; color: #17231f; }
.portal-nav button.is-active { background: #dff4ea; color: #17231f; box-shadow: inset 4px 0 0 #28785c; }
.nav-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #82968d; border-radius: 9px; color: #18523e; font-size: .75rem; font-weight: 900; }
.portal-nav button span:nth-child(2) { overflow: hidden; font-size: .88rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { min-width: 24px; padding: 2px 6px; border-radius: 9px; background: #dff2e8; color: #43574f; font-size: .66rem; text-align: center; }
.sidebar-foot { margin-top: auto; }
.portal-user { display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 16px 7px 0; border-top: 1px solid #82968d; }
.avatar { display: inline-grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: #dff4ea; color: #18523e; font-size: .76rem; 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: #46584f; font-size: .68rem; }
.portal-workspace { min-height: 100vh; margin-left: 252px; }
.portal-topbar { position: sticky; top: 0; z-index: 42; display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 19px; padding: 13px clamp(19px, 3vw, 42px); border-bottom: 1px solid #82968d; background: #ffffff; }
.portal-title h1 { margin: 2px 0 0; font-size: 1.38rem; }
.top-tools { display: flex; align-items: center; gap: 8px; }
.portal-search { display: flex; width: min(27vw, 300px); height: 46px; align-items: center; gap: 8px; padding: 0 12px; border: 2px solid #82968d; border-radius: 11px; background: #ffffff; color: #46584f; }
.portal-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #17231f; }
.portal-search.has-focus { border-color: #b56a00; outline: 0; box-shadow: 0 0 0 1px #b56a00; }
.portal-menu, .sidebar-close { display: none; }
.portal-main { width: 100%; max-width: 1580px; margin-inline: auto; padding: 31px clamp(19px, 3vw, 42px) 52px; }
.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: 24px; }
.page-head h2 { margin: 5px 0 4px; font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.page-head p { margin: 0; color: #43574f; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 18px; }
.summary-card { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 8px 13px; padding: 18px; border: 1px solid #82968d; border-radius: 17px; background: #ffffff; box-shadow: 0 5px 18px rgba(24, 65, 51, .07); }
.summary-icon { display: grid; width: 44px; height: 44px; grid-row: span 2; place-items: center; border-radius: 12px; background: #dff4ea; color: #18523e; font-weight: 900; }
.summary-card h3 { margin: 0; color: #46584f; font-size: .76rem; font-weight: 700; }
.summary-card strong { font-size: 1.47rem; line-height: 1; }
.summary-note { grid-column: 2; color: #18523e; font-size: .69rem; font-weight: 700; }
.grid-main { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.55fr); gap: 18px; align-items: start; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.course-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 18px; padding: clamp(24px, 4vw, 38px); border: 2px solid #687d74; border-radius: 21px; background: #dff4ea; }
.course-banner h2 { max-width: 750px; margin: 9px 0 6px; font-size: clamp(1.45rem, 3vw, 2.05rem); }
.course-banner p { margin: 0; color: #43574f; }
.course-progress { min-width: 150px; padding: 15px; border: 1px solid #687d74; border-radius: 14px; background: #ffffff; text-align: center; }
.course-progress strong, .course-progress span { display: block; }
.course-progress strong { font-size: 2rem; line-height: 1; }
.course-progress span { margin-top: 5px; color: #46584f; font-size: .72rem; }
.item-list { margin: 0; padding: 0; list-style: none; }
.item-list li { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #82968d; }
.item-list li:first-child { border-top: 0; }
.item-mark { display: grid; width: 35px; height: 35px; place-items: center; border: 2px solid #687d74; border-radius: 10px; color: #46584f; font-size: .75rem; font-weight: 900; }
.item-list .done .item-mark { border-color: #28785c; background: #dff4ea; color: #18523e; }
.item-list .current { margin-inline: -8px; padding-inline: 8px; border: 2px solid #28785c; border-radius: 12px; background: #dff4ea; }
.item-list .current + li { border-top-color: transparent; }
.item-list .current .item-mark { border-color: #1c6047; background: #1c6047; color: #fff; }
.item-copy { display: flex; min-width: 0; flex-direction: column; }
.item-copy strong { font-size: .86rem; }
.item-copy small { margin-top: 2px; color: #46584f; font-size: .72rem; }
.item-state { color: #46584f; font-size: .7rem; font-weight: 900; }
.done .item-state, .current .item-state { color: #18523e; }
.notice { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 14px 0; border-top: 1px solid #82968d; }
.notice:first-child { border-top: 0; }
.notice-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: #dff4ea; color: #18523e; font-size: .73rem; font-weight: 900; }
.notice-mark.warning { background: #fff0cc; color: #6f4300; }
.notice h3 { margin: 0; font-size: .82rem; }
.notice p { margin: 2px 0 0; color: #46584f; font-size: .72rem; }
.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 #82968d; }
.field-search { display: flex; width: min(100%, 380px); height: 46px; align-items: center; gap: 8px; padding: 0 11px; border: 2px solid #82968d; border-radius: 10px; background: #ffffff; }
.field-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #17231f; }
.field-search.has-focus { border-color: #b56a00; outline: 0; box-shadow: 0 0 0 1px #b56a00; }
.select-inline { display: flex; min-width: 260px; align-items: center; gap: 8px; color: #43574f; font-size: .76rem; font-weight: 800; }
.select-inline .smart-select { min-width: 210px; color: #17231f; font-size: .9rem; }
.select-inline select { min-height: 46px; padding: 0 32px 0 10px; border: 2px solid #82968d; border-radius: 10px; background: #ffffff; color: #17231f; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.data-table th { padding: 12px 14px; background: #edf8f2; color: #43574f; font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px; border-top: 1px solid #82968d; color: #43574f; white-space: nowrap; }
.person { display: flex; min-width: 210px; align-items: center; gap: 9px; }
.person span { display: flex; flex-direction: column; }
.person strong { color: #17231f; }
.person small { color: #46584f; }
.table-empty { display: none; padding: 30px; color: #46584f; text-align: center; }
.file-list article { display: grid; grid-template-columns: 44px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #82968d; }
.file-list article:first-child { border-top: 0; }
.file-type { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 10px; background: #fbe8ea; color: #83303a; font-size: .62rem; font-weight: 900; }
.file-copy h3 { margin: 0; font-size: .84rem; }
.file-copy p { margin: 2px 0 0; color: #46584f; font-size: .7rem; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.portal-overlay { display: none; }
@media (max-width: 1160px) { :root { --sidebar: 222px; } .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .portal-workspace { margin-left: 0; } .portal-sidebar { width: min(86vw, 300px); transform: translateX(-105%); transition: transform .18s ease; } .portal-sidebar.is-open { transform: none; box-shadow: 0 28px 76px rgba(10, 36, 27, .22); } .portal-overlay { position: fixed; inset: 0; z-index: 55; display: block; background: rgba(9, 27, 21, .55); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; } .portal-overlay.is-visible { opacity: 1; visibility: visible; } .portal-menu, .sidebar-close { display: inline-grid; } .sidebar-close { position: absolute; top: 22px; right: 14px; } .portal-search { width: 46px; justify-content: center; padding: 0; } .portal-search input { display: none; } .grid-two { grid-template-columns: 1fr; } }
@media (max-width: 660px) { .portal-topbar { min-height: 72px; padding: 10px 12px; } .portal-title .eyebrow { display: none; } .portal-title h1 { font-size: 1.08rem; } .top-tools .avatar { display: none; } .portal-main { padding: 23px 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-progress { width: 100%; } .item-list li { grid-template-columns: 35px minmax(0,1fr); } .item-state { display: none; } .table-tools { align-items: stretch; flex-direction: column; } .field-search, .select-inline { width: 100%; } .select-inline .smart-select { flex: 1; } .file-list article { grid-template-columns: 43px minmax(0,1fr); } .file-list article .badge, .file-list article .row-actions { grid-column: 2; justify-self: start; } }
