:root[data-theme="dark"] { color-scheme: dark; }
:root {
  color-scheme: light;
  --ink: light-dark(#172621, #e8eaec);
  --muted: light-dark(#576961, #9da4aa);
  --line: light-dark(#d7e0d9, #303437);
  --paper: light-dark(#f5f7f3, #101214);
  --white: light-dark(#fff, #191c1e);
  --green: light-dark(#195d41, #98d9b3);
  --deep: light-dark(#152c25, #101214);
  --accent: #aaebbe;
  --soft: light-dark(#e3f0e5, #323a36);
  --warn: light-dark(#993f30, #ffb4a5);
  --chart-cpu: light-dark(#19634a, #85cba1);
  --chart-memory: light-dark(#5166a1, #7595e6);
  --chart-disk: light-dark(#9c6232, #e4b977);
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font:
    15px/1.5 'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid light-dark(#379764, #a6dcb9);
  outline-offset: 3px;
}
::selection {
  background: light-dark(#bbebc9, #323a36);
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button,
.button {
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.55rem;
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.3rem;
  font-weight: 610;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: absolute;
  top: -64px;
  background: var(--white);
  padding: 10px;
  z-index: 9;
}
.skip:focus {
  top: 4px;
}
[hidden] {
  display: none !important;
}
.masthead {
  background: var(--deep);
  color: light-dark(#f4f8f3, #e8eaec);
}
.mastinner {
  min-height: 65px;
  max-width: 1360px;
  margin: auto;
  padding: 0 5.2%;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  letter-spacing: -0.045em;
  font-size: 1.45rem;
  font-weight: 650;
}
.mastinner nav {
  display: flex;
  gap: 16px;
  align-items: stretch;
  align-self: stretch;
}
.navitem {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9c9c0;
  text-decoration: none;
  padding: 0 7px;
  font-size: 0.89rem;
  font-weight: 550;
}
.navitem[aria-current='page'],
.navitem:hover {
  color: white;
}
.navitem[aria-current='page']:after {
  position: absolute;
  content: '';
  bottom: 0;
  height: 3px;
  background: var(--accent);
  left: 5px;
  right: 5px;
  border-radius: 2px 2px 0 0;
}
.identity {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.identity .account {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  color: #d3dfd7;
  font-size: 0.85rem;
}
.signout,
.iconbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 8px;
  color: inherit;
}
.signout:hover {
  background: light-dark(#314a40, #323a36);
}
.iconbutton:hover {
  background: light-dark(#eef3ed, #232729);
}
.initial {
  margin: 80px 6%;
  color: var(--muted);
}
.workspace {
  max-width: 1260px;
  margin: auto;
  padding: 58px 5.2% 70px;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.lede,
.help,
.muted {
  color: var(--muted);
}
.lede {
  margin-top: 7px;
  font-size: 0.97rem;
}
.help {
  font-size: 0.86rem;
  line-height: 1.5;
}
.summaryline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.89rem;
}
.summaryline span + span:before {
  content: '';
  display: inline-block;
  background: #c5cec6;
  width: 1px;
  height: 11px;
  margin: 0 12px;
}
.summaryline b {
  color: var(--ink);
  font-weight: 600;
}
.primary,
.secondary,
.danger,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  padding: 9px 14px;
  min-height: 39px;
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: light-dark(white, #14231a);
  border: 1px solid var(--green);
}
.primary:hover {
  background: light-dark(#124932, #b3e6c6);
}
.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid light-dark(#bdcbc0, #303437);
}
.secondary:hover {
  background: light-dark(#f1f5ee, #232729);
}
.danger {
  background: light-dark(#fff6f2, #302321);
  color: var(--warn);
  border: 1px solid light-dark(#ecc8bf, #44312e);
}
.danger:hover {
  background: light-dark(#fce9e2, #302321);
}
.inventory {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.toolbar {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: inline-flex;
  gap: 3px;
  background: light-dark(#eff3ee, #232729);
  border: 1px solid light-dark(#e3e9e2, #303437);
  padding: 3px;
  border-radius: 7px;
}
.tabs button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.83rem;
  color: var(--muted);
  padding: 5px 10px;
}
.tabs button[aria-pressed='true'] {
  background: var(--white);
  color: var(--ink);
  border-color: light-dark(#ced9ce, #303437);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  max-width: 45%;
}
.search input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.86rem;
}
.search:focus-within {
  outline: 2px solid light-dark(#379764, #a6dcb9);
}
.search input:focus {
  outline: none;
}
.tablearea {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
td,
th {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid light-dark(#e5ebe5, #303437);
  vertical-align: middle;
}
th {
  font-size: 0.77rem;
  font-weight: 560;
  color: var(--muted);
  background: light-dark(#f8faf6, #191c1e);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: light-dark(#f9fbf7, #232729);
}
.item-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.rowglyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: light-dark(#f4f7f1, #191c1e);
  color: light-dark(#496759, #9da4aa);
  flex: none;
}
.rowtitle {
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0;
  text-align: left;
  word-break: break-word;
}
.rowtitle:hover {
  color: var(--green);
  text-decoration: underline;
}
.sub {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 2px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
  white-space: nowrap;
  font-size: 0.8rem;
  color: light-dark(#44554e, #9da4aa);
}
.state:before {
  content: '';
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #909f94;
}
.state.good {
  color: light-dark(#236647, #98d9b3);
}
.state.good:before {
  background: light-dark(#4a955f, #85cba1);
}
.state.partial {
  color: light-dark(#875616, #e4b977);
}
.state.partial:before {
  background: #c28b3b;
}
.mono,
code,
pre {
  font-family: var(--mono);
  font-size: 0.87em;
}
.empty {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  padding: 40px 25px;
  text-align: center;
}
.empty .emptyicon {
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: light-dark(#edf4eb, #232729);
  border: 1px solid light-dark(#d0dfcf, #303437);
  width: 54px;
  height: 54px;
  border-radius: 12px;
  color: light-dark(#47745a, #9da4aa);
}
.emptyicon .icon {
  width: 26px;
  height: 26px;
}
.empty p {
  color: var(--muted);
  max-width: 380px;
  margin: 6px auto 0;
  font-size: 0.9rem;
}
.footline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 16px;
}
.footline button {
  font-size: inherit;
  border: 0;
  background: none;
  color: var(--green);
  padding: 3px 5px;
}
.authbox {
  width: min(840px, 90%);
  margin: clamp(64px, 13vh, 150px) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.authside {
  background-color: light-dark(#e4eddf, #232729);
  background-image: radial-gradient(light-dark(#b8c8b8, #323a36) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  padding: 20px;
}
.authside img {
  width: 100%;
  height: auto;
}
.authform {
  padding: 42px 34px;
}
.authform h1 {
  font-size: 1.9rem;
}
.authform .lede {
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.switchmode {
  margin: 15px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--green);
  padding: 3px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stack {
  display: grid;
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 550;
}
.field input,
.field select,
.readonly {
  border: 1px solid light-dark(#b5c5bb, #303437);
  border-radius: 6px;
  padding: 9px 10px;
  min-height: 40px;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
  width: 100%;
  font-weight: 400;
}
.field .help {
  font-weight: 400;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.error {
  background: light-dark(#fff3ee, #302321);
  color: light-dark(#903d2d, #ffb4a5);
  border: 1px solid light-dark(#f1d3c6, #44312e);
  border-radius: 6px;
  font-size: 0.87rem;
  padding: 8px 11px;
}
.error:empty {
  display: none;
}
.sectionerror {
  margin-bottom: 16px;
}
dialog {
  color: var(--ink);
  background: var(--white);
  border: 1px solid light-dark(#b9c8be, #303437);
  border-radius: 13px;
  width: min(520px, calc(100vw - 30px));
  max-height: 90dvh;
  padding: 0;
  box-shadow: 0 14px 55px #142c252b;
}
dialog::backdrop {
  background: #122b2266;
}
.dialoghead {
  padding: 22px 24px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.dialoghead h2 {
  font-size: 1.38rem;
  margin: 3px 0 0;
  word-break: break-word;
}
.dialogcontent {
  padding: 21px 24px;
}
.dialogfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 7px;
}
.dialogfoot .left {
  margin-right: auto;
}
.metadata {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.86rem;
  margin: 0 0 17px;
}
.metadata dt {
  color: var(--muted);
  font-size: 0.77rem;
}
.metadata dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.command {
  display: block;
  background: light-dark(#19332a, #1e2325);
  color: #e0efe2;
  border-radius: 8px;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-all;
  font: 0.83rem/1.6 var(--mono);
  margin: 0;
}
.tip {
  background: light-dark(#f2f7ef, #191c1e);
  border: 1px solid light-dark(#dce6d9, #303437);
  border-radius: 6px;
  color: light-dark(#3e5649, #9da4aa);
  padding: 11px;
  font-size: 0.85rem;
}
.textwrap {
  word-break: break-all;
}
.appurl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  word-break: break-all;
}
.appurl .icon {
  width: 13px;
  height: 13px;
}
#notice {
  position: fixed;
  right: 22px;
  bottom: 20px;
  border-radius: 7px;
  padding: 0;
  pointer-events: none;
  z-index: 3;
}
#notice:not(:empty) {
  background: var(--deep);
  color: white;
  padding: 10px 16px;
  box-shadow: 0 4px 20px #21372d20;
}
@media (max-width: 720px) {
  .mastinner {
    padding: 0 18px;
    gap: 18px;
    flex-wrap: wrap;
    min-height: 58px;
  }
  .brand {
    min-height: 57px;
    font-size: 1.3rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .mastinner nav {
    order: 3;
    width: 100%;
    height: 40px;
    gap: 14px;
  }
  .navitem {
    padding: 0 3px;
  }
  .identity {
    gap: 5px;
  }
  .identity .account {
    max-width: 160px;
  }
  .workspace {
    padding: 30px 16px 45px;
  }
  .pagehead {
    align-items: flex-start;
  }
  .pagehead h1 {
    font-size: 2rem;
  }
  .summaryline {
    gap: 6px 0;
  }
  .summaryline span + span:before {
    margin: 0 8px;
  }
  .toolbar {
    padding: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search {
    max-width: none;
    width: 100%;
  }
  .inventory .tablearea table {
    min-width: 590px;
  }
  td,
  th {
    padding: 12px;
  }
  .fields {
    gap: 10px;
  }
  .dialoghead {
    padding: 16px 18px 12px;
  }
  .dialogcontent {
    padding: 16px 18px;
  }
  .authbox {
    width: min(410px, calc(100% - 30px));
    margin: 36px auto;
    grid-template-columns: 1fr;
  }
  .authside {
    display: none;
  }
  .authform {
    padding: 30px 24px;
  }
  .footline {
    justify-content: flex-start;
  }
}
@media (max-width: 420px) {
  .identity .account {
    max-width: 125px;
  }
  .pagehead .primary {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .navitem {
    font-size: 0.86rem;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tabs button {
    padding: 4px 8px;
  }
  .summaryline {
    max-width: 215px;
  }
}
.advanced {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
}
.advanced summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 550;
}
.advanced[open] summary {
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .inventory .tablearea table {
    min-width: 0;
  }
  .inventory th:nth-child(n + 3),
  .inventory td:nth-child(n + 3) {
    display: none;
  }
  .inventory th:nth-child(2),
  .inventory td:nth-child(2) {
    width: 6.8rem;
  }
  .item-name .rowtitle {
    min-height: 24px;
  }
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.87rem;
  text-decoration: none;
  margin-bottom: 16px;
}
.back:hover,
.entity-link:hover {
  text-decoration: underline;
}
.back .icon {
  width: 15px;
}
.actions,
.resource-sub,
.route-links,
.chart-key,
.secret-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.resource-sub {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.resource-sub > span + span:before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--line);
  margin-right: 12px;
}
.detail-tabs {
  display: flex;
  gap: 18px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.detail-tabs a {
  color: var(--muted);
  padding: 9px 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}
.detail-tabs a[aria-current='page'] {
  color: var(--green);
  border-color: var(--green);
}
.detail-body {
  display: grid;
  gap: 16px;
}
.slab,
.sectionbar + .scroll-table,
.logbox {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.slab > h2,
.sectionbar {
  font-size: 1rem;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.sectionbar {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sectionbar h2 {
  font-size: 1.12rem;
}
.slab-body,
.quiet-empty,
.facts,
.meters,
.route-links,
.chart-body {
  padding: 16px 18px;
}
.quiet-empty {
  font-size: 0.9rem;
  color: var(--muted);
}
.scroll-table {
  max-width: 100%;
  overflow: auto;
}
.scroll-table table {
  font-size: 0.88rem;
}
.entity-link {
  font-weight: 600;
  text-decoration: none;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 22px;
  margin: 0;
}
.facts dt,
.meter span,
.replica-summary > span {
  font-size: 0.79rem;
  color: var(--muted);
}
.facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.meters,
.fleet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.meter > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}
.meter strong {
  font-size: 0.92rem;
  font-weight: 600;
}
.meter small {
  font-weight: 400;
  color: var(--muted);
}
meter {
  width: 100%;
  height: 12px;
  accent-color: var(--green);
}
meter::-webkit-meter-bar {
  border: 0;
  background: light-dark(#eaf0e8, #232729);
  border-radius: 4px;
}
meter::-webkit-meter-optimum-value {
  background: light-dark(#36825c, #85cba1);
  border-radius: 4px;
}
.fleet {
  grid-template-columns: 2fr 2fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 17px 20px;
  margin-bottom: 18px;
  align-items: center;
}
.replica-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.replica-summary small,
.inline-warning {
  color: light-dark(#795020, #e4b977);
}
.diagnostics {
  margin-bottom: 0;
  padding-left: 20px;
  color: light-dark(#795020, #e4b977);
  overflow-wrap: anywhere;
}
.light-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: light-dark(#356248, #9da4aa);
  background: light-dark(#e5f1e8, #323a36);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
}
.route-links {
  padding-bottom: 0;
}
.route-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}
.route-links svg {
  width: 13px;
}
.logbox {
  padding: 12px;
  background: light-dark(#183026, #1e2325);
  color: #e7f1e7;
}
.logbox > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(100px, 0.6fr) 3fr;
  gap: 12px;
  padding: 4px 0;
  font: 0.85rem/1.5 var(--mono);
}
.logbox time,
.log-source {
  color: #b1d6bc;
}
.logbox code {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pane-status {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 16px;
}
.workflow-step {
  display: grid;
  gap: 7px;
}
.workflow-code {
  max-height: 250px;
  overflow: auto;
  white-space: pre;
  font-size: 0.78rem;
}
.secret-controls {
  gap: 6px;
}
.secret-controls input {
  flex: 1;
  min-width: 80px;
}
.chart-key {
  gap: 18px;
  margin-bottom: 10px;
  font-size: 0.81rem;
  color: var(--muted);
}
.chart-key i {
  display: inline-block;
  width: 11px;
  height: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.chart-key b {
  color: var(--ink);
}
.key-cpu {
  background: var(--chart-cpu);
}
.key-memory {
  background: var(--chart-memory);
}
.key-disk {
  background: var(--chart-disk);
}
.chart-scale {
  display: flex;
  gap: 9px;
  height: 95px;
}
.chart-scale > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  width: 26px;
}
.chart-scale svg {
  flex: 1;
  width: 1px;
  height: 100%;
}
.chart-axis {
  margin: 5px 0 0 35px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}
.inline-warning {
  padding: 8px 15px;
  background: light-dark(#fcf5e9, #352c20);
}
.detail-body > .facts,
.detail-body > .slab-body,
.detail-body > .quiet-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-body > div.slabs {
  display: grid;
  gap: 16px;
}
@media (max-width: 720px) {
  .fleet,
  .meters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .fleet {
    padding: 12px 16px;
  }
  .replica-summary {
    flex-direction: row;
    justify-content: space-between;
  }
  .detail-tabs {
    gap: 14px;
  }
  .actions {
    gap: 6px;
  }
  .pagehead:has(.resource-sub) {
    flex-wrap: wrap;
  }
  .sectionbar,
  .slab > h2 {
    padding: 11px 14px;
  }
  .scroll-table td,
  .scroll-table th {
    padding: 10px 11px;
  }
  .scroll-table th {
    white-space: normal;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logbox > div {
    grid-template-columns: 1fr 1fr;
    gap: 3px 9px;
  }
  .logbox > div > code:last-child {
    grid-column: 1/-1;
  }
  .chart-key {
    gap: 10px;
  }
  .resource-sub {
    gap: 7px;
  }
  .detail-tabs a {
    font-size: 0.83rem;
  }
  .logbox {
    max-width: calc(100vw - 32px);
  }
}
.field textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid light-dark(#b5c5bb, #303437);
  border-radius: 6px;
  font: 0.88rem/1.5 var(--mono);
}
.field textarea:focus-visible {
  outline: 3px solid light-dark(#379764, #a6dcb9);
  outline-offset: 3px;
}
.field code {
  overflow-wrap: anywhere;
}
.detail-body > * {
  min-width: 0;
}
.pagehead > div:first-child {
  min-width: 0;
}
.pagehead h1 {
  overflow-wrap: anywhere;
}
.scroll-table:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.slab .slab-body,
.slab .facts {
  overflow-wrap: anywhere;
}
