:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #191a18;
  background: #eaede9;
  --ink: #191a18;
  --muted: #5c615b;
  --glass: rgba(255, 255, 255, .58);
  --edge: rgba(255, 255, 255, .78);
  --line: rgba(25, 26, 24, .07);
  --shadow: 0 12px 36px rgba(20, 24, 22, .05);
  --radius: 23px;
  --gutter: clamp(20px, 5vw, 88px);
  --motion: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 9% 6%, rgba(176, 194, 184, .28), transparent 47%),
    radial-gradient(ellipse at 87% 24%, rgba(205, 212, 220, .25), transparent 45%),
    radial-gradient(ellipse at 45% 89%, rgba(176, 194, 184, .17), transparent 58%),
    linear-gradient(155deg, #f4f5f3, #eaede9);
  background-attachment: fixed;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #4d705b;
  outline-offset: 4px;
}
a { color: inherit; text-decoration: none; }
button, [role="button"] { touch-action: manipulation; }
svg { display: block; flex: 0 0 auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.25; }
p { margin: 0; }
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.skip-link {
  position: fixed;
  top: 6px;
  left: 12px;
  z-index: 12;
  background: white;
  padding: 10px 14px;
  border-radius: 10px;
  transform: translateY(-130%);
}
.skip-link:focus { transform: translateY(0); }

.toolbar-wrap {
  position: sticky;
  top: 16px;
  z-index: 5;
  width: min(1344px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-top: 16px;
}
.toolbar {
  position: relative;
  min-height: 65px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 9px 12px 9px 17px;
}
.identity {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: .012em;
  white-space: nowrap;
}
.identity-mark {
  display: block;
  width: 33px;
  height: auto;
  flex: 0 0 auto;
}
.identity-name { display: grid; gap: 3px; line-height: 1.14; }
.brand-phrase { white-space: nowrap; }
.identity-subtitle { color: var(--muted); font-size: 10px; font-weight: 560; letter-spacing: .13em; }
.scenes, .toolbar-tools, .view-toggle { display: flex; align-items: center; }
.toolbar-end { display: flex; align-items: center; justify-self: end; gap: 9px; }
.scenes { gap: 3px; }
.scenes button, .view-toggle button {
  min-height: 38px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0 14px;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color .18s ease, background .2s ease, box-shadow .2s ease;
}
.scenes button:hover, .view-toggle button:hover { background: rgba(255, 255, 255, .65); color: var(--ink); }
.scenes button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.toolbar-tools { justify-self: end; gap: 8px; }
.view-toggle {
  background: rgba(25, 26, 24, .045);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.view-toggle button { min-height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.view-toggle svg { width: 14px; height: 14px; }
.view-toggle button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(20, 24, 22, .09);
}
.icon-button {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .18s ease, color .18s ease;
}
.icon-button:hover { background: rgba(25, 26, 24, .085); }
.search-toggle { position: relative; }
.search-toggle[aria-expanded="true"] { background: var(--ink); color: white; }
.search-toggle.has-query::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 4px;
  right: 3px;
  border-radius: 50%;
  background: #3d7a5a;
  border: 1px solid white;
}
.teacher-session {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 38px;
  padding-left: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  white-space: nowrap;
}
.teacher-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
}
.teacher-status::before { content: ""; background: #3d7a5a; width: 6px; height: 6px; border-radius: 50%; }
.teacher-logout {
  min-height: 31px;
  margin: 0 3px 0 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: background .18s ease;
}
.teacher-logout:hover { color: var(--ink); background: rgba(25, 26, 24, .075); }
.search-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(100%, 360px);
  padding: 8px;
  animation: reveal .19s var(--motion);
  background: rgba(250, 251, 249, .93);
}
.search-field { display: flex; align-items: center; gap: 9px; padding: 0 6px 0 12px; }
.search-field input {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}
.search-field input::-webkit-search-cancel-button { display: none; }

.page { width: min(1344px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-bottom: 75px; }
.page:focus { outline: none; }
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(38px, 4.1vw, 64px) 1px clamp(28px, 2.5vw, 42px);
  border-bottom: 1px solid rgba(25, 26, 24, .12);
}
.intro h1 { font-size: clamp(46px, 6.15vw, 91px); letter-spacing: -.066em; font-weight: 720; }
.intro p { margin-top: 14px; font-size: clamp(15px, 1.35vw, 19px); color: var(--muted); line-height: 1.65; text-wrap: pretty; }
.shelf-totals { display: flex; flex-shrink: 0; gap: clamp(17px, 2.5vw, 40px); margin: 0 1px 5px; }
.shelf-totals div { display: flex; flex-direction: column-reverse; gap: 6px; }
.shelf-totals div + div { padding-left: clamp(17px, 2.5vw, 40px); border-left: 1px solid rgba(25, 26, 24, .14); }
.shelf-totals dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.shelf-totals dd { margin: 0; font-size: 35px; line-height: .96; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 1px 16px; }
.section-bar h2, .shelf-group > h3 { font-size: 18px; font-weight: 690; }
.result-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.bento { display: grid; gap: 16px; animation: reveal .25s var(--motion); }
.bento-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.asset-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  grid-column: span var(--cols);
  overflow: hidden;
  transition: background .25s ease, box-shadow .25s ease;
}
.asset-card:hover { background: rgba(255, 255, 255, .73); box-shadow: 0 14px 34px rgba(20, 24, 22, .075); }
.asset-visual { margin: 9px 9px 0; height: 188px; border-radius: 15px; background: #e2e7e1; overflow: hidden; }
.card-featured .asset-visual { height: clamp(220px, 17.6vw, 270px); }
.asset-visual img, .preview-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.asset-visual img { transition: transform .42s var(--motion); }
.asset-card:hover .asset-visual img { transform: scale(1.018); }
[data-card="cmf"] .asset-visual img { object-position: center 43%; }
[data-card="bilingual-recruitment"] .asset-visual { background: #edf1ed; }
[data-card="bilingual-recruitment"] .asset-visual img { object-fit: contain; }
[data-card="zaowu"] .asset-visual img { object-position: center 40%; }
[data-card="course-proposal"] .asset-visual img,
[data-card="research-to-class"] .asset-visual img { object-fit: contain; }
.editorial-flow {
  height: 100%;
  min-height: 110px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vw, 16px);
  color: #354437;
  background:
    linear-gradient(145deg, rgba(255,255,255,.56), transparent 80%),
    repeating-linear-gradient(0deg, rgba(36,53,42,.033) 0 1px, transparent 1px 25px),
    repeating-linear-gradient(90deg, rgba(36,53,42,.033) 0 1px, transparent 1px 25px),
    #e3eae2;
}
.editorial-flow span {
  white-space: nowrap;
  padding: .43em .64em .52em;
  border: 1px solid rgba(25, 42, 28, .12);
  border-radius: 12px;
  font-weight: 650;
  font-size: clamp(22px, 2.45vw, 37px);
  letter-spacing: -.055em;
  background: rgba(255, 255, 255, .47);
}
[data-card="packaging"] .editorial-flow { background-color: #e4e8ea; color: #37434b; }
.card-content { padding: 19px 21px 18px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.meta-items { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 0; font-size: 13px; color: var(--muted); font-weight: 520; }
.meta-items span { white-space: nowrap; }
.meta-items span + span::before { content: "·"; margin: 0 7px; color: #828981; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.live { background: #3d7a5a; }
.status-dot.beta { background: #b8863b; }
.status-dot.planned { background: #9aa09a; }
.card-content h3 { margin-top: 10px; font-size: clamp(20px, 1.68vw, 25px); font-weight: 685; letter-spacing: -.038em; }
.card-featured h3 { font-size: clamp(24px, 2.38vw, 36px); }
.title-button {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  text-wrap: balance;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.title-button:hover { text-decoration: underline; text-decoration-color: #9ca79d; text-underline-offset: .19em; text-decoration-thickness: 1px; }
.card-content p, .planned-card p { margin-top: 8px; color: var(--muted); line-height: 1.6; text-wrap: pretty; font-size: 15px; }
.local-gap { display: block; color: #655d4e; font-size: 13px; margin-top: 8px; }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  background: rgba(248, 249, 247, .31);
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
  transition: background .19s ease, color .19s ease, border .19s ease;
}
.action svg { width: 15px; height: 15px; }
.action:hover { background: rgba(25, 26, 24, .075); color: var(--ink); }
.action-strong { background: rgba(255, 255, 255, .63); border-color: var(--line); color: var(--ink); }
.action.primary { background: var(--ink); color: white; }
.action.primary:hover { background: #354239; color: white; }

.toolbox { padding: clamp(16px, 2.1vw, 27px); display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: start; }
.toolbox-title { display: flex; align-items: center; min-height: 38px; gap: 9px; white-space: nowrap; }
.toolbox-title h3 { font-size: 17px; font-weight: 690; letter-spacing: -.025em; }
.toolbox-icon { color: #4f6555; display: grid; place-items: center; }
.tools-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(25, 26, 24, .075);
  background: rgba(255, 255, 255, .57);
  font-size: 14px;
  transition: background .16s ease, border-color .16s ease;
}
.tool-chip:hover { background: white; border-color: #bac9bc; }
.tool-chip svg { width: 14px; height: 14px; color: var(--muted); }
.planned-surface { border: 1px dashed rgba(25, 26, 24, .16); background: rgba(255, 255, 255, .26); }
.shelf-group { padding-top: 17px; }
.shelf-group > h3 { margin: 0 0 13px 2px; }
.planned-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.planned-card { min-width: 0; padding: 16px; border-radius: 20px; }
.planned-card h4 { margin-top: 8px; font-size: 16px; font-weight: 650; }
.planned-card h4 svg { display: inline-block; vertical-align: -.17em; margin-left: 4px; width: 14px; }

.index-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
  padding: 0 18px;
  animation: reveal .25s var(--motion);
}
.index-table { table-layout: fixed; width: 100%; border-collapse: collapse; text-align: left; }
.index-table th, .index-table td { border-bottom: 1px solid var(--line); padding: 12px 9px; }
.index-table th { font-size: 13px; color: var(--muted); font-weight: 620; height: 53px; }
.index-table th:first-child { width: 44%; }
.index-table th:nth-child(2) { width: 14%; }
.index-table th:nth-child(3) { width: 18%; }
.index-table th:nth-child(4) { width: 14%; }
.index-table th:last-child { width: 10%; }
.index-table td { height: 65px; color: var(--muted); font-size: 14px; }
.index-table td:first-child { color: var(--ink); font-size: 16px; font-weight: 640; line-height: 1.48; }
.index-table tr[data-status="规划中"] td { border-bottom-style: dashed; }
.index-table tr:last-child td { border: 0; }
.index-table tbody tr { cursor: pointer; transition: background .18s ease; }
.index-table tbody tr:hover, .index-table tbody tr:focus-within { background: rgba(255,255,255,.68); }
.index-table small { display: block; color: var(--muted); font-weight: 450; font-size: 12px; }
.index-table td:last-child, .index-table th:last-child { text-align: center; }
.row-action { min-width: 34px; min-height: 34px; }
.row-action svg { width: 15px; height: 15px; }
.preview-column { position: relative; min-width: 0; padding-top: 15px; }
.row-preview { position: sticky; top: 112px; overflow: hidden; min-height: 182px; padding: 8px; margin-bottom: 15px; }
.preview-blank { min-height: 165px; display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.preview-visual { overflow: hidden; height: 147px; border-radius: 13px; background: #e6ebe5; }
.preview-visual img { object-fit: contain; }
.preview-content { padding: 10px 7px 7px; }
.preview-content h3 { font-size: 18px; margin-top: 6px; }
.preview-content p { color: var(--muted); line-height: 1.5; font-size: 14px; margin-top: 8px; }
.row-preview.has-asset > * { animation: reveal .2s var(--motion); }
.empty { min-height: 210px; display: grid; place-content: center; justify-items: center; gap: 9px; text-align: center; padding: 22px; }
.empty p, .loading { color: var(--muted); }
.empty .action { background: rgba(255,255,255,.7); border: 1px solid var(--line); margin-top: 5px; }

.dialog-open { overflow: hidden; }
.workshop {
  position: fixed;
  inset: 12px 12px 12px auto;
  margin: auto 0 auto auto;
  width: min(54vw, 720px);
  max-width: calc(100vw - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  background: var(--glass);
  box-shadow: -12px 18px 70px rgba(20, 28, 24, .15);
  opacity: 0;
  transform: translateX(100%);
  transition: transform .3s var(--motion), opacity .24s ease, display .3s allow-discrete, overlay .3s allow-discrete;
}
.workshop[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 1; transform: translateX(0); }
@starting-style {
  .workshop[open] { opacity: 0; transform: translateX(100%); }
}
.workshop::backdrop {
  background: rgba(31, 38, 32, 0);
  backdrop-filter: blur(0);
  transition: background .3s ease, backdrop-filter .3s ease, display .3s allow-discrete, overlay .3s allow-discrete;
}
.workshop[open]::backdrop { background: rgba(31, 38, 32, .16); backdrop-filter: blur(4px); }
@starting-style {
  .workshop[open]::backdrop { background: rgba(31, 38, 32, 0); backdrop-filter: blur(0); }
}
.workshop-header, .workshop-footer {
  padding: 12px clamp(19px, 3vw, 35px);
  background: rgba(255, 255, 255, .54);
  backdrop-filter: blur(22px) saturate(140%);
}
.workshop-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.workshop-header p { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 680; }
.workshop-header svg { color: #4f6354; }
.workshop-scroll { overflow-y: auto; min-width: 0; overscroll-behavior: contain; padding: 23px clamp(19px, 3vw, 35px) 30px; }
.workshop-intro h2 { margin-top: 10px; font-size: clamp(25px, 3.1vw, 43px); letter-spacing: -.05em; font-weight: 705; }
.workshop-intro > p { margin-top: 9px; color: var(--muted); line-height: 1.62; text-wrap: pretty; }
.workshop-section { border-top: 1px solid rgba(25, 26, 24, .10); margin-top: 21px; padding-top: 18px; }
.section-title { display: flex; gap: 9px; align-items: center; }
.section-title span { color: #566f5b; font-weight: 630; font-size: 13px; font-variant-numeric: tabular-nums; }
.section-title h3 { font-size: 17px; font-weight: 690; }
.workshop-section p { margin-top: 10px; line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.workshop-section h4 { margin-top: 8px; font-size: 19px; }
.workshop-section .example-label, .workshop-section .source-note { font-size: 13px; }
.workshop-image { margin: 13px 0 0; border-radius: 15px; overflow: hidden; background: #edf0ec; }
.workshop-image img { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; }
.qa-checks { margin: 13px 0 0; border: 1px solid var(--edge); background: var(--glass); border-radius: 13px; }
.qa-checks div, .source-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; }
.qa-checks div + div, .source-list li + li { border-top: 1px solid var(--line); }
.qa-checks dd { margin: 0; text-align: right; font-weight: 630; }
.example-resources { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 14px; }
.example-resources .action { background: rgba(255, 255, 255, .64); border-color: var(--line); }
.source-details, .media-resource { border: 1px solid var(--line); background: rgba(255,255,255,.48); border-radius: 12px; margin-top: 10px; }
.source-details summary, .media-resource summary { padding: 9px 12px; cursor: pointer; font-size: 14px; font-weight: 630; line-height: 1.4; }
.media-resource { flex: 1 0 100%; margin-top: 0; }
.media-resource video, .media-resource audio { display: block; width: calc(100% - 14px); margin: 0 7px 7px; }
.media-resource video { border-radius: 7px; }
.source-details pre { font: inherit; color: var(--muted); line-height: 1.55; white-space: pre-wrap; padding: 0 12px; }
.course-routes { margin: 0; padding: 0 12px 8px 38px; }
.course-routes li { padding: 5px 0; }
.course-routes code { margin-left: 8px; font-size: .8em; color: var(--muted); }
.course-routes a { text-decoration: underline; text-underline-offset: 3px; }
.course-routes svg { display: inline-block; vertical-align: -.17em; margin-left: 4px; width: 14px; height: 14px; }
.source-list { padding: 0; margin: 0; list-style: none; }
.source-list small { color: var(--muted); white-space: nowrap; }
.workshop-footer {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(25, 26, 24, .09);
}
.workshop-footer .primary { min-height: 43px; padding-inline: 14px; }
#drawer-feedback { position: absolute; right: 15px; bottom: calc(100% + 9px); }
.toast, #drawer-feedback {
  padding: 12px 16px;
  color: #fff;
  background: #26382d;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(20, 28, 24, .14);
  animation: reveal .2s var(--motion);
}
.toast { position: fixed; z-index: 8; right: var(--gutter); bottom: 20px; }
.copy-fallback { position: fixed; width: 1px; height: 1px; opacity: 0; }
.copy-fallback.visible { z-index: 9; width: min(420px, calc(100vw - 40px)); height: 110px; right: 20px; bottom: 70px; opacity: 1; padding: 10px; border: 1px solid #758d7b; border-radius: 9px; background: white; }

.access-gate {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px 16px;
  animation: screen-fade .35s var(--motion);
}
.access-gate::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 54vw at var(--glow-x, 55%) var(--glow-y, 32%), rgba(255, 255, 255, .57), transparent 66%);
}
.gate-card {
  width: min(100%, 502px);
  padding: clamp(24px, 4vw, 50px);
  text-align: center;
  box-shadow: 0 18px 64px rgba(42, 56, 47, .09);
}
.gate-mark { display: block; width: 58px; height: auto; margin: 0 auto 19px; }
.gate-card h1 { font-size: clamp(24px, 4vw, 33px); font-weight: 710; letter-spacing: -.06em; }
.gate-subtitle { margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .17em; }
.gate-form { display: grid; gap: 8px; margin-top: 32px; text-align: left; }
.gate-form label { font-size: 14px; font-weight: 610; }
.gate-form label:not(:first-child) { margin-top: 8px; }
.gate-form input {
  min-width: 0;
  min-height: 47px;
  padding: 10px 13px;
  border: 1px solid rgba(25, 26, 24, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .60);
  color: var(--ink);
  font-size: 16px;
}
.gate-form input[aria-invalid="true"] { border-color: #a34c3f; }
#login-error { color: #8a382e; font-size: 14px; }
.gate-form .primary { min-height: 47px; margin-top: 9px; border-radius: 12px; }
.workbench-shell { animation: screen-fade .34s var(--motion); }
@keyframes screen-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1090px) {
  .index-shell { grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; }
  .index-table th:last-child { width: 12%; }
  .index-table th:first-child { width: 42%; }
  .planned-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .toolbar { grid-template-columns: 1fr auto; row-gap: 8px; }
  .toolbar-end { grid-row: 1; grid-column: 2; }
  .scenes { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 850px) {
  .toolbar-wrap { top: 8px; padding-top: 8px; }
  .toolbar { padding: 8px 10px 8px 13px; }
  .intro { padding-top: 42px; }
  .asset-card { grid-column: span 6; }
  .asset-card:last-of-type:nth-of-type(odd) { grid-column: span 12; }
  .card-featured .asset-visual { height: clamp(165px, 26vw, 225px); }
  .index-shell { display: block; }
  .preview-column { display: none; }
  .workshop { width: min(72vw, 720px); }
  .planned-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; border-radius: 19px; padding-inline: 8px; column-gap: 7px; }
  .toolbar-end { display: contents; }
  .teacher-session { grid-row: 1; grid-column: 2; justify-self: end; min-height: 34px; padding-left: 7px; }
  .teacher-status, .teacher-logout { font-size: 12px; }
  .teacher-logout { margin-left: 2px; padding-inline: 6px; }
  .toolbar-tools { grid-row: 2; grid-column: 2; }
  .identity { max-width: 100%; font-size: 13px; gap: 6px; white-space: normal; }
  .identity-name { min-width: 0; }
  .identity-name > :first-child { text-wrap: balance; }
  .identity-mark { width: 26px; }
  .identity-subtitle { font-size: 9px; white-space: nowrap; }
  .view-toggle button { min-height: 30px; padding-inline: 8px; font-size: 13px; }
  .view-toggle svg { display: none; }
  .toolbar-tools { gap: 4px; }
  .search-toggle { min-width: 35px; min-height: 35px; }
  .scenes { grid-column: 1; justify-content: space-between; gap: 0; }
  .scenes button { flex: 1; font-size: 13px; padding-inline: 7px; min-height: 34px; }
}
@media (max-width: 560px) {
  :root { --gutter: 12px; }
  .intro { display: block; padding: 35px 3px 21px; }
  .intro h1 { font-size: clamp(39px, 11vw, 62px); }
  .intro p { margin-top: 9px; }
  .shelf-totals { margin-top: 17px; gap: 16px; }
  .shelf-totals div { flex-direction: row-reverse; align-items: baseline; gap: 6px; }
  .shelf-totals div + div { padding-left: 16px; }
  .shelf-totals dd { font-size: 22px; }
  .section-bar { padding: 15px 3px 12px; }
  .bento, .bento-row { gap: 11px; }
  .asset-card { grid-column: 1 / -1; }
  .asset-visual { height: 174px; }
  .card-featured .asset-visual { height: clamp(165px, 48vw, 250px); }
  .card-content { padding: 14px 15px 15px; }
  .card-content h3 { font-size: 22px; }
  .card-featured h3 { font-size: 25px; }
  .card-actions { padding: 7px 9px; }
  .toolbox { grid-template-columns: 1fr; gap: 8px; }
  .toolbox-title { min-height: 26px; }
  .planned-grid { grid-template-columns: 1fr; gap: 9px; }
  .index-shell { padding: 4px 10px; }
  .index-table, .index-table tbody { display: block; }
  .index-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .index-table tr { display: grid; grid-template-columns: auto 1fr auto auto; column-gap: 9px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); min-height: 64px; }
  .index-table tr[data-status="规划中"] { border-bottom-style: dashed; }
  .index-table tr:last-child { border-bottom: 0; }
  .index-table td { height: auto; padding: 3px 0; border: 0; font-size: 13px; }
  .index-table td:first-child { grid-column: 1 / 4; grid-row: 1; }
  .index-table td:last-child { grid-column: 4; grid-row: 1 / 3; }
  .index-table td:nth-child(3) { padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }
  .workshop { width: 100%; max-width: 100%; inset: 0 0 0 auto; height: 100dvh; max-height: 100dvh; border-radius: 19px 0 0 19px; }
  .workshop-header, .workshop-footer { padding-inline: 15px; }
  .workshop-scroll { padding-inline: 15px; }
}
@media (max-width: 380px) {
  .toolbar { column-gap: 5px; }
  .identity { font-size: 12px; }
  .identity-mark { width: 23px; }
  .teacher-status { gap: 4px; }
  .teacher-status, .teacher-logout { font-size: 11px; }
  .scenes button { font-size: 12px; padding-inline: 2px; }
  .view-toggle button { font-size: 12px; padding-inline: 5px; }
  .search-toggle { min-width: 32px; min-height: 32px; }
}
@media (max-width: 350px) {
  .identity-subtitle { font-size: 8px; }
  .view-toggle button { padding-inline: 4px; }
  .workshop-footer { padding-inline: 12px; }
}
@media (hover: none) { .preview-column { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .access-gate::before { --glow-x: 55%; --glow-y: 32%; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
