/* Shared surfaces; light remains the existing product appearance. */
/* Noto Sans SC Medium, subset for navigation under the bundled SIL OFL. */
@font-face {
  font-family:"Linsi Navigation SC";
  src:url("/static/linsi/assets/fonts/linsi-navigation-sc-medium.woff2") format("woff2");
  font-style:normal; font-weight:500; font-display:swap;
}
:root[data-theme="dark"][data-theme-page] {
  color-scheme: dark;
  --theme-bg: #000000;
  --theme-surface: #151515;
  --theme-raised: #262626;
  --theme-soft: #1d1d1d;
  --theme-border: #333333;
  --theme-text: #eeeeee;
  --theme-muted: #b5b5b5;
  --theme-subtle: #999999;
  --theme-primary: #97b2ff;
  --theme-action: #3268ee;
  --theme-action-hover: #396eeb;
  --theme-action-border: #527ff3;
  --theme-primary-soft: #252525;
  --theme-success: #7ed7b0;
  --theme-success-bg: #1b3027;
  --theme-warning: #efc17b;
  --theme-warning-bg: #332b20;
  --theme-danger: #ffa3af;
  --theme-danger-bg: #35242a;
  --theme-surface-rgb: 21,21,21;
  --theme-soft-rgb: 29,29,29;
  --theme-raised-rgb: 38,38,38;
  --theme-primary-soft-rgb: 37,37,37;
  --theme-success-bg-rgb: 27,48,39;
  --theme-warning-bg-rgb: 51,43,32;
  --theme-danger-bg-rgb: 53,36,42;
  --theme-shadow: 0 12px 36px #00000033;
  --v3-bg: var(--theme-bg); --bg: var(--theme-bg);
  --v3-surface: var(--theme-surface); --bg-2: var(--theme-surface); --panel: var(--theme-surface);
  --v3-surface-soft: var(--theme-soft); --panel-2: var(--theme-soft); --panel-soft: var(--theme-soft);
  --v3-ink: var(--theme-text); --text: var(--theme-text); --ink: var(--theme-text); --soft: #c7c7c7;
  --v3-muted: var(--theme-muted); --muted: var(--theme-muted);
  --v3-line: var(--theme-border); --line: var(--theme-border);
  --v3-primary: var(--theme-primary); --accent: var(--theme-primary); --primary: var(--theme-primary);
  --v3-primary-soft: var(--theme-primary-soft);
  --v3-success-soft: var(--theme-success-bg); --v3-warning-soft: var(--theme-warning-bg);
  --v3-danger-soft: var(--theme-danger-bg); --v3-info-soft: var(--theme-primary-soft);
  --v3-good: var(--theme-success); --ok: var(--theme-success);
  --v3-warn: var(--theme-warning); --warn: var(--theme-warning);
  --v3-bad: var(--theme-danger); --bad: var(--theme-danger);
  --v3-shadow: var(--theme-shadow); --v3-shadow-strong: var(--theme-shadow);
  --dh-ink: var(--theme-text); --dh-muted: var(--theme-muted); --dh-line: var(--theme-border); --dh-blue: var(--theme-primary);
}
html[data-theme="dark"], html[data-theme="dark"][data-theme-page] body { background-color: var(--theme-bg); color: var(--theme-text); }
:root[data-theme="dark"][data-theme-page="public"] { --canvas:var(--theme-bg); --card:var(--theme-surface); }
:root[data-theme="dark"][data-theme-page="legal"] { --soft:var(--theme-bg); --blue:var(--theme-primary); }
:root[data-theme="dark"][data-theme-page="text"] { --soft:var(--theme-primary-soft); --primary:#3268ee; }
html[data-theme="dark"][data-theme-page="text"] body { background:var(--theme-bg); }
:root[data-theme="dark"][data-theme-page="mobile"] { --blue:var(--theme-primary); }
/* Action backgrounds use a deeper blue than text links to retain white-label contrast. */
html[data-theme="dark"][data-theme-page] :is(.v3-btn.primary,.dh-host .dh-primary,.dh-dialog .dh-primary,.legal-summary-actions a:first-child) { background:#3268ee; border-color:#527ff3; color:#fff; }
/* Neutral chrome follows the selected reference; blue remains an action accent. */
html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-collapsed,.is-sidebar-temporary) .v3-sidebar { background:#121212; border-right-color:#242424; }
html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-collapsed,.is-sidebar-temporary) .v3-topbar { background:#000000; border-bottom-color:#202020; box-shadow:none; }
html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-collapsed,.is-sidebar-temporary) .v3-main,
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell #view:not(.route-labEdit) { background:#000000; }
html[data-theme="dark"][data-theme-page="workspace"] .v3-shell .v3-sidebar .nav :is(button,.nav-item).active { background:#292929; color:#f2f2f2; box-shadow:none; }
html[data-theme="dark"][data-theme-page="workspace"] .v3-shell .v3-sidebar .nav :is(button,.nav-item) .nav-icon { background:transparent; color:#b5b5b5; }
html[data-theme="dark"][data-theme-page="workspace"] .v3-shell .v3-sidebar .nav :is(button,.nav-item):is(.active,:hover) .nav-icon { background:transparent; color:#f2f2f2; }
html[data-theme="dark"][data-theme-page="workspace"] .v3-shell .v3-sidebar .nav :is(button,.nav-item):hover { background:#202020; }
:root[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-stage { background:#08090c; }
/* Keep the light artwork's geometry in graphite, including reduced-motion and WebGL fallback. */
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-stage::before {
  content:""; position:absolute; z-index:0; inset:0; pointer-events:none;
  background:#0b2054 url("/static/linsi/assets/workbench-editorial-hero.png") center/cover no-repeat;
  filter:grayscale(.9) brightness(.48) contrast(1.06);
}
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-stage-art { opacity:0; filter:grayscale(.9) brightness(.48) contrast(1.06); }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-stage-art.is-active { opacity:1; }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-stage::after {
  content:""; position:absolute; z-index:0; inset:0; pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.4));
}
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-home-heading h1 span { color:#eeeeee; }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-creation-card {
  background:#151619; border-color:rgba(255,255,255,.13);
  box-shadow:0 18px 42px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.025);
}
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion {
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)),rgba(16,18,24,.54);
  border-color:rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(18px) saturate(.7); backdrop-filter:blur(18px) saturate(.7);
  box-shadow:inset 0 1px rgba(255,255,255,.055),0 18px 42px rgba(0,0,0,.24);
}
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion:is(:hover,:focus-within) {
  background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.035)),rgba(20,22,28,.58);
  border-color:rgba(255,255,255,.23);
  box-shadow:inset 0 1px rgba(255,255,255,.07),0 22px 46px rgba(0,0,0,.3);
}
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion .dashboard-priority-item { background:rgba(255,255,255,.035); border-color:rgba(255,255,255,.09); }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion .dashboard-priority-item.is-primary { background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.13); }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion .dashboard-priority-item:is(:hover,:focus-visible) { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.22); }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion .dashboard-priority-icon { background:rgba(255,255,255,.06); color:#bec9e5; }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion .dashboard-priority-copy strong { color:#f0f1f4; }
html[data-theme="dark"][data-theme-page="workspace"] .dashboard-home .dashboard-suggestion :is(.dashboard-priority-copy>span,.dashboard-priority-copy small,.dashboard-suggestion-top span,.dashboard-suggestion-top em) { color:#bbc0cc; }
/* Both appearances use the same transparent official mark and navigation geometry. */
:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-collapsed,.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .v3-brand-mark {
  background:transparent; border:0; border-radius:0; box-shadow:none;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome.is-sidebar-collapsed:not(.is-sidebar-temporary):not(.is-onboarding-active) .v3-sidebar .v3-brand-mark {
  background:transparent; border:0; border-radius:0; box-shadow:none;
}
:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .v3-brand-mark img {
  border-radius:0; mix-blend-mode:normal; padding:4px; box-sizing:border-box;
}
/* Balance the brand against the dark sidebar without the bright link tint. */
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .v3-brand-mark img {
  opacity:.92;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .brand-title {
  color:#d0d0d0;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .brand-title span {
  color:#6867d9;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .brand-sub {
  color:#8b8b8b;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:is(.active,:not(.active)) {
  border:1px solid transparent; box-shadow:none; background:transparent; color:#b5b5b5;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:not(.active):hover {
  background:#202020; color:#ededed;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button.active,
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button.active:hover {
  background:#252525; color:#a8bfff; box-shadow:none; font-weight:760;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:is(.active,:not(.active))::before {
  content:none; box-shadow:none;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:is(.active,:not(.active)) .nav-icon {
  border:0; background:transparent; background-image:none; box-shadow:none; color:inherit;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav-section-title { color:#939393; }
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav-section + .nav-section { border-color:#2c2c2c; }
:root[data-theme="dark"][data-theme-page="workspace"] .v3-sidebar-toggle .nav-icon { background:#1d1d1d; border-color:#333; color:#b5b5b5; }
/* Reference navigation: compact, firmer labels; icons and chevrons sit one
   level below the text. Keep the existing groups, brand and collapse control. */
@media (min-width:821px) {
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav button .nav-item-text strong {
    font-family:"Linsi Navigation SC","Noto Sans SC","Microsoft YaHei",sans-serif; font-size:13px; line-height:1; font-weight:500; letter-spacing:-.025em; color:inherit;
  }
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav-section-title { font-family:"Linsi Navigation SC","Noto Sans SC","Microsoft YaHei",sans-serif; }
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav button:is(.active,:hover,:focus-visible) .nav-item-text strong { font-weight:500; }
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav .nav-icon .ui-icon { width:20px; height:20px; stroke-width:1.8; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:is(.active,:not(.active)) { color:#e2e2e2; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button.active,
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button.active:hover { background:#262626; color:#f5f5f5; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:not(.active):hover { background:#1e1e1e; color:#f5f5f5; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:is(.active,:not(.active)) .nav-icon { color:#a9a9a9; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav button:is(.active,:hover) .nav-icon { color:#c2c2c2; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav button::after { color:#888; opacity:.65; }
  html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome .v3-sidebar .nav-section-title { color:#858585; }
}
@media (min-width:821px) and (min-height:851px) {
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar { --video-nav-row:46px; }
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav { margin-top:16px; gap:22px; }
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav-section { gap:8px; }
  html:root[data-theme-page="workspace"] .v3-shell.is-workspace-chrome:is(.is-sidebar-expanded,.is-sidebar-temporary) .v3-sidebar .nav-section + .nav-section { padding-top:18px; }
}
/* Semantic actions retain the light appearance's hierarchy, without pastel fills
   under white labels. Exclude editor and preview content explicitly. */
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome :is(.v3-btn,.btn.secondary,.mini,.cl-button):not(.primary,.green,.danger,.cl-primary,.is-active,.active):not(:where(.route-labEdit,.route-labEdit *,.auto-caption-workspace-shell,.auto-caption-workspace-shell *,[data-theme-fixed],[data-theme-fixed] *,.dh-stage,.dh-stage *)) {
  background:#1d1d1d; border-color:#3a3a3a; color:#dedede; box-shadow:none;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome :is(.v3-btn,.btn.secondary,.mini,.cl-button):not(.primary,.green,.danger,.cl-primary,.is-active,.active):not(:disabled):hover:not(:where(.route-labEdit,.route-labEdit *,.auto-caption-workspace-shell,.auto-caption-workspace-shell *,[data-theme-fixed],[data-theme-fixed] *,.dh-stage,.dh-stage *)) {
  background:#282828; border-color:#505050; color:#f2f2f2;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome :is(.v3-btn.primary,.btn.primary,.btn.green,.mini.primary,.cl-button.cl-primary,.dh-primary):not(:where(.route-labEdit,.route-labEdit *,.auto-caption-workspace-shell,.auto-caption-workspace-shell *,[data-theme-fixed],[data-theme-fixed] *,.dh-stage,.dh-stage *)) {
  background:var(--theme-action); border-color:var(--theme-action-border); color:#fff; box-shadow:none;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome :is(.v3-btn.primary,.btn.primary,.btn.green,.mini.primary,.cl-button.cl-primary,.dh-primary):not(:disabled):hover:not(:where(.route-labEdit,.route-labEdit *,.auto-caption-workspace-shell,.auto-caption-workspace-shell *,[data-theme-fixed],[data-theme-fixed] *,.dh-stage,.dh-stage *)) {
  background:var(--theme-action-hover); border-color:#6b91f8; color:#fff;
}
:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell.is-workspace-chrome :is(.v3-btn,.v3-btn.primary,.btn,.btn.secondary,.mini,.cl-button,.cl-button.cl-primary,.dh-primary):disabled:not(:where(.route-labEdit,.route-labEdit *,.auto-caption-workspace-shell,.auto-caption-workspace-shell *,[data-theme-fixed],[data-theme-fixed] *,.dh-stage,.dh-stage *)) {
  background:#252525; border-color:#333; color:#858585; box-shadow:none; opacity:1; cursor:not-allowed;
}
.v3-top-actions .theme-toolbar-toggle { flex-shrink:0; }
[data-theme-icon] { display:inline-flex; align-items:center; justify-content:center; pointer-events:none; }
[data-theme-icon] svg { display:block; width:19px; height:19px; }
.theme-public-toggle { position:fixed; top:max(16px,env(safe-area-inset-top)); right:18px; z-index:1050; display:grid; place-items:center; width:38px; height:38px; padding:8px; border:1px solid #dce4f1; border-radius:11px; background:#fff; color:#536b96; cursor:pointer; box-shadow:0 3px 12px #1723370a; }
.theme-public-toggle:focus-visible,[data-theme-toggle]:focus-visible { outline:2px solid #7397ff; outline-offset:3px; }
:root[data-theme="dark"] .theme-public-toggle { background:var(--theme-surface); border-color:var(--theme-border); color:var(--theme-primary); box-shadow:var(--theme-shadow); }
:root[data-theme="dark"] [data-theme-toggle]:hover { background:var(--theme-raised); color:var(--theme-primary); }
:is([data-theme-page="public"],[data-theme-page="legal"],[data-theme-page="admin"]) :is(.public-language-control,.legal-language-control) { right:68px; }
.theme-public-toggle.theme-mobile-toggle { position:static; flex:none; box-shadow:none; }
@media(max-width:700px) { .theme-public-toggle { top:max(12px,env(safe-area-inset-top)); right:12px; width:34px; height:34px; } }

/* Embedded editor entry chrome follows the shell; its native editor is scoped
   separately in theme-editor-entry.css, inside the shadow root. */
html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell #view.route-labEdit,
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell { background:var(--theme-bg); color:var(--theme-text); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell :is(.auto-caption-loading,.auto-caption-load-error) { background:var(--theme-bg); color:var(--theme-muted); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell .video-workspace-loading-card { background:var(--theme-surface); border-color:var(--theme-border); box-shadow:none; }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell .video-workspace-loading-icon { background:var(--theme-soft); border-color:var(--theme-border); color:var(--theme-primary); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell .video-workspace-loading-copy strong { color:var(--theme-text); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell :is(.video-workspace-loading-copy small,.workspace-load-steps) { color:var(--theme-muted); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell :is(.workspace-load-progress,.video-workspace-loading-spinner) { background:var(--theme-soft); border-color:var(--theme-border); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell .video-workspace-loading-card.is-error .video-workspace-loading-icon { background:var(--theme-danger-bg); color:var(--theme-danger); }
html:root[data-theme="dark"][data-theme-page="workspace"] .auto-caption-workspace-shell .video-workspace-loading-card .v3-btn { background:var(--theme-soft); border-color:var(--theme-border); color:var(--theme-text); }

/* Keep scroll tracks quiet on the shared surfaces, including editor entry. */
:root[data-theme="dark"][data-theme-page] :where(*) { scrollbar-color:#555 transparent; }

/* Neutral modal surfaces and scrims; do not tint the whole workbench navy. */
html:root[data-theme="dark"][data-theme-page="workspace"] .modal-backdrop {
  background:rgba(0,0,0,.64); -webkit-backdrop-filter:blur(8px) grayscale(1); backdrop-filter:blur(8px) grayscale(1);
}
html:root[data-theme="dark"][data-theme-page="workspace"] dialog::backdrop {
  background:rgba(0,0,0,.64); -webkit-backdrop-filter:blur(6px) grayscale(1); backdrop-filter:blur(6px) grayscale(1);
}
html:root[data-theme="dark"][data-theme-page="workspace"] .modal-card,
html:root[data-theme="dark"][data-theme-page="workspace"] .modal-card > header,
html:root[data-theme="dark"][data-theme-page="workspace"] .modal-card > .modal-body {
  /* The legacy release dialog pins its header/body with !important. */
  background:#151515 !important; color:#eeeeee; border-color:#333333;
}
.personal-script-studio { max-width:1160px; margin:0 auto; padding:28px; }
.personal-script-heading { margin-bottom:26px; }
.personal-script-heading > span { font-size:12px; color:var(--v3-muted); }
.personal-script-heading h1 { font-size:30px; letter-spacing:-.04em; margin:12px 0; }
.personal-script-heading p,.personal-script-studio .v3-card > p { color:var(--v3-muted); line-height:1.8; }
.personal-script-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr); gap:20px; align-items:start; }
.personal-script-studio .v3-card { padding:24px; margin:16px 0; }
.personal-script-grid > .v3-card { margin:0; }
.personal-script-form { display:grid; gap:18px; }
.personal-script-form label { display:grid; gap:9px; font-size:13px; font-weight:600; }
.personal-script-form textarea { width:100%; box-sizing:border-box; resize:vertical; padding:14px; border:1px solid var(--v3-line,#dce2ed); border-radius:10px; background:var(--v3-bg,#fff); color:inherit; font:inherit; line-height:1.8; }
.personal-script-form footer { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.personal-script-form footer small { color:var(--v3-muted); }
.personal-script-history { display:grid; gap:10px; }
.personal-script-history button { display:grid; gap:8px; width:100%; border:1px solid var(--v3-line,#dce2ed); border-radius:10px; padding:15px; text-align:left; background:transparent; color:inherit; cursor:pointer; }
.personal-script-history small { color:var(--v3-muted); }
.personal-script-topics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.personal-script-topics h2 { font-size:18px; }
html:root[data-theme="dark"][data-theme-page="workspace"] .personal-script-form textarea { background:#1d1d1d; border-color:#383838; color:#eee; }
@media(max-width:800px) { .personal-script-grid,.personal-script-topics { grid-template-columns:1fr; } .personal-script-studio { padding:18px; } .personal-script-heading h1 { font-size:24px; } }

/* Default profile avatar follows the theme; uploaded account images stay intact. */
html[data-theme="dark"] img[src="/static/linsi/assets/profile-user-icon-v1.svg"] {
  content: url("/static/linsi/assets/profile-user-icon-dark-v1.svg");
}

/* Account landing uses one continuous canvas; cards provide surface contrast. */
html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell .v3-scroll-region:has(> .content.route-research:not([hidden])) { background: var(--theme-bg); }
html:root[data-theme="dark"][data-theme-page="workspace"] .v3-shell #view.content.route-research { background: transparent; }
