/* Grand Media panel: brand system v1 (Ink / Ground / Card / Grand Green / Live Green) */
@font-face { font-family: 'General Sans'; src: url('/static/fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/instrument-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #0F0F0F;
  --ground: #212121;   /* page */
  --card: #292929;     /* raised surface */
  --sunk: #1C1C1C;     /* recessed: chips, code, icon tiles */
  --text: #EDEDED;
  --line-hi: #4A4A4A;
  --green: #1E5C3F;
  --live: #4BBF71;
  --gray: #888888;
  --line: #383838;
  --line-soft: #303030;
  --red: #B3372F;
  /* Ink surface ramp, for the sidebar and bot cards */
  --ink-1: #1A1A1A;
  --ink-2: #1E1E1E;
  --ink-3: #242424;
  --ink-line: #2B2B2B;
  --ink-line-hi: #3D3D3D;
  --ink-text: #C9C9C9;
  --ink-text-dim: #8A8A8A;  /* 5.6:1 on ink */
  --ink-text-bright: #EEEEEE;
  --ink-text-soft: #A5A5A5;
  /* Secondary text that meets AA at body size */
  --gray-text: #9B9B9B;   /* 5.4:1 on card */
  --green-press: #17492F;
  --ink-press: #2A2A2A;
  /* One content width for every form surface */
  --form-width: 100%;
  --radius: 12px;
  --radius-lg: 18px;
  color-scheme: dark;
  --display: 'General Sans', sans-serif;
  --body: 'Inter', sans-serif;
  --label: 'Instrument Sans', sans-serif;
}

* { box-sizing: border-box; }
/* The hidden attribute must win over any display rule below. */
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; background: var(--ground); color: var(--text); }

/* Shell: ink sidebar + ground workspace */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 248px; flex-shrink: 0; background: #171717; color: var(--ink-text-bright);
  display: flex; flex-direction: column; padding: 28px 20px;
  position: sticky; top: 0; height: 100vh;
  /* Short windows must scroll the nav, not clip Log out off the bottom. */
  overflow-y: auto; overscroll-behavior: contain;
}
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 3px; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-bottom: 36px; }
.mark img { width: 40px; height: 40px; }
.mark span { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; }
/* Bot picker dropdown */
.botpicker { position: relative; margin-bottom: 4px; }
.botpicker summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--ink-1); border: 1px solid var(--ink-line); color: var(--ink-text-dim);
}
.botpicker summary::-webkit-details-marker { display: none; }
.botpicker summary:hover { border-color: var(--ink-line-hi); }
.botpicker[open] summary { border-color: var(--ink-line-hi); }
.botpicker[open] summary svg { transform: rotate(180deg); }
.botpicker summary svg { transition: transform .15s; }
.botpicker summary img { width: 26px; height: 26px; border-radius: 7px; }
.botpicker summary .name { flex: 1; font-family: var(--display); font-size: 15px; color: #fff; }
.botpicker-list {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px;
  max-height: 320px; overflow-y: auto;
  background: var(--ink-1); border: 1px solid var(--ink-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}
.botpicker-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-family: var(--label); font-size: 14.5px; color: var(--ink-text); text-decoration: none;
}
.botpicker-list a:hover { background: var(--ink-2); color: #fff; }
.botpicker-list img { width: 22px; height: 22px; border-radius: 6px; }

.side-heading {
  font-family: var(--label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-text-dim); margin: 18px 0 8px 12px;
}
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--label); font-weight: 500; font-size: 15px; color: var(--ink-text); text-decoration: none;
  padding: 11px 12px; border-radius: 10px; transition: background .12s, color .12s;
}
.side nav a:hover { background: var(--ink-2); color: #fff; }
.side nav a.on { background: #fff; color: var(--ink); border-radius: 999px; font-weight: 500; }
.side nav a.on .ico { color: var(--live); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ink-line); font-size: 14px; }
.side-user { display: block; color: var(--ink-text-bright); font-family: var(--label); margin-bottom: 4px; }
.side-foot a { color: var(--ink-text-dim); text-decoration: none; }
.side-foot a:hover { color: #fff; }

main { flex: 1; min-width: 0; padding: 44px 52px; max-width: 1760px; }

h1 { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0 0 14px; }
/* No Inter 700 is shipped, so avoid synthesized bold: use the display face. */
strong, b { font-family: var(--display); font-weight: 600; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }

/* Sub-navigation inside a section */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.subnav a {
  font-family: var(--label); font-weight: 500; font-size: 14.5px; text-decoration: none;
  color: var(--gray-text); background: var(--card); border: 1.5px solid var(--line);
  padding: 9px 16px; border-radius: 999px; transition: border-color .12s, color .12s;
}
.subnav a:hover { color: var(--text); border-color: var(--line-hi); }
.subnav a.on { background: #fff; border-color: #fff; color: var(--ink); }

.flash {
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; max-width: var(--form-width);
  font-family: var(--label); font-size: 14.5px; border: 1.5px solid var(--line); background: var(--card);
}
.flash-ok { border-color: rgba(75,191,113,0.4); color: var(--live); }
.flash-warn { border-color: rgba(179,55,47,0.5); color: #E88A82; }

/* Page and form layout */
.narrow { max-width: var(--form-width); }
.formfoot { display: flex; align-items: center; gap: 14px; margin: 4px 0 40px; max-width: var(--form-width); flex-wrap: wrap; }
.grow { flex: 1 1 220px; min-width: 0; }
.w-num { flex: 0 0 100px; }
.w-sm, select.w-sm { flex: 0 0 160px; }
/* Number inputs sized to their content instead of a dozen ad-hoc widths */
input.num, input[type=number].num { width: 84px; min-width: 84px; text-align: center; padding-left: 8px; padding-right: 8px; }
input.num-sm, input[type=number].num-sm { width: 68px; min-width: 68px; text-align: center; padding-left: 8px; padding-right: 8px; }
select.w-sm { width: 150px; min-width: 150px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
/* Bot tiles are the one place a multi-column grid still reads correctly. */
.grid-tiles { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
/* align-end keeps inputs on a line when one label wraps to two lines */
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > * { min-width: 0; }
.row > label { margin: 0; }
.row > .btn, .row > button { flex: 0 0 auto; }
input[type=file] { min-width: 0; }
.center { text-align: center; }
.muted { color: var(--gray-text); font-size: 14px; }
.error { color: #E88A82; }
.success { color: var(--live); }

/* Status language: green means live */
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--label); font-weight: 500;
  font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--sunk); color: var(--text);
}
.badge.ok { background: rgba(75,191,113,0.16); color: var(--live); }
.badge.ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.badge.bad { background: rgba(179,55,47,0.18); color: #E88A82; }
.badge.warn { background: var(--sunk); color: var(--gray-text); }

/* Buttons: big, Instrument Sans, ink primary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--label); font-weight: 500;
  font-size: 15px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { border-color: var(--line-hi); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.btn.primary:hover { background: #E3E3E3; border-color: #E3E3E3; }
.btn.ok { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ok:hover { background: var(--green-press); }
.btn.bad { background: var(--card); border-color: var(--line); color: #E88A82; }
.btn.bad:hover { border-color: var(--red); }

/* Collapsible optional sections: closed by default, no dead space */
details.section {
  border: 1.5px solid var(--line); border-radius: 12px; margin: 12px 0; background: var(--card);
}
details.section > summary {
  cursor: pointer; padding: 13px 16px; font: 500 14.5px var(--label); color: var(--text);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::before {
  content: ''; width: 7px; height: 7px; border-right: 2px solid var(--gray);
  border-bottom: 2px solid var(--gray); transform: rotate(-45deg); transition: transform .15s;
}
details.section[open] > summary::before { transform: rotate(45deg); }
details.section > summary:hover { color: var(--live); }
details.section > *:not(summary) { padding: 0 16px; }
details.section > *:last-child { padding-bottom: 14px; }
.replybox { border-top: 1.5px solid var(--line); margin-top: 14px; padding-top: 4px; }
.embedbox { border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 16px 14px; margin-top: 6px; }

/* Inline action groups in table rows: compact, always one line */
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.actions form { display: contents; }
.actions .btn { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
table td:last-child { white-space: nowrap; width: 1%; }
table td:last-child select, table td:last-child input:not([type=checkbox]) { min-width: 260px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tablewrap { overflow-x: auto; border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 620px; }

/* Chip editors: compact rows that expand into settings on click */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.chip {
  display: inline-flex; align-items: center; max-width: 100%; background: var(--sunk);
  border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden;
}
/* Without these a long label pushes the remove control out of the clipped box. */
.chip-main { min-width: 0; }
.chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-del { flex: 0 0 auto; }
.chip.open { border-color: var(--line-hi); background: var(--card); }
.chip-main {
  display: flex; align-items: center; gap: 7px; border: none; background: none; cursor: pointer;
  font: 500 14.5px var(--label); color: var(--text); padding: 9px 6px 9px 12px;
}
.chip-main:hover { color: var(--live); }
.chip-del {
  border: none; background: none; cursor: pointer; color: var(--gray-text);
  font-size: 17px; line-height: 1; padding: 9px 11px 9px 5px;
}
.chip-del:hover { color: var(--red); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.slotfields {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 16px 16px; margin-bottom: 12px;
  background: var(--card);
}
fieldset.slots { border: none; padding: 0; margin: 18px 0; }
fieldset.slots > legend { padding: 0; }

/* Role pickers: a collapsed summary that opens into click-to-toggle rows */
.rolepick > summary { justify-content: flex-start; gap: 10px; }
.rolepick-label { flex: 0 0 auto; font-weight: 500; }
.rolepick-summary {
  flex: 1 1 auto; min-width: 0; color: var(--gray-text); font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rolepick-list { max-height: 45vh; overflow-y: auto; padding: 0 16px 12px; }
label.check.rolepick-row, .rolepick-row {
  margin: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-family: var(--body); font-size: 15px;
}
.rolepick-row:hover { background: var(--sunk); }

/* Toggle switches. Every on/off control in the panel is one of these. */
label.check { display: flex; gap: 12px; align-items: center; margin: 12px 0; cursor: pointer; }
label.check input[type=checkbox] {
  appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto;
  width: 42px; height: 24px; min-height: 0; margin: 0; border-radius: 999px; cursor: pointer;
  background: #3F3F3F; border: none; transition: background .16s;
}
label.check input[type=checkbox]::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .16s;
  box-shadow: 0 1px 3px rgba(15,15,15,0.28);
}
label.check input[type=checkbox]:checked { background: var(--live); }
label.check input[type=checkbox]:checked::after { transform: translateX(18px); }
label.check input[type=checkbox]:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }

/* Commands list */
.cmd { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.cmd:last-of-type { border-bottom: none; }
.cmd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmd-name { font-family: var(--label); font-size: 15px; font-weight: 500; background: var(--sunk); padding: 4px 10px; border-radius: 8px; }
label.check.cmd-toggle { margin: 0 0 0 auto; gap: 8px; }
.cmd-toggle-text { font-family: var(--label); font-size: 13.5px; color: var(--gray-text); }
.cmd .muted { margin: 8px 0 0; }
.cmd-subs { display: flex; gap: 8px; flex-wrap: wrap; }
.cmd-subs code { background: var(--sunk); padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.cmd-filter.on { background: #fff; border-color: #fff; color: var(--ink); }
.cmd-filter .count { opacity: 0.6; margin-left: 4px; }
.feature-top .badge { flex: 0 0 auto; }
.feature .muted { flex: 1; margin: 0; }/* Fleet bot cards: ink surface, avatar top-left, actions top-right */
.botcard {
  position: relative; background: var(--sunk); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; min-height: 200px;
}
.botcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.botcard-avatar { width: 64px; height: 64px; border-radius: 16px; display: block; }
.botcard-avatar-blank { background: var(--ink-3); }
.botcard-actions { display: flex; gap: 8px; position: relative; z-index: 1; }
.botcard-link { margin-top: auto; padding-top: 28px; text-decoration: none; display: block; }
.botcard-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.botcard-link h2 { color: #fff; font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
.botcard-sub { display: flex; align-items: center; gap: 8px; color: var(--ink-text-soft); font-family: var(--label); font-size: 14.5px; margin: 0; }
.botcard-sub .dot.off { background: var(--ink-line-hi); }
.botcard-sub .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-line-hi); }
.botcard-sub .dot.live { background: var(--live); }
.botcard-rename { position: relative; z-index: 1; margin-top: 16px; }
.botcard-rename .btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.botcard-rename .btn.primary:hover { background: #E3E3E3; }
.botcard:hover { border-color: var(--line-hi); }

.iconbtn.dark {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ink-line);
  background: var(--ink-1); color: var(--ink-text-soft);
}
.iconbtn.dark:hover { background: var(--ink-3); color: #fff; border-color: var(--ink-line-hi); }
.iconbtn.dark.on { background: rgba(75,191,113,0.16); border-color: rgba(75,191,113,0.35); color: var(--live); }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--gray-text); cursor: pointer;
}
.iconbtn:hover { background: var(--ground); color: var(--ink); }

/* Tables as cards */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,15,15,0.05); }
th { font-family: var(--label); font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-text); text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
td { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: 15px; }
tr:last-child td { border-bottom: none; }
td.wrap { max-width: 300px; overflow-wrap: anywhere; }

/* Forms: roomy fields */
label { display: block; margin: 16px 0; font-family: var(--label); font-weight: 500; font-size: 14.5px; }
input, select, textarea {
  width: 100%; padding: 12px 15px; margin-top: 7px; background: var(--sunk); color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--radius); font: 400 15px/1.4 var(--body);
  min-height: 46px;
}
input, select, textarea { max-width: 760px; }
textarea { min-height: 0; resize: vertical; max-width: 100%; }
/* Native selects vary by platform; draw our own chevron so every control
   matches the text inputs exactly. */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239B9B9B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
select:hover { border-color: var(--gray-text); }
input[type=file] { padding: 9px 12px; cursor: pointer; }
input[type=file]::file-selector-button {
  font: 500 14px var(--label); margin-right: 12px; padding: 7px 12px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text);
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, a:focus-visible, summary:focus-visible,
.chip-main:focus-visible, .chip-del:focus-visible, .iconbtn:focus-visible {
  outline: 2px solid var(--live); outline-offset: 2px;
}
.side a:focus-visible, .botcard :focus-visible, .iconbtn.dark:focus-visible {
  outline-color: var(--live);
}
input[type=number] { width: auto; margin: 0 4px; }

fieldset { border: 1.5px solid var(--line); border-radius: 12px; margin: 18px 0; padding: 6px 16px 14px; }
legend { font-family: var(--label); font-size: 13px; color: var(--gray-text); padding: 0 8px; }
.steps { padding-left: 20px; } .steps li { margin: 10px 0; }
.steps a { color: var(--live); }
code { background: var(--sunk); padding: 3px 8px; border-radius: 6px; font-size: 14px; }

/* Login */
.login-wrap { max-width: 440px; margin: 12vh auto 0; }
.login-wrap .mark-lg { width: 72px; height: 72px; margin-bottom: 20px; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; padding: 14px 16px; }
  .mark { margin: 0 12px 0 0; }
  .side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
  .side-heading { display: none; }
    .side-foot { margin: 0 0 0 auto; border: none; padding: 0; }
  .side-user { display: none; }
  main { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Hairline under the page title, as on the reference dashboard */
.rule { height: 1px; background: var(--line); margin: 0 0 30px; }

.side nav a .ico { display: flex; flex: 0 0 auto; color: var(--ink-text-dim); }
.side nav a:hover .ico { color: var(--ink-text-bright); }

/* App cards: the dashboard's main grid. Bordered, no fill lift, action at the
   foot so every card ends on the same beat. */
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.appcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; transition: border-color .14s, background .14s;
}
.appcard:hover { border-color: var(--line-hi); background: #2C2C2C; }
.appcard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.appcard-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.appcard-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--sunk); color: var(--live);
}
.appcard-desc { margin: 0; color: var(--gray-text); font-size: 14.5px; line-height: 1.6; }
.appcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 18px;
}
.appcard-go {
  font-family: var(--label); font-weight: 500; font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 18px;
  transition: border-color .14s;
}
.appcard:hover .appcard-go { border-color: var(--line-hi); }

/* Links inside content had no rule, so they fell back to the browser default
   blue, which measures 1.55:1 on a dark card. */
.card a:not(.btn):not(.chip-main), .flash a, main p a { color: var(--live); }
.card a:not(.btn):hover { text-decoration: underline; }
::placeholder { color: var(--gray-text); opacity: 1; }

/* Layout utilities. These replace style attributes in the views so the CSP can
   forbid inline styles outright. */
.f1 { flex: 1; }
.f2 { flex: 2; }
/* label.check is 0,1,1 so a bare .m0 loses to it. Every utility that a
   label.check might carry has to match that specificity. */
.m0, label.check.m0 { margin: 0; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-28 { margin-bottom: 28px; }
.my-8 { margin: 8px 0; }
.lbl-tight { margin: 10px 0 6px; }
.self-end { align-self: end; }
.inline-form { display: inline; }
.w-120 { flex: 0 0 120px; }
.link-plain { color: inherit; }
.small { font-size: 13px; }
.schedrow {
  justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0;
}
/* Full-bleed pages that opt out of the app shell: login, error, legal. */
.bare { max-width: none; padding: 0; }
.panelbox { padding: 48px 40px; }
.btn-block { width: 100%; padding: 15px; }
.centerbox { max-width: 460px; margin: 12vh auto; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.doc-card { padding: 40px; }
.doc-mark { width: 48px; height: 48px; margin-bottom: 20px; }
.doc-img { max-width: 100%; border-radius: 12px; margin-top: 8px; }
