/* npay payout panel, D91: the add/swap console look (Space Grotesk + IBM Plex, served by the panel itself). */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-500-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-600-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext-600-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-700-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --surface: #11141b;
  --sunken: #0e1117;
  --deep: #080a0e;
  --hover: #141822;
  --active: #161a23;
  --border: #232834;
  --border-sub: #1c212b;
  --border-row: #1a1e27;
  --border-strong: #2e3542;
  --ink: #e8ebf2;
  --muted: #8a94a8;
  --faint: #616b7e;
  --ghost: #4a5262;
  --green: #4fe0a0;
  --accent: #8e9bff;
  --amber: #f5c46b;
  --red: #ff7a8a;
  --grotesk: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --t: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
  box-sizing: border-box;
}
/* The hidden attribute always wins over a class's display (the Settings search hides rows with it). */
[hidden] {
  display: none !important;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 13.5px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 100% -10%, rgba(142, 155, 255, 0.1), transparent 60%),
    radial-gradient(760px 480px at -10% 0%, rgba(79, 224, 160, 0.06), transparent 60%);
  background-attachment: fixed;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--grotesk);
  letter-spacing: -0.02em;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #b3bcff;
}
p {
  text-wrap: pretty;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #262c39;
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- shell */
body.app {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 12px;
  background: rgba(17, 20, 27, 0.6);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-sub);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border-sub);
}
.logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(142, 155, 255, 0.22), rgba(79, 224, 160, 0.16));
  border: 1px solid var(--border-strong);
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.brand b {
  display: block;
  font-family: var(--grotesk);
  font-size: 13.5px;
  font-weight: 600;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-top: 2px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
nav .group {
  display: grid;
  gap: 3px;
}
nav .group-title {
  padding: 0 11px 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    background var(--t),
    color var(--t);
}
nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex: 0 0 6px;
  background: var(--border-strong);
}
nav a:hover {
  background: var(--hover);
  color: var(--ink);
}
nav a.on {
  background: var(--active);
  color: var(--ink);
  border-color: var(--border-sub);
}
nav a.on::before {
  background: var(--green);
}
nav .count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 99px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245, 196, 107, 0.1);
  border: 1px solid rgba(245, 196, 107, 0.35);
}
.side-state {
  padding: 10px 12px;
  border: 1px solid var(--border-sub);
  border-radius: 13px;
  background: var(--sunken);
  display: grid;
  gap: 6px;
}
.side-state .micro {
  margin-bottom: 2px;
}
.light {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  flex: 0 0 7px;
  display: inline-block;
}
.dot.ok {
  background: var(--green);
}
.dot.no {
  background: var(--red);
  animation: pulseDot 1.2s infinite;
}
.me {
  padding: 10px 12px;
  border: 1px solid var(--border-sub);
  border-radius: 13px;
  background: var(--sunken);
  font-size: 12px;
  color: var(--faint);
}
.me a {
  color: var(--ink);
  font-weight: 600;
}
.me form {
  margin: 8px 0 0;
}
.me button {
  width: 100%;
  margin: 0;
}
.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
main {
  padding: 6px 26px 64px;
  max-width: 1680px;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.solo {
  display: grid;
  place-items: center;
  padding: 20px;
}
body.solo form.box {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: none;
}
body.solo main {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  animation: riseIn 0.22s ease;
  margin: 40px auto;
}

/* ---------------------------------------------------------------- top: title, chips, strip */
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 22px 26px 8px;
}
.top h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
.top .sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.strip {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill .beacon {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  flex: 0 0 6px;
  background: var(--ghost);
}
.pill.good {
  color: var(--green);
  border-color: rgba(79, 224, 160, 0.35);
  background: rgba(79, 224, 160, 0.1);
}
.pill.good .beacon {
  background: var(--green);
  animation: pulseDot 2s infinite;
}
.pill.warn {
  color: var(--amber);
  border-color: rgba(245, 196, 107, 0.35);
  background: rgba(245, 196, 107, 0.1);
}
.pill.warn .beacon {
  background: var(--amber);
  animation: pulseDot 2s infinite;
}
.pill.bad {
  color: var(--red);
  border-color: rgba(255, 122, 138, 0.35);
  background: rgba(255, 122, 138, 0.1);
}
.pill.bad .beacon {
  background: var(--red);
  animation: pulseDot 1.2s infinite;
}
.pill.mono {
  font-family: var(--mono);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.why {
  flex-basis: 100%;
  text-align: right;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}
.today {
  display: contents;
}
.today span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
}
.today b {
  font-family: var(--grotesk);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.login {
  font-size: 11.5px;
  color: var(--muted);
}
.lights {
  display: none;
}

/* ---------------------------------------------------------------- the active-orders drawer */
.drawer-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(142, 155, 255, 0.45);
  background: rgba(142, 155, 255, 0.14);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  transition: filter var(--t);
  user-select: none;
}
.drawer-btn,
.drawer-head .close,
.drawer-veil {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.drawer-btn:hover {
  filter: brightness(1.2);
}
.drawer-btn b {
  font-family: var(--mono);
  font-size: 11px;
}
.drawer-btn .need {
  color: var(--amber);
}
.drawer-toggle:focus-visible + .drawer-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(380px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.2s ease;
  visibility: hidden;
}
.drawer-veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 6, 10, 0.5);
  display: none;
  cursor: pointer;
}
.drawer-toggle:checked ~ .drawer {
  transform: none;
  visibility: visible;
}
.drawer-toggle:checked ~ .drawer-veil {
  display: block;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-sub);
}
.drawer-head b {
  font-family: var(--grotesk);
  font-size: 14px;
  font-weight: 600;
}
.drawer-head .close {
  cursor: pointer;
  color: var(--faint);
  font-size: 15px;
  padding: 4px 8px;
  border-radius: 8px;
}
.drawer-head .close:hover {
  color: var(--ink);
  background: var(--hover);
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--border-sub);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
}
.agroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.agroup-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-transform: uppercase;
}
.agroup-title i {
  font-style: normal;
  color: var(--muted);
}
.agroup.need .agroup-title {
  color: var(--amber);
}
.agroup.pay .agroup-title {
  color: var(--green);
}
.agroup.pend .agroup-title {
  color: var(--accent);
}
.aorder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-sub);
  background: var(--sunken);
  color: var(--ink);
  transition: border-color var(--t);
  border-left: 2px solid var(--border-strong);
}
.aorder:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.agroup.need .aorder {
  border-left-color: var(--amber);
}
.agroup.pay .aorder {
  border-left-color: var(--green);
}
.agroup.pend .aorder {
  border-left-color: var(--accent);
}
.aorder .no {
  font-family: var(--mono);
  font-size: 11.5px;
}
.aorder .amt {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 13px;
  text-align: right;
}
.aorder .stepx {
  font-size: 11.5px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aorder .age {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  text-align: right;
}
.aorder.bad .stepx {
  color: var(--red);
}
.agroup-empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}
.agroup-empty b {
  display: block;
  font-family: var(--grotesk);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------- type and helpers */
h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}
h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 2px;
}
.micro {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.muted {
  color: var(--muted);
}
.flag {
  color: var(--amber);
  font-weight: 600;
}
.t-ok {
  color: var(--green);
}
.t-bad {
  color: var(--red);
}
.t-need {
  color: var(--amber);
}
.t-move {
  color: var(--ink);
}
.code {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ghost);
  margin-top: 2px;
}
code,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.right {
  margin-left: auto;
  font-size: 12px;
}
.key {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1px;
  word-break: break-all;
}
.notes {
  white-space: pre-wrap;
  font: 12px/1.6 var(--mono);
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--deep);
  border: 1px solid var(--border-sub);
  color: var(--muted);
}
.reveal {
  font: 600 1.6em var(--mono);
  letter-spacing: 0.12em;
  user-select: all;
  padding: 16px;
  border-radius: 14px;
  background: var(--deep);
  border: 1px solid var(--border-strong);
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.badge.good {
  color: var(--green);
  border-color: rgba(79, 224, 160, 0.35);
  background: rgba(79, 224, 160, 0.1);
}
.badge.bad {
  color: var(--red);
  border-color: rgba(255, 122, 138, 0.35);
  background: rgba(255, 122, 138, 0.1);
}

/* ---------------------------------------------------------------- notes */
.note {
  margin: 0;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--sunken);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.note.ok {
  border-color: rgba(79, 224, 160, 0.3);
  background: rgba(79, 224, 160, 0.07);
  color: #a6efce;
}
.note.warn {
  border-color: rgba(245, 196, 107, 0.3);
  background: rgba(245, 196, 107, 0.07);
  color: #f0d79b;
}
.note.bad {
  border-color: rgba(255, 122, 138, 0.3);
  background: rgba(255, 122, 138, 0.07);
  color: #ffb3bd;
}
.note a {
  color: inherit;
  text-decoration: underline;
}

/* ---------------------------------------------------------------- tables */
.scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 10px 12px;
  background: var(--sunken);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-row);
  font-size: 12.5px;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background var(--t);
}
tbody tr:hover {
  background: var(--hover);
}

/* ---------------------------------------------------------------- forms and buttons */
form.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin: 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
form.box strong {
  font-family: var(--grotesk);
  font-size: 13.5px;
}
form.inline {
  display: inline;
  margin: 0;
}
td form.inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 280px;
}
td form.inline input[type='text'],
td form.inline select {
  flex: 1 1 110px;
  width: auto;
}
td form.inline button {
  margin-top: 0;
}
label {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
label.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
input[type='text'],
input[type='search'],
input[type='password'],
input[type='number'],
input[type='email'],
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--ink);
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition:
    border-color var(--t),
    box-shadow var(--t);
}
input::placeholder,
textarea::placeholder {
  color: var(--ghost);
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(142, 155, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(142, 155, 255, 0.12);
}
input[type='checkbox'] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
button,
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--hover);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    filter var(--t),
    transform var(--t),
    opacity var(--t);
}
button:hover:not(:disabled),
.btn:hover {
  filter: brightness(1.22);
  color: var(--ink);
}
button:active:not(:disabled),
.btn:active {
  transform: scale(0.97);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary,
.btn.primary {
  background: rgba(142, 155, 255, 0.16);
  border-color: rgba(142, 155, 255, 0.45);
  color: var(--accent);
}
button.primary:hover,
.btn.primary:hover {
  color: var(--accent);
}
button.danger,
.btn.danger {
  background: rgba(255, 122, 138, 0.14);
  border-color: rgba(255, 122, 138, 0.42);
  color: var(--red);
}
button.danger:hover,
.btn.danger:hover {
  color: var(--red);
}
button.good,
.btn.good {
  background: rgba(79, 224, 160, 0.14);
  border-color: rgba(79, 224, 160, 0.42);
  color: var(--green);
}
button.busy,
.btn.busy {
  color: transparent !important;
}
button.busy::after,
.btn.busy::after {
  content: '';
  position: absolute;
  left: calc(50% - 7px);
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 99px;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Home: the flow, the cards */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px;
}
.flow-cell {
  position: relative;
  overflow: hidden;
  padding: 14px 15px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    transform var(--t),
    border-color var(--t);
}
.flow-cell::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0.6;
}
.flow-cell:hover {
  border-color: var(--border-strong);
}
.flow-cell > span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.flow-cell b {
  font-family: var(--grotesk);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.flow-cell small {
  font-size: 11px;
  color: var(--faint);
  font-family: var(--mono);
  min-height: 15px;
}
.flow-cell.paying::before {
  background: var(--green);
  opacity: 1;
}
.flow-cell.paying b {
  color: var(--green);
}
.flow-cell.need::before {
  background: var(--amber);
  opacity: 1;
}
.flow-cell.need {
  border-color: rgba(245, 196, 107, 0.3);
}
.flow-cell.need > span {
  color: var(--amber);
}
.flow-cell.need b {
  color: var(--amber);
}
.home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: start;
}
.home-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-main > h2 {
  margin: 4px 0 0;
  font-size: 15px;
}
.home-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
}
.card.crit {
  border-color: rgba(255, 122, 138, 0.4);
  background: linear-gradient(120deg, rgba(255, 122, 138, 0.07), var(--surface) 55%);
}
.card h2 {
  margin: 0 0 10px;
  font-size: 13px;
}
.card p {
  margin: 6px 0;
}
.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.card-head strong {
  font-family: var(--grotesk);
  font-size: 15px;
  font-weight: 600;
  color: var(--amber);
}
.card.crit .card-head strong {
  color: var(--red);
}
.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 12px;
}
.card-facts .amount {
  font-family: var(--grotesk);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.actions button,
.actions .btn {
  margin-top: 0;
}
.now {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-row);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.line:last-child {
  border-bottom: 0;
}
.line > :first-child {
  color: var(--muted);
}
.line > :last-child {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.action-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 12px;
}
.action-boxes form.box {
  max-width: none;
}
details.system {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4px 18px;
}
details.system[open] {
  padding-bottom: 18px;
}
details.system summary {
  line-height: 40px;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
}
details.system .scroll {
  border-radius: 12px;
}

/* ---------------------------------------------------------------- one order */
.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.order-head b {
  font-family: var(--grotesk);
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 14px;
  align-items: start;
}
.order-steps {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
}
.order-facts {
  min-width: 0;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 0 0 14px;
}
.step:last-child {
  padding-bottom: 0;
}
.step::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--border-sub);
}
.step:last-child::before {
  display: none;
}
.step i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.step strong {
  font-weight: 600;
  color: var(--ink);
}
.step time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.step p {
  grid-column: 2/4;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- tiles, filters, chips */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    transform var(--t),
    border-color var(--t);
}
.tile:hover {
  border-color: var(--border-strong);
}
.tile span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.tile b {
  font-family: var(--grotesk);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tile small {
  font-size: 11px;
  color: var(--faint);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.filters form {
  flex: 1 1 320px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.filters form > div {
  flex: 1 1 240px;
  min-width: 0;
}
.filters label {
  margin-top: 0;
}
.filters form.day {
  flex: 0 1 320px;
}
.filters button {
  margin-top: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: var(--sunken);
  border: 1px solid var(--border-sub);
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.chips a:hover {
  color: var(--ink);
}
.chips a.on {
  background: var(--active);
  border-color: var(--border-sub);
  color: var(--ink);
}

/* ---------------------------------------------------------------- toasts */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: riseIn 0.18s ease;
}
.toast i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  margin-top: 5px;
  flex: 0 0 7px;
  background: var(--green);
}
.toast.warn i {
  background: var(--amber);
}
.toast.bad i {
  background: var(--red);
}
.toast b {
  display: block;
  font-family: var(--grotesk);
  font-size: 12.5px;
  font-weight: 600;
}
.toast span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  body.app {
    display: block;
  }
  .side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border-sub);
  }
  .brand {
    border: 0;
    padding: 0 6px;
  }
  nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    gap: 4px;
    flex-basis: 100%;
  }
  nav .group {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav .group-title {
    display: none;
  }
  nav a {
    min-height: 34px;
    white-space: nowrap;
  }
  .side-state {
    display: none;
  }
  .me {
    margin-left: auto;
    padding: 6px 10px;
  }
  .me form {
    display: inline;
    margin: 0 0 0 8px;
  }
  .me button {
    width: auto;
    min-height: 30px;
  }
  .top {
    padding: 14px 14px 4px;
  }
  main {
    padding: 4px 14px 56px;
  }
  .home,
  .order-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strip {
    justify-content: flex-start;
  }
  .why {
    text-align: left;
  }
  .toasts {
    left: 14px;
    right: 14px;
    max-width: none;
  }
}

/* D91: the emergency pause inside Home's System card */
form.pause {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-row);
}
form.pause p {
  margin: 0 0 4px;
  font-size: 12px;
}
form.pause textarea {
  min-height: 60px;
}
form.pause button {
  width: 100%;
}

/* D92: the drawer's summary of counts */
.asummary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.asummary div {
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid var(--border-sub);
  background: var(--sunken);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.asummary b {
  font-family: var(--grotesk);
  font-size: 19px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.asummary span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.asummary .on b {
  color: var(--ink);
}
.asummary .need.on {
  border-color: rgba(245, 196, 107, 0.35);
}
.asummary .need.on b {
  color: var(--amber);
}
.asummary .pay.on b {
  color: var(--green);
}
.asummary .pend.on b,
.asummary .release.on b {
  color: var(--accent);
}
.agroup.release .agroup-title {
  color: var(--accent);
}
.agroup.release .aorder {
  border-left-color: var(--accent);
}

/* D93: the Settings page */
.settings {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.settings-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.settings-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
}
.settings-nav a:hover {
  background: var(--hover);
  color: var(--ink);
}
.settings-nav a.on {
  background: var(--active);
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.settings-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.settings-search {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 10px;
  margin: -10px;
  background: var(--bg);
}
.settings-search input {
  flex: 1;
}
.settings-search button {
  margin: 0;
}
.settings-group h2 {
  margin: 0;
  font-size: 15px;
}
.settings-group {
  scroll-margin-top: 70px;
}
.settings-note {
  margin: 4px 0 6px;
  font-size: 12px;
}
.settings-group h3.sub {
  margin: 14px 0 6px;
  font-size: 12.5px;
}
.setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 6px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border-row);
}
.setting-about b {
  font-size: 13px;
}
.setting-key {
  margin-left: 8px;
  font-size: 10.5px;
  color: var(--faint);
}
.setting-about p {
  margin: 4px 0 0;
  font-size: 12px;
}
.setting-value {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.setting-value code {
  color: var(--ink);
}
.setting-edit select,
.setting-edit input,
.setting-edit textarea {
  min-height: 36px;
}
.lock {
  font-size: 11px;
}
.settings-save {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px -18px -16px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-sub);
  background: var(--surface);
  border-radius: 0 0 18px 18px;
}
.settings-save button {
  margin: 0;
}
@media (max-width: 900px) {
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    max-height: none;
  }
  .settings-nav a {
    white-space: nowrap;
  }
  .setting {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* D95: the Ads page: filters and ON/OFF switches */
.ads-intro {
  margin: 0;
  font-size: 12.5px;
}
.ads-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  min-width: 120px;
}
.ads-filters label.grow {
  flex: 1 1 220px;
}
.ads-filters select,
.ads-filters input {
  min-height: 36px;
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.ads-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  align-self: center;
}
table.ads td {
  vertical-align: middle;
}
form.toggle {
  margin: 0;
}
.switch {
  min-width: 68px;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t),
    transform var(--t);
}
.switch::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
}
.switch.on {
  color: var(--green);
  background: rgba(79, 224, 160, 0.12);
  border: 1px solid rgba(79, 224, 160, 0.45);
}
.switch.off {
  color: var(--red);
  background: rgba(255, 122, 138, 0.1);
  border: 1px solid rgba(255, 122, 138, 0.42);
}
button.switch.on:hover:not(:disabled) {
  color: var(--green);
  background: rgba(79, 224, 160, 0.2);
}
button.switch.off:hover:not(:disabled) {
  color: var(--red);
  background: rgba(255, 122, 138, 0.18);
}
.switch.busy::before {
  display: none;
}
.switch.static {
  cursor: default;
  opacity: 0.85;
}

/* D96: switches in Settings (a checkbox, so it works without the script), the save bar, the limit buttons */
.sw {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  cursor: pointer;
  margin: 0;
}
.sw input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sw-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  background: rgba(255, 122, 138, 0.1);
  border: 1px solid rgba(255, 122, 138, 0.42);
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t);
}
.sw-face::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
}
.sw-face::after {
  content: 'OFF';
}
.sw input:checked + .sw-face {
  color: var(--green);
  background: rgba(79, 224, 160, 0.12);
  border-color: rgba(79, 224, 160, 0.45);
}
.sw input:checked + .sw-face::after {
  content: 'ON';
}
.sw input:focus-visible + .sw-face {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.setting.changed {
  box-shadow: inset 2px 0 0 var(--amber);
  padding-left: 10px;
}
.settings-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-row);
}
.settings-save[data-dirty] {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  z-index: 4;
}
.settings-save [data-pending] b {
  color: var(--amber);
}
.settings-save button {
  margin: 0;
}
button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
form.inline button {
  margin-top: 0;
}

/* D96: a confirm step opens over the page, not as a new page */
dialog.sheet {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
dialog.sheet::backdrop {
  background: rgba(5, 7, 10, 0.62);
}
dialog.sheet h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
dialog.sheet form.box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
dialog.sheet form.box button {
  margin: 0;
}
[data-live='synced'] {
  font-variant-numeric: tabular-nums;
  min-width: 118px;
  justify-content: center;
}
dialog.sheet form.box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--border-row);
  border-radius: 0;
  background: none;
  box-shadow: none;
  width: auto;
  max-width: none;
}
dialog.sheet form.box a[data-cancel] {
  order: -1;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
dialog.sheet form.box a[data-cancel]:hover {
  color: var(--ink);
  background: var(--hover);
}
.setting-edit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-edit input,
.setting-edit textarea {
  flex: 1;
}
.setting-default {
  font-size: 11px;
}
