:root,
:root[data-theme=dark] {
  color-scheme: dark;
  --primary-color: #dd89fe;
  --accent-color: #a562fe;
  --on-accent: #150b24;
  --bg-primary: #120e1a;
  --bg-secondary: #1a1524;
  --bg-deep: #0b0812;
  --glass-bg: rgba(26, 21, 36, 0.64);
  --glass-float-bg: rgba(26, 21, 36, 0.94);
  --glass-blur: 28px;
  --glass-saturate: 170%;
  --glass-edge: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(165, 98, 254, 0.18);
  --glass-border-highlight: rgba(165, 98, 254, 0.34);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --glass-sheen: rgba(255, 255, 255, 0.06);
  --glass-light: rgba(221, 137, 254, 0.08);
  --glass-shadow: 0 1px 2px rgba(4, 2, 10, 0.5), 0 20px 48px rgba(4, 2, 10, 0.55);
  --glass-hover-bg: rgba(165, 98, 254, 0.1);
  --glass-inset-bg: rgba(11, 8, 18, 0.3);
  --glass-inset-edge: rgba(255, 255, 255, 0.09);
  --radius-surface: 20px;
  --radius-inset: 12px;
  --text-primary: #f8f4fd;
  --text-secondary: #d8cfe6;
  --text-muted: #ada1c0;
  --btn-primary-bg: linear-gradient(135deg, #a562fe 0%, #dd89fe 100%);
  --btn-primary-hover: linear-gradient(135deg, #dd89fe 0%, #ffa1ff 100%);
  --btn-shadow: 0 8px 28px rgba(165, 98, 254, 0.32);
  --accent-border: rgba(221, 137, 254, 0.36);
  --accent-green: #34d399;
  --accent-blue: #70b0fc;
  --accent-red: #fb7c7c;
  --accent-amber: #f5a524;
  --field-bg: #0b0812;
  --field-border: #8b79aa;
  --field-disabled-bg: #1a1524;
  --scrim: rgba(11, 8, 18, 0.72);
  --wash-1: rgba(126, 72, 254, 0.14);
  --wash-2: rgba(221, 137, 254, 0.07);
  --wash-3: rgba(255, 161, 255, 0.04);
  --wash-4: rgba(165, 98, 254, 0.08);
  --pointer-glow: rgba(221, 137, 254, 0.1);
  --grid-line: rgba(165, 98, 254, 0.1);
  --chore-panel-face: linear-gradient(
    135deg,
    #a8791f 0%,
    #c9a227 14%,
    #f0dfae 30%,
    #d4af37 46%,
    #b38728 62%,
    #e8d08a 80%,
    #a8791f 100%
  );
  --chore-panel-bg: #c9a227;
  --chore-panel-text: #1b1228;
  --chore-veil: rgba(23, 18, 39, 0.9);
  --chore-accent: #d4af37;
  --chore-accent-line: rgba(212, 175, 55, 0.32);
  --chore-rim: rgba(255, 246, 222, 0.62);
  --chore-rim-shade: rgba(46, 26, 2, 0.5);
  --chore-send-bg: #2f1880;
  --chore-send-text: #f8f4fd;
  --chore-goal-bg: #5a3bd6;
  --chore-goal-text: #f8f4fd;
  --chore-stamp: #dcd2f4;
  --chore-ground-bg: #171227;
  --chore-reply-bg: #453a6b;
  --logo-shadow: drop-shadow(0 2px 3px rgba(4, 2, 10, 0.65)) drop-shadow(0 8px 22px rgba(165, 98, 254, 0.45));
}

:root[data-theme=light] {
  color-scheme: light;
  --primary-color: #5a2ad0;
  --accent-color: #7e48fe;
  --on-accent: #ffffff;
  --bg-primary: #faf8fd;
  --bg-secondary: #ffffff;
  --bg-deep: #f3eefb;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-float-bg: rgba(255, 255, 255, 0.9);
  --glass-blur: 28px;
  --glass-saturate: 170%;
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(126, 72, 254, 0.16);
  --glass-border-highlight: rgba(126, 72, 254, 0.3);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-sheen: rgba(255, 255, 255, 0.55);
  --glass-light: rgba(165, 98, 254, 0.1);
  --glass-shadow: 0 1px 2px rgba(43, 24, 84, 0.08), 0 16px 40px rgba(43, 24, 84, 0.12);
  --glass-hover-bg: rgba(126, 72, 254, 0.07);
  --glass-inset-bg: rgba(255, 255, 255, 0.5);
  --glass-inset-edge: rgba(27, 18, 40, 0.12);
  --radius-surface: 20px;
  --radius-inset: 12px;
  --text-primary: #1b1228;
  --text-secondary: #3e3252;
  --text-muted: #5c506e;
  --btn-primary-bg: linear-gradient(135deg, #5b2bd6 0%, #7e48fe 100%);
  --btn-primary-hover: linear-gradient(135deg, #4c21bd 0%, #6a37ec 100%);
  --btn-shadow: 0 8px 24px rgba(91, 43, 214, 0.28);
  --accent-border: rgba(126, 72, 254, 0.34);
  --accent-green: #04664a;
  --accent-blue: #1c4acf;
  --accent-red: #b01b1b;
  --accent-amber: #844503;
  --field-bg: #ffffff;
  --field-border: #796b93;
  --field-disabled-bg: #f3eefb;
  --scrim: rgba(27, 18, 40, 0.4);
  --wash-1: rgba(126, 72, 254, 0.045);
  --wash-2: rgba(221, 137, 254, 0.09);
  --wash-3: rgba(255, 161, 255, 0.075);
  --wash-4: rgba(165, 98, 254, 0.045);
  --pointer-glow: rgba(90, 42, 208, 0.08);
  --grid-line: rgba(126, 72, 254, 0.2);
  --chore-panel-face: linear-gradient(
    135deg,
    #5c3001 0%,
    #7a4104 14%,
    #a86016 30%,
    #8f4f08 46%,
    #6b3802 62%,
    #9c5405 80%,
    #5c3001 100%
  );
  --chore-panel-bg: #7a4104;
  --chore-panel-text: #ffffff;
  --chore-veil: rgba(230, 218, 249, 0.9);
  --chore-accent: #844503;
  --chore-accent-line: rgba(132, 69, 3, 0.28);
  --chore-rim: rgba(255, 249, 235, 0.55);
  --chore-rim-shade: rgba(32, 16, 0, 0.55);
  --chore-send-bg: #ffffff;
  --chore-send-text: #5b2fd0;
  --chore-goal-bg: #5b2fd0;
  --chore-goal-text: #ffffff;
  --chore-stamp: #dcd2f4;
  --chore-ground-bg: #e6daf9;
  --chore-reply-bg: #fcfaff;
  --logo-shadow: drop-shadow(0 2px 3px rgba(43, 24, 84, 0.22)) drop-shadow(0 8px 20px rgba(90, 42, 208, 0.32));
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --primary-color: #5a2ad0;
    --accent-color: #7e48fe;
    --on-accent: #ffffff;
    --bg-primary: #faf8fd;
    --bg-secondary: #ffffff;
    --bg-deep: #f3eefb;
    --glass-bg: rgba(255, 255, 255, 0.62);
    --glass-float-bg: rgba(255, 255, 255, 0.9);
    --glass-blur: 28px;
    --glass-saturate: 170%;
    --glass-edge: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(126, 72, 254, 0.16);
    --glass-border-highlight: rgba(126, 72, 254, 0.3);
    --glass-highlight: rgba(255, 255, 255, 0.95);
    --glass-sheen: rgba(255, 255, 255, 0.55);
    --glass-light: rgba(165, 98, 254, 0.1);
    --glass-shadow: 0 1px 2px rgba(43, 24, 84, 0.08), 0 16px 40px rgba(43, 24, 84, 0.12);
    --glass-hover-bg: rgba(126, 72, 254, 0.07);
    --glass-inset-bg: rgba(255, 255, 255, 0.5);
    --glass-inset-edge: rgba(27, 18, 40, 0.12);
    --radius-surface: 20px;
    --radius-inset: 12px;
    --text-primary: #1b1228;
    --text-secondary: #3e3252;
    --text-muted: #5c506e;
    --btn-primary-bg: linear-gradient(135deg, #5b2bd6 0%, #7e48fe 100%);
    --btn-primary-hover: linear-gradient(135deg, #4c21bd 0%, #6a37ec 100%);
    --btn-shadow: 0 8px 24px rgba(91, 43, 214, 0.28);
    --accent-border: rgba(126, 72, 254, 0.34);
    --accent-green: #04664a;
    --accent-blue: #1c4acf;
    --accent-red: #b01b1b;
    --accent-amber: #844503;
    --field-bg: #ffffff;
    --field-border: #796b93;
    --field-disabled-bg: #f3eefb;
    --scrim: rgba(27, 18, 40, 0.4);
    --wash-1: rgba(126, 72, 254, 0.045);
    --wash-2: rgba(221, 137, 254, 0.09);
    --wash-3: rgba(255, 161, 255, 0.075);
    --wash-4: rgba(165, 98, 254, 0.045);
    --pointer-glow: rgba(90, 42, 208, 0.08);
    --grid-line: rgba(126, 72, 254, 0.2);
    --chore-panel-face: linear-gradient(
      135deg,
      #5c3001 0%,
      #7a4104 14%,
      #a86016 30%,
      #8f4f08 46%,
      #6b3802 62%,
      #9c5405 80%,
      #5c3001 100%
    );
    --chore-panel-bg: #7a4104;
    --chore-panel-text: #ffffff;
    --chore-veil: rgba(230, 218, 249, 0.9);
    --chore-accent: #844503;
    --chore-accent-line: rgba(132, 69, 3, 0.28);
    --chore-rim: rgba(255, 249, 235, 0.55);
    --chore-rim-shade: rgba(32, 16, 0, 0.55);
    --chore-send-bg: #ffffff;
    --chore-send-text: #5b2fd0;
    --chore-goal-bg: #5b2fd0;
    --chore-goal-text: #ffffff;
    --chore-stamp: #dcd2f4;
    --chore-ground-bg: #e6daf9;
    --chore-reply-bg: #fcfaff;
    --logo-shadow: drop-shadow(0 2px 3px rgba(43, 24, 84, 0.22)) drop-shadow(0 8px 20px rgba(90, 42, 208, 0.32));
  }
}
@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url("assets/fonts/ProximaNova-Semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/fonts/ProximaNova-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("assets/fonts/ProximaNova-Semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Proxima Nova";
  font-style: normal;
  font-weight: 600 900;
  font-display: block;
  src: url("assets/fonts/ProximaNova-Bold.woff2") format("woff2");
}
:root {
  --font-sans: "Proxima Nova";
  --font-mono: "Proxima Nova";
  --page-inset: 32px;
  --frame-max: 1760px;
  --bar-gap: clamp(32px, 16px + 6vw, 76px);
  --frame-gap: 20px;
  --bar-height: 56px;
  --sidebar-width: clamp(220px, 20vw, 264px);
  --measure: 44rem;
  --z-backdrop: -1;
  --z-panel: 1000;
  --z-chat: 1500;
  --z-modal: 2000;
  --z-toast: 3000;
}

@media (max-width: 60rem) {
  :root {
    --page-inset: 16px;
    --frame-gap: 16px;
  }
}
@media (max-width: 30rem) {
  :root {
    --page-inset: 12px;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: calc(100% * var(--app-font, 1));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  background-color: var(--bg-deep);
}

body {
  min-height: 100vh;
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary-color);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.glass-surface,
.metric-card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-surface);
  background: linear-gradient(135deg, var(--glass-sheen), transparent 45%) padding-box scroll, radial-gradient(circle 360px at var(--pointer-x, 50%) var(--pointer-y, 12%), var(--glass-light), transparent 60%) padding-box fixed, var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-border), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface,
  .metric-card {
    background-color: var(--glass-float-bg);
  }
}

.metric-card {
  position: relative;
  top: 0;
}
@media (hover: hover) {
  .metric-card:hover {
    border-color: var(--glass-border-highlight);
    box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-highlight), var(--glass-shadow);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .metric-card {
    transition: top 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .metric-card:hover {
    top: -2px;
  }
}

:where(.glass-surface, .metric-card) :is(.glass-surface, .metric-card) {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.text-gradient-violet {
  padding-bottom: 0.08em;
  background: linear-gradient(to bottom, var(--text-primary) 40%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono-text {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle 520px at var(--pointer-x, 50%) var(--pointer-y, 12%), var(--pointer-glow), transparent 70%);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: radial-gradient(70% 60% at 10% 0%, var(--wash-1), transparent 70%), radial-gradient(55% 55% at 95% 15%, var(--wash-2), transparent 70%), radial-gradient(60% 60% at 85% 100%, var(--wash-3), transparent 70%), radial-gradient(60% 55% at 5% 90%, var(--wash-4), transparent 70%);
  animation: backdrop-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle 320px at var(--pointer-x, 50%) var(--pointer-y, 12%), currentColor, transparent);
  mask-image: radial-gradient(circle 320px at var(--pointer-x, 50%) var(--pointer-y, 12%), currentColor, transparent);
}

@keyframes backdrop-drift {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(-1.5deg) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) rotate(1deg) scale(1.04);
  }
  100% {
    transform: translate3d(3%, -1%, 0) rotate(1.5deg) scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .backdrop::before {
    animation: none;
  }
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: var(--measure);
  padding: clamp(16px, 4vw, 24px);
}

.panel > h2 {
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 800;
}

.panel--notice {
  border-color: var(--accent-border);
}

.panel--notice > a {
  align-self: flex-start;
}

.panel > a {
  align-self: flex-start;
  font-weight: 600;
}

.boot__title {
  color: var(--accent-red);
}

.boot__reason {
  overflow-wrap: anywhere;
}

.frame {
  display: flex;
  flex-direction: column;
  gap: var(--bar-gap);
  width: min(var(--frame-max), 100% - 2 * var(--page-inset));
  min-height: 100vh;
  margin-inline: auto;
  padding-block: var(--page-inset) var(--bar-gap);
}

.frame__main,
.frame__content {
  display: flex;
  flex-direction: column;
  gap: var(--frame-gap);
  min-width: 0;
}

.frame__body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
  gap: var(--frame-gap) clamp(16px, 2.5vw, 32px);
}

.frame__aside {
  position: sticky;
  top: var(--page-inset);
  display: flex;
  flex-direction: column;
  gap: var(--frame-gap);
  min-width: 0;
}

.frame__aside:has(.chore-launcher) .sidebar {
  max-height: calc(100vh - 2 * var(--page-inset) - var(--chore-size) - var(--frame-gap));
}

.app-bar {
  --app-bar-inset-start: clamp(12px, 2vw, 20px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--bar-height);
  padding: 7px 7px 7px var(--app-bar-inset-start);
}

.app-bar__brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.app-bar__brand > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
}

.app-bar__end {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
}

.brand-logo {
  --logo-height: 84px;
  display: block;
  width: auto;
  height: var(--logo-height);
  margin-block: calc((40px - var(--logo-height)) / 2);
  translate: 0 calc(var(--logo-height) * 20 / 231);
  filter: var(--logo-shadow);
}
@media (max-width: 60rem) {
  .brand-logo {
    --logo-height: 52px;
    translate: none;
  }
}

.brand-logo--on-light,
:root[data-theme=light] .brand-logo--on-dark {
  display: none;
}

:root[data-theme=light] .brand-logo--on-light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .brand-logo--on-dark {
    display: none;
  }
  :root:not([data-theme]) .brand-logo--on-light {
    display: block;
  }
}
.app-bar__links {
  flex: 1 1 auto;
  min-width: 0;
}
.app-bar__links ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px clamp(12px, 2.5vw, 24px);
  list-style: none;
}
.app-bar__links a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.app-bar__links a:hover, .app-bar__links a[aria-current=page] {
  color: var(--primary-color);
}

.app-bar__context {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
  min-width: 0;
  font-size: 0.875rem;
}

.app-bar__tree {
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.app-bar__endpoint {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(28rem, 100%);
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  padding: 3px 10px;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-bar__state {
  min-width: 0;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-switch:hover {
  border-color: var(--primary-color);
  background: var(--glass-hover-bg);
  color: var(--primary-color);
}

.theme-switch__icon {
  width: 20px;
  height: 20px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-height: calc(100vh - 2 * var(--page-inset));
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar__section {
  padding-left: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-inset);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-item a:hover {
  background: var(--glass-hover-bg);
  color: var(--text-primary);
}
.nav-item a[aria-current=page] {
  background: color-mix(in srgb, var(--accent-color) 14%, var(--bg-secondary));
  border-color: var(--accent-border);
  color: var(--primary-color);
}

.session {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 0;
  border-top: 1px solid var(--glass-border);
}

.session__disconnect {
  align-self: flex-start;
}

.session__version {
  font-size: 0.8125rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.page-title {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.choice {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  position: relative;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 16px;
}
@media (hover: hover) {
  .choice:hover {
    border-color: var(--glass-border-highlight);
    box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-highlight);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .choice {
    transition: top 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .choice:hover {
    top: -2px;
  }
}
.choice a {
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.choice a:hover {
  text-decoration: underline;
}
.choice p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (max-width: 60rem) {
  .frame__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .frame__aside {
    display: contents;
  }
  .sidebar {
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    max-height: none;
    overflow: visible;
    padding: 8px;
  }
  .sidebar__list {
    order: -1;
    flex: 1 0 100%;
    flex-direction: row;
    min-width: 0;
    padding: 2px;
    padding-inline-end: 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, currentColor calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, currentColor calc(100% - 28px), transparent);
  }
  .sidebar__list::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    flex-shrink: 0;
  }
  .nav-item a {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .sidebar__section {
    padding-left: 10px;
  }
  .session {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 12px;
    min-width: 0;
    padding: 0 4px 0 0;
    border-top: 0;
  }
  .session__disconnect {
    align-self: center;
  }
  .app-bar__context {
    order: 1;
    flex-basis: 100%;
    justify-content: flex-start;
    margin-right: calc(var(--app-bar-inset-start) - 7px);
    padding: 6px 0 0;
    border-top: 1px solid var(--glass-border);
  }
}
@media (max-width: 40rem) {
  .app-bar__links {
    order: 1;
    flex-basis: 100%;
    margin-right: calc(var(--app-bar-inset-start) - 7px);
  }
  .app-bar__links ul {
    justify-content: flex-start;
  }
}
.dialog-overlay {
  --dialog-inset: clamp(12px, 4vw, 24px);
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--dialog-inset);
  background: var(--scrim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  max-height: calc(100dvh - 2 * var(--dialog-inset));
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--glass-float-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 4vw, 20px) clamp(16px, 4vw, 24px) 0;
}
.dialog__header h2 {
  min-width: 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  font-weight: 800;
}

.dialog__close,
.toast__dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.dialog__close:hover,
.toast__dismiss:hover {
  background: var(--glass-hover-bg);
  color: var(--text-primary);
}

.dialog__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 24px) clamp(16px, 4vw, 24px);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button,
.panel--notice > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.button:hover,
.panel--notice > a:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-border-highlight);
}
.button:disabled,
.panel--notice > a:disabled {
  border-color: var(--glass-border);
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  cursor: not-allowed;
}

.button--primary,
.panel--notice > a {
  border-color: transparent;
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  box-shadow: var(--btn-shadow);
}
.button--primary:hover,
.panel--notice > a:hover {
  border-color: transparent;
  background: var(--btn-primary-hover);
}

.button--danger {
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.button--danger:hover {
  background: color-mix(in srgb, var(--accent-red) 14%, var(--bg-secondary));
  border-color: var(--accent-red);
}

.button--primary:disabled,
.button--danger:disabled {
  border-color: var(--glass-border);
  background: var(--field-disabled-bg);
  box-shadow: none;
  color: var(--text-muted);
}

.toasts {
  --toasts-edge: 24px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(50vh + 28px + var(--toasts-edge) + env(safe-area-inset-bottom, 0px));
  padding: 28px max(var(--toasts-edge), (100% - 500px) / 2) calc(var(--toasts-edge) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  pointer-events: none;
}

.toast {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-surface);
  background: linear-gradient(135deg, var(--glass-sheen), transparent 45%) padding-box scroll, radial-gradient(circle 360px at var(--pointer-x, 50%) var(--pointer-y, 12%), var(--glass-light), transparent 60%) padding-box fixed, var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-border), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 16px;
  border-left-width: 4px;
  background-color: var(--glass-float-bg);
  color: var(--text-primary);
  pointer-events: auto;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .toast {
    background-color: var(--glass-float-bg);
  }
}

.toast--success {
  border-left-color: var(--accent-green);
}

.toast--info {
  border-left-color: var(--primary-color);
}

.toast--warning {
  border-left-color: var(--accent-amber);
}

.toast--error {
  border-left-color: var(--accent-red);
}

.toast__message {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 60rem) {
  .toasts {
    --toasts-edge: 12px;
    padding-inline: var(--toasts-edge);
  }
}
@media (max-width: 30rem) {
  .dialog__actions .button {
    flex: 1 1 auto;
  }
}
.screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.screen > a {
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
}
.screen > a:hover {
  text-decoration: underline;
}

.screen > div:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen > div:not([class]) > .button {
  align-self: flex-start;
}

.screen-intro,
.page-head + p {
  max-width: var(--measure);
  font-size: 1rem;
  color: var(--text-secondary);
}

.hint {
  max-width: var(--measure);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.section-title {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.state {
  color: var(--text-secondary);
}

.muted,
.cell-sub {
  color: var(--text-muted);
}

.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.panel--error {
  border-color: var(--accent-red);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: clamp(14px, 3vw, 20px);
}

.tile__value {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tile__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.table-scroll {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-surface);
  background: linear-gradient(135deg, var(--glass-sheen), transparent 45%) padding-box scroll, radial-gradient(circle 360px at var(--pointer-x, 50%) var(--pointer-y, 12%), var(--glass-light), transparent 60%) padding-box fixed, var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-border), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .table-scroll {
    background-color: var(--glass-float-bg);
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
  vertical-align: top;
}
.data-table td {
  overflow-wrap: anywhere;
}
.data-table td > a {
  white-space: nowrap;
}
.data-table th {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}
.data-table thead th {
  border-bottom-color: var(--glass-inset-edge);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: -11px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.sort-button:hover {
  color: var(--text-primary);
}

.sort-button__mark {
  flex-shrink: 0;
  opacity: 0.45;
}

th[aria-sort] .sort-button {
  color: var(--text-primary);
}
th[aria-sort] .sort-button .sort-button__mark {
  opacity: 1;
}

.data-table:has(th:nth-child(5)) {
  min-width: 52rem;
}

.data-table:has(th:nth-child(7)) {
  min-width: 60rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.data-table td.actions {
  display: table-cell;
  text-align: right;
  white-space: nowrap;
}
.data-table td.actions > .button + .button {
  margin-left: 8px;
}
.data-table td.actions .form__error {
  min-width: 14rem;
  margin-top: 8px;
  text-align: left;
  white-space: normal;
}

ul.features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
ul.features li {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  padding: 2px 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--active {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.badge--suspended {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.badge--retired {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.editor-row td {
  background: var(--glass-inset-bg);
}

[hidden] {
  display: none !important;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.icon-button:hover, .icon-button[aria-expanded=true] {
  border-color: var(--glass-border-highlight);
  background: var(--glass-hover-bg);
  color: var(--text-primary);
}
.icon-button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.icon-button--danger {
  color: var(--accent-red);
}
.icon-button--danger:hover {
  border-color: var(--accent-red);
  background: color-mix(in srgb, var(--accent-red) 14%, var(--bg-secondary));
  color: var(--accent-red);
}

.table-scroll--details {
  container-type: inline-size;
}

.table-scroll--details .data-table.details-table {
  min-width: 36rem;
}

.data-table .details-row > td {
  padding: 0;
  background: var(--glass-inset-bg);
}

.details {
  position: sticky;
  left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 16px 24px;
  width: 100%;
  max-width: 100cqi;
  padding: 16px clamp(12px, 3vw, 20px);
  font-size: 0.9375rem;
  white-space: normal;
}

.details__scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
}

.details .details__scroll .data-table {
  min-width: 30rem;
  font-size: 0.875rem;
}
.details .details__scroll .data-table th,
.details .details__scroll .data-table td {
  padding: 8px 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--glass-border);
}

.tab {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-inset) var(--radius-inset) 0 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.tab:hover {
  background: var(--glass-hover-bg);
  color: var(--text-primary);
}
.tab[aria-selected=true] {
  border-bottom-color: var(--primary-color);
  color: var(--text-primary);
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.raw-view > summary {
  min-height: 40px;
  padding-block: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.raw-json {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  max-height: 20rem;
  margin-top: 8px;
  padding: 10px 12px;
  overflow: auto;
  font-size: 0.8125rem;
  white-space: pre;
}

.editor,
.form,
.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form {
  max-width: var(--measure);
}

.form > .button,
.panel > .button {
  align-self: flex-start;
}

.editor__note {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
  gap: 8px;
  min-inline-size: 0;
  padding: 0;
  border: none;
}

.sku {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  font-size: 0.9375rem;
}
.sku span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sku input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.field input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-hover-bg);
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.field input,
.field textarea,
.field select,
.toggle-form input,
.dialog-form textarea {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-inset);
  background: var(--field-bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder,
.field select::placeholder,
.toggle-form input::placeholder,
.dialog-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.toggle-form input:focus,
.dialog-form textarea:focus {
  border-color: var(--primary-color);
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.toggle-form input:focus-visible,
.dialog-form textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
}
.field input:disabled,
.field textarea:disabled,
.field select:disabled,
.toggle-form input:disabled,
.dialog-form textarea:disabled {
  border-color: var(--glass-border-highlight);
  background: var(--field-disabled-bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

.field textarea,
.dialog-form textarea {
  width: 100%;
  line-height: 1.5;
  resize: vertical;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--field-bg) inset;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
  transition: background-color 600000s 0s, color 600000s 0s;
}

.field .mono-text {
  font-family: var(--font-mono);
}

.form__error {
  color: var(--accent-red);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px 24px;
}
.detail-list dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.detail-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 16px;
  list-style: none;
}
.destinations a {
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
}
.destinations a:hover {
  text-decoration: underline;
}
.destinations p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.destinations > li {
  position: relative;
  top: 0;
}
@media (hover: hover) {
  .destinations > li:hover {
    border-color: var(--glass-border-highlight);
    box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-highlight), var(--glass-shadow);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .destinations > li {
    transition: top 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .destinations > li:hover {
    top: -2px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.screen-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.screen-toolbar .section-title {
  margin-top: 0;
}

.screen-toolbar--ruled {
  flex-wrap: wrap-reverse;
  align-items: flex-start;
  border-bottom: 1px solid var(--glass-border);
}
.screen-toolbar--ruled > :not(.tabs) {
  margin-bottom: 6px;
}
.screen-toolbar--ruled .tabs {
  border-bottom: 0;
}
.screen-toolbar--ruled .actions {
  margin-left: auto;
}

.button--small {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.unknown-skus {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-inset);
  font-size: 0.9375rem;
}

@media (max-width: 30rem) {
  .detail-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }
  .detail-list dd + dt {
    margin-top: 10px;
  }
}
.toggle-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 16rem;
}
.toggle-form input {
  flex: 1 1 12rem;
}

.violations {
  margin-top: 6px;
  padding-left: 18px;
  color: var(--accent-red);
  overflow-wrap: anywhere;
}

.filter-field {
  flex: 1 1 16rem;
  max-width: 24rem;
}
.filter-field input {
  -webkit-appearance: none;
  appearance: none;
}

.notice-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.stage-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  list-style: none;
}
.stage-list li + li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-top: 2px solid var(--text-muted);
  border-right: 2px solid var(--text-muted);
  transform: rotate(45deg);
  vertical-align: middle;
}

.rule-group__head {
  background: var(--glass-inset-bg);
}

.notes {
  padding-left: 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.notes:empty {
  display: none;
}

.revision-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.navbar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.table-scroll .data-table.list-table {
  min-width: 36rem;
}
.table-scroll .data-table.list-table td:first-child {
  overflow-wrap: break-word;
}

.table-scroll .data-table.list-table:has(th:nth-child(7)) {
  min-width: 48rem;
}

.summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--text-secondary);
}
.summary-line a {
  font-weight: 600;
}

.refusal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.refusal__holders {
  padding-left: 18px;
  color: var(--text-primary);
}
.refusal__holders:empty {
  display: none;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 12px;
}

.pulse-tile__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.pulse-tile__head h3 {
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pulse-tile .detail-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 16px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.pulse-tile .detail-list dd + dt {
  margin-top: 8px;
}
.pulse-tile .panel {
  padding: 12px 14px;
}
.pulse-tile > .button {
  align-self: flex-start;
}

.workspace {
  container: workspace/inline-size;
}

.workspace__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.workspace__title {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  font-weight: 800;
}

.workspace__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--text-secondary);
}

.workspace__key {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.workspace__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: var(--glass-float-bg);
}

.workspace__bar-gap {
  flex: 1 1 auto;
}

@media (min-width: 30rem) {
  .workspace__bar {
    position: sticky;
    top: var(--page-inset);
    z-index: var(--z-panel);
  }
}
.workspace .button--small {
  min-height: 40px;
}

.workspace__body {
  display: flex;
  flex-direction: column;
  gap: var(--frame-gap);
  min-width: 0;
}

.workspace__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.workspace__form * {
  scroll-margin-block: 6rem 2rem;
}

.workspace__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  order: -1;
  min-width: 0;
  padding: clamp(14px, 3vw, 20px);
}
.workspace__side[data-open=false] {
  display: none;
}

.side__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.side__head .tabs {
  flex: 1 1 auto;
}

.side-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

@container workspace (min-width: 56rem) {
  .workspace__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    align-items: start;
  }
  .workspace__body--single {
    display: flex;
  }
  .workspace__side,
  .workspace__side[data-open=false] {
    display: flex;
    order: 0;
    position: sticky;
    top: calc(var(--page-inset) + 4.5rem);
    max-height: calc(100vh - 2 * var(--page-inset) - 4.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .side__close {
    display: none;
  }
}
.card-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.editor-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px, 4vw, 24px);
}

.editor-card__title {
  font-size: 1.0625rem;
  font-weight: 800;
}

.editor-card__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  align-items: start;
  gap: 16px 20px;
  min-width: 0;
}
.editor-card__body > :not(.editor-field),
.editor-card__body > .editor-field--wide {
  grid-column: 1/-1;
}

.field__label {
  font-weight: 600;
}

.editor-field [aria-invalid=true] {
  border-color: var(--accent-red);
}

.editor-field input[type=checkbox] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-color);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.switch span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkbox-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.checkbox-group > legend {
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
}

.checkbox-group__boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.field-problems {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  color: var(--accent-red);
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.field-note {
  color: var(--accent-amber);
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.field-row > input {
  flex: 1 1 12rem;
}

.field-row--pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  align-items: start;
  gap: 10px 16px;
}

.menu-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.menu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.menu-chip {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-chip--inactive {
  border-style: dashed;
}
.menu-chip--inactive .menu-chip__link {
  color: var(--text-muted);
}

.menu-chip__link {
  color: var(--text-primary);
  text-decoration: none;
}
.menu-chip__link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.menu-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-inset);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.menu-chip__remove:hover {
  color: var(--accent-red);
}

.menu-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.menu-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}
.menu-line:last-child {
  border-bottom: 0;
}

.menu-line__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.value-chips:empty {
  display: none;
}

.value-chip {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 2px 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.value-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-inset);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.value-chip__remove:hover {
  background: var(--glass-hover-bg);
  color: var(--text-primary);
}
.value-chip__remove svg {
  width: 16px;
  height: 16px;
}

.picker__search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.picker__search input {
  flex: 1 1 14rem;
  -webkit-appearance: none;
  appearance: none;
}

.picker__list {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: flex;
  flex-direction: column;
  max-height: 16rem;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}

.picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: var(--radius-inset);
  font-weight: 400;
  cursor: pointer;
}
.picker__option:hover {
  background: var(--glass-hover-bg);
}
.picker__option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.picker__more {
  padding: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 400;
}

.localized {
  gap: 8px;
}

.locale-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--glass-border);
}

.locale-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row > .locale-add__code {
  flex: 0 0 6rem;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.entry-list:empty {
  display: none;
}

.entry {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  padding: 10px 10px 10px 14px;
}
.entry > .field-problems {
  grid-column: 1/-1;
}

.entry__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.entry__tools {
  display: flex;
  gap: 4px;
}

.entry-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.section-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.section-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.section-row__kind {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sibling-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  list-style: none;
  overflow-wrap: anywhere;
}
.sibling-list .mono-text {
  display: inline-block;
  min-width: 2.5ch;
  color: var(--text-primary);
  font-weight: 700;
}

@container workspace (max-width: 30rem) {
  .entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .entry__tools {
    justify-content: flex-end;
  }
}
.icon-button:disabled,
.icon-button:disabled:hover {
  border-color: var(--glass-border);
  background: transparent;
  color: var(--text-muted);
  cursor: not-allowed;
}

.json-editor {
  min-height: 18rem;
  overflow-x: auto;
  font-size: 0.875rem;
  white-space: pre;
  overflow-wrap: normal;
  tab-size: 2;
}

.json-editor__rejected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.problem-summary {
  scroll-margin-block: 6rem 2rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  overflow-wrap: anywhere;
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-color);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.save-report__headline {
  font-size: 1.0625rem;
  font-weight: 800;
}

.save-report__title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.save-report__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.save-report__list:empty {
  display: none;
}

.save-report__prominent {
  color: var(--accent-amber);
  font-weight: 700;
}

.badge--edited {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.placement {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.placement__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
}
.placement__pages a {
  font-weight: 600;
}

.preview-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.preview-table {
  font-size: 0.875rem;
}
.preview-table th,
.preview-table td {
  padding: 8px 10px;
}
.preview-table .sort-button {
  min-height: 34px;
  margin: -8px 0;
}

.data-table.preview-table:has(th:nth-child(5)) {
  min-width: 0;
}

.revision {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.revision:last-child {
  border-bottom: 0;
}

:root {
  --chore-edge: 24px;
  --chore-size: 120px;
  --chore-inset: max(var(--chore-edge), 5vmin);
}

.chore-launcher {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-surface);
  background: linear-gradient(135deg, var(--glass-sheen), transparent 45%) padding-box scroll, radial-gradient(circle 360px at var(--pointer-x, 50%) var(--pointer-y, 12%), var(--glass-light), transparent 60%) padding-box fixed, var(--glass-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-border), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--chore-size);
  height: var(--chore-size);
  padding: 0;
  border-radius: 100px;
  background-image: var(--chore-panel-face);
  background-color: var(--chore-panel-bg);
  color: var(--chore-panel-text);
  cursor: pointer;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chore-launcher {
    background-color: var(--glass-float-bg);
  }
}
.chore-launcher svg {
  width: calc(var(--chore-size) * 0.6);
  height: calc(var(--chore-size) * 0.6);
}
@media (hover: hover) {
  .chore-launcher:hover {
    border-color: var(--glass-border-highlight);
    box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 1px var(--glass-highlight), var(--glass-shadow);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .chore-launcher {
    transition: translate 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .chore-launcher:hover {
    translate: 0 -2px;
  }
}

.chore-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-chat);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(52rem, 100vw - 2 * var(--chore-inset));
  height: min(54rem, 100dvh - 2 * var(--chore-inset));
  padding: 16px;
  border-color: var(--chore-rim);
  background-image: var(--chore-panel-face);
  background-color: var(--chore-panel-bg);
  color: var(--chore-panel-text);
  box-shadow: inset 0 1px 0 var(--chore-rim), inset 0 -1px 0 var(--chore-rim-shade), var(--glass-shadow);
}

.chore-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.chore-nav > h2 {
  display: flex;
  align-items: baseline;
  gap: 0.26em;
  min-width: 0;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chore-who {
  min-width: 0;
  font-size: 1.3125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chore-who__desk {
  flex: none;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.chore-nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chore-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.chore-nav__button svg {
  width: 1.1875em;
  height: 1.1875em;
}
.chore-nav__button:hover:not(:disabled), .chore-nav__button[aria-pressed=true] {
  border-color: currentcolor;
  background-color: rgb(from currentcolor r g b/12%);
}
.chore-nav__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chore-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--chore-send-bg);
  box-shadow: var(--btn-shadow);
  color: var(--chore-send-text);
  cursor: pointer;
  transition: filter 140ms ease, opacity 140ms ease;
}
.chore-send svg {
  width: 1.1875em;
  height: 1.1875em;
  margin: 1px 2px 0 0;
}
.chore-send:hover:not(:disabled) {
  filter: brightness(1.12);
}
.chore-send:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.chore-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.chore-history__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background-color: var(--chore-reply-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.chore-history__row:hover {
  border-color: var(--glass-border-highlight);
  background-color: var(--glass-hover-bg);
}
.chore-history__row[aria-current=true] {
  border-color: var(--accent-border);
}

.chore-history__title {
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.chore-log .panel {
  color: var(--text-primary);
}

.chore-history__day {
  margin-top: 10px;
  padding: 0 2px;
}
.chore-history__day:first-child {
  margin-top: 0;
}
.chore-history__day h4 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chore-accent);
}

.chore-history__at {
  flex: none;
  margin-right: 8px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.chore-history__item {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.chore-history__remove {
  flex: none;
  width: 32px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background-color: var(--chore-reply-bg);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.chore-history__remove:hover, .chore-history__remove:focus-visible {
  border-color: var(--accent-red);
  color: var(--text-primary);
}

.chore-history__asking {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: 4px;
}

.chore-history__confirm,
.chore-history__cancel {
  padding: 0 10px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background-color: var(--chore-reply-bg);
  color: var(--text-primary);
  font-size: 0.75rem;
  cursor: pointer;
}

.chore-history__confirm {
  border-color: var(--accent-red);
}

.chore-at {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: right;
  color: var(--chore-stamp);
}

.chore-daymark {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
  list-style: none;
}
.chore-daymark span {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--chore-reply-bg);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chore-menu__when {
  display: flex;
  flex: none;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
}

.chore-history__back {
  margin-bottom: 10px;
}

.chore-history__again {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, border-color 140ms ease, color 140ms ease;
}
.chore-exchange:hover .chore-history__again, .chore-exchange:focus-within .chore-history__again {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .chore-history__again {
    opacity: 1;
    pointer-events: auto;
  }
}
.chore-history__again:hover, .chore-history__again:focus-visible {
  border-color: var(--chore-accent-line);
  color: var(--text-primary);
}

.chore-history__count {
  flex: none;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.chore-grip {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  padding: 0;
  border: 0;
  border-radius: 0 0 var(--radius-surface) 0;
  background: none;
  color: var(--chore-panel-text);
  cursor: nwse-resize;
  opacity: 0.55;
  touch-action: none;
}
.chore-grip svg {
  width: 18px;
  height: 18px;
}
.chore-grip:hover {
  opacity: 1;
}

.chore-panel--full {
  width: calc(100vw - 2 * var(--chore-edge));
  height: calc(100dvh - 2 * var(--chore-edge));
}

.chore-back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--chore-rim);
  border-radius: 999px;
  background-color: var(--chore-panel-bg);
  color: var(--chore-panel-text);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 140ms ease;
}
.chore-back svg {
  width: 1em;
  height: 1em;
}
.chore-back:hover {
  filter: brightness(1.08);
}

.chore-opener {
  align-self: flex-start;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentcolor;
  background: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
}
.chore-opener:hover {
  color: var(--text-primary);
}

.chore-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chore-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background-color: var(--chore-reply-bg);
  color: var(--text-primary);
  font-size: 0.8125rem;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.chore-chip:hover:not(:disabled) {
  border-color: var(--accent-border);
  background-color: var(--glass-hover-bg);
}
.chore-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chore-chip--runs {
  border-color: var(--accent-border);
}

.chore-chip__mark {
  flex: none;
  font-size: 0.875rem;
  line-height: 1;
}

.chore-chip__lead {
  flex: none;
  color: var(--text-secondary);
  font-weight: 700;
}

.chore-chip__goal {
  font-weight: 600;
}

.chore-log--list {
  gap: 18px;
}

.chore-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chore-group h3 {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chore-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.chore-group--withheld .chore-offer {
  border-style: dashed;
  background-color: transparent;
  box-shadow: none;
}

.chore-offer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset);
  background-color: var(--chore-reply-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.chore-offer--sends {
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.chore-offer--sends:hover {
  border-color: var(--accent-border);
  background-color: var(--glass-hover-bg);
}

.chore-offer__goal {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chore-offer__words {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (max-width: 60rem) {
  :root {
    --chore-size: 64px;
  }
  .chore-launcher {
    position: fixed;
    right: var(--chore-edge);
    bottom: var(--chore-edge);
    z-index: var(--z-chat);
  }
  .chore-panel {
    width: calc(100vw - 2 * var(--chore-edge));
    height: calc(100dvh - var(--chore-size) - 3 * var(--chore-edge));
    transform: translate(-50%, calc(-50% - (var(--chore-size) + var(--chore-edge)) / 2));
  }
}
.chore-panel > h2 {
  font-size: 1.0625rem;
  font-weight: 800;
}

.chore-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--chore-rim-shade);
  border-radius: var(--radius-inset);
  box-shadow: inset 0 2px 4px var(--chore-rim-shade), inset 0 -1px 0 var(--chore-rim);
  background-color: var(--chore-ground-bg);
  background-image: radial-gradient(100% 70% at 8% 0%, var(--wash-1) 0%, transparent 60%), radial-gradient(90% 60% at 100% 100%, var(--wash-2) 0%, transparent 62%), linear-gradient(var(--chore-veil), var(--chore-veil)), var(--chore-field, url("/assets/noodles/chat_field_1.svg"));
  background-size: auto, auto, auto, var(--chore-field-size, 560px 560px);
  background-position: 0 0, 0 0, 0 0, var(--chore-field-at, 0 0);
  background-attachment: local, local, local, local;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chore-log--history {
  gap: 10px;
}

.chore-log .hint {
  font-size: 0.8125rem;
}

.chore-exchanges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.chore-exchange {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.chore-goal {
  align-self: flex-end;
  max-width: 85%;
  padding: 8px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-inset) var(--radius-inset) 4px var(--radius-inset);
  background-color: var(--chore-goal-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  color: var(--chore-goal-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chore-reply {
  align-self: flex-start;
  max-width: 92%;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset) var(--radius-inset) var(--radius-inset) 4px;
  background-color: var(--chore-reply-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chore-reply--skipped {
  border-style: dashed;
  background-color: transparent;
  box-shadow: none;
  color: var(--text-secondary);
}

.chore-failed {
  align-self: flex-start;
  max-width: 92%;
  padding: 8px 12px;
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-inset) var(--radius-inset) var(--radius-inset) 4px;
  font-size: 0.875rem;
  color: var(--accent-red);
  overflow-wrap: anywhere;
}

.chore-waiting {
  display: flex;
  align-self: flex-start;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-inset) var(--radius-inset) var(--radius-inset) 4px;
  background-color: var(--chore-reply-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.chore-dots {
  display: inline-flex;
  gap: 5px;
}
.chore-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  opacity: 0.45;
  animation: chore-dot 1.1s ease-in-out infinite;
}
.chore-dots i:nth-child(2) {
  animation-delay: 0.18s;
}
.chore-dots i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes chore-dot {
  0%, 70%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chore-dots i {
    animation: none;
    opacity: 0.7;
  }
}
.chore-suggestions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chore-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chore-menu h3 {
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--chore-accent-line);
  color: var(--chore-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chore-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.chore-menu__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius-inset);
  background: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.chore-menu__row:hover {
  background-color: var(--glass-hover-bg);
}

.chore-panel > .chore-notice a,
.chore-panel > .chore-form a {
  color: inherit;
  text-decoration: underline;
}

.chore-form .field input {
  min-height: 44px;
  font-size: 1rem;
}

.chore-notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
}

.chore-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chore-form .field {
  flex: 1 1 auto;
}

@media (max-width: 30rem) {
  :root {
    --chore-edge: 12px;
  }
}
@media (max-width: 60rem) {
  body:has(.chore-launcher) .toasts {
    padding-right: calc(var(--chore-edge) + var(--chore-size) + 12px);
  }
}
.lead-line {
  font-size: 1.0625rem;
  color: var(--text-primary);
}

.ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.ladder > legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.ladder__rungs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 8px;
  list-style: none;
}

.ladder__rung {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
}
.ladder__rung:has(input:checked) {
  border-color: var(--primary-color);
}
.ladder__rung > label {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.ladder__number {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.blocks-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dash-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.tile__value--none {
  color: var(--text-muted);
  font-weight: 700;
}

.tile__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.sparkline {
  display: block;
  width: 100%;
  height: 30px;
}
.sparkline polyline {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.attention-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attention-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--text-secondary);
}
.attention-item a {
  font-weight: 600;
}

.attention-item--open {
  color: var(--accent-amber);
  font-weight: 600;
}

.served-path {
  margin-top: 12px;
}
.served-path summary {
  cursor: pointer;
  font-weight: 600;
}

.served-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.landing {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vw, 48px);
  min-width: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 clamp(16px, 6vw, 56px);
}
.hero h1 {
  font-size: clamp(2rem, 1.4rem + 3.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero .screen-intro {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
}

.hero__actions,
.card__action,
.cta__action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions > a,
.card__action > a,
.cta__action > a {
  display: inline-flex;
  max-width: 100%;
  border-radius: 100px;
  text-decoration: none;
}

section.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
section.features h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  list-style: none;
}

@media (min-width: 36rem) and (max-width: 52.6875rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-card:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: clamp(22px, 5vw, 32px);
  text-align: center;
}
.feature-card svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--accent-color);
}
.feature-card h3 {
  min-width: 0;
  font-size: 1.15rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.card__action {
  margin-top: auto;
  padding-top: 6px;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(16px, 4vw, 24px);
}
.cta h2 {
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2rem);
}

.cta__action {
  max-width: 100%;
  margin-top: 8px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 72ch;
  padding: clamp(16px, 4vw, 24px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.prose h2 {
  margin-top: 12px;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.25em;
}
.prose code {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

@media (max-width: 30rem) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero__actions .button {
    width: 100%;
  }
}
.limit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chip {
  border: 1px solid var(--glass-inset-edge);
  border-radius: var(--radius-inset);
  background: var(--glass-inset-bg);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text-secondary);
}

.chip--waiting {
  border-color: var(--glass-inset-edge);
}

.chip--uploading {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.chip--retrying {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.chip--blocked {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.chip--failed {
  border-color: var(--accent-red);
  background: color-mix(in srgb, var(--accent-red) 14%, var(--bg-secondary));
  color: var(--accent-red);
}

.chip--ready {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.task {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
}
.task progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent-color);
}

.task-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.task-head > .mono-text {
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.legend summary {
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.legend .detail-list {
  margin-top: 10px;
}
