:root {
  color-scheme: light;
  --paper: #fffbf2;
  --surface: #ffffff;
  --ink: #17151f;
  --muted: #6c6875;
  --yellow: #ffd500;
  --pink: #ff3ea5;
  --cyan: #35c9ff;
  --purple: #bca9f4;
  --green: #c9f1c9;
  --border: 2.5px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.student-identity h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.peer-help-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 3px 9px; font-size: 11px; font-weight: 750; line-height: 1.3; background: #e5f7ff; border: 1.5px solid var(--ink); border-radius: 7px; box-shadow: 2px 2px 0 var(--ink); }
.peer-help-button:hover { background: var(--cyan); }
.peer-empty { color: var(--muted); font-size: 11px; margin-top: 14px; }
.peer-relations { display: grid; gap: 8px; margin-top: 14px; }
.peer-relation { background: #effaff; border: 1px solid #97bccb; border-radius: 10px; padding: 9px 10px; }
.peer-team-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; font-size: 12px; }
.peer-team-heading > span { font-size: 10px; color: #136180; }
.peer-team-members { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; margin-top: 4px; font-size: 12px; }
.peer-team-members a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.peer-team-members > span { color: var(--muted); }
.peer-position-highlight { outline: 4px solid var(--pink); outline-offset: 5px; }
.peer-dialog { width: min(680px, calc(100% - 32px)); }
.peer-description { font-size: 12px; color: var(--muted); margin-top: 4px; }
.peer-rule { font-size: 12px; margin-top: 14px; }
.peer-auth { font-size: 12px; background: #e8f8e9; padding: 12px; border: 1px solid #b2d6b4; border-radius: 9px; margin-top: 16px; }
.peer-auth-needed { background: #fff2c2; border-color: #ddbc5b; }
.peer-auth .btn { margin-top: 10px; }
.peer-search { margin-top: 18px; }
.peer-picker { margin: 14px 0 0; border: 0; padding: 0; min-width: 0; }
.peer-picker legend { font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.peer-picker legend span { color: var(--muted); font-size: 11px; font-weight: 400; }
.peer-student-list { max-height: 330px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d6d0c6; border-radius: 10px; }
.peer-option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #e9e4db; cursor: pointer; background: white; }
.peer-option:last-child { border: 0; }
.peer-option input { width: 19px; height: 19px; accent-color: var(--ink); flex-shrink: 0; }
.peer-option > span:first-of-type { flex: 1; min-width: 0; }
.peer-option strong { display: block; font-size: 14px; }
.peer-option small { display: block; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.peer-option-role { font-size: 10px; text-align: right; max-width: 115px; }
.peer-option-disabled { background: #f5f3ee; color: #77716b; cursor: default; }
.peer-option:has(input:checked) { background: #e3f6ff; box-shadow: inset 3px 0 0 var(--ink); }
.peer-preview { margin-top: 14px; padding: 12px; border: 1px dashed var(--ink); border-radius: 8px; background: #fff6c9; font-size: 12px; }
.peer-footnote { font-size: 10px; color: var(--muted); margin-top: 14px; }
.peer-actions { flex-wrap: wrap; }
@media (max-width: 640px) {
  .peer-help-button { min-height: 44px; }
  .peer-team-members a { min-height: 44px; }
  .peer-student-list { max-height: 36dvh; }
  .peer-option { padding: 10px 8px; gap: 7px; }
  .peer-option-role { max-width: 90px; font-size: 9px; }
  .peer-dialog .search-field input { font-size: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html[data-entry-route="other"] #main-content > .hero { display: none; }
[data-hero-count] { display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; }
[data-hero-count="total"] { min-width: 3ch; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle, #dedbd3 1.1px, transparent 1.5px) 0 0 / 22px 22px, var(--paper); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
img, svg { vertical-align: middle; max-width: 100%; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea, select { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
::selection { color: var(--ink); background: #ffd50099; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.site-header { background: #fffbf2f5; border-bottom: 2px solid var(--ink); position: relative; z-index: 5; }
.header-inner { width: min(1320px, calc(100% - 80px)); min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; background: var(--yellow); border: var(--border); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; transform: rotate(-5deg); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 19px; font-weight: 850; line-height: 1.35; letter-spacing: -.5px; }
.brand-copy small { font-size: 9px; font-weight: 700; letter-spacing: 1.9px; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; position: relative; text-decoration: none; font-size: 14px; font-weight: 700; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 5px; background: var(--pink); border-radius: 3px; transform: rotate(-2deg); }
.main-nav svg { width: 17px; height: 17px; }
.teacher-link { min-height: 42px; padding: 7px 15px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 10px; background: white; font-size: 13px; font-weight: 750; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.teacher-link svg { width: 17px; height: 17px; }
.notice-bar { background: #fff2c2; border: 1px solid #ddbc5b; color: #695017; padding: 9px 16px; border-radius: 10px; font-size: 12px; margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.notice-bar a { font-weight: 750; text-underline-offset: 3px; }
.notice-bar svg { width: 17px; height: 17px; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 64px; padding: 62px 0 57px; position: relative; }
.hero-copy { min-width: 0; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1; font-weight: 800; background: white; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 30px; margin-bottom: 22px; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-2deg); }
.eyebrow svg { width: 14px; height: 14px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.hero-title, .hero-title h1 { font-size: clamp(38px, 4.05vw, 57px); line-height: 1.28; letter-spacing: -1.9px; font-weight: 900; }
.hero-title span { display: inline-block; }
.hero-title em { color: var(--pink); font-style: normal; position: relative; white-space: nowrap; }
.hero-title em::after { content: ""; height: 7px; background: var(--yellow); position: absolute; inset: auto -4px -2px; border-radius: 4px; transform: rotate(-2deg); z-index: -1; }
.hero-description { margin-top: 19px; color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 470px; }
.hero-steps { display: flex; align-items: center; gap: 18px; margin-top: 24px; font-size: 12px; font-weight: 750; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 7px; }
.step-num { width: 23px; height: 23px; border: 1.5px solid var(--ink); background: var(--yellow); border-radius: 7px; display: grid; place-items: center; font-size: 11px; }
.step:nth-child(2) .step-num { background: var(--cyan); }
.step:nth-child(3) .step-num { background: #ffc1e2; }
.hero-stats { display: flex; gap: 30px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; padding-right: 30px; border-right: 1px solid #dcd6cd; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat strong { font-size: 31px; font-weight: 850; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.stat strong small { font-size: 14px; padding-left: 4px; font-weight: 500; }
.stat span { margin-top: 5px; font-size: 11px; color: var(--muted); }
.hero-art { position: relative; width: 100%; max-width: 450px; height: 340px; justify-self: center; }
.hero-art::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: #f7e6c7; opacity: .55; left: 18%; top: 35px; }
.art-sheet { position: absolute; inset: 20px 25px 25px 18px; background: white; border: 3px solid var(--ink); border-radius: 19px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-5deg); padding: 17px 20px; z-index: 1; }
.art-topline { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 850; letter-spacing: 1.5px; padding-bottom: 12px; border-bottom: 2px dashed #ded9d0; }
.art-topline span:last-child { background: var(--cyan); border: 1.5px solid var(--ink); border-radius: 7px; padding: 3px 8px; font-size: 9px; letter-spacing: 0; }
.art-heading { font-size: 25px; font-weight: 900; letter-spacing: -1px; margin-top: 12px; }
.art-heading span { color: var(--pink); }
.art-browser { margin-top: 12px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #e6f5ff; }
.browser-dots { display: flex; gap: 5px; align-items: center; background: var(--paper); padding: 8px 9px; border-bottom: 2px solid var(--ink); }
.browser-dots i, .browser-dots span { display: block; height: 6px; width: 6px; border: 1px solid var(--ink); border-radius: 50%; background: var(--pink); }
.browser-dots i:nth-child(2), .browser-dots span:nth-child(2) { background: var(--yellow); }
.browser-dots i:nth-child(3), .browser-dots span:nth-child(3) { background: var(--cyan); }
.browser-body { position: relative; min-height: 118px; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 20px; padding: 14px; background: repeating-linear-gradient(0deg, transparent, transparent 21px, #17151f0a 22px), repeating-linear-gradient(90deg, transparent, transparent 21px, #17151f0a 22px), #ecf8ff; }
.demo-shape { width: 68px; height: 68px; display: grid; place-items: center; background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 17px; transform: rotate(-9deg); font-size: 34px; }
.demo-shape svg { width: 39px; height: 39px; }
.mini-person { width: 65px; height: 65px; display: grid; place-items: center; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; font-size: 35px; transform: rotate(9deg); }
.mini-person svg { width: 40px; height: 40px; }
.mini-stars { display: flex; gap: 3px; color: var(--yellow); font-size: 28px; margin-top: 10px; }
.mini-stars svg { width: 23px; height: 23px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.3; }
.sticker { position: absolute; z-index: 3; border: 2.5px solid var(--ink); padding: 9px 14px; border-radius: 11px; font-size: 13px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.sticker-pink { top: 1px; right: -4px; transform: rotate(10deg); background: var(--pink); }
.sticker-blue { bottom: 7px; left: -8px; transform: rotate(5deg); background: var(--cyan); }
.sticker svg { width: 20px; height: 20px; }
.sparkle { position: absolute; width: 38px; height: 38px; z-index: 3; color: var(--ink); }
.sparkle:first-of-type { right: -10px; top: 126px; }
.sparkle:last-of-type { left: -19px; top: 6px; }
.hero-note { position: absolute; font-size: 10px; color: var(--muted); bottom: -18px; right: 8px; transform: rotate(-4deg); letter-spacing: .5px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 6px; margin-bottom: 20px; }
.section-kicker { color: var(--muted); font-size: 10px; letter-spacing: 2px; font-weight: 800; margin-bottom: 2px; }
.section-heading h2 { font-size: 26px; letter-spacing: -.6px; font-weight: 850; display: flex; align-items: center; gap: 10px; }
.section-heading h2 svg { width: 26px; height: 26px; }
.section-heading p:not(.section-kicker) { font-size: 12px; color: var(--muted); margin-top: 4px; }
.section-heading-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.filter-panel { background: white; padding: 16px; border: 2px solid var(--ink); border-radius: 15px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 16px; }
.search-field { position: relative; display: flex; align-items: center; gap: 10px; min-width: 180px; flex: 1; border: 1.5px solid #d7d4d0; border-radius: 8px; padding-inline: 12px; min-height: 43px; background: #fcfbf9; }
.search-field svg { width: 18px; height: 18px; color: #79747e; }
.search-field input { width: 100%; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 13px; padding: 10px 0; }
.search-field:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.class-select { min-width: 175px; }
.class-select select, .admin-toolbar select { width: 100%; border: 1.5px solid #d7d4d0; border-radius: 8px; min-height: 43px; background: #fcfbf9; padding: 8px 30px 8px 12px; font-size: 12px; }
.status-tabs { display: flex; gap: 4px; padding: 4px; border: 1.5px solid #e2ded7; border-radius: 10px; background: #f7f5f0; }
.status-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 33px; border: 1.5px solid transparent; border-radius: 7px; padding: 4px 12px; background: transparent; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-tabs button[aria-pressed="true"] { background: var(--yellow); border-color: var(--ink); box-shadow: 1px 1px 0 var(--ink); font-weight: 800; }
.status-tabs button span { opacity: .65; font-size: 10px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); padding: 0 1px; margin-bottom: 18px; gap: 12px; }
.result-meta strong { color: var(--ink); font-weight: 750; }
.result-meta .sort-label { display: flex; align-items: center; gap: 5px; }
.result-meta svg { width: 14px; height: 14px; }
.student-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 5px; }
.student-card { border: var(--border); border-radius: 18px; background: white; box-shadow: 4px 4px 0 var(--ink); padding: 21px; display: flex; flex-direction: column; min-width: 0; transition: transform 160ms ease, box-shadow 160ms ease; }
.student-card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--ink); }
.card-top { display: flex; align-items: flex-start; gap: 11px; position: relative; }
.student-avatar { width: 48px; height: 48px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 13px; background: #ffb9dd; display: grid; place-items: center; font-size: 20px; font-weight: 850; box-shadow: 2px 2px 0 var(--ink); }
.student-avatar svg { width: 26px; height: 26px; }
.color-0 { background: #ffb9dd; }.color-1 { background: #8de1ff; }.color-2 { background: #ffdf60; }.color-3 { background: #cdbafa; }.color-4 { background: #bfeabd; }.color-5 { background: #ffc79e; }
.student-identity { min-width: 0; padding-right: 2px; }
.student-identity h3 { font-size: 19px; font-weight: 850; line-height: 1.3; margin-top: 1px; letter-spacing: -.4px; }
.student-identity h3 a { text-decoration: none; }
.student-identity h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.student-id { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .25px; margin-top: 3px; }
.student-identity small { font-size: 10px; color: var(--muted); display: block; margin-top: 1px; }
.status-badge { margin-left: auto; font-size: 9px; font-weight: 700; line-height: 1; border-radius: 6px; padding: 6px 7px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; border: 1px solid; }
.status-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-badge.ready { background: #e7f7e9; border-color: #bfdcc3; color: #297640; }
.status-badge.pending { background: #f3f1ed; border-color: #dedbd5; color: #746f67; }
.card-project { padding: 18px 0 17px; margin-top: 16px; border-top: 1px dashed #ddd7cc; flex: 1; min-width: 0; }
.project-label { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.project-title { font-size: 16px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.project-caption { color: var(--muted); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.card-footer { border-top: 1px solid #eee9e1; padding-top: 14px; }
.card-rating { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 12px; gap: 6px; }
.card-rating svg { width: 13px; height: 13px; fill: var(--yellow); stroke: var(--ink); }
.card-rating strong { font-size: 12px; color: var(--ink); }
.card-rating .stars { color: #d1b004; letter-spacing: 2px; }
.card-actions { display: flex; gap: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 9px; background: white; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 12px; line-height: 1.4; box-shadow: 2px 2px 0 var(--ink); transition: transform 120ms ease, box-shadow 120ms ease; }
.btn svg { width: 16px; height: 16px; }
.btn:hover:not(:disabled):not(.btn-disabled) { background: #fff4bc; }
.btn:active:not(:disabled):not(.btn-disabled) { transform: translate(2px, 2px); box-shadow: none; }
.btn-primary { background: var(--yellow); }
.btn-primary:hover:not(:disabled) { background: #ffe13c; }
.btn-secondary { background: white; }
.card-actions .btn { flex: 1; padding-inline: 8px; }
.btn-disabled, .btn:disabled { color: #7d7872; background: #efede7; box-shadow: none; border-color: #d6d0c6; cursor: not-allowed; }
.is-pending { background: #fffefb; box-shadow: 4px 4px 0 #b7b0a4; border-color: #aba59b; }
.is-pending .student-avatar { background: #ece9e3; border-color: #969087; box-shadow: 2px 2px 0 #b7b0a4; color: #827b71; }
.is-pending .project-title { color: #736e65; }
.is-pending:hover { box-shadow: 4px 6px 0 #b7b0a4; }
.tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ink); border-radius: 5px; font-size: 10px; padding: 2px 6px; background: var(--yellow); }
.empty-state, .loading-state { grid-column: 1 / -1; text-align: center; padding: 65px 24px; border: 2px dashed #cbc4b7; background: #fffcf6; border-radius: 18px; color: var(--muted); }
.empty-state svg { width: 42px; height: 42px; margin-bottom: 14px; }
.empty-state h3 { color: var(--ink); margin-bottom: 7px; font-size: 20px; }
.empty-state p { font-size: 13px; }
.empty-state .btn { margin-top: 20px; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 32px 12px; font-size: 12px; color: var(--muted); }
.pagination .btn { min-width: 40px; padding-inline: 12px; }
.pagination .btn[aria-current="page"] { background: var(--yellow); }
.site-footer { width: min(1240px, calc(100% - 80px)); margin: 52px auto 0; padding: 25px 0 30px; border-top: 1px dashed #c9c0b4; display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 11px; color: var(--muted); }
.site-footer strong { font-weight: 750; color: var(--ink); }
.site-footer svg { width: 14px; height: 14px; }
.site-footer a { text-underline-offset: 3px; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 13px; font-weight: 750; }

.review-dialog { padding: 0; width: min(580px, calc(100% - 40px)); max-height: min(88dvh, 850px); margin: auto; border: 3px solid var(--ink); border-radius: 22px; background: #fffdf4; box-shadow: 8px 8px 0 var(--ink); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.review-dialog::backdrop { background: #17151f80; backdrop-filter: blur(3px); }
.dialog-shell { padding: 27px; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dialog-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 1px; font-weight: 850; }
.dialog-kicker svg { fill: var(--yellow); width: 19px; height: 19px; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; background: white; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; }
.icon-button:hover { background: var(--yellow); }
.icon-button svg { width: 19px; height: 19px; }
.review-student { margin-top: 15px; padding-bottom: 18px; border-bottom: 1.5px dashed #d8d0c2; }
.review-student h2 { font-size: 28px; line-height: 1.4; font-weight: 850; letter-spacing: -.7px; }
.review-student p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.work-switcher { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.work-switcher button { padding: 7px 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: white; font-size: 12px; min-height: 38px; }
.work-switcher button[aria-pressed="true"] { background: var(--cyan); font-weight: 750; box-shadow: 2px 2px 0 var(--ink); }
.visit-banner { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: #e6f6fd; padding: 13px; border: 1.5px solid var(--ink); border-radius: 11px; margin-top: 18px; }
.visit-banner p { font-size: 11px; color: var(--muted); }
.visit-banner strong { font-size: 12px; display: block; color: var(--ink); }
.visit-banner .btn { white-space: nowrap; font-size: 11px; min-height: 38px; }
.review-form { margin-top: 22px; }
.review-form h3, .review-form legend { text-align: center; font-size: 17px; font-weight: 800; }
.star-picker { display: flex; justify-content: center; gap: 9px; border: 0; padding: 14px 0 0; margin: 0; }
.star-option { position: relative; width: 48px; height: 50px; display: grid; place-items: center; cursor: pointer; }
.star-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-option span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; }
.star-option svg { width: 39px; height: 39px; fill: #e9e3d7; stroke: var(--ink); stroke-width: 1.25; transition: transform 120ms ease; }
.star-option.is-selected svg, .star-option[data-selected="true"] svg, .star-option.selected svg, .star-option input:checked + span svg, .star-option span.is-selected svg, .star-option span[data-selected="true"] svg { fill: var(--yellow); }
.star-option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.star-option:hover svg { transform: scale(1.1); }
.rating-caption { text-align: center; color: var(--muted); font-size: 12px; min-height: 22px; margin-top: 4px; margin-bottom: 22px; }
.field-label { display: block; font-weight: 750; font-size: 13px; margin: 17px 0 8px; }
.field-label small { font-size: 11px; font-weight: 400; color: var(--muted); }
textarea { width: 100%; min-height: 115px; resize: vertical; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 11px; background: white; font-size: 13px; line-height: 1.7; display: block; }
textarea::placeholder { color: #9a949c; }
.field-bottom { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; padding-top: 6px; }
.form-error { color: #a72c36; background: #fff0ee; padding: 8px 11px; border-radius: 7px; font-size: 12px; margin-top: 10px; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }
.form-actions .btn { flex: 1; min-height: 46px; font-size: 13px; }
.modal-note { text-align: center; margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.stats-preview { margin-top: 22px; padding-top: 20px; border-top: 2px dashed #d8d0c2; }
.stats-preview h3 { font-size: 15px; margin-bottom: 10px; }
.average-block { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.average-block strong { font-size: 42px; line-height: 1; letter-spacing: -1px; font-weight: 850; }
.average-block span { font-size: 12px; color: var(--muted); }
.distribution { display: flex; flex-direction: column; gap: 8px; }
.distribution-row { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.distribution-row > span:first-child { width: 32px; }
.distribution-row > span:last-child { width: 35px; text-align: right; color: var(--muted); }
.bar { flex: 1; height: 12px; background: #efe9d8; border: 1.5px solid var(--ink); border-radius: 30px; overflow: hidden; }
.bar i { height: 100%; display: block; background: linear-gradient(90deg, var(--yellow), #ffae58); border-radius: 30px; }

.page-intro { padding: 42px 0 27px; }
.page-intro h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.page-intro p { color: var(--muted); margin-top: 8px; font-size: 13px; }
.my-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.my-review-card { padding: 23px; border: var(--border); background: white; box-shadow: 4px 4px 0 var(--ink); border-radius: 17px; min-width: 0; }
.my-review-card h3 { font-size: 20px; }
.my-review-card p { color: var(--muted); font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.my-review-card time { color: var(--muted); font-size: 10px; display: block; margin-block: 10px 15px; }
.my-review-card .stars { color: #c8a500; letter-spacing: 2px; margin-top: 10px; }
.my-review-card .btn { margin-top: 12px; }

.admin-banner { margin-top: 25px; padding: 13px 16px; background: #fff0c2; border: 1.5px solid #c9a744; border-radius: 10px; color: #695017; font-size: 12px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 30px 23px; }
.admin-heading h1 { font-size: 32px; font-weight: 850; letter-spacing: -1px; }
.admin-heading p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.admin-heading > div:last-child { display: flex; gap: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.admin-stat { padding: 18px 20px; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); background: white; }
.admin-stat:nth-child(2) { background: #fce8f2; }.admin-stat:nth-child(3) { background: #e6f6ff; }.admin-stat:nth-child(4) { background: #fff2b6; }
.admin-stat span { color: var(--muted); font-size: 11px; }
.admin-stat strong { display: block; font-size: 32px; line-height: 1.3; margin-top: 7px; font-weight: 850; font-variant-numeric: tabular-nums; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar .search-field { max-width: 360px; background: white; border: 1.5px solid var(--ink); }
.admin-toolbar select { width: auto; max-width: 220px; background: white; border-color: var(--ink); }
.admin-table-wrap { border: 2px solid var(--ink); border-radius: 14px; background: white; overflow-x: auto; box-shadow: 4px 4px 0 var(--ink); }
.admin-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
.admin-table th { background: #f5f1e9; color: #625c67; font-size: 11px; font-weight: 700; text-align: left; padding: 14px 17px; border-bottom: 1.5px solid var(--ink); }
.admin-table td { padding: 14px 17px; border-bottom: 1px solid #eee9e0; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fffcf1; }
.admin-table td strong { font-size: 13px; }
.admin-table td small { display: block; font-size: 10px; color: var(--muted); }
.admin-table .btn { font-size: 11px; min-height: 35px; padding: 6px 10px; box-shadow: none; border-width: 1.5px; }
.admin-table .status-badge { font-size: 10px; }
.admin-mobile-cards { display: none; }
.admin-detail { padding-top: 15px; }
.admin-detail h3 { font-size: 18px; margin: 18px 0 10px; }
.comment-item { background: white; padding: 15px; border: 1px solid #dfd8cc; border-radius: 10px; margin-top: 12px; }
.comment-item header { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 750; }
.comment-item time { font-size: 10px; color: var(--muted); }
.comment-item p { font-size: 13px; margin-top: 9px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-item .stars { color: #bb9800; }
.settings-form { margin-top: 20px; }
.settings-form label { display: block; font-size: 12px; font-weight: 750; margin: 14px 0 7px; }
.settings-form input, .settings-form select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--ink); background: white; border-radius: 9px; font-size: 13px; }
.settings-form input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--yellow); }
.field-row { display: flex; align-items: center; gap: 12px; }
.field-row > * { flex: 1; min-width: 0; }

@media (min-width: 1500px) {
  .hero { gap: 90px; padding-block: 72px; }
  .hero-art { transform: scale(1.05); }
}
@media (max-width: 1100px) {
  .container, .site-footer { width: calc(100% - 48px); }
  .header-inner { width: calc(100% - 48px); }
  .hero { gap: 25px; }
  .hero-title, .hero-title h1 { font-size: 45px; }
  .hero-art { transform: scale(.88); transform-origin: center; }
  .hero-steps { gap: 10px; }
  .student-card { padding: 18px; }
  .student-identity h3 { font-size: 18px; }
  .student-avatar { width: 42px; height: 42px; }
  .card-top { gap: 8px; }
  .status-badge { font-size: 8px; padding: 5px; }
  .filter-panel { gap: 9px; }
  .status-tabs button { padding-inline: 9px; }
  .class-select { min-width: 155px; }
}
@media (max-width: 900px) {
  .brand-copy small { font-size: 8px; letter-spacing: 1.3px; }
  .main-nav { gap: 19px; }
  .main-nav a { font-size: 12px; }
  .hero { grid-template-columns: 1.1fr .9fr; gap: 0; padding-block: 43px; }
  .hero-title, .hero-title h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-description { font-size: 12px; }
  .hero-art { transform: scale(.8); width: 360px; margin-left: -10px; }
  .hero-stats { gap: 18px; margin-top: 25px; }
  .stat { padding-right: 18px; }
  .stat strong { font-size: 28px; }
  .hero-steps { font-size: 10px; }
  .student-grid, .my-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-card { padding: 21px; }
  .filter-panel .search-field { flex: 1 1 45%; }
  .class-select { flex: 1 1 30%; }
  .status-tabs { width: 100%; }
  .status-tabs button { flex: 1; }
  .admin-stats { gap: 13px; }
  .admin-stat { padding: 15px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 24px; }
  .container, .site-footer { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 36px); min-height: 76px; gap: 10px; flex-wrap: wrap; padding-block: 13px 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 7px; letter-spacing: 1.1px; }
  .teacher-link { min-height: 36px; font-size: 10px; padding: 6px 9px; gap: 5px; box-shadow: 2px 2px 0 var(--ink); }
  .teacher-link svg { width: 14px; height: 14px; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 34px; border-top: 1px dashed #d6cdbf; padding-top: 6px; margin-top: 5px; }
  .main-nav a { min-height: 37px; font-size: 12px; }
  .main-nav a.active::after { bottom: 0; height: 4px; }
  .hero { grid-template-columns: 1fr; padding: 32px 1px 33px; gap: 12px; }
  .eyebrow { font-size: 10px; padding: 8px 10px; margin-bottom: 17px; }
  .hero-title, .hero-title h1 { font-size: clamp(32px, 8.4vw, 43px); line-height: 1.32; letter-spacing: -1.2px; }
  .hero-description { font-size: 12px; line-height: 1.9; margin-top: 17px; max-width: 360px; }
  .hero-steps { gap: 12px; margin-top: 18px; font-size: 10px; }
  .step-num { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
  .hero-stats { margin-top: 24px; gap: 22px; }
  .stat { padding-right: 22px; }
  .stat strong { font-size: 29px; }
  .stat span { font-size: 10px; }
  .hero-art { width: min(350px, 100%); height: 282px; transform: none; margin: 13px 0 0; }
  .hero-art::before { width: 75%; height: auto; aspect-ratio: 1; left: 12%; }
  .art-sheet { inset: 16px 22px 19px 20px; padding: 12px 15px; border-radius: 15px; box-shadow: 6px 6px 0 var(--ink); }
  .art-heading { font-size: 22px; margin-top: 10px; }
  .art-topline { font-size: 9px; padding-bottom: 9px; }
  .art-topline span:last-child { font-size: 8px; padding: 3px 6px; }
  .art-browser { margin-top: 9px; }
  .browser-body { min-height: 95px; padding: 10px; }
  .demo-shape { width: 53px; height: 53px; border-radius: 13px; font-size: 27px; }
  .demo-shape svg { width: 31px; height: 31px; }
  .mini-person { width: 50px; height: 50px; font-size: 27px; }
  .mini-stars { margin-top: 7px; }
  .mini-stars svg { width: 20px; height: 20px; }
  .sticker { font-size: 10px; padding: 7px 10px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .sticker-pink { right: 0; top: 3px; }
  .sticker-blue { left: 0; bottom: 1px; }
  .sticker svg { width: 16px; height: 16px; }
  .sparkle { width: 26px; height: 26px; }
  .sparkle:first-of-type { right: -3px; top: 112px; }
  .sparkle:last-of-type { left: 1px; top: 3px; }
  .hero-note { font-size: 8px; bottom: -16px; }
  .section-heading { align-items: flex-start; margin-bottom: 15px; gap: 10px; }
  .section-kicker { font-size: 9px; }
  .section-heading h2 { font-size: 23px; gap: 7px; }
  .section-heading p:not(.section-kicker) { font-size: 11px; }
  .section-heading-actions { font-size: 10px; padding-top: 23px; }
  .filter-panel { padding: 12px; gap: 9px; border-radius: 12px; }
  .filter-panel .search-field { flex-basis: 100%; }
  .class-select { flex-basis: 100%; }
  .class-select select { font-size: 12px; }
  .status-tabs button { min-height: 36px; padding: 5px 8px; font-size: 11px; }
  .result-meta { font-size: 10px; margin-bottom: 15px; }
  .student-grid, .my-reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .student-card { border-radius: 17px; padding: 21px; }
  .student-identity h3 { font-size: 21px; }
  .student-avatar { width: 48px; height: 48px; font-size: 20px; }
  .card-top { gap: 12px; }
  .student-id { font-size: 12px; }
  .student-identity small { font-size: 10px; }
  .status-badge { font-size: 9px; padding: 6px; }
  .project-title { font-size: 17px; }
  .project-caption { font-size: 12px; }
  .card-project { padding-block: 16px; margin-top: 17px; }
  .btn { min-height: 44px; font-size: 12px; }
  .card-rating { font-size: 11px; }
  .site-footer { margin-top: 36px; padding-block: 22px; flex-direction: column; align-items: flex-start; gap: 7px; font-size: 10px; }
  .notice-bar { font-size: 10px; margin-top: 13px; align-items: flex-start; padding: 9px 11px; }
  .review-dialog { width: calc(100% - 28px); max-height: 92dvh; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .dialog-shell { padding: 20px; }
  .dialog-kicker { font-size: 10px; }
  .icon-button { width: 44px; height: 44px; }
  .review-student h2 { font-size: 25px; }
  .review-student p { font-size: 11px; }
  .visit-banner { padding: 11px; gap: 9px; }
  .visit-banner .btn { padding-inline: 10px; min-height: 40px; }
  .star-picker { gap: 5px; }
  .star-option, .star-option span { width: 44px; height: 47px; }
  .star-option svg { width: 35px; height: 35px; }
  .review-form { margin-top: 20px; }
  .form-actions { gap: 10px; }
  .form-actions .btn { padding-inline: 9px; font-size: 12px; }
  .field-bottom { font-size: 9px; }
  .page-intro { padding-block: 30px 22px; }
  .page-intro h1 { font-size: 29px; }
  .page-intro p { font-size: 12px; }
  .admin-heading { align-items: flex-start; padding-block: 25px 20px; flex-direction: column; gap: 15px; }
  .admin-heading h1 { font-size: 28px; }
  .admin-heading > div:last-child { width: 100%; }
  .admin-heading > div:last-child .btn { flex: 1; }
  .admin-banner { font-size: 11px; padding: 11px 13px; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-stat { padding: 15px; }
  .admin-stat strong { font-size: 29px; }
  .admin-stat span { font-size: 10px; }
  .admin-toolbar .search-field { max-width: none; flex-basis: 100%; }
  .admin-toolbar select { max-width: none; flex: 1; font-size: 11px; }
  .admin-table th, .admin-table td { padding: 12px; }
  .field-row { flex-direction: column; align-items: stretch; }
  .toast { bottom: 17px; font-size: 12px; padding: 11px 15px; }
}
@media (max-width: 359px) {
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { letter-spacing: .6px; }
  .hero-title, .hero-title h1 { font-size: 30px; }
  .hero-steps { gap: 8px; font-size: 9px; }
  .hero-stats { gap: 16px; }
  .stat { padding-right: 16px; }
  .student-card { padding: 17px; }
  .student-identity h3 { font-size: 19px; }
  .student-avatar { width: 42px; height: 42px; }
  .card-top { gap: 8px; }
  .status-badge { font-size: 8px; padding: 5px; }
  .star-picker { gap: 2px; }
  .dialog-shell { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Concrete page components share the visual tokens above. */
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 9px 15px; border: 2px solid var(--ink); background: var(--yellow); border-radius: 8px; }
.pink-text { color: var(--pink); }
.muted { color: var(--muted); }
.brand-copy > strong > span { color: var(--pink); }
.nav-count { min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding-inline: 3px; background: var(--yellow); border: 1px solid var(--ink); border-radius: 50%; font-size: 9px; }
.teacher-link > small { font-size: 9px; color: var(--muted); border-left: 1px solid #d6d0c6; padding-left: 6px; }
.hero-title > span:first-child { background: var(--yellow); line-height: 1.1; padding: 0 5px 4px; border: 2px solid var(--ink); border-radius: 9px; transform: rotate(-4deg); margin-inline: 3px; box-shadow: 3px 3px 0 var(--ink); }
.hero-title em { color: var(--ink); }
.hero-title em::after { display: none; }
.title-star { width: 42px; vertical-align: middle; margin-right: 3px; }
.title-star svg { width: 41px; height: 41px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; transform: rotate(-12deg); }
.eyebrow-dot { display: none; }
.step-arrow { font-size: 13px; color: #9e9688; }
.hero-steps { gap: 12px; }
.step:nth-of-type(3) .step-num { background: var(--cyan); }
.step:nth-of-type(5) .step-num { background: #ffc1e2; }
.art-heading { font-size: 23px; line-height: 1.28; margin-top: 10px; }
.art-browser { margin-top: 10px; }
.browser-dots > span { display: inline; width: auto; height: auto; border: 0; border-radius: 0; background: none; color: #7e7783; font-size: 8px; line-height: 1; margin-left: 8px; }
.browser-body { min-height: 88px; height: 88px; padding: 10px; }
.demo-shape { position: absolute; box-shadow: none; }
.shape-circle { width: 63px; height: 63px; border-radius: 50%; background: var(--pink); left: -12px; top: 34px; }
.shape-square { width: 44px; height: 44px; border-radius: 8px; background: var(--yellow); right: 12px; top: 12px; transform: rotate(16deg); }
.code-label { font: 750 14px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; z-index: 2; transform: rotate(-3deg); background: #fffdf4; border: 1.5px solid var(--ink); padding: 8px 9px; border-radius: 5px; box-shadow: 2px 2px 0 var(--ink); }
.mini-person { width: 34px; height: 34px; position: absolute; right: 65px; bottom: -9px; transform: rotate(-8deg); background: var(--cyan); }
.mini-person svg { width: 22px; height: 22px; }
.mini-lines { position: absolute; top: 8px; left: 14px; display: flex; flex-direction: column; gap: 4px; }
.mini-lines i { display: block; height: 2px; width: 28px; background: #17151f30; }
.mini-lines i:nth-child(2) { width: 20px; }
.mini-stars { margin-top: 9px; gap: 4px; line-height: 1; }
.mini-stars svg { width: 22px; height: 22px; }
.art-caption { font-size: 8px; color: var(--muted); letter-spacing: .5px; margin-top: 6px; }
.sparkle-one { right: -7px; top: 125px; font-size: 40px; }
.sparkle-two { left: -9px; top: -6px; font-size: 39px; }
.heading-deco { color: var(--pink); font-size: 28px; margin-left: 2px; }
.section-heading-actions .tag { background: transparent; border: none; font-size: 11px; color: var(--muted); padding: 0; }
.section-heading-actions .tag svg { width: 14px; height: 14px; }
.meta-divider { display: inline-block; color: #c7bfb3; margin-inline: 9px; }
.gallery-footnote { text-align: center; font-size: 11px; color: var(--muted); margin-top: 28px; }
.gallery-footnote svg { width: 14px; height: 14px; color: #b59c1b; }
.reviewed-label { color: #34733e; }
.card-rating .reviewed-label svg { stroke: #34733e; fill: none; }
.card-rating small { font-size: 10px; }
.static-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.static-stars svg { width: 17px; height: 17px; fill: #e9e3d7; stroke: var(--ink); stroke-width: 1.15; }
.static-stars .filled svg { fill: var(--yellow); }
.site-footer { display: grid; grid-template-columns: 1fr auto; }
.site-footer > div { display: flex; align-items: center; gap: 13px; }
.site-footer > small { grid-column: 1 / -1; font-size: 10px; color: #8d857a; }
.footer-brand { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.site-footer p > span { border-left: 1px solid #d0c7b8; padding-left: 10px; margin-left: 8px; }
.review-student { display: flex; align-items: center; gap: 13px; }
.review-student h2 { font-size: 23px; }
.review-student .student-avatar { width: 48px; height: 48px; }
.star-picker { display: block; min-width: 0; padding-top: 7px; }
.star-picker > legend { width: 100%; }
.star-options { display: flex; justify-content: center; gap: 9px; }
.star-picker .rating-caption { margin-bottom: 7px; }
.field-label small { float: right; }
.modal-note svg { width: 12px; height: 12px; margin-right: 2px; }
.stats-preview .average-block { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.average-block > div { display: flex; align-items: baseline; gap: 7px; }
.average-block > p { width: 100%; color: var(--muted); font-size: 11px; }
.average-block .static-stars svg { width: 21px; height: 21px; }
.my-reviews-grid { margin-top: 23px; }
.notice-bar + .result-meta { margin-top: 20px; }
.my-review-card .student-identity h2 { font-size: 20px; }
.my-review-card > h3 { font-size: 15px; margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ddd7cc; }
.my-review-card > .static-stars { margin-top: 10px; }
.my-review-card .review-comment { font-size: 13px; min-height: 44px; line-height: 1.8; margin-block: 12px 18px; }
.review-bottom { display: flex; flex-direction: column; padding-top: 12px; border-top: 1px solid #eee9e1; gap: 10px; }
.review-bottom small { font-size: 10px; color: var(--muted); }
.review-bottom .btn { margin-top: 0; align-self: flex-start; }
.admin-banner { display: flex; align-items: center; gap: 11px; }
.admin-banner > svg { width: 22px; height: 22px; }
.admin-banner > div { flex: 1; }
.admin-banner strong { display: block; font-size: 12px; color: #604912; }
.admin-banner span { font-size: 11px; }
.admin-banner > a { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; white-space: nowrap; font-weight: 700; text-decoration: none; }
.admin-banner > a svg { width: 14px; height: 14px; }
.admin-banner-actions { display: inline-flex; align-items: center; gap: 10px; }
.admin-banner-actions .btn { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.admin-login-panel { width: min(520px, 100%); margin: 24px auto 70px; }
.admin-login-panel .settings-form { margin-top: 18px; }
.admin-heading .section-kicker { margin-bottom: 6px; }
.admin-stat { position: relative; }
.admin-stat > svg { position: absolute; right: 17px; top: 20px; width: 20px; height: 20px; opacity: .6; }
.admin-stat strong small { font-size: 11px; color: var(--muted); font-weight: 400; }
.admin-toolbar .class-select { flex: none; }
.admin-table .table-action { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; font-size: 11px; font-weight: 750; min-height: 36px; padding: 5px; text-decoration: underline; text-underline-offset: 4px; }
.table-action svg { width: 14px; height: 14px; }
.admin-table .empty-cell { text-align: center; padding-block: 36px; color: var(--muted); }
.settings-panel { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; margin-top: 36px; padding: 27px; border: 2px solid var(--ink); border-radius: 16px; background: white; box-shadow: 4px 4px 0 var(--ink); }
.settings-panel h2 { font-size: 21px; margin-top: 5px; }
.settings-panel p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.settings-panel .settings-form { margin: 0; }
.settings-form label.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; margin: 0; border-bottom: 1px solid #eee9e1; }
.setting-row strong { display: block; font-size: 12px; }
.setting-row small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.settings-form .setting-row input[type="checkbox"] { width: 19px; height: 19px; min-height: 19px; flex-shrink: 0; cursor: pointer; }
.settings-form > .btn { margin-top: 17px; }
.admin-export-actions { display: flex; gap: 12px; }
.review-comment, .comment-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-detail h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.admin-detail h3 > span { background: var(--yellow); border: 1px solid var(--ink); border-radius: 6px; padding: 1px 6px; font-size: 10px; }
.comment-item > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-item > div > span:not(.static-stars) { font-size: 11px; font-weight: 750; }
.comment-item small { font-size: 10px; color: var(--muted); }
.comment-item > div > small { margin-left: auto; }
.comment-item > small { display: block; margin-top: 10px; }
.empty-state.compact { padding: 24px 12px; }

@media (max-width: 900px) {
  .settings-panel { gap: 23px; grid-template-columns: 1fr 1.3fr; padding: 22px; }
  .hero-steps { gap: 7px; }
  .title-star { width: 31px; }.title-star svg { width: 30px; height: 30px; }
}
@media (max-width: 640px) {
  .hero-title > span:first-child { border-radius: 7px; padding: 1px 4px 3px; }
  .main-nav a, .teacher-link, .status-tabs button, .work-switcher button { min-height: 44px; }
  .search-field input, .class-select select, .admin-toolbar select, .settings-form input, textarea { font-size: 16px; }
  .admin-table-wrap { border: 0; overflow: visible; background: none; box-shadow: none; }
  .admin-table { display: block; white-space: normal; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-table tbody { display: grid; gap: 16px; }
  .admin-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; border: 2px solid var(--ink); border-radius: 14px; background: white; box-shadow: 3px 3px 0 var(--ink); padding: 16px; }
  .admin-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .admin-table td:first-child, .admin-table td:last-child { grid-column: 1 / -1; }
  .admin-table td:first-child { border-bottom: 1px dashed #ddd7cc; padding-bottom: 10px; }
  .admin-table td:first-child strong { font-size: 17px; }
  .admin-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 3px; }
  .admin-table .table-action { min-height: 44px; padding: 8px 0 0; }
  .admin-table .empty-cell { grid-column: 1 / -1; }
  .admin-toolbar .class-select select { font-size: 16px; }
  .title-star { width: 30px; margin-right: 1px; }.title-star svg { width: 29px; height: 29px; }
  .hero-steps { gap: 8px; }
  .step-arrow { font-size: 11px; }
  .art-heading { font-size: 21px; line-height: 1.2; margin-top: 8px; }
  .browser-body { min-height: 66px; height: 66px; }
  .code-label { font-size: 11px; padding: 6px 7px; }
  .shape-circle { width: 50px; height: 50px; left: -10px; top: 22px; }
  .shape-square { width: 35px; height: 35px; right: 9px; top: 8px; }
  .mini-person { width: 28px; height: 28px; right: 45px; }
  .mini-person svg { width: 18px; height: 18px; }
  .mini-stars { margin-top: 7px; }.mini-stars svg { width: 18px; height: 18px; }
  .art-caption { font-size: 7px; margin-top: 4px; }
  .sparkle-one { font-size: 30px; }.sparkle-two { font-size: 29px; }
  .section-heading-actions { display: none; }
  .site-footer { display: flex; }
  .site-footer > div { gap: 8px; flex-wrap: wrap; }
  .site-footer > div > span { font-size: 9px; }
  .site-footer > small { font-size: 9px; }
  .review-student { gap: 10px; }
  .review-student h2 { font-size: 19px; }
  .review-student .student-avatar { width: 42px; height: 42px; }
  .review-student p { font-size: 10px; }
  .star-options { gap: 5px; }
  .average-block strong { font-size: 36px; }
  .average-block .static-stars svg { width: 18px; height: 18px; }
  .admin-banner { align-items: flex-start; }
  .admin-banner > a { display: none; }
  .admin-stat > svg { width: 17px; height: 17px; right: 14px; top: 16px; }
  .admin-heading h1 { font-size: 27px; }
  .settings-panel { display: block; padding: 20px; }
  .settings-panel .settings-form { margin-top: 16px; }
  .admin-toolbar .class-select { flex: 1; min-width: 120px; }
}

.admin-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.admin-login-panel { width: min(850px, 100%); max-width: 850px; margin: 28px auto 60px; }
.student-password-panel { display: block; max-width: 580px; margin: 28px auto 60px; }
.student-submit-link { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; min-height: 38px; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
.student-submit-link:hover { color: var(--pink); }
.settings-form { min-width: 0; }
.settings-form input { max-width: 100%; }
.work-switcher { flex-wrap: wrap; }
@media (max-width: 640px) {
 .admin-banner { flex-wrap: wrap; }
 .admin-banner-actions { margin-left: 0; width: 100%; }
 .main-nav { gap: 5px; }
 .main-nav a { font-size: 11px; }
 .admin-heading { flex-wrap: wrap; gap: 16px; }
}

.visit-dialog { width: min(600px, calc(100% - 32px)); }
.visit-dialog h2 { font-size: 23px; line-height: 1.5; overflow-wrap: anywhere; }
.visit-description { margin-top: 8px; color: var(--muted); font-size: 13px; }
.visit-options { display: grid; gap: 14px; margin-top: 24px; }
.visit-option { display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px solid var(--ink); border-radius: 14px; text-decoration: none; background: var(--cream, #fffbf2); box-shadow: 3px 3px 0 var(--ink); }
.visit-option:hover { background: #fff3b2; }
.visit-number { flex-shrink: 0; font-weight: 800; font-size: 15px; }
.visit-details { display: grid; gap: 5px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.visit-details strong { font-size: 14px; }
.visit-details span, .visit-details small { font-size: 12px; color: var(--muted); }
.visit-option > .icon { flex-shrink: 0; }
@media (max-width: 640px) {
 .visit-dialog h2 { font-size: 20px; }
 .visit-option { padding: 14px 12px; gap: 10px; }
 .visit-number { font-size: 13px; }
}

.btn-danger { background: #fff0f0; color: #a51d31; border: 2px solid #a51d31; }
.btn-danger:hover { background: #ffdddd; }
.btn-danger:disabled { opacity: .6; cursor: wait; }
#student-delete-work { margin-left: 12px; }
.delete-work-name { margin-top: 14px; font-weight: 750; overflow-wrap: anywhere; }
#delete-title { font-size: 23px; }
@media (max-width: 640px) {
 #student-delete-work { margin-left: 0; display: flex; }
 #delete-title { font-size: 20px; }
}

.card-comments { width: 100%; margin-top: 12px; gap: 7px; }
.comments-dialog { width: min(740px, calc(100% - 32px)); }
.comments-dialog h2 { font-size: 24px; overflow-wrap: anywhere; }
.discussion-loading { padding: 36px 0; color: var(--muted); }
.discussion-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 28px 0 18px; }
.discussion-toolbar h3 { font-size: 21px; margin-right: auto; }
.discussion-toolbar h3 span { color: var(--muted); font-size: 16px; margin-left: 8px; }
.discussion-sort { display: flex; align-items: center; gap: 7px; }
.discussion-sort button { background: transparent; border: 0; color: var(--muted); padding: 7px; font: inherit; cursor: pointer; min-height: 44px; }
.discussion-sort button[aria-pressed="true"] { color: var(--ink); font-weight: 800; box-shadow: inset 0 -3px var(--pink); }
.discussion-sort > span { color: #b7b2bc; }
.discussion-works { margin: 0 0 18px; }
.discussion-list { display: grid; gap: 16px; }
.discussion-item { padding: 20px; background: white; border: 1.5px solid #e0d9ce; border-radius: 16px; min-width: 0; }
.discussion-author { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 750; }
.discussion-avatar { display: grid; place-items: center; width: 32px; height: 32px; background: #e5f6fc; color: #177b9d; border-radius: 50%; flex-shrink: 0; }
.discussion-author > small { color: var(--muted); font-weight: 400; margin-left: auto; }
.discussion-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; margin: 12px 0 16px; }
.discussion-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 11px; }
.discussion-reactions { display: flex; gap: 10px; margin-left: auto; }
.reaction-button { display: flex; gap: 5px; align-items: center; font: inherit; color: var(--muted); border: 0; background: transparent; padding: 8px 4px; cursor: pointer; min-height: 40px; border-radius: 7px; }
.reaction-button b { font-weight: 500; }
.reaction-button[aria-pressed="true"] { color: #008cbb; background: #e5f8ff; }
.reaction-button[aria-pressed="true"] svg { fill: currentColor; }
.reaction-button:disabled { opacity: .55; cursor: wait; }
.thumb-down { transform: rotate(180deg); }
.discussion-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 23px; }
.discussion-footer p { flex: 1; font-size: 11px; color: var(--muted); }
.discussion-footer .btn { font-size: 13px; }
@media (max-width: 640px) {
 .comments-dialog h2 { font-size: 21px; }
 .discussion-item { padding: 15px; }
 .discussion-reactions { margin-left: 0; width: 100%; }
 .reaction-button { min-height: 44px; }
 .discussion-footer { display: block; }
 .discussion-footer .btn { margin-top: 15px; width: 100%; }
}
