.portal-page { min-height: 100vh; background: #f4ecdf; }
.portal-entry-page { background: radial-gradient(circle at 15% 10%, rgba(198,139,53,.14), transparent 28%), #f4ecdf; }
.portal-entry-shell { width: min(1160px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: clamp(30px, 6vw, 76px) 0; }
.portal-entry-intro { max-width: 820px; margin-top: clamp(40px, 6vw, 72px); }
.portal-entry-intro h1 { margin: 12px 0 20px; font-size: clamp(42px, 6vw, 76px); line-height: 1.05; letter-spacing: -.04em; }
.portal-entry-intro > p:last-child { max-width: 700px; color: var(--muted); font-size: 18px; }
.portal-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.portal-entry-card { min-height: 156px; padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: rgba(255,250,241,.9); color: var(--ink); display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: center; gap: 10px 16px; box-shadow: 0 14px 36px rgba(34,33,31,.07); transition: transform .2s ease, border-color .2s ease; }
.portal-entry-card:hover { transform: translateY(-4px); border-color: rgba(157,45,37,.45); }
.portal-entry-card .entry-number { color: var(--red); font-size: 14px; font-weight: 900; letter-spacing: .14em; }
.portal-entry-card small { color: var(--red); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.portal-entry-card h2 { margin: 3px 0 5px; font-size: clamp(26px, 2.6vw, 34px); }
.portal-entry-card p { max-width: 450px; margin: 0; color: var(--muted); font-size: 14px; }
.portal-entry-card strong { grid-column: 2; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.portal-entry-card strong::after { content: "→"; font-size: 24px; }
.teacher-entry { background: #252321; color: #fffaf1; }
.teacher-entry p { color: rgba(255,250,241,.7); }
.teacher-entry strong { border-color: rgba(255,255,255,.18); }
.portal-showcase { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); }
.portal-showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.portal-showcase-head h2 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 42px); }
.portal-showcase-head > p { max-width: 430px; margin: 0; color: var(--muted); }
.portal-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-showcase-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-strong); box-shadow: 0 12px 30px rgba(34,33,31,.06); }
.portal-showcase-media { aspect-ratio: 4 / 5; background: #242220; }
.portal-showcase-media img, .portal-showcase-media video { width: 100%; height: 100%; object-fit: cover; }
.portal-showcase-card > div:last-child { padding: 16px; }
.portal-showcase-card span { color: var(--red); font-size: 12px; font-weight: 900; }
.portal-showcase-card h3 { margin: 5px 0 7px; font-size: 19px; }
.portal-showcase-card p { margin: 0; color: var(--muted); font-size: 14px; }
.portal-back-link { display: inline-block; margin-top: 30px; color: var(--red); font-weight: 800; }
.portal-login-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .62fr); gap: clamp(36px, 8vw, 120px); align-items: center; min-height: 100vh; padding: clamp(28px, 6vw, 90px); }
.portal-intro { max-width: 650px; }
.portal-brand { display: inline-block; }
.portal-brand img { width: min(280px, 62vw); height: auto; }
.portal-intro h1 { margin-top: 18px; }
.portal-intro > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 18px; }
.portal-login-card, .portal-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 10px; background: var(--paper-strong); box-shadow: 0 16px 50px rgba(34, 33, 31, .09); }
.portal-login-card { display: grid; gap: 16px; }
.portal-login-card h2 { margin-bottom: 8px; font-size: 34px; }
.portal-login-card p { color: var(--muted); }
.text-link, .text-button { color: var(--red); font-weight: 800; }
.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; }
.student-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(255, 250, 241, .92); }
.student-header .portal-brand img { width: 210px; }
.student-user { display: flex; align-items: center; gap: 18px; font-weight: 800; }
.student-shell { max-width: 1440px; margin: 0 auto; padding: clamp(30px, 5vw, 70px); }
.student-welcome { margin-bottom: 28px; }
.student-welcome h1 { margin-bottom: 10px; font-size: clamp(38px, 5vw, 64px); }
.student-welcome > p { color: var(--muted); font-size: 18px; }
.student-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.student-stats span { padding: 10px 14px; border-radius: 999px; background: #efe5d5; font-weight: 700; }
.student-stats b { color: var(--red); }
.student-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 22px; align-items: start; }
.student-content, .student-side { display: grid; gap: 22px; }
.portal-section-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 20px; }
.portal-section-head h2, .portal-card h2 { margin-bottom: 0; font-size: 30px; }
.muted-note { color: var(--muted); font-size: 14px; }
.assignment-list, .notice-list, .review-list { display: grid; gap: 12px; }
.assignment-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) 130px; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; }
.assignment-item.selected { border-color: rgba(157,45,37,.5); box-shadow: inset 3px 0 var(--red); }
.assignment-day { display: grid; place-items: center; min-width: 52px; min-height: 52px; border-radius: 50%; background: rgba(49,93,74,.1); color: var(--green); font-weight: 900; }
.assignment-item h3, .notice-item h3, .review-item h3 { margin-bottom: 6px; font-size: 18px; }
.assignment-item p, .notice-item p, .review-item p { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.assignment-item small, .notice-item small, .review-item small { color: #858078; }
.assignment-action { display: grid; justify-items: end; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #eee8df; color: #6c655d; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-pill.submitted, .status-pill.reviewing { background: rgba(198,139,53,.16); color: #855514; }
.status-pill.revision_requested { background: rgba(157,45,37,.1); color: var(--red); }
.status-pill.passed { background: rgba(49,93,74,.12); color: var(--green); }
.assignment-workspace { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: start; }
.assignment-navigation { display: grid; gap: 10px; min-width: 0; }
.assignment-navigation-label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.assignment-navigation .assignment-list { max-height: 760px; overflow: auto; padding-right: 4px; }
.assignment-navigation .assignment-item { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; padding: 13px; }
.assignment-navigation .assignment-day { min-width: 42px; min-height: 42px; font-size: 13px; }
.assignment-navigation .assignment-item h3 { font-size: 16px; }
.assignment-navigation .assignment-item p { display: none; }
.assignment-navigation .assignment-item small { display: block; font-size: 12px; }
.assignment-navigation .assignment-action { grid-column: 2; display: flex; align-items: center; justify-items: start; gap: 8px; }
.assignment-navigation .assignment-action .mini-button { min-width: 72px; }
.submit-content { display: grid; gap: 18px; min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.submit-content-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.submit-content-head .eyebrow { margin: 0; }
.submission-project { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #f7f1e7; }
.submission-project > .muted-note { margin: 0; }
.submission-project-day { display: grid; width: 50px; height: 50px; place-items: center; margin: 10px 0 14px; border-radius: 50%; background: rgba(49,93,74,.11); color: var(--green); font-weight: 900; }
.submission-project h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; }
.submission-project-copy { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.submission-project-copy b { font-size: 13px; }
.submission-project-copy p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.submission-project small { display: block; margin-top: 16px; color: #858078; font-size: 12px; }
.submission-form { display: grid; gap: 16px; }
.attachment-list { display: grid; gap: 6px; }
.attachment-list a { color: var(--green); font-size: 14px; font-weight: 700; }
.notice-item, .review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child, .review-item:last-child { padding-bottom: 0; border-bottom: 0; }
.review-item .status-pill { margin-bottom: 9px; }
.review-structured { padding: 10px; border-left: 3px solid var(--gold); background: #f7f1e7; color: #4f4941; font-size: 13px; white-space: pre-line; }

.student-admin-page { min-height: 100vh; background: #f4ecdf; }
.student-admin-topbar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 400px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 76px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: rgba(255,250,241,.96); }
.student-admin-topbar .portal-brand img { width: 192px; }
.student-topbar-title { display: grid; gap: 1px; color: var(--muted); font-size: 12px; }
.student-topbar-title b { color: var(--ink); font-size: 16px; }
.student-user { display: flex; align-items: center; gap: 18px; font-weight: 800; }
.student-notice-trigger { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf1; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.student-notice-trigger:hover, .student-notice-trigger[aria-expanded="true"] { border-color: rgba(157,45,37,.42); color: var(--red); }
.student-notice-trigger:focus-visible, .student-notice-close:focus-visible { outline: 3px solid rgba(157,45,37,.25); outline-offset: 2px; }
.student-notice-icon { width: 19px; height: 19px; }
.student-notice-count { position: absolute; top: -7px; right: -7px; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; border: 2px solid #fffaf1; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; line-height: 1; }
.student-notice-count[hidden] { display: none; }
.student-notice-dialog { width: min(620px, calc(100% - 32px)); max-height: min(700px, calc(100vh - 64px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffaf1; color: var(--ink); box-shadow: 0 28px 90px rgba(34,33,31,.28); }
.student-notice-dialog::backdrop { background: rgba(34,33,31,.46); backdrop-filter: blur(3px); }
.student-notice-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(105deg, #fff2cf, #fffaf1 68%); }
.student-notice-dialog-head .eyebrow { margin: 0; }
.student-notice-dialog-head h2 { margin: 4px 0 6px; font-size: 27px; }
.student-notice-dialog-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.student-notice-close { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #fffaf1; color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.student-notice-close:hover { border-color: rgba(157,45,37,.42); color: var(--red); }
.student-notice-list { max-height: 480px; padding: 0 26px 14px; overflow-y: auto; }
.student-notice-list .notice-item { padding: 18px 0; }
.student-notice-list .notice-item.is-unread { position: relative; padding-left: 14px; }
.student-notice-list .notice-item.is-unread::before { position: absolute; top: 25px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--red); content: ""; }
.notice-item-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.notice-item-head h3 { margin: 0 0 6px; font-size: 17px; }
.notice-read-state { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #eee8df; color: #7d766d; font-size: 11px; font-weight: 800; }
.is-unread .notice-read-state { background: rgba(157,45,37,.1); color: var(--red); }
.student-admin-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.student-admin-sidebar { position: sticky; top: 76px; display: grid; align-content: start; gap: 24px; height: calc(100vh - 76px); overflow-y: auto; padding: 24px 16px; border-right: 1px solid var(--line); background: #fffaf1; }
.student-class-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f7f1e7; }
.student-class-card h2 { margin: 5px 0 8px; font-size: 21px; line-height: 1.35; }
.student-class-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.student-admin-sidebar .student-stats { gap: 8px; margin-top: 16px; }
.student-admin-sidebar .student-stats span { padding: 7px 10px; font-size: 12px; }
.student-project-nav { display: grid; gap: 10px; }
.student-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; font-size: 13px; font-weight: 900; }
.student-nav-head small { color: var(--muted); font-weight: 700; }
.student-admin-sidebar .assignment-list { gap: 6px; }
.student-admin-sidebar .assignment-item { width: 100%; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 11px; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.student-admin-sidebar .assignment-item:hover { border-color: rgba(49,93,74,.35); background: #f7f1e7; }
.student-admin-sidebar .assignment-item.selected { border-color: rgba(49,93,74,.48); box-shadow: inset 3px 0 var(--green); background: #efe9dc; }
.student-admin-sidebar .assignment-item:focus-visible { outline: 3px solid rgba(49,93,74,.3); outline-offset: 2px; }
.student-admin-sidebar .assignment-day { min-width: 38px; min-height: 38px; font-size: 12px; }
.student-admin-sidebar .assignment-title { display: block; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.student-admin-sidebar .assignment-requirement, .student-admin-sidebar .assignment-hint { display: none; }
.student-admin-sidebar .assignment-copy { min-width: 0; }
.assignment-nav-state { justify-self: end; color: #857e74; font-size: 11px; font-weight: 800; white-space: nowrap; }
.assignment-nav-state.submitted { color: var(--green); }
.assignment-nav-state.revision_requested { color: var(--red); }
.student-admin-main { min-width: 0; padding: 30px clamp(24px, 4vw, 54px) 50px; }
.student-main-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.student-main-head h1 { margin: 3px 0 8px; font-size: clamp(34px, 4vw, 50px); }
.student-main-head p:not(.eyebrow) { margin: 0; color: var(--muted); }
.student-main-note { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf1; color: var(--muted); font-size: 13px; white-space: nowrap; }
.student-operation-panel, .student-info-card { border: 1px solid var(--line); border-radius: 9px; background: #fffaf1; box-shadow: 0 12px 32px rgba(34,33,31,.06); }
.student-operation-panel { overflow: hidden; }
.student-project-detail { padding: 26px 28px; background: #f7f1e7; border-bottom: 1px solid var(--line); }
.student-project-detail > .muted-note { margin: 0; }
.student-submit-card { padding: 28px; }
.student-submit-head, .student-info-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.student-submit-head h2, .student-info-head h2 { margin: 2px 0 0; font-size: 25px; }
.student-submit-head .eyebrow, .student-info-head .eyebrow { margin: 0; }
.student-project-detail .submission-project-day { display: grid; width: 50px; height: 50px; place-items: center; margin: 10px 0 14px; border-radius: 50%; background: rgba(49,93,74,.11); color: var(--green); font-weight: 900; }
.student-project-detail h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.35; }
.student-project-detail .submission-project-copy { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.student-project-detail .submission-project-copy b { font-size: 13px; }
.student-project-detail .submission-project-copy p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.student-project-detail small { display: block; margin-top: 16px; color: #858078; font-size: 12px; }
.delivery-guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.delivery-guidance-grid section, .delivery-review-focus, .delivery-file-hint { padding: 14px; border: 1px solid rgba(34,33,31,.09); border-radius: 7px; background: rgba(255,250,241,.7); }
.delivery-guidance-grid b, .delivery-review-focus b, .delivery-file-hint b { display: block; margin-bottom: 7px; color: #4d4943; font-size: 13px; }
.delivery-guidance-grid p, .delivery-review-focus p, .delivery-file-hint p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.delivery-checklist { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.delivery-review-focus { margin-top: 12px; border-left: 3px solid var(--red); }
.delivery-file-hint { margin-top: 12px; background: rgba(198,139,53,.08); }
.student-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.student-info-card { min-width: 0; padding: 22px; }
.student-review-card { margin-top: 20px; }

@media (max-width: 1120px) { .student-admin-topbar { grid-template-columns: 340px minmax(0, 1fr) auto; } .student-admin-layout { grid-template-columns: 340px minmax(0, 1fr); } }
@media (max-width: 980px) { .student-admin-topbar { grid-template-columns: 300px minmax(0, 1fr) auto; } .student-admin-layout { grid-template-columns: 300px minmax(0, 1fr); } .student-admin-sidebar { padding: 18px 12px; } }
@media (max-width: 700px) { .student-admin-topbar { grid-template-columns: 1fr auto; min-height: auto; padding: 12px 16px; } .student-admin-topbar .portal-brand img { width: 150px; } .student-topbar-title { display: none; } .student-admin-topbar .student-user { display: flex; gap: 10px; font-size: 12px; } .student-admin-topbar .student-user #studentName, .student-notice-label { display: none; } .student-notice-trigger { min-height: 34px; padding: 0 9px; } .student-admin-layout { grid-template-columns: 1fr; } .student-admin-sidebar { position: static; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); } .student-project-nav { gap: 8px; } .student-admin-sidebar .assignment-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; } .student-admin-sidebar .assignment-item { flex: 0 0 184px; grid-template-columns: 34px minmax(0, 1fr); } .student-admin-sidebar .assignment-nav-state { grid-column: 2; justify-self: start; } .student-admin-main { padding: 24px 16px 36px; } .student-main-head { display: grid; align-items: start; gap: 12px; } .student-main-note { width: fit-content; } .student-submit-card, .student-project-detail, .student-info-card { padding: 18px; } .delivery-guidance-grid { grid-template-columns: 1fr; } .student-notice-dialog-head { padding: 20px 18px 16px; } .student-notice-list { padding: 0 18px 12px; } }
@media (max-width: 900px) { .portal-entry-grid, .portal-login-shell, .student-grid { grid-template-columns: 1fr; } .assignment-workspace { grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); } .portal-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portal-login-shell { min-height: auto; } }
@media (max-width: 620px) { .portal-entry-shell { width: min(100% - 32px, 1160px); padding-top: 24px; } .portal-entry-intro { margin-top: 44px; } .portal-entry-intro h1 { font-size: 42px; } .portal-entry-grid { margin-top: 26px; } .portal-entry-card { min-height: 156px; } .portal-showcase { margin-top: 38px; padding-top: 26px; } .portal-showcase-head { display: grid; gap: 8px; } .portal-showcase-grid { grid-template-columns: 1fr; } .portal-login-shell { padding: 24px 16px; } .student-header { align-items: flex-start; padding: 14px 16px; } .student-header .portal-brand img { width: 150px; } .student-shell { padding: 30px 16px; } .assignment-workspace { grid-template-columns: 1fr; gap: 18px; } .assignment-navigation .assignment-list { max-height: none; overflow: visible; padding-right: 0; } .submit-content { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } .assignment-item { grid-template-columns: 48px minmax(0, 1fr); } .assignment-action { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; } }
