:root {
  color-scheme: dark;
  --canvas-0: #05070d;
  --canvas-1: #090e19;
  --canvas-2: #0d1422;
  --surface-1: #101827;
  --surface-2: #151f32;
  --surface-3: #1a263d;
  --ink: #f4f7fb;
  --muted: #9ba8bc;
  --muted-strong: #bdc7d6;
  --line: rgb(159 180 255 / 14%);
  --line-strong: rgb(174 194 255 / 25%);
  --control-line: #59677e;
  --spectral-a: #ffa45b;
  --spectral-b: #e97848;
  --spectral-c: #64c4ef;
  --brand: #2ce6a2;
  --brand-dark: #071e19;
  --brand-soft: rgb(44 230 162 / 12%);
  --danger: #ff5c70;
  --danger-soft: rgb(255 92 112 / 12%);
  --warning: #ffbd4a;
  --warning-soft: rgb(255 189 74 / 12%);
  --info: #56b8ff;
  --info-soft: rgb(86 184 255 / 12%);
  --neutral-soft: rgb(151 166 192 / 10%);
  --focus: #90f8ff;
  --spectral: linear-gradient(115deg, var(--spectral-a), var(--spectral-b) 50%, var(--spectral-c));
  --shadow-raised: 0 24px 70px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 4%);
  --shadow-active: 0 18px 55px rgb(8 19 48 / 42%), 0 0 45px rgb(78 89 255 / 10%);
  --radius: 18px;
  --radius-small: 8px;
  --content: 1540px;
  --topbar-height: 74px;
  --font-display: Bahnschrift, "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  --font-body: Aptos, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas-0);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 8% 0%, rgb(193 91 45 / 12%), transparent 36%),
    radial-gradient(ellipse at 98% 8%, rgb(42 129 175 / 10%), transparent 38%),
    var(--canvas-0);
}

body::after {
  position: fixed;
  z-index: -3;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgb(5 7 13 / 78%) 72%);
  content: "";
  pointer-events: none;
}

.page-atmosphere,
.page-atmosphere__beam,
.page-atmosphere__grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.page-atmosphere__grid {
  background-image:
    linear-gradient(rgb(122 146 202 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(122 146 202 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-atmosphere__beam {
  inset: -30vh -20vw auto 32vw;
  height: 72vh;
  background: conic-gradient(from 208deg at 50% 60%, transparent 0 34%, rgb(240 133 75 / 10%) 40%, rgb(185 105 63 / 12%) 46%, rgb(69 156 198 / 9%) 52%, transparent 59% 100%);
  filter: blur(42px);
  transform: rotate(-8deg);
}

button,
input,
select {
  font: inherit;
}

button,
select,
summary,
a {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  border: 1px solid var(--focus);
  border-radius: 6px;
  background: var(--canvas-0);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 70;
  top: 0;
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  background: rgb(5 7 13 / 88%);
  backdrop-filter: blur(18px) saturate(135%);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--spectral-a), var(--spectral-b) 52%, var(--spectral-c), transparent 96%);
  content: "";
  opacity: .58;
}

.topbar__inner {
  display: flex;
  max-width: var(--content);
  min-height: var(--topbar-height);
  margin: 0 auto;
  padding: 11px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.brand__copy,
.topbar__actions,
.connection,
.section-heading,
.panel__header,
.settings__header,
.settings__actions,
.settings__actions > div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgb(116 225 255 / 38%);
  border-radius: 9px;
  place-items: center;
  background:
    linear-gradient(145deg, rgb(0 213 255 / 17%), transparent 47%),
    linear-gradient(330deg, rgb(240 71 216 / 14%), rgb(112 92 255 / 12%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 10px 28px rgb(0 91 152 / 18%);
}

.brand__mark::after {
  position: absolute;
  inset: auto -10% 4px 34%;
  height: 1px;
  background: var(--spectral-a);
  box-shadow: 0 0 10px var(--spectral-a);
  content: "";
}

.brand__mark svg {
  width: 27px;
  fill: none;
  stroke: #bff8ff;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.4;
}

.brand__copy {
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.1;
}

.brand__overline,
.eyebrow,
.deck-index,
.instrument__head,
.kpi__label,
.lots-table th,
.field label,
.refresh-control label {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 650;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.brand__overline {
  color: #7d8ca5;
  font-size: .59rem;
}

.brand__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -.01em;
}

.topbar__actions {
  gap: 9px;
}

.connection {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 9px;
  background: rgb(15 23 38 / 72%);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: .72rem;
  white-space: nowrap;
}

.connection__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f7d94;
  box-shadow: 0 0 0 4px rgb(111 125 148 / 10%);
}

.connection[data-state="online"] .connection__dot {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgb(44 230 162 / 12%), 0 0 13px rgb(44 230 162 / 62%);
}

.connection[data-state="loading"] .connection__dot {
  background: var(--warning);
  animation: signal-pulse 1.2s ease-in-out infinite;
}

.connection[data-state="error"] .connection__dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgb(255 92 112 / 13%), 0 0 13px rgb(255 92 112 / 42%);
}

.button,
.icon-button,
.notice__action {
  min-height: 44px;
  border-radius: var(--radius-small);
  font-weight: 720;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button {
  padding: 9px 15px;
  border: 1px solid transparent;
}

.button:hover:not(:disabled),
.notice__action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: .58;
}

.button--primary {
  position: relative;
  border-color: rgb(183 246 255 / 24%);
  background: linear-gradient(115deg, #ffcd92, #ffac65 50%, #eb824f);
  color: #21130b;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 8px 26px rgb(225 127 69 / 13%);
}

.button--primary:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 12px 34px rgb(225 127 69 / 23%);
}

.button--ghost,
.button--quiet {
  border-color: var(--control-line);
  background: rgb(15 23 38 / 76%);
  color: var(--ink);
}

.button--ghost:hover,
.button--quiet:hover {
  border-color: rgb(120 205 255 / 44%);
  background: var(--surface-2);
}

.button--danger-text {
  border-color: transparent;
  background: transparent;
  color: #ff8897;
}

.shell {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px 24px 44px;
  scroll-margin-top: calc(var(--topbar-height) + 12px);
}

.command-deck {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  grid-template-areas:
    "copy instrument capital"
    "rail rail rail";
  grid-template-columns: 1.03fr .94fr 1.03fr;
  background: radial-gradient(ellipse at 12% 0%, rgb(112 56 35 / 22%), transparent 55%), linear-gradient(118deg, #191a1e, #0a1019 48%, #152536);
  box-shadow: var(--shadow-raised);
  isolation: isolate;
}

.command-deck::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--spectral-a), var(--spectral-b) 52%, var(--spectral-c));
  content: "";
  opacity: .88;
}

.command-deck::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 22%, rgb(255 255 255 / 2%) 22.2% 22.35%, transparent 22.55%),
    repeating-linear-gradient(120deg, transparent 0 18px, rgb(255 255 255 / 1.3%) 19px, transparent 20px);
  content: "";
  pointer-events: none;
}

.command-deck__copy,
.command-deck__instrument,
.command-deck__capital {
  min-width: 0;
  min-height: 280px;
  padding: 22px;
}

.command-deck__copy {
  grid-area: copy;
  border-right: 1px solid var(--line);
}

.command-deck__instrument {
  position: relative;
  grid-area: instrument;
  padding: 17px 17px 14px;
  border-right: 1px solid var(--line);
  background: radial-gradient(ellipse at center, rgb(219 125 68 / 9%), transparent 67%);
}

.command-deck__capital {
  grid-area: capital;
}

.deck-index {
  display: flex;
  margin: 0 0 15px;
  align-items: center;
  gap: 10px;
  color: #8997ae;
  font-size: .66rem;
}

.deck-index span {
  display: inline-grid;
  width: 48px;
  height: 24px;
  border: 1px solid rgb(0 213 255 / 30%);
  border-radius: 4px;
  place-items: center;
  color: #8cecff;
  font-family: var(--font-mono);
  font-size: .66rem;
}

.command-deck h1,
.section-heading h2,
.panel__header h2,
.settings h2,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .96;
}

.command-deck h1 {
  max-width: 520px;
  font-size: clamp(2.45rem, 4vw, 4.4rem);
}

.command-deck h1 span {
  background: linear-gradient(100deg, #fff3dd 2%, #ffc58e 40%, #ed8754 96%);
  background-clip: text;
  color: transparent;
}

.hero-deck {
  max-width: 390px;
  margin: 15px 0 18px;
  color: var(--muted-strong);
  font-size: .86rem;
  line-height: 1.55;
}

.notice {
  position: relative;
  display: flex;
  min-height: 58px;
  overflow: hidden;
  padding: 10px 11px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgb(5 9 16 / 54%);
}

.notice__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--info);
  box-shadow: 0 0 14px currentColor;
}

.notice strong {
  display: block;
  color: var(--ink);
  font-size: .78rem;
}

.notice p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .71rem;
  line-height: 1.35;
}

.notice--success { border-color: rgb(44 230 162 / 24%); background: var(--brand-soft); }
.notice--success .notice__rail { background: var(--brand); }
.notice--warning { border-color: rgb(255 189 74 / 30%); background: var(--warning-soft); }
.notice--warning .notice__rail { background: var(--warning); }
.notice--danger { border-color: rgb(255 92 112 / 30%); background: var(--danger-soft); }
.notice--danger .notice__rail { background: var(--danger); }
.notice--info { border-color: rgb(86 184 255 / 24%); background: var(--info-soft); }

.notice__action {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-size: .7rem;
}

.instrument__head {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7f8da5;
  font-size: .56rem;
}

.instrument__signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b3bfd2;
}

.instrument__signal::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--spectral-a);
  box-shadow: 0 0 9px var(--spectral-a);
  content: "";
}

.instrument__stage {
  position: relative;
  height: 196px;
  overflow: hidden;
  border: 1px solid rgb(133 159 214 / 12%);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgb(30 45 78 / 16%), rgb(4 7 13 / 36%)),
    radial-gradient(circle at 50% 58%, rgb(222 133 75 / 12%), transparent 57%);
  perspective: 800px;
}

.instrument__stage::after {
  position: absolute;
  right: 8%;
  bottom: 14%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(0 213 255 / 58%), transparent);
  box-shadow: 0 0 18px rgb(0 213 255 / 26%);
  content: "";
}

.instrument__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(119 146 205 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(119 146 205 / 7%) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to top, black, transparent 78%);
  transform: perspective(400px) rotateX(58deg) scale(1.5) translateY(25%);
  transform-origin: bottom;
}

#auction-fx3d {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

#auction-fx3d[data-fx3d-state="ready"] {
  opacity: 1;
}

#auction-fx3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx3d-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform-style: preserve-3d;
  transition: opacity .35s ease;
}

.instrument__stage:has(#auction-fx3d[data-fx3d-state="ready"]) .fx3d-fallback {
  opacity: 0;
}

.fallback-plate {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 134px;
  height: 42px;
  border: 1px solid;
  border-radius: 7px;
  background: linear-gradient(145deg, rgb(255 255 255 / 10%), rgb(17 26 49 / 88%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 12px 18px 28px rgb(0 0 0 / 38%);
  transform-style: preserve-3d;
}

.fallback-plate--one { border-color: rgb(0 213 255 / 66%); transform: translate(-70%, 18%) rotateX(58deg) rotateZ(-28deg) translateZ(0); }
.fallback-plate--two { border-color: rgb(112 92 255 / 75%); transform: translate(-56%, -18%) rotateX(58deg) rotateZ(-28deg) translateZ(22px); }
.fallback-plate--three { border-color: rgb(240 71 216 / 70%); transform: translate(-42%, -54%) rotateX(58deg) rotateZ(-28deg) translateZ(44px); }

.fallback-reader {
  position: absolute;
  z-index: 3;
  top: 18%;
  right: 26%;
  width: 1px;
  height: 62%;
  background: #dffcff;
  box-shadow: 0 0 13px rgb(0 213 255 / 68%);
  transform: rotate(-6deg);
}

.instrument__axis {
  position: absolute;
  z-index: 4;
  top: 16px;
  bottom: 16px;
  left: 10px;
  display: flex;
  width: 12px;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  color: #72819a;
  font-family: var(--font-mono);
  font-size: .48rem;
  writing-mode: vertical-rl;
}

.instrument__axis i {
  width: 1px;
  flex: 1;
  background: linear-gradient(var(--danger), var(--warning), var(--brand));
  opacity: .58;
}

.source-board {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.source-chip {
  min-width: 0;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid var(--control-line);
  border-radius: 5px;
  background: rgb(9 14 25 / 80%);
  color: #aebbd0;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.source-chip:hover:not(:disabled) {
  border-color: rgb(0 213 255 / 45%);
  background: rgb(20 31 52 / 94%);
  transform: translateY(-1px);
}

.source-chip[aria-pressed="true"] {
  border-color: #7beaff;
  background:
    linear-gradient(135deg, rgb(0 213 255 / 14%), rgb(112 92 255 / 16%)),
    rgb(13 21 36 / 96%);
  box-shadow: inset 0 -2px 0 var(--spectral-c), 0 0 18px rgb(0 213 255 / 9%);
  transform: translateY(-1px);
}

.source-chip:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.source-chip span,
.source-chip strong {
  display: block;
}

.source-chip span {
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .08em;
}

.source-chip strong {
  margin-top: 1px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .68rem;
}

.section-heading,
.panel__header {
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.panel__header h2 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.04;
}

.eyebrow {
  margin: 0 0 6px;
  color: #75dff5;
  font-size: .6rem;
}

.as-of,
.muted,
.footer,
.form-note,
.field small,
.accounts-note {
  color: var(--muted);
}

.as-of {
  margin: 0;
  color: #8695ab;
  font-family: var(--font-mono);
  font-size: .61rem;
  text-align: right;
}

.kpi {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgb(22 33 53 / 92%), rgb(10 15 27 / 92%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%), 0 14px 30px rgb(0 0 0 / 12%);
  transform-style: preserve-3d;
}

.kpi::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #66758f;
  content: "";
}

.kpi::after {
  position: absolute;
  top: 8px;
  right: 10px;
  color: rgb(180 199 232 / 18%);
  content: attr(data-kpi);
  font-family: var(--font-mono);
  font-size: .56rem;
}

.kpi--total {
  margin-top: 18px;
  padding: 19px 20px 17px;
  border-color: rgb(113 154 255 / 22%);
  border-radius: 13px;
  background:
    linear-gradient(115deg, rgb(0 213 255 / 7%), transparent 34%),
    linear-gradient(315deg, rgb(62 158 196 / 13%), rgb(15 23 38 / 92%) 52%);
  box-shadow: var(--shadow-active);
}

.kpi--total::before { width: 3px; background: var(--spectral); }
.kpi--verified::before { background: var(--brand); }
.kpi--unverified::before { background: var(--warning); }
.kpi--potential::before { background: var(--info); }
.kpi--incomplete::before { background: var(--danger); }

.kpi__label,
.kpi__detail,
.kpi__value {
  margin: 0;
}

.kpi__label {
  color: #8f9db3;
  font-size: .68rem;
}

.kpi__value {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.18rem, 1.75vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi--total .kpi__value {
  margin-top: 6px;
  background: linear-gradient(90deg, #f8fbff 4%, #d2eeff 50%, #8dcced);
  background-clip: text;
  color: transparent;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.kpi__detail {
  margin-top: 5px;
  color: #8997ac;
  font-size: .67rem;
  line-height: 1.35;
}

.opportunity-strip {
  display: grid;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 14px;
  background: rgb(5 9 16 / 44%);
  color: #afbdd1;
  font-size: .65rem;
}

.opportunity-strip > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.opportunity-strip__value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}

.opportunity-strip p {
  margin: 0;
  color: #78879e;
  font-size: .58rem;
  text-align: right;
}

.command-deck__rail {
  display: grid;
  grid-area: rail;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.command-deck__rail .kpi {
  min-height: 92px;
  padding: 13px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(17 26 43 / 72%), rgb(8 12 22 / 78%));
  box-shadow: none;
}

.command-deck__rail .kpi:last-child {
  border-right: 0;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(16 24 39 / 98%), rgb(8 12 22 / 98%));
  box-shadow: var(--shadow-raised);
}

.lots-panel {
  margin-top: 16px;
}

.panel__header {
  padding: 19px 22px 16px;
}

.panel__header .muted {
  max-width: 760px;
  margin: 5px 0 0;
  font-size: .75rem;
}

#lots-title {
  scroll-margin-top: calc(var(--topbar-height) + 18px);
}

.refresh-control,
.field {
  display: grid;
  gap: 5px;
}

.refresh-control label,
.field label {
  color: #8190a7;
  font-size: .68rem;
}

input,
select {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--control-line);
  border-radius: 7px;
  background: rgb(7 11 20 / 88%);
  color: var(--ink);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

input:hover,
select:hover {
  border-color: rgb(117 170 235 / 38%);
}

input:focus,
select:focus {
  border-color: rgb(0 213 255 / 54%);
  background: rgb(10 16 29 / 98%);
  box-shadow: inset 0 0 0 1px rgb(0 213 255 / 12%), 0 0 22px rgb(0 157 255 / 7%);
}

input::placeholder {
  color: #71809a;
}

.filters {
  position: sticky;
  z-index: 18;
  top: var(--topbar-height);
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(125px, .7fr)) auto auto;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  align-items: end;
  gap: 9px;
  background: rgb(10 15 26 / 94%);
  backdrop-filter: blur(16px);
}

.check-field {
  display: flex;
  min-height: 44px;
  padding: 8px 9px;
  align-items: center;
  gap: 8px;
  color: #b1bdd0;
  font-size: .73rem;
  font-weight: 650;
  white-space: nowrap;
}

.check-field input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.table-wrap {
  position: relative;
  min-height: 260px;
  overflow-x: auto;
  scrollbar-color: #41516e var(--canvas-1);
}

.lots-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .76rem;
}

.lots-table th {
  position: static;
  z-index: 7;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-strong);
  background: #0c1320;
  color: #75849b;
  font-size: .68rem;
  text-align: left;
  white-space: nowrap;
}

.lots-table td {
  position: relative;
  padding: 13px 12px;
  border-bottom: 1px solid rgb(152 174 221 / 8%);
  background: rgb(10 15 26 / 45%);
  vertical-align: top;
  transition: background-color .18s ease, transform .18s ease;
}

.lots-table tbody tr:nth-child(even) td {
  background: rgb(16 24 39 / 38%);
}

.lots-table tbody tr:last-child td {
  border-bottom: 0;
}

.lots-table tbody tr:hover td {
  background: rgb(28 40 62 / 72%);
}

.lots-table tr[data-tone="danger"] td:first-child::before,
.lots-table tr[data-tone="warning"] td:first-child::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  content: "";
}

.lots-table tr[data-tone="danger"] td {
  background-image: linear-gradient(90deg, rgb(255 92 112 / 8%), transparent 30%);
}

.lots-table tr[data-tone="danger"] td:first-child::before {
  background: var(--danger);
  box-shadow: 0 0 12px rgb(255 92 112 / 38%);
}

.lots-table tr[data-tone="warning"] td {
  background-image: linear-gradient(90deg, rgb(255 189 74 / 6%), transparent 28%);
}

.lots-table tr[data-tone="warning"] td:first-child::before {
  background: var(--warning);
  box-shadow: 0 0 12px rgb(255 189 74 / 28%);
}

.cell-main,
.cell-sub,
.money-line {
  display: block;
}

.cell-main {
  color: #edf3fc;
  font-weight: 680;
}

.cell-sub,
.money-line small {
  margin-top: 3px;
  color: #8391a7;
  font-size: .67rem;
}

.lots-table td:first-child .cell-sub,
.money-line,
.all-in,
.lots-table td:nth-child(8) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.vehicle-name {
  max-width: 240px;
}

.badges,
.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.warning-list {
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  align-items: center;
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.badge--positive { border-color: rgb(44 230 162 / 25%); background: var(--brand-soft); color: #73f0c1; }
.badge--danger { border-color: rgb(255 92 112 / 30%); background: var(--danger-soft); color: #ff9eaa; }
.badge--warning { border-color: rgb(255 189 74 / 27%); background: var(--warning-soft); color: #ffd083; }
.badge--info { border-color: rgb(86 184 255 / 26%); background: var(--info-soft); color: #94d2ff; }
.badge--neutral { border-color: var(--line); background: var(--neutral-soft); color: #a9b5c8; }

.money-line {
  white-space: nowrap;
}

.money-line + .money-line {
  margin-top: 4px;
}

.all-in {
  color: #f0f4fb;
  font-size: .83rem;
  font-weight: 700;
  white-space: nowrap;
}

.official-link {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgb(0 213 255 / 26%);
  border-radius: 6px;
  align-items: center;
  background: rgb(0 213 255 / 5%);
  color: #91ecff;
  font-size: .72rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.official-link:hover {
  border-color: rgb(0 213 255 / 58%);
  background: rgb(0 213 255 / 11%);
  transform: translateY(-1px);
}

.empty-state {
  display: grid;
  min-height: 260px;
  padding: 42px 20px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  place-items: center;
  background: linear-gradient(145deg, rgb(0 213 255 / 9%), rgb(112 92 255 / 8%));
  color: #95dff1;
}

.empty-state__icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.7;
}

.empty-state p {
  max-width: 460px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.accounts-panel,
.panel--compact {
  margin-top: 16px;
}

.accounts-grid {
  display: grid;
  padding: 0 22px 19px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  perspective: 1000px;
  gap: 9px;
}

.account-card {
  position: relative;
  display: grid;
  min-height: 142px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  align-content: start;
  gap: 8px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 45%),
    rgb(10 16 28 / 78%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 12px 30px rgb(0 0 0 / 16%);
  transform: translateZ(0);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.account-card:hover {
  border-color: rgb(117 153 229 / 33%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 20px 40px rgb(0 0 0 / 23%);
  transform: translateY(-3px) rotateX(1.2deg);
}

.account-card::after {
  position: absolute;
  right: -20px;
  bottom: -42px;
  width: 92px;
  height: 92px;
  border: 1px solid rgb(112 92 255 / 14%);
  transform: rotate(42deg);
  content: "";
}

.account-card__code {
  color: #718099;
  font-family: var(--font-mono);
  font-size: .59rem;
  letter-spacing: .12em;
}

.account-card strong {
  font-family: var(--font-display);
  font-size: .9rem;
}

.account-card .badge {
  justify-self: start;
}

.account-channels {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.monitor-channel + .monitor-channel {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.monitor-channel__status {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.45;
}

.monitor-channel__status--positive { color: var(--brand); }
.monitor-channel__status--warning { color: var(--warning); }
.monitor-channel__status--danger { color: var(--danger); }
.monitor-channel__status--neutral { color: var(--muted-strong); }

.monitor-channel__date {
  margin-top: 3px;
  font-size: .63rem;
}

.account-channel {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.account-channel__label {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
}

.account-channel .badge {
  max-width: 100%;
  white-space: normal;
}

.account-channel__observation,
.account-channel__coverage {
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #9fe9f8;
  font-size: .7rem;
  font-weight: 750;
}

.accounts-note {
  margin: 0;
  padding: 0 22px 20px;
  font-size: .72rem;
}

.panel--compact {
  box-shadow: 0 16px 46px rgb(0 0 0 / 18%);
}

.panel--compact summary {
  min-height: 58px;
  padding: 17px 21px;
  font-family: var(--font-display);
  font-weight: 650;
}

.panel--compact summary span {
  margin-right: 10px;
  color: #76869f;
  font-family: var(--font-mono);
  font-size: .65rem;
}

.draft-form {
  display: grid;
  padding: 0 21px 19px;
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, .5fr) auto;
  align-items: end;
  gap: 12px;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .72rem;
}

.footer {
  display: flex;
  padding: 20px 2px 4px;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: .64rem;
}

.footer p {
  margin: 0;
}

.settings {
  width: min(94vw, 590px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--surface-2), #090e18 70%);
  color: var(--ink);
  box-shadow: 0 32px 100px rgb(0 0 0 / 58%), 0 0 0 1px rgb(112 92 255 / 10%);
}

.settings::backdrop {
  background: rgb(1 3 8 / 78%);
  backdrop-filter: blur(7px);
}

.settings__content {
  padding: 22px;
}

.settings__header {
  justify-content: space-between;
  gap: 20px;
}

.settings h2 {
  font-size: 1.7rem;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--control-line);
  place-items: center;
  background: var(--neutral-soft);
  color: var(--ink);
  font-size: 1.4rem;
}

.settings__intro {
  margin: 18px 0;
  padding: 12px 13px;
  border: 1px solid rgb(86 184 255 / 18%);
  border-radius: 8px;
  background: var(--info-soft);
  color: #b6c7db;
  font-size: .77rem;
}

.settings .field + .field {
  margin-top: 14px;
}

.field small {
  font-size: .68rem;
}

.settings__actions {
  margin-top: 22px;
  justify-content: space-between;
  gap: 14px;
}

.settings__actions > div {
  gap: 8px;
}

.form-error {
  margin: 12px 0 0;
  padding: 10px 11px;
  border: 1px solid rgb(255 92 112 / 24%);
  border-radius: 7px;
  background: var(--danger-soft);
  color: #ff9eaa;
  font-size: .75rem;
  font-weight: 650;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid rgb(0 213 255 / 28%);
  border-radius: 8px;
  background: #0d1625;
  color: var(--ink);
  font-size: .74rem;
  box-shadow: 0 18px 52px rgb(0 0 0 / 43%), 0 0 24px rgb(0 213 255 / 8%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden,
.lots-table.is-hidden,
.empty-state.is-hidden {
  display: none;
}

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

@keyframes signal-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .48; transform: scale(.72); }
}

@media (max-width: 1180px) {
  .command-deck {
    grid-template-areas:
      "copy capital"
      "instrument rail";
    grid-template-columns: 1fr 1fr;
  }

  .command-deck__copy,
  .command-deck__capital {
    min-height: 290px;
  }

  .command-deck__instrument {
    border-top: 1px solid var(--line);
  }

  .command-deck__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-deck__rail .kpi:nth-child(2) {
    border-right: 0;
  }

  .command-deck__rail .kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .filters {
    position: static;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .field--search {
    grid-column: span 2;
  }

  .accounts-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 126px;
  }

  .topbar__inner,
  .topbar__actions,
  .panel__header,
  .section-heading,
  .footer,
  .settings__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__inner {
    padding: 10px 14px 12px;
    gap: 10px;
  }

  .topbar__actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .connection {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .shell {
    padding: 12px 12px 32px;
  }

  .command-deck {
    grid-template-areas:
      "copy"
      "capital"
      "instrument"
      "rail";
    grid-template-columns: 1fr;
  }

  .command-deck__copy,
  .command-deck__capital,
  .command-deck__instrument {
    min-height: auto;
    padding: 19px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .command-deck h1 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  .command-deck__instrument {
    min-height: 286px;
  }

  .instrument__stage {
    height: 210px;
  }

  .kpi--total .kpi__value {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }

  .command-deck__rail {
    grid-template-columns: 1fr 1fr;
  }

  .opportunity-strip {
    grid-template-columns: 1fr 1fr;
  }

  .opportunity-strip p {
    grid-column: 1 / -1;
    text-align: left;
  }

  .panel__header {
    gap: 14px;
  }

  .filters,
  .draft-form {
    position: static;
    grid-template-columns: 1fr;
  }

  .field--search,
  .form-note {
    grid-column: auto;
  }

  .lots-table {
    min-width: 0;
  }

  .lots-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .lots-table,
  .lots-table tbody,
  .lots-table tr,
  .lots-table td {
    display: block;
    width: 100%;
  }

  .lots-table tbody {
    display: grid;
    padding: 10px;
    gap: 10px;
  }

  .lots-table tr {
    position: relative;
    overflow: hidden;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgb(12 19 32 / 84%);
  }

  .lots-table tr[data-tone="danger"] { border-color: rgb(255 92 112 / 30%); }
  .lots-table tr[data-tone="warning"] { border-color: rgb(255 189 74 / 28%); }

  .lots-table td,
  .lots-table tbody tr:nth-child(even) td,
  .lots-table tbody tr:hover td {
    display: grid;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(94px, .38fr) minmax(0, 1fr);
    gap: 10px;
    background: transparent;
  }

  .lots-table td::before {
    grid-column: 1;
    grid-row: 1;
    color: #74839b;
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: .65rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .lots-table td > * {
    grid-column: 2;
  }

  .lots-table td:last-child {
    border-bottom: 0;
  }

  .lots-table tr[data-tone="danger"] td:first-child::before,
  .lots-table tr[data-tone="warning"] td:first-child::before {
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    content: attr(data-label);
  }

  .lots-table tr[data-tone="danger"]::before,
  .lots-table tr[data-tone="warning"]::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    content: "";
  }

  .lots-table tr[data-tone="danger"]::before {
    background: var(--danger);
    box-shadow: 0 0 12px rgb(255 92 112 / 38%);
  }

  .lots-table tr[data-tone="warning"]::before {
    background: var(--warning);
    box-shadow: 0 0 12px rgb(255 189 74 / 28%);
  }

  .official-link {
    justify-self: start;
  }

  .accounts-grid {
    grid-template-columns: 1fr;
  }

  .account-card {
    min-height: 132px;
  }

  .settings__actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  :root {
    --topbar-height: 174px;
  }

  .settings__actions > div,
  .command-deck__rail {
    grid-template-columns: 1fr;
  }

  .command-deck__rail .kpi {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .source-chip {
    padding-right: 3px;
    padding-left: 3px;
  }
}

/* Operations workspace. Copper light, machined metal and readable live-state cues. */
.workspace-nav { display: flex; align-items: center; gap: 28px; min-height: 50px; margin: -4px 0 16px; border-bottom: 1px solid var(--line); }
.workspace-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--muted-strong); text-decoration: none; font-size: .8rem; white-space: nowrap; }
.workspace-nav a:hover { color: #ffbb81; }
.workspace-nav__home { border-bottom: 2px solid #eea16b; color: var(--ink) !important; }
.workspace-nav a span { display: inline-grid; min-width: 24px; height: 22px; padding: 0 5px; place-items: center; border: 1px solid #49586d; border-radius: 5px; color: #ffbf84; font-family: var(--font-mono); font-size: .66rem; }
.workspace-nav__meta { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #99a8ba; font-family: var(--font-mono); font-size: .57rem; letter-spacing: .06em; }
.workspace-nav__meta i { width: 4px; height: 4px; border-radius: 50%; background: #a9b6c9; }
.brand__mark { background: linear-gradient(140deg, #f3c09d, #ca7043 56%, #5aa6c1); box-shadow: inset 0 1px 1px #ffdaba, 0 4px 14px #0008; }
.brand__mark svg { color: #182127; }
.brand__edition { color: #ecb18b; }
.command-deck__copy { padding: 26px; }
.command-deck h1 { font-size: clamp(2.5rem, 3.65vw, 4.1rem); letter-spacing: -.055em; }
.hero-action { display: inline-flex; align-items: center; gap: 30px; margin-bottom: 18px; color: #ffbc87; text-underline-offset: 5px; font-size: .79rem; }
.hero-action span { font-size: 1.2rem; }
.deck-index { color: #b2a698; }
.deck-index span { border-color: #a9755366; color: #f0b58a; flex-shrink: 0; }
.command-deck__instrument { display: flex; flex-direction: column; gap: 10px; padding: 22px 16px; }
.instrument__head { color: #a3b1c4; }
.instrument__stage { min-height: 212px; flex: 1; }
.instrument__stage::after { background: linear-gradient(90deg, transparent, #d4a78077, transparent); box-shadow: 0 0 20px #b2734829; }
.fallback-wheel { position: absolute; top: 49%; left: 50%; display: grid; width: 160px; aspect-ratio: 1; border: 11px solid #171d26; border-radius: 50%; place-items: center; background: repeating-conic-gradient(from 15deg, #34465a 0deg 19deg, #b8bfc5 20deg 24deg, #1a2533 25deg 58deg, #ca8e60 60deg 68deg, #34465a 70deg 72deg); box-shadow: inset 0 0 0 4px #8b9cae, inset 0 0 0 8px #182533, 5px 9px 0 #090e17, 16px 20px 30px #0008; transform: translate(-50%, -50%) rotateX(9deg) rotateY(-24deg) rotateZ(-12deg); }
.fallback-wheel i { width: 37px; height: 37px; border: 8px solid #b5bac0; border-radius: 50%; background: linear-gradient(135deg, #f8cba5, #96512c); box-shadow: 0 0 0 3px #303e4c; }
.workspace-status { display: flex; align-items: center; gap: 14px; padding: 14px 5px 20px; }
.workspace-status__tag { flex-shrink: 0; padding: 3px 7px; border: 1px solid #596273; border-radius: 4px; color: #c3cede; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .06em; }
.workspace-status p { margin: 0; color: var(--muted); font-size: .73rem; }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; gap: 18px; margin-bottom: 24px; }
.operations-grid .panel { min-width: 0; margin: 0; }
.operations-grid .panel__header { padding: 22px 22px 17px; }
.operations-grid h2 { font-size: 1.75rem; }
#hero-title, #attention-title, #agenda-title, #accounts-title { scroll-margin-top: calc(var(--topbar-height) + 22px); }
.section-count { display: grid; min-width: 42px; height: 42px; padding: 0 9px; border: 1px solid #ae774855; border-radius: 12px; place-items: center; background: linear-gradient(135deg, #dc985d25, #dc985d08); color: #ffc894; font-family: var(--font-mono); font-size: 1.05rem; }
.attention-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 22px 14px; }
.attention-toolbar p { margin: 0; flex: 1; font-size: .69rem; line-height: 1.6; }
.attention-toolbar select { max-width: 165px; min-height: 38px; padding: 6px 26px 6px 9px; border: 1px solid var(--control-line); border-radius: 6px; background: #101a28; color: var(--muted-strong); font-size: .69rem; }
.attention-list { border-top: 1px solid var(--line); }
.attention-item { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border-bottom: 0; }
.attention-item__marker { display: grid; width: 29px; height: 29px; margin-top: 4px; border: 1px solid #c59c5b60; border-radius: 8px; place-items: center; background: #ffc16810; color: #ffd19b; }
.attention-item[data-severity="critical"] { background: linear-gradient(90deg, #f2566810, transparent 75%); }
.attention-item[data-severity="critical"] .attention-item__marker { border-color: #ff889766; background: #ff889718; color: #ff98a3; }
.attention-item[data-severity="info"] .attention-item__marker { border-color: #78bff560; background: #78bff510; color: #9acfff; }
.attention-item__copy h3 { margin: 2px 0 4px; font-size: .87rem; font-weight: 650; letter-spacing: -.012em; }
.attention-item__copy p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.attention-item__copy .attention-item__context { color: #cfb69e; font-size: .62rem; letter-spacing: .025em; }
.attention-item__extra { display: block; margin-top: 6px; color: #b7c6d7; font-size: .65rem; }
.detail-link { display: inline-flex; min-height: 44px; align-items: center; padding: 5px 0; border: 0; background: none; color: #a2d4f3; font-size: .72rem; font-weight: 650; text-align: left; text-underline-offset: 4px; white-space: nowrap; }
.detail-link:hover { color: #fff; text-decoration: underline; }
.attention-item > .detail-link { margin-left: 3px; }
.more-button { display: block; width: calc(100% - 44px); margin: 4px 22px 18px; font-size: .73rem; }
.agenda-mark { color: #9db6cf; font-size: 2rem; font-weight: 300; }
.agenda-tabs { display: flex; gap: 4px; padding: 0 22px 14px; border-bottom: 1px solid var(--line); }
.agenda-tabs button { min-height: 38px; padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: .68rem; }
.agenda-tabs button[aria-pressed="true"] { border-color: #7296b44d; background: #3148624d; color: #e2edfa; }
.agenda-tabs button:hover { background: #3148624d; color: white; }
.agenda-item { display: grid; width: 100%; min-height: 83px; align-items: center; grid-template-columns: 66px minmax(0, 1fr) 16px; gap: 16px; padding: 14px 22px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.agenda-item:hover { background: #8ca7cf0a; }
.agenda-item__stamp { display: grid; gap: 1px; padding-right: 12px; border-right: 1px solid var(--line-strong); font-family: var(--font-mono); }
.agenda-item__stamp small { color: #afbdd0; font-size: .57rem; text-transform: uppercase; }
.agenda-item__stamp strong { font-size: 1.05rem; font-weight: 500; }
.agenda-item__copy { display: grid; gap: 4px; }
.agenda-item__copy strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.agenda-item__copy small { color: var(--muted); font-size: .66rem; }
.agenda-item__arrow { color: #96acbd; }
.agenda-note { padding: 10px 22px 16px; margin: 0; color: var(--muted); font-size: .66rem; }
.section-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; max-width: 390px; margin: auto; padding: 25px; color: var(--muted); font-size: .78rem; line-height: 1.7; text-align: center; }
.saved-views { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 17px; }
.saved-views button { min-height: 38px; padding: 7px 12px; border: 1px solid #3a4a60; border-radius: 7px; background: #121c2b; color: var(--muted-strong); font-size: .73rem; }
.saved-views button[aria-pressed="true"] { border-color: #c7916477; background: linear-gradient(120deg, #62412b8c, #402f2780); color: #ffe0bc; box-shadow: inset 0 1px 0 #ffcfaa18; }
.saved-views button:hover { border-color: #c79164; color: white; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 22px; border-top: 1px solid var(--line); }
.results-toolbar p { margin: 0; color: var(--muted); font-size: .68rem; }
.results-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .65rem; }
.results-toolbar select { min-height: 36px; max-width: 180px; padding: 6px 8px; border: 1px solid var(--control-line); border-radius: 6px; background: #101a28; color: var(--muted-strong); font-size: .68rem; }
.lots-table td:last-child .detail-link { display: flex; }
.lot-details { width: min(690px, calc(100vw - 28px)); max-height: min(900px, 88dvh); }
.lot-details .settings__header { position: sticky; z-index: 2; top: 0; background: #101824; }
.lot-details .settings__header h2 { font-size: 1.75rem; line-height: 1.1; }
#lot-dialog-body { padding: 5px 24px 24px; }
.detail-badges { margin: 14px 0 20px; }
.detail-checklist { display: grid; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #c99b6850; border-radius: 8px; background: #c99b6809; list-style: none; }
.detail-checklist li { display: grid; gap: 3px; }
.detail-checklist strong { color: #eac9a1; font-size: .74rem; font-weight: 600; }
.detail-checklist span { color: var(--muted-strong); font-size: .7rem; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; gap: 15px 24px; }
.detail-facts dt { margin-bottom: 3px; color: var(--muted); font-size: .71rem; }
.detail-facts dd { margin: 0; font-size: .83rem; }
.detail-subtitle { margin: 24px 0 6px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
#lot-dialog-body > .muted { margin: 0 0 15px; font-size: .73rem; }
.detail-costs { margin: 0; padding: 4px 16px; border: 1px solid var(--line-strong); border-radius: 9px; background: linear-gradient(140deg, #1b2b3b, #121b27); }
.detail-costs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-costs dt { color: var(--muted-strong); font-size: .74rem; }
.detail-costs dd { margin: 0; font-family: var(--font-mono); font-size: .76rem; }
.detail-costs > .detail-costs__total { padding: 14px 0; border: 0; }
.detail-costs__total dd { color: #ffd1a5; font-size: 1.15rem; }
.detail-warning { padding: 12px; border: 1px solid #e9b96f3d; border-radius: 7px; background: #e9b96f0a; color: #e2bd8e; font-size: .74rem; }
.detail-official { display: inline-flex; align-items: center; margin-top: 8px; text-decoration: none; font-size: .8rem; }
.detail-budget { margin: 8px 10px 8px 0; font-size: .8rem; }
.budget-dialog { width: min(760px, calc(100vw - 28px)); max-height: 90dvh; }
.budget-dialog .settings__header { position: sticky; top: 0; z-index: 2; background: #101824; }
.budget-dialog .settings__header h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
.budget-body { padding: 0 24px 24px; }
.budget-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings .budget-field + .budget-field { margin-top: 0; }
.budget-field { min-width: 0; }
.budget-field input { width: 100%; min-width: 0; font-family: var(--font-mono); }
.budget-field small { min-height: 2.5em; line-height: 1.5; }
.budget-check { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 16px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: #c99b680a; color: var(--muted-strong); font-size: .77rem; line-height: 1.6; cursor: pointer; }
.budget-check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0; accent-color: #eac9a1; }
.budget-preview-note { font-size: .72rem; color: var(--muted-strong); line-height: 1.65; }
.budget-message { color: var(--muted-strong); font-size: .76rem; line-height: 1.6; min-height: 2em; }
.budget-actions { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
@media (max-width: 560px) {
  .budget-fields { grid-template-columns: 1fr; gap: 14px; }
  .budget-body { padding: 0 16px 16px; }
  .budget-preview > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .budget-field small { min-height: auto; }
}
.muted { color: var(--muted); }

@media (max-width: 1100px) {
  .workspace-nav__meta { display: none; }
  .operations-grid { grid-template-columns: 1.1fr .9fr; }
  .attention-item { grid-template-columns: 27px minmax(0, 1fr); gap: 9px; }
  .attention-item > .detail-link { grid-column: 2; min-height: 34px; margin: -5px 0 0; }
  .attention-toolbar { flex-wrap: wrap; }
  .attention-toolbar p { min-width: 100%; }
}
@media (max-width: 800px) {
  .operations-grid { grid-template-columns: 1fr; }
  .workspace-nav { gap: 22px; overflow-x: auto; }
  .workspace-nav a { font-size: .73rem; }
  .workspace-status { align-items: flex-start; }
  .attention-item { grid-template-columns: 29px minmax(0, 1fr) auto; }
  .attention-item > .detail-link { grid-column: 3; margin: 0; }
  .attention-toolbar { flex-wrap: nowrap; }
  .attention-toolbar p { min-width: 0; }
}
@media (max-width: 680px) {
  .command-deck__copy { padding: 22px; }
  .command-deck h1 { font-size: clamp(2.55rem, 10vw, 3.6rem); }
  .command-deck__instrument { min-height: 245px; padding: 14px; }
  .instrument__stage { min-height: 175px; height: 175px; }
  .workspace-status { display: block; padding: 12px 4px 18px; }
  .workspace-status p { margin-top: 7px; font-size: .69rem; }
  .operations-grid .panel__header { padding: 19px 16px 14px; }
  .attention-toolbar, .agenda-tabs { padding-right: 16px; padding-left: 16px; }
  .attention-toolbar { flex-wrap: wrap; }
  .attention-toolbar p { min-width: 100%; }
  .attention-item { grid-template-columns: 27px minmax(0, 1fr); padding: 14px 16px; }
  .attention-item > .detail-link { grid-column: 2; margin: -5px 0 0; min-height: 38px; }
  .agenda-item { padding: 14px 16px; gap: 12px; }
  .agenda-tabs { gap: 0; }
  .saved-views { padding: 0 16px 15px; }
  .results-toolbar { align-items: flex-start; flex-direction: column; padding: 12px 16px; gap: 8px; }
  .lots-table td:last-child .detail-link { min-height: 34px; }
  .detail-facts { grid-template-columns: 1fr; }
  #lot-dialog-body { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  #auction-fx3d {
    display: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .page-atmosphere,
  .command-deck__instrument,
  .topbar__actions,
  .notice__action,
  .filters,
  .refresh-control,
  .panel--compact,
  .official-link,
  .toast {
    display: none !important;
  }

  .command-deck,
  .panel,
  .kpi {
    border-color: #bbb;
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .kpi__value {
    background: none;
    color: #111;
    -webkit-text-fill-color: #111;
  }
}
