/* LabPages app UI. Tokens from the "Calvin Gunther" design system (Linen light / Dusk dark).
   Fonts are self-hosted: the app CSP allows no third-party font or style origins. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/source-serif-4-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/source-serif-4-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

:root {
  --page: #f7f3ea; --surface: #fdfbf6; --surface-sunken: #eee8da; --surface-hover: #f2ecdf;
  --ink: #3b352d; --ink-2: #5f564a; --muted: #766d5d;
  --border: #e4dccb; --border-strong: #8f8568;
  --accent: #a4573a; --accent-hover: #8f4a31; --accent-text: #a4573a; --on-accent: #fffaf2; --accent-wash: #f3e4da;
  --good: #4f6b40; --good-bg: #e6ecda; --warning: #7a5c14; --warning-bg: #f4ead0; --critical: #8f4030; --critical-bg: #f3e2da;
  --series-1: #a4573a; --term-bg: #2a2520; --term-ink: #e9e2d2;
  --shadow-sm: 0 1px 2px rgba(59,53,45,.06);
  --shadow-md: 0 1px 2px rgba(59,53,45,.05), 0 6px 18px rgba(59,53,45,.07);
  --shadow-lg: 0 2px 4px rgba(59,53,45,.05), 0 16px 40px rgba(59,53,45,.12);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 28px; --space-7: 40px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --page: #1f1b16; --surface: #292420; --surface-sunken: #17140f; --surface-hover: #322c26;
  --ink: #ece4d4; --ink-2: #c3b9a5; --muted: #9d9380;
  --border: #3a342c; --border-strong: #7d7360;
  --accent: #e0997a; --accent-hover: #ebab90; --accent-text: #e0997a; --on-accent: #2a1a12; --accent-wash: #3a2a22;
  --good: #a9c28f; --good-bg: #2e3326; --warning: #e0c27a; --warning-bg: #38301d; --critical: #eba08c; --critical-bg: #3b2722;
  --series-1: #e0997a; --term-bg: #12100d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.30);
  --shadow-md: 0 1px 2px rgba(0,0,0,.30), 0 6px 18px rgba(0,0,0,.32);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.30), 0 16px 40px rgba(0,0,0,.45);
  color-scheme: dark;
} }

/* ---------- base */
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/24px var(--font); font-optical-sizing: auto;
  min-height: 100vh; display: flex; flex-direction: column }
a { color: var(--accent-text); text-underline-offset: 2px; text-decoration-thickness: 1px }
a:hover { color: var(--accent-hover) }
h1 { font-size: 28px; line-height: 36px; font-weight: 600; margin: 0; letter-spacing: -.005em }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0 0 var(--space-3) }
h3 { font-size: 15px; line-height: 24px; font-weight: 600; margin: var(--space-4) 0 var(--space-2) }
h2 + h3, .card > h3:first-child { margin-top: 0 }
p { margin: 0 0 var(--space-3) } p:last-child { margin-bottom: 0 }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.3rem } li + li { margin-top: 2px }
strong, b { font-weight: 600 }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px }
::selection { background: var(--accent-wash); color: var(--ink) }

.muted { color: var(--muted) }
.small { font-size: 12.5px; line-height: 18px; font-weight: 400 }
h2 .small, h1 .small { font-style: italic; margin-left: var(--space-2) }
.mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums }
.hint { font-weight: 400; font-style: italic; color: var(--muted); font-size: 12.5px; line-height: 18px; letter-spacing: 0 }
.ok { color: var(--good) } .no { color: var(--critical) }

/* ---------- header */
header.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-5);
  padding: 0 var(--space-6); min-height: 60px; background: var(--surface); border-bottom: 1px solid var(--border) }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; line-height: 28px; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap }
.brand:hover { color: var(--ink) }
.brand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none }
header.bar nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0 }
.navlink, .menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 20px; color: var(--ink-2); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, color .15s ease }
.navlink:hover, .menu > summary:hover { background: var(--surface-hover); color: var(--ink) }
.navlink[aria-current="page"] { background: var(--accent-wash); color: var(--ink); font-weight: 600 }
.bar-end { display: flex; align-items: center; gap: var(--space-2); margin-left: auto }

/* disclosure menus (work without script; app.js closes them on outside click / Escape) */
.menu { position: relative }
.menu > summary { list-style: none; font-weight: 400 }
.menu > summary::-webkit-details-marker { display: none }
.menu > summary::after { content: "▾"; font-size: 11px; color: var(--muted) }
.menu[open] > summary { background: var(--surface-hover); color: var(--ink) }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; z-index: 30; display: grid; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg) }
.bar-end .menu-panel { left: auto; right: 0 }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: var(--radius-sm);
  font: inherit; font-size: 13.5px; line-height: 20px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; box-shadow: none }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-hover); color: var(--ink) }
.menu-panel a[aria-current="page"] { color: var(--accent-text); font-weight: 600 }
.menu-head { padding: 6px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 13.5px; line-height: 20px }
.menu-head .small { display: block; color: var(--muted); font-style: italic }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0 }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-wash); color: var(--ink); display: inline-grid;
  place-items: center; font-size: 12px; font-weight: 600; flex: none }

/* ---------- layout */
main { width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--space-7) var(--space-6) 64px; display: grid; gap: var(--space-5); flex: 1; align-content: start }
main > *, .grid2 > *, .cols > * { min-width: 0 }
main.narrow { max-width: 560px }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5) 22px; box-shadow: var(--shadow-sm) }
.card > h1:first-child { margin-bottom: var(--space-3) }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-5); align-items: start }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-5); align-items: start }
.row { display: flex; gap: var(--space-2) var(--space-3); align-items: center; flex-wrap: wrap }
.scroll { overflow-x: auto }
.stack-gap { display: grid; gap: var(--space-5) }

.page-head { display: grid; gap: var(--space-3) }
.page-head .row h1 { margin-right: var(--space-2) }
.page-head .lede { color: var(--muted); font-style: italic; margin: 0 }
.crumb { font-size: 13.5px; color: var(--muted); text-decoration: none } .crumb:hover { color: var(--accent-text) }
.toolbar { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center }
.toolbar .spacer { flex: 1 }

.section-nav { position: sticky; top: 60px; z-index: 10; display: flex; gap: 2px; overflow-x: auto; padding: 6px;
  background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--radius-md) }
.section-nav a { padding: 5px 12px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 20px; color: var(--ink-2); text-decoration: none; white-space: nowrap }
.section-nav a:hover { background: var(--surface-hover); color: var(--ink) }
section[id] { scroll-margin-top: 130px }
.section-title { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-3) 0 calc(var(--space-1) * -1) }
.section-title h2 { margin: 0 }
.section-title p { margin: 0; color: var(--muted); font-style: italic; font-size: 13.5px }

/* ---------- notices */
.flash, .error, .warn { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14px }
.flash { background: var(--good-bg); color: var(--ink); border-color: color-mix(in srgb, var(--good) 30%, transparent) }
.flash::before { content: "✓"; color: var(--good); font-weight: 600; margin-right: 8px }
.flash.row::before { margin-right: 0 }
.error { background: var(--critical-bg); color: var(--critical); border-color: color-mix(in srgb, var(--critical) 30%, transparent) }
.warn { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent) }
p.error { margin: 0 }
.flash .link { margin-left: auto }

/* ---------- forms */
form.stack, .stack { display: grid; gap: var(--space-4); max-width: 560px }
.card form.stack { max-width: none }
label { display: grid; gap: 6px; font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .03em; color: var(--ink-2) }
label > .hint { margin-top: -2px }
label.check, label.row { display: flex; gap: var(--space-2); align-items: center; font-size: 13.5px; line-height: 20px; letter-spacing: 0; color: var(--ink) }
label.check .hint, label.row .hint { letter-spacing: 0 }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=datetime-local], input:not([type]), select, textarea {
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; padding: 9px 12px; width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease }
input::placeholder, textarea::placeholder { color: var(--muted); font-style: italic }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent) }
select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat }
textarea { min-height: 96px; resize: vertical }
textarea.mono, input.mono { font-family: var(--mono); font-size: 13px }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex: none }
input[type=file] { font: inherit; font-size: 13.5px; color: var(--ink-2); padding: var(--space-4); width: 100%;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--page); cursor: pointer }
input[type=file]::file-selector-button { font: inherit; font-size: 13.5px; margin-right: 12px; padding: 6px 14px; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink) }
form.row input[type=text], form.row select { width: auto; flex: 1 1 180px }
fieldset { margin: 0; min-width: 0 }
.scopes { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-2) }
.scopes legend { font-weight: 600; padding: 0 4px; font-size: 13.5px }

/* ---------- buttons */
button, .btn { font: inherit; font-size: 13.5px; line-height: 20px; font-weight: 400; padding: 8px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease }
button:hover, .btn:hover { background: var(--surface-hover); box-shadow: var(--shadow-sm); color: var(--ink) }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600 }
button.primary:hover, .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent) }
button.danger, .btn.danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 55%, transparent); background: var(--surface) }
button.danger:hover { background: var(--critical-bg); color: var(--critical) }
button.ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--accent-text) }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-hover); box-shadow: none }
button.sm, .btn.sm, td button, td .btn { padding: 5px 12px; font-size: 12.5px; line-height: 18px; border-radius: var(--radius-sm) }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font-size: inherit; box-shadow: none; text-decoration: underline;
  text-decoration-color: var(--border-strong); text-underline-offset: 2px }
button.link:hover { background: none; color: var(--critical); box-shadow: none }
button:disabled { opacity: .5; cursor: default; box-shadow: none }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 20px }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle }
th { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); background: var(--surface-sunken); white-space: nowrap }
thead th:first-child { border-top-left-radius: var(--radius-sm) } thead th:last-child { border-top-right-radius: var(--radius-sm) }
tbody tr { transition: background .15s ease } tbody tr:hover { background: var(--surface-hover) }
tbody tr:last-child td { border-bottom: 0 }
td.mono { font-size: 12.5px }
td a { font-weight: 600; text-decoration: none } td a:hover { text-decoration: underline }
td .row { gap: var(--space-2); flex-wrap: nowrap }
td .row a { font-weight: 400 }
.card.table { padding: 0; overflow: hidden }
.card.table table th:first-child, .card.table table td:first-child { padding-left: 22px }
.card.table thead th { border-radius: 0 }
.card.table > h2 { padding: var(--space-5) 22px 0 }

/* ---------- badges (old name: pill) */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-2); white-space: nowrap; vertical-align: middle }
.pill.live { background: var(--good-bg); color: var(--good) }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor }
.pill.no { background: var(--critical-bg); color: var(--critical) }
.pill.warn { background: var(--warning-bg); color: var(--warning) }
.pill.accent { background: var(--accent-wash); color: var(--ink) }

/* ---------- page cards (home, shared) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-4) }
.pagecard { display: grid; gap: 4px; text-decoration: none; color: inherit; transition: box-shadow .2s ease, border-color .2s ease }
.pagecard h3 { margin: 0 0 4px; font-size: 18px; line-height: 26px; color: var(--ink) }
.pagecard:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); color: inherit }
.pagecard .muted { font-size: 12.5px; line-height: 18px; font-style: italic }
.pagecard .mono { font-style: normal; color: var(--accent-text) }
.empty { text-align: center; font-style: italic; color: var(--muted); padding: var(--space-6) var(--space-4); font-size: 13.5px }
.empty .btn, .empty a.btn { font-style: normal; margin-top: var(--space-3) }

/* ---------- one-time secrets */
.oneshot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash), var(--shadow-sm) }
.temp { font-family: var(--mono); font-size: 14px; line-height: 22px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  background: var(--accent-wash); color: var(--ink); display: inline-block; max-width: 100%; word-break: break-all; user-select: all }

/* ---------- details */
details > summary { cursor: pointer; font-weight: 600; font-size: 14px }
details.fold { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px; background: var(--page) }
details.fold > summary { padding: 10px 0; list-style-position: inside }
details.fold[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: var(--space-4) }
details.fold[open] { padding-bottom: var(--space-4) }
td details { margin-top: 0 } td details[open] { flex-basis: 100% }
td details > summary { font-weight: 400; font-size: 12.5px; color: var(--accent-text) }
td details .stack { margin-top: var(--space-3); min-width: 260px }

/* ---------- danger zone */
.danger-zone { border-color: color-mix(in srgb, var(--critical) 35%, var(--border)) }
.danger-zone > summary { color: var(--critical); font-size: 15px; padding: 2px 0 }
.danger-zone[open] > summary { margin-bottom: var(--space-4) }
.danger-zone .item { display: grid; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border) }
.danger-zone .item:first-of-type { border-top: 0; padding-top: 0 }

/* ---------- key-value lists, people lists */
.people { list-style: none; padding: 0; margin: 0 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm) }
.people li { display: flex; align-items: center; gap: var(--space-2); padding: 8px 12px; margin: 0; border-top: 1px solid var(--border); font-size: 13.5px }
.people li:first-child { border-top: 0 }
.people li form { margin-left: auto }
.block + .block { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border) }
.block > h3:first-child { margin-top: 0 }

/* ---------- traffic */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0 0 var(--space-4) }
.stats3 > div { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--page) }
.stats3 .label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .03em; color: var(--ink-2) }
.stats3 b { display: block; font-family: var(--mono); font-size: 28px; line-height: 36px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 4px }
.spark { width: 100%; height: 64px; display: block; color: var(--series-1) }
.spark-line { stroke: currentColor }
.spark-area { fill: currentColor; fill-opacity: .12 }
.spark-axis { display: flex; justify-content: space-between; font-size: 12.5px; font-style: italic; margin-top: 4px }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-4); margin-top: var(--space-5) }
.tops h3 { font-size: 12px; line-height: 16px; letter-spacing: .03em; color: var(--ink-2); margin: 0 0 var(--space-2) }
.tops ol { margin: 0; padding-left: 1.2rem; font-size: 13.5px }

/* ---------- misc */
.prose { max-width: 46rem; line-height: 26px }
.prose h2 { margin-top: var(--space-6) } .prose h1 + h2, .prose h1 + p { margin-top: var(--space-3) }
.consent { max-width: 640px; justify-self: center; width: 100% }
form.inline { display: inline }
pre.mono { white-space: pre-wrap; word-break: break-word; margin: 0; font-size: 12.5px; line-height: 20px }
pre.code { background: var(--term-bg); color: var(--term-ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); overflow-x: auto }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; padding: 4px; background: var(--surface-sunken); border-radius: var(--radius-sm); width: fit-content; margin: 0 }
.tabs a { padding: 4px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); text-decoration: none }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm) }
.filters { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: end }
.filters label { flex: 1 1 120px }
.filters input { width: 100% }
.foot { text-align: center; padding: var(--space-6) var(--space-4); font-size: 12.5px; color: var(--muted); font-style: italic; border-top: 1px solid var(--border) }
.foot a { color: inherit } .foot a:hover { color: var(--accent-text) }
.auth { max-width: 420px; width: 100%; justify-self: center; margin-top: var(--space-6) }
.auth h1 { margin-bottom: var(--space-2) }

@media (max-width: 860px) { .cols { grid-template-columns: 1fr } }
@media (max-width: 720px) {
  header.bar { flex-wrap: wrap; gap: 0 var(--space-3); padding: var(--space-2) var(--space-4); position: static }
  header.bar nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 6px; margin: 0 -4px }
  .bar-end { margin-left: auto }
  main { padding: var(--space-5) var(--space-4) 48px; gap: var(--space-4) }
  .card { padding: var(--space-4) }
  .card.table table th:first-child, .card.table table td:first-child { padding-left: var(--space-4) }
  .card.table > h2 { padding: var(--space-4) var(--space-4) 0 }
  h1 { font-size: 24px; line-height: 32px }
  .stats3 { gap: var(--space-2) } .stats3 > div { padding: var(--space-2) var(--space-3) } .stats3 b { font-size: 22px; line-height: 30px }
  .section-nav { top: 0 }
  section[id] { scroll-margin-top: 70px }
  .menu-panel { position: fixed; top: auto; left: var(--space-4) !important; right: var(--space-4) !important; min-width: 0 }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important } }
html { scroll-behavior: smooth }
td details.acts > summary, td details > summary { padding: 4px 0 }
td details.acts[open] > .row { flex-wrap: wrap; margin-top: var(--space-2) }
td > .row { flex-wrap: wrap }
.row > select, .row > input[type=text] { width: auto; flex: 1 1 180px }
td.mono, td.nowrap { white-space: nowrap }
label.check, label.row { flex-wrap: nowrap; align-items: flex-start }
label.check input[type=checkbox], label.row input[type=checkbox] { margin-top: 2px }

/* product analytics bars (SVG, sized by attributes: the app CSP allows no inline style) */
table.bars { font-size: 13px }
table.bars th { background: none; font-weight: 400; color: var(--ink-2); padding: 4px 8px 4px 0; width: 1%; white-space: nowrap; letter-spacing: 0; font-size: 13px }
table.bars td { padding: 4px 0; border: 0 } table.bars tr { border: 0 } table.bars tbody tr:hover { background: none }
table.bars td.mono { width: 1%; padding-left: 8px; text-align: right }
table.bars svg { width: 100%; height: 12px; display: block } table.bars rect { fill: var(--series-1) }
table.bars tbody tr td, table.bars tbody tr th { border-bottom: 0 }
.toolbar form.row { flex-wrap: nowrap } .toolbar form.row select { flex: 0 1 auto }
