/* Research Workbench / Industrial Field UI */
@font-face { font-family: "HarmonyOS Sans SC"; src: url("../assets/fonts/HarmonyOS_Sans_SC_Regular.3848ad.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HarmonyOS Sans SC"; src: url("../assets/fonts/HarmonyOS_Sans_SC_Medium.fa43c4.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HarmonyOS Sans SC"; src: url("../assets/fonts/HarmonyOS_Sans_SC_Bold.50b93a.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "HarmonyOS Sans SC"; src: url("../assets/fonts/HarmonyOS_Sans_SC_Black.e135b0.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Novecento Wide"; src: url("../assets/fonts/Novecentosanswide-Medium.748604.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Novecento Wide"; src: url("../assets/fonts/Novecentosanswide-DemiBold.089c2d.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Novecento Wide"; src: url("../assets/fonts/Novecentosanswide-Bold.7ac6f1.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Light.9981d6.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../assets/fonts/Gilroy-Medium.376b06.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/SpaceGrotesk.edd157.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Roboto Endfield"; src: url("../assets/fonts/Roboto-Regular.978751.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --bg: #111316;
  --bg-deep: #090b0d;
  --panel: #f3f3f0;
  --panel-2: #ffffff;
  --panel-dark: #1a1d21;
  --line: #383d43;
  --line-soft: rgba(255,255,255,.1);
  --ink: #0a0b0d;
  --text: #f6f7f3;
  --muted: #9b9fa5;
  --yellow: #fff44f;
  --yellow-2: #d9cd00;
  --green: #8eef5b;
  --red: #ff625d;
  --orange: #f5a623;
  --display-cjk: "HarmonyOS Sans SC", "PingFang SC", sans-serif;
  --display-wide: "Novecento Wide", "Arial Narrow", sans-serif;
  --sans: "HarmonyOS Sans SC", "PingFang SC", sans-serif;
  --latin: "Gilroy", "Roboto Endfield", sans-serif;
  --numeric: "Space Grotesk", "Novecento Wide", sans-serif;
  --mono: "Space Grotesk", "SFMono-Regular", Consolas, monospace;
  --shadow-panel: 0 1px 0 rgba(255,255,255,.14) inset, 0 14px 28px rgba(0,0,0,.3), 8px 8px 0 rgba(0,0,0,.48), 10px 10px 0 rgba(255,244,79,.22);
  --shadow-dark: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 42px rgba(0,0,0,.46), 6px 7px 0 #050607, 8px 9px 0 rgba(255,244,79,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, .nav-item { -webkit-app-region: no-drag; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #090a0c; }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 2px solid #090a0c; }

/* Opening boot sequence */
.boot-sequence {
  position: fixed; inset: 0; z-index: 500;
  overflow: hidden; isolation: isolate;
  background: #080a0b; color: #f5f6f2;
  font-family: var(--display-cjk);
  cursor: wait;
}
.boot-material {
  position: absolute; inset: 0; z-index: -4;
  background:
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.52)),
    radial-gradient(circle at 74% 42%, rgba(255,255,255,.055), transparent 33%),
    url("../assets/official/card-bg.28c79684.jpg") center / cover,
    #080a0b;
  filter: grayscale(1) brightness(.23) contrast(1.45);
  transform: scale(1.04);
}
.boot-material::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(255,255,255,.055) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(255,255,255,.035) 119px 120px),
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 1px, transparent 1px 8px);
}
.boot-contours { position: absolute; inset: 0; z-index: -2; overflow: hidden; opacity: .72; }
.boot-contours::before {
  content: ""; position: absolute; right: -8vw; top: -24vh; width: min(72vw,980px); aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.26); border-radius: 44% 56% 52% 48%;
  box-shadow: 0 0 0 46px rgba(255,255,255,.035), 0 0 0 92px rgba(255,255,255,.045), 0 0 0 139px rgba(255,255,255,.025), 0 0 0 188px rgba(255,255,255,.038), 0 0 0 238px rgba(255,255,255,.02);
  transform: rotate(-13deg) skewX(5deg);
}
.boot-contours::after {
  content: ""; position: absolute; right: 5vw; bottom: -35vh; width: min(54vw,760px); aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.2); border-radius: 58% 42% 47% 53%;
  box-shadow: 0 0 0 38px rgba(255,255,255,.028), 0 0 0 77px rgba(255,255,255,.04), 0 0 0 116px rgba(255,255,255,.022), 0 0 0 157px rgba(255,255,255,.033);
  transform: rotate(18deg) skewY(-7deg);
}
.boot-contours i { position: absolute; display: block; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.boot-contours i:nth-child(1) { right: 28vw; top: 18vh; width: 210px; height: 210px; }
.boot-contours i:nth-child(2) { right: 20vw; top: 26vh; width: 76px; height: 76px; }
.boot-contours i:nth-child(3) { right: 11vw; bottom: 12vh; width: 360px; height: 180px; border-radius: 48% 52% 42% 58%; transform: rotate(-24deg); }
.boot-index { position: absolute; left: 142px; top: 25px; color: rgba(255,255,255,.42); font: 600 8px/1.55 var(--display-wide); letter-spacing: .15em; }
.boot-index::before { content: ""; display: inline-block; width: 22px; height: 4px; margin-right: 8px; background: var(--yellow); vertical-align: 2px; }
.boot-loader { position: absolute; left: 0; top: 0; bottom: 0; width: min(112px, calc(var(--sidebar-width,248px) * .46)); }
.boot-loader-track { width: 100%; height: 100%; position: relative; overflow: hidden; border: 0; background: rgba(255,255,255,.025); box-shadow: none; }
.boot-loader-track::before { display: none; }
.boot-loader-track::after { content: "LOADING"; position: absolute; left: 50%; top: 16px; z-index: 3; color: rgba(0,0,0,.45); font: 700 8px/1 var(--display-wide); letter-spacing: .12em; writing-mode: vertical-rl; transform: translateX(-50%); }
.boot-loader-track > i { position: absolute; inset: 0; display: block; background: var(--yellow); transform: scaleY(0); transform-origin: 50% 0; will-change: transform; box-shadow: 0 0 34px rgba(255,244,79,.45); }
.boot-loader-value { position: absolute; left: calc(100% + 13px); top: 0; display: flex; align-items: flex-start; color: #fff; will-change: transform; }
.boot-loader-value b { min-width: 64px; font: 700 31px/.78 var(--numeric); letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.boot-loader-value span { margin: -2px 0 0 4px; color: var(--yellow); font: 700 10px/1 var(--display-wide); }
.boot-loader-value::after { content: ""; position: absolute; left: 0; top: 31px; width: 38px; height: 1px; background: rgba(255,255,255,.62); }
.boot-identity { position: absolute; right: clamp(52px,7vw,120px); top: 50%; width: min(47vw,620px); display: grid; grid-template-columns: minmax(220px,1fr) 42px minmax(190px,.78fr); gap: 18px; align-items: center; transform: translateY(-50%); }
.boot-project-logo, .boot-endfield-logo { min-width: 0; opacity: 0; will-change: transform,opacity; }
.boot-project-logo img { display: block; width: min(100%,360px); max-height: 250px; object-fit: contain; filter: invert(1) brightness(2.2) contrast(1.2); }
.boot-project-logo > span { display: block; margin-top: -14px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.34); color: rgba(255,255,255,.48); font: 600 8px/1 var(--display-wide); letter-spacing: .12em; text-align: center; }
.boot-logo-divider { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--yellow); font: 600 18px/1 var(--latin); opacity: .7; }
.boot-logo-divider i { width: 1px; height: 76px; background: linear-gradient(transparent,rgba(255,255,255,.55),transparent); }
.boot-endfield-logo { position: relative; min-height: 220px; display: grid; place-items: center; }
.boot-endfield-logo > img { position: absolute; inset: 50% auto auto 50%; width: 230px; height: 200px; object-fit: contain; opacity: .34; filter: grayscale(1) invert(1) brightness(3) contrast(2); transform: translate(-50%,-50%); mix-blend-mode: screen; }
.boot-endfield-logo > div { position: relative; z-index: 1; text-align: center; }
.boot-endfield-logo strong { display: block; color: #fff; font: 900 clamp(42px,5vw,72px)/.82 var(--display-cjk); letter-spacing: -.12em; text-shadow: 5px 5px 0 rgba(255,255,255,.08); }
.boot-endfield-logo span { display: block; margin-top: 12px; color: rgba(255,255,255,.72); font: 700 10px/1 var(--display-wide); letter-spacing: .11em; }
.boot-status-copy { position: absolute; right: clamp(52px,7vw,120px); bottom: 42px; display: flex; align-items: center; gap: 16px; }
.boot-status-copy span { padding: 5px 8px; background: var(--yellow); color: #111; font: 700 8px/1 var(--display-wide); letter-spacing: .12em; }
.boot-status-copy b { font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.boot-yellow-wipe { position: absolute; inset: 0; z-index: 20; background: var(--yellow); transform: scaleX(0); transform-origin: 0 50%; will-change: transform,opacity; }
.boot-sequence.reveal-ready > :not(.boot-yellow-wipe) { opacity: 0 !important; }

@media (max-width: 820px) {
  .boot-loader { left: 0; width: 72px; }
  .boot-index { left: 94px; }
  .boot-identity { right: 28px; width: 62vw; grid-template-columns: 1fr; gap: 8px; }
  .boot-logo-divider { display: none; }
  .boot-project-logo img { max-height: 150px; }
  .boot-endfield-logo { min-height: 120px; }
  .boot-endfield-logo strong { font-size: 38px; }
  .boot-status-copy { right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-contours { opacity: .35; }
}

.app { --sidebar-width: 248px; display: flex; height: 100vh; background: var(--bg); }
.app.sidebar-collapsed { --sidebar-width: 86px; }

/* sidebar */
.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 17px, rgba(32,35,38,.16) 17px 18px, transparent 18px),
    repeating-linear-gradient(135deg, rgba(12,14,16,.035) 0 1px, transparent 1px 9px),
    #e9e9e5;
  color: var(--ink);
  border-right: 1px solid #16181b;
  box-shadow: 5px 0 0 var(--yellow), 7px 0 0 #050607, 18px 0 38px rgba(0,0,0,.48);
  transition: width .28s cubic-bezier(.2,.82,.2,1), flex-basis .28s cubic-bezier(.2,.82,.2,1), box-shadow .28s ease;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 124px 0 0;
  background:
    linear-gradient(90deg, transparent 0 17px, var(--yellow) 17px 18px, transparent 18px),
    linear-gradient(rgba(243,243,239,.48), rgba(237,237,233,.78)),
    url("../assets/official/ring.5ce6e2bd.png") -215px 46px / 560px 560px no-repeat,
    url("../assets/official/card-bg.28c79684.jpg") center top / 190px auto repeat-y;
  background-blend-mode: normal, normal, multiply, multiply;
  opacity: .9;
  filter: grayscale(.78) contrast(1.08) brightness(1.1);
  pointer-events: none;
}
.sidebar::after {
  content: "R / 01  FIELD TERMINAL";
  position: absolute;
  left: -45px; bottom: 190px;
  transform: rotate(-90deg);
  color: rgba(18,20,22,.48);
  font: 9px/1 var(--mono);
  letter-spacing: .18em;
  pointer-events: none;
}
.brand {
  min-height: 124px;
  display: flex;
  gap: 0;
  align-items: center;
  padding: 10px 18px 9px 28px;
  background:
    linear-gradient(90deg, rgba(244,244,240,.96), rgba(255,255,255,.88)),
    url("../assets/official/title_bg.862a2438.png") 12% 48% / 310px auto no-repeat,
    #f4f4f0;
  color: var(--ink);
  border-bottom: 7px solid var(--yellow);
  box-shadow: 0 4px 0 #000, 0 12px 24px rgba(0,0,0,.35);
  position: relative;
}
.brand::after {
  content: "WB-26";
  position: absolute;
  right: 8px; top: 8px;
  font: 8px/1 var(--mono);
  letter-spacing: .08em;
}
.brand-mark { width: 101px; height: 101px; object-fit: contain; display: block; filter: contrast(1.2); }
.brand-code { position: absolute; right: 10px; bottom: 10px; padding: 3px 5px; background: #111418; color: var(--yellow); font: 700 7px/1 var(--mono); letter-spacing: .08em; }
.sidebar-toggle {
  position: absolute;
  right: 10px;
  bottom: 38px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #22262a;
  border-radius: 50%;
  background: rgba(255,255,252,.82);
  color: #121416;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,.18), inset 0 1px 0 #fff;
  transition: transform .24s ease, background .2s ease;
}
.sidebar-toggle span { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); transition: transform .28s ease; }
.sidebar-toggle:hover { background: var(--yellow); transform: translateY(-2px); }

.nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 12px 18px 27px;
  position: relative;
  z-index: 2;
  perspective: 820px;
  transform-style: preserve-3d;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.nav-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 0 11px 0 0;
  color: #353a3f;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(35,39,43,.13);
  border-left: 0;
  background: rgba(248,248,244,.34);
  backdrop-filter: blur(2px);
  transform: translate3d(0,0,0) rotateX(0deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  box-shadow: 0 1px 0 rgba(255,255,255,.72) inset, 0 2px 7px rgba(34,38,42,.05);
  transition:
    color .2s ease,
    background .2s ease,
    border-color .2s ease,
    opacity .2s ease,
    transform .34s cubic-bezier(.2,.82,.2,1),
    box-shadow .34s cubic-bezier(.2,.82,.2,1),
    filter .24s ease;
  will-change: transform, box-shadow;
  font-family: var(--display-cjk);
  font-weight: 700;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  width: 8px; height: 1px;
  background: #555b62;
}
.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  transition: opacity .2s ease;
}
.nav-item:hover { color: #111416; border-color: rgba(91,86,23,.46); }
.nav-item.active,
.nav-item.hologram {
  color: #08090a;
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.06)),
    rgba(255,244,79,.38);
  border-color: rgba(198,188,0,.58);
  font-weight: 850;
  transform: translate3d(3px,-3px,14px) rotateX(1deg) rotateY(-.6deg) scale(1.006);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.56) inset,
    -2px 3px 0 rgba(255,244,79,.38),
    1px 5px 0 rgba(15,17,19,.72),
    5px 10px 18px rgba(0,0,0,.2);
  backdrop-filter: blur(12px) saturate(1.08);
  z-index: 4;
}
.nav-item.active::before,
.nav-item.hologram::before { left: -8px; width: 8px; height: 100%; top: 0; background: rgba(255,244,79,.82); box-shadow: -3px 0 7px rgba(255,244,79,.3); }
.nav-item.active::after,
.nav-item.hologram::after { opacity: .58; animation: none; }
.nav-item.projection-muted {
  opacity: .76;
  filter: grayscale(.3);
  transform: translate3d(-1px,1px,-8px) rotateX(-1deg) scale(.99);
  background: rgba(225,225,220,.38);
  border-color: rgba(34,38,42,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.62) inset, 0 2px 4px rgba(25,28,31,.05);
  z-index: 1;
}
.nav-item.departing {
  animation: projectionSink .34s cubic-bezier(.45,0,.7,.35) both;
  pointer-events: none;
}
@keyframes hologramSweep {
  0%, 24% { background-position: 110% 0, 0 0; opacity: .42; }
  58% { background-position: -80% 0, 0 0; opacity: .82; }
  100% { background-position: -80% 0, 0 0; opacity: .42; }
}
@keyframes projectionSink {
  0% { transform: translate3d(3px,-3px,14px) rotateX(1deg) scale(1.006); }
  58% { transform: translate3d(2px,2px,0) rotateX(-1deg) scale(.994); box-shadow: 0 2px 5px rgba(0,0,0,.08); }
  100% { transform: translate3d(-1px,1px,-8px) rotateX(-1deg) scale(.99); opacity: .76; box-shadow: 0 1px 0 rgba(255,255,255,.62) inset; }
}
.nav-ico {
  height: 30px;
  display: grid; place-items: center;
  border-right: 1px solid currentColor;
  font: 10px/1 var(--mono);
  letter-spacing: .04em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 27px 27px;
  text-indent: -999px;
  overflow: hidden;
  opacity: .62;
  filter: grayscale(1) contrast(1.15);
}
.nav-item:nth-child(1) .nav-ico { background-image: url("../assets/official/operator.875a6fbd.png"); }
.nav-item:nth-child(2) .nav-ico { background-image: url("../assets/official/prof-guard.78502de4.jpg"); }
.nav-item:nth-child(3) .nav-ico { background-image: url("../assets/official/prof-caster.d469c805.jpg"); }
.nav-item:nth-child(4) .nav-ico { background-image: url("../assets/official/prof-vanguard.b957cec2.jpg"); }
.nav-item:nth-child(5) .nav-ico { background-image: url("../assets/official/ele-nature.0606ebde.jpg"); }
.nav-item:nth-child(6) .nav-ico { background-image: url("../assets/official/prof-support.532f02bd.jpg"); }
.nav-item:nth-child(7) .nav-ico { background-image: url("../assets/official/ele-electric.a3874677.jpg"); }
.nav-item:nth-child(8) .nav-ico { background-image: url("../assets/official/prof-shielder.a3c6ffc9.jpg"); }
.nav-item:nth-child(9) .nav-ico { background-image: url("../assets/official/prof-assault.2aeeaf48.jpg"); }
.nav-item:nth-child(10) .nav-ico { background-image: url("../assets/official/ele-fire.97dcd67b.jpg"); }
.nav-item:nth-child(11) .nav-ico { background-image: url("../assets/official/ele-physic.2c205b7a.jpg"); }
.nav-item.active .nav-ico, .nav-item.hologram .nav-ico { opacity: 1; filter: grayscale(.15) contrast(1.18); }
.nav-item small { font: 7px/1 var(--mono); letter-spacing: .11em; opacity: .55; }
.sidebar-foot {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 12px;
  margin: 0 12px 14px 27px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(31,35,39,.28);
  position: relative;
  flex: 0 0 auto;
}
.sidebar-foot::before { content: "AUXILIARY MODULE"; position: absolute; top: 4px; left: 0; color: #656a6e; font: 7px/1 var(--mono); letter-spacing: .1em; }
.agent-task-card {
  min-height: 92px;
  padding: 10px 11px 11px;
  border: 1px solid #73787a;
  border-left: 4px solid var(--yellow);
  background: rgba(247,247,243,.76);
  color: #16191b;
  box-shadow: 3px 4px 0 rgba(18,20,22,.9), 5px 6px 0 rgba(255,244,79,.36);
  backdrop-filter: blur(9px);
  transition: background .2s ease, transform .2s ease;
}
.agent-task-card.running { background: rgba(255,255,252,.92); transform: translateY(-2px); }
.agent-task-card.done { border-left-color: #39b66d; }
.agent-task-card.error { border-left-color: var(--red); }
.agent-task-card.waiting_confirmation { border-left-color: #c4a800; background: rgba(255,251,199,.92); }
.agent-task-card.needs_input { border-left-color: #e44d43; background: rgba(255,235,232,.94); }
.agent-task-card[role="button"] { cursor: pointer; }
.agent-task-card[role="button"]:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.agent-task-head { display: flex; align-items: center; justify-content: space-between; color: #63686b; font: 700 8px/1 var(--display-wide); letter-spacing: .1em; }
.agent-task-head b { min-width: 22px; padding: 3px 5px; background: #171a1c; color: var(--yellow); text-align: center; }
.agent-task-card > strong { display: block; margin-top: 9px; overflow: hidden; color: #151719; font-size: 13px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.agent-task-card > small { display: block; margin-top: 4px; overflow: hidden; color: #666b6e; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.agent-task-progress { height: 4px; margin-top: 9px; overflow: hidden; background: #c6c8c6; }
.agent-task-progress i { display: block; width: 0; height: 100%; background: var(--yellow-2); box-shadow: 0 0 9px rgba(255,244,79,.7); transition: width .32s ease; }
.agent-task-card.error .agent-task-progress i { background: var(--red); }
.assistant-square {
  --assistant-rx: 0deg;
  --assistant-ry: 0deg;
  --avatar-x: 0px;
  --avatar-y: 0px;
  width: min(176px, 100%);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid #2e3337;
  border-bottom: 6px solid var(--yellow);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 42%),
    #303438;
  color: #f4f5f2;
  cursor: pointer;
  perspective: 620px;
  transform-style: preserve-3d;
  transform: rotateX(var(--assistant-rx)) rotateY(var(--assistant-ry));
  box-shadow: 5px 6px 0 #101214, 7px 8px 0 rgba(255,244,79,.52), 0 14px 28px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease, width .28s ease;
  align-self: center;
}
.assistant-square-grid { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 28px 28px; opacity: .58; }
.assistant-square-orbit { position: absolute; left: 50%; top: 43%; width: 66%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; transform: translate(-50%,-50%) translateZ(0); box-shadow: 0 0 0 8px rgba(255,255,255,.035), inset 0 0 24px rgba(255,255,255,.08); }
.assistant-square-orbit::after { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(255,244,79,.58); border-radius: 50%; animation: assistantOrbit 14s linear infinite; }
.assistant-square-avatar { position: absolute; left: 50%; top: 12%; width: 42%; height: auto; pointer-events: none; transform: translate3d(calc(-50% + var(--avatar-x)), var(--avatar-y), 48px) rotateY(-6deg); transform-origin: 50% 70%; filter: contrast(1.12) drop-shadow(0 4px 1px rgba(255,255,255,.2)) drop-shadow(8px 14px 8px rgba(0,0,0,.56)); transition: transform .22s cubic-bezier(.2,.82,.2,1), filter .22s ease; }
.assistant-square-copy { position: absolute; left: 12px; right: 12px; bottom: 11px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; z-index: 3; text-align: left; }
.assistant-square-copy strong { font: 700 14px/1 var(--display-cjk); }
.assistant-square-copy small { color: #b9beba; font: 600 7px/1 var(--display-wide); letter-spacing: .08em; }
.assistant-square .ai-status { position: absolute; right: 10px; top: 10px; z-index: 4; border-radius: 50%; transform: none; }
.assistant-square:hover { transform: rotateX(var(--assistant-rx)) rotateY(var(--assistant-ry)) translateY(-4px); box-shadow: 7px 10px 0 #101214, 10px 13px 0 rgba(255,244,79,.48), 0 20px 32px rgba(0,0,0,.34); }
.assistant-square:hover .assistant-square-avatar { transform: translate3d(calc(-50% + var(--avatar-x) + 4px), calc(var(--avatar-y) - 8px), 72px) rotateY(-10deg) scale(1.06); filter: contrast(1.15) drop-shadow(0 4px 1px rgba(255,255,255,.28)) drop-shadow(12px 18px 10px rgba(0,0,0,.64)); }
.assistant-square:focus-visible { outline: 2px solid #16191b; outline-offset: 3px; }
@keyframes assistantOrbit { to { transform: rotate(360deg); } }
.btn-ghost {
  flex: 1;
  height: 42px;
  border: 1px solid var(--yellow);
  background: rgba(255,255,252,.48);
  color: #15181b;
  cursor: pointer;
  text-align: left;
  padding: 0 12px;
  font-weight: 750;
  box-shadow: 3px 3px 0 #000, 4px 4px 0 rgba(255,244,79,.35);
}
.btn-ghost span { display: inline-grid; place-items: center; width: 25px; height: 22px; margin-right: 6px; background: var(--yellow); color: #000; font: 10px/1 var(--mono); }
.btn-ghost:hover { background: var(--yellow); color: #000; }
.ai-status { width: 9px; height: 9px; background: #72777b; border: 1px solid #1d2023; transform: rotate(45deg); }
.ai-status.on { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,244,79,.12), 0 0 15px rgba(255,244,79,.8); }

/* main canvas */
.main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  padding: 0 38px 56px;
  background:
    linear-gradient(rgba(17,19,22,.9), rgba(17,19,22,.94)),
    url("../assets/2_2-20260805_102607143.webp") center top / cover fixed,
    #111316;
}
.main::before {
  content: "";
  position: fixed;
  left: var(--sidebar-width); right: 0; top: 0; height: 72%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 62% 28%, rgba(255,244,79,.07), transparent 42%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 78%);
  transition: left .28s cubic-bezier(.2,.82,.2,1);
}
.main::after {
  content: "";
  position: fixed;
  right: 34px; bottom: 18px;
  width: 360px; height: 310px;
  z-index: 0;
  pointer-events: none;
  background: url("../assets/official/blurred_logo.eccbe4f3.png") center / contain no-repeat;
  opacity: .055;
  mix-blend-mode: screen;
  filter: contrast(1.25);
}
.system-bar {
  height: 42px;
  margin: 0 -38px 26px;
  padding: 0 38px;
  display: flex; align-items: center; gap: 18px;
  position: sticky; top: 0; z-index: 12;
  border-bottom: 1px solid #3c4147;
  background: rgba(9,11,13,.94);
  backdrop-filter: blur(12px);
  color: #8e949b;
  font: 600 8px/1 var(--display-wide);
  letter-spacing: .12em;
}
.system-id { color: #08090a; background: var(--yellow); padding: 7px 10px; font-weight: 800; }
.system-track { flex: 1; height: 6px; position: relative; background: repeating-linear-gradient(90deg,#4e545a 0 1px,transparent 1px 12px); }
.system-track i { display: block; width: 29%; height: 2px; margin-top: 2px; background: var(--yellow); box-shadow: 0 0 10px rgba(255,244,79,.55); }
.system-state { color: var(--yellow); }
.official-module-banner { width: 112px; height: 26px; object-fit: cover; border: 1px solid rgba(100,105,110,.32); filter: saturate(1.12) contrast(1.05); }

.page { display: none; position: relative; z-index: 1; animation: pageIn .26s ease both; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
.page.page-entering .page-head { animation: moduleEnter .52s cubic-bezier(.2,.82,.2,1) both; }
.page.page-entering > :not(.page-head):not(.task-side-rail) { animation: moduleEnter .58s .08s cubic-bezier(.2,.82,.2,1) both; }
.page.page-entering .stat-card,
.page.page-entering .chart-card,
.page.page-entering .kanban-col,
.page.page-entering .project-card,
.page.page-entering .inspiration-card,
.page.page-entering .gh-panel,
.page.page-entering .settings-card { animation: panelDeploy .55s calc(.1s + var(--idea-index, 0) * 45ms) cubic-bezier(.2,.82,.2,1) both; }
@keyframes moduleEnter { from { opacity: 0; transform: translate3d(0,18px,0); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: translate3d(0,0,0); clip-path: inset(0); } }
@keyframes panelDeploy { from { opacity: 0; transform: translate3d(0,20px,0) rotateX(-4deg); } to { opacity: 1; transform: translate3d(0,0,0) rotateX(0); } }
.page-head {
  min-height: 120px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin: 0 0 28px;
  padding: 8px 0 20px 21px;
  position: relative;
  border-left: 1px solid var(--yellow);
  border-bottom: 1px solid #555b62;
}
.page-head::before {
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 190px; height: 5px;
  background: var(--yellow);
  box-shadow: 200px 0 0 rgba(255,244,79,.25), 208px 0 0 rgba(255,244,79,.12);
}
.page-head::after {
  content: "RESEARCH OPERATIONS / CONTROL SURFACE";
  position: absolute;
  left: 22px; top: 2px;
  color: #6f757c;
  font: 600 8px/1 var(--display-wide);
  letter-spacing: .18em;
}
.page-head h1 {
  color: #fff;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: .88;
  font-weight: 900;
  font-family: var(--display-cjk);
  letter-spacing: -.065em;
}
.page-sub { color: #9aa0a7; margin-top: 13px; font: 500 10px/1.4 var(--latin); letter-spacing: .08em; text-transform: uppercase; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 4px; }

/* controls */
.btn {
  min-height: 38px;
  padding: 9px 20px 9px 23px;
  border: 1px solid #5f656b;
  border-left: 3px solid #899096;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 38%),
    url("../assets/official/pag-button-texture.e4e732ad.png") calc(100% + 12px) center / 62px 62px no-repeat,
    #303438;
  color: #f6f7f3;
  cursor: pointer;
  font: 700 12px/1.2 var(--display-cjk);
  letter-spacing: .04em;
  box-shadow: 0 1px 0 rgba(255,255,255,.11) inset, 3px 4px 0 #070809, 0 10px 21px rgba(0,0,0,.24);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { color: var(--yellow); border-color: var(--yellow); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 #070809, 6px 6px 0 rgba(255,244,79,.28); }
.btn-primary {
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 42%),
    url("../assets/official/pag-button-texture.e4e732ad.png") calc(100% + 9px) center / 67px 67px no-repeat,
    #303438;
  color: #f7f8f5;
  border-color: #4d5257;
  border-left-color: var(--yellow);
  box-shadow: 4px 4px 0 #050607, 6px 6px 0 rgba(255,244,79,.34), 0 12px 26px rgba(0,0,0,.35);
}
.btn-primary:hover { background-color: #24282c; color: var(--yellow); }
.btn-danger { color: #ff9692; border-color: #743a39; }
.btn-danger:hover { color: #fff; background: #b83733; border-color: #ff625d; }
.btn.block { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.input, .chat-input, textarea.summary-edit {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #585e65;
  border-left: 3px solid #7b8188;
  border-radius: 0;
  background: #181b1f;
  color: #f6f7f3;
  outline: none;
  box-shadow: inset 0 1px 10px rgba(0,0,0,.35), 3px 3px 0 rgba(0,0,0,.35);
}
.input::placeholder, .chat-input::placeholder { color: #767c83; }
.input:focus, .chat-input:focus, textarea.summary-edit:focus { border-color: var(--yellow); border-left-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 0 18px rgba(255,244,79,.1); }
.input.ai-add-input { width: min(390px, 36vw); }
select.input { cursor: pointer; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0; }
.row2 .span2 { grid-column: span 2; }
.muted { color: #777d84; font-size: 12px; }
.hidden { display: none !important; }
.hint { color: #747a81; font-size: 11px; margin-top: 11px; line-height: 1.65; }
.field-label { display: block; margin: 14px 0 6px; padding-left: 9px; border-left: 2px solid var(--yellow); color: #2c3034; font: 700 9px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.code-line { margin-bottom: 10px; padding: 11px 13px; word-break: break-all; border: 1px solid #343940; border-left: 3px solid var(--yellow); background: #0b0d0f; color: var(--yellow); font: 11px/1.5 var(--mono); }
.seg { display: inline-flex; gap: 0; padding: 4px 7px; border: 0; background: rgba(248,248,245,.72); box-shadow: 0 1px 0 #fff inset, 0 4px 16px -4px rgba(0,0,0,.22); backdrop-filter: blur(7px); }
.seg-btn { min-height: 39px; min-width: 88px; padding: 7px 38px 7px 18px; border: 0; border-right: 2px solid #d2d4d1; position: relative; background: transparent; color: #262a2d; cursor: pointer; font: 700 13px/1 var(--display-cjk); transition: .18s ease; }
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { color: #08090a; background: rgba(224,226,223,.55); }
.seg-btn.active { background: #dedfdd; color: #08090a; box-shadow: 0 1px 0 #fff inset; }
.seg-btn.active::after { content: "›"; position: absolute; right: 9px; top: 50%; width: 25px; height: 25px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; background: #fff; color: #33383c; font: 700 23px/.8 var(--latin); box-shadow: 0 2px 7px rgba(0,0,0,.12); }
.check { display: inline-flex; align-items: center; gap: 7px; color: #c4c8cc; cursor: pointer; font-size: 12px; }
.check input { width: 15px; height: 15px; accent-color: var(--yellow); }

/* data modules */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.stat-card {
  min-height: 112px;
  padding: 18px 18px 15px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f8f5 0 76%, #e1e2df 76%);
  color: var(--ink);
  border: 1px solid #fff;
  border-left: 5px solid var(--yellow);
  box-shadow: var(--shadow-panel);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
.stat-card::after { content: ""; position: absolute; right: 10px; top: 11px; width: 44px; height: 5px; background: repeating-linear-gradient(90deg,#111 0 2px,transparent 2px 6px); opacity: .3; }
.stat-card .lbl { color: #555b61; font: 700 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stat-card .num { margin-top: 11px; font: 700 38px/.9 var(--numeric); letter-spacing: -.08em; }
.stat-card .num.hl-green { color: #2c8a25; }
.stat-card .num.hl-red { color: #c63b36; }
.stat-card .num.hl-blue { color: #0a0b0d; }
.filter-bar { margin-bottom: 16px; }
.task-list { display: flex; flex-direction: column; gap: 13px; }
.task-item {
  display: flex; align-items: center; gap: 15px;
  min-height: 78px;
  padding: 14px 18px;
  position: relative;
  border: 1px solid #343a40;
  border-left: 4px solid #575e65;
  background: rgba(25,28,32,.94);
  color: #e8eae7;
  box-shadow: 0 8px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  transition: .14s ease;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.task-item:hover { border-left-color: var(--yellow); background: #20242a; transform: translateX(3px); box-shadow: -3px 0 0 rgba(255,244,79,.28), 0 12px 24px rgba(0,0,0,.3); }
.task-item.done { opacity: .66; border-left-color: #5e646b; }
.task-item.done .t-title { text-decoration: line-through; color: #8e949a; }
.t-check { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid #858b91; border-radius: 50%; background: #0e1012; color: transparent; cursor: pointer; box-shadow: 0 0 0 4px rgba(133,139,145,.14), inset 0 0 0 3px #0e1012; }
.task-item.done .t-check { border-color: var(--yellow); background: var(--yellow); color: #000; }
.t-main { flex: 1; min-width: 0; }
.t-title { font-size: 15px; font-family: var(--display-cjk); font-weight: 700; letter-spacing: -.015em; }
.t-meta { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 8px; border: 1px solid #61676e; background: #20242a; color: #c5c9cd; font: 700 9px/1 var(--mono); letter-spacing: .04em; }
.tag.high, .tag.overdue { border-color: #8d3936; background: #301918; color: #ff8580; }
.tag.medium { border-color: var(--yellow-2); background: rgba(255,244,79,.1); color: var(--yellow); }
.tag.low { color: #9aa0a7; }
.tag.status { border-color: #555b62; }
.tag.project { border-style: dashed; border-color: #8b8437; color: #dcd770; }
.rarity-stars { display: inline-flex; align-items: center; gap: 1px; min-height: 20px; padding: 2px 5px; border-left: 1px solid currentColor; }
.rarity-stars i { width: 11px; height: 11px; display: block; background: url("../assets/official/star.c078a0a7.png") center / contain no-repeat; opacity: .82; }
.rarity-stars.compact i { width: 9px; height: 9px; }
.priority-high .rarity-stars i { filter: sepia(1) saturate(7) brightness(1.04); opacity: 1; }
.priority-medium .rarity-stars i { filter: contrast(1.35); }
.priority-low .rarity-stars i { opacity: .48; }
.t-actions { display: flex; gap: 5px; }
.icon-btn { min-width: 36px; height: 36px; padding: 0 7px; border: 1px solid #767c82; border-radius: 50%; background: rgba(255,255,255,.06); color: #999fa5; cursor: pointer; font: 700 7px/1 var(--display-wide); letter-spacing: .03em; box-shadow: 0 2px 8px rgba(0,0,0,.14); transition: .16s ease; }
.icon-btn:hover { border-color: var(--yellow); color: var(--yellow); background: #0d0f11; transform: translateY(-2px); box-shadow: 0 5px 13px rgba(0,0,0,.26), 0 0 0 3px rgba(255,244,79,.12); }
.t-subs { margin-top: 10px; padding-left: 13px; border-left: 2px solid var(--yellow); list-style: none; color: #9fa4aa; font-size: 12px; }

.board-stats { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 13px; margin-bottom: 26px; }
.chart-card, .kanban-col, .split, .project-detail, .report-main, .gh-grid, .settings-grid { box-shadow: var(--shadow-panel); }
.chart-card { padding: 17px 19px; background: var(--panel); color: var(--ink); border: 1px solid #fff; border-top: 4px solid var(--yellow); }
.chart-card.wide { grid-column: span 2; }
.chart-title { margin-bottom: 12px; padding-bottom: 9px; position: relative; border-bottom: 1px solid #a4a7a8; color: #101214; font: 800 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chart-title::before { content: ""; position: absolute; left: 0; bottom: -2px; width: 42px; height: 3px; background: var(--yellow); }
.chart-title::after { content: "// DATA"; float: right; color: #9b9da0; font-size: 7px; }
.chart { height: 200px; }
.chart.tall { height: 420px; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kanban-col { min-height: 330px; padding: 14px; background: rgba(22,25,29,.96); border: 1px solid #3e444b; border-top: 4px solid #5f666d; }
.kanban-col:nth-child(2) { border-top-color: var(--yellow); }
.kanban-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; padding: 4px 2px 12px; border-bottom: 1px solid #3c4248; color: #dfe1de; font: 800 10px/1 var(--mono); letter-spacing: .1em; }
.kanban-head::before { content: ""; width: 8px; height: 8px; border: 1px solid #7c8288; }
.kanban-head.doing::before { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 9px rgba(255,244,79,.55); }
.kanban-head.done::before { background: #70767c; }
.kanban-head .count { margin-left: auto; min-width: 24px; padding: 4px 6px; background: #090b0d; color: var(--yellow); text-align: center; }
.kanban-body { display: flex; flex-direction: column; gap: 9px; }
.kan-card { padding: 11px 12px; position: relative; overflow: hidden; border: 1px solid #3a4046; border-left: 3px solid #626970; background: #20242a; color: #e5e7e4; cursor: grab; box-shadow: 0 7px 14px rgba(0,0,0,.22); }
.kan-card > * { position: relative; z-index: 1; }
.kan-card.priority-high::after { content: ""; position: absolute; right: -30px; bottom: -18px; width: 140px; height: 58px; background: url("../assets/official/core_cn.59b1fff7.png") center / contain no-repeat; opacity: .16; pointer-events: none; }
.kan-card:hover { border-left-color: var(--yellow); background: #282d33; }
.kan-card.dragging { opacity: .48; }
.kan-card.drag-over { border-color: var(--yellow); }
.kan-card .k-title { font-size: 13px; font-weight: 700; }
.kan-card .k-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.k-meta .due { color: #959ba2; font: 9px/1 var(--mono); }
.k-meta .due.over { color: #ff7772; }
.kan-col-hint { color: #656b72; text-align: center; padding: 24px 0; font: 10px/1.5 var(--mono); }

/* split surfaces and content */
.split { display: grid; grid-template-columns: 320px 1fr; align-items: start; border: 1px solid #fff; }
.split-left { min-height: 520px; padding: 14px; border-right: 1px solid #9fa2a4; background: #e9eae7; color: #111; }
.split-left .input { width: 100%; background: #fff; color: #111; border-color: #777; box-shadow: inset 0 1px 4px #ccc; }
.lit-list { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; margin-top: 11px; }
.lit-item { padding: 10px 11px; border: 1px solid transparent; border-left: 3px solid transparent; cursor: pointer; }
.lit-item:hover { border-left-color: var(--yellow-2); background: #fff; }
.lit-item.active { border-color: #111; border-left-color: var(--yellow); background: #111418; color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.lit-item .l-title { font-weight: 750; font-size: 13px; }
.lit-item .l-meta { margin-top: 4px; color: #6c7074; font-size: 11px; }
.lit-item.active .l-meta { color: #aaaeb2; }
.lit-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.split-right { min-height: 520px; padding: 24px 27px; background: #f7f7f4; color: #111; }
.lit-detail h2 { margin-bottom: 6px; font-size: 25px; line-height: 1.12; }
.lit-detail .ld-meta { margin-bottom: 14px; color: #686c70; font: 11px/1.5 var(--mono); }
.lit-detail .ld-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.pdf-attachment { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 12px 0; padding: 10px 12px; border-left: 5px solid #e80016; background: #e9e9e5; color: #24282b; }
.pdf-attachment b { padding: 4px 7px; background: #17191b; color: #fff; font: 700 9px/1 var(--display-wide); letter-spacing: .08em; }
.pdf-attachment span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pdf-attachment small { color: #686d70; font: 10px/1 var(--mono); }
.lit-agent-progress { margin: -4px 0 17px; padding: 12px 14px; border: 1px solid #73777a; border-left: 5px solid var(--yellow-2); background: #e7e7e3; }
.lit-agent-progress > div { display: flex; justify-content: space-between; color: #323639; font-size: 12px; }
.lit-agent-progress > div b { font: 700 11px/1 var(--numeric); }
.lit-agent-progress > span { display: block; height: 6px; margin-top: 9px; overflow: hidden; background: #bbbeba; }
.lit-agent-progress > span i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #14e8a6 0 38%, #ff27c9 38% 63%, var(--yellow) 63%); transition: width .35s ease; }
.summary-box { padding: 17px 18px; border: 1px solid #989b9d; border-left: 5px solid var(--yellow); background: #fff; box-shadow: 5px 5px 0 #d5d5d2, 7px 7px 0 rgba(255,244,79,.6); }
.summary-box h4 { margin: 13px 0 5px; padding-bottom: 4px; border-bottom: 1px solid #bbb; font: 800 10px/1 var(--mono); letter-spacing: .08em; }
.summary-box h4:first-child { margin-top: 0; }
.summary-box p, .summary-box li { font-size: 13px; line-height: 1.75; }
.summary-box ul { padding-left: 18px; }
.empty-tip { padding: 70px 18px; color: #777d83; text-align: center; font: 11px/1.7 var(--mono); }
textarea.summary-edit { width: 100%; min-height: 260px; resize: vertical; }

.project-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 12px; margin-bottom: 25px; }
.project-card { min-height: 135px; padding: 18px; position: relative; overflow: hidden; border: 1px solid #fff; border-top: 4px solid var(--yellow); background: #efefec; color: #111; cursor: pointer; box-shadow: var(--shadow-panel); }
.project-card::after { content: ""; position: absolute; right: -27px; bottom: -27px; width: 78px; height: 78px; border: 1px solid #bbb; transform: rotate(45deg); }
.project-card:hover { background: #fff; transform: translateY(-2px); }
.project-card.active { background: var(--yellow); }
.project-card .p-name { font-size: 17px; font-weight: 900; }
.project-card .p-path { margin-top: 5px; color: #656a6f; word-break: break-all; font: 10px/1.5 var(--mono); }
.project-card .p-desc { margin-top: 8px; color: #41464b; font-size: 12px; }
.project-card .p-meta { display: flex; gap: 7px; margin-top: 11px; }
.project-card .tag { background: #fff; color: #111; border-color: #888; }
.project-detail { padding: 20px 22px; border: 1px solid #fff; border-top: 5px solid var(--yellow); background: #f3f3f0; color: #111; }
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #9da0a2; flex-wrap: wrap; }
.detail-head h2 { font-size: 21px; }
.detail-actions { margin-left: auto; display: flex; gap: 8px; }
.project-grid { display: grid; grid-template-columns: 1.5fr 1fr; }
.graph-panel, .tree-panel { padding: 14px 16px; border: 1px solid #999; background: #fff; }
.tree-panel { border-left: 0; }
.tree { max-height: 380px; overflow-y: auto; font: 11px/1.8 var(--mono); }
.tree .tr-dir { font-weight: 800; cursor: pointer; }
.tree .tr-file { color: #4d5257; cursor: pointer; }
.tree .tr-line:hover { background: #fffda6; }
.file-preview { max-height: 200px; overflow-y: auto; margin-top: 10px; padding: 10px; white-space: pre-wrap; border-left: 3px solid var(--yellow); background: #0b0d0f; color: #dfe2dd; font: 10px/1.6 var(--mono); }

.report-controls { display: flex; gap: 11px; align-items: center; margin-bottom: 19px; flex-wrap: wrap; }
.report-main { display: grid; grid-template-columns: 1fr 285px; border: 1px solid #fff; }
.report-preview { min-height: 480px; max-height: 680px; overflow-y: auto; padding: 28px 32px; border-right: 1px solid #9b9e9f; background: #f6f6f3; color: #111; }
.report-history { background: #e3e4e1; color: #111; }
.report-history .chart-title { margin: 15px; }
.report-list { display: flex; flex-direction: column; }
.report-item { padding: 12px 15px; border-top: 1px solid #b0b2b3; border-left: 3px solid transparent; cursor: pointer; }
.report-item:hover { border-left-color: var(--yellow-2); background: #fff; }
.report-item .r-title { font-weight: 750; font-size: 13px; }
.report-item .r-meta { margin-top: 4px; color: #707478; font: 9px/1.4 var(--mono); }
.markdown { font-size: 13.5px; line-height: 1.75; }
.markdown h1 { margin-bottom: 14px; padding-bottom: 7px; border-bottom: 4px solid #111; font-size: 26px; }
.markdown h2 { margin: 20px 0 10px; padding: 7px 10px; background: #111418; color: var(--yellow); font-size: 16px; }
.markdown h3 { margin: 16px 0 6px; padding-left: 9px; border-left: 3px solid var(--yellow-2); font-size: 14px; }
.markdown ul, .markdown ol { padding-left: 22px; }
.markdown p { margin: 8px 0; }
.markdown blockquote { margin: 8px 0; padding: 7px 14px; border-left: 4px solid var(--yellow-2); background: #fffda8; }
.markdown code { padding: 1px 5px; background: #111418; color: var(--yellow); font: 11px/1 var(--mono); }
.markdown hr { margin: 16px 0; border: 0; border-top: 2px dashed var(--yellow-2); }

.gh-grid { display: grid; grid-template-columns: 1.45fr 1fr; border: 1px solid #fff; }
.gh-panel { min-width: 0; padding: 18px 20px; border-right: 1px solid #9da0a2; border-top: 4px solid var(--yellow); background: #f2f2ef; color: #111; }
.gh-panel:last-child { border-right: 0; }
.gh-panel .input { background: #fff; color: #111; border-color: #777; box-shadow: inset 0 1px 4px #ccc; }
.tag-cloud, .repo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag-cloud .tag { border: 1px solid #333; background: #111418; color: var(--yellow); }
.gh-rate { margin-top: 8px; color: #74787c; font: 9px/1.4 var(--mono); }
.gh-weekly-summary { margin-top: 12px; }
.gh-weekly-summary:empty { display: none; }
.gh-weekly-summary { padding: 15px; border: 1px solid #1d2022; border-left: 6px solid var(--yellow-2); background: #fff; box-shadow: 4px 4px 0 #c8cac7; }
.gh-summary-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 4px solid #17191b; font: 700 10px/1 var(--display-wide); letter-spacing: .06em; }
.gh-summary-head small { color: #6b7073; font: 9px/1 var(--mono); }
.gh-summary-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.gh-summary-metrics > div { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-right: 1px solid #afb2af; background: #ededea; }
.gh-summary-metrics > div:last-child { border-right: 0; }
.gh-summary-metrics b { font: 700 25px/1 var(--numeric); }
.gh-summary-metrics span { color: #555a5d; font-size: 11px; }
.gh-weekly-summary p { margin: 10px 0; color: #4d5255; font-size: 12px; }
.gh-weekly-summary ol { list-style: none; }
.gh-weekly-summary li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #d3d5d2; }
.gh-weekly-summary li b { color: #999d9f; font: 700 10px/1 var(--numeric); }
.gh-weekly-summary li span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gh-weekly-summary li em { color: #464b4e; font: normal 10px/1 var(--mono); }
.repo-list, .release-list { max-height: 520px; overflow-y: auto; margin-top: 12px; border: 1px solid #96999b; }
.repo-item, .release-item { padding: 11px 12px; border-bottom: 1px solid #c4c5c3; border-left: 3px solid transparent; }
.repo-item:hover, .release-item:hover { border-left-color: var(--yellow-2); background: #fff; }
.repo-item .r-head, .release-item .rv-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.repo-item .r-name, .release-item .rv-tag { font-weight: 850; color: #111; }
.repo-item .r-desc, .release-item .rv-body { margin-top: 5px; color: #555a5f; font-size: 12px; line-height: 1.55; }
.repo-item .r-meta, .release-item .rv-date { margin-top: 6px; color: #767a7e; font: 9px/1.4 var(--mono); }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,1fr)); border: 1px solid #fff; }
.settings-card { padding: 21px 23px; border-right: 1px solid #9da0a2; border-top: 4px solid var(--yellow); background: #f1f1ee; color: #111; }
.settings-card:last-child { border-right: 0; }
.settings-card .input { width: 100%; background: #fff; color: #111; border-color: #777; box-shadow: inset 0 1px 4px #ccc; }
.test-result { font: 10px/1.4 var(--mono); }

/* Agent task center */
.task-center-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 106; width: min(860px, calc(100vw - 90px));
  display: flex; flex-direction: column; border-left: 2px solid var(--yellow); background: #eeefeb; color: #15181a;
  transform: translateX(104%); transition: transform .24s cubic-bezier(.2,.82,.2,1);
  box-shadow: -10px 0 0 rgba(0,0,0,.58), -12px 0 0 rgba(255,244,79,.36), -30px 0 60px rgba(0,0,0,.5);
}
.task-center-drawer.open { transform: translateX(0); }
.task-center-head { min-height: 116px; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 7px solid var(--yellow); background: #15181b; color: #fff; }
.task-center-head > div > span { color: var(--yellow); font: 700 9px/1 var(--display-wide); letter-spacing: .16em; }
.task-center-head h2 { margin-top: 7px; font-size: 32px; line-height: 1; }
.task-center-head p { margin-top: 7px; color: #aeb3b5; font-size: 12px; }
.task-center-head .btn-ghost { flex: 0 0 42px; height: 42px; text-align: center; padding: 0; }
.task-center-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #aaa; background: #f8f8f5; }
.task-center-tools .seg-btn { min-width: 80px; padding-right: 28px; }
.task-center-body { min-height: 0; flex: 1; display: grid; grid-template-columns: 310px 1fr; }
.task-center-list { overflow-y: auto; padding: 12px; border-right: 1px solid #a1a4a2; background: #dedfdb; }
.task-center-item { width: 100%; display: grid; gap: 7px; margin-bottom: 9px; padding: 12px; border: 1px solid #a5a8a5; border-left: 4px solid #777; background: #f6f6f2; color: #1a1d1f; text-align: left; cursor: pointer; box-shadow: 2px 3px 0 rgba(28,31,33,.22); }
.task-center-item:hover, .task-center-item.active { border-left-color: var(--yellow-2); background: #fff; transform: translateX(2px); }
.task-center-item.active { border-color: #1b1e20; box-shadow: 3px 4px 0 var(--yellow); }
.task-center-item strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.task-center-item small { overflow: hidden; color: #666b6e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-center-item em { color: #777c7f; font: normal 9px/1 var(--mono); }
.task-state { width: max-content; padding: 4px 7px; border: 1px solid #707579; background: #303438; color: #fff; font: 700 9px/1 var(--mono); letter-spacing: .05em; }
.task-state.done { border-color: #278a4f; background: #dff2e5; color: #176737; }
.task-state.running { border-color: #b7aa00; background: var(--yellow); color: #111; }
.task-state.waiting_confirmation { border-color: #ab9200; background: #fff7a6; color: #3b3500; }
.task-state.needs_input, .task-state.error { border-color: #c74640; background: #ffe3df; color: #a32621; }
.task-state.canceled { background: #e1e2df; color: #686d70; }
.task-mini-progress { display: block; height: 4px; overflow: hidden; background: #c2c5c1; }
.task-mini-progress i { display: block; height: 100%; background: var(--yellow-2); }
.task-center-detail { min-width: 0; overflow-y: auto; padding: 25px 28px 36px; background: linear-gradient(rgba(255,255,255,.82),rgba(245,245,241,.92)), url("../assets/official/pag-button-texture.e4e732ad.png") 110% 15% / 250px no-repeat; }
.task-detail-head { padding-bottom: 16px; border-bottom: 4px solid #171a1c; }
.task-detail-head h3 { margin-top: 12px; font-size: 25px; }
.task-detail-head p { margin-top: 7px; color: #606568; line-height: 1.6; }
.task-detail-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 17px 0 21px; }
.task-detail-progress > span { height: 8px; overflow: hidden; background: #c9cbc8; }
.task-detail-progress i { display: block; height: 100%; background: linear-gradient(90deg,#23e6a4 0 35%,#ff28c7 35% 58%,var(--yellow) 58%); }
.task-detail-progress b { font: 700 16px/1 var(--numeric); }
.task-center-detail section { margin-top: 20px; }
.task-center-detail section > label { display: block; margin-bottom: 9px; padding-left: 8px; border-left: 3px solid var(--yellow-2); color: #676c6f; font: 700 9px/1 var(--display-wide); letter-spacing: .1em; text-transform: uppercase; }
.task-step-timeline { list-style: none; }
.task-step-timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; position: relative; padding: 0 0 18px; }
.task-step-timeline li::before { content: ""; position: absolute; left: 6px; top: 13px; bottom: 0; width: 1px; background: #b5b8b5; }
.task-step-timeline li:last-child::before { display: none; }
.task-step-timeline li > i { width: 13px; height: 13px; margin-top: 2px; border: 2px solid #8a8f91; border-radius: 50%; background: #f6f6f2; z-index: 1; }
.task-step-timeline li.done > i { border-color: #287e4c; background: #4aca7d; }
.task-step-timeline li.running > i { border-color: #111; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,244,79,.3); }
.task-step-timeline b { font-size: 13px; }
.task-step-timeline p { margin-top: 3px; color: #6e7376; font-size: 11px; }
.task-validation { display: grid; gap: 7px; }
.task-validation > div { display: grid; grid-template-columns: 55px 1fr; gap: 9px; padding: 9px 10px; border-left: 4px solid #a5a9a6; background: #e8e9e5; }
.task-validation > div.passed { border-left-color: #33a962; }
.task-validation > div.failed { border-left-color: #d6534b; }
.task-validation b { font: 700 9px/1.4 var(--mono); }
.task-validation span { font-size: 12px; }
.task-result { max-height: 240px; overflow-y: auto; padding: 13px 15px; border: 1px solid #a1a4a2; border-left: 4px solid var(--yellow-2); background: #fff; }
.task-error { padding: 12px 14px; border: 1px solid #d3a19d; background: #fff0ee; color: #8f2924; }
.task-detail-actions { display: flex; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #b5b8b5; }
.task-detail-meta { margin-top: 26px; color: #888d90; font: 9px/1 var(--mono); }

/* Plan review */
.modal.split-plan-modal { width: min(790px, calc(100vw - 60px)); max-height: 88vh; overflow-y: auto; }
.split-plan-kicker { margin: -6px 0 8px; color: #777c80; font: 700 9px/1 var(--display-wide); letter-spacing: .13em; }
.split-plan-context { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; align-items: center; margin-top: 16px; padding: 13px; background: #e5e6e2; }
.split-plan-context .field-label { margin: 0; }
.split-plan-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 9px; padding-bottom: 7px; border-bottom: 3px solid #171a1c; }
.split-step-list { display: grid; gap: 8px; }
.split-step-row { display: grid; grid-template-columns: 34px 1fr 30px 30px 30px; gap: 6px; align-items: center; }
.split-step-row > b { color: #858a8d; font: 700 11px/1 var(--numeric); }
.split-step-row > button { height: 34px; border: 1px solid #777c7f; background: #f6f6f2; cursor: pointer; }
.split-step-row > button:hover { background: #171a1c; color: var(--yellow); }
.split-plan-checks { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.split-plan-checks span { padding: 6px 8px; border: 1px solid #a7aaa7; background: #e8e9e5; font-size: 11px; }
.split-plan-checks .passed { border-left: 4px solid #33a962; }
.split-plan-checks .failed { border-left: 4px solid #d6534b; color: #9a2e29; }
.split-apply-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.split-apply-options label { padding: 10px; border: 1px solid #aaa; background: #ededea; cursor: pointer; font-size: 12px; }
.split-apply-options input { margin-right: 6px; accent-color: #111; }

/* Literature provenance */
.literature-source-badge { width: max-content; margin: 9px 0; padding: 5px 8px; border-left: 4px solid #5077a8; background: #dbe7f2; color: #294a6f; font: 700 9px/1 var(--mono); }
.literature-validation { display: flex; align-items: center; gap: 9px; margin: 9px 0 13px; padding: 9px 11px; border-left: 5px solid #d2b700; background: #eeefeb; }
.literature-validation.passed { border-left-color: #34a963; }
.literature-validation.review { border-left-color: #d4554e; }
.literature-validation b { font: 700 9px/1 var(--mono); }
.literature-validation span { color: #606568; font-size: 11px; }

/* overlays */
.drawer-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.68); backdrop-filter: blur(3px); }
.assistant-drawer { position: fixed; inset: 0 0 0 auto; z-index: 100; width: 420px; display: flex; flex-direction: column; border-left: 2px solid var(--yellow); background: #111418; transform: translateX(105%); transition: transform .22s ease; box-shadow: -12px 0 0 rgba(0,0,0,.55), -14px 0 0 rgba(255,244,79,.28), -28px 0 55px rgba(0,0,0,.62); }
.assistant-drawer.open { transform: translateX(0); }
.drawer-head { min-height: 74px; display: flex; justify-content: space-between; align-items: center; padding: 16px 19px; border-bottom: 5px solid var(--yellow); background: #090b0d; }
.drawer-title { color: #fff; font-size: 16px; font-weight: 900; letter-spacing: -.02em; }
.drawer-sub { margin-top: 3px; color: #888e95; font: 8px/1.4 var(--mono); }
.drawer-head .btn-ghost { flex: 0 0 40px; width: 40px; padding: 0; text-align: center; }
.chat-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 17px; background: radial-gradient(circle at 80% 0,rgba(255,244,79,.06),transparent 35%), #15181c; }
.msg { max-width: 88%; padding: 11px 13px; border: 1px solid #3f454b; border-left: 3px solid #626970; background: #20242a; color: #e7e9e6; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.msg.user { align-self: flex-end; border-color: var(--yellow); background: var(--yellow); color: #08090a; }
.msg.ai { align-self: flex-start; border-left-color: var(--yellow); }
.msg.error { color: #ff9c98; border-color: #8a3734; }
.msg .source-tag { display: inline-block; margin-top: 6px; padding: 2px 6px; background: #090b0d; color: var(--yellow); font: 8px/1 var(--mono); }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 9px 17px 0; }
.chip { padding: 6px 10px; border: 1px solid #4b5158; background: #1b1f23; color: #aeb3b8; cursor: pointer; font-size: 11px; }
.chip:hover { border-color: var(--yellow); color: var(--yellow); }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; padding: 12px 17px; border-top: 1px solid #383e44; }
.chat-input { flex: 1; resize: none; }

.modal-mask { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.modal { width: 470px; max-width: 92vw; max-height: 88vh; overflow-y: auto; padding: 25px 28px; border: 1px solid #fff; border-top: 6px solid var(--yellow); background: #f4f4f1; color: #111; box-shadow: 12px 12px 0 #050607, 15px 15px 0 var(--yellow), 0 28px 70px rgba(0,0,0,.55); }
.modal.wide { width: 650px; }
.modal h3 { margin-bottom: 9px; padding: 0 0 8px 13px; border-left: 4px solid var(--yellow-2); border-bottom: 1px solid #999; font-size: 21px; }
.modal .input { width: 100%; background: #fff; color: #111; border-color: #777; box-shadow: inset 0 1px 4px #ccc; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }

#toastRoot { position: fixed; top: 27px; left: 50%; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; }
.toast { max-width: 480px; padding: 11px 20px; border: 1px solid var(--yellow); border-left: 5px solid var(--yellow); background: #101215; color: #fff; box-shadow: var(--shadow-dark); font: 700 11px/1.5 var(--mono); }
.toast.err { border-color: var(--red); color: #ffb0ac; }
.toast.ok { background: var(--yellow); color: #08090a; }
.loading { padding: 40px 0; color: #6f757c; text-align: center; font: 10px/1.5 var(--mono); }
.spinner { display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: middle; border: 2px solid #40464d; border-top-color: var(--yellow); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* workspace art direction: dense pages use the official light information language */
.main.workspace-light {
  color: #121416;
  background-color: #f4f4f1;
  background-attachment: fixed;
}
.main[data-workspace="tasks"] {
  background:
    linear-gradient(90deg, rgba(248,248,245,.95) 0 83%, rgba(255,244,79,.78) 83% 100%),
    url("../assets/official/deco-right.0602d8cc.jpg") right top / 170px 100% fixed no-repeat,
    url("../assets/official/card-bg.28c79684.jpg") left top / 228px auto repeat;
}
.main[data-workspace="literature"] {
  background:
    linear-gradient(rgba(250,250,247,.9), rgba(246,246,242,.96)),
    url("../assets/official/title_bg.862a2438.png") 82% 76px / 690px auto fixed no-repeat,
    url("../assets/official/card-bg.28c79684.jpg") left top / 250px auto repeat;
}
.main[data-workspace="inspirations"] {
  background:
    linear-gradient(108deg, rgba(249,249,246,.95) 0 72%, rgba(255,244,79,.2)),
    url("../assets/official/ring.5ce6e2bd.png") calc(100% + 250px) -190px / 760px 760px fixed no-repeat,
    url("../assets/official/card-bg.28c79684.jpg") left top / 250px auto repeat;
}
.main[data-workspace="reports"] {
  background:
    linear-gradient(104deg, rgba(249,249,246,.97) 0 68%, rgba(249,249,246,.82)),
    url("../assets/official/triangles.bcbd794a.svg") right 46px / 620px auto fixed no-repeat,
    #f2f2ef;
}
.main[data-workspace="github"] {
  background:
    linear-gradient(rgba(249,249,246,.9), rgba(244,244,240,.96)),
    url("../assets/official/ring.5ce6e2bd.png") calc(100% + 220px) -170px / 760px 760px fixed no-repeat,
    url("../assets/official/card-bg.28c79684.jpg") left top / 250px auto repeat;
}
.main[data-workspace="settings"] {
  background:
    linear-gradient(90deg, rgba(248,248,245,.94), rgba(248,248,245,.82)),
    url("../assets/official/deco.dbe18bea.svg") right top / 760px auto fixed no-repeat,
    #f4f4f1;
}
.main[data-workspace="board"] {
  background:
    linear-gradient(rgba(13,15,18,.86), rgba(13,15,18,.94)),
    url("../assets/official/ring.5ce6e2bd.png") calc(100% + 260px) -230px / 880px 880px fixed no-repeat,
    url("../assets/2_2-20260805_102607143.webp") center top / cover fixed,
    #111316;
}
.main[data-workspace="projects"] {
  background:
    linear-gradient(112deg, rgba(13,15,18,.94) 0 55%, rgba(13,15,18,.7)),
    url("../assets/official/title_bg.862a2438.png") calc(100% + 80px) 76px / 790px auto fixed no-repeat,
    url("../assets/2_2-20260805_102607143.webp") center top / cover fixed,
    #111316;
}
.main.workspace-light::before {
  background:
    radial-gradient(ellipse at 62% 18%, rgba(255,244,79,.2), transparent 40%),
    linear-gradient(rgba(13,16,18,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,16,18,.045) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: .72;
}
.main.workspace-light::after { opacity: .045; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.5); }
.workspace-light .system-bar {
  border-bottom-color: #c5c6c3;
  background: rgba(249,249,246,.92);
  color: #777c80;
  box-shadow: 0 5px 18px rgba(38,42,46,.08);
}
.workspace-light .system-state { color: #202326; }
.workspace-light .page { color: #121416; }
.workspace-light .page-head {
  border-left-color: #25282b;
  border-bottom-color: #8e9295;
  background: linear-gradient(90deg, rgba(255,255,252,.72), transparent 72%);
}
.workspace-light .page-head::before {
  width: 248px;
  height: 5px;
  background: url("../assets/official/color-bar-horizontal.png") left center / 248px 5px no-repeat;
  box-shadow: 258px 0 0 rgba(31,34,37,.16), 266px 0 0 rgba(31,34,37,.08);
}
.workspace-light .page-head h1 { color: #111315; }
.workspace-light .page-sub { color: #62676b; }
.workspace-light .page-head::after { color: #777c80; }
.main[data-workspace="tasks"] .page-head::after { content: "DAILY OPERATIONS / TASK DEPLOYMENT"; }
.main[data-workspace="literature"] .page-head::after { content: "RESEARCH ARCHIVE / REC 03"; }
.main[data-workspace="inspirations"] .page-head::after { content: "IDEA CAPTURE / CREATIVE SIGNAL ARCHIVE"; }
.main[data-workspace="reports"] .page-head::after { content: "DOCUMENT OUTPUT / FIELD LOG"; }
.main[data-workspace="github"] .page-head::after { content: "NETWORK SIGNAL / REPOSITORY INTELLIGENCE"; }
.main[data-workspace="settings"] .page-head::after { content: "SYSTEM CONFIGURATION / LOCAL CORE"; }
.main[data-workspace="board"] .page-head::after { content: "PROGRESS TELEMETRY / LIVE METRICS"; }
.main[data-workspace="projects"] .page-head::after { content: "PROJECT TOPOLOGY / STRUCTURE SCAN"; }

.workspace-light .btn:not(.btn-primary):not(.btn-danger) {
  border-color: #4c5155;
  border-left-color: #24282c;
  background:
    linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.3)),
    url("../assets/official/pag-button-texture.e4e732ad.png") calc(100% + 10px) center / 62px 62px no-repeat,
    rgba(245,245,241,.94);
  color: #16191b;
  box-shadow: 0 1px 0 #fff inset, 3px 4px 0 rgba(18,20,22,.78), 0 9px 18px rgba(45,49,52,.1);
}
.workspace-light .btn:not(.btn-primary):not(.btn-danger):hover { border-color: #111315; background: #111315; color: var(--yellow); }
.workspace-light .input {
  border-color: #777c80;
  border-left-color: #22262a;
  background: rgba(255,255,252,.91);
  color: #111315;
  box-shadow: inset 0 1px 4px rgba(27,30,33,.1), 3px 3px 0 rgba(30,33,36,.1);
}
.workspace-light .input::placeholder { color: #858a8e; }
.workspace-light .seg { background: rgba(255,255,252,.82); box-shadow: 0 1px 0 #fff inset, 0 4px 16px -4px rgba(0,0,0,.2); }
.workspace-light .seg-btn { color: #25292d; border-right-color: #d0d2cf; }
.workspace-light .seg-btn.active { color: #08090a; background: #e0e1df; }
.workspace-light .check { color: #25292c; }
.workspace-light .task-item {
  overflow: hidden;
  border-color: #c8cac7;
  border-left-color: #555b60;
  background:
    linear-gradient(90deg, rgba(255,255,252,.97), rgba(249,249,246,.91)),
    url("../assets/official/pag-button-texture.e4e732ad.png") right center / 75px 75px repeat;
  color: #17191b;
  box-shadow: 0 4px 16px -4px rgba(33,37,40,.18), 0 2px 4px -2px rgba(33,37,40,.12), inset 0 1px 0 #fff;
}
.workspace-light .task-item > * { position: relative; z-index: 1; }
.workspace-light .task-item.priority-high { border-top: 2px solid #df0018; }
.workspace-light .task-item.priority-high::after {
  content: "";
  position: absolute;
  right: 74px; bottom: -12px;
  width: 172px; height: 62px;
  z-index: 0;
  background: url("../assets/official/core_cn.59b1fff7.png") center / contain no-repeat;
  opacity: .22;
  pointer-events: none;
}
.workspace-light .task-item:hover { border-left-color: var(--yellow-2); background-color: #fff; box-shadow: -3px 0 0 var(--yellow), 0 12px 24px rgba(34,38,41,.13); }
.workspace-light .task-item.done .t-title { color: #7b8084; }
.workspace-light .t-check { border-color: #62676b; background: #fff; box-shadow: 0 0 0 4px rgba(98,103,107,.1), inset 0 0 0 3px #fff; }
.workspace-light .tag { border-color: #909498; background: #f1f1ee; color: #303438; }
.workspace-light .tag.medium { border-color: #b4aa00; background: #fff44f; color: #111; }
.workspace-light .tag.high, .workspace-light .tag.overdue {
  border-color: #111;
  background:
    linear-gradient(rgba(146,0,14,.72), rgba(30,10,13,.82)),
    url("../assets/official/core_cn.59b1fff7.png") center / cover no-repeat,
    #8e0010;
  color: #fff;
}
.workspace-light .tag.project { border-color: #908800; color: #4e4a00; }
.workspace-light .icon-btn { color: #62676b; }
.workspace-light .empty-tip, .workspace-light .muted { color: #73787c; }
.workspace-light .loading { color: #666b6f; }

.page-head > div:first-child::before {
  content: "";
  display: block;
  width: 74px; height: 7px;
  margin-bottom: 13px;
  background: repeating-linear-gradient(90deg, #4e5357 0 2px, transparent 2px 9px);
  opacity: .48;
}
.workspace-light .chart-title::before {
  width: 72px;
  background: url("../assets/official/color-bar-horizontal.png") left center / 72px 3px no-repeat;
}
.workspace-light .report-main,
.workspace-light .settings-grid { position: relative; overflow: hidden; }
.workspace-light .report-main::after,
.workspace-light .settings-grid::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 24px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(202,0,20,.86), rgba(202,0,20,.3) 34%, transparent 72%),
    url("../assets/official/core_cn.59b1fff7.png") left bottom / 300px 108px repeat-x;
  opacity: .72;
  mix-blend-mode: multiply;
}
.chart-card::after, .settings-card::after, .gh-panel::after {
  content: "";
  position: absolute;
  right: 13px; top: 13px;
  width: 28px; height: 28px;
  background: url("../assets/official/star.c078a0a7.png") center / contain no-repeat;
  opacity: .2;
  pointer-events: none;
}
.chart-card, .settings-card, .gh-panel { position: relative; }

/* Inspiration archive */
.inspiration-head-stat { min-width: 138px; flex-direction: column; align-items: flex-end; }
.inspiration-head-stat span { font: 700 42px/.8 var(--numeric); color: #111315; }
.inspiration-head-stat small { margin-top: 8px; font: 600 8px/1 var(--display-wide); letter-spacing: .12em; color: #62676b; }
.inspiration-workspace { display: grid; grid-template-columns: minmax(285px, 340px) 1fr; align-items: start; gap: 18px; perspective: 1000px; }
.inspiration-compose { padding: 21px; position: sticky; top: 62px; overflow: hidden; border: 1px solid #fff; border-left: 5px solid var(--yellow); background: rgba(239,240,237,.92); color: #111315; box-shadow: var(--shadow-panel); backdrop-filter: blur(12px); }
.inspiration-compose::after { content: ""; position: absolute; right: -45px; bottom: -45px; width: 180px; height: 180px; background: url("../assets/official/ring.5ce6e2bd.png") center/contain no-repeat; opacity: .09; pointer-events: none; }
.inspiration-compose .input { width: 100%; position: relative; z-index: 1; }
.inspiration-textarea { min-height: 158px; resize: vertical; }
.inspiration-fields { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.inspiration-feed { min-width: 0; padding: 18px; border: 1px solid rgba(40,44,47,.22); background: rgba(255,255,252,.5); backdrop-filter: blur(7px); }
.inspiration-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.inspiration-toolbar .chart-title { flex: 1; }
.inspiration-toolbar .input { width: min(290px, 42%); }
.inspiration-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; }
.inspiration-card { min-height: 220px; display: flex; flex-direction: column; padding: 17px 18px 14px; position: relative; overflow: hidden; border: 1px solid #c7c9c6; border-top: 4px solid var(--yellow); background: rgba(255,255,252,.92); color: #141719; box-shadow: 0 4px 16px -4px rgba(25,29,31,.18), 0 2px 4px -2px rgba(25,29,31,.12); clip-path: polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,11px 100%,0 calc(100% - 11px)); transition: transform .18s ease, box-shadow .18s ease; }
.inspiration-card::after { content: ""; position: absolute; right: -32px; top: 34px; width: 130px; height: 130px; background: url("../assets/official/pag-button-texture.e4e732ad.png") center/78px repeat; opacity: .06; pointer-events: none; }
.inspiration-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -10px rgba(25,29,31,.28), 5px 6px 0 rgba(255,244,79,.42); }
.inspiration-card-top { display: flex; justify-content: space-between; gap: 10px; font: 600 8px/1 var(--display-wide); letter-spacing: .08em; color: #71767a; }
.idea-mood { padding: 4px 7px; background: #202428; color: var(--yellow); }
.inspiration-card h3 { margin-top: 22px; padding-right: 24px; font-size: 18px; line-height: 1.25; }
.inspiration-card p { flex: 1; margin-top: 10px; color: #53585c; font-size: 12px; line-height: 1.72; white-space: pre-wrap; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.idea-tags span { padding: 3px 7px; border: 1px solid #9ea19e; background: #efefec; font: 600 8px/1 var(--display-wide); color: #383d41; }
.inspiration-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 9px; border-top: 1px solid #c4c6c3; }
.inspiration-card time { font: 500 8px/1 var(--numeric); color: #767b7f; }
.inspiration-card .icon-btn { width: 32px; height: 32px; min-width: 32px; }
.inspiration-empty { grid-column: 1/-1; min-height: 300px; display: grid; place-items: center; }

/* Official type roles */
h2, h3, h4, .drawer-title, .project-card .p-name, .detail-head h2,
.lit-detail h2, .modal h3 { font-family: var(--display-cjk); font-weight: 700; }
.chart-title, .stat-card .lbl, .field-label, .tag, .drawer-sub,
.system-id, .kanban-head { font-family: var(--display-wide); }
.t-meta, .p-path, .ld-meta, .r-meta, .rv-date { font-family: var(--latin); }

/* TODAY PLAN: official yellow gameplay rail language */
#page-tasks { min-height: calc(100vh - 68px); }
.main[data-workspace="tasks"] .filter-bar,
.main[data-workspace="tasks"] .task-list { margin-right: clamp(150px, 15vw, 232px); }
.task-side-rail {
  position: absolute;
  top: 263px;
  right: -38px;
  bottom: -56px;
  width: clamp(142px, 14.5vw, 224px);
  min-height: 430px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  color: #090b0d;
  background:
    linear-gradient(90deg, rgba(255,244,79,.9), rgba(255,244,79,.72)),
    url("../assets/official/deco-right.0602d8cc.jpg") center / cover no-repeat;
  border-left: 1px solid rgba(20,23,25,.28);
}
.task-side-title {
  position: absolute;
  top: 30px;
  left: 27px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font: 700 clamp(32px, 3.7vw, 58px)/.82 var(--display-wide);
  letter-spacing: -.035em;
  white-space: nowrap;
  z-index: 1;
}
.task-side-strip {
  position: absolute;
  left: 24px;
  top: 18px;
  bottom: 26px;
  width: 28px;
  z-index: 0;
  background: rgba(255,255,255,.92);
  box-shadow: 1px 0 0 rgba(0,0,0,.1);
}
.task-side-rail small {
  position: absolute;
  left: 61px;
  bottom: 28px;
  font: 600 7px/1.35 var(--display-wide);
  letter-spacing: .06em;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: left bottom;
  z-index: 1;
}

/* Ardot-produced assistant launcher */
.assistant-launcher {
  --assistant-rx: 0deg;
  --assistant-ry: 0deg;
  --avatar-x: 0px;
  --avatar-y: 0px;
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: min(310px, calc(100vw - 36px));
  aspect-ratio: 480 / 144;
  z-index: 48;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 720px;
  transform-style: preserve-3d;
  transform: rotateX(var(--assistant-rx)) rotateY(var(--assistant-ry));
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)) drop-shadow(0 17px 28px rgba(0,0,0,.25));
  transition: transform .18s cubic-bezier(.2,.82,.2,1), filter .22s ease;
}
.assistant-launcher-plate { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; transform: translateZ(0); transition: transform .22s ease, filter .22s ease; }
.assistant-avatar-stage {
  position: absolute;
  left: 2.7%;
  top: 1%;
  width: 22.5%;
  height: 91%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: translate3d(var(--avatar-x), calc(-5px + var(--avatar-y)), 42px) rotateY(-7deg) rotateX(2deg);
  transition: transform .22s cubic-bezier(.2,.82,.2,1), filter .22s ease;
  filter: drop-shadow(0 3px 1px rgba(255,255,255,.48)) drop-shadow(7px 11px 8px rgba(25,29,31,.5));
}
.assistant-avatar-stage::before {
  content: "";
  position: absolute;
  left: 18%; right: 10%; bottom: 6%;
  height: 17%;
  border-radius: 50%;
  background: rgba(16,19,21,.42);
  filter: blur(7px);
  transform: translateZ(-18px) rotateX(70deg);
}
.assistant-avatar-stage::after {
  content: "";
  position: absolute;
  left: 12%; right: 5%; top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,244,79,.82), transparent);
  box-shadow: 0 15px 0 rgba(255,255,255,.17), 0 31px 0 rgba(255,255,255,.12), 0 47px 0 rgba(255,255,255,.08);
  animation: avatarScan 2.8s ease-in-out infinite;
  mix-blend-mode: screen;
}
.assistant-avatar-float {
  display: block;
  width: 70%;
  height: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
  filter: contrast(1.12);
}
.assistant-launcher-live {
  position: absolute;
  left: 30.6%;
  bottom: 27%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255,244,79,.14), 0 0 15px rgba(255,244,79,.74);
  animation: assistantPulse 2.4s ease-in-out infinite;
}
.assistant-launcher:hover { filter: drop-shadow(6px 8px 0 rgba(255,244,79,.3)) drop-shadow(0 24px 30px rgba(0,0,0,.32)); }
.assistant-launcher:hover .assistant-launcher-plate { transform: translate3d(0,-2px,0); filter: brightness(1.03); }
.assistant-launcher:hover .assistant-avatar-stage { transform: translate3d(calc(var(--avatar-x) + 5px), calc(-12px + var(--avatar-y)), 68px) rotateY(-12deg) rotateX(5deg) scale(1.08); filter: drop-shadow(0 3px 1px rgba(255,255,255,.62)) drop-shadow(11px 17px 10px rgba(20,24,26,.58)) drop-shadow(0 0 9px rgba(255,244,79,.22)); }
.assistant-launcher:active { transform: translate3d(1px,2px,0) rotateX(0) rotateY(0); filter: drop-shadow(0 5px 6px rgba(0,0,0,.22)); }
.assistant-launcher:active .assistant-avatar-stage { transform: translate3d(0,-2px,14px) scale(.98); }
.assistant-launcher:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
@keyframes assistantPulse { 0%,100% { opacity: .58; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes avatarScan { 0%,100% { transform: translateY(2px); opacity: .28; } 50% { transform: translateY(48px); opacity: .8; } }

/* Manual sidebar collapse */
.sidebar.collapsed .brand { padding: 18px 9px; justify-content: center; }
.sidebar.collapsed .brand-mark { width: 62px; height: 62px; }
.sidebar.collapsed .brand-code,
.sidebar.collapsed .brand::after,
.sidebar.collapsed::after,
.sidebar.collapsed .nav-item > span:not(.nav-ico),
.sidebar.collapsed .nav-item small,
.sidebar.collapsed .assistant-square-copy,
.sidebar.collapsed .sidebar-foot::before { display: none; }
.sidebar.collapsed .sidebar-toggle { right: 50%; bottom: 9px; transform: translateX(50%); }
.sidebar.collapsed .sidebar-toggle span { transform: translateX(-2px) rotate(225deg); }
.sidebar.collapsed .nav { padding: 19px 10px 13px 17px; gap: 7px; }
.sidebar.collapsed .nav-item { grid-template-columns: 1fr; padding: 0; min-height: 49px; }
.sidebar.collapsed .nav-ico { border-right: 0; }
.sidebar.collapsed .sidebar-foot { margin: 0 10px 13px 17px; padding-top: 8px; border-top: 0; }
.sidebar.collapsed .agent-task-card { min-height: 58px; padding: 7px; border-left-width: 3px; box-shadow: 2px 3px 0 #17191b; }
.sidebar.collapsed .agent-task-head { justify-content: center; }
.sidebar.collapsed .agent-task-head > span,
.sidebar.collapsed .agent-task-card > strong,
.sidebar.collapsed .agent-task-card > small { display: none; }
.sidebar.collapsed .agent-task-progress { margin-top: 9px; }
.sidebar.collapsed .assistant-square { width: 58px; border-bottom-width: 4px; box-shadow: 3px 4px 0 #101214, 4px 5px 0 rgba(255,244,79,.5), 0 10px 18px rgba(0,0,0,.25); }
.sidebar.collapsed .assistant-square-orbit { width: 78%; top: 50%; }
.sidebar.collapsed .assistant-square-avatar { width: 52%; top: 13%; }
.sidebar.collapsed .assistant-square .ai-status { right: 5px; top: 5px; width: 7px; height: 7px; }

/* Function-area readability scale */
body { font-size: 15px; }
.btn { font-size: 13px; }
.input, .chat-input, textarea.summary-edit { font-size: 14px; }
.page-sub { font-size: 11px; }
.muted { font-size: 13px; }
.hint { font-size: 12px; }
.field-label { font-size: 10px; }
.tag { font-size: 10px; }
.t-title { font-size: 16px; }
.t-subs, .kan-card .k-title { font-size: 13px; }
.lit-item .l-title, .report-item .r-title { font-size: 14px; }
.lit-item .l-meta, .lit-detail .ld-meta { font-size: 12px; }
.summary-box p, .summary-box li { font-size: 14px; }
.empty-tip { font-size: 12px; }
.project-card .p-desc, .repo-item .r-desc, .release-item .rv-body { font-size: 13px; }
.tree { font-size: 12px; }
.file-preview { font-size: 11px; }
.markdown { font-size: 14.5px; }
.repo-item .r-meta, .release-item .rv-date, .gh-rate { font-size: 10px; }

@media (prefers-reduced-motion: reduce) {
  .nav-item,
  .nav-item::after { transition-duration: .01ms !important; }
  .nav-item.active::after,
  .nav-item.hologram::after,
  .nav-item.departing { animation: none !important; }
  .assistant-launcher,
  .assistant-launcher *,
  .assistant-launcher-live { transition-duration: .01ms !important; animation: none !important; }
  .assistant-square,
  .assistant-square * { transition-duration: .01ms !important; animation: none !important; }
  .page.page-entering * { animation: none !important; }
}

@media (max-width: 1120px) {
  .app:not(.sidebar-collapsed) { --sidebar-width: 210px; }
  .main { padding-left: 26px; padding-right: 26px; }
  .main::before { left: var(--sidebar-width); }
  .system-bar { margin-left: -26px; margin-right: -26px; padding-left: 26px; padding-right: 26px; }
  .nav-item small { display: none; }
  .board-stats { grid-template-columns: 1fr 1fr; }
  .chart-card.wide { grid-column: span 2; }
  .input.ai-add-input { width: 300px; }
  .task-side-rail { right: -26px; }
  .inspiration-workspace { grid-template-columns: 300px 1fr; }
}
@media (max-width: 820px) {
  .app { --sidebar-width: 86px; }
  .brand { padding: 18px 14px; justify-content: center; }
  .brand-mark { width: 66px; height: 66px; }
  .brand-code, .brand-text, .nav-item > span:not(.nav-ico), .nav-item small, .sidebar::after { display: none; }
  .nav { padding-left: 17px; padding-right: 10px; }
  .nav-item { grid-template-columns: 1fr; padding: 0; }
  .nav-ico { border: 0; }
  .sidebar-foot { margin-left: 17px; margin-right: 10px; }
  .sidebar-aux-label { display: none; }
  .main::before { left: var(--sidebar-width); }
  .page-head { align-items: flex-start; flex-direction: column; }
  .stat-strip, .kanban, .gh-grid, .settings-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 250px 1fr; }
  .project-grid, .report-main { grid-template-columns: 1fr; }
  .report-preview, .tree-panel { border: 0; border-top: 1px solid #999; }
  .task-side-rail { display: none; }
  .main[data-workspace="tasks"] .filter-bar,
  .main[data-workspace="tasks"] .task-list { margin-right: 0; }
  .assistant-launcher { width: 262px; left: 12px; bottom: 12px; }
  .inspiration-workspace { grid-template-columns: 1fr; }
  .inspiration-compose { position: relative; top: 0; }
}

/* ============================================================
   v1.4 · 时间规划 / 每日计划 / 运动健身
   ============================================================ */

/* ---------- 时间规划 ---------- */
.time-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.time-grid .wide { grid-column: 1 / -1; }
.pomo-card { min-height: 330px; }
.pomo-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: center; }
.pomo-ring-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.pomo-ring { width: 220px; height: 220px; transform: rotate(-90deg); }
.pomo-ring-track { fill: none; stroke: #e0e1de; stroke-width: 10; }
.pomo-ring-progress { fill: none; stroke: var(--yellow); stroke-width: 10; stroke-linecap: butt; stroke-dasharray: 0 603.2; transition: stroke-dasharray .3s linear; }
.pomo-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.pomo-ring-center strong { font: 700 42px/1 var(--numeric); letter-spacing: -.04em; color: #101214; font-variant-numeric: tabular-nums; }
.pomo-ring-center span { font: 700 10px/1 var(--mono); letter-spacing: .14em; color: #62676b; }
.pomo-controls { display: flex; flex-direction: column; gap: 8px; }
.pomo-controls .field-label { margin-top: 8px; }
.pomo-controls .input[type="number"] { width: 92px; }
.pomo-actions { display: flex; gap: 8px; margin-top: 8px; }
.pomo-meta { font-size: 12.5px; color: #62676b; margin-top: 10px; }
.pomo-meta b { font-family: var(--numeric); font-size: 16px; color: #101214; }
.time-log-card { margin-top: 0; }
.time-log-form { flex-wrap: wrap; }
.time-log-form .input { min-width: 130px; }
.time-log-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.time-log-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #d8d8d3; background: #fff; }
.time-log-dot { width: 10px; height: 10px; flex-shrink: 0; }
.time-log-label { font-weight: 600; font-size: 13px; color: #101214; min-width: 44px; }
.time-log-min { font-family: var(--numeric); font-size: 13px; color: #101214; }
.time-log-src { font: 700 9px/1 var(--mono); letter-spacing: .1em; color: #62676b; background: #f1f1ee; padding: 3px 7px; }
.time-log-note { color: #62676b; font-size: 12px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }

/* ---------- 每日计划 ---------- */
.plan-timeline { display: flex; flex-direction: column; gap: 10px; }
.plan-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid #d8d8d3; border-left: 4px solid var(--yellow);
  background: #fff; transition: all .15s;
}
.plan-item:hover { box-shadow: 0 8px 20px rgba(20,24,28,.1); }
.plan-item.done { opacity: .6; border-left-color: #9b9fa5; }
.plan-item.done .plan-item-title { text-decoration: line-through; color: #7b8084; }
.plan-item-time { display: flex; flex-direction: column; min-width: 58px; gap: 3px; padding-top: 2px; }
.plan-item-time b { font: 700 15px/1 var(--numeric); color: #101214; }
.plan-item-time span { font: 500 11px/1 var(--numeric); color: #7b8084; }
.plan-item-main { flex: 1; min-width: 0; }
.plan-item-title { font-weight: 600; font-size: 14.5px; color: #101214; }
.plan-item-note { font-size: 12.5px; color: #62676b; margin-top: 4px; }
.plan-item-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.plan-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.plan-item-actions .icon-btn { border: 1px solid transparent; }
.plan-item-actions .icon-btn:hover { border-color: #101214; background: var(--yellow); }
.plan-week-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.plan-week-nav span { font: 700 13px/1 var(--numeric); color: #101214; margin: 0 4px; }
.plan-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.plan-week-col { border: 1px solid #d8d8d3; border-top: 4px solid #e2e2dd; background: #fff; min-height: 180px; display: flex; flex-direction: column; }
.plan-week-col.today { border-top-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.plan-week-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-bottom: 1px solid #e2e2dd; font: 600 11px/1 var(--numeric); color: #62676b; }
.plan-week-head b { font: 700 12px/1 var(--numeric); color: #101214; }
.plan-week-items { padding: 8px 9px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.plan-week-item { display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; background: #f6f6f3; border-left: 2px solid var(--yellow); font-size: 11.5px; }
.plan-week-item.done { opacity: .5; }
.plan-week-item.done .pw-title { text-decoration: line-through; }
.pw-time { font: 500 10px/1 var(--numeric); color: #7b8084; }
.pw-title { color: #101214; }
.pw-empty { color: #a3a6a8; font-size: 11px; padding: 6px 4px; }
.pw-more { color: #62676b; font-size: 10.5px; padding: 2px 4px; }

/* ---------- 运动健身 ---------- */
.fit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.fit-plan-list { display: flex; flex-direction: column; gap: 10px; }
.fit-plan-item { border: 1px solid #d8d8d3; border-left: 4px solid var(--yellow); background: #fff; padding: 14px 16px; }
.fit-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fit-plan-name { font-weight: 700; font-size: 15px; color: #101214; }
.fit-plan-meta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; font-size: 12.5px; color: #62676b; }
.fit-plan-meta b { font-family: var(--numeric); color: #101214; }
.fit-plan-meta b.ok { color: #22a06b; }
.fit-plan-note { font-size: 12.5px; color: #62676b; margin-top: 8px; }
.fit-plan-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.fit-recent-list { display: flex; flex-direction: column; gap: 0; }
.fit-day-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px dashed #d8d8d3; font: 600 12px/1 var(--numeric); color: #101214; }
.fit-day-row.empty { color: #a3a6a8; }
.fit-day-info { font-size: 11.5px; color: #62676b; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* AI 助手动作预览确认按钮区 */
.chat-confirm { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border, #d8d8d3); }

/* 小尺寸按钮（AI 确认卡片） */
.btn-sm { padding: 6px 14px; font-size: 12.5px; }

/* ============ AI 助手会话管理（S1） ============ */
.drawer-actions { display: flex; gap: 2px; margin-right: 2px; }
.btn-xs { padding: 3px 7px; font-size: 12px; line-height: 1.4; }
.assistant-local-hint { font: 500 10px/1 var(--mono); letter-spacing: .06em; color: #9a9f93; background: #f1f1ee; padding: 5px 12px; border-bottom: 1px solid #e2e2dd; }
.assistant-session-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.assistant-session-actions { display: flex; gap: 8px; margin-bottom: 6px; }
.assistant-session-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #d8d8d3; border-left: 4px solid var(--yellow); background: #fff; }
.assistant-session-row.active { box-shadow: 0 0 0 1px var(--yellow); }
.as-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.as-info b { font-size: 13px; color: #101214; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.as-info span { font: 500 10.5px/1 var(--numeric); color: #7b8084; }
.as-btns { display: flex; gap: 4px; flex-shrink: 0; }
.as-btns .btn.danger { color: #a32d2d; border-color: #d8d8d3; }
.as-btns .btn.danger:hover { background: #fcebeb; border-color: #a32d2d; }
.as-empty { color: #a3a6a8; font-size: 12.5px; padding: 14px 4px; text-align: center; }
.chat-clarify { display: flex; gap: 8px; margin-top: 12px; }
.chat-clarify .input { flex: 1; }

/* 健身计划一周安排（schedule） */
.fit-plan-schedule { margin-top: 10px; border-top: 1px dashed #d8d8d3; padding-top: 8px; }
.fit-plan-schedule-title { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: #62676b; margin-bottom: 6px; }
.fit-plan-schedule-items { display: flex; flex-wrap: wrap; gap: 4px; }
.fit-plan-schedule-items span { display: inline-flex; gap: 5px; align-items: center; padding: 3px 7px; background: #f6f6f3; border: 1px solid #e2e2dd; font-size: 11px; color: #101214; }
.fit-plan-schedule-items span i { font-style: normal; color: #62676b; }

/* ============ Agent 处理过程折叠块 ============ */
.agent-trace { margin-top: 12px; border: 1px solid #d8d8d3; background: #fafaf7; }
.agent-trace summary { cursor: pointer; padding: 8px 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .05em; color: #62676b; list-style: none; display: flex; align-items: center; gap: 6px; user-select: none; }
.agent-trace summary::-webkit-details-marker { display: none; }
.agent-trace summary:hover { background: #f3f3ef; }
.agent-trace[open] summary { border-bottom: 1px dashed #d8d8d3; color: #3b3d3c; }
.trace-icon { display: inline-block; transition: transform .15s; font-size: 9px; }
.agent-trace[open] .trace-icon { transform: rotate(90deg); }
.trace-body { padding: 6px 12px 10px; }
.trace-step { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #ecebe6; font-size: 12px; line-height: 1.5; }
.trace-step:last-child { border-bottom: none; }
.trace-step b { flex-shrink: 0; font-weight: 500; color: #3b3d3c; min-width: 150px; }
.trace-step span { color: #7b8084; word-break: break-all; font-family: var(--mono); font-size: 11px; }

/* Markdown 多行代码块（AI 回答中的 ``` 围栏） */
.markdown pre.code-block { margin: 8px 0; padding: 10px 12px; border: 1px solid #3f454b; border-left: 3px solid var(--yellow); background: #0b0d0f; color: #dfe2dd; font: 11px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.markdown .code-lang { display: inline-block; margin-bottom: 6px; padding: 1px 6px; background: #20242a; color: var(--yellow); font-size: 9px; letter-spacing: .06em; border: 1px solid #3f454b; }

/* ============ GitHub 订阅分栏 + 官网热榜（v1.5 改版） ============ */
.gh-subs-panel { display: flex; flex-direction: column; }
.gh-subs-panel .chart-title small { font-family: var(--mono); color: #6b7073; letter-spacing: .04em; }
.gh-split { flex: 1; min-height: 340px; margin-top: 10px; }
.gh-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.gh-tab { padding: 4px 12px; border: 1px solid #9da0a2; background: #e7e7e3; color: #555a5d; font: 600 11px/1.5 var(--mono); letter-spacing: .05em; cursor: pointer; }
.gh-tab.active { background: #111418; color: var(--yellow); border-color: #111418; box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.gh-search { width: 100%; margin-bottom: 8px; }
.lit-item { position: relative; cursor: pointer; }
.lit-item.active { border-left-color: var(--yellow-2); background: #fff; box-shadow: 0 0 0 1px var(--yellow); }
.lit-item .lit-title { display: flex; align-items: center; gap: 6px; }
.lit-del { margin-left: auto; padding: 0 4px; color: #9a9f93; cursor: pointer; font-size: 11px; }
.lit-del:hover { color: #a32d2d; }
.gh-detail-empty { padding: 26px 10px; text-align: center; color: #a3a6a8; font-size: 12.5px; }
.gh-detail-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 4px solid #17191b; }
.gh-detail-head h3 { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; color: #464b4e; font-size: 12px; }
.gh-detail-body { color: #4d5255; font-size: 12.5px; line-height: 1.7; }
.gh-detail-actions { display: flex; gap: 8px; margin-top: 14px; }
.gh-detail-actions .btn.danger { color: #a32d2d; border-color: #9da0a2; }
.gh-detail-actions .btn.danger:hover { background: #fcebeb; border-color: #a32d2d; }
.gh-add-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #c4c5c3; }
.gh-source { min-height: 20px; margin-top: 8px; }
.source-badge { display: inline-block; padding: 3px 8px; border: 1px solid #333; background: #111418; color: var(--yellow); font: 700 9px/1 var(--mono); letter-spacing: .07em; }
.source-badge.mock { border-color: #9da0a2; background: #e7e7e3; color: #555a5d; }
.gh-lang-input { flex: 1; }
.gh-since { width: auto; }

/* ============ 文献中心：三栏 + 分类树 + 关联图谱 ============ */
.lit-split3 {
  display: grid;
  grid-template-columns: var(--lit-tree-w, 210px) 12px var(--lit-list-w, 1fr) 12px var(--lit-detail-w, 40%);
  min-height: 60vh;
}
.lit-split3 .split-left, .lit-split3 .split-right { min-width: 0; }
.lit-split3 .lit-col { min-width: 0; overflow: hidden; }
/* 拖拽分隔条 */
.lit-divider { cursor: col-resize; background: #d8d8d3; border-left: 1px solid #b9bcb8; border-right: 1px solid #b9bcb8; transition: background .15s; position: relative; }
.lit-divider::after { content: '⋮'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #9a9f93; font-size: 11px; line-height: 1; pointer-events: none; }
.lit-divider:hover::after, body.lit-resizing .lit-divider::after { color: #111; }
.lit-divider:hover, body.lit-resizing .lit-divider { background: var(--yellow-2); }
body.lit-resizing { user-select: none; cursor: col-resize; }
/* 折叠：栏收为窄条，仅显示竖排标题 */
.lit-col .lit-list-head, .lit-col .lit-detail-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font: 700 11px/1 var(--mono); letter-spacing: .06em; color: #464b4e; border-bottom: 1px solid #d3d5d2; background: #ededea; }
.lit-col .lit-col-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lit-col-ops { display: flex; gap: 4px; align-items: center; }
.lit-collapse-btn { border: 1px solid #9da0a2; background: #fff; color: #555a5d; font-size: 11px; line-height: 1; width: 24px; height: 24px; padding: 0; cursor: pointer; flex-shrink: 0; }
.lit-collapse-btn:hover { background: var(--yellow); color: #111; }
.lit-col.collapsed { overflow: hidden; }
.lit-col.collapsed .lit-list-head, .lit-col.collapsed .lit-detail-head, .lit-col.collapsed .col-tree-head { justify-content: center; padding: 0; border-bottom: 0; min-height: 34px; }
.lit-col.collapsed .lit-col-title { display: none; }
.lit-col.collapsed > :not(.lit-list-head, .lit-detail-head, .col-tree-head) { display: none; }
.lit-col-tree.collapsed { border-right: 1px solid #9da0a2; }
/* 文献字号三档（data-lit-font: small | medium | large） */
#page-literature { --lit-scale: 1; }
#page-literature[data-lit-font="small"] { --lit-scale: 0.875; }
#page-literature[data-lit-font="large"] { --lit-scale: 1.125; }
#page-literature .lit-list .l-title { font-size: calc(13px * var(--lit-scale)); }
#page-literature .lit-list .l-meta { font-size: calc(11px * var(--lit-scale)); }
#page-literature .tree .col-node { font-size: calc(12px * var(--lit-scale)); }
#page-literature .summary-box p, #page-literature .summary-box li { font-size: calc(13px * var(--lit-scale)); }
#page-literature .lit-detail h2 { font-size: calc(25px * var(--lit-scale)); }
@media (max-width: 820px) {
  .lit-divider { display: none; }
  .lit-split3 { grid-template-columns: 210px 1fr 40%; }
}
.lit-col-tree { border-right: 1px solid #9da0a2; background: #f1f1ee; padding: 10px 8px; overflow-y: auto; }
.col-tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font: 700 11px/1 var(--mono); letter-spacing: .07em; color: #464b4e; }
.col-tree-head .btn-xs { padding: 2px 7px; font-size: 11px; }
.tree .col-node { display: flex; align-items: center; gap: 4px; padding: 3px 4px; cursor: pointer; font-size: 12px; color: #33373a; border-left: 2px solid transparent; user-select: none; }
.tree .col-node:hover { background: #e6e6e1; }
.tree .col-node.active { background: #fff; border-left-color: var(--yellow-2); box-shadow: 0 0 0 1px var(--yellow); }
.tree .col-node .col-caret { width: 12px; font-size: 9px; color: #8a8f85; text-align: center; flex-shrink: 0; }
.tree .col-node .col-count { margin-left: auto; color: #9a9f93; font: 9px/1 var(--mono); }
.col-node .col-edit, .col-node .col-del { display: none; font-size: 10px; color: #8a8f85; padding: 0 3px; }
.col-node:hover .col-edit, .col-node:hover .col-del { display: inline; }
.col-node .col-del:hover { color: #a32d2d; }
.col-badge-readonly { padding: 1px 5px; border: 1px solid #9da0a2; color: #6b7073; font: 700 8px/1 var(--mono); letter-spacing: .06em; }
.col-root-group { margin: 8px 0 4px; font: 700 10px/1 var(--mono); letter-spacing: .08em; color: #8a8f85; }
.assign-tree .col-node { padding: 4px 2px; }
.assign-tree .col-node input { margin-right: 6px; }
/* 图谱 */
.lit-graph-view { border: 1px solid #9da0a2; border-top: 4px solid var(--yellow); background: #f2f2ef; padding: 16px; }
.lit-graph-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lit-graph-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 12px; margin-top: 12px; }
.lit-graph-canvas { min-height: 460px; border: 1px solid #96999b; background: #fff; overflow: hidden; position: relative; }
.lit-graph-canvas svg { display: block; width: 100%; height: 460px; }
.lit-graph-side { border: 1px solid #96999b; background: #fff; padding: 12px; overflow-y: auto; max-height: 460px; font-size: 12px; line-height: 1.7; color: #3d4144; }
.graph-node { cursor: pointer; }
.graph-node circle { stroke: #111; stroke-width: 2px; }
.graph-node text { font: 600 10px/1 var(--mono); fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; }
.graph-node:hover circle { stroke: var(--yellow-2); stroke-width: 3px; }
.graph-edge { stroke: #b9bcb8; stroke-width: 1.6px; }
.graph-edge.hl { stroke: var(--yellow-2); stroke-width: 2.6px; }
.lit-graph-side .g-node { padding: 8px; border-bottom: 1px dashed #d8d8d3; cursor: pointer; }
.lit-graph-side .g-node:hover { background: #f6f6f3; }
.lit-graph-side .g-node b { font-size: 12px; color: #111; }
.lit-graph-side .g-node .g-reason { margin-top: 4px; color: #62676b; font-size: 11px; }

.lit-col-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }

/* ============ 日报/周报：历史多选 + 编辑 ============ */
.report-history-head { display: flex; justify-content: space-between; align-items: center; }
.report-history-head .check { font-size: 11px; color: #555a5d; }
.report-item { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.report-item.selected { background: #fff; border-left-color: var(--yellow-2); box-shadow: 0 0 0 1px var(--yellow); }
.report-check { flex-shrink: 0; margin: 0; }
.report-item-body { flex: 1; min-width: 0; }
.report-view-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.report-edit-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.report-edit-head h3 { margin: 0; font-size: 14px; }
.report-edit-area { width: 100%; min-height: 380px; font: 12px/1.7 var(--mono); padding: 12px; border: 1px solid #9da0a2; background: #fff; color: #33373a; }

/* 文献批量管理 */
.lit-bulk-bar { margin-bottom: 8px; align-items: center; font-size: 12px; }
.lit-bulk-bar .check { font-size: 12px; color: #33373a; }
.lit-bulk-bar .btn-sm.danger { color: #a32d2d; border-color: #9da0a2; }
.lit-bulk-bar .btn-sm.danger:hover { background: #fcebeb; border-color: #a32d2d; }
.lit-item { display: flex; gap: 8px; align-items: flex-start; }
.lit-check { flex-shrink: 0; margin-top: 2px; }
.lit-item-body { flex: 1; min-width: 0; }

/* 折叠态微调 */
.lit-col.collapsed .col-tree-head > span:first-child { display: none; }
.lit-col.collapsed .col-tree-head .btn-xs { display: none; }
.lit-col.collapsed .col-tree-head, .lit-col.collapsed .lit-list-head, .lit-col.collapsed .lit-detail-head { min-height: 26px; }

/* 健身细致条目 */
.fit-day-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #9da0a2; background: #fff; cursor: pointer; font-size: 11px; color: #33373a; }
.fit-day-chip:hover { border-color: var(--yellow-2); }
.fit-day-chip.expanded { background: var(--yellow); border-color: #111; box-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.fit-day-chip i { color: #6b7073; font-style: normal; }
.fit-day-chip em { color: #a32d2d; font: 700 9px/1 var(--mono); font-style: normal; }
.fit-items-box { margin: 8px 0 4px; border: 1px solid #d3d5d2; background: #fafaf7; }
.fit-item-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px dashed #d8d8d3; font-size: 12px; }
.fit-item-row:last-child { border-bottom: 0; }
.fit-item-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4c7c3; flex-shrink: 0; }
.fit-item-dot.done { background: #278a4f; }
.fit-item-dot.skipped { background: #a32d2d; }
.fit-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fit-item-min { color: #8a8f85; font: 9px/1 var(--mono); }
.fit-item-btns { display: inline-flex; gap: 3px; }
.fit-item-btn { border: 1px solid #b9bcb8; background: #fff; color: #8a8f85; font-size: 11px; line-height: 1; padding: 3px 6px; cursor: pointer; }
.fit-item-btn.on { background: var(--yellow); color: #111; border-color: #111; }
.fit-item-note { flex: 1; min-width: 90px; padding: 3px 6px; border: 1px solid #9da0a2; font-size: 11px; }
.fit-item-status { color: #8a8f85; font: 9px/1 var(--mono); }

/* ============ 桌面宠物（塞西） ============ */
.pet-fab { position: fixed; right: 24px; bottom: 24px; z-index: 85; width: 72px; height: 72px; border-radius: 50%; border: 3px solid #111; box-shadow: 0 4px 14px rgba(0,0,0,.35); background-size: cover; background-position: center top; cursor: pointer; transition: transform .18s; padding: 0; }
.pet-fab.left { right: auto; left: 24px; }
.pet-fab:hover { transform: scale(1.07); }
.pet-chat { position: fixed; right: 24px; bottom: 106px; z-index: 95; width: 320px; height: 420px; display: flex; flex-direction: column; border: 2px solid #111; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.32); }
.pet-chat.left { right: auto; left: 24px; }
.pet-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #111418; color: var(--yellow); font: 700 12px/1 var(--mono); letter-spacing: .06em; }
.pet-chat-close { background: none; border: none; color: var(--yellow); cursor: pointer; font-size: 14px; line-height: 1; }
.pet-chat-body { flex: 1; overflow-y: auto; padding: 10px; font-size: 12px; background: radial-gradient(circle at 80% 0,rgba(255,244,79,.06),transparent 35%), #15181c; }
.pet-chat-welcome { color: #6b7073; line-height: 1.7; padding: 6px 2px; }
.pet-chat-body .msg { max-width: 90%; }
.pet-chat-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #383e44; background: #15181c; }
.pet-chat-input .input { flex: 1; background: #1b1f23; border-color: #3f454b; color: #e7e9e6; }
.pet-chat-input .input::placeholder { color: #767c83; }
.pet-chat-input .input:focus { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 0 18px rgba(255,244,79,.1); }
.pet-chat-input .btn { background: #111418; border-color: #3f454b; }

/* echarts 图谱容器（文献关联图谱） */
.lit-graph-canvas > div:first-child { width: 100% !important; height: 460px !important; }

/* 图谱中心聚焦条 */
.lit-graph-focus { min-height: 22px; margin-top: 8px; padding: 5px 10px; border: 1px dashed #b9bcb8; background: #fff; color: #555a5d; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.lit-graph-focus b { color: #111; }
.lit-graph-focus .btn-xs { margin-left: auto; }

/* 细致条目：手动添加区 */
.fit-item-add { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.fit-item-add .input { flex: 1; padding: 4px 8px; font-size: 12px; }

/* GitHub 订阅添加入口置顶 */
.gh-add-row-top { margin: 0 0 10px; padding: 10px; border: 1px solid #9da0a2; background: #f8f8f5; }

/* 塞西拟人过渡语（工具结果/确认卡前的情绪引导） */
.persona-lead { margin-bottom: 8px; padding: 5px 9px; border-left: 3px solid var(--yellow); background: rgba(255,244,79,.08); color: #d8c94a; font-size: 12.5px; line-height: 1.6; }

/* ---------- v1.6.0 每日/每周模板视图 ---------- */
.plan-templates-view { padding: 22px 28px 40px; }
.plan-tpl-hint { padding: 10px 14px; margin-bottom: 18px; background: rgba(255,244,79,.08); border: 1px solid rgba(255,244,79,.35); border-left: 4px solid var(--yellow); color: #4a4d33; font-size: 14px; line-height: 1.7; }
.plan-tpl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan-tpl-col { min-width: 0; }
.plan-tpl-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid #111; margin-bottom: 14px; }
.plan-tpl-head b { font: 800 17px/1 var(--display-cjk); color: #14171a; letter-spacing: .02em; }
.plan-tpl-head small { font: 11px/1 var(--mono); color: #8a9199; }
.plan-tpl-list { display: flex; flex-direction: column; gap: 10px; }
.plan-tpl-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.72); border: 1px solid #c9ccd0; box-shadow: 2px 3px 0 rgba(20,23,26,.12); }
.plan-tpl-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-tpl-info b { font: 700 15px/1.3 var(--display-cjk); color: #14171a; }
.plan-tpl-info span { font-size: 13px; color: #6b7076; }
.plan-tpl-acts { display: flex; gap: 8px; flex: 0 0 auto; }
.plan-src-tag { font-size: 13px; }
@media (max-width: 820px) { .plan-tpl-cols { grid-template-columns: 1fr; } }
