:root {
  --ink: #171813;
  --deep: #171813;
  --panel: #fbf8f0;
  --panel-2: #e8e3d8;
  --line: #bdb6a8;
  --paper: #171813;
  --muted: #625c52;
  --acid: #e9572b;
  --violet: #8c4331;
  --amber: #d99518;
  --red: #c63f32;
  --blue: #246b5a;
  --editorial-white: #f3f0e8;
  --editorial-green: #246b5a;
  --editorial-orange: #e9572b;
  --editorial-orange-ink: #a3381f;
  --editorial-red-ink: #8f2821;
  --editorial-on-dark-muted: #bcb6aa;
  --editorial-on-dark-accent: #ff7952;
  --editorial-ink: #171813;
  --editorial-soft-orange: #f4d8cc;
  --shadow: 9px 9px 0 rgba(23, 24, 19, .12);
  --radius: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--editorial-orange) #ded8cc;
}

*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: #ded8cc; border: 1px solid #cbc4b7; }
*::-webkit-scrollbar-thumb { background: var(--editorial-orange); border: 3px solid #ded8cc; border-radius: 0; }
*::-webkit-scrollbar-thumb:hover { background: var(--editorial-ink); }
*::-webkit-scrollbar-corner { background: #ded8cc; }

html {
  background: var(--editorial-white);
  color: var(--editorial-ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

body {
  color: var(--editorial-ink);
  background:
    linear-gradient(rgba(23, 24, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 19, .025) 1px, transparent 1px),
    radial-gradient(circle at 77% 7%, rgba(233, 87, 43, .09), transparent 25%),
    var(--editorial-white);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .19;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button, input, select, textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(233, 87, 43, .28);
  outline-offset: 2px;
}

.muted { color: var(--muted) !important; }
.eyebrow {
  margin-bottom: 8px;
  color: var(--editorial-orange-ink);
  font: 800 10px/1.2 Consolas, monospace;
  letter-spacing: .16em;
}

.app-shell { grid-template-columns: 214px minmax(0, 1fr); }

.sidebar {
  width: 214px;
  padding: 23px 16px 18px;
  border-right: 0;
  background: var(--editorial-ink);
  box-shadow: 5px 0 0 var(--editorial-orange);
  backdrop-filter: none;
}

.logo {
  justify-items: center;
  align-content: start;
  gap: 8px;
  min-height: 124px;
  margin: 0 0 24px;
  padding: 5px 8px 25px;
  border-bottom: 1px solid rgba(243, 240, 232, .28);
}

.logo::after { display: none; }
.sidebar-brand-mark {
  width: 158px;
  height: 66px;
  margin-left: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
  animation: none;
}

.logo .sidebar-brand-name {
  width: 158px;
  text-align: center;
  color: var(--editorial-white);
  background: none;
  font: 900 25px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.sidebar nav { gap: 5px; }
.sidebar-character-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 218px;
  padding: 12px 2px 10px;
  overflow: hidden;
  pointer-events: none;
}
.sidebar-character-stage .autodev-orb { pointer-events: auto; }
.autodev-orb {
  position: relative;
  display: block;
  width: 122px;
  height: 122px;
  isolation: isolate;
  contain: layout size;
}
.autodev-orb.is-interactive { cursor: pointer; outline: 0; }
.autodev-orb.is-interactive:focus-visible { box-shadow: 0 0 0 2px var(--editorial-on-dark-accent), 0 0 0 6px rgba(255,250,241,.16); }
.autodev-orb::before,
.autodev-orb::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255,250,241,.18);
  border-radius: 50%;
  opacity: 0;
  transition: border-color .4s ease, opacity .4s ease, transform .4s ease;
}
.autodev-orb::before { inset: 5px; border-style: dashed; }
.autodev-orb::after { inset: -5px; border-color: transparent; border-top-color: rgba(240,82,45,.74); border-bottom-color: rgba(240,82,45,.28); }
.autodev-orb.is-running::before { opacity: 1; animation: orb-mechanical-orbit 13s linear infinite; }
.autodev-orb.is-running::after { opacity: 1; animation: orb-mechanical-orbit 8s linear infinite reverse; }
.autodev-orb.is-running[data-state="reading"]::before,
.autodev-orb.is-running[data-state="thinking"]::before { border-color: rgba(255,250,241,.38); animation-duration: 5.5s; }
.autodev-orb.is-running[data-state="working"]::after,
.autodev-orb.is-running[data-state="building"]::after,
.autodev-orb.is-running[data-state="delivering"]::after { border-top-color: #ff7952; border-bottom-color: rgba(255,121,82,.66); animation-duration: 2.4s; }
.autodev-orb.is-running[data-state="blocked"]::before { border-color: rgba(255,116,102,.75); animation: orb-blocked-jitter .82s steps(2,end) infinite; }
.autodev-orb.is-running[data-state="blocked"]::after { border-top-color: #ff7466; border-bottom-color: transparent; animation-duration: 8s; }
.autodev-orb[data-reaction="dispatch"] { animation: orb-dispatch .84s cubic-bezier(.2,.8,.22,1); }
.autodev-orb[data-reaction="progress"] { animation: orb-progress .7s ease; }
.autodev-orb[data-reaction="success"] { animation: orb-celebrate 1.35s cubic-bezier(.16,.86,.24,1); }
.autodev-orb[data-reaction="blocked"] { animation: orb-alert .72s ease; }
.autodev-orb[data-reaction="tap"] { animation: orb-tap .55s cubic-bezier(.2,.9,.2,1); }
.orb-presence {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.orb-presence i { width: 5px; height: 5px; background: #ff7952; animation: orb-presence-pulse 1.8s ease-in-out infinite; }
.orb-activity-console[data-state="blocked"] .orb-presence i { background: #ff7466; animation-duration: .72s; }
.orb-activity-console[data-state="sleeping"] .orb-presence i { background: #716d64; animation: none; }
.orb-presence b {
  min-width: 0;
  overflow: hidden;
  color: #f4eee2;
  font: 800 12px/1.2 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-presence > span {
  flex: none;
  margin-left: auto;
  color: #8f8b82;
  font: 700 9px/1 Consolas, monospace;
  letter-spacing: .04em;
}
.orb-activity-console {
  z-index: 4;
  width: 174px;
  max-width: calc(100% - 4px);
  padding: 8px 9px 9px;
  border: 1px solid #44453e;
  background: rgba(23,24,19,.92);
  color: #aaa59a;
  box-shadow: 3px 3px 0 rgba(240,82,45,.12);
  pointer-events: none;
}
.orb-activity-console > p {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 7px 0 0;
  padding-top: 7px;
  border-top: 1px solid #34352f;
}
.orb-activity-console > p small {
  overflow: hidden;
  color: #77746c;
  font: 700 9px/1.3 Consolas, monospace;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.orb-activity-console > p > span {
  display: -webkit-box;
  max-width: 100%;
  min-height: 27px;
  overflow: hidden;
  color: #c9c4ba;
  font: 500 11px/1.42 "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.orb-activity-console[data-active="true"] { border-left-color: var(--editorial-orange); }
.orb-activity-console[data-active="true"] .orb-presence i { animation-duration: .85s; }
.orb-activity-console.is-switching > p { animation: orb-activity-switch .34s cubic-bezier(.2,.75,.25,1); }
.orb-whisper {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: -46px;
  width: 174px;
  padding: 8px 9px;
  border: 1px solid #fffaf1;
  background: #fffaf1;
  color: var(--editorial-ink);
  box-shadow: 4px 4px 0 var(--editorial-orange);
  font-size: 9px;
  line-height: 1.45;
  opacity: 0;
  transform: translate(-50%,6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.orb-whisper::after { content:""; position:absolute; left:50%; bottom:-6px; width:10px; height:10px; border-right:1px solid #fffaf1; border-bottom:1px solid #fffaf1; background:#fffaf1; transform:translateX(-50%) rotate(45deg); }
.orb-whisper.show { opacity: 1; transform: translate(-50%,0); }
.autodev-orb-canvas,
.autodev-orb-fallback,
.autodev-orb-depth-back {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.autodev-orb-canvas {
  z-index: 1;
  opacity: 0;
  filter: drop-shadow(0 6px 4px rgba(76, 20, 5, .30)) drop-shadow(4px 10px 9px rgba(54, 15, 4, .16));
  transform-origin: 50% 50%;
  will-change: transform;
  transition: opacity .28s ease;
}
.autodev-orb-depth-back { z-index: 0; overflow: visible; pointer-events: none; }
.autodev-orb-fallback { z-index: 2; overflow: visible; }
.autodev-orb.is-webgl .autodev-orb-canvas { opacity: 1; }
.autodev-orb.is-webgl .autodev-orb-fallback { display: block; }
.autodev-orb.is-webgl .orb-driver-body { opacity: 0; }
.autodev-orb.is-webgl .orb-driver-eyes > path {
  filter: drop-shadow(0 1.2px .9px rgba(82, 18, 3, .24));
}
.autodev-orb.is-fallback .autodev-orb-canvas { display: none; }
.sidebar-character-stage .autodev-orb-canvas {
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .58)) drop-shadow(4px 10px 10px rgba(0, 0, 0, .28));
}
.sidebar-character-stage .autodev-orb-fallback {
  width: 122px;
  height: 122px;
  color-scheme: dark;
  --sand-bg-base: var(--editorial-ink);
  --disk: var(--editorial-ink);
  --bg: var(--editorial-ink);
  --fg: #fffaf1;
}
.nav-item {
  position: relative;
  grid-template-columns: 30px 1fr;
  min-height: 48px;
  padding: 11px 9px;
  border: 0;
  color: #bcb7ad;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
}

.nav-item:hover { color: #fffdf7; background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.nav-item.active {
  color: var(--editorial-ink);
  background: var(--editorial-orange);
  border-left: 0;
  transform: translateX(3px);
}
.nav-item.active::after { background: #fffdf7; }
.nav-index { color: #a9a399; font: 800 9px Consolas, monospace; }
.nav-item.active .nav-index { color: rgba(23, 24, 19, .7); }
.sidebar-foot { color: var(--editorial-white); }
.system-status {
  margin: 0 -2px 13px;
  padding: 12px 8px;
  border: 1px solid rgba(243, 240, 232, .22);
  color: #bcb7ad;
}
.system-status i { background: #72b39e; box-shadow: none; animation: editorial-blink 2.2s step-end infinite; }
.system-status.offline i { background: var(--red); }
.profile { padding: 14px 6px 0; border-top: 1px solid rgba(243, 240, 232, .2); }
.avatar { background: var(--editorial-orange); color: var(--editorial-ink); }
.profile b { color: var(--editorial-white); }
.profile span, .profile button { color: #938e84; }

.main-stage {
  grid-column: 2;
  max-width: none;
  margin: 0;
  padding: 30px 42px 80px 47px;
}

.topbar {
  position: relative;
  align-items: center;
  min-height: 132px;
  margin-bottom: 28px;
  padding: 17px 0 22px;
  border-bottom: 2px solid var(--editorial-ink);
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--editorial-ink) 0 1px, transparent 1px 120px);
}

.topbar h1 {
  margin: 0;
  color: var(--editorial-ink);
  font-family: "STZhongsong", "SimSun", serif;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.08em;
}

.top-actions { align-items: center; gap: 12px; }
.clock { color: var(--muted); font: 10px Consolas, monospace; }
.version-chip {
  padding: 6px 8px;
  border: 1px solid var(--editorial-ink);
  color: var(--editorial-ink);
  background: transparent;
  font: 800 9px Consolas, monospace;
}

.btn {
  border: 1px solid var(--editorial-ink);
  border-radius: 0;
  padding: 11px 16px;
  color: var(--editorial-ink);
  background: #f9f6ee;
  box-shadow: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translate(-2px, -2px); border-color: var(--editorial-ink); box-shadow: 4px 4px 0 var(--editorial-ink); }
.btn-primary {
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
  background: var(--editorial-orange);
  box-shadow: 4px 4px 0 var(--editorial-ink);
  font-weight: 800;
}
.btn-primary:hover { background: #ff6840; box-shadow: 7px 7px 0 var(--editorial-ink); }
.btn-secondary { border-color: var(--editorial-ink); color: var(--editorial-ink); background: #f9f6ee; }
.btn-ghost { color: var(--muted); background: transparent; }
.text-button, .text-action, .add-email { color: var(--editorial-orange-ink); font-weight: 800; }
.text-action.danger { color: var(--editorial-red-ink); }

.project-guide-trigger {
  border: 1px solid var(--editorial-ink) !important;
  background: #f9f6ee !important;
  color: var(--editorial-ink) !important;
}
.project-guide-trigger i { background: var(--editorial-green) !important; box-shadow: none !important; }
.project-guide-trigger b { color: var(--editorial-orange-ink) !important; }
.project-guide:focus-within .project-guide-trigger { border-color: var(--editorial-ink) !important; background: #f6ded4 !important; }
.project-guide-panel {
  border: 1px solid var(--editorial-ink) !important;
  background: #fbf8f0 !important;
  box-shadow: 8px 8px 0 var(--editorial-ink) !important;
}
.project-guide-panel::before { background: var(--editorial-orange) !important; }
.project-guide-panel h2, .project-guide-item strong { color: var(--editorial-ink) !important; }
.project-guide-panel > header .eyebrow { color: var(--editorial-orange-ink) !important; }
.project-guide-panel > header h2 { color: var(--editorial-ink) !important; }
.project-guide-list::-webkit-scrollbar-track { background: #ded8cc; }
.project-guide-list::-webkit-scrollbar-thumb { background: var(--editorial-orange); border-color: #ded8cc; }
.project-guide-item { border-color: #d3ccbe !important; background: #f4f0e7 !important; }
.project-guide-item > span, .guide-aliases code { color: var(--editorial-orange-ink) !important; }
.guide-aliases code { border-color: #c9b9ad !important; background: #fffaf1 !important; }

.control-strip { gap: 12px; margin-bottom: 34px; }
.control-strip.admin-strip { grid-template-columns: 1fr; }
.control-strip .metrics.admin-metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.devcore-quota, .control-strip .devcore-quota {
  min-height: 118px;
  border: 0;
  border-left: 8px solid var(--editorial-orange);
  background: var(--editorial-ink);
  color: var(--editorial-white);
  box-shadow: 6px 6px 0 #cfc8bb;
}
.devcore-quota::after { color: rgba(243, 240, 232, .045); }
.quota-copy h2 { color: #fffaf1; }
.devcore-quota .eyebrow { color: var(--editorial-on-dark-accent); }
.quota-copy > span, .quota-meter small, .quota-number span, .devcore-quota .muted { color: var(--editorial-on-dark-muted) !important; }
.quota-number b { color: #ff7048; font-family: Georgia, serif; }
.quota-track { background: #3c3d37; }
.quota-track i { background: linear-gradient(90deg, var(--editorial-orange), #f5ad3d); box-shadow: none; }

.metrics { gap: 10px; }
.metric, .control-strip .metric, .control-strip .admin-metrics .metric {
  min-height: 118px;
  padding: 16px 16px 14px;
  border: 1px solid var(--editorial-ink);
  background: #fbf8f0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: none;
}
.metric::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--editorial-ink); }
.metric::after { right: -31px; bottom: -47px; border-color: rgba(23, 24, 19, .15); }
.metric span { color: var(--muted); font-weight: 700; }
.metric b, .control-strip .metric b, .control-strip .admin-metrics .metric b {
  margin-top: 15px;
  color: var(--editorial-ink);
  font: 800 36px/1 Georgia, serif;
}
.metric.accent b, .metric.live b { color: var(--editorial-orange); }
.metric.warn b { color: var(--amber); }
.metric.danger b { color: var(--red); }
.metric.live { border-color: var(--editorial-ink); box-shadow: none; }
.metric.live::before { background: var(--editorial-orange); animation: none; }

.section-heading { align-items: center; margin: 35px 0 15px; }
.section-heading h2 {
  color: var(--editorial-ink);
  font-family: "STZhongsong", "SimSun", serif;
  font-size: 28px;
  letter-spacing: -.04em;
}
.section-heading.compact { margin-top: 42px; }

.active-pipeline {
  margin-bottom: 44px;
  padding: 20px;
  border: 1px solid var(--editorial-ink);
  border-left: 8px solid var(--editorial-orange);
  background: rgba(251, 248, 240, .9);
  box-shadow: 8px 8px 0 rgba(23, 24, 19, .1);
}
.active-pipeline::before {
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--editorial-orange), transparent 55%);
  box-shadow: none;
  animation: editorial-scan 3s ease-in-out infinite;
}
.live-heading h2 { color: var(--editorial-orange); }
.live-orbit { border-color: var(--editorial-orange); border-radius: 0; transform: rotate(45deg); }
.live-orbit::before { background: var(--editorial-orange); box-shadow: none; }
.live-orbit::after { border-radius: 0; border-top-color: var(--editorial-ink); }
.capacity-status { border: 1px solid var(--editorial-ink); background: #f2eee4; color: var(--muted); }
.capacity-status b { color: var(--editorial-orange); font-family: Georgia, serif; }
.capacity-status span { color: var(--muted); }

.run-grid { grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 12px; }
.run-card {
  min-height: 238px;
  padding: 18px;
  border: 1px solid var(--editorial-ink);
  border-top: 5px solid var(--editorial-ink);
  background: #fffdf7;
  color: var(--editorial-ink);
  box-shadow: 4px 4px 0 #d6d0c4;
}
.run-card:nth-child(3n+1) { border-top-color: var(--editorial-orange); }
.run-card.joint-run-card,
.waiting-runner-card {
  border-color: var(--editorial-ink);
  background: #fffdf7;
  color: var(--editorial-ink);
  box-shadow: 4px 4px 0 #d6d0c4;
}
.joint-badge {
  border-color: #8f887b;
  background: #eee9df;
  color: var(--editorial-orange-ink) !important;
}
.waiting-runner-card .status-tag { border-color: #8f887b; background: #eee9df; color: var(--editorial-ink); }
.run-card:hover { border-color: var(--editorial-ink); transform: translate(-2px, -3px); box-shadow: 7px 8px 0 var(--editorial-ink); }
.run-card.orb-impact { animation: orb-card-impact .8s cubic-bezier(.18,.78,.2,1); }
.work-id { color: var(--editorial-orange-ink); font-weight: 800; }
.status-tag { border-color: #aaa295; color: var(--editorial-ink); background: #f1ede3; }
.run-card h3 { color: var(--editorial-ink); }
.run-card .project, .run-mode { color: var(--muted); }
.live-activity {
  border: 0;
  border-left: 4px solid var(--editorial-orange);
  background: #f1ede3;
}
.live-activity > i { border-radius: 0; background: var(--editorial-orange); box-shadow: none; }
.live-activity span { color: #817a6e; }
.live-activity b { color: var(--editorial-ink); }
.routing-card .status-tag { color: var(--editorial-orange-ink); border-color: #8f887b; }
.routing-signal,
.waiting-runner-signal {
  border: 1px solid var(--editorial-ink);
  background: #eee9df;
  color: var(--editorial-ink);
}
.routing-signal span { color: var(--muted); }
.waiting-runner-head h2 { color: var(--editorial-ink); }
.btn-live { border-color: var(--editorial-ink); background: var(--editorial-ink); color: #fffaf1; }

.table-card {
  border: 1px solid var(--editorial-ink);
  background: rgba(255, 253, 247, .88);
  box-shadow: 5px 5px 0 #d9d2c6;
}
th {
  padding: 12px 15px;
  border-bottom: 2px solid var(--editorial-ink);
  color: #5f594f;
  background: #e9e4d9;
  font: 800 9px Consolas, monospace;
}
td { padding: 14px 15px; border-bottom: 1px solid #d6d0c4; color: var(--editorial-ink); }
tbody tr:hover { background: #f6ded4; }
.demand-cell span, .demand-cell small, .duration-cell, .activity-cell { color: var(--muted); }
.tfs-link, .artifact-link { color: var(--editorial-orange-ink) !important; }
.artifact-link:hover { border-color: var(--editorial-ink); background: #f6ded4; }
.status-dot::before { border-radius: 0; background: var(--editorial-green); }
.status-dot[data-status=delivered]::before { background: var(--editorial-green); }
.status-dot[data-status=failed]::before { background: var(--red); }
.status-dot[data-status=waiting_merge]::before, .status-dot[data-status=waiting_input]::before { background: var(--amber); }
.status-dot[data-status=routing]::before, .status-dot[data-status=queued]::before { background: var(--editorial-orange); }

.record-filters {
  border: 1px solid var(--editorial-ink) !important;
  background: #eae5da !important;
  box-shadow: 5px 5px 0 #d2cbbf;
}
.record-filters label > span { color: #665f54 !important; }
.record-pagination, .record-pagination button { color: var(--editorial-ink) !important; }
.record-pagination button { border-color: var(--editorial-ink) !important; background: #f9f6ee !important; }
.record-pagination button.active { color: var(--editorial-ink) !important; background: var(--editorial-orange) !important; }

/* These controls had a more specific dark-theme rule in brand-ui.css. Keep
   this selector equally specific so the light ledger never becomes dark-on-dark. */
.record-filters input,
.record-filters select {
  border-color: #8f887b !important;
  background: #fffdf7 !important;
  color: var(--editorial-ink) !important;
  color-scheme: light;
}
.record-filters input::placeholder { color: #6d675d !important; opacity: 1; }
.record-filter-actions .btn-ghost { color: var(--editorial-ink); }
.ledger-select > button,
.ledger-date > button { border-color: #8f887b; background: #fffdf7; color: var(--editorial-ink); }
.ledger-select > button i,
.ledger-date > button i { border-color: #756e62; color: var(--editorial-ink); }
.ledger-date > button i::before,
.ledger-date > button i::after { background: #665f54; }
.ledger-date > button i::before { box-shadow: 0 4px 0 #665f54; }
.ledger-date > button i::after { box-shadow: 5px 0 0 #665f54; }
.ledger-select.open > button,
.ledger-date.open > button { border-color: var(--editorial-orange); box-shadow: inset 5px 0 0 var(--editorial-orange); }
.ledger-select-menu,
.ledger-calendar { border-color: var(--editorial-ink); background: #fffdf7; box-shadow: 7px 7px 0 rgba(23,24,19,.22); }
.ledger-select-menu button { color: #5f594f; }
.ledger-select-menu button:hover,
.ledger-select-menu button[aria-selected="true"] { border-left-color: var(--editorial-orange); background: #f4d8cc; color: var(--editorial-ink); }
.ledger-calendar-head { border-color: #cfc8bb; }
.ledger-calendar-head b { color: var(--editorial-ink); }
.ledger-calendar-head button,
.ledger-calendar-foot button { border-color: var(--editorial-ink); background: #f1ece2; color: var(--editorial-ink); }
.ledger-calendar-week { color: #756e62; }
.ledger-calendar-days button { color: var(--editorial-ink); }
.ledger-calendar-days button.outside { color: #aaa397; }
.ledger-calendar-days button:hover { border-color: var(--editorial-ink); background: #f6ded4; }
.ledger-calendar-days button.today::after { background: var(--editorial-orange); }
.ledger-calendar-days button.selected { border-color: var(--editorial-ink); background: var(--editorial-orange); color: var(--editorial-ink); box-shadow: 2px 2px 0 var(--editorial-ink); }
.ledger-calendar-foot { border-color: #cfc8bb; }

input, select, textarea {
  border: 1px solid #8f887b;
  border-radius: 0;
  background: #fffdf7;
  color: var(--editorial-ink);
}
input::placeholder, textarea::placeholder { color: #6d675d; opacity: 1; }
select option { background: #fffdf7; color: var(--editorial-ink); }
input:not([type="checkbox"]):not([type="radio"]):disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: 1;
  color: #5c564d;
  background-color: #ddd7cb;
  cursor: not-allowed;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--editorial-orange);
  box-shadow: 4px 4px 0 rgba(233, 87, 43, .18);
}
select { color-scheme: light; }

.policy-note {
  border: 1px solid var(--editorial-ink);
  border-left: 7px solid var(--amber);
  background: #fff1c8;
  color: #574311;
  box-shadow: 4px 4px 0 #d8c78f;
}
.catalog-source { border-color: var(--editorial-ink); color: var(--editorial-ink); background: #f7f3ea; }
.project-grid { gap: 12px; }
.project-card {
  border: 1px solid var(--editorial-ink);
  background: #fffdf7;
  box-shadow: 5px 5px 0 #d5cec1;
}
.project-card::before { width: 6px; background: var(--editorial-orange); }
.project-head h3, .fact b { color: var(--editorial-ink); }
.project-key, .project-origin, .fact span { color: var(--muted); }
.mode-badge { border-color: var(--editorial-ink); color: var(--editorial-ink); background: #e8e3d8; }
.fact { background: #eee9df; }
.project-origin { border-color: #d4cec2; }
.project-origin i { background: var(--editorial-green); box-shadow: none; }
.alias-label { color: var(--muted) !important; }
.project-aliases code { border-color: #c3aa9e !important; color: #9b3f27 !important; background: #f8e5dd !important; }
.repository-label { border-color: #d4cec2; color: var(--muted); }
.repository-label b { border-color: var(--editorial-ink); color: var(--editorial-ink); background: #eee9df; }
.repository-paths > a { border-color: #cfc8bb; background: #f1ece2; color: var(--editorial-ink); }
.repository-paths > a:hover { border-color: var(--editorial-ink); background: #f6ded4; }
.repository-paths span { color: var(--editorial-ink); }
.repository-paths code { color: #665f54; }
.repository-paths i { color: var(--editorial-orange-ink); }
.delivery-table thead th { background: #e9e4d9; box-shadow: 0 2px 0 var(--editorial-ink); }

.analytics-kpi, .analytics-card {
  border: 1px solid var(--editorial-ink) !important;
  background: #fffdf7 !important;
  box-shadow: 5px 5px 0 #d4cec2 !important;
}
.analytics-kpi::before { background: var(--editorial-ink) !important; }
.analytics-kpi.highlight::before { background: var(--editorial-orange) !important; }
.analytics-kpi span, .trend-legend, .analytics-project-head { color: var(--muted) !important; }
.analytics-kpi b, .analytics-card h3, .analytics-project-row b { color: var(--editorial-ink) !important; }
.analytics-kpi b { font-family: Georgia, serif !important; }
.trend-columns { border-color: #d1cabd !important; background: #eee9df !important; }
.trend-columns .created, .trend-legend .created { background: var(--editorial-orange) !important; }
.trend-columns .delivered, .trend-legend .delivered { background: var(--editorial-green) !important; }
.trend-columns .failed, .trend-legend .failed { background: var(--red) !important; }
.trend-day > span { color: #575148 !important; }
.analytics-bar i { background: #ddd7cb !important; }
.analytics-bar em { background: var(--editorial-orange) !important; }
.analytics-project-row, .analytics-project-head { border-color: #d1cabd !important; }

.modal-backdrop, .drawer-backdrop {
  background: rgba(23, 24, 19, .63);
  backdrop-filter: blur(3px);
}
.modal {
  border: 2px solid var(--editorial-ink);
  background: #f8f4ea;
  color: var(--editorial-ink);
  box-shadow: 12px 12px 0 var(--editorial-ink);
}
.modal::before {
  content: "";
  display: block;
  height: 7px;
  margin: -34px -34px 26px;
  background: var(--editorial-orange);
}
.modal h2 { color: var(--editorial-ink); font-family: "STZhongsong", "SimSun", serif; }
.modal-close { color: var(--editorial-ink); }
.field-label, .form-grid label > span, .form-stack label > span { color: #655f54; }
.field-label small { color: var(--muted); }
.queue-note { color: var(--muted); }
.queue-note i { border-color: var(--editorial-orange); }
.joint-title-tip { border-color: #cfc7b9 !important; background: #ece7dc !important; color: var(--editorial-ink) !important; }
.joint-title-tip b { color: var(--editorial-ink) !important; }
.joint-title-tip code { color: var(--editorial-orange-ink) !important; }
.recipient-group {
  border: 1px solid #bdb6a8;
  background: #eee9df;
}
.recipient-group.current { border-left: 5px solid var(--editorial-orange); background: #f6e3db; }
.recipient-group > header span { color: var(--editorial-orange-ink); }
.recipient-group > header b { color: var(--editorial-ink); }
.recipient-group > header small { color: var(--muted); }
.mail-choice {
  border-color: #b7afa1;
  background: #fffdf7;
}
.mail-choice:has(input:checked) { border-color: var(--editorial-ink); background: #f3d9cf; }
.mail-choice b { color: var(--editorial-ink); }
.mail-choice small { color: var(--muted); }
.mail-choice:has(input:checked) i { color: var(--editorial-green); }
.delivery-choice {
  border: 1px solid #a9a295;
  background: #fffdf7;
}
.delivery-choice::after { border-color: rgba(23, 24, 19, .13); border-radius: 0; transform: rotate(45deg); }
.delivery-choice:hover { border-color: var(--editorial-ink); }
.delivery-choice:has(input:checked) {
  border-color: var(--editorial-ink);
  background: #f6ded4;
  box-shadow: inset 0 5px 0 var(--editorial-orange);
}
.delivery-choice .choice-index, .delivery-choice:has(input:checked) .choice-index { color: var(--editorial-orange-ink); }
.delivery-choice b { color: var(--editorial-ink); }
.delivery-choice small { color: var(--muted); }
.delivery-choice:has(input:checked) > i { color: var(--editorial-green); }
.delivery-choice.featured::before { color: #625c52; }
.email-row { border-color: #aaa295; background: #fffdf7; }
.email-order { color: var(--muted); }
.email-row button { border-color: #cbc4b7; color: var(--muted); }
.email-badge.primary { border-color: var(--editorial-green); color: var(--editorial-orange-ink); }
.self-mark { color: var(--editorial-green); }
.toggle-line input, .mail-choice input { accent-color: var(--editorial-orange); }
.strategy-preview { border-color: #aaa295; background: #eee9df; }
.strategy-preview b { color: var(--editorial-orange-ink); }
.strategy-preview span { color: var(--muted); }
.form-error { color: var(--editorial-red-ink); }

.detail-drawer {
  border-left: 2px solid var(--editorial-ink);
  background: #f8f4ea;
  color: var(--editorial-ink);
  box-shadow: -12px 0 0 var(--editorial-orange), -30px 0 70px rgba(23, 24, 19, .25);
}
.detail-head { border-color: #bdb6a8; }
.detail-head h2, .timeline-copy b { color: var(--editorial-ink); }
.detail-head h2 .tfs-work-link { color: var(--editorial-orange-ink); }
.detail-meta span, .delivery-option-summary span { border-color: #aaa295; color: var(--editorial-ink); background: #eee9df; }
.delivery-option-summary b, .notification-line { color: var(--muted); }
.timeline-mark { border-color: #8f887b; border-radius: 0; transform: rotate(45deg); }
.timeline-mark::after { background: #bcb5a8; transform: rotate(-45deg); transform-origin: top; }
.timeline-item.completed .timeline-mark { border-color: var(--editorial-green); background: var(--editorial-green); }
.timeline-item.running .timeline-mark { border-color: var(--editorial-orange); box-shadow: 0 0 0 4px rgba(233, 87, 43, .15); }
.timeline-item.feeds-next .timeline-mark::before { content:""; position:absolute; z-index:2; left:2px; top:8px; width:4px; height:4px; background:var(--editorial-orange); box-shadow:0 0 0 3px rgba(233,87,43,.15); animation:timeline-energy-transfer 1.35s cubic-bezier(.4,0,.2,1) infinite; }
.timeline-item.step-arrived .timeline-copy { animation:timeline-step-arrived .9s ease; }
.timeline-copy span { color: var(--muted); }
.step-timing { color: #777065 !important; }
.artifact, .merge-screenshot-card {
  border-color: var(--editorial-ink);
  background: #fffdf7;
  color: var(--editorial-ink);
}
.artifact:hover, .merge-screenshot-card:hover { border-color: var(--editorial-orange); box-shadow: 5px 5px 0 var(--editorial-ink); }
.artifact-link.license-link,
.artifact-link.release-link { border-color: #8f887b; color: var(--editorial-orange-ink) !important; background: #fffdf7; }
.artifact i { color: var(--editorial-orange-ink); }
.merge-screenshot-download { border-color: var(--editorial-ink); background: var(--editorial-ink); color: #fffaf1; }
.merge-screenshot-download i { color: var(--editorial-on-dark-accent); }
.screenshot-meta i { color: var(--editorial-orange-ink); }
.screenshot-meta small { color: var(--muted); }
.event-list { border-color: #afa89b; }
.event b { color: var(--editorial-orange-ink); }
.event p { color: #514d45; }
.error-box { border-left-color: var(--red); background: #f4d3ce; color: #7d251f; }
.blocker-brief { border-color:var(--editorial-ink); background:#fffdf7; box-shadow:7px 7px 0 #d2cbbf; }
.blocker-brief > header { background:var(--editorial-ink); }
.blocker-brief > header span { color:var(--editorial-on-dark-accent); }
.blocker-brief > header b { color:#fffaf1; }
.blocker-brief article { border-color:#c8c0b3; }
.blocker-brief article + article { border-color:#c8c0b3; }
.blocker-brief article span { color:var(--editorial-orange-ink); }
.blocker-brief article p { color:var(--editorial-ink); }
.blocker-reason { box-shadow:inset 5px 0 0 #c63f32; }
.blocker-decision { background:#fff1c8; box-shadow:inset 5px 0 0 #d99518; }

.joint-delivery-panel {
  border: 1px solid var(--editorial-ink) !important;
  border-top: 7px solid var(--editorial-orange) !important;
  background: #eee9df !important;
  box-shadow: 6px 6px 0 #d2cbbf !important;
}
.joint-delivery-panel h3, .joint-child-copy b { color: var(--editorial-ink) !important; }
.joint-delivery-panel > p, .joint-child-copy small, .joint-child-copy em { color: var(--muted) !important; }
.joint-child {
  border-color: #bcb5a8 !important;
  background: #fffdf7 !important;
  color: var(--editorial-ink) !important;
}
.joint-child.active { border-color: var(--editorial-orange) !important; background: #f6ded4 !important; box-shadow: inset 5px 0 0 var(--editorial-orange) !important; }
.joint-child:hover { border-color: var(--editorial-ink) !important; background: #f6ded4 !important; }
.joint-child-index { color: var(--editorial-orange-ink) !important; }
.joint-child > .status-dot { color: var(--editorial-ink); }

.supplement-panel { border-color: var(--editorial-ink) !important; background: #fffdf7 !important; }
.supplement-signal { background: #fff1c8 !important; border-color: var(--amber) !important; }
.supplement-signal b, .supplement-conclusion p, .supplement-copy b { color: var(--editorial-ink) !important; }
.supplement-signal span { color: #9a6300 !important; }
.supplement-signal p, .supplement-copy small, .supplement-copy i { color: var(--muted) !important; }
.supplement-conclusion { border-color: #c7c0b3 !important; background: #eee9df !important; }
.supplement-index { color: var(--editorial-orange-ink) !important; }
.supplement-copy > b em { border-color: #8f887b; color: var(--editorial-orange-ink); background: #eee9df; }
.supplement-copy textarea {
  border-color: #8f887b !important;
  background: #fffdf7 !important;
  color: var(--editorial-ink) !important;
}
.continuation-panel { border-color:var(--editorial-ink) !important; background:#fffdf7 !important; box-shadow:7px 7px 0 var(--editorial-ink) !important; }
.continuation-marker { background:var(--editorial-orange) !important; color:var(--editorial-ink) !important; }
.continuation-marker > span,.continuation-marker > p { color:#5e2718 !important; }
.continuation-marker:after { color:rgba(23,24,19,.12) !important; }
.continuation-form { background:#fff8e9 !important; }
.continuation-form label > b { color:var(--editorial-ink) !important; }
.continuation-form label > small { color:var(--muted) !important; }
.continuation-form textarea { border-color:#8f887b !important; background:#fffdf7 !important; color:var(--editorial-ink) !important; }
.continuation-form textarea:focus { border-color:var(--editorial-orange) !important; box-shadow:3px 3px 0 #f0c3af !important; }

.devcore-stream-panel {
  border-color: #3d3e38;
  background: var(--editorial-ink);
  box-shadow: -12px 0 0 var(--editorial-orange), -30px 0 70px rgba(23, 24, 19, .3);
}
.devcore-stream-panel > header { border-color: #4a4b44; background: #22231e; }
.devcore-stream-panel h2 { color: #fffaf1; }
.devcore-stream-panel .eyebrow { color: var(--editorial-on-dark-accent); }
.devcore-stream-panel .modal-close { color: #fffaf1; }
.stream-notice { border-color: #3a3b35; background: #1c1d18; color: #aaa59a; }
.stream-notice i, .chat-system i { border-radius: 0; background: var(--editorial-orange); box-shadow: none; }
.chat-system { border-color: #595951; color: #b5b0a5; }
.chat-message { border-left-color: #77766d; }
.chat-message.assistant { border-left-color: var(--editorial-orange); background: linear-gradient(90deg, rgba(233, 87, 43, .1), transparent 70%); }
.chat-message.reasoning { border-left-color: #72a996; }
.chat-message.command { border-left-color: #d99518; }
.chat-message.file { border-left-color: #c68f39; }
.chat-message.plan { border-left-color: #d28268; }
.chat-label, .chat-rendered h3 { color: #ff7952; }
.chat-message pre, .chat-rendered { color: #eee9df; }

.artifact-preview-overlay { background: rgba(23, 24, 19, .88); backdrop-filter: blur(3px); }
.artifact-preview-shell { border-color: #8f887b; background: var(--editorial-ink); box-shadow: 12px 12px 0 var(--editorial-orange); }
.artifact-preview-head { border-color: #4f5049; background: #22231e; }
.artifact-preview-head h2 { color: #fffaf1; }
.artifact-preview-head > div > span,
.preview-loading,
.artifact-preview-foot { color: var(--editorial-on-dark-muted); }
.artifact-preview-shell .modal-close { color: #fffaf1; }
.artifact-preview-canvas { background: #10110e; }
.artifact-preview-foot { border-color: #4f5049; }
.toast { color: #fffaf1; background: var(--editorial-ink); box-shadow: 6px 6px 0 var(--editorial-orange); }

.orb-signal-layer { position:fixed; inset:0; z-index:18; overflow:hidden; pointer-events:none; }
.orb-flight-signal { --orb-signal:#e9572b; position:absolute; display:block; width:10px; height:10px; margin:-5px 0 0 -5px; background:var(--orb-signal); box-shadow:0 0 0 4px rgba(233,87,43,.16), 0 0 18px rgba(233,87,43,.45); }
.orb-flight-signal::after { content:""; position:absolute; right:8px; top:4px; width:48px; height:2px; background:linear-gradient(90deg,transparent,var(--orb-signal)); }
.orb-flight-signal[data-tone="blocked"] { --orb-signal:#c63f32; }
.orb-flight-signal[data-tone="success"] { --orb-signal:#24705c; box-shadow:0 0 0 4px rgba(36,112,92,.15),0 0 18px rgba(36,112,92,.42); }
.orb-flight-signal[data-tone="dispatch"] { --orb-signal:#ff7952; }
.orb-delivery-token { position:absolute; min-width:34px; padding:4px 6px; border:1px solid var(--editorial-ink); background:#fffdf7; color:var(--editorial-ink); box-shadow:3px 3px 0 var(--editorial-orange); font:800 8px Consolas,monospace; letter-spacing:.08em; text-align:center; }
#recent-table tr.orb-impact > td { animation:orb-row-impact .85s ease; }
.login-shell.is-authenticating .login-panel { opacity:1; transition:none; }
.login-shell.is-authenticating .login-character-stage { animation:login-orb-departure .52s cubic-bezier(.24,.75,.26,1); }

@keyframes orb-mechanical-orbit { to { transform:rotate(360deg); } }
@keyframes orb-blocked-jitter { 50% { transform:rotate(4deg) scale(.97); } }
@keyframes orb-presence-pulse { 50% { opacity:.35; transform:scale(.72); } }
@keyframes orb-activity-switch { 0%{opacity:.3;transform:translateY(3px)} 100%{opacity:1;transform:none} }
@keyframes orb-dispatch { 0%{transform:scale(1)} 24%{transform:translateX(-5px) scale(.88,1.06)} 58%{transform:translateX(8px) scale(1.08,.94)} 100%{transform:none} }
@keyframes orb-progress { 45%{transform:translateY(-5px) rotate(4deg)} 100%{transform:none} }
@keyframes orb-celebrate { 0%,100%{transform:none} 30%{transform:translateY(-12px) scale(1.07)} 58%{transform:translateY(2px) scale(.96,1.04)} }
@keyframes orb-alert { 20%,60%{transform:translateX(-4px)} 40%,80%{transform:translateX(4px)} }
@keyframes orb-tap { 42%{transform:translateY(-7px) scale(1.04)} 100%{transform:none} }
@keyframes orb-card-impact { 0%{box-shadow:4px 4px 0 #d6d0c4} 38%{box-shadow:9px 9px 0 var(--editorial-orange);transform:translate(-3px,-4px)} 100%{box-shadow:4px 4px 0 #d6d0c4;transform:none} }
@keyframes orb-row-impact { 0%,100%{background:transparent} 35%{background:#fde2d7} }
@keyframes timeline-energy-transfer { 0%{opacity:0;transform:translateY(0) scale(.6)} 18%{opacity:1} 82%{opacity:1} 100%{opacity:0;transform:translateY(49px) scale(1.2)} }
@keyframes timeline-step-arrived { 20%{transform:translateX(5px);color:var(--editorial-orange)} 100%{transform:none} }
@keyframes login-orb-departure { 0%{transform:none} 44%{transform:translateX(-8px) scale(.9,1.06)} 100%{transform:translateX(16px) scale(.94);opacity:.72} }

@media (prefers-reduced-motion: reduce) {
  .autodev-orb::before,.autodev-orb::after,.orb-presence i,.orb-activity-console.is-switching>p,.timeline-item.feeds-next .timeline-mark::before { animation:none !important; }
  .autodev-orb[data-reaction],.run-card.orb-impact,#recent-table tr.orb-impact>td,.login-shell.is-authenticating .login-character-stage { animation:none !important; }
  .orb-whisper { transition:none; }
}

.login-body {
  overflow: auto;
  padding: 34px;
  background:
    linear-gradient(rgba(23, 24, 19, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 19, .03) 1px, transparent 1px),
    var(--editorial-white);
  background-size: 32px 32px;
}
.login-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1240px, 96vw);
  min-height: 700px;
  grid-template-columns: 1.44fr .76fr;
  border: 2px solid var(--editorial-ink);
  background: #fbf8f0;
  box-shadow: 13px 13px 0 var(--editorial-ink);
}
.login-film {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 65.46%;
  overflow: hidden;
  pointer-events: none;
  background: #a8422e url("/static/media/login-delivery-line-poster.jpg") center/cover no-repeat;
}
.login-film::before,
.login-film::after,
.login-film-grid {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login-film::before {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(23,24,19,.38) 0, rgba(23,24,19,.05) 34%, rgba(23,24,19,.08) 64%, rgba(23,24,19,.48) 100%),
    linear-gradient(90deg, rgba(23,24,19,.16), transparent 26%, transparent 78%, rgba(23,24,19,.2));
}
.login-film::after {
  z-index: 3;
  border: 10px solid rgba(255,250,241,.14);
  box-shadow: inset 0 0 0 1px rgba(23,24,19,.34);
}
.login-film-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.94) contrast(1.03);
  transition: opacity .7s ease;
}
.login-film.is-ready:not(.is-static) .login-film-video { opacity: 1; }
.login-film-grid {
  z-index: 4;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,250,241,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,250,241,.24) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: soft-light;
}
.login-film-index {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 20px;
  color: rgba(255,250,241,.8);
  font: 800 7px/1 Consolas, monospace;
  letter-spacing: .16em;
  text-shadow: 0 1px 8px rgba(23,24,19,.75);
}
.login-brand {
  z-index: 1;
  padding: 48px 60px 50px;
  color: var(--editorial-ink);
  background: transparent;
}
.login-brand::before {
  content: "AUTODEV / 01";
  position: absolute;
  right: 26px;
  top: 30px;
  color: rgba(23, 24, 19, .62);
  font: 800 9px Consolas, monospace;
  letter-spacing: .14em;
}
.login-brand::after {
  display: none;
}
.login-logo-lockup {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 0;
  background: rgba(23,24,19,.92);
  box-shadow: 8px 8px 0 rgba(23,24,19,.28);
  backdrop-filter: blur(10px) saturate(.9);
}
.login-logo-lockup::after { display: none; }
.login-logo-symbol { width: 100%; min-width: 300px; height: 122px; filter: none; }
.login-logo-symbol img { width: 100%; height: 100%; object-fit: contain; }
.login-logo-lockup strong {
  color: var(--editorial-white);
  font: 900 clamp(38px, 3.25vw, 52px)/1 Georgia, serif;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.login-logo-lockup strong span { color: var(--amber); }
.login-edition {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(255,250,241,.54);
  color: rgba(255,250,241,.88);
  background: rgba(23,24,19,.62);
  backdrop-filter: blur(8px);
  font: 800 8px Consolas, monospace;
  letter-spacing: .12em;
}
.login-copy {
  position: absolute;
  left: 60px;
  top: 250px;
  align-self: flex-start;
  margin: 0;
  padding: 8px 13px 10px;
  border: 1px solid rgba(255,250,241,.52);
  color: var(--editorial-white);
  background: rgba(23,24,19,.64);
  box-shadow: 6px 6px 0 rgba(23,24,19,.24);
  backdrop-filter: blur(10px) saturate(.9);
}
.login-copy .eyebrow { color: #ffc9b6; }
.login-copy br { display: none; }
.login-brand h1 {
  margin: 7px 0 0;
  color: var(--editorial-white);
  font-family: "STZhongsong", "SimSun", serif;
  font-size: clamp(30px, 2.2vw, 36px);
  line-height: 1;
  letter-spacing: -.075em;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(23,24,19,.45);
}
.delivery-loop {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 13px 15px 12px;
  border: 1px solid rgba(23,24,19,.68);
  background: rgba(255,250,241,.86);
  box-shadow: 6px 6px 0 rgba(23,24,19,.22);
  backdrop-filter: blur(10px) saturate(.85);
}
.loop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--editorial-ink);
  font: 900 8px/1 Consolas, monospace;
  letter-spacing: .13em;
}
.loop-head span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--editorial-green);
  box-shadow: 0 0 0 1px var(--editorial-ink);
  vertical-align: -1px;
}
.loop-head em { font-style: normal; opacity: .66; }
.loop-rail { height: 34px; margin-top: 8px; background: none; }
.loop-rail::before {
  left: 0;
  right: 0;
  top: 13px;
  height: 8px;
  border: 1px solid var(--editorial-ink);
  background: repeating-linear-gradient(90deg, rgba(23,24,19,.12) 0 24px, transparent 24px 26px), #f5b19a;
}
.loop-progress { position: absolute; left: 1px; right: 1px; top: 14px; height: 6px; overflow: hidden; }
.loop-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23,24,19,.08), rgba(23,24,19,.26), rgba(23,24,19,.08));
}
.loop-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0, rgba(23,24,19,.3) 22%, var(--editorial-ink) 58%, rgba(23,24,19,.54) 76%, transparent 100%);
  transform: translate3d(-110%, 0, 0);
  will-change: transform, opacity;
  animation: login-route-scan 7.2s cubic-bezier(.38, .02, .16, 1) infinite;
}
.loop-rail i {
  position: relative;
  width: 12px;
  height: 12px;
  border: 2px solid var(--editorial-ink);
  border-radius: 0;
  background: #fffaf1;
  box-shadow: 0 0 0 2px var(--editorial-orange);
  transform: rotate(45deg);
  will-change: transform, background-color, box-shadow;
  animation: login-station-cycle 7.2s ease-in-out infinite;
}
.loop-rail i:nth-of-type(2) { animation-delay: 2.05s; }
.loop-rail i:nth-of-type(3) { animation-delay: 4.1s; }
.loop-rail i:nth-of-type(4) { animation-delay: 5.95s; }
.loop-rail b {
  top: 8px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 2px solid var(--editorial-ink);
  border-radius: 0;
  background: #fffaf1;
  box-shadow: inset 0 0 0 4px var(--editorial-green);
  transform: rotate(45deg);
  opacity: 0;
  will-change: left, transform, opacity;
  animation: login-route-marker 7.2s cubic-bezier(.38, .02, .16, 1) infinite;
}
.loop-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  color: var(--editorial-ink);
  font: 900 9px/1.25 "Microsoft YaHei UI", sans-serif;
}
.loop-labels span { display: grid; gap: 4px; }
.loop-labels span:nth-child(2), .loop-labels span:nth-child(3) { text-align: center; }
.loop-labels span:last-child { text-align: right; }
.loop-labels em { color: rgba(23,24,19,.58); font: 800 7px/1 Consolas, monospace; font-style: normal; letter-spacing: .12em; }
.orbit { border-color: rgba(23, 24, 19, .18); }
.login-panel {
  z-index: 2;
  position: relative;
  padding: 70px 64px;
  border-left: 2px solid var(--editorial-ink);
  color: var(--editorial-ink);
  background: #fbf8f0;
}
.login-panel::before {
  content: "SECURE ENTRY";
  position: absolute;
  right: 28px;
  top: 28px;
  color: var(--muted);
  font: 800 8px Consolas, monospace;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
}
.login-panel > .login-character-stage {
  position: absolute;
  z-index: 3;
  top: 92px;
  right: 54px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  pointer-events: none;
}
.login-character-stage .autodev-orb {
  width: 112px;
  height: 112px;
}
.login-character-stage .autodev-orb-fallback {
  width: 112px;
  height: 112px;
  overflow: visible;
  color-scheme: light;
  --bg: #fbf8f0;
  --fg: var(--editorial-ink);
}
.login-panel > div:not(.login-character-stage) { max-width: calc(100% - 128px); }
.login-panel h2 {
  margin: 8px 0;
  color: var(--editorial-ink);
  font-family: "STZhongsong", "SimSun", serif;
  font-size: 58px;
  letter-spacing: -.07em;
}
.login-panel .eyebrow { color: var(--editorial-orange-ink); }
.login-panel input { min-height: 52px; background: #fffdf7; }
.login-panel .btn-primary { min-height: 56px; }
.demo-credential { border-color: #c7c0b4; color: var(--muted); }
.demo-credential code { color: var(--editorial-orange-ink); background: #eee9df; }
.mobile-brand strong { color: var(--editorial-ink); }
.mobile-brand em { color: var(--editorial-orange); }
.mobile-brand > span { filter: none; }
.mobile-brand img { object-fit: contain; }

@keyframes editorial-blink { 0%, 72% { opacity: 1; } 73%, 85% { opacity: .25; } 86%, 100% { opacity: 1; } }
@keyframes editorial-scan { 0%, 100% { opacity: .2; transform: scaleX(.12); transform-origin: left; } 50% { opacity: 1; transform: scaleX(1); transform-origin: left; } }
@keyframes login-route-scan {
  0% { opacity: 0; transform: translate3d(-110%, 0, 0); }
  5% { opacity: .92; }
  84% { opacity: .92; transform: translate3d(330%, 0, 0); }
  92%, 100% { opacity: 0; transform: translate3d(330%, 0, 0); }
}
@keyframes login-route-marker {
  0% { left: 0; opacity: 0; transform: rotate(45deg) scale(.76); }
  5% { opacity: 1; transform: rotate(45deg) scale(1); }
  28% { transform: rotate(45deg) scale(1); }
  31% { transform: rotate(45deg) scale(.86); }
  34% { transform: rotate(45deg) scale(1); }
  54% { transform: rotate(45deg) scale(1); }
  57% { transform: rotate(45deg) scale(.86); }
  60% { transform: rotate(45deg) scale(1); }
  84% { left: calc(100% - 18px); opacity: 1; transform: rotate(45deg) scale(1); }
  88% { transform: rotate(45deg) scale(1.12); }
  92%, 100% { left: calc(100% - 18px); opacity: 0; transform: rotate(45deg) scale(.78); }
}
@keyframes login-station-cycle {
  0%, 14%, 100% { background: #fffaf1; box-shadow: 0 0 0 2px var(--editorial-orange); transform: rotate(45deg) scale(1); }
  5% { background: var(--editorial-green); box-shadow: 0 0 0 2px var(--editorial-orange), 0 0 0 6px rgba(23,24,19,.12); transform: rotate(45deg) scale(1.24); }
}

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { width: 190px; }
  .main-stage { padding-left: 34px; padding-right: 28px; }
  .topbar { align-items: flex-start; }
  .top-actions { max-width: 62%; flex-wrap: wrap; justify-content: flex-end; }
  .run-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .control-strip { grid-template-columns: 1fr !important; }
  .control-strip .metrics.admin-metrics { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { background-size: 22px 22px, 22px 22px, auto, auto; }
  .app-shell { display: block; }
  .sidebar { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; width: 100%; height: auto; padding: 10px 12px; box-shadow: 0 5px 0 var(--editorial-orange); }
  .logo { display: flex; min-height: 0; margin: 0; padding: 0; border: 0; }
  .sidebar-brand-mark { width: 90px; height: 36px; }
  .logo .sidebar-brand-name { width: auto; text-align: left; font-size: 20px; }
  .sidebar nav { display: flex; min-width: 0; margin-left: 0; overflow-x: auto; }
  .sidebar-character-stage { display: none; }
  .sidebar .nav-item { display: block; min-width: 128px; padding: 12px 14px; text-align: center; white-space: nowrap; }
  .sidebar .nav-index { display: none; }
  .sidebar-foot { display: none; }
  .main-stage { padding: 28px 18px 60px; }
  .topbar { display: grid; gap: 22px; }
  .top-actions { max-width: none; justify-content: flex-start; }
  .topbar h1 { font-size: 52px; }
  .control-strip .metrics, .metrics.admin-metrics, .control-strip .metrics.admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .run-grid, .project-grid, .analytics-layout { grid-template-columns: 1fr !important; }
  .record-filters { grid-template-columns: 1fr 1fr !important; }
  .login-body { padding: 15px; overflow: auto; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; box-shadow: 7px 7px 0 var(--editorial-ink); }
  .login-brand { min-height: 500px; padding: 34px; }
  .login-logo-lockup { grid-template-columns: minmax(260px, 1.2fr) auto; gap: 16px; padding: 13px 16px; }
  .login-logo-symbol { min-width: 260px; height: 96px; }
  .login-logo-lockup strong { font-size: 44px; }
  .login-panel { border-left: 0; border-top: 2px solid var(--editorial-ink); padding: 50px 34px; }
  .login-panel > .login-character-stage { top: 42px; right: 42px; width: 100px; height: 100px; }
  .login-character-stage .autodev-orb,
  .login-character-stage .autodev-orb-fallback { width: 96px !important; height: 96px !important; }
  .login-brand h1 { font-size: 66px; }
  .detail-drawer { width: min(720px, 96vw); }
  .devcore-stream-panel { right: 0; width: 100vw; min-width: 0; }
}

@media (max-width: 620px) {
  .top-actions .clock, .project-guide { display: none; }
  .metrics, .control-strip .metrics, .metrics.admin-metrics { grid-template-columns: 1fr 1fr; }
  .run-grid { grid-template-columns: 1fr; }
  .record-filters, .form-grid, .recipient-group, .delivery-choice-grid { grid-template-columns: 1fr !important; }
  .span-2 { grid-column: auto; }
  .modal { padding: 25px 20px; }
  .modal::before { margin: -25px -20px 20px; }
  .login-brand { min-height: 430px; }
  .login-logo-lockup { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 10px 12px 14px; }
  .login-logo-symbol { width: min(240px, 100%); min-width: 0; height: 80px; }
  .login-logo-lockup strong { font-size: 34px; }
  .login-brand h1 { font-size: 54px; }
  .delivery-loop { margin-top: 45px; }
  .loop-labels { gap: 4px; font-size: 8px; }
  .login-panel > .login-character-stage { top: 34px; right: 24px; width: 78px; height: 78px; }
  .login-character-stage .autodev-orb,
  .login-character-stage .autodev-orb-fallback { width: 74px !important; height: 74px !important; }
  .login-panel > div:not(.login-character-stage) { max-width: calc(100% - 86px); }
  .sidebar { grid-template-columns: 90px minmax(0, 1fr); }
}

@media (max-width: 1000px) {
  .login-film { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-film-video { display: none; }
  .loop-progress::after,
  .loop-rail i,
  .loop-rail b { animation: none !important; }
  .loop-progress::after { width: 100%; opacity: .22; }
  .loop-rail b { left: calc(100% - 18px); }
}

/* Full-bleed login film: preserve the delivery-line footage and keep all UI in its quiet right field. */
.login-body {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: #171813;
}
.login-shell {
  display: flex;
  justify-content: flex-end;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.login-film {
  display: block;
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ebe7df;
  background-position: left center;
  background-size: cover;
}
.login-film::before,
.login-film::after,
.login-film-grid,
.login-film-index { display: none; }
.login-film-video {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  object-position: left center;
  filter: none;
}
.login-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vh, 24px);
  width: clamp(400px, calc(100vw - 116.667vh), 680px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(28px, 4vh, 48px) clamp(32px, 3vw, 54px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 0;
  border-left: 2px solid var(--editorial-ink);
  color: var(--editorial-ink);
  background: #fbf8f0;
  box-shadow: -12px 0 30px rgba(23,24,19,.12);
  backdrop-filter: none;
  container-type: inline-size;
}
.login-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.login-panel::before {
  content: "SECURE ENTRY / 01";
  left: auto;
  right: 18px;
  top: 22px;
  bottom: auto;
  width: auto;
  height: auto;
  color: rgba(23,24,19,.48);
  background: none;
  animation: none;
  pointer-events: none;
}
.login-panel > * {
  width: 100%;
  max-width: none !important;
}
.login-panel-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 21cqw, 124px);
  align-items: center;
  min-height: clamp(178px, 21vh, 214px);
  gap: clamp(14px, 3cqw, 22px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(23,24,19,.32);
}
.login-panel-logo {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  min-width: 0;
  height: 100%;
  gap: clamp(0px, .6cqw, 4px);
  padding: 4px clamp(4px, 2cqw, 12px) 8px;
}
.login-panel-logo img {
  display: block;
  width: clamp(230px, 58cqw, 340px);
  height: clamp(84px, 19cqw, 112px);
  object-fit: contain;
  object-position: center;
}
.login-panel-logo strong {
  color: var(--editorial-ink);
  font: 900 clamp(44px, 12.5cqw, 70px)/.92 Georgia, serif;
  letter-spacing: -.065em;
  white-space: nowrap;
}
.login-panel-logo strong span { color: var(--editorial-orange); }
.login-panel-brand .login-character-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(84px, 21cqw, 124px);
  height: clamp(84px, 21cqw, 124px);
  pointer-events: none;
}
.login-panel-brand .autodev-orb,
.login-panel-brand .autodev-orb-fallback {
  width: clamp(82px, 20.5cqw, 122px) !important;
  height: clamp(82px, 20.5cqw, 122px) !important;
}
.login-panel-slogan {
  padding: 2px 0 2px 14px;
  border-left: 4px solid var(--editorial-orange);
}
.login-panel-slogan .eyebrow { margin-bottom: 7px; color: var(--editorial-orange-ink); }
.login-panel-slogan h1 {
  margin: 0;
  color: var(--editorial-ink);
  font-family: "STZhongsong", "SimSun", serif;
  font-size: clamp(28px, 7.2cqw, 42px);
  line-height: 1.05;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.login-panel .delivery-loop {
  margin: 0;
  padding: 11px 12px 9px;
  border: 1px solid rgba(23,24,19,.46);
  background: rgba(238,233,223,.78);
  box-shadow: none;
  backdrop-filter: none;
}
.login-panel .loop-rail { height: 28px; margin-top: 5px; }
.login-panel .loop-rail::before {
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
}
.login-panel .loop-progress {
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
}
.login-panel .loop-rail i {
  z-index: 2;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
}
.login-panel .loop-rail b {
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  box-shadow: inset 0 0 0 3px var(--editorial-green), 0 0 0 2px rgba(255,250,241,.72);
}
.login-panel .loop-labels { margin-top: 3px; font-size: 8px; }
.login-panel .form-stack {
  margin-top: 4px;
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid rgba(23,24,19,.32);
}
.login-panel input { min-height: 50px; }
.login-panel .btn-primary { min-height: 54px; }

@media (max-width: 1100px) {
  .login-panel {
    width: clamp(400px, 38vw, 500px);
    background: #fbf8f0;
  }
  .login-panel-brand { min-height: 168px; }
  .login-panel-logo img { width: clamp(205px, 56cqw, 248px); height: 88px; }
  .login-panel-logo strong { font-size: clamp(40px, 12cqw, 52px); }
  .login-panel-slogan h1 { font-size: 28px; }
}

@media (max-width: 620px) {
  .login-panel {
    width: 100vw;
    padding: 24px;
    border-left: 0;
    background: #fbf8f0;
  }
  .login-panel::before { display: none; }
  .login-panel-brand { grid-template-columns: minmax(0,1fr) 68px; min-height: 152px; gap: 10px; }
  .login-panel-brand .login-character-stage { width: 68px; height: 68px; }
  .login-panel-brand .autodev-orb,
  .login-panel-brand .autodev-orb-fallback { width: 66px !important; height: 66px !important; }
  .login-panel-logo img { width: clamp(170px, 53cqw, 230px); height: 74px; }
  .login-panel-logo strong { font-size: clamp(34px, 12cqw, 44px); }
  .login-panel-slogan h1 { font-size: 28px; }
  .login-panel .delivery-loop { padding-left: 9px; padding-right: 9px; }
}

@keyframes login-route-marker {
  0% { left: 0; opacity: 0; transform: rotate(45deg) scale(.76); }
  4% { left: 0; opacity: 1; transform: rotate(45deg) scale(1); }
  9% { left: 0; opacity: 1; transform: rotate(45deg) scale(1.12); }
  30% { left: calc(33.333% - 4px); opacity: 1; transform: rotate(45deg) scale(1); }
  33% { left: calc(33.333% - 4px); opacity: 1; transform: rotate(45deg) scale(.84); }
  37% { left: calc(33.333% - 4px); opacity: 1; transform: rotate(45deg) scale(1.12); }
  58% { left: calc(66.667% - 8px); opacity: 1; transform: rotate(45deg) scale(1); }
  61% { left: calc(66.667% - 8px); opacity: 1; transform: rotate(45deg) scale(.84); }
  65% { left: calc(66.667% - 8px); opacity: 1; transform: rotate(45deg) scale(1.12); }
  84% { left: calc(100% - 12px); opacity: 1; transform: rotate(45deg) scale(1); }
  88% { left: calc(100% - 12px); opacity: 1; transform: rotate(45deg) scale(1.14); }
  93%, 100% { left: calc(100% - 12px); opacity: 0; transform: rotate(45deg) scale(.78); }
}

@media (prefers-reduced-motion: reduce) {
  .login-panel .loop-rail b { left: calc(100% - 12px); }
}

/* Problem analysis: a read-only evidence desk inside the operational system. */
.analysis-launch { border-color: #276b5b !important; color: #1d5e50 !important; background: #dcebe4 !important; }
.analysis-launch:hover { border-color: var(--editorial-ink) !important; color: var(--editorial-ink) !important; background: #c7dfd4 !important; }
.task-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.task-type-choice { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 92px; padding: 14px; border: 1px solid #aaa397; background: #fffdf7; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.task-type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.task-type-choice > span:nth-of-type(2) { display: grid; gap: 4px; }
.task-type-choice b { color: var(--editorial-ink); font-size: 15px; }
.task-type-choice small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.task-type-choice > i { align-self: start; color: #8a8377; font: 800 9px Consolas,monospace; }
.task-type-symbol { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--editorial-ink); color: var(--editorial-ink); background: #eee9df; font: 800 24px/1 Georgia,serif; }
.task-type-choice:has(input:checked) { border-color: var(--editorial-orange); background: #f6ded4; box-shadow: inset 5px 0 0 var(--editorial-orange); }
.task-type-choice.analysis:has(input:checked) { border-color: #276b5b; background: #dfece6; box-shadow: inset 5px 0 0 #276b5b; }
.task-type-choice.analysis:has(input:checked) .task-type-symbol { color: #f7f4ec; border-color: #1e5c4e; background: #276b5b; }
.analysis-mode-note { display: grid; grid-template-columns: 90px 1fr; gap: 13px; align-items: center; padding: 12px 14px; border: 1px solid #679487; background: #e6f0eb; color: #244b41; }
.analysis-mode-note > i { color: #f8f5ed; background: #276b5b; padding: 7px 8px; font: 800 9px Consolas,monospace; text-align: center; }
.analysis-mode-note span { display: grid; gap: 3px; font-size: 10px; line-height: 1.55; }
.analysis-mode-note b { color: #173e34; font-size: 12px; }
.run-card.analysis-run-card { border-color: #4f786c; background: linear-gradient(145deg,#e7eee9,#f8f5ee) !important; }
.run-card.analysis-run-card::before { content: "ANALYSIS"; position: absolute; right: 13px; bottom: 9px; color: rgba(39,107,91,.11); font: 900 35px/1 Georgia,serif; letter-spacing: -.05em; }
.run-card.analysis-run-card .run-mode { color: #1f6454 !important; }
.analysis-detail-head { border-left-color: #276b5b !important; }
.delivery-option-summary.analysis-summary span { border-color: #6d988d; color: #245e51; background: #e2ece7; }
.analysis-report-panel { margin: 25px 0; border: 1px solid var(--editorial-ink); background: #fffdf7; box-shadow: 8px 8px 0 #c7c0b4; }
.analysis-report-panel > header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; padding: 20px 22px; border-bottom: 1px solid var(--editorial-ink); background: #e9e4d9; }
.analysis-report-panel h3 { max-width: 680px; margin: 5px 0 0; color: var(--editorial-ink); font: 700 18px/1.55 "STZhongsong","SimSun",serif; }
.analysis-verdicts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.analysis-verdicts span { padding: 6px 8px; border: 1px solid #8d867a; color: #4d4942; background: #fffdf7; font: 800 9px Consolas,monospace; white-space: nowrap; }
.analysis-verdicts [data-confidence=high] { border-color: #276b5b; color: #1f5d50; background: #dcebe4; }
.analysis-verdicts [data-confidence=medium] { border-color: #b57a13; color: #8f5d05; background: #fae9ba; }
.root-cause-card { display: grid; grid-template-columns: 90px 120px minmax(0,1fr); align-items: start; gap: 15px; padding: 22px; border-bottom: 1px solid #b9b2a6; background: var(--editorial-ink); color: #f7f3ea; }
.root-cause-card > span { color: #82c0ae; font: 800 9px Consolas,monospace; letter-spacing: .1em; }
.root-cause-card > b { color: #fffaf1; font-size: 14px; }
.root-cause-card > p { margin: 0; color: #e1ddd3; font-size: 13px; line-height: 1.75; }
.analysis-grid { display: grid; grid-template-columns: 1.35fr .85fr; }
.analysis-column { padding: 20px 22px; }
.analysis-column + .analysis-column { border-left: 1px solid #b9b2a6; background: #f2eee6; }
.analysis-column h4 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; color: var(--editorial-ink); font-size: 14px; }
.analysis-column h4:not(:first-child) { margin-top: 24px; padding-top: 18px; border-top: 1px solid #c8c1b5; }
.analysis-column h4 small { color: #80796e; font: 800 8px Consolas,monospace; letter-spacing: .1em; }
.analysis-column ul { margin: 0; padding-left: 18px; color: #4e4a43; font-size: 11px; line-height: 1.75; }
.analysis-evidence { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; padding: 13px 0; border-top: 1px solid #d0c9bc; }
.analysis-evidence:first-of-type { border-top: 0; }
.analysis-evidence > span { padding-top: 3px; color: #276b5b; font: 800 10px Consolas,monospace; }
.analysis-evidence > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; }
.analysis-evidence b { min-width: 0; color: #22231e; font: 700 11px Consolas,"Microsoft YaHei",sans-serif; overflow-wrap: anywhere; }
.analysis-evidence small { color: #276b5b; font-size: 9px; }
.analysis-evidence p { grid-column: 1/-1; margin: 0; color: #565149; font-size: 11px; line-height: 1.65; }
.analysis-risks { padding: 14px 22px; border-top: 1px solid #b9b2a6; background: #fff1c8; }
.analysis-risks b { color: #6d4c0c; font-size: 11px; }
.analysis-risks ul { margin: 7px 0 0; padding-left: 18px; color: #665433; font-size: 10px; line-height: 1.65; }
.analysis-report-artifact { border-color: #4f7e72 !important; background: #e4eee9 !important; }
.analysis-report-artifact > i, .analysis-report-link { color: #1e6655 !important; }

@media (max-width: 760px) {
  .task-type-selector, .analysis-grid { grid-template-columns: 1fr; }
  .analysis-report-panel > header { align-items: flex-start; flex-direction: column; }
  .analysis-verdicts { justify-content: flex-start; }
  .root-cause-card { grid-template-columns: 1fr; gap: 7px; }
  .analysis-column + .analysis-column { border-left: 0; border-top: 1px solid #b9b2a6; }
}

/* Delivery assurance: an editorial audit folio embedded in each task. */
.project-governance-strip { display:flex; flex-wrap:wrap; gap:5px; margin:15px 0 2px; padding:10px 0; border-top:1px solid #d4cdc0; border-bottom:1px solid #d4cdc0; }
.project-governance-strip span { display:inline-flex; align-items:center; gap:5px; padding:4px 6px; border:1px solid #b9b1a3; background:#f2ede4; color:#615b51; font:800 8px/1 Consolas,monospace; letter-spacing:.04em; }
.project-governance-strip i { width:5px; height:5px; background:#8b857b; }
.project-governance-strip .on { border-color:#60897d; color:#1e6655; background:#e4eee9; }
.project-governance-strip .on i { background:var(--editorial-green); }
.governance-panel { position:relative; margin:28px 0; border:1px solid var(--editorial-ink); background:#f8f4eb; box-shadow:8px 8px 0 #c8c0b3; }
.governance-panel::before { content:"AUDIT / 01"; position:absolute; right:17px; top:-9px; padding:3px 7px; background:var(--editorial-orange); color:var(--editorial-ink); font:900 8px Consolas,monospace; letter-spacing:.14em; }
.governance-panel > header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:20px 22px 17px; border-bottom:2px solid var(--editorial-ink); background:repeating-linear-gradient(90deg,transparent 0 119px,rgba(23,24,19,.08) 119px 120px),#e8e2d7; }
.governance-panel > header h3 { margin:2px 0 0; color:var(--editorial-ink); font:900 23px/1.05 "STZhongsong","SimSun",serif; letter-spacing:-.045em; }
.governance-panel > header > span { padding:7px 9px; border:1px solid var(--editorial-ink); background:#fffaf1; color:var(--editorial-ink); font:900 9px Consolas,monospace; }
.governance-panel > header > span[data-status="passed"] { background:#dbeae4; color:#185746; }
.governance-panel > header > span[data-status="blocked"] { background:#f1cbc4; color:#8f2821; }
.governance-panel > header > span[data-status="warning"] { background:#f3dfb1; color:#74500e; }
.governance-block { padding:18px 21px 20px; border-bottom:1px solid #bdb5a7; }
.governance-block:last-child { border-bottom:0; }
.governance-block > h4 { display:flex; align-items:baseline; gap:8px; margin:0 0 13px; color:var(--editorial-ink); font:900 14px "Microsoft YaHei UI",sans-serif; }
.governance-block > h4 small { color:var(--editorial-orange-ink); font:800 8px Consolas,monospace; letter-spacing:.12em; }
.governance-history-grid,.acceptance-ledger-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.governance-history { display:grid; grid-template-columns:29px minmax(0,1fr); gap:9px; min-width:0; padding:11px; border:1px solid #bdb5a7; background:#fffaf1; }
.governance-history > span { color:var(--editorial-orange-ink); font:900 13px Georgia,serif; }
.governance-history b,.governance-history p,.governance-history small { display:block; min-width:0; }
.governance-history b { color:var(--editorial-ink); font-size:10px; }
.governance-history p { margin:5px 0; color:#615a50; font-size:10px; line-height:1.45; }
.governance-history small { overflow:hidden; color:#8a8276; font:8px Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.acceptance-ledger-item { position:relative; padding:13px 13px 12px; border:1px solid #a9a193; border-left:5px solid #8b857b; background:#fffdf7; }
.acceptance-ledger-item[data-status="completed"] { border-left-color:var(--editorial-green); }
.acceptance-ledger-item[data-status="blocked"] { border-left-color:var(--red); background:#fae8e3; }
.acceptance-ledger-item > header { display:flex; justify-content:space-between; color:var(--editorial-orange-ink); font:900 8px Consolas,monospace; }
.acceptance-ledger-item h4 { margin:8px 0 6px; color:var(--editorial-ink); font-size:12px; line-height:1.4; }
.acceptance-ledger-item p { margin:0 0 7px; overflow-wrap:anywhere; color:#5f594f; font:9px Consolas,monospace; }
.acceptance-ledger-item small { color:#7b7469; font-size:9px; line-height:1.4; }
.quality-check { display:grid; grid-template-columns:8px minmax(0,1fr) auto; gap:10px; align-items:start; padding:10px 0; border-top:1px solid #d2cabc; }
.quality-check:first-of-type { border-top:0; }
.quality-check > i { width:8px; height:8px; margin-top:3px; background:#8b857b; }
.quality-check[data-status="passed"] > i { background:var(--editorial-green); }
.quality-check[data-status="blocked"] > i { background:var(--red); }
.quality-check[data-status="warning"] > i { background:var(--amber); }
.quality-check b { color:var(--editorial-ink); font-size:11px; }
.quality-check p { margin:3px 0 0; color:#686156; font-size:10px; }
.quality-check > span { color:#5e574d; font:900 8px Consolas,monospace; text-transform:uppercase; }
.invariant-row { display:grid; grid-template-columns:1fr auto; gap:4px 10px; padding:11px 0; border-top:1px solid #d2cabc; }
.invariant-row:first-of-type { border-top:0; }
.invariant-row b { color:var(--editorial-ink); font-size:11px; }
.invariant-row > span { color:var(--editorial-orange-ink); font:900 8px Consolas,monospace; }
.invariant-row p,.invariant-row small { grid-column:1/-1; margin:0; color:#686156; font-size:10px; }
.analysis-environment { margin:17px 21px 0; padding:13px 15px; border:1px solid var(--editorial-ink); border-left:7px solid var(--editorial-green); background:#e4eee9; }
.analysis-environment span,.analysis-environment b,.analysis-environment p,.analysis-environment small { display:block; }
.analysis-environment span { color:#1e6655; font:900 8px Consolas,monospace; letter-spacing:.13em; }
.analysis-environment b { margin-top:5px; color:var(--editorial-ink); font-size:13px; }
.analysis-environment p { margin:4px 0; color:#4e5e57; font-size:10px; }
.analysis-environment small { color:#6e7e76; font:8px Consolas,monospace; }
.history-conflict { margin:8px 0; padding:11px 13px; border-left:5px solid var(--amber); background:#f4e5c1; }
.history-conflict b { color:#604515; font-size:10px; }
.history-conflict p { margin:5px 0; color:#6e5629; font-size:10px; }
.history-conflict small { color:#826b3f; font-size:9px; }
.governance-report-artifact { border-color:#7d6e52 !important; background:#eee4cc !important; }
.governance-report-artifact > i { color:#75511a !important; }

@media (max-width:760px) {
  .governance-panel > header { align-items:flex-start; flex-direction:column; }
  .governance-history-grid,.acceptance-ledger-grid { grid-template-columns:1fr; }
}
