:root {
  --bg: #0f172a;
  --bg-deep: #0b1220;
  --panel: #172033;
  --panel-2: #1e293b;
  --panel-hover: #202c40;
  --line: #2c3a50;
  --line-strong: #3d4d65;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-soft: rgba(6, 182, 212, .1);
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 4px;
  --shadow: 0 12px 32px rgba(2, 6, 23, .22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #0f172a 0%, #111b2d 100%);
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: #67e8f9; }
h1, h2, h3, p { margin-top: 0; }
code, pre, .sql-editor { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.muted { color: var(--muted); }
.eyebrow {
  margin-bottom: .5rem;
  color: var(--accent-hover);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #083344;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  border: 1px solid #67e8f9;
  border-radius: var(--radius);
  letter-spacing: 0;
  box-shadow: 0 0 24px rgba(6, 182, 212, .18);
}

.button {
  min-height: 36px;
  padding: .58rem .85rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 650;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.button:hover { background: var(--panel-hover); border-color: #64748b; }
.button:focus-visible, .icon-button:focus-visible, .mobile-menu:focus-visible, .nav-item:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}
.button:disabled { opacity: .5; cursor: wait; }
.button.primary {
  color: #062b35;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  box-shadow: 0 5px 16px rgba(6, 182, 212, .12);
}
.button.primary:hover { color: #042f3a; border-color: #67e8f9; background: linear-gradient(135deg, var(--accent-hover), #38bdf8); }
.button.ghost { background: transparent; }
.button.danger { color: #fda4af; background: rgba(251, 113, 133, .06); border-color: rgba(251, 113, 133, .3); }
.button.danger:hover { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .55); }
.button.small { min-height: 30px; padding: .4rem .62rem; font-size: .7rem; }
.button.full { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: .68rem .8rem; }
.icon-button, .mobile-menu {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  padding: .4rem;
  font-size: 1.2rem;
}
.icon-button:hover, .mobile-menu:hover { color: var(--accent-hover); }

label { display: grid; gap: .4rem; color: var(--muted-strong); font-size: .75rem; font-weight: 600; }
input, textarea, select {
  width: 100%;
  padding: .68rem .75rem;
  color: var(--text);
  background: #131d2e;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input::placeholder, textarea::placeholder { color: #64748b; }
input:hover, textarea:hover, select:hover { border-color: #53647b; }
input:focus, textarea:focus, select:focus {
  background: #152135;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .1);
}
textarea { resize: vertical; }
label small { color: var(--muted); font-weight: 400; line-height: 1.45; }
.form-error {
  margin: .35rem 0;
  padding: .65rem .75rem;
  color: #fecdd3;
  background: rgba(251, 113, 133, .08);
  border: 1px solid rgba(251, 113, 133, .25);
  border-radius: var(--radius);
  font-size: .76rem;
}

/* Authentication */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, #0f172a 0%, #131e31 100%);
}
.login-card { width: min(100%, 448px); gap: 1rem; padding: 1.75rem; }
.login-card-head { display: grid; justify-items: center; gap: .85rem; margin-bottom: .35rem; text-align: center; }
.login-logo { width: 56px; height: 56px; font-size: 1.3rem; }
.login-card-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.025em; }
.login-card-head p { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.login-submit { justify-content: center; margin-top: .15rem; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); }
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 2.5rem clamp(2.5rem, 7vw, 7rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, #172033 0%, #0f172a 58%, #111c30 100%);
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to right, black, transparent 88%);
}
.auth-brand::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 1px;
  right: -90px;
  top: 31%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .45), transparent);
  transform: rotate(-34deg);
  box-shadow: 0 0 32px rgba(34, 211, 238, .22);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 5vw, 5.15rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.auth-brand h1 span { color: var(--accent-hover); }
.auth-brand .lead { max-width: 580px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.trust-line { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .72rem; }
.trust-line span, .status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 10px rgba(34, 211, 238, .75);
}
.auth-card-wrap { display: grid; place-items: center; padding: 2rem; background: #0f172a; }
.auth-card {
  width: min(100%, 410px);
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-card h2 { margin-bottom: -.55rem; font-size: 1.75rem; letter-spacing: -.035em; }
.auth-card .muted { margin-bottom: .25rem; font-size: .85rem; }
.auth-note { margin: .1rem 0 0; color: var(--muted); text-align: center; font-size: .72rem; }

/* Portal */
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.45rem .9rem;
  background: #111827;
  border-right: 1px solid var(--line);
}
.sidebar .brand { padding: 0 .55rem; }
.sidebar nav { display: grid; gap: .25rem; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .62rem .7rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.nav-item span { width: 19px; color: #64748b; text-align: center; }
.nav-item:hover { color: var(--text); background: rgba(148, 163, 184, .06); }
.nav-item.active { color: var(--text); background: var(--accent-soft); border-color: rgba(6, 182, 212, .2); }
.nav-item.active span { color: var(--accent-hover); }
.sidebar-foot { margin-top: auto; display: flex; gap: .45rem; align-items: center; padding: 1rem .2rem 0; border-top: 1px solid var(--line); }
.user-chip { min-width: 0; flex: 1; display: flex; gap: .65rem; align-items: center; }
.user-chip .avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 750;
}
.user-chip div { min-width: 0; display: grid; gap: .12rem; }
.user-chip strong, .user-chip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: .73rem; }
.user-chip small { color: var(--muted); font-size: .6rem; }
.content { min-width: 0; padding: 1.4rem clamp(1.25rem, 3.4vw, 3.75rem) 4rem; }
.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.topbar h1 { margin: 0; font-size: 1.48rem; letter-spacing: -.03em; }
.topbar .eyebrow { margin-bottom: .2rem; }
.status-pill {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .65rem;
  color: var(--muted);
  background: rgba(15, 23, 42, .55);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .65rem;
}
.mobile-menu { display: none; }
.page-section { display: none; animation: fade .18s ease; }
.page-section.active { display: block; }
@keyframes fade { from { opacity: .45; transform: translateY(3px); } }

.hero-panel {
  position: relative;
  min-height: 215px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #1a263a 0%, #111b2f 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-hover), #0ea5e9);
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 220px;
  right: -130px;
  top: -105px;
  border: 1px solid rgba(34, 211, 238, .12);
  background: rgba(6, 182, 212, .025);
  transform: rotate(-12deg);
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h2 { margin-bottom: .75rem; font-size: clamp(1.85rem, 3.5vw, 3.1rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-panel h2 span { color: var(--accent-hover); }
.hero-panel p:not(.eyebrow) { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: .75rem 0; }
.metric {
  min-height: 108px;
  display: grid;
  padding: .95rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(2, 6, 23, .08);
}
.metric::before { content: ""; width: 22px; height: 2px; margin-bottom: .55rem; background: var(--accent); }
.metric > span { color: var(--muted); font-size: .68rem; }
.metric strong { align-self: end; font-size: 1.65rem; letter-spacing: -.045em; }
.metric small { color: #64748b; font-size: .62rem; }
.panel {
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(2, 6, 23, .08);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.panel-head h3 { margin: 0; font-size: .92rem; }
.panel-head .eyebrow { margin-bottom: .3rem; }
.section-actions { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.section-actions p { margin: 0; font-size: .78rem; }

.technology-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: .75rem; }
.tech-card {
  min-width: 0;
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 7px 20px rgba(2, 6, 23, .08);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.tech-card:hover { background: #192439; border-color: rgba(34, 211, 238, .4); box-shadow: 0 10px 28px rgba(2, 6, 23, .14); }
.tech-card.disabled { opacity: .68; }
.tech-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.tech-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 750;
}
.tech-title { flex: 1; min-width: 0; }
.tech-title h3 { margin: .08rem 0 .18rem; font-size: 1rem; }
.tech-title small { color: var(--muted); font-size: .7rem; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0; }
.badge {
  padding: .22rem .42rem;
  color: var(--muted);
  background: rgba(15, 23, 42, .35);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .58rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.badge.locked { color: var(--accent-hover); border-color: rgba(34, 211, 238, .23); }
.badge.off { color: var(--warning); border-color: rgba(251, 191, 36, .2); }
.tech-description { min-height: 38px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.tech-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
details { border-top: 1px solid var(--line); }
.sql-details summary, .history-details summary { padding: .65rem 0; color: var(--muted); cursor: pointer; list-style: none; font-size: .69rem; }
.sql-details summary:hover, .history-details summary:hover { color: var(--muted-strong); }
.sql-details summary::-webkit-details-marker, .history-details summary::-webkit-details-marker { display: none; }
.sql-details summary::after, .history-details summary::after { content: "+"; float: right; color: var(--accent-hover); }
.sql-details[open] summary::after, .history-details[open] summary::after { content: "−"; }
pre {
  max-width: 100%;
  overflow: auto;
  padding: .8rem;
  color: #cbd5e1;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .66rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.sql-details pre { max-height: 260px; white-space: pre; }
.offer-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.offer-chip { padding: .25rem .4rem; color: #cbd5e1; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: .61rem; }
.card-history { margin-top: .5rem; }
.card-history > p { margin: .5rem 0 .15rem; color: var(--muted); font-size: .64rem; }
.empty { padding: 1.1rem 0; color: #64748b; text-align: center; font-size: .74rem; }

.history-list, .data-list { display: grid; }
.history-row, .data-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(100px, 1fr) auto;
  gap: .85rem;
  align-items: center;
  padding: .72rem .15rem;
  border-bottom: 1px solid var(--line);
  font-size: .73rem;
}
.history-row:last-child, .data-row:last-child { border-bottom: 0; }
.row-title { min-width: 0; }
.row-title strong, .row-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title small, .row-meta { color: var(--muted); font-size: .64rem; }
.row-actions { display: flex; gap: .35rem; justify-content: end; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .63rem; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-hover); }
.status.error { color: var(--danger); }
.status.error::before { background: var(--danger); }
.preview-table { overflow: auto; margin: .45rem 0 .85rem; border: 1px solid var(--line); border-radius: var(--radius); }
.preview-table table { width: 100%; border-collapse: collapse; font-size: .61rem; }
.preview-table th, .preview-table td { max-width: 260px; padding: .46rem .55rem; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-table th { position: sticky; top: 0; color: var(--accent-hover); background: var(--panel-2); }
.preview-table tr:last-child td { border-bottom: 0; }
.table-panel { padding: .3rem 1rem; }
.offer-card { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.offer-card:last-child { border-bottom: 0; }
.offer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.offer-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .45rem; margin-top: .75rem; }
.offer-spec { min-width: 0; display: grid; gap: .2rem; padding: .55rem .6rem; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-spec span { color: var(--muted); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.offer-spec strong { overflow: hidden; color: var(--muted-strong); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.offer-description { margin: .65rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.api-tester-panel { display: grid; gap: 1rem; }
.api-tester-form { display: grid; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.api-tester-form > .button { justify-self: start; }
.api-response-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.api-response-head .eyebrow { margin-bottom: .25rem; }
.api-response-head code { color: var(--muted-strong); font-size: .7rem; }
.api-output { min-height: 260px; max-height: 520px; margin: 0; white-space: pre; }
.docs-panel { margin-top: .75rem; }
.docs-panel h3 { margin-bottom: .6rem; }
.docs-panel a { font-size: .72rem; }
.secret-banner { margin-bottom: .75rem; padding: .85rem; color: #cffafe; background: rgba(6, 182, 212, .08); border: 1px solid rgba(34, 211, 238, .3); border-radius: var(--radius); font-size: .72rem; word-break: break-all; }
.secret-banner strong { display: block; margin-bottom: .35rem; color: var(--accent-hover); }
.secret-banner code { user-select: all; }
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.settings-form { display: grid; gap: .85rem; }
.settings-form > .button { justify-self: start; }

/* Dialogs */
.modal {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(2, 6, 23, .55);
}
.modal.compact { width: min(520px, calc(100vw - 2rem)); }
.modal::backdrop { background: rgba(2, 6, 23, .78); backdrop-filter: blur(4px); }
.modal form { display: grid; gap: .9rem; padding: 1.3rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h2 { margin: 0; font-size: 1.22rem; }
.modal-head .eyebrow { margin-bottom: .25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.modal-actions { display: flex; justify-content: end; gap: .5rem; padding-top: .35rem; }
.sql-editor { font-size: .7rem; line-height: 1.5; }
.sql-editor.small { font-size: .65rem; }
.query-result { max-height: 390px; overflow: auto; padding: .7rem; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); }
.query-result > p { color: var(--muted); font-size: .7rem; }
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 380px;
  padding: .7rem .85rem;
  color: #083344;
  background: var(--accent-hover);
  border: 1px solid #67e8f9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .73rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { color: white; background: #be123c; border-color: #fb7185; }
.skeleton { color: var(--muted); font-size: .72rem; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 40vh; padding: 2rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-brand h1 { font-size: 2.65rem; }
  .auth-brand .trust-line { display: none; }
  .auth-card-wrap { padding: 1rem 1rem 3rem; }
  .portal-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -260px; width: 236px; transition: left .18s ease; box-shadow: var(--shadow); }
  .portal-shell.menu-open .sidebar { left: 0; }
  .content { padding: 1.1rem 1rem 4rem; }
  .mobile-menu { display: block; margin-right: .65rem; }
  .topbar { justify-content: flex-start; }
  .topbar .status-pill { margin-left: auto; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-panel { align-items: flex-start; flex-direction: column; }
  .split-panels { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .auth-brand { min-height: 32vh; }
  .auth-brand .lead { display: none; }
  .auth-brand h1 { font-size: 2.15rem; }
  .auth-card { padding: 1.2rem; }
  .metric-grid { gap: .55rem; }
  .metric { min-height: 98px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-actions { align-items: flex-start; flex-direction: column; }
  .section-actions .button { width: 100%; }
  .history-row, .data-row { grid-template-columns: 1fr auto; }
  .offer-card-head { align-items: flex-start; }
  .offer-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .api-response-head { align-items: flex-start; flex-direction: column; }
  .row-meta { display: none; }
  .status-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
