:root {
  color-scheme: light;
  --ink: #201c21;
  --muted: #645d66;
  --plum: #55364f;
  --plum-deep: #44283f;
  --plum-soft: #eee6ef;
  --line: #e2dde1;
  --paper: #fffefe;
  --canvas: #fbfaf9;
  --quiet: #f6f3f5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC',
    'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--canvas);
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  background: transparent;
  border: 0;
}
a {
  color: var(--plum);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
:focus-visible {
  outline: 3px solid #96768e;
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(1.7rem, 2.36vw, 2.25rem);
  font-weight: 720;
}
h2 {
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  font-weight: 680;
}
h3 {
  font-size: clamp(1.05rem, 1.36vw, 1.28rem);
  font-weight: 660;
}
.icon {
  width: 1.23em;
  height: 1.23em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.chevron {
  height: 1em;
  width: 1em;
}
.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 0.4rem;
  left: 1rem;
  z-index: 12;
  border-radius: 0.4rem;
  background: white;
  padding: 0.6rem 1rem;
}
#app {
  min-height: 100vh;
}
.topbar {
  height: 55px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px 0 23px;
  background: #f9f7f7;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--plum);
  font-size: clamp(31px, 2.5vw, 39px);
  line-height: 1;
  letter-spacing: -0.055em;
}
a.wordmark:hover {
  text-decoration: none;
}
.brand-divider {
  height: 26px;
  width: 1px;
  background: #cfc6cc;
  margin-left: 2px;
}
.demo-label {
  font-size: clamp(14px, 1.17vw, 18px);
  color: #454046;
  white-space: nowrap;
}
.demo-label strong {
  font-weight: 530;
}
.top-tools {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}
.date {
  font-variant-numeric: tabular-nums;
  color: #585159;
  font-size: 0.93rem;
  white-space: nowrap;
}
.role-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--plum);
  border: 1px solid #dcd2da;
  border-radius: 5px;
  background: #fcfafc;
  padding: 5px 9px;
  font-size: 0.81rem;
  min-height: 34px;
}
.role-picker:hover,
.icon-button:hover,
.subtle:hover {
  background: var(--plum-soft);
}
.shell {
  --rail: clamp(76px, 6.65vw, 99px);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: calc(100vh - 55px);
}
.shell.rail-wide {
  --rail: 172px;
}
.side-nav {
  border-right: 1px solid var(--line);
  background: #f9f7f7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 21px 10px 14px;
  min-width: 0;
}
.nav-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  min-height: 72px;
  width: 100%;
  border-radius: 8px;
  color: #2a252a;
  line-height: 1.3;
  font-size: clamp(14px, 1.23vw, 18px);
}
.nav-item .icon {
  width: 23px;
  height: 23px;
}
.nav-item:hover {
  background: #f0ecef;
  text-decoration: none;
}
.nav-item.selected {
  color: var(--plum-deep);
  background: #e9dfeb;
  font-weight: 650;
}
.nav-full {
  display: none;
}
.rail-wide .nav-short {
  display: none;
}
.rail-wide .nav-full {
  display: block;
}
.rail-wide .nav-item {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 0 13px;
  text-align: left;
  font-size: 0.98rem;
}
.nav-bottom {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-direction: column;
  margin-top: auto;
}
.nav-tool {
  color: var(--muted);
  min-height: 34px;
}
.nav-tool .icon {
  width: 17px;
  height: 17px;
}
.rail-wide .nav-bottom {
  align-items: stretch;
}
main {
  min-width: 0;
  outline: none;
}
.plan-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 55px);
}
.page-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}
.plan-title {
  padding: 28px 30px 22px;
  min-height: 106px;
}
.page-heading p {
  color: #514b51;
  line-height: 1.55;
}
.plan-title p {
  font-size: clamp(0.89rem, 1.15vw, 1.11rem);
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--sources, 18.45%)) minmax(0, 1fr) minmax(0, var(--progress, 30.65%));
  gap: 7px;
  margin: 0 7px 16px 5px;
  flex: 1;
  min-height: min(730px, calc(100vh - 178px));
}
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cfc2ce transparent;
  flex: 1;
  min-height: 0;
}
.references {
  padding: 20px 11px 0;
}
.references h2 {
  padding: 1px 11px 14px;
  border-bottom: 1px solid var(--line);
}
.rail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.rail-title h2 {
  border: 0;
}
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  color: var(--muted);
  border-radius: 4px;
}
.mini-link:hover {
  background: var(--plum-soft);
}
.mini-link .icon {
  width: 15px;
  height: 15px;
}
.rail-group {
  padding: 15px 0 23px;
  border-bottom: 1px solid var(--line);
}
.rail-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  line-height: 1.4;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: clamp(0.95rem, 1.24vw, 1.16rem);
}
.rail-row .icon {
  color: var(--plum);
  width: 20px;
  height: 20px;
}
.rail-row:hover,
.step-copy:hover,
.panel-row:hover,
.line-row:is(a, button):hover {
  background: #f6f2f5;
}
.rail-row.selected {
  background: #ede5ef;
  color: var(--plum-deep);
  font-weight: 650;
}
.references .subheading {
  border: 0;
  margin-top: 30px;
  padding-bottom: 15px;
}
.source-rail .rail-row {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  min-height: 50px;
}
.source-rail .rail-row:last-child {
  border-bottom: 0;
}
.panel-foot {
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.03vw, 0.99rem);
  padding: 12px 10px;
  line-height: 1.4;
}
.foot-link {
  color: var(--plum);
  margin-top: auto;
}
.grip {
  position: absolute;
  z-index: 1;
  top: 47%;
  width: 8px;
  height: 27px;
  background: #fdfbfc;
  border: 1px solid #d9d3d7;
  border-radius: 4px;
  padding: 0;
  cursor: col-resize;
  touch-action: none;
}
.grip:after {
  content: '';
  display: block;
  width: 3px;
  height: 11px;
  border-left: 1px solid #a69ea4;
  border-right: 1px solid #a69ea4;
  margin: auto;
}
.grip-right {
  right: -6px;
}
.grip-left {
  left: -7px;
}
.plan-center {
  padding: 20px 18px 14px;
}
.plan-copy {
  flex: 1;
}
.plan-heading h2 {
  font-size: clamp(1.36rem, 1.9vw, 1.95rem);
  font-weight: 700;
}
.meta,
.muted,
.small,
.row-copy small {
  color: var(--muted);
}
.meta {
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  margin-top: 4px;
}
.dot {
  padding: 0 8px;
}
.objective {
  background: #f1edf2;
  padding: 17px 16px;
  line-height: 1.5;
  border-radius: 8px;
  margin: 21px 0 28px;
  font-size: clamp(1rem, 1.32vw, 1.23rem);
  font-weight: 520;
}
.plan-list-heading,
.block-heading,
.actions,
.plan-actions,
.form-footer,
.inline-links,
.candidate-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-list-heading,
.block-heading,
.candidate-strip {
  justify-content: space-between;
}
.plan-list-heading {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.plan-list-heading h3,
.decision-summary h3 {
  font-size: clamp(1.12rem, 1.52vw, 1.45rem);
}
.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 530;
  line-height: 1.4;
}
.button {
  border-radius: 6px;
  padding: 9px 15px;
  min-height: 39px;
  font-size: 0.95rem;
}
.button:hover {
  text-decoration: none;
}
.button.primary {
  color: white;
  background: var(--plum);
  border: 1px solid var(--plum);
  font-weight: 620;
}
.button.primary:hover {
  background: var(--plum-deep);
}
.button.secondary {
  border: 1px solid #d9cfd6;
  background: var(--paper);
  color: var(--plum-deep);
}
.button.secondary:hover {
  background: #f3edf2;
  border-color: #c3b1bf;
}
.button.danger {
  background: #f6ebe9;
  border: 1px solid #e3cbc6;
  color: #8a382d;
}
.button.danger:hover {
  background: #f3e0dc;
}
.button.subtle,
.text-link {
  color: var(--muted);
}
.button.subtle {
  padding: 5px 7px;
  min-height: 34px;
}
.button.inline {
  font-size: inherit;
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  min-height: 30px;
  text-align: left;
}
.button.inline:hover {
  color: #2b142b;
}
.button.inline span,
.step-copy strong,
.step-copy small,
.source-rail span,
.row-copy,
.panel-row span,
.info-grid dd {
  overflow-wrap: anywhere;
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.steps {
  list-style: none;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: 33px minmax(0, 1.4fr) minmax(0, 0.82fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 3px;
  min-height: 77px;
  border-bottom: 1px solid var(--line);
}
.step-number {
  width: 31px;
  height: 32px;
  border-radius: 7px;
  background: #f5f1f4;
  color: var(--plum);
  font-weight: 650;
  display: grid;
  place-items: center;
}
.step-copy {
  min-width: 0;
  text-align: left;
  padding: 4px 0;
  border-radius: 3px;
}
.step-copy strong,
.step-copy small {
  display: block;
  line-height: 1.4;
}
.step-copy strong {
  font-size: clamp(1.03rem, 1.34vw, 1.28rem);
  font-weight: 660;
}
.step-copy small {
  font-size: clamp(0.79rem, 1.05vw, 0.99rem);
  color: var(--muted);
  margin-top: 2px;
}
.step-evidence {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-size: clamp(0.77rem, 1.04vw, 0.98rem);
}
.step-evidence .button {
  justify-content: flex-start;
  gap: 5px;
}
.step-evidence .icon {
  width: 17px;
  height: 17px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0eaf1;
  border-radius: 8px;
  color: #63475f;
  font-size: 0.8rem;
  font-weight: 560;
  line-height: 1.4;
  white-space: nowrap;
  padding: 4px 8px;
}
.badge.attention {
  color: #815322;
  background: #fbefdf;
}
.badge.positive {
  color: #32554b;
  background: #e9f1ed;
}
.candidate-strip {
  padding: 10px;
  margin-top: 10px;
  font-size: 0.9rem;
  background: #f4eef4;
  border: 1px solid #dfd4de;
  border-radius: 5px;
}
.decision-summary {
  margin-top: 28px;
}
.decision-summary p {
  padding: 12px 13px;
  border-left: 4px solid var(--plum);
  background: #f5f2f4;
  border-radius: 4px;
  margin-top: 14px;
  font-size: clamp(0.93rem, 1.21vw, 1.16rem);
}
.plan-actions {
  margin: 20px 0 26px;
  flex-wrap: wrap;
}
.plan-actions .primary {
  font-size: clamp(1.03rem, 1.26vw, 1.22rem);
  min-height: 47px;
  padding-inline: 21px;
}
.composer,
.role-note {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 10px 14px;
  border: 1px solid #bfb2bc;
  border-radius: 12px;
  background: #fdfbfd;
  color: var(--plum);
}
.composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: clamp(0.96rem, 1.19vw, 1.14rem);
}
.composer:focus-within {
  outline: 2px solid #96758e;
  outline-offset: 1px;
}
.composer input::placeholder {
  color: #70666f;
}
.composer button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  color: var(--plum);
}
.role-note {
  background: var(--quiet);
  border-color: var(--line);
  font-size: 0.87rem;
}
.activity {
  padding: 17px 16px 0;
}
.activity-tabs,
.sub-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.activity-tabs button {
  padding: 3px 14px 12px;
  border-bottom: 2px solid transparent;
  color: #504951;
  font-size: clamp(1.06rem, 1.43vw, 1.4rem);
}
.activity-tabs button.active,
.sub-tabs .active {
  border-bottom-color: var(--plum);
  color: var(--plum);
  font-weight: 660;
}
.activity-group {
  padding: 24px 4px 26px;
  border-bottom: 1px solid var(--line);
}
.activity-group:last-child {
  border-bottom: 0;
}
.activity-group h3 {
  margin: 0 0 16px;
}
.panel-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  min-height: 55px;
  margin-top: 7px;
  font-size: clamp(0.94rem, 1.17vw, 1.12rem);
  line-height: 1.4;
}
.panel-row > .icon:first-child {
  color: var(--plum);
}
.panel-row span {
  flex: 1;
}
.panel-row small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}
.events > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.events time {
  color: var(--muted);
  font-size: 0.77rem;
}
.mobile-panels {
  display: none;
}
.standard {
  justify-content: space-between;
  align-items: center;
  padding: 29px 32px 19px;
}
.standard p {
  margin-top: 4px;
}
.page-content {
  padding: 0 30px 32px;
  max-width: 1680px;
}
.wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}
.wide-grid > div,
.wide-grid > aside {
  min-width: 0;
}
.card,
.finding {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.card + .card,
.finding + .finding,
.card + .block {
  margin-top: 13px;
}
.card > p {
  margin: 10px 0;
}
.block + .block {
  margin-top: 22px;
}
.block > .block-heading {
  margin-bottom: 13px;
}
.block-heading {
  flex-wrap: wrap;
}
.actions,
.form-footer,
.inline-links {
  flex-wrap: wrap;
}
.actions {
  margin-top: 14px;
}
.inline-links {
  gap: 4px 15px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 14px 20px;
  margin: 10px 0;
}
.info-grid dt {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.info-grid dd {
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.finding > p {
  margin: 9px 0;
}
.finding .info-grid {
  margin: 13px 0;
}
.line-row {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  font: inherit;
  min-height: 53px;
}
.line-row:last-child {
  border-bottom: 0;
}
.line-row:is(a, button):hover {
  text-decoration: none;
}
.line-row > .icon:first-child {
  color: var(--plum);
}
.row-copy {
  flex: 1;
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}
.row-copy strong,
.row-copy small {
  display: block;
}
.row-copy strong {
  font-weight: 590;
}
.row-copy small {
  font-size: 0.86rem;
  margin-top: 2px;
}
.line-row .chevron {
  color: var(--muted);
}
.empty {
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.91rem;
  margin: 8px 0 13px;
}
.sub-tabs {
  gap: 16px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.sub-tabs a {
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.sub-tabs a:hover {
  text-decoration: none;
  color: var(--plum);
}
.filter-box {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 10px;
}
.filter-box:focus-within {
  border-color: var(--plum);
}
.filter-box input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  background: none;
  font-size: 0.93rem;
}
#dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(590px, calc(100vw - 28px));
  max-width: none;
  max-height: min(86vh, 850px);
  overflow: auto;
  box-shadow: 0 10px 55px #2113222b;
}
#dialog::backdrop {
  background: #21192355;
}
.dialog-heading {
  padding: 19px 22px 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.dialog-heading .icon-button {
  flex: none;
}
.dialog-heading h2 {
  font-size: 1.38rem;
}
.eyebrow {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
  margin-bottom: 3px;
}
.dialog-body {
  padding: 18px 22px 22px;
}
.dialog-body > .block,
.dialog-body > .action-form,
.dialog-body > .note,
.dialog-body > .actions {
  margin-top: 16px;
}
.dialog-body .block h2 {
  font-size: 1.08rem;
}
.dialog-body .info-grid {
  margin: 3px 0 12px;
}
.dialog-back {
  padding: 0 17px 11px;
}
.document-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 0.95rem;
}
.note-list {
  padding-left: 1.4rem;
}
.note-list li + li {
  margin-top: 0.35rem;
}
.note,
.warning,
.form-error {
  border-radius: 5px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  margin: 9px 0;
}
.note {
  background: var(--plum-soft);
  color: var(--plum-deep);
}
.warning,
.form-error {
  background: #faeee8;
  color: #853d20;
}
.field {
  display: grid;
  gap: 5px;
  margin: 0 0 13px;
  min-width: 0;
}
.field > span {
  font-size: 0.9rem;
  font-weight: 620;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  max-width: 100%;
  background: white;
  border: 1px solid #cfc5cc;
  border-radius: 5px;
  padding: 8px 10px;
  min-height: 40px;
}
.field small,
.small {
  font-size: 0.82rem;
  color: var(--muted);
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}
.form-footer {
  margin-top: 12px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
}
.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--plum);
}
blockquote {
  margin: 10px 0;
  border-left: 3px solid #c7b4c4;
  background: var(--quiet);
  padding: 10px 14px;
}
blockquote footer {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 5px;
}
details {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
summary {
  cursor: pointer;
}
.welcome {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 85px);
  padding: 30px;
}
.welcome-panel {
  max-width: 710px;
  width: 100%;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.welcome-icon {
  color: var(--plum);
  font-size: 2rem;
  margin: 0 0 18px;
}
.welcome-panel h1 {
  max-width: 13em;
}
.welcome-panel > p {
  color: var(--muted);
  margin: 14px 0 20px;
}
.experience-length {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: grid;
  gap: 5px;
}
.experience-length span {
  color: var(--muted);
  font-size: 0.93rem;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
  padding: 24px;
}
.boot .wordmark {
  font-size: 48px;
}
.boot p {
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(550px, calc(100% - 28px));
  border-radius: 7px;
  padding: 9px 16px;
  color: white;
  background: #453844;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  white-space: normal;
  font-size: 0.92rem;
}
#notice.visible {
  opacity: 1;
}
#notice.error {
  background: #824b3d;
}
@media (min-width: 1190px) and (min-height: 720px) {
  .shell,
  .plan-screen {
    height: calc(100dvh - 55px);
    min-height: 0;
  }
  .standard-screen,
  .plan-copy {
    overflow: auto;
    scrollbar-width: thin;
  }
  .work-grid {
    min-height: 0;
  }
  .plan-copy {
    padding-right: 2px;
  }
}
@media (min-width: 1450px) and (min-height: 950px) {
  .references {
    padding-top: 21px;
  }
  .plan-center {
    padding: 20px 20px 15px;
  }
  .objective {
    padding: 20px 16px;
    margin: 22px 0 28px;
  }
  .step {
    min-height: 86px;
  }
  .decision-summary {
    margin-top: 35px;
  }
  .panel-foot {
    min-height: 84px;
  }
  .activity-group {
    padding-top: 30px;
    padding-bottom: 35px;
  }
  .plan-actions {
    margin-top: 22px;
  }
}
@media (min-width: 1190px) and (min-height: 880px) {
  .side-nav {
    padding-top: 25px;
  }
  .nav-main {
    gap: 20px;
  }
  .rail-wide .nav-main {
    gap: 8px;
  }
  .rail-group {
    padding-top: 18px;
    padding-bottom: 32px;
  }
  .rail-group .rail-row {
    min-height: 50px;
  }
  .rail-title h2 {
    padding-bottom: 16px;
  }
  .objective {
    margin-top: 27px;
    margin-bottom: 34px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .decision-summary {
    margin-top: 39px;
  }
  .decision-summary p {
    margin-top: 19px;
  }
  .plan-actions {
    margin-top: 29px;
  }
}
@media (max-width: 1189px) {
  .shell {
    --rail: 72px;
  }
  .side-nav {
    padding: 16px 6px 10px;
  }
  .nav-item {
    min-height: 61px;
  }
  .plan-title {
    min-height: 91px;
    padding: 22px 18px;
    gap: 12px;
  }
  .plan-title p {
    font-size: 0.85rem;
    padding-left: 11px;
  }
  .plan-center {
    padding: 16px 12px;
  }
  .references,
  .activity {
    padding-inline: 8px;
  }
  .step {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 5px;
  }
  .step-number {
    width: 24px;
    height: 27px;
  }
  .step-evidence {
    grid-column: 2;
    grid-row: 2;
    border: 0;
    padding: 0;
  }
  .step .badge {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .rail-row {
    padding: 9px 7px;
    gap: 7px;
    font-size: 0.9rem;
  }
  .objective {
    margin: 16px 0 20px;
  }
  .standard,
  .page-content {
    padding-inline: 18px;
  }
  .wide-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
    gap: 10px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    gap: 14px;
  }
  .shell,
  .shell.rail-wide {
    --rail: 70px;
  }
  .expand-nav {
    display: none;
  }
  .rail-wide .nav-item {
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }
  .rail-wide .nav-full {
    display: none;
  }
  .rail-wide .nav-short {
    display: block;
  }
  .mobile-panels {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 13px 9px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    align-self: flex-start;
  }
  .mobile-panels button {
    padding: 7px 16px;
    border-radius: 4px;
    color: var(--muted);
    min-height: 35px;
  }
  .mobile-panels button.active {
    background: var(--plum-soft);
    color: var(--plum-deep);
    font-weight: 640;
  }
  .work-grid {
    display: flex;
    margin: 0 13px 14px;
    min-height: 0;
  }
  .work-grid .panel {
    width: 100%;
    display: none;
  }
  .work-grid[data-pane='left'] .references,
  .work-grid[data-pane='center'] .plan-center,
  .work-grid[data-pane='right'] .activity {
    display: flex;
  }
  .panel-scroll {
    overflow: visible;
  }
  .plan-center,
  .references,
  .activity {
    padding: 18px;
  }
  .grip {
    display: none;
  }
  .step {
    grid-template-columns: 30px minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
    gap: 8px;
  }
  .step-evidence,
  .step .badge {
    grid-column: auto;
    grid-row: auto;
  }
  .step-evidence {
    border-left: 1px solid var(--line);
    padding-left: 10px;
  }
  .plan-title {
    min-height: 78px;
    padding-bottom: 14px;
  }
  .plan-title p {
    display: none;
  }
  .plan-actions {
    margin-bottom: 24px;
  }
  .activity-group {
    padding-block: 20px;
  }
  .references .panel-foot,
  .activity .panel-foot {
    min-height: 55px;
  }
}
@media (max-width: 700px) {
  .topbar {
    height: 53px;
    padding: 0 12px;
    gap: 10px;
  }
  .wordmark {
    font-size: 31px;
  }
  .brand-divider {
    height: 22px;
  }
  .demo-label {
    font-size: 0.77rem;
  }
  .top-tools {
    gap: 0;
  }
  .date {
    display: none;
  }
  .role-picker {
    padding: 5px 7px;
    gap: 4px;
    font-size: 0.73rem;
    min-height: 33px;
  }
  .role-picker > .icon:first-child {
    display: none;
  }
  .shell,
  .shell.rail-wide {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 53px);
  }
  .side-nav {
    padding: 4px 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 3px;
  }
  .nav-main {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 1px;
    min-width: 0;
  }
  .nav-item,
  .rail-wide .nav-item {
    min-height: 48px;
    min-width: 35px;
    width: auto;
    flex: 1;
    font-size: 0.71rem;
    font-weight: 540;
    gap: 2px;
    border-radius: 5px;
  }
  .nav-item .icon {
    width: 17px;
    height: 17px;
  }
  .nav-bottom {
    margin: 0;
    justify-content: center;
  }
  .nav-bottom .nav-tool {
    min-width: 25px;
    min-height: 38px;
  }
  .nav-bottom .expand-nav {
    display: none;
  }
  .client-nav .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 8px;
    font-size: 0.9rem;
  }
  .plan-title {
    min-height: 70px;
    padding: 17px 14px 10px;
  }
  .plan-title h1,
  .standard h1 {
    font-size: 1.46rem;
  }
  .plan-screen {
    min-height: calc(100vh - 109px);
  }
  .work-grid {
    margin: 0 8px 16px;
  }
  .mobile-panels {
    margin: 0 9px 8px;
  }
  .mobile-panels button {
    min-height: 38px;
  }
  .plan-center,
  .references,
  .activity {
    padding: 15px 12px;
  }
  .plan-heading h2 {
    font-size: 1.36rem;
  }
  .plan-list-heading h3,
  .decision-summary h3 {
    font-size: 1.12rem;
  }
  .plan-list-heading .button {
    font-size: 0.84rem;
  }
  .step {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 3px 7px;
    min-height: 75px;
    padding: 9px 0;
  }
  .step-number {
    width: 25px;
    height: 27px;
  }
  .step-copy strong {
    font-size: 1rem;
  }
  .step-evidence {
    grid-column: 2;
    grid-row: 2;
    border: 0;
    padding: 0;
  }
  .step-evidence .button {
    font-size: 0.77rem;
    min-height: 22px;
  }
  .step .badge {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .decision-summary {
    margin-top: 18px;
  }
  .decision-summary p {
    margin-top: 10px;
  }
  .plan-actions {
    margin: 14px 0 20px;
  }
  .composer {
    min-height: 57px;
  }
  .standard {
    padding: 19px 12px 13px;
    align-items: flex-start;
    gap: 8px;
  }
  .standard p {
    font-size: 0.84rem;
  }
  .standard > .button {
    font-size: 0.79rem;
    padding: 8px 9px;
    white-space: nowrap;
  }
  .page-content {
    padding: 0 9px 23px;
  }
  .wide-grid {
    display: block;
  }
  .wide-grid > aside {
    margin-top: 12px;
  }
  .card,
  .finding {
    padding: 14px;
  }
  .sub-tabs {
    gap: 12px;
  }
  .sub-tabs a {
    font-size: 0.9rem;
  }
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(117px, 1fr));
    gap: 11px 12px;
  }
  .button:not(.inline),
  .icon-button {
    min-height: 42px;
  }
  .dialog-body {
    padding: 16px;
  }
  .dialog-heading {
    padding: 13px 15px;
  }
  #dialog {
    max-height: 87dvh;
  }
  .welcome {
    padding: 12px;
    min-height: 60vh;
  }
  .welcome-panel {
    padding: 24px 18px;
  }
  #notice {
    bottom: 13px;
  }
}
@media (max-width: 375px) {
  .demo-label strong {
    display: none;
  }
  .demo-label > span {
    font-size: 0;
  }
  .demo-label > span:after {
    content: '虚构业务数据';
    font-size: 0.73rem;
  }
  .side-nav {
    padding-inline: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
  }
}

/* The administrative session has an independent sign-in and configuration UI. */
.admin-brand {
  font-size: 1rem;
  font-weight: 620;
}
.admin-access {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 55px);
  padding: 26px 14px;
}
.admin-access .admin-login {
  max-width: 495px;
  padding: clamp(25px, 4vw, 40px);
}
.admin-login h1 {
  font-size: 1.8rem;
}
.admin-login .field {
  margin-bottom: 17px;
}
.admin-main {
  max-width: 1380px;
  margin: 0 auto;
}
.admin-tabs {
  margin-bottom: 20px;
}
.admin-tabs button {
  padding: 9px 4px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.admin-tabs button.active {
  color: var(--plum);
  border-bottom-color: var(--plum);
  font-weight: 650;
}
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(230px, 0.84fr);
  gap: 16px;
  align-items: start;
}
.admin-columns .card {
  min-width: 0;
}
.admin-columns .block-heading {
  margin-bottom: 15px;
}
.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.manage-details {
  min-width: 0;
}
.manage-details h3 {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.manage-details h3 .badge {
  margin-left: 5px;
}
.manage-details p,
.manage-details code {
  font-size: 0.87rem;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.manage-details code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.manage-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.manage-actions .button {
  font-size: 0.8rem;
  padding: 6px 9px;
  min-height: 34px;
}
.admin-route-summary {
  margin-top: 12px;
}
.admin-route-summary > div {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.admin-route-summary dt {
  font-size: 0.83rem;
  color: var(--muted);
}
.admin-route-summary dd {
  font-weight: 570;
  overflow-wrap: anywhere;
}
.route-list {
  margin-bottom: 16px;
}
.route-entry {
  padding: 11px 0 2px;
  border-top: 1px solid var(--line);
}
.check-result p {
  overflow-wrap: anywhere;
}
#protocol-options {
  padding: 4px 0 15px;
}
@media (max-width: 760px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .admin-columns .card {
    padding: 15px;
  }
  .manage-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .manage-actions {
    justify-content: flex-start;
  }
  .manage-actions .button {
    min-height: 40px;
  }
  .admin-access {
    min-height: calc(100dvh - 53px);
  }
  .admin-brand {
    font-size: 0.9rem;
  }
  .topbar:has(.admin-brand) .button {
    font-size: 0.78rem;
    margin: 0;
    padding: 4px 6px;
  }
}
.export-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.export-group .actions {
  margin: 0;
}
.export-group strong {
  font-size: 0.92rem;
  font-weight: 600;
}
