/* Direction 1, adapted to Modern Education VI (PDF p7).
   Scoped to the local workspace; the existing cloud interface is unchanged. */
@font-face {
  font-family: 'Noto Sans SC UI';
  src: url('./vendor/fonts/NotoSansSC-UI-VF.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.workspace-shell {
  --brand: #a24900;
  --brand3: #873d00;
  --accent: #ee7800;
  --sky: #00b4e6;
  --bg: #fcfaf6;
  --ink: #262723;
  --ink2: #62645f;
  --ink3: #73756f;
  --line: #e9e6df;
  --soft: #fff3e7;
  background: var(--bg);
  font-family: 'Noto Sans SC UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-height: 100dvh;
}
.workspace-shell .btn-primary { background: var(--accent); color: #271b11; }
.workspace-shell .btn-primary:hover { background: #f68a1b; }
.workspace-shell .btn-primary .ui-icon { filter: none; }
.workspace-shell .btn { border-radius: 7px; }
.workspace-shell .btn-ghost { background: #fffefb; }
.workspace-shell .btn-dark { background: #343732; }
.workspace-shell .brand-header { height: 76px; padding: 0 30px; background: #fffefa; }
.workspace-shell .wordmark { gap: 15px; }
.workspace-shell .wordmark .brand-logo { width: 145px; height: 29px; max-width: 145px; max-height: 29px; }
.workspace-shell .wordmark span { font-family: var(--serif); font-size: 18px; font-weight: 600; color: #34342f; padding-left: 15px; }
.workspace-shell .app-nav { top: 76px; bottom: 28px; width: 192px; background: #fffefa; padding: 30px 12px 16px; }
.workspace-shell .nav-caption { font-size: 11px; letter-spacing: .4px; margin-left: 14px; }
.workspace-shell .nav-link { min-height: 46px; gap: 12px; font-size: 13px; padding: 12px 14px; }
.workspace-shell .nav-link.on { background: #fff1e3; color: #934300; }
.workspace-shell .on>.ui-icon,.workspace-shell .nav-link.on .ui-icon { filter: invert(33%) sepia(74%) saturate(1466%) hue-rotate(9deg) brightness(84%) contrast(104%); }
.workspace-shell .nav-foot { font-size: 12px; line-height: 1.9; }
.workspace-shell .app-main { margin-left: 192px; max-width: none; padding: 30px 36px 60px; }
.workspace-shell .page-intro { margin-bottom: 25px; }
.workspace-shell .page-intro h1 { font-size: 31px; line-height: 1.45; letter-spacing: -.6px; font-weight: 700; }
.workspace-shell .lead { font-size: 14px; color: var(--ink2); margin-top: 5px; line-height: 1.65; }
.workspace-shell .toast[data-error=true] { background: #812e2e; }
.workspace-shell .toast { left: calc(50% + 96px); bottom: 43px; }
.workspace-local { background: #f1eee7; color: #625c52; gap: 6px; }
.workspace-local button { margin-left: 10px; }

/* Template selection: photographs first, titles below the image. */
.ws-gallery { max-width: 1150px; margin: 0 auto; }
.ws-gallery .category-tabs { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 20px; max-width: 430px; gap: 12px; }
.ws-gallery .category-tabs button { min-height: 44px; background: none; padding: 0 10px; border-radius: 0; font-size: 14px; }
.ws-gallery .category-tabs button.on { background: none; }
.ws-gallery .category-tabs button.on:after { left: 12px; right: 12px; }
.gallery-campus { max-width: 320px; margin: -4px 0 22px; }
.gallery-campus .ws-field { margin: 0; }
.gallery-composition { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.ws-gallery .template-choice { width: 100%; border-radius: 4px; }
.ws-gallery .template-cover { aspect-ratio: 1.7; border-radius: 4px; background: #ede9e0; }
.ws-gallery .template-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-gallery .template-cover img[src$="book-photo.webp"] { object-position: center 78%; }
.ws-gallery .template-caption { display: block; padding: 10px 0 2px; }
.ws-gallery .template-caption strong { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 700; }
.ws-gallery .template-caption>span { display: block; font-size: 12px; line-height: 1.6; margin-top: 2px; color: var(--ink3); }
.ws-gallery .template-choice:hover .template-caption strong { color: var(--brand); }
.ws-gallery .template-feature .template-cover { aspect-ratio: 1.18; }
.ws-gallery .template-feature .template-caption { padding-top: 14px; }
.ws-gallery .template-feature .template-caption strong { font-size: 28px; }
.ws-gallery .template-feature .template-caption>span { font-size: 14px; }
.ws-gallery .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
.ws-gallery>.sample-note { margin-top: 24px; font-size: 12px; }

/* Editor: stable poster, compact controls and one primary next step. */
.ws-editor { max-width: 1040px; }
.ws-editor .editor-header { margin: 0 0 12px; }
.ws-editor .editor-header h1 { font-size: 20px; }
.editor-statusbar { display: flex; justify-content: space-between; gap: 10px; align-items: start; color: #35624b; font-size: 12px; padding: 9px 12px; margin-bottom: 23px; background: #eff5ed; border-radius: 6px; }
.editor-statusbar .ws-status { font-size: inherit; margin: 0; min-height: 0; }
.editor-statusbar>span { text-align: right; max-width: 60%; }
.ws-editor .editor-grid { gap: 42px; grid-template-columns: minmax(270px,1fr) minmax(310px,.95fr); }
.ws-editor .preview-area { max-width: 385px; top: 100px; }
.ws-editor .poster-stage { box-shadow: 0 10px 35px #352b1710; }
.ws-editor .control-surface { padding: 4px 20px 18px; border-radius: 9px; background: #fffefc; }
.ws-editor .editor-tabs { gap: 0; margin-bottom: 16px; }
.ws-editor .editor-tabs button { font-size: 14px; }
.ws-editor .editor-bottom { padding-top: 0; }
.ws-editor .editor-bottom .btn { min-height: 48px; }
.ws-editor .preview-area>.sample-note { margin: 10px 0 12px; text-align: center; justify-content: center; }
.ws-render-error:empty { display: none; }
.ws-editor .ws-field>span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-editor .ws-field>span>small { margin: 0; font-size: 12px; font-weight: 400; }
.ws-editor .ws-field small { font-size: 12px; line-height: 1.6; }
.ws-editor #projectTitle { min-height: 74px; font-size: 17px; line-height: 1.6; }
.ws-editor #projectCaption { min-height: 108px; }
.photo-summary { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 3px 0 15px; }
.photo-summary strong { font-size: 14px; font-weight: 500; }
.photo-summary .ws-meta { font-size: 12px; margin-top: 4px; }
.photo-summary .btn { gap: 6px; flex: none; }
.photo-summary .ui-icon { width: 19px; height: 19px; }
.photo-upload { border: 1px solid var(--line); border-radius: 6px; }
.photo-upload summary { padding: 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 14px; min-height: 44px; }
.photo-upload summary::-webkit-details-marker { display: none; }
.photo-upload summary .ui-icon { width: 18px; height: 18px; }
.photo-upload[open] summary { border-bottom: 1px solid var(--line); }
.photo-upload-body { padding: 0 12px 8px; }
.photo-upload .ws-field { margin: 12px 0; }
.photo-upload .ws-check { font-size: 12px; }
.crop-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.crop-heading strong { font-size: 13px; font-weight: 500; }
.crop-heading .text-button { font-size: 12px; }
.crop-sliders .ws-field { display: flex; align-items: center; gap: 15px; margin: 4px 0; }
.crop-sliders .ws-field>span { width: 28px; font-weight: 400; font-size: 12px; flex: none; margin: 0; }
.ws-editor .ws-crop-tabs { margin: 0 0 8px; }
.photo-privacy { font-size: 11px; margin-top: 12px; }
.writing-help { font-size: 13px; color: var(--ink2); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.writing-help summary { cursor: pointer; padding: 6px 0; }

/* Headquarters review: real queue / full poster / decision, no overlay. */
.ws-review-workspace { max-width: 1480px; margin: 0 auto; }
.review-workspace-grid { display: grid; grid-template-columns: minmax(210px,.85fr) minmax(260px,1.25fr) minmax(275px,1fr); gap: 25px; align-items: start; }
.review-queue,.review-preview-column,.review-details-column { min-width: 0; }
.review-status-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 3px; }
.review-status-tabs button { flex: 1; min-height: 46px; font-size: 12px; white-space: nowrap; border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 4px; }
.review-status-tabs button.on { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.review-status-tabs button span { font-size: 11px; }
.review-search { display: flex; margin-top: 16px; border: 1px solid var(--line); background: #fffefa; border-radius: 6px; }
.review-search input { border: 0; background: none; min-width: 0; padding: 9px 10px; font-size: 13px; }
.review-search .icon-button { width: 36px; height: 40px; }
.review-search .ui-icon { width: 18px; height: 18px; }
.queue-order { font-size: 11px; color: var(--ink3); margin: 12px 0; }
.review-queue-items { max-height: 560px; overflow: auto; padding: 1px; }
.review-queue-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; margin-bottom: 6px; border: 1px solid transparent; border-left: 2px solid transparent; border-radius: 6px; text-align: left; }
.review-queue-item:hover { background: #f6f3ed; }
.review-queue-item.on { border-color: #edc7a7; border-left-color: var(--accent); background: #fff6ed; }
.review-thumb { width: 62px; height: 82px; object-fit: cover; border-radius: 3px; flex: none; background: #f0ece3; }
.review-thumb.no-image { display: flex; align-items: center; justify-content: center; }
.review-queue-copy { display: block; min-width: 0; flex: 1; }
.review-queue-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.65; font-weight: 600; margin-bottom: 3px; }
.review-queue-copy>span,.review-queue-copy small { display: block; font-size: 11px; line-height: 1.85; color: var(--ink3); }
.review-queue-item>.ui-icon { width: 14px; height: 14px; }
.review-queue .ws-pagination { flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.review-queue .ws-pagination .btn { font-size: 11px; padding: 6px 8px; min-height: 34px; }
.review-queue .ws-pagination .ws-meta { order: -1; width: 100%; text-align: center; font-size: 11px; }
.queue-empty { padding: 30px 8px; font-size: 13px; color: var(--ink3); }
.review-preview-column { padding: 14px 0 0; text-align: center; }
.review-full-poster { width: 100%; max-width: 390px; display: block; margin: 0 auto; box-shadow: 0 10px 34px #3129160e; }
.review-preview-column .sample-note { justify-content: center; font-size: 11px; }
.review-preview-column>.text-button { font-size: 12px; }
.review-preview-column>.text-button .ui-icon { width: 16px; height: 16px; }
.review-detail-card { background: #fffefc; padding: 23px 20px; border: 1px solid #f0ede7; border-radius: 8px; }
.review-detail-card h2 { font-size: 17px; line-height: 1.7; font-weight: 600; overflow-wrap: anywhere; }
.review-campus { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.review-meta { display: grid; grid-template-columns: 57px 1fr; gap: 8px 10px; font-size: 12px; color: var(--ink2); margin: 22px 0; }
.review-meta dt { color: var(--ink3); }
.review-copy-block { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.review-copy-block h3 { font-size: 13px; }
.review-copy-block .ws-caption { background: none; border-radius: 0; padding: 0; max-height: 230px; font-size: 12px; color: var(--ink2); line-height: 1.9; }
.review-detail-card .ws-field>span { font-size: 12px; margin-bottom: 10px; }
.review-detail-card textarea { font-size: 13px; min-height: 114px; }
.review-detail-card .ws-check { font-size: 12px; gap: 6px; margin-bottom: 8px; }
.review-visibility { font-size: 11px; color: var(--ink3); line-height: 1.7; }
.review-decision-actions { display: flex; gap: 10px; margin-top: 24px; }
.review-decision-actions .btn { flex: 1; min-width: 0; font-size: 13px; padding: 10px 8px; min-height: 45px; white-space: nowrap; }
.workspace-shell .ws-panel,.workspace-shell .card { border-radius: 8px; box-shadow: none; }
.workspace-shell .ws-tabs .btn-primary { background: #fff0de; border-color: #edc7a7; color: #8e4100; }
.workspace-shell .ws-asset-thumb { background: #fffefa; padding: 10px; border-radius: 4px; }
.workspace-shell .ws-form h2 { font-size: 19px; }
.ws-modal { --brand: #a24900; --bg: #fcfaf6; --line: #e9e6df; font-family: 'Noto Sans SC UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.ws-modal .btn-dark { background: #ee7800; color: #271b11; }
.ws-modal .ws-check { font-weight: 400; }
.workspace-shell button:focus-visible,.workspace-shell a:focus-visible { outline-color: #a24900; }

@media (min-width:760px) and (max-width:1199px) {
  .workspace-shell .app-nav { width: 162px; padding-left: 8px; padding-right: 8px; }
  .workspace-shell .nav-link { padding: 12px 10px; }
  .workspace-shell .app-main { margin-left: 162px; padding: 26px 24px 60px; }
  .gallery-composition { gap: 22px; }
  .review-workspace-grid { grid-template-columns: 215px minmax(260px,1fr); gap: 24px; }
  .review-details-column { grid-column: 2; }
  .review-queue { grid-row: 1 / 3; }
  .review-queue-items { max-height: none; }
  .review-preview-column { padding-top: 0; }
  .ws-editor .editor-grid { gap: 24px; grid-template-columns: minmax(220px,1fr) minmax(260px,1fr); }
}
@media (max-width:759px) {
  .workspace-shell .brand-header { height: 66px; padding: 0 22px; }
  .workspace-shell .wordmark { gap: 10px; }
  .workspace-shell .wordmark .brand-logo { width: 111px; height: 23px; max-width: 111px; max-height: 23px; }
  .workspace-shell .wordmark span { font-size: 14px; padding-left: 10px; white-space: nowrap; }
  .workspace-shell .header-context { gap: 0; }
  .workspace-shell .header-context .icon-button { width: 32px; }
  .workspace-shell .campus-label { max-width: 65px; font-size: 11px; }
  .workspace-shell .app-main { margin: 0; padding: 12px 23px 125px; }
  .workspace-shell .app-nav { top: auto; bottom: 28px; width: 100%; height: calc(62px + env(safe-area-inset-bottom)); padding: 4px 22px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .workspace-shell .nav-link { font-size: 11px; padding: 3px; min-height: 50px; gap: 3px; }
  .workspace-shell .nav-link.on { background: none; }
  .workspace-shell .nav-link .ui-icon { width: 21px; height: 21px; }
  .workspace-shell .page-intro { margin-bottom: 18px; }
  .workspace-shell .page-intro h1 { font-size: 27px; letter-spacing: -.9px; line-height: 1.5; }
  .workspace-shell .lead { font-size: 12px; margin-top: 4px; }
  .workspace-shell .toast { left: 50%; bottom: 101px; }
  .ws-gallery .category-tabs { gap: 0; margin-bottom: 16px; }
  .ws-gallery .category-tabs button { font-size: 13px; padding: 0 4px; }
  .ws-gallery .category-tabs button.on:after { left: 13px; right: 13px; }
  .gallery-composition { display: block; }
  .ws-gallery .template-feature .template-cover { aspect-ratio: 1.72; }
  .ws-gallery .template-feature .template-caption { padding-top: 8px; }
  .ws-gallery .template-feature .template-caption strong { font-size: 22px; }
  .ws-gallery .template-feature .template-caption>span { font-size: 12px; }
  .ws-gallery .template-grid { margin-top: 19px; gap: 20px 14px; }
  .ws-gallery .template-cover { aspect-ratio: 1.6; }
  .ws-gallery .template-caption { display: block; padding-top: 7px; }
  .ws-gallery .template-caption strong { font-size: 19px; }
  .ws-gallery .template-caption>span { font-size: 11px; }
  .ws-gallery>.sample-note { font-size: 11px; margin-top: 22px; align-items: start; }
  .workspace-shell.is-editing>.app-main { padding: 4px 17px calc(125px + env(safe-area-inset-bottom)); }
  .ws-editor .editor-header { height: 46px; margin-bottom: 8px; }
  .ws-editor .editor-header h1 { font-size: 16px; }
  .ws-editor .editor-header>.text-button { font-size: 12px; }
  .editor-statusbar { padding: 6px 2px; margin: 0 0 18px; font-size: 10px; background: none; gap: 8px; }
  .editor-statusbar>span { max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ws-editor .editor-grid { display: flex; gap: 0; }
  .ws-editor .preview-area { max-width: min(302px,calc(75svh - 300px)); min-width: 225px; position: static; }
  .ws-editor .preview-area>.sample-note { font-size: 10px; margin: 9px 0 12px; }
  .ws-editor .control-surface { border: 0; padding: 0 15px 15px; margin-bottom: 0; }
  .ws-editor .editor-tabs { margin: 0 0 12px; }
  .ws-editor .editor-tabs button { min-height: 44px; font-size: 13px; }
  .ws-editor .editor-bottom { bottom: 28px; padding: 10px 17px calc(10px + env(safe-area-inset-bottom)); background: #fffefa; }
  .ws-editor .editor-bottom .btn { min-height: 46px; font-size: 14px; }
  .ws-editor .ws-field { margin: 11px 0; }
  .ws-editor .ws-field>span { font-size: 12px; }
  .ws-editor .ws-field small { font-size: 11px; }
  .ws-editor #projectTitle { min-height: 50px; height: 50px; font-size: 16px; padding: 8px 10px; }
  .ws-editor #projectCaption { min-height: 100px; font-size: 16px; }
  .photo-summary { padding-bottom: 12px; }
  .photo-summary strong { font-size: 13px; }
  .photo-summary .ws-meta { font-size: 11px; }
  .photo-summary .btn { font-size: 12px; padding: 7px 9px; }
  .review-workspace-grid { grid-template-columns: 1fr; gap: 22px; }
  .review-queue-items { display: flex; gap: 8px; max-height: 160px; overflow-x: auto; }
  .review-queue-item { min-width: 260px; max-width: 290px; margin: 0; }
  .review-preview-column { padding: 0; }
  .review-full-poster { max-width: 320px; }
  .review-detail-card { padding: 20px 17px; }
  .review-detail-card textarea { font-size: 16px; }
  .review-queue .ws-pagination { margin: 12px 0 0; }
  .review-queue .ws-pagination .ws-meta { order: 0; width: auto; }
  .review-copy-block .ws-caption { font-size: 13px; }
  .review-status-tabs button { font-size: 13px; }
}
@media (max-width:370px) {
  .workspace-shell .brand-header { padding: 0 16px; }
  .workspace-shell .wordmark .brand-logo { width: 96px; }
  .workspace-shell .wordmark span { font-size: 13px; }
  .workspace-shell .app-main { padding-left: 18px; padding-right: 18px; }
  .workspace-shell .page-intro h1 { font-size: 25px; }
  .workspace-shell .campus-label { max-width: 50px; }
}
