:root {
  color-scheme: light;
  --navy: #00003e;
  --gold: #b39354;
  --ink: #21233d;
  --muted: #606578;
  --paper: #f6f6f8;
  --line: #dcdde5;
  --accent: var(--navy);
  --pale: #f0f0f6;
  --rail: var(--navy);
  --danger: #8b3628;
  --warn: #775917;
  font:
    16px/1.6 "Inter",
    "Hiragino Sans",
    "Yu Gothic UI",
    "Yu Gothic",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 2.3vw, 35px);
  letter-spacing: -0.045em;
  line-height: 1.35;
}
h2 {
  font-size: 1.07rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}
small,
.muted {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8b702f;
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #84703e;
  outline-offset: 1px;
}
button {
  background: none;
  border: 0;
}
.skip {
  position: fixed;
  top: -150px;
  left: 10px;
  z-index: 25;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 5px;
}
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 222px;
  display: flex;
  flex-direction: column;
  padding: 31px 15px 20px;
  background: var(--rail);
  color: white;
  z-index: 9;
  overflow-y: auto;
  overflow-x: hidden;
}
.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: white;
  gap: 9px;
  text-decoration: none;
  padding: 0 8px;
}
.wordmark {
  white-space: nowrap;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: 1.3;
}
.wordmark em {
  margin-left: .13em;
  font: italic 1.13em/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.075em;
}
.brand .wordmark em { color: #ecdbb6; }
.crumb .mobile-wordmark { display: none; }
.mark {
  display: grid;
  gap: 3px;
  width: 27px;
  transform: skewY(-14deg);
}
.mark i {
  height: 6px;
  border-radius: 1px;
  background: #ead9b3;
  width: 25px;
}
.mark i:nth-child(2) {
  width: 19px;
  background: #cfb47c;
}
.mark i:nth-child(3) {
  width: 13px;
  background: var(--gold);
}
.tenant {
  min-height: 59px;
  border: 1px solid #ffffff30;
  background: #ffffff08;
  color: white;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  margin: 31px 0 22px;
  padding: 9px;
  max-width: 100%;
}
.tenant > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.tenant b,
.tenant small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenant b {
  font-size: 0.89rem;
}
.tenant small {
  color: #cbcbdc;
  font-size: 0.74rem;
}
.tenant .initial {
  width: 33px;
  height: 33px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-weight: 650;
  background: #f1e7d0;
  color: #484062;
  flex: none;
}
.navbtn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  color: #e6e5ee;
  font-size: 0.9rem;
  font-weight: 560;
  padding: 10px 12px;
  border-radius: 5px;
  margin: 3px 0;
}
.navbtn:hover,
.tenant:hover {
  background: #ffffff18;
}
.navbtn.active {
  background: #2c2c60;
  box-shadow: inset 2px 0 0 var(--gold);
  color: white;
}
.navbtn .ic {
  width: 18px;
  height: 18px;
}
.railfoot {
  margin-top: auto;
  padding-top: 22px;
}
.railfoot > .rgroup {
  border-top: 1px solid #ffffff26;
  padding-top: 12px;
}
.rail .closemenu,
.menu,
.scrim {
  display: none;
}
.rail .subtitle {
  color: #c9c8d9;
  font-size: 0.79rem;
}
.workspace {
  margin-left: 222px;
  min-width: 0;
}
.ic {
  display: inline-block;
  width: 17px;
  height: 17px;
  vertical-align: -3px;
  flex: none;
}
#bar {
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 3vw, 48px);
}
.crumb,
.runtime {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 0;
}
.crumb > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb i {
  font-style: normal;
  color: #a9a9ba;
}
.crumb b {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.runtime {
  color: #555771;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
  background: #f8f8fb;
  white-space: nowrap;
}
main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 48px) 60px;
  outline: none;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 24px;
}
.page-head small {
  font-size: 0.81rem;
  font-weight: 550;
  display: block;
  margin-bottom: 6px;
}
.page-head h1 {
  overflow-wrap: anywhere;
}
.sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.btn,
.btnlink {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cacedc;
  border-radius: 6px;
  padding: 7px 12px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.45;
}
.btn:hover,
.btnlink:hover {
  background: #f2f2f7;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn.primary:hover {
  background: #24245c;
}
.btn.danger {
  color: var(--danger);
  border-color: #e7cbc2;
}
.btn.small {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 0.8rem;
}
.btn .ic {
  width: 15px;
  height: 15px;
}
.link {
  color: var(--accent);
  font-size: 0.85rem;
  padding: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.actions,
.inline,
.tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.end {
  justify-content: flex-end;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 12px;
}
.panel,
.list,
.opening {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.panel {
  padding: clamp(16px, 2vw, 27px);
  min-width: 0;
}
.panel > h2 + *,
.panel > h3 + * {
  margin-top: 10px;
}
.stack {
  display: grid;
  gap: 17px;
  align-content: start;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.8fr);
  gap: 17px;
  align-items: start;
}
.grid-equal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.opening {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.opening h2 {
  font-size: 1.2rem;
}
.opening p {
  margin: 4px 0 0;
  font-size: 0.87rem;
  color: var(--muted);
}
.empty {
  padding: 29px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.89rem;
}
.empty strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}
.empty .btn {
  margin: 13px auto 0;
}
.list {
  overflow: hidden;
}
.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  text-align: left;
  border-bottom: 1px solid #e7e7ec;
  background: #fff;
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  background: #f8f8fb;
}
.row > span.text {
  min-width: 0;
  flex: 1;
}
.row .text > b,
.row .text > small {
  display: block;
  overflow-wrap: anywhere;
}
.row b {
  font-size: 0.9rem;
}
.row small {
  font-size: 0.79rem;
}
.fileic {
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  border: 1px solid #e5dfd0;
  border-radius: 6px;
  background: #f7f4ee;
  color: #7b653a;
  flex: none;
}
.small-muted {
  font-size: 0.8rem;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.77rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eeeff4;
  color: #555a70;
  font-weight: 560;
}
.pill.warn,
.notice.warn {
  background: #fbf4df;
  color: var(--warn);
}
.pill.fail,
.notice.fail {
  background: #fbebe7;
  color: var(--danger);
}
.pill.good {
  background: #e1f0e3;
  color: #356447;
}
.pill.work {
  background: #e9eff6;
  color: #47647a;
}
.notice {
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: #f2f3f8;
  border-radius: 6px;
  font-size: 0.87rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.notice p + p {
  margin-top: 5px;
}
.notice .btn {
  margin: 8px 0 0;
}
.notice[role="alert"]:empty {
  display: none;
}
.notice[role="alert"] {
  color: var(--danger);
  background: #fbebe7;
  border-color: #eaccc2;
}
.empty-code,
.code {
  font-variant-numeric: tabular-nums;
}
.field,
fieldset {
  display: grid;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
}
.field > span,
legend {
  font-size: 0.88rem;
  font-weight: 600;
}
.field small,
.form-note {
  font-size: 0.81rem;
  color: var(--muted);
  font-weight: 400;
}
.fields {
  display: grid;
  gap: 15px;
}
.field input,
.field textarea,
.field select,
.search {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #bfc2d0;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-size: 0.93rem;
  line-height: 1.55;
}
.field input[type="color"] {
  max-width: 110px;
  height: 40px;
  padding: 3px;
}
.field textarea {
  min-height: 72px;
  resize: vertical;
}
.field input[type="file"] {
  padding: 7px;
  font-size: 0.83rem;
}
.search {
  width: 200px;
  font-size: 0.85rem;
}
.choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 5px;
  line-height: 1.45;
}
.choice:has(input:checked) {
  border-color: var(--gold);
  background: #f7f4ee;
}
.choice input {
  accent-color: var(--accent);
  margin: 0;
}
.fields .actions {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs button {
  padding: 9px 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs [aria-selected="true"] {
  border-bottom-color: var(--gold);
  color: var(--accent);
}
.tabs .count {
  font-size: 0.72rem;
  margin-left: 5px;
}
dialog {
  color: var(--ink);
  width: min(565px, calc(100% - 26px));
  padding: 0;
  max-height: 89dvh;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 25px 75px #11113930;
  overscroll-behavior: contain;
}
dialog.wide {
  width: min(760px, calc(100% - 26px));
}
dialog::backdrop {
  background: #13132f99;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
  background: #fff;
}
.dialog-head h2 {
  font-size: 1.12rem;
}
.close {
  height: 32px;
  width: 32px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.close:hover {
  background: #f0f0f6;
}
.dialog-body {
  padding: 19px 22px 22px;
}
.dialog-body .actions.end {
  margin-top: 3px;
}
#toast {
  display: none;
  position: fixed;
  z-index: 12;
  bottom: 20px;
  right: 23px;
  background: var(--rail);
  color: white;
  max-width: calc(100% - 32px);
  border-radius: 7px;
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 10px 13px;
}
#toast.show {
  display: block;
}
dl {
  display: grid;
  grid-template-columns: minmax(min-content, 5em) minmax(0, 1fr);
  row-gap: 6px;
  column-gap: 12px;
  font-size: 0.85rem;
  align-items: start;
  margin: 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.break {
  overflow-wrap: anywhere;
}
.excerpt {
  font-size: 0.86rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.block {
  margin-top: 15px;
}
.cut {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 15px 0;
}
.back {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.back:hover {
  text-decoration: underline;
}
.job-card {
  display: grid;
  gap: 7px;
}
.jobline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.jobline:last-child {
  border: 0;
}
.jobline strong,
.jobline small {
  display: block;
}
.jobline strong {
  font-size: 0.87rem;
}
.jobline small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
}
.progress {
  height: 3px;
  background: #e6dfd2;
  margin: 9px 0;
  overflow: hidden;
}
.progress i {
  display: block;
  width: 33%;
  height: 100%;
  background: var(--gold);
  animation: slide 1.7s infinite alternate ease-in-out;
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(200%);
  }
}
.article-section {
  padding: 16px 0;
  border-bottom: 1px solid #e5e5ed;
}
.article-section h3 {
  font-weight: 665;
  margin: 0 0 8px;
}
.bodycopy {
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sources-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.article-section:last-child {
  border: 0;
}
.ref {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.76rem;
  color: #505575;
  background: #f6f6fa;
}
.selbar {
  position: sticky;
  bottom: 14px;
  padding: 9px 12px;
  background: #f7f4ee;
  border: 1px solid #dfd5bf;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.83rem;
  margin-top: 12px;
}
.selbar[hidden] {
  display: none;
}
.compare {
  padding: 11px 13px;
  background: #f1f2f8;
  border-left: 3px solid #73749d;
  border-radius: 3px;
}
.compare.before {
  background: #f6f3ed;
  border-left-color: #c7b794;
}
.compare small {
  display: block;
}
.display-preview {
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  display: block;
}
.meta-table {
  padding: 2px 0;
}
.plan {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  margin-top: 9px;
}
.plan input {
  accent-color: var(--accent);
}
.plan strong {
  font-size: 0.93rem;
  margin-left: 5px;
}
.plan ol {
  padding-left: 30px;
  margin: 7px 0;
  color: #5e6279;
  font-size: 0.85rem;
}
.plan:has(input:checked) {
  border-color: var(--gold);
  background: #f7f4ee;
}
.jobsdetails summary,
details > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 550;
}
.jobsdetails[open] summary,
details[open] > summary {
  margin-bottom: 10px;
}
.intro-card {
  display: grid;
  gap: 12px;
}
.intro-card .btn {
  justify-self: start;
}
.action-link {
  white-space: nowrap;
}
.iconloaded {
  display: inline-flex;
}
.readout {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 5px;
  font-size: 0.87rem;
}
.readout b {
  font-weight: 600;
}
.steps {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  font-size: 0.9rem;
}
.notice .excerpt {
  color: inherit;
}
.answer-block + .answer-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.preview-actions {
  margin: 0 0 10px;
}
.source-value {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.source-value:last-child {
  border: 0;
}
.source-value p {
  font-size: 0.9rem;
}
.section-head h2 {
  min-width: 0;
}
.split {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 980px) {
  .brand { gap: 7px; padding-inline: 4px; }
  .brand .wordmark { font-size: 18px; }
  .rail {
    width: 186px;
    padding-inline: 10px;
  }
  .workspace {
    margin-left: 186px;
  }
  .grid2 {
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.8fr);
  }
}
@media (max-width: 760px) {
  .crumb .mobile-wordmark {
    display: inline;
    font-size: .89rem;
    color: var(--navy);
  }
  .crumb .mobile-wordmark em { color: #786031; }
  .crumb > .workspace-name, .crumb > .ic { display: none; }
  .rail {
    width: 234px;
    transform: translateX(-102%);
    transition: transform 0.18s;
  }
  .rail .closemenu {
    display: block;
    position: absolute;
    top: 9px;
    right: 8px;
    color: white;
  }
  .workspace {
    margin: 0;
  }
  .menu {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -6px;
  }
  .navopen .rail {
    transform: none;
  }
  .navopen .scrim {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #10103050;
    z-index: 8;
  }
  #bar {
    height: 52px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .R-aside {
    order: 2;
  }
  .page-head {
    margin-bottom: 17px;
  }
  .grid-equal {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 22px;
  }
  .row {
    padding: 12px;
  }
  .page-head small {
    margin-bottom: 3px;
  }
}
@media (max-width: 530px) {
  #bar {
    padding-inline: 13px;
  }
  .runtime {
    font-size: 0.74rem;
    padding: 3px 6px;
  }
  .crumb {
    gap: 5px;
  }
  .crumb > .ic {
    display: none;
  }
  main {
    padding-inline: 13px;
  }
  .opening {
    display: grid;
    align-content: start;
    justify-content: stretch;
    padding: 16px;
  }
  .opening .btn {
    justify-self: start;
  }
  .page-head .btn {
    font-size: 0.81rem;
    padding: 7px 9px;
  }
  .search {
    width: 122px;
  }
  .dialog-head {
    padding: 13px 16px;
  }
  .dialog-body {
    padding: 15px 16px;
  }
  .stack {
    gap: 13px;
  }
  .row > time,
  .row .extra {
    display: none;
  }
  .row {
    gap: 8px;
  }
  .row .fileic {
    width: 27px;
    height: 32px;
  }
  .tabs {
    gap: 5px;
  }
  .tabs button {
    font-size: 0.82rem;
  }
  .grid2,
  .grid-equal {
    gap: 12px;
  }
  .display-preview {
    min-height: 490px;
  }
  .actions.end {
    gap: 6px;
  }
  .panel {
    padding: 15px;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .tag-row .extra {
    display: none;
  }
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.article-prose {
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.article-prose p { margin: .7em 0; }
.article-prose h3 { margin: 1.15em 0 .4em; font-size: 1em; }
.article-prose ul, .article-prose ol { padding-inline-start: 1.6em; }
.article-prose table { width: 100%; border-collapse: collapse; }
.article-prose th, .article-prose td { padding: .42em .65em; border: 1px solid var(--line, #dcdde5); text-align: left; }
.article-prose th { background: #f4f4f8; }

.note {
  margin: 0 0 1em;
  padding: 0.8em 1em;
  border-left: 3px solid var(--accent, #245d50);
  background: var(--tint, #edf4ef);
  border-radius: 4px;
  font-size: 0.92em;
}
.note p, .note ul { margin: 0.35em 0 0; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.plan-card.recommended {
  border: 2px solid var(--gold);
}
.plan-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.plan-card h3 {
  flex-basis: 100%;
  margin: 6px 0 4px;
  font-size: 1.02rem;
  line-height: 1.5;
}
.plan-no {
  font-size: 0.8rem;
  color: var(--muted);
}
.plan-badge {
  font-size: 0.75rem;
  background: var(--gold);
  color: #fff;
  border-radius: 99px;
  padding: 1px 10px;
}
.plan-card ol {
  margin: 8px 0 12px;
  padding-left: 1.3em;
  flex: 1;
}
.plan-card li {
  margin: 0 0 8px;
}
.plan-card li small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.decision-box {
  border: 1px solid var(--gold);
  background: #fbf8f1;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
}
.decision-box h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.decision {
  border: 0;
  padding: 0;
  margin: 12px 0;
}
.decision legend {
  font-weight: 600;
  margin-bottom: 6px;
}

.finding {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  background: #fff;
  padding: 12px 14px;
  margin: 10px 0;
}
.finding.must {
  border-left-color: var(--danger);
}
.finding-rows {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 6px 12px;
  margin: 10px 0;
}
.finding-rows dt {
  color: var(--muted);
  font-size: 0.82rem;
}
.finding-rows dd {
  margin: 0;
}
.finding-rows blockquote {
  margin: 0;
  padding: 2px 10px;
  border-left: 3px solid var(--gold);
  background: var(--pale);
}
details.optional > summary {
  cursor: pointer;
  color: var(--muted);
  margin: 8px 0;
}

.source-meta {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 4px 10px;
  margin: 0;
  font-size: 0.88rem;
}
.source-meta dt { color: var(--muted); }
.source-meta dd { margin: 0; overflow-wrap: anywhere; }
.source-pop h3 { font-size: 0.95rem; margin: 6px 0 0; }
.source-pop blockquote.quote {
  margin: 4px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--gold);
  background: #fbf8f1;
  line-height: 1.8;
}
.source-block {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--ink);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  margin: 8px 0;
}

.rule-conflict {
  border-left: 3px solid var(--warn);
  padding-left: 10px;
}

.question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  background: #fff;
}

/* Body view: make the heading levels distinguishable at a glance. */
.article-section > h3 {
  font-size: 1.22rem;
  font-weight: 700;
  padding: 4px 0 4px 12px;
  border-left: 5px solid var(--navy);
  margin: 4px 0 12px;
}
.article-section > h3::before,
.article-prose h3::before {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 3px;
  padding: 0 5px;
  margin-right: 8px;
  vertical-align: 2px;
}
.article-section > h3::before {
  content: "H2";
  background: var(--navy);
  color: #fff;
}
.article-prose h3 {
  font-size: 1.04rem;
  font-weight: 650;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
}
.article-prose h3::before {
  content: "H3";
  background: #fbf8f1;
  color: var(--warn);
  border: 1px solid var(--gold);
}

.plan-h3 { margin: 4px 0 2px; padding-left: 1.1em; font-size: 0.86rem; color: var(--ink); }
.plan-h3 li { margin: 0 0 2px; list-style: "– "; }
.plan-device { color: var(--warn) !important; }

/* Body view doubles as the reader view. */
.reader-view { max-width: 46rem; }
.reader-title { font-size: 1.5rem; line-height: 1.5; margin: 10px 0 12px; }
.reader-title .level {
  display: inline-block; font-size: 0.68rem; font-weight: 600; border-radius: 3px; padding: 0 5px;
  margin-right: 8px; vertical-align: 4px; background: var(--gold); color: #fff;
}
.reader-lead { color: var(--ink); padding-bottom: 8px; }
.section-sources { margin-top: 10px; opacity: 0.85; }
.section-sources small { color: var(--muted); margin-right: 6px; }
.article-figure {
  margin: 16px 0 4px; padding: 12px 16px; background: var(--pale); border-left: 4px solid var(--navy); border-radius: 4px;
}
.article-figure figcaption { font-weight: 650; margin-bottom: 6px; }
.article-figure ol { margin: 0; padding-left: 1.3em; }
.reader-refs { font-size: 0.9rem; padding-left: 1.4em; }

.notice.good { background: #e1f0e3; color: #2f5a3f; border-color: #c5dfcb; }
.notice.work { background: #e9eff6; color: #3d566a; border-color: #cfdbe7; }
.status-strip { margin: 4px 0 14px; font-size: 0.92rem; }
.status-strip b { font-size: 1rem; }
.plain-list { margin: 6px 0 10px 1.1em; padding: 0; font-size: 0.87rem; line-height: 1.7; }
.stale-note { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: 340px; padding: 10px 14px;
  background: #e9eff6; color: #3d566a; border: 1px solid #cfdbe7; border-radius: 6px; font-size: 0.85rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.stale-note[hidden] { display: none; }
.write-progress { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 6px; font-size: 0.9rem; color: #5e6279; }
.write-progress li { display: grid; grid-template-columns: 5em 1fr; gap: 8px; align-items: baseline; }
.write-progress b { white-space: nowrap; font-size: 0.78rem; color: #8a8ea3; }
.write-progress li.now { color: inherit; font-weight: 600; }
.write-progress li.now b { color: var(--gold); }

/* Interview answers: a short preview in the sidebar, the full text in a dialog. */
.answer-item { margin: 0 0 11px; }
.answer-q { font-size: 0.82rem; font-weight: 600; line-height: 1.6; }
.answer-a {
  font-size: 0.84rem; color: var(--muted); line-height: 1.7; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.answer-list { display: grid; gap: 14px; }
.answer-card { border: 1px solid var(--line); border-radius: 9px; padding: 15px 17px; background: #fff; }
.answer-card h3 { font-size: 0.98rem; line-height: 1.6; margin: 0 0 9px; }
.answer-heading { font-size: 0.78rem; color: var(--muted); margin-bottom: 5px; }
.answer-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; font-size: 0.92rem; }
.answer-none { color: var(--muted); font-size: 0.88rem; }
.answer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.answer-tags span { font-size: 0.74rem; color: var(--muted); background: #f3f3f8; border-radius: 99px; padding: 2px 9px; }
dialog.wide .dialog-body { max-height: calc(89dvh - 66px); overflow-y: auto; }

/* Knowledge chat on the sources page */
.chat-log {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  margin: 10px 0 14px;
}
.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.chat-msg p {
  margin: 0 0 6px;
}
.chat-msg p:last-child {
  margin-bottom: 0;
}
.chat-user {
  align-self: flex-end;
  background: var(--pale);
}
.chat-bot {
  align-self: flex-start;
}
.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes chat-dot {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-typing span { animation: none; opacity: 0.6; }
}

/* Development switch at the menu foot */
.railfoot > .devswitch {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.devswitch small {
  color: #c9c8d9;
  font-size: 0.72rem;
}
.devviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: #ffffff14;
}
.devview {
  border: 0;
  border-radius: 6px;
  padding: 6px 4px;
  background: transparent;
  color: #e6e5f0;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.devview.active {
  background: #fff;
  color: #1b1a3a;
  font-weight: 600;
}
.devview:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Official-site images of comparison candidates */
.site-shots {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.site-shot-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line, #e3e3e8);
  border-radius: 8px;
}
.site-shot-row img {
  width: 180px;
  height: auto;
  display: block;
  border: 1px solid #e3e3e8;
  border-radius: 4px;
}
.site-shot-empty {
  width: 180px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 1px dashed #c9c9d3;
  border-radius: 4px;
  color: #8a8a99;
  font-size: 0.8rem;
}
.site-shot-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.site-shot-body small {
  color: #6b6b7b;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .site-shot-row {
    grid-template-columns: 1fr;
  }
}

/* 設計 11/29: the operator side's two roles, a company screen opened by an operator, and the plan. */
.navlabel {
  display: block;
  margin: 14px 12px 4px;
  color: #a9a8b6;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.operator-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-left-width: 4px;
  border-radius: 8px;
  background: #f8f2e6;
}
.operator-banner b { display: block; }
.operator-banner span { color: var(--muted, #5f5e6b); font-size: 0.85rem; }
.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.linklike:hover { text-decoration: underline; }
.meter {
  height: 8px;
  margin: 10px 0 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.meter i { display: block; height: 100%; background: var(--gold); }
