/* DeepSeek is expressed as a whole surface: water, indigo ink and a quiet desk. */
:root[data-theme="deepseek"] {
  --canvas:#e9f3f5; --surface:#fbfdfd; --soft:#e1eff2; --ink:#173c50;
  --muted:#4c6b7a; --line:#c6dcdf; --blue:#215d85; --blue-soft:#d8ebf0;
  --rail:#153c53; --rail-hover:#244f67; --rail-selected:#d6edf0;
  --focus:#31769e; --paper:#fffefa; --desk:#f7faf9; --sea:#d2e9ed;
  --radius:14px; --accent-hover:#184a6c; --on-accent:#fff;
}
:root[data-theme="deepseek"][data-tone="dark"] {
  --canvas:#101f2d; --surface:#1b3040; --soft:#243e4d; --ink:#e6f3f4;
  --muted:#aec8d1; --line:#365363; --blue:#a1d7e7; --blue-soft:#294758;
  --rail:#101d2a; --rail-hover:#244052; --rail-selected:#2c5262;
  --focus:#9fd9eb; --desk:#152a38; --sea:#24475d; --accent-hover:#c2e8f2; --on-accent:#173a4e;
}
.ocean-preview {background:var(--canvas); min-width:320px;}
.ocean-preview .app-shell {grid-template-columns:200px minmax(0,1fr);}
.ocean-preview .workspace {position:relative; isolation:isolate;}
.ocean-preview .app-rail {padding:36px 18px 22px; align-items:stretch; gap:48px; color:#d4edf2; overflow:hidden;}
.ocean-brand {display:flex; align-items:center; gap:12px; padding:0; text-align:left;}
.ocean-brand>span {position:relative; flex:none; font:600 32px Georgia,serif; display:grid; place-items:center; width:42px; height:48px; color:#d8f0f1;}
.brand-wave {position:absolute; width:34px; height:11px; border-bottom:2px solid #8bc6d6; border-radius:50%; bottom:0;}
.ocean-brand>div {font-size:13px; font-weight:600; line-height:1.6;}
.ocean-brand small {display:block; font-size:10px; font-weight:400; color:#a2c4d0; margin-top:3px;}
.ocean-preview .rail-items {gap:10px; align-items:stretch;}
.ocean-preview .rail-item {position:relative; flex-direction:row; justify-content:flex-start; gap:13px; width:100%; min-height:46px; padding:10px 17px; font-size:13px; border-radius:24px 10px 24px 10px; color:#bedce7; transition:background .2s, color .2s;}
.ocean-preview .rail-item svg {width:18px; height:18px;}
.ocean-preview .rail-item:hover {background:var(--rail-hover); color:white;}
.ocean-preview .rail-item.active {background:var(--rail-selected); color:var(--ink);}
:root[data-tone="light"] .ocean-preview .rail-item.active {color:#174359;}
.ocean-preview .rail-item.active::after {content:""; width:5px; height:5px; border-radius:50%; background:currentColor; margin-left:auto;}
.rail-seascape {position:absolute; pointer-events:none; left:-80px; bottom:120px; width:330px; height:190px; opacity:.25;}
.rail-seascape i {position:absolute; width:360px; height:170px; border:1px solid #8ab4c5; border-radius:50%; transform:rotate(-28deg);}
.rail-seascape i:nth-child(2) {top:16px; left:-10px;}
.rail-seascape i:nth-child(3) {top:32px; left:-20px;}
.ocean-preview .rail-bottom {position:relative; align-items:stretch; gap:24px;}
.rail-login {display:flex; align-items:center; justify-content:space-between; color:#c7e4ed; font-size:12px; text-decoration:none; padding:0 7px;}
.rail-login svg {width:16px;}
.ocean-account {display:flex; align-items:center; gap:9px; padding-top:20px; border-top:1px solid #ffffff25; font-size:11px;}
.ocean-account small {display:block; font-size:9px; color:#b7d0dc; margin-top:6px;}
.ocean-preview .avatar {margin:0; display:grid; place-items:center; background:#2b576e; flex:none;}
.sea-scene {position:absolute; top:0; left:0; width:100%; height:376px; z-index:-1; overflow:hidden; background:var(--sea); border-radius:0 0 48% 8% / 0 0 12% 5%; transition:background .35s;}
.sea-wallpaper {position:absolute; right:92px; top:62px; width:180px; height:306px; object-fit:contain; opacity:1; z-index:1;}
.sea-scene::after {content:""; position:absolute; inset:0; background:linear-gradient(90deg,#e7f3f5 3%,#e7f3f5e8 25%,#e7f3f512 65%,transparent);}
:root[data-tone="dark"] .sea-wallpaper {opacity:1;}
:root[data-tone="dark"] .sea-scene::after {background:linear-gradient(90deg,#152b3c 3%,#152b3cec 25%,#152b3c20 75%);}
.water-rings {display:block; position:absolute; width:310px; height:126px; right:23px; top:260px; transform:rotate(-8deg);}
.water-rings i {position:absolute; inset:40px 0; border:1px solid #6099b15c; border-radius:50%;}
.water-rings i:nth-child(2) {inset:65px -35px 15px;}
.water-rings i:nth-child(3) {inset:90px -70px -10px;}
.standing-ground {position:absolute; right:56px; top:338px; width:260px; height:36px; border-radius:50%; background:var(--blue-soft); box-shadow:0 12px 22px #18465910;}
:root[data-variant="chibi"] .standing-ground {top:284px;}
:root[data-variant="chibi"] .sea-wallpaper {visibility:hidden;}
:root[data-variant="chibi"] .water-rings {display:block;}
.ocean-preview .topbar {height:82px; padding:0 42px; border:0; background:transparent; position:relative; z-index:2;}
.ocean-tools {display:flex; align-items:center; gap:10px;}
.ocean-switch {display:flex; padding:3px; background:var(--surface); border-radius:22px; gap:3px;}
.ocean-switch button {min-height:32px; padding:6px 15px; border-radius:18px; font-size:12px; color:var(--muted);}
.ocean-switch button[aria-pressed="true"] {background:var(--blue); color:var(--on-accent);}
#ocean-mode {border:1px solid var(--line); border-radius:20px; min-height:38px; padding:0 12px; background:var(--surface); color:var(--ink); font-size:11px;}
.ocean-preview main {position:relative; padding:26px 42px 42px;}
.ocean-preview[data-page="home"] main {padding-top:0;}
.ocean-welcome {position:relative; height:276px; display:flex; align-items:center;}
.welcome-copy {position:relative; z-index:1; padding-bottom:24px;}
.ocean-welcome h1 {font-family:"Songti SC","STSong",serif; font-weight:600; font-size:39px; line-height:1.45; letter-spacing:.01em; margin:0 0 14px;}
.ocean-welcome p {font-size:13px; line-height:1.8; color:var(--muted); margin:0 0 18px;}
.ocean-source {font-size:10px; color:var(--muted); text-decoration:none;}
.ocean-source:hover {text-decoration:underline;}
.sea-greeting {position:absolute; bottom:60px; right:290px; background:var(--surface); border-radius:20px 20px 4px 20px; padding:10px 18px; font-size:11px; color:var(--ink); box-shadow:0 5px 18px #17435912;}
.whale-companion {display:none; position:absolute; right:48px; top:-6px; width:240px; height:246px; padding:0; border-radius:50%;}
:root[data-variant="chibi"] .whale-companion {display:block;}

.ocean-desk {position:relative; display:grid; grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr); gap:28px 30px;}
.current-work {position:relative; overflow:hidden; background:var(--surface); padding:28px 30px; border-radius:14px 14px 42px 14px; box-shadow:0 16px 40px #184b6210;}
.current-top {display:flex; align-items:center; justify-content:space-between; font-size:10px; color:var(--muted);}
.current-status {display:flex; gap:7px; align-items:center;}
.current-status i {width:6px; height:6px; background:var(--blue); border-radius:50%;}
.current-work h2 {font-size:25px; font-weight:600; margin:20px 0 10px; letter-spacing:-.02em;}
.current-work>p {font-size:12px; color:var(--muted); margin:0; line-height:1.8;}
.task-track {display:flex; align-items:center; gap:8px; font-size:10px; color:var(--muted); margin:24px 0;}
.task-track span {display:flex; align-items:center; gap:4px; white-space:nowrap;}
.task-track svg {width:13px; height:13px;}
.task-track i {height:1px; background:var(--line); flex:1; min-width:8px;}
.task-track .now {color:var(--blue); font-weight:700;}
.current-actions {display:flex; gap:10px; align-items:center; position:relative; z-index:1;}
.ocean-preview .button {border-radius:22px 9px 22px 9px; padding-left:18px; padding-right:18px;}
.ocean-preview .button.primary {border:0; min-height:44px; background:var(--blue); color:var(--on-accent); transition:background .2s, transform .2s;}
.ocean-preview .button.primary:hover {background:var(--accent-hover); transform:translateY(-2px);}
.task-waterline {position:absolute; right:-28px; bottom:-30px; width:200px; height:92px; border:1px solid var(--line); border-radius:50%; transform:rotate(-22deg); pointer-events:none;}
.task-waterline::after {content:""; position:absolute; inset:10px -16px -10px; border:1px solid var(--line); border-radius:50%;}
.ocean-agenda {padding:25px 0 0;}
.ocean-agenda h2,.ocean-recent h2 {font-size:16px; margin:0; font-weight:600;}
.ocean-agenda .section-top>span {font-size:10px; color:var(--muted);}
.ocean-agenda>button {display:flex; width:100%; text-align:left; align-items:center; gap:14px; padding:15px 0; border-bottom:1px solid var(--line); font-size:13px;}
.ocean-agenda>button:last-child {border:0;}
.ocean-agenda>button>svg {margin-left:auto; width:16px; transition:transform .2s;}
.ocean-agenda>button:hover>svg {transform:translateX(5px);}
.agenda-icon {display:grid; place-items:center; width:37px; height:39px; border:1px solid var(--line); border-radius:20px 7px 20px 7px; color:var(--blue); flex:none;}
.agenda-icon svg {width:17px; height:17px;}
.ocean-agenda small {display:block; font-size:10px; color:var(--muted); margin-top:7px;}
.ocean-recent {grid-column:1/-1; padding-top:4px;}
.ocean-recent .section-top {margin-bottom:0;}
.ocean-preview .work-row {padding:15px 0;}
.ocean-preview .file-icon {background:var(--blue-soft); border-radius:12px 3px 12px 3px; color:var(--blue);}
.ocean-preview .work-row .icon-button:hover {border-radius:50%;}
.ocean-preview[data-page]:not([data-page="home"]):not([data-page="login"]) .sea-scene {height:82px; border-radius:0;}
.ocean-preview[data-page]:not([data-page="home"]):not([data-page="login"]) .sea-wallpaper {visibility:hidden;}

.ocean-preview .editor-room {border-radius:16px; border-color:var(--line);}
.ocean-preview .editor-toolbar {background:var(--soft);}
.ocean-preview .queue-question {border-radius:20px 8px 20px 8px;}
.ocean-preview .source-paper {background:var(--paper); color:#233b4a;}
.ocean-preview .editor-footer {border-top:1px solid var(--line); box-shadow:none;}
.ocean-preview .question-list,.ocean-preview .data-surface {background:var(--surface);}
.ocean-preview .question-meta {color:var(--muted);}
.ocean-preview .toast {background:var(--blue); color:var(--on-accent); border-radius:22px 22px 8px 22px;}
.water-response .water-rings {animation:water-answer .7s ease-out;}
.water-response .task-waterline {animation:water-answer .7s ease-out;}
@keyframes water-answer {from {opacity:.3; scale:.93;} to {opacity:1; scale:1;}}
@media(min-width:1500px) {.sea-scene {height:414px;} .ocean-welcome {height:314px;} .ocean-welcome h1 {font-size:44px;} .ocean-desk {gap:36px 44px;} .current-work {padding:34px 36px;}}
@media(max-width:1100px) {.ocean-preview .app-shell {grid-template-columns:150px minmax(0,1fr);} .ocean-brand>div {font-size:11px;} .ocean-brand small {font-size:8px;} .ocean-preview .app-rail {padding-left:10px;padding-right:10px;} .ocean-brand {gap:3px;} .ocean-preview main,.ocean-preview .topbar {padding-left:26px;padding-right:26px;} .ocean-desk {gap:24px;grid-template-columns:minmax(0,1.25fr) minmax(200px,1fr);} .current-work {padding:24px;} .ocean-welcome h1 {font-size:34px;} .sea-greeting {right:0;}}
@media(max-width:760px) {
  .ocean-preview .app-shell {display:block;}
  .ocean-preview .app-rail {position:fixed; padding:0 8px; height:calc(66px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); flex-direction:row; align-items:center; border-top:0; gap:0;}
  .ocean-preview .rail-items {display:contents;} .ocean-preview .rail-bottom,.ocean-brand,.rail-seascape {display:none;}
  .ocean-preview .rail-item {width:20%;flex:1 0 0;min-width:0;min-height:54px;height:54px;flex-direction:column;gap:4px;padding:6px 0;font-size:9px;border-radius:17px 6px 17px 6px;}
  .ocean-preview .rail-item.active::after {display:none;}
  .ocean-preview .topbar {height:64px;padding:0 18px;gap:8px;}
  .ocean-tools {gap:5px;} .ocean-switch button {padding:4px 11px;min-height:30px;font-size:11px;}
  #ocean-mode {padding:0 7px; min-height:36px; max-width:110px;font-size:10px;}
  .ocean-preview main {padding:22px 18px 30px;}
  .ocean-welcome {height:296px;align-items:flex-start;padding-top:23px;}
  .ocean-welcome h1 {font-size:26px;line-height:1.5;max-width:225px;}
  .welcome-copy {padding:0;} .ocean-welcome p {font-size:11px; margin-top:12px;}
  .ocean-source {font-size:9px; display:inline-block; max-width:160px; line-height:1.7;}
  .sea-scene {height:380px;border-radius:0 0 48% 6% / 0 0 9% 2%;}
  .sea-wallpaper {object-fit:contain;width:150px;height:264px;right:4px;top:94px;}
  .standing-ground {top:336px;right:0;width:164px;height:24px;}
  :root[data-variant="chibi"] .standing-ground {top:283px;}
  .water-rings {top:258px;right:0;width:148px;height:104px;}
  .sea-scene::after {background:linear-gradient(90deg,#e7f3f5eb,#e7f3f5a3 44%,transparent 73%);}
  :root[data-tone="dark"] .sea-scene::after {background:linear-gradient(90deg,#152b3ce8,#152b3ca3 44%,transparent 73%);}
  .sea-greeting {bottom:17px;left:0;right:auto;font-size:10px;padding:9px 12px;max-width:205px;}
  .whale-companion {right:-20px;top:65px;scale:.69;transform-origin:top right;}
  .ocean-desk {display:block;} .current-work {padding:24px 22px;border-radius:14px 14px 36px 14px;}
  .current-work h2 {font-size:23px;margin-top:20px;}
  .task-track {gap:5px;} .ocean-agenda {padding:28px 0 14px;}
  .ocean-agenda>button {padding:13px 0;} .ocean-recent {padding-top:20px;}
  .ocean-preview .work-row {gap:10px;}
  .ocean-preview[data-page]:not([data-page="home"]):not([data-page="login"]) .sea-scene {height:64px;}

  .ocean-preview .editor-toolbar {padding:8px 10px;}
  .ocean-preview .editor-footer {padding:10px;}

  .ocean-preview .editor-head {margin-bottom:18px;}
  .ocean-preview .editor-head h1 {font-size:18px;}
  .ocean-preview .editor-head .pill {font-size:9px;}

}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}

/* Layout corrections: content determines the editor header; the remaining space belongs to the task. */
.ocean-preview.focus-mode .app-shell {grid-template-columns:minmax(0,1fr);}
.ocean-preview[data-page="editor"] .workspace {height:100dvh;display:flex;flex-direction:column;}
.ocean-preview[data-page="editor"] .topbar {flex:none;}
.ocean-preview[data-page="editor"] main {width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:24px;}
.ocean-preview .editor-head {flex:none;}
.ocean-preview .editor-layout {flex:1;min-height:0;height:auto;}
.ocean-preview .editor-toolbar,.ocean-preview .editor-footer {flex:none;}
.ocean-preview .field-grid input,.ocean-preview .field-grid select {height:46px;padding:10px 12px;}
.ocean-preview .paper-layout {align-items:start;}
.ocean-preview .paper-settings {position:sticky;top:24px;}
.ocean-preview .basket,.ocean-preview .recent-work {background:var(--surface);}
.ocean-preview .inline-notice,.ocean-preview .work-title {overflow-wrap:anywhere;}
.ocean-preview .page-head>div:first-child {min-width:0;}
.ocean-preview .page-head h1 {text-wrap:balance;}
.ocean-preview .button,.ocean-preview .icon-button,.ocean-preview .text-link {min-height:44px;}
.ocean-preview .icon-button {min-width:44px;}
.ocean-preview .work-row {grid-template-columns:40px minmax(0,1fr) 100px 44px;}
.ocean-preview .field input,.ocean-preview .field select {min-height:44px;}
.ocean-preview input[type="file"]::file-selector-button {font:inherit;color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:10px 16px;margin-right:12px;cursor:pointer;}
.ocean-preview dialog {max-height:calc(100dvh - 48px);overflow:auto;}
.ocean-preview .bank-layout>section {min-width:0;}
.ocean-preview .basket-head {gap:16px;}
.ocean-preview .basket-footer {padding-top:16px;}
.ocean-preview .whale-companion .character-rig {width:210px;height:248px;position:absolute;top:0;left:15px;}
.ocean-preview .whale-companion:hover .character-rig {transform:none;}
@media(min-width:761px) and (max-width:1200px) {
  .ocean-preview .bank-layout {grid-template-columns:150px minmax(0,1fr);}
  .ocean-preview .bank-layout .basket {grid-column:2;grid-row:1;position:sticky;top:12px;z-index:4;display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid var(--line);}
  .ocean-preview .bank-layout>section {grid-column:2;grid-row:2;}
  .ocean-preview .bank-layout .catalog {grid-column:1;grid-row:1/3;}
  .ocean-preview .bank-layout .basket-items,.ocean-preview .bank-layout .basket-footer p {display:none;}
  .ocean-preview .bank-layout .basket-footer {padding:0;margin-left:auto;}
  .ocean-preview .bank-layout .basket-head {flex:1;}
}
@media(max-width:960px) and (min-width:761px) {
  .ocean-desk {grid-template-columns:minmax(0,1fr);}
  .ocean-agenda {padding-top:0;}
  .ocean-welcome h1 {font-size:30px;}
  .welcome-copy {max-width:55%;}
  .sea-wallpaper {width:156px;right:24px;}
  .sea-greeting {bottom:26px;right:0;max-width:42%;}
  .ocean-preview .editor-toolbar label {display:none;}
}
@media(max-width:760px) {
  .ocean-preview .workspace {padding-bottom:calc(66px + env(safe-area-inset-bottom));}
  .ocean-preview .rail-item>span {white-space:nowrap;font-size:10px;}
  .ocean-preview .topbar {flex-wrap:wrap;height:auto;min-height:64px;padding-top:8px;padding-bottom:8px;}
  .ocean-preview .ocean-tools {gap:6px;}
  .ocean-preview .ocean-switch button {min-height:36px;}
  .ocean-preview .page-head {display:block;}
  .ocean-preview .head-actions {margin-top:16px;flex-wrap:wrap;}
  .ocean-preview .editor-head {margin-bottom:12px;}
  .ocean-preview .editor-head .head-actions {display:none;}
  .ocean-preview[data-page="editor"] main {padding-top:16px;padding-bottom:16px;min-height:460px;}
  .ocean-preview[data-page="editor"] .workspace {min-height:calc(64px + 460px + 66px + env(safe-area-inset-bottom));}
  .ocean-preview .question-queue {align-items:center;}
  .ocean-preview .question-queue h2 {display:none;}
  .ocean-preview .queue-question {flex:1;min-width:0;gap:4px;padding:10px 8px;}
  .ocean-preview .queue-question small {font-size:10px;white-space:nowrap;}
  .ocean-preview .footer-actions .button {min-height:44px;padding:10px 8px;font-size:12px;}
  .ocean-preview .footer-actions .button:first-child {flex:.6;}
  .ocean-preview .footer-actions .button svg {display:none;}
  .ocean-preview .editor-toolbar .mobile-tabs button {min-height:36px;}
  .ocean-preview .field input,.ocean-preview .field textarea,.ocean-preview .field select {font-size:16px;}
  .ocean-preview .data-surface {overflow:visible;}
  .ocean-preview .review-table {min-width:0;display:block;}
  .ocean-preview .review-table thead {display:none;}
  .ocean-preview .review-table tbody {display:block;}
  .ocean-preview .review-table tr {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:18px 0;border-bottom:1px solid var(--line);}
  .ocean-preview .review-table tr:last-child {border-bottom:0;}
  .ocean-preview .review-table td {border:0;padding:0!important;min-width:0;}
  .ocean-preview .review-table td:first-child {grid-column:1/-1;font-size:14px;line-height:1.7;margin-bottom:10px;}
  .ocean-preview .review-table td:nth-child(2) {grid-column:1;align-self:center;}
  .ocean-preview .review-table td:nth-child(3) {grid-column:1;grid-row:3;font-size:11px;color:var(--muted);}
  .ocean-preview .review-table td:last-child {grid-column:2;grid-row:2/4;align-self:center;}
  .ocean-preview .status-tabs {gap:0;justify-content:space-between;}
  .ocean-preview .status-tabs button {font-size:12px;}
  .ocean-preview .status-tabs span {margin-left:4px;}
  .ocean-preview .paper-layout {display:flex;flex-direction:column;gap:20px;}
  .ocean-preview .paper-sheet {width:100%;}
  .ocean-preview .paper-settings {position:static;order:-1;width:100%;margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}
  .ocean-preview .paper-settings h2 {grid-column:1/-1;margin:0 0 4px;}
  .ocean-preview .paper-settings .field {margin:0;min-width:0;}
  .ocean-preview .paper-settings>.button {grid-column:1/-1;}
  .ocean-preview .paper-settings .legal-note {grid-column:1/-1;margin:0;font-size:11px;}
  .ocean-preview .paper-head .head-actions .button:not(.primary) {display:inline-flex;}
  .ocean-preview .bank-layout {display:flex;flex-direction:column;gap:16px;}
  .ocean-preview .bank-layout>.catalog {width:100%;margin:0;order:-2;}
  .ocean-preview .bank-layout>.basket {order:-1;width:100%;margin:0;padding:12px 16px;display:flex;gap:12px;align-items:center;position:sticky;top:8px;z-index:4;border:1px solid var(--line);}
  .ocean-preview .bank-layout>.section,.ocean-preview .bank-layout>section {width:100%;}
  .ocean-preview .bank-layout .basket-items,.ocean-preview .bank-layout .basket-footer p {display:none;}
  .ocean-preview .bank-layout .basket-footer {padding:0;margin-left:auto;}
  .ocean-preview .bank-layout .basket-head {gap:8px;}
  .ocean-preview .bank-layout .basket-head h2 {font-size:12px;}
  .ocean-preview .bank-layout .basket-footer .button {font-size:12px;padding:8px 12px;}
  .ocean-preview .filter-count {margin-left:0;}
  .ocean-preview .work-row {grid-template-columns:30px minmax(0,1fr) 44px;}
  .ocean-preview .toast {bottom:calc(82px + env(safe-area-inset-bottom));}
  .ocean-preview.focus-mode .workspace {padding-bottom:0;}
}
@media(max-width:360px) {
  .ocean-preview .topbar {padding-left:12px;padding-right:12px;}
  .ocean-preview main {padding-left:12px;padding-right:12px;}
  .ocean-preview .breadcrumb {font-size:11px;}
  .ocean-preview .ocean-switch button {padding-left:9px;padding-right:9px;}
  .ocean-preview .sea-wallpaper {width:132px;right:0;}
  .ocean-preview .ocean-welcome h1 {font-size:24px;max-width:190px;}
}
.ocean-preview .paper-settings .field input,.ocean-preview .paper-settings .field select {height:46px;padding:10px 12px;}
@media(max-width:960px) {
  .ocean-preview .editor-panes {display:block;overflow:hidden;}
  .ocean-preview .source-pane {display:none;height:100%;}
  .ocean-preview .edit-pane {height:100%;}
  .ocean-preview .editor-room.show-source .source-pane {display:block;}
  .ocean-preview .editor-room.show-source .edit-pane {display:none;}
  .ocean-preview .editor-toolbar>.control-group {display:none;}
  .ocean-preview .mobile-tabs {display:flex;background:var(--soft);padding:4px;border-radius:8px;gap:4px;}
  .ocean-preview .mobile-tabs button {min-height:36px;padding:6px 12px;border-radius:6px;font-size:12px;}
  .ocean-preview .mobile-tabs button.active {background:var(--surface);color:var(--blue);}
}
/* Theme colors settle together; only direct manipulation animates. */
.ocean-preview .sea-scene,.ocean-preview .rail-item,.ocean-preview .button,.ocean-preview .button.primary {transition-property:transform;}

/* The current paper leads the desk; the companion has its own clear space. */
.ocean-preview[data-page="home"] .sea-scene {height:422px;}
.ocean-preview[data-page="home"] .sea-wallpaper {top:108px;height:260px;right:82px;}
.ocean-preview[data-page="home"] .standing-ground {top:347px;right:44px;}
.ocean-preview[data-page="home"] .water-rings {top:285px;}
.desk-welcome.ocean-welcome {display:block;height:352px;padding-top:20px;}
.desk-welcome .welcome-copy {max-width:70%;padding:0;}
.desk-welcome h1 {font-size:30px;line-height:1.45;margin:0 0 8px;}
.desk-welcome .welcome-copy>p {font-size:12px;margin:0;}
.desk-welcome .current-work {width:56%;max-width:560px;background:transparent;box-shadow:none;border-radius:0;padding:26px 0 0;overflow:visible;}
.desk-welcome .current-top {justify-content:flex-start;gap:20px;}
.desk-welcome .current-work h2 {font:600 28px/1.5 "Songti SC","STSong",serif;margin:12px 0 6px;}
.desk-welcome .current-work>p {font-size:13px;}
.desk-welcome .current-work>p strong {font-weight:650;color:var(--ink);}
.resume-progress {display:flex;align-items:center;gap:5px;margin:16px 0 20px;max-width:320px;}
.resume-progress>span {height:4px;flex:1;background:var(--line);border-radius:3px;}
.resume-progress>span.complete {background:var(--blue);}
.resume-progress small {font-size:10px;white-space:nowrap;color:var(--muted);margin-left:10px;}
.desk-welcome .whale-companion {top:36px;right:46px;}
.desk-welcome .sea-greeting {bottom:25px;right:32px;padding:10px 16px;}
.desk-welcome .ocean-source {position:absolute;right:34px;bottom:2px;}
.ocean-preview[data-page="home"] .ocean-desk {grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:44px;padding-top:28px;}
.ocean-preview[data-page="home"] .ocean-recent {grid-column:auto;padding:0;}
.ocean-preview[data-page="home"] .ocean-agenda {padding:0 0 0 28px;border-left:1px solid var(--line);}
.ocean-preview[data-page="home"] .ocean-agenda .section-top {min-height:44px;margin:0;}
.ocean-preview[data-page="home"] .ocean-recent .work-row {grid-template-columns:40px minmax(0,1fr) 44px;}
.ocean-preview[data-page="home"] .work-kind {display:none;}
.desk-preview-note {font-size:10px;color:var(--muted);margin:28px 0 0;}

/* One question strip, two reading surfaces, one persistent action bar. */
.check-heading {display:flex;justify-content:space-between;align-items:center;gap:24px;flex:none;margin-bottom:18px;}
.check-title {display:flex;gap:12px;align-items:center;min-width:0;}
.check-title h1 {font-size:22px;margin:0 0 6px;line-height:1.4;}
.check-title p {font-size:11px;color:var(--muted);margin:0;}
.back-to-desk svg {transform:rotate(180deg);}
.check-progress {display:grid;grid-template-columns:auto auto;align-items:baseline;gap:6px 22px;min-width:150px;}
.check-progress>span {font-size:11px;color:var(--muted);}
.check-progress strong {font-size:20px;font-variant-numeric:tabular-nums;font-weight:600;text-align:right;}
.check-progress small {font-size:12px;font-weight:400;color:var(--muted);}
.check-progress progress {grid-column:1/-1;width:100%;height:4px;border:0;border-radius:3px;overflow:hidden;background:var(--line);appearance:none;}
.check-progress progress::-webkit-progress-bar {background:var(--line);}
.check-progress progress::-webkit-progress-value {background:var(--blue);}
.check-progress progress::-moz-progress-bar {background:var(--blue);}
.ocean-preview .check-layout {grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:14px;}
.check-layout .question-queue {display:flex;align-items:center;gap:10px;padding:0;overflow:visible;}
.queue-label,.queue-trailing {font-size:11px;color:var(--muted);white-space:nowrap;}
.queue-label {margin-right:8px;}
.queue-trailing {margin-left:auto;}
.check-layout .queue-question {width:auto;min-width:136px;min-height:54px;margin:0;justify-content:flex-start;gap:12px;padding:8px 16px;border-radius:12px 6px 12px 6px;border:1px solid transparent;}
.check-layout .queue-question.active {border-color:var(--line);background:var(--surface);color:var(--blue);}
.check-layout .queue-question:hover {background:var(--soft);}
.check-layout .queue-question small {display:block;margin-top:3px;font-weight:400;}
.queue-number {font:500 23px/1.1 Georgia,serif;opacity:.7;}
.check-layout .queue-question>svg {width:14px;height:14px;}
.check-layout .editor-toolbar {padding:8px 20px;min-height:52px;}
.check-layout .editor-toolbar .control-group>svg {width:16px;height:16px;}
.compare-tools {display:flex;align-items:center;gap:22px;margin-left:auto;}
.check-layout .editor-toolbar label {display:flex;font-size:11px;}
.check-layout .editor-toolbar input {accent-color:var(--blue);}
.check-layout .editor-panes {border-top:0;}
.check-layout .source-pane {padding:14px 22px 22px;background:var(--soft);border-right:1px solid var(--line);}
.source-caption {display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-bottom:12px;}
.check-layout .source-paper {min-height:620px;padding:28px 26px;}
.check-layout .source-paper .source-note {margin-bottom:22px;}
.check-layout .source-paper .source-question {background:#edf5f7;outline:1px solid #7baabb;border-radius:3px;}
.check-layout .source-paper .page-number {color:#677982;}
.check-layout .edit-pane {padding:18px 24px 26px;}
.edit-question-title {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;}
.edit-question-title h2 {font-size:17px;margin:0;}
.edit-question-title h2>span {font-size:11px;color:var(--muted);font-weight:400;margin-left:12px;}
.check-layout .field {margin-bottom:18px;}
.check-layout .field textarea {min-height:80px;}
.check-layout #edit-options {min-height:112px;}
.check-layout .editor-footer {padding:10px 18px;gap:18px;}
.check-position {display:flex;align-items:center;gap:14px;min-width:0;}
.question-paging {display:flex;align-items:center;flex:none;gap:3px;}
.question-paging>span {font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.question-paging .icon-button {min-width:34px;min-height:44px;}
.question-paging svg {width:16px;}
.previous-question svg {transform:rotate(180deg);}
.check-position .save-state {max-width:none;line-height:1.5;}
.check-layout .footer-actions {flex:none;}
.check-layout .footer-actions .button {padding-left:14px;padding-right:14px;}
.check-layout .button:disabled:hover {transform:none;}
@media(max-width:1100px) {
  .ocean-preview[data-page="home"] .ocean-desk {gap:24px;grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);}
  .ocean-preview[data-page="home"] .ocean-agenda {padding-left:22px;}
  .desk-welcome .current-work {width:60%;}
  .desk-welcome .current-top {gap:12px;}
  .ocean-preview[data-page="home"] .sea-wallpaper {right:35px;}
  .desk-welcome .whale-companion {right:0;}
  .desk-welcome .sea-greeting {right:0;}
  .desk-welcome .ocean-source {right:2px;}
}
@media(max-width:960px) {
  .check-layout .editor-toolbar label {display:none;}
  .queue-label {display:none;}
  .check-layout .queue-question {flex:1;min-width:0;}
  .check-layout .source-pane {border-right:0;}
  .check-layout .editor-footer {gap:10px;}
  .check-position {gap:4px;}
  .check-position .save-state {font-size:10px;max-width:88px;}
  .ocean-preview[data-page="home"] .ocean-desk {grid-template-columns:minmax(0,1fr);gap:30px;}
  .ocean-preview[data-page="home"] .ocean-agenda {padding:0;border:0;}
}
@media(max-width:760px) {
  .ocean-preview[data-page="home"] .sea-scene {height:460px;}
  .desk-welcome.ocean-welcome {height:414px;padding-top:18px;}
  .desk-welcome .welcome-copy {max-width:none;}
  .desk-welcome h1 {font-size:25px;max-width:none;}
  .desk-welcome .welcome-copy>p {font-size:11px;margin:0;}
  .desk-welcome .current-work {width:calc(100% - 122px);max-width:none;padding:32px 0 0;position:static;}
  .desk-welcome .current-top {display:block;line-height:1.6;}
  .desk-welcome .current-top>span:last-child {display:block;margin-top:6px;}
  .desk-welcome .current-work h2 {font-size:24px;margin:12px 0 8px;}
  .desk-welcome .current-work>p {font-size:12px;line-height:1.9;}
  .desk-welcome .resume-progress {flex-wrap:wrap;margin-top:16px;max-width:180px;}
  .desk-welcome .resume-progress small {flex-basis:100%;margin:5px 0 0;}
  .desk-welcome .current-actions {position:absolute;left:0;right:0;bottom:28px;gap:12px;}
  .desk-welcome .current-actions .primary {flex:1;}
  .desk-welcome .current-actions .quiet {font-size:12px;}
  .ocean-preview[data-page="home"] .sea-wallpaper {right:0;top:150px;width:128px;height:190px;}
  .ocean-preview[data-page="home"] .standing-ground {top:331px;right:0;width:140px;}
  .ocean-preview[data-page="home"] .water-rings {top:310px;width:130px;right:0;}
  .desk-welcome .whale-companion {right:-24px;top:100px;scale:.58;}
  .desk-welcome .sea-greeting {right:-4px;left:auto;bottom:88px;max-width:136px;font-size:10px;padding:8px 10px;}
  .desk-welcome .ocean-source {bottom:2px;font-size:9px;right:0;}
  .ocean-preview[data-page="home"] .ocean-desk {padding-top:20px;}
  .ocean-preview[data-page="home"] .ocean-recent .work-row {grid-template-columns:30px minmax(0,1fr) 44px;}
  .check-heading {gap:12px;margin-bottom:12px;}
  .check-title {gap:5px;}
  .check-title h1 {font-size:18px;margin-bottom:4px;}
  .check-title p {font-size:10px;}
  .check-title .icon-button {min-width:30px;}
  .check-title svg {width:18px;}
  .check-progress {min-width:60px;gap:4px 0;}
  .check-progress>span {display:none;}
  .check-progress strong {grid-column:1/-1;font-size:18px;}
  .check-layout .question-queue {gap:6px;}
  .check-layout .queue-question {padding:8px 10px;gap:8px;min-height:50px;}
  .check-layout .queue-number {font-size:20px;}
  .queue-trailing {display:none;}
  .check-layout .queue-question>svg {display:none;}
  .ocean-preview .check-layout {gap:10px;}
  .check-layout .editor-toolbar {padding:6px 8px;gap:6px;}
  .check-layout .editor-toolbar .quiet {font-size:11px;padding:6px;gap:4px;}
  .check-layout .editor-toolbar .quiet svg {width:14px;height:14px;}
  .check-layout .edit-pane {padding:16px;}
  .edit-question-title {margin-bottom:18px;}
  .check-layout .source-pane {padding:12px;}
  .check-layout .source-paper {padding:24px 18px;}
  .check-layout .source-paper h2 {font-size:17px;}
  .check-layout .editor-footer {padding:6px 10px 10px;gap:4px;}
  .check-position {width:100%;justify-content:space-between;}
  .check-position .save-state {width:auto;max-width:none;text-align:right;font-size:10px;}
  .check-layout .footer-actions {width:100%;gap:6px;}
  .check-layout .footer-actions .button {padding:10px 6px;font-size:11px;}
  .question-paging .icon-button {min-height:32px;min-width:30px;}
  .question-paging>span {font-size:10px;}
}
@media(max-width:360px) {
  .ocean-preview .desk-welcome h1 {font-size:23px;max-width:none;}
  .desk-welcome .current-work {width:calc(100% - 108px);}
  .desk-welcome .current-work h2 {font-size:22px;}
  .ocean-preview[data-page="home"] .sea-wallpaper {width:110px;right:0;}
  .desk-welcome .whale-companion {right:-30px;scale:.51;}
  .desk-welcome .sea-greeting {max-width:116px;}
  .check-layout .queue-question {gap:5px;padding:8px;}
}
