:root {
  color-scheme: dark;
  --background: #0c1016;
  --sidebar: #0a0e14;
  --card: #12171e;
  --surface: #171d25;
  --border: #293039;
  --foreground: #f1eee5;
  --muted-foreground: #a1a9ae;
  --muted: #7f8b94;
  --primary: #e4bd7d;
  --ring: #eeb553;
  --success: #81bba4;
  --warning: #e8b767;
  --destructive: #df9384;
  --accent: #94acbe;
  --font-sans:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --display:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun",
    Georgia, serif;
  --radius: 8px;
  --side: 228px;
  --topbar-height: 65px;
  --main-padding-top: 24px;
  /* The default 15px root remains proportional to the reader's browser setting. */
  font: 93.75%/1.55 var(--font-sans);
  --type-page: 2rem;
  --type-feature: 1.6rem;
  --type-dialog: 1.467rem;
  --type-section: 1.333rem;
  --type-card: 1.133rem;
  --type-lead: 1.067rem;
  --type-body: 1rem;
  --type-control: .933rem;
  --type-caption: .8rem;
  --type-figure: 2.4rem;
  --type-metric: 1.867rem;
  --type-stat: 1.333rem;
  background: var(--background);
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) {
  :root {
    --type-page: 1.6rem;
    --type-feature: 1.333rem;
    --type-dialog: 1.333rem;
    --type-section: 1.2rem;
    --type-card: 1.067rem;
    --type-figure: 2rem;
    --type-metric: 1.6rem;
    --type-stat: 1.2rem;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  isolation: isolate;
}
.galaxy-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: #120e16;
}
.galaxy-sky canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.galaxy-sky:not(.live) canvas {
  visibility: hidden;
}
.galaxy-sky:not(.live)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/galaxy-still.jpg") center / cover;
  mix-blend-mode: screen;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
input,
textarea,
summary,
a {
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
}
button,
a,
summary,
input,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.025em;
}
h1 { font-size: var(--type-page); }
h2 { font-size: var(--type-section); }
h3 {
  font-size: var(--type-lead);
  line-height: 1.55;
  font-weight: 550;
}
small,
.small {
  font-size: 12px;
  color: var(--muted-foreground);
}
p {
  color: #b8bfc1;
  line-height: 1.8;
}
::selection {
  background: #b29360;
  color: #0b0d12;
}
input,
textarea {
  caret-color: var(--primary);
}
::-webkit-scrollbar {
  width: 7px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #39404a;
}
.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  stroke-width: 1.6;
  pointer-events: none;
}
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 30;
  padding: 10px;
  background: var(--primary);
  color: #121416;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  width: var(--side);
  display: flex;
  flex-direction: column;
  z-index: 9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 27px 22px 24px;
}
.brand strong {
  font: 600 1.6rem/1.2 var(--display);
  letter-spacing: 0.12em;
}
.brand span {
  display: block;
  font:
    9px/1.8 Georgia,
    serif;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-top: 4px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 17px 18px;
  padding: 12px 13px;
  border: 1px solid #2b3137;
  border-radius: 7px;
  color: #cdd0cc;
  font-size: 13px;
}
.workspace i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.workspace small {
  margin-left: auto;
  font-size: var(--type-caption);
  color: #959d9c;
}
.sidebar nav {
  padding: 0 13px;
  overflow-y: auto;
}
.navgroup {
  margin: 8px 0 20px;
}
.navgroup > small {
  display: block;
  padding: 0 13px 9px;
  color: #899196;
  font-size: var(--type-caption);
  letter-spacing: 0.13em;
}
.navlink,
.bottomlink {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 14px;
  min-height: 41px;
  text-align: left;
  color: #b3babd;
  border-radius: 6px;
  padding: 8px 14px;
  margin: 3px 0;
}
.navlink:hover,
.bottomlink:hover,
.searchrow:hover {
  background: #191f27;
  color: var(--foreground);
}
.navlink.current {
  color: #ebc78f;
  background: #27241f;
}
.navlink b {
  margin-left: auto;
  border-radius: 4px;
  background: #3c2e22;
  color: #e3bf8a;
  min-width: 21px;
  text-align: center;
  font: 12px/21px var(--font-sans);
}
.navbottom {
  margin-top: auto;
  padding: 10px 17px 0;
}
.bottomlink {
  font-size: 13px;
  min-height: 32px;
  margin: 0;
  padding: 6px;
}
.profile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin: 11px 0 0;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.profile div {
  flex: 1;
}
.profile strong,
.profile small {
  display: block;
}
.profile strong {
  font-size: 14px;
}
.avatar,
.topavatar {
  display: grid;
  place-items: center;
  background: #3c3528;
  color: #ebcb94;
  font-family: var(--display);
  border: 1px solid #655239;
  border-radius: 50%;
  width: 35px;
  height: 35px;
}
.topavatar {
  width: 32px;
  height: 32px;
}
.bodywrap {
  margin-left: var(--side);
}
.topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 clamp(20px, 2.4vw, 45px);
  background: #0e1218;
}
.crumb,
.topactions,
.line,
.actions,
.filters,
.metricshead,
.rowmeta,
.metriclabel,
.metricfoot,
.deadline,
.footmeta,
.decisionactions,
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb {
  color: var(--muted-foreground);
  font-size: 13px;
}
.crumb strong {
  font-weight: 500;
  color: #e6e4dd;
}
.crumb i {
  color: #5b6068;
  font-style: normal;
}
.topactions {
  gap: 19px;
}
.searchbtn {
  border: 1px solid #32383e;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  color: #a7afb4;
  font-size: 12px;
}
.searchbtn kbd {
  margin-left: 18px;
  color: #8f959a;
  border: 1px solid #353a42;
  font: 11px/1.2 system-ui;
  padding: 2px 4px;
  border-radius: 3px;
}
.topdate {
  font-size: 12px;
  color: #a0a8af;
  white-space: nowrap;
}
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  width: 33px;
  height: 33px;
  border-radius: 6px;
}
.iconbtn:hover {
  background: var(--surface);
}
.hamburg,
.scrim {
  display: none;
}
main {
  max-width: 1740px;
  margin: 0 auto;
  padding: var(--main-padding-top) clamp(20px, 2.4vw, 45px) 42px;
  outline: none;
}
main:focus {
  outline: 0;
}
.btn,
.plain,
.textlink,
.more,
.back,
.picktrigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  background: #1b2128;
  border: 1px solid #343b43;
  border-radius: 6px;
  color: #e2e4df;
}
.btn:hover,
.choice:hover,
.picktrigger:hover {
  border-color: #7e725c;
  background: #252a2e;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #201c17;
  font-weight: 650;
}
.btn.primary:hover {
  background: #f0cf98;
}
.btn.glass {
  background: #202522;
  border-color: #55564b;
  color: #e5e1d5;
}
.btn.subtle {
  background: transparent;
  min-height: 34px;
  padding: 6px 11px;
}
.plain,
.more,
.textlink,
.back {
  padding: 4px 0;
  font-size: 13px;
}
.more {
  color: #b6b5a9;
  flex-direction: row-reverse;
}
.textlink,
.back,
.plain {
  color: var(--primary);
}
.back {
  margin-bottom: 9px;
}
.more:hover,
.textlink:hover,
.stronglink:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.metricshead {
  justify-content: space-between;
  margin: 24px 0 12px;
}
.metricshead h2,
.sect h2 {
  font-size: var(--type-section);
  line-height: 1.35;
}
.segments {
  display: inline-flex;
  max-width: 100%;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
  background: #10141a;
}
.segments button {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 4px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.segments .selected {
  color: var(--primary);
  background: #282823;
}
.metricrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.metric {
  position: relative;
  padding: 17px 20px;
  min-height: 118px;
  border-right: 1px solid var(--border);
  isolation: isolate;
}
.metric:last-child {
  border: 0;
}
.metric:hover {
  background: #191e23;
}
.metriclabel {
  font-size: 13px;
  color: #c2c7c6;
  gap: 8px;
}
.metriclabel svg {
  color: #a9ada7;
}
.metricnum {
  font:
    500 var(--type-metric)/1.2 Georgia,
    serif;
  color: #f1ede2;
  letter-spacing: -0.025em;
  margin: 6px 0;
}
.metricnum small {
  font: 13px var(--font-sans);
  margin-left: 5px;
}
.metricfoot {
  font-size: var(--type-caption);
  color: #9aa3a6;
  gap: 5px;
}
.metricfoot span {
  color: #a5c3ab;
}
.spark {
  position: absolute;
  right: 10px;
  bottom: 19px;
  width: 28%;
  height: 32px;
  z-index: -1;
}
.gold {
  color: #cfb178;
}
.blue {
  color: #8fb5cb;
}
.green {
  color: #86b79d;
}
.purple {
  color: #a6aac5;
}
.homegrid,
.grid2,
.decisiongrid {
  display: grid;
  gap: 18px;
  align-items: start;
}
.homegrid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  margin: 22px 0;
}
.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 21px 23px;
  margin: 0 0 18px;
}
.homegrid > .panel,
.grid2 > .panel,
.decisiongrid > .panel {
  margin: 0;
}
.grid2,
.decisiongrid {
  margin-bottom: 18px;
}
.sect,
.pagehead,
.line,
.item,
.resrow > div,
.goalrow > div:first-child,
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sect {
  margin: 0 0 16px;
}
.sect h2 sup {
  font: 12px var(--font-sans);
  color: #d3b683;
  background: #302b22;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
}
.sect p,
.pagehead p {
  font-size: 14px;
  margin-top: 4px;
}
.order {
  font:
    italic var(--type-stat) Georgia,
    serif;
  color: #9c8b6b;
  align-self: center;
}
.decisionrow {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.decisionrow:hover h3 {
  color: var(--primary);
}
.decisionrow:last-child {
  padding-bottom: 4px;
}
.rowmeta {
  gap: 7px;
}
.rowmeta small {
  font-size: var(--type-caption);
}
.decisionrow h3 {
  margin-top: 5px;
  font-size: 16px;
}
.deadline {
  font-size: var(--type-caption);
  color: var(--muted-foreground);
  gap: 4px;
  white-space: nowrap;
}
.decisionrow > .icon {
  color: #8c958e;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--type-caption);
  line-height: 17px;
  background: #222933;
  border: 1px solid #383f46;
  padding: 1px 6px;
  border-radius: 4px;
  color: #c4cacd;
  white-space: nowrap;
}
.tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.tag.red {
  color: #e4a091;
  border-color: #563c38;
  background: #2a211f;
}
.tag.amber {
  color: #dfbd82;
  border-color: #4d4635;
  background: #27241d;
}
.tag.green {
  color: #9ac6ac;
  border-color: #384c42;
  background: #1c2922;
}
.tag.blue {
  color: #a7c4d4;
  border-color: #394851;
  background: #202932;
}
.goalrow {
  display: block;
  padding: 10px 0;
}
.goalrow:first-of-type {
  padding-top: 3px;
}
.goalrow strong {
  flex: 1;
  font-size: 14px;
  font-weight: 450;
}
.goalrow small {
  font:
    var(--type-caption) Georgia,
    serif;
  color: #c7b68e;
}
.goalrow b {
  font:
    17px Georgia,
    serif;
}
.goalrow em {
  font-size: var(--type-caption);
  font-style: normal;
  color: #adb4b4;
}
.bar {
  height: 4px;
  background: #262e34;
  border-radius: 3px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #bca476;
  border-radius: 3px;
}
.bar.cool i {
  background: #8bafbd;
}
.bar.sage i {
  background: #84a994;
}
.bar.slate i {
  background: #989bb3;
}
.bar.red i {
  background: #c38b79;
}
.goalrow .bar {
  margin-top: 8px;
}
.footmeta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.pagehead {
  margin: 9px 0 25px;
  flex-wrap: wrap;
}
.pagehead h1 {
  font-size: var(--type-page);
  line-height: 1.35;
}
.pagehead p {
  max-width: 65ch;
}
.grid2 {
  grid-template-columns: 1fr 1fr;
}
.decisiongrid {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
}
.minis {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  margin: 0 0 20px;
}
.minis > div {
  flex: 1;
  min-width: 115px;
  padding: 15px 18px;
}
.minis small,
.minis strong,
.item small,
.tablewrap td small,
.ganttrow small {
  display: block;
}
.minis strong {
  font-size: var(--type-stat);
  font-weight: 550;
  color: #ebd9b6;
}
.panel .minis {
  margin-top: 16px;
  background: transparent;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin: 0 0 20px;
}
.tabs a {
  padding: 8px 13px 12px;
  color: var(--muted-foreground);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tabs a[aria-current],
.tabs a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.pagehead:has(+ .strategy-views) {
  margin: 5px 0 15px;
}
.strategy-views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 31.5rem);
  gap: 3px;
  padding: 4px;
  margin: 0 0 17px;
  background: var(--sidebar);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.strategy-views a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  border-radius: 6px;
  color: #c4c9cd;
  text-decoration: none;
}
.strategy-views svg {
  flex: none;
  color: var(--muted-foreground);
}
.strategy-views strong,
.strategy-views small {
  display: block;
  white-space: nowrap;
}
.strategy-views strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.strategy-views small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-foreground);
}
.strategy-views a:not([aria-current]):hover {
  background: var(--surface);
  color: var(--foreground);
}
.strategy-views a[aria-current] {
  background: #e6c992;
  color: #29231a;
}
.strategy-views a[aria-current] small,
.strategy-views a[aria-current] svg {
  color: #58472d;
}
.strategy-views a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .strategy-views { width: 100%; gap: 2px; padding: 3px; margin-bottom: 13px; }
  .strategy-views a { min-height: 48px; gap: 6px; }
  .strategy-views svg { width: 16px; height: 16px; }
  .strategy-views strong { font-size: 14px; }
}
.item {
  padding: 15px 0;
  border-top: 1px solid var(--border);
}
.item:first-child {
  border-top: 0;
}
.item > div:first-child,
.goalrow,
.stronglink {
  overflow-wrap: anywhere;
}
.item p,
.detail p,
.panel > p {
  font-size: 14px;
}
.item p {
  white-space: pre-line;
}
.item small {
  margin-bottom: 4px;
}
.item > .actions,
.item > .btn,
.item > .tag {
  flex-shrink: 0;
}
.line {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.actions,
.filters,
.decisionactions {
  flex-wrap: wrap;
}
.choice.active {
  background: #282720;
  box-shadow: inset 0 0 0 1px #544a37;
}
.detail > h2 {
  font-size: var(--type-feature);
  margin: 13px 0 5px;
}
.detail > h3 {
  font-size: 15px;
  margin: 20px 0 5px;
  color: #d8c7a7;
}
.detail .textlink {
  margin-bottom: 10px;
}
.detail .verdict {
  margin: 21px 0;
}
.verdict,
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.verdict {
  padding: 16px;
  background: #25251f;
  border-radius: 7px;
  color: #e9cb92;
}
.verdict p {
  margin-top: 5px;
  color: #d4d0c4;
}
.notice {
  font-size: 13px;
  color: #b3bab9;
  background: #171d22;
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 14px;
}
.notice svg {
  margin-top: 3px;
  color: #b5a37e;
}
.decisionactions {
  padding-top: 20px;
}
.evidencelink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #363e44;
  border-radius: 5px;
  padding: 6px 9px;
  margin: 4px 6px 4px 0;
  font-size: 13px;
  color: #c8d1d3;
}
.evidencelink:hover {
  border-color: var(--primary);
}
details {
  border-top: 1px solid var(--border);
  padding: 13px 0;
}
summary {
  cursor: pointer;
  color: #dedccc;
  font-size: 14px;
}
details p {
  margin: 9px 0;
}
.empty {
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
}
.empty p {
  font-size: 14px;
  margin: 5px 0;
}
.tablewrap {
  max-width: 100%;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  font-weight: 450;
  color: var(--muted-foreground);
  text-align: left;
  font-size: 12px;
  background: #171d22;
}
th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th:first-child,
td:first-child {
  padding-left: 6px;
}
.stronglink {
  font-weight: 550;
}
.tblprogress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tblprogress .bar {
  width: 48px;
}
.tablewrap td small {
  margin-top: 3px;
}
.tablefilter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.filters {
  justify-content: space-between;
  margin-bottom: 12px;
}
.matrix,
.methodgrid,
.choices,
.phases {
  display: grid;
  gap: 10px;
}
.matrix {
  grid-template-columns: 1fr 1fr;
  background: #242b30;
  gap: 1px;
  border: 1px solid var(--border);
  margin: 12px 0;
}
.matrix > div {
  background: #151c20;
  padding: 12px;
  min-height: 90px;
}
.matrixnode {
  display: block;
  color: #ddcba7;
  font-size: 13px;
  margin-top: 6px;
}
.riskaxes > div {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 13px;
}
.riskaxes b {
  font-weight: 450;
}
.resrow {
  margin-bottom: 16px;
}
.resrow .bar {
  margin: 6px 0;
}
.choices {
  grid-template-columns: repeat(3, 1fr);
}
.choice {
  justify-content: center;
  border: 1px solid var(--border);
  padding: 18px 10px;
  border-radius: 6px;
}
.methodgrid {
  grid-template-columns: repeat(3, 1fr);
}
.methodgrid > div {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.methodgrid p {
  font-size: 14px;
  margin: 4px 0 10px;
}
.phases {
  grid-template-columns: repeat(5, 1fr);
}
.phases summary strong,
.phases summary small {
  display: block;
}
.phases summary strong {
  font-size: var(--type-card);
}
.spaced {
  margin: 0 0 18px;
}
.gantthead,
.ganttrow {
  display: grid;
  grid-template-columns: minmax(110px, 32%) 1fr;
  align-items: center;
  gap: 10px;
}
.gantthead span {
  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-size: 12px;
}
.gantthead i {
  font-style: normal;
}
.ganttrow {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.track {
  position: relative;
  height: 24px;
  background: #1b2228;
  border-radius: 4px;
}
.track > i {
  position: absolute;
  top: 6px;
  bottom: 6px;
  background: #524d3e;
  border-radius: 3px;
}
.track b {
  display: block;
  height: 100%;
  background: #b79c68;
  border-radius: 3px;
}
.longtext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tablefilter input {
  flex: 1;
  min-width: 0;
}
dialog {
  padding: 0;
  width: min(560px, calc(100% - 26px));
  max-height: 88dvh;
  color: var(--foreground);
  background: #13181f;
  border: 1px solid #424951;
  border-radius: 12px;
  overflow: visible;
}
dialog::backdrop {
  background: rgba(1, 4, 8, 0.76);
}
.locked {
  overflow: hidden;
}
.modalhead,
.modalbody,
dialog footer {
  padding: 18px 23px;
}
.modalhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.modalhead h2 {
  font-size: var(--type-dialog);
}
.modalhead p {
  font-size: 13px;
  margin-top: 3px;
}
.modalbody {
  max-height: calc(85dvh - 150px);
  overflow-y: auto;
}
.modalbody > h3 {
  margin-top: 15px;
}
.modalhead .iconbtn {
  flex-shrink: 0;
}
.modalbody .longtext {
  font-size: 15px;
  line-height: 1.9;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  color: #c5cbc8;
  margin-bottom: 6px;
}
input:not([type="hidden"]),
textarea,
.picktrigger {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #39414a;
  border-radius: 6px;
  background: #0e1319;
  color: var(--foreground);
  line-height: 1.5;
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
.formpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.picker {
  position: relative;
}
.picktrigger {
  justify-content: space-between;
  text-align: left;
}
.pickopts {
  position: relative;
  max-height: 190px;
  overflow: auto;
  background: #1c232b;
  border: 1px solid #48515a;
  border-radius: 6px;
  padding: 4px;
  z-index: 2;
  margin-top: 4px;
}
.pickopts button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 3px;
}
.pickopts button[aria-selected="true"] {
  color: var(--primary);
}
.pickopts button[aria-selected="true"]::after {
  content: "✓";
  float: right;
}
.pickopts button:hover,
.pickopts button:focus {
  background: #303431;
}
.pickopts[hidden] {
  display: none;
}
dialog footer {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.formerror {
  color: var(--destructive);
  font-size: 14px;
}
.formerror:not(:empty) {
  margin-top: 12px;
}
.searchrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.searchrow strong {
  flex: 1;
  font-size: 14px;
}
.rolelist button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  margin: 6px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 100%;
}
.rolelist button div {
  flex: 1;
}
.rolelist svg {
  color: var(--primary);
}
.rolelist p {
  font-size: 13px;
}
.pager {
  justify-content: flex-end;
  color: var(--muted-foreground);
  font-size: 13px;
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 12px);
  border-radius: 7px;
  background: #e9d3a7;
  color: #241f17;
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition:
    opacity 0.16s,
    transform 0.16s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.navlink,
.btn,
.goalrow,
.decisionrow,
.choice {
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}
@media (min-width: 1600px) {
  :root {
    --side: 244px;
  }
  .metric {
    padding: 21px 25px;
  }
  .decisionrow {
    padding: 20px 0;
  }
}
@media (max-width: 1190px) {
  :root {
    --side: 206px;
  }
  .topdate {
    display: none;
  }
  .homegrid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .decisionrow {
    grid-template-columns: 20px 1fr 13px;
    gap: 8px;
  }
  .decisionrow .deadline {
    display: none;
  }
  .spark {
    width: 22%;
  }
  .panel {
    padding: 18px;
  }
  .metric {
    padding: 15px;
  }
}
@media (max-width: 1023px) {
  :root {
    --side: 228px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .navopen .sidebar {
    transform: translateX(0);
  }
  .navopen .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 8;
    width: 100%;
    height: 100%;
  }
  .bodywrap {
    margin-left: 0;
  }
  .hamburg {
    display: inline-flex;
  }
  .homegrid {
    grid-template-columns: 1.28fr 1fr;
  }
  .brand {
    padding-top: 20px;
  }
  .navgroup {
    margin-bottom: 12px;
  }
  .decisiongrid {
    grid-template-columns: 230px 1fr;
  }
}
@media (max-width: 767px) {
  :root {
    --topbar-height: 54px;
    --main-padding-top: 14px;
  }
  .topbar {
    padding: 0 12px;
  }
  .topactions {
    gap: 7px;
  }
  .searchbtn {
    border: 0;
    padding: 8px;
  }
  .searchbtn span,
  .searchbtn kbd,
  .deskcrumb,
  .topdate {
    display: none;
  }
  main {
    padding: var(--main-padding-top) 13px 34px;
  }
  .metricshead {
    margin: 18px 0 8px;
  }
  .segments button {
    padding: 5px 9px;
  }
  .metricrow {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    min-height: 101px;
    padding: 12px 14px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .metricnum {
    margin: 2px 0;
  }
  .spark {
    width: 24%;
    bottom: 14px;
  }
  .homegrid,
  .grid2,
  .decisiongrid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .homegrid {
    margin: 16px 0;
  }
  .panel {
    padding: 16px;
    margin-bottom: 13px;
  }
  .decisionrow {
    grid-template-columns: 22px 1fr 15px;
    padding: 13px 0;
  }
  .decisionrow h3 {
    font-size: 15px;
  }
  .sect {
    margin-bottom: 12px;
  }
  .footmeta {
    display: block;
  }
  .footmeta span {
    display: block;
  }
  .pagehead {
    margin: 4px 0 17px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .tabs {
    gap: 0;
  }
  .tabs a {
    padding: 9px 10px;
    font-size: 13px;
  }
  .minis {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .minis > div {
    padding: 10px 12px;
    min-width: 0;
  }
  .item {
    flex-wrap: wrap;
    gap: 7px;
  }
  .item .actions {
    flex-shrink: 1;
  }
  .methodgrid,
  .phases {
    grid-template-columns: 1fr 1fr;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  .choice {
    padding: 11px;
  }
  .modalhead,
  .modalbody,
  dialog footer {
    padding: 14px 16px;
  }
  .modalbody {
    max-height: calc(87dvh - 145px);
  }
  .btn,
  .navlink,
  .iconbtn,
  .segments button,
  .pickopts button,
  .more,
  .textlink,
  .plain,
  .evidencelink {
    min-height: 44px;
  }
  .more {
    font-size: 12px;
  }
  .searchrow small {
    max-width: 75px;
  }
  .decisiongrid:has(.detail) > .panel:first-child {
    max-height: 245px;
    overflow: auto;
  }
  .tablewrap table {
    font-size: 13px;
  }
  .tablewrap:has(.tblprogress) thead {
    display: none;
  }
  .tablewrap:has(.tblprogress) tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .tablewrap:has(.tblprogress) td {
    display: none;
    border: 0;
    padding: 4px 0;
    white-space: normal;
  }
  .tablewrap:has(.tblprogress) td:nth-child(-n + 3) {
    display: block;
  }
  .tablewrap:has(.tblprogress) td:nth-child(3) {
    grid-column: 1/-1;
  }
  .tablewrap:has(.tblprogress) .bar {
    width: 65%;
  }
  .topavatar {
    width: 36px;
    height: 36px;
  }
  .btn.subtle {
    min-height: 44px;
  }
  .formpair {
    grid-template-columns: 1fr;
  }
  .sidebar {
    overflow: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.navgroup {
  margin-bottom: 16px;
}
.navbottom {
  padding-top: 5px;
}
.brand {
  padding-top: 22px;
  padding-bottom: 20px;
}
.workspace {
  margin-bottom: 12px;
}
@media (min-width: 1024px) and (max-height: 800px) {
  .navlink {
    min-height: 37px;
  }
  .brand {
    padding-top: 19px;
    padding-bottom: 17px;
  }
  .navgroup {
    margin-bottom: 12px;
  }
}
.mobileback {
  display: none;
}
.memoryflow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 22px;
}
.memoryflow > div {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #c8b892;
}
.memoryflow > div:not(:last-child):after {
  content: "";
  height: 1px;
  flex: 1;
  margin: 0 14px;
  background: #3b3d36;
}
@media (max-width: 767px) {
  .caseflow.caselIST > .detail,
  .caseflow.caselist > .detail,
  .caseflow.casechosen > .panel:first-child {
    display: none;
  }
  .caseflow.caselist:has(.detail) > .panel:first-child {
    max-height: none;
  }
  .mobileback {
    display: inline-flex;
  }
  .memoryflow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .memoryflow > div:after {
    display: none;
  }
}

.mirrors {
  grid-template-columns: repeat(4, 1fr);
}
.mirrors details {
  padding: 10px;
}
.mirrors h3 {
  margin: 8px 0;
}
@media (max-width: 767px) {
  .mirrors {
    grid-template-columns: 1fr 1fr;
  }
}
.relrow {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 2fr;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  gap: 20px;
}
.relrow strong,
.relrow small {
  display: block;
}
.relrow > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.relrow a {
  border: 1px solid #404540;
  border-radius: 6px;
  padding: 8px 14px;
  color: #e5d4ac;
}
.relrow a:hover {
  border-color: var(--primary);
}
.metrictitle {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.metrictitle small {
  font-size: var(--type-caption);
}
@media (max-width: 767px) {
  .relrow {
    grid-template-columns: 1fr;
  }
  .metrictitle {
    display: block;
  }
}
.exhibitshortcut {
  color: var(--primary);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 0;
}
.exhibitshortcut:hover {
  text-decoration: underline;
}
@media (max-width: 540px) {
  .exhibitshortcut {
    font-size: 12px;
  }
  .exhibitshortcut .icon {
    display: none;
  }
}

.domain-notes { white-space: pre-line; }
