/* Cookie King — original operations console design system */

:root {
  color-scheme: dark;
  --bg: #101014;
  --bg-soft: #141418;
  --surface: #16151c;
  --surface-2: #1d1b25;
  --surface-3: #252230;
  --line: #302c3b;
  --line-soft: #26232e;
  --text: #f2f0e8;
  --text-soft: #b7b3c2;
  --muted: #9f9aa9;
  --accent: #a594ff;
  --accent-hover: #b7a9ff;
  --accent-dark: #1b1830;
  --cyan: #8fa3bf;
  --cyan-dark: #17202d;
  --red: #ff7b86;
  --red-dark: #30191f;
  --yellow: #f4d477;
  --yellow-dark: #2b2515;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .28);
  --sidebar-width: 248px;
  --topbar-height: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p, ul, ol, dl { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.08rem; }
p { color: var(--text-soft); }
ul, ol { padding-left: 1.2rem; }
::selection { background: var(--accent); color: #12101d; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(165, 148, 255, .14); }
[hidden] { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--accent); color: #12101d;
  border-radius: var(--radius-sm); font-weight: 700; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.container--wide { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.mono-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.text-accent { color: var(--accent); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.stack { display: grid; gap: 24px; }
.stack--sm { gap: 12px; }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 24px 0; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 760; font-size: 21px; letter-spacing: -.05em; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  color: #12101d; background: var(--accent); border-radius: 8px 8px 8px 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.brand__mark .icon { width: 23px; height: 23px; }
.brand__dot { color: var(--accent); }
.brand__text { white-space: nowrap; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 18px; border: 1px solid transparent;
  border-radius: 9px; font-weight: 680; font-size: 14px; line-height: 1.2;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.button--primary, .button--light {
  background: linear-gradient(180deg, #ffffff, #e9e7f2);
  border-color: #ffffff; color: #17151f;
  box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(0,0,0,.2), 0 0 0 1px rgba(165,148,255,.08);
}
.button--primary:hover, .button--light:hover {
  background: linear-gradient(180deg, #fff, #f4f2fb);
  border-color: #fff; box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(0,0,0,.24);
}
.button--secondary {
  background: linear-gradient(180deg, #252230, #1b1922);
  border-color: #3a3548; color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.button--secondary:hover { background: linear-gradient(180deg, #2d2939, #211e29); border-color: #4a4263; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 16px rgba(0,0,0,.16); }
.button--ghost {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border-color: #35313f; color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.button--ghost:hover { background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); border-color: #4a4263; }
.button--outline {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border-color: #464255; color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.button--outline:hover { background: linear-gradient(180deg, rgba(165,148,255,.1), rgba(255,255,255,.025)); border-color: #6a5f93; }
.button--danger { background: linear-gradient(180deg, #3a2027, var(--red-dark)); border-color: #70404a; color: #ffb3ba; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.button--danger:hover { background: linear-gradient(180deg, #482630, #3a2027); border-color: #8a4d59; }
.button--small { min-height: 44px; padding: 10px 14px; font-size: 13px; border-radius: 8px; }
.button--large { min-height: 50px; padding: 13px 22px; }
.button--block { width: 100%; }
.button .icon { width: 17px; height: 17px; }
.icon-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--text-soft); cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.icon-button:hover { background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border-color: #3a465b; color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.icon-button:active { transform: scale(.94); }
.icon-button .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 16px; height: 16px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field-label { color: var(--text); font-size: 13px; font-weight: 650; }
.field__hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.field__error { color: var(--red); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 11px 13px;
  color: var(--text); background: #121217; border: 1px solid var(--line);
  border-radius: 9px; outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder, .textarea::placeholder { color: #777383; }
.input:hover, .select:hover, .textarea:hover { border-color: #4a4263; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(165, 148, 255, .12); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(165, 148, 255, .14); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.textarea { min-height: 110px; resize: vertical; }
.input--mono { font-family: var(--mono); font-size: 13px; }
.input-file { padding: 8px; }
.input-file::file-selector-button {
  margin-right: 12px; min-height: 44px; padding: 9px 12px; border: 1px solid #354055;
  border-radius: 7px; background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); color: var(--text); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.check strong { display: block; color: var(--text); font-weight: 650; }
.check--disabled { opacity: .55; cursor: not-allowed; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 9px 0 0 9px; }
.input-group .button { border-radius: 0 9px 9px 0; }
.password-field { position: relative; }
.password-field .input { padding-right: 54px; }
.password-field__toggle { position: absolute; right: 0; top: 0; }

/* Cards and page scaffolding */
.card {
  position: relative; background: linear-gradient(150deg, #191820, #121217); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 34px rgba(0,0,0,.12);
}
.card--raised { background: linear-gradient(145deg, #201d2a, #15141a); border-color: #3a3548; box-shadow: var(--shadow); }
.card--flush { overflow: hidden; }
.card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.card__title { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.card__body { padding: 20px; }
.card__footer { padding: 14px 20px; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,.012); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-header h1 { margin: 5px 0 9px; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.page-header p { max-width: 670px; margin: 0; font-size: 14px; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.page-header--compact { align-items: center; margin-bottom: 20px; }
.page-header--compact h1 { margin: 0; font-size: 1.7rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .icon { width: 14px; height: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric {
  position: relative; overflow: hidden; padding: 14px 16px;
  background: linear-gradient(150deg, #191820, #121217); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.metric::after { content: ""; position: absolute; right: -14px; top: -20px; width: 58px; height: 58px; border: 1px solid rgba(165,148,255,.1); transform: rotate(45deg); opacity: .45; }
.metric__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.metric__label .icon { width: 14px; height: 14px; }
.metric__value { margin: 8px 0 2px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 740; letter-spacing: -.04em; }
.metric--accent { border-color: #3a3555; background: linear-gradient(140deg, #201b35, #15141a 72%); }
.metric--accent .metric__value { color: var(--accent); }
.metric--cyan { border-color: #354b64; }
.metric--cyan .metric__value { color: var(--cyan); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.table th { padding: 11px 16px; background: #18161f; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s ease; }
.table tbody tr:hover { background: rgba(165,148,255,.035); }
.table__primary { display: block; color: var(--text); font-weight: 630; }
.table__secondary { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.table__number { font-family: var(--mono); font-size: 12px; }
.table__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.table--compact td { padding-block: 11px; }
.job-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 11px; font-weight: 600; white-space: nowrap; }
.job-kind .icon { width: 14px; height: 14px; color: var(--muted); }
.job-kind--generate .icon { color: var(--accent); }
.job-kind--check .icon { color: var(--cyan); }

/* Badges and progress */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-soft); font-family: var(--mono);
  font-size: 10px; font-weight: 650; letter-spacing: .045em; line-height: 1.3;
  text-transform: uppercase; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge--completed, .badge--complete, .badge--succeeded, .badge--success, .badge--valid, .badge--paid, .badge--confirmed, .badge--active { color: var(--accent); background: var(--accent-dark); border-color: #3a3555; }
.badge--running, .badge--processing, .badge--queued, .badge--pending, .badge--waiting { color: var(--cyan); background: var(--cyan-dark); border-color: #244553; }
.badge--running::before, .badge--processing::before { animation: pulse 1.3s ease-in-out infinite; }
.badge--failed, .badge--error, .badge--invalid, .badge--banned, .badge--rejected { color: var(--red); background: var(--red-dark); border-color: #593039; }
.badge--canceled, .badge--cancelled, .badge--disabled, .badge--wip { color: var(--muted); background: #17151c; }
.badge--locked { color: var(--yellow); background: var(--yellow-dark); border-color: #4c4124; }
.progress { width: 100%; height: 6px; overflow: hidden; background: #252230; border-radius: var(--radius-pill); }
.progress__bar { width: var(--progress, 0%); height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.progress--cyan .progress__bar { background: var(--cyan); }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.queue-eta { display: inline-block; max-width: 100%; margin: 12px 0 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--text-soft); font-family: var(--mono); font-size: 11px; line-height: 1.5; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(165,148,255,.09), 0 0 14px rgba(165,148,255,.42); }

/* Notices and empty states */
.notice { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, #191820, #121217); color: var(--text-soft); font-size: 12px; }
.notice .icon { width: 18px; height: 18px; color: var(--cyan); margin-top: 1px; }
.notice strong { color: var(--text); }
.notice p { margin: 0; color: inherit; }
.notice--warning { border-color: #554728; background: #211e14; }
.notice--warning .icon { color: var(--yellow); }
.notice--danger { border-color: #573039; background: #24171c; }
.notice--danger .icon { color: var(--red); }
.notice--accent { border-color: #3a3555; background: var(--accent-dark); }
.notice--accent .icon { color: var(--accent); }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 46px 24px; text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; }
.empty-state h3 { margin: 4px 0 0; }
.empty-state p { max-width: 400px; margin: 0; font-size: 13px; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 16px; }
.flash-stack--public { padding-top: 18px; margin-bottom: 0; }
.flash { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(150deg, #191820, #121217); color: var(--text-soft); font-size: 12px; }
.flash > .icon { width: 16px; height: 16px; color: var(--cyan); }
.flash > span { flex: 1; }
.flash .icon-button { width: 44px; height: 44px; margin: -8px -8px -8px 0; }
.flash--success { border-color: #3a3555; background: var(--accent-dark); }
.flash--success > .icon { color: var(--accent); }
.flash--danger, .flash--error { border-color: #573039; background: var(--red-dark); }
.flash--danger > .icon, .flash--error > .icon { color: var(--red); }
.flash--warning { border-color: #554728; background: var(--yellow-dark); }
.flash--warning > .icon { color: var(--yellow); }
.toast-region { position: fixed; z-index: 1100; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 11px 15px; background: linear-gradient(150deg, #252230, #191820); border: 1px solid #3a3548; border-radius: 9px; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease both; }

/* Public navigation and landing */
.public-shell { min-height: 100vh; }
.public-nav { position: sticky; top: 0; z-index: 50; background: rgba(16,16,20,.9); border-bottom: 1px solid rgba(48,44,59,.8); backdrop-filter: blur(16px); }
.public-nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 28px; }
.public-nav__menu { display: flex; align-items: center; gap: 36px; }
.public-nav__menu nav { display: flex; align-items: center; gap: 26px; }
.public-nav__menu nav a { color: var(--text-soft); font-size: 13px; font-weight: 560; }
.public-nav__menu nav a:hover { color: var(--text); }
.public-nav__actions { display: flex; align-items: center; gap: 9px; }
.public-nav__toggle, .sidebar-backdrop { display: none; }

/* Landing catalogue shell */
.landing-shell { height: 100vh; min-height: 0; overflow: hidden; background: #101014; }
.landing-main { height: 100vh; min-height: 0; margin-left: 248px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(circle at 50% 12%, rgba(165,148,255,.075), transparent 34%), linear-gradient(180deg, #101014, #0c0c10); }
.landing-flash { width: min(1080px, calc(100% - 48px)); margin: 20px auto 0; }
.landing-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; flex-direction: column; width: 248px; padding: 25px 18px 20px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #191919, #141418); border-right: 1px solid #2a2833; }
.brand--landing { padding: 0 8px; }
.landing-sidebar__label { margin: 42px 12px 13px; color: #777383; font-size: 10px; }
.landing-sidebar__nav { display: grid; gap: 5px; }
.landing-sidebar__nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; color: #b7b3c2; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 580; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.landing-sidebar__nav a .icon { width: 18px; height: 18px; color: #817c8f; }
.landing-sidebar__nav a:hover { color: var(--text); background: linear-gradient(180deg, #24222d, #1e1c25); border-color: #353140; }
.landing-sidebar__nav a:hover .icon { color: var(--accent); }
.landing-sidebar__wip { color: var(--muted) !important; }
.landing-sidebar__bottom { display: grid; gap: 9px; margin-top: auto; padding-top: 24px; }
.landing-mobilebar { display: none; }

.catalogue-section { width: min(1080px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 24px; }
.catalogue-heading { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.catalogue-heading span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #34313e); }
.catalogue-heading span:last-child { background: linear-gradient(90deg, #34313e, transparent); }
.catalogue-heading h2 { margin: 0; color: #c6c2cf; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .24em; }
.catalogue-category { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #9c96ab; font-family: var(--mono); font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.catalogue-category > span { width: 22px; height: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(165,148,255,.25); }
.service-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(760px, 100%); margin-inline: auto; }
.service-card-grid--one { grid-template-columns: minmax(0, 1fr); width: min(760px, 100%); margin-inline: auto; }
.service-card { display: flex; flex-direction: column; min-width: 0; min-height: 280px; padding: 18px; background: linear-gradient(150deg, #191820, #121217); border: 1px solid #302c3b; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 32px rgba(0,0,0,.12); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); border-color: #4a4263; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 42px rgba(0,0,0,.22); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.service-card__icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); background: linear-gradient(145deg, #2a2340, var(--accent-dark)); border: 1px solid #493f68; border-radius: 9px; box-shadow: 0 6px 16px rgba(165,148,255,.06); }
.service-card__icon--steel { color: var(--cyan); background: linear-gradient(145deg, #253246, var(--cyan-dark)); border-color: #354b64; }
.service-card h3 { margin: 0 0 7px; font-size: 16px; letter-spacing: -.02em; }
.service-card p { min-height: 34px; margin: 0 0 14px; color: #9f9aa9; font-size: 12px; line-height: 1.55; }
.service-card__price { margin-top: auto; color: var(--text); font-family: var(--mono); font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.service-card__price span { margin-left: 6px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.price-was { margin-right: 7px; color: var(--muted); font-size: 14px; font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(159, 154, 169, .7); }
.price-now { color: var(--accent); font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.service-card__minimum { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.form-cost .price-was { margin-right: 4px; color: var(--muted); font-size: 10px; text-decoration-thickness: 1px; }
.service-card__availability { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; color: var(--muted); font-size: 10px; }
.service-card__availability .status-dot { width: 5px; height: 5px; box-shadow: 0 0 10px rgba(165,148,255,.3); }
.service-card__availability.is-offline .status-dot { background: var(--muted); box-shadow: none; }
.service-card .button { margin-top: auto; }

.landing-page { position: relative; overflow: hidden; }
.landing-page.landing-catalogue-page { overflow-x: clip; overflow-y: visible; }
.landing-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 68%);
}

/* Auth */
.auth-page { min-height: 100vh; }
.auth-main { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; }
.auth-card { width: min(410px, 100%); padding: 26px; }
.auth-card__head { margin-bottom: 22px; text-align: center; }
.auth-card__head h1 { margin: 0 0 7px; font-size: 1.8rem; }
.auth-card__head p { margin: 0; font-size: 12px; }
.auth-form { display: grid; gap: 16px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.discord-button { background: #5865f2; border-color: #5865f2; color: #fff; }
.discord-button:hover { background: #4752c4; border-color: #4752c4; }
.discord-button .icon { width: 18px; height: 18px; }
.auth-switch { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.auth-switch a { color: var(--accent); font-weight: 650; }

/* App shell */
.app-shell { min-height: 100vh; background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 25px 18px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #191919, #141418); border-right: 1px solid #2a2833; }
.brand--sidebar { padding: 0 8px; }
.sidebar__section-label { margin: 42px 12px 13px; color: #777383; font-size: 10px; }
.sidebar__nav { display: grid; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 12px; color: #b7b3c2; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 580; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-item .icon { width: 18px; height: 18px; color: #817c8f; }
.nav-item:hover { color: var(--text); background: linear-gradient(180deg, #24222d, #1e1c25); border-color: #353140; }
.nav-item:hover .icon { color: var(--accent); }
.nav-item--accent { margin-block: 5px; color: #17131f; background: linear-gradient(180deg, var(--accent-hover), var(--accent)); border-color: #b9aaff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 7px 18px rgba(165,148,255,.14); }
.nav-item--accent .icon { color: #17131f; }
.nav-item--accent:hover { color: #12101d; background: linear-gradient(180deg, #c5bbff, #ae9dff); border-color: #c9beff; }
.nav-item--muted { color: var(--muted); }
.nav-item__tag { margin-left: auto; padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; }
.sidebar__bottom { display: grid; gap: 16px; margin-top: auto; }
.sidebar__account { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 10px 4px 2px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--accent); background: var(--accent-dark); border: 1px solid #3a3555; border-radius: 9px; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.sidebar__account-text { min-width: 0; flex: 1; }
.sidebar__account-text strong { display: block; overflow: hidden; color: var(--text-soft); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__account-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.sidebar__account-text .sidebar__account-balance { margin-top: 3px; overflow: hidden; color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__account .icon-button { width: 40px; height: 40px; }
.logout-form { margin: 0; justify-self: end; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); background: radial-gradient(circle at 70% 0%, rgba(165,148,255,.035), transparent 32%), var(--bg); }
.app-main::before { content: ""; position: fixed; inset: var(--topbar-height) 0 0 var(--sidebar-width); z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 78%); }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--topbar-height); padding: 0 28px; background: rgba(16,16,20,.92); border-bottom: 1px solid #2a2833; backdrop-filter: blur(14px); }
.topbar__left, .topbar__actions { display: flex; align-items: center; gap: 16px; }
.topbar__left { min-width: 0; }
.topbar__actions { flex: 0 0 auto; }
.topbar__menu { display: none; }
.topbar__context { min-width: 0; }
.topbar__context .mono-label { display: block; margin-bottom: 2px; font-size: 9px; }
.topbar__context strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.system-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.avatar--top { width: 40px; height: 40px; align-self: center; margin-block: 0; }
.app-content { width: min(1440px, 100%); margin-inline: auto; padding: 30px; }

/* Job creation and filters */
.kind-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.kind-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 15px; color: var(--muted); border-radius: 7px; font-size: 12px; font-weight: 650; }
.kind-tabs a .icon { width: 15px; height: 15px; }
.kind-tabs a.is-active { color: var(--text); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border: 1px solid #3a465b; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.centered-form { width: min(620px, 100%); margin-inline: auto; display: grid; gap: 16px; }
.centered-form .kind-tabs { justify-self: center; }
.card__header h1.card__title { font-size: 20px; letter-spacing: -.02em; }
.form-cost { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-block: 1px solid var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.form-cost span:first-child { color: var(--accent); }
.form-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.form-total > span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form-total strong { color: var(--accent); font-family: var(--mono); font-size: 20px; letter-spacing: -.03em; }
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.filter-bar .input, .filter-bar .select { min-height: 44px; font-size: 12px; }
.filter-search { position: relative; flex: 1; min-width: 180px; }
.filter-search .icon { position: absolute; left: 12px; top: 13px; width: 17px; height: 17px; color: var(--muted); }
.filter-search .input { padding-left: 38px; }
.filter-bar .select { width: 150px; }
.filter-count { margin-left: auto; padding-right: 5px; color: var(--muted); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.filter-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* Job detail and results */
.job-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.job-hero h1 { margin: 8px 0; overflow-wrap: anywhere; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.job-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.job-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; flex-shrink: 0; }
.job-progress-card { padding: 23px; }
.job-progress-card__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.job-progress-card__head strong { font-size: 14px; }
.job-progress-card .progress { height: 8px; }
.job-meta-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; overflow: hidden; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; }
.job-meta-row > div { min-width: 0; padding: 12px; background: #121217; }
.job-meta-row dt { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.job-meta-row dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--text); font-family: var(--mono); font-size: 11px; }
.complete-note { margin-top: 15px; }
.result-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 13px; border-bottom: 1px solid var(--line-soft); }
.result-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.result-tab:hover { color: var(--text); background: var(--surface-2); }
.result-tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.result-tab[aria-selected="true"] .result-tab__count { color: var(--text); background: var(--surface-3); }
.result-tab__count { display: inline-grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; color: var(--muted); background: #121217; border-radius: 5px; font-family: var(--mono); font-size: 9px; }
.result-panel { padding: 20px 22px; }
.result-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.result-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; background: #121217; border: 1px solid var(--line-soft); border-radius: 9px; }
.result-item__name { min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }
.result-item__status { flex-shrink: 0; }
.result-item__flags { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* Deposit, FaceLock, admin */
.deposit-form-card { width: min(520px, 100%); }
.address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.address-card { padding: 18px; background: linear-gradient(150deg, #191820, #121217); border: 1px solid var(--line); border-radius: 12px; }
.address-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.address-card__head strong { font-size: 15px; }
.address-card__network { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.address-value { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; }
.address-value code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--cyan); font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.facelock-hero { position: relative; overflow: hidden; padding: 36px; background: linear-gradient(130deg, #201b35, var(--surface) 68%); border: 1px solid #3d365a; border-radius: 18px; }
.facelock-hero::after { content: ""; position: absolute; right: 40px; top: -90px; width: 270px; height: 270px; border: 1px solid rgba(165,148,255,.22); transform: rotate(45deg); box-shadow: 0 0 70px rgba(165,148,255,.07); }
.facelock-hero__content { position: relative; z-index: 1; max-width: 700px; }
.facelock-hero h1 { margin: 14px 0; font-size: clamp(2rem, 3.5vw, 3.2rem); }
.facelock-hero p { max-width: 620px; }
.facelock-hero__actions { margin-top: 25px; }
.timeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.timeline-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.timeline-card .badge { margin-bottom: 20px; }
.timeline-card h3 { margin-bottom: 8px; font-size: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.admin-form-card .card__body { display: grid; gap: 17px; }
.service-list { display: grid; gap: 12px; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; background: #121217; border: 1px solid var(--line-soft); border-radius: 9px; }
.service-row__name { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; }
.service-row__name .icon { width: 17px; height: 17px; color: var(--cyan); }
.snapshot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line-soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.snapshot-list > div { min-width: 0; padding: 12px; background: #121217; }
.snapshot-list dt { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 9px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.snapshot-list dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 12px; }

/* Legal */
.legal-page { padding: 65px 0 90px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 70px; align-items: start; }
.legal-toc { position: sticky; top: 110px; }
.legal-toc h2 { margin-bottom: 15px; font-size: 13px; letter-spacing: 0; }
.legal-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 12px; }
.legal-toc a:hover { color: var(--text); }
.legal-document h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.legal-document__meta { margin-bottom: 38px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.legal-section { padding-top: 27px; margin-top: 27px; border-top: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.legal-section:first-of-type { padding-top: 0; margin-top: 0; border: 0; }
.legal-section h2 { margin-bottom: 13px; font-size: 1.3rem; }
.legal-section p { white-space: pre-line; font-size: 14px; line-height: 1.75; }

/* Animation */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 780px) {
  .service-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .public-nav__menu { gap: 22px; }
  .public-nav__menu nav { gap: 18px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 228px; }
  .public-nav__menu nav { display: none; }
  .auth-main { min-height: 100vh; }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-toc { position: static; }
}

@media (max-width: 900px) {
  .container, .container--wide { width: min(100% - 32px, 1160px); }
  .public-nav__inner { min-height: 68px; }
  .public-nav__toggle { display: inline-grid; }
  .public-nav__menu { display: none; position: fixed; inset: 68px 0 0; z-index: 65; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 26px; padding: 28px 24px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-top: 1px solid var(--line); }
  body.nav-open .public-nav__menu { display: flex; }
  .public-nav__menu nav { display: grid; gap: 4px; }
  .public-nav__menu nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .public-nav__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(3,6,10,.7); backdrop-filter: blur(3px); }
  body.nav-open .sidebar-backdrop { display: block; }
  .topbar__menu { display: inline-grid; }
  .sidebar { z-index: 70; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .landing-mobilebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 16px; background: rgba(16,16,20,.92); border-bottom: 1px solid #2a2833; backdrop-filter: blur(14px); }
  .landing-mobilebar .badge { margin-left: auto; }
  .landing-sidebar { z-index: 70; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
  body.nav-open .landing-sidebar { transform: translateX(0); visibility: visible; }
  .landing-main { margin-left: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px); }
  .landing-shell { height: 100dvh; }
  .catalogue-section { width: calc(100% - 32px); }
  .landing-flash { width: calc(100% - 32px); }
  .app-main { margin-left: 0; }
  .app-main::before { left: 0; }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar__actions { gap: 8px; }
  .system-status, .avatar--top { display: none; }
  .app-content { padding: 22px 16px 40px; }
  .job-meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-meta-row > div:last-child { grid-column: 1 / -1; }
  .page-header, .job-hero { align-items: flex-start; flex-direction: column; }
  .page-header__actions, .job-hero__actions { width: 100%; }
  .page-header__actions .button, .job-hero__actions .button { flex: 1 1 auto; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
  .filter-search { flex-basis: 100%; }
  .filter-bar .select { flex: 1; width: auto; }
  .filter-count { display: none; }
  .facelock-hero { padding: 32px 25px; }
  .snapshot-list { grid-template-columns: 1fr; }
  .legal-page { padding: 42px 0 65px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
  .table td { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 0; border: 0; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
  .table td:first-child { justify-content: flex-start; padding-bottom: 10px; }
  .table td:first-child::before { display: none; }
  .table__actions { justify-content: flex-end; }
}

@media (max-width: 640px) {
  .service-card-grid { grid-template-columns: 1fr; }
  .catalogue-heading { gap: 14px; margin-bottom: 20px; }
  .service-card { min-height: 0; }
}

@media (max-width: 480px) {
  .metric-grid, .metric-grid--three { grid-template-columns: 1fr; }
  .public-nav__actions { grid-template-columns: 1fr; }
  .card__header, .card__body, .card__footer { padding-inline: 17px; }
  .auth-main { padding: 40px 16px; }
  .auth-card { padding: 24px; }
  .topbar__context .mono-label { display: none; }
  .result-panel { padding: 16px; }
  .result-tabs { padding: 10px; }
  .result-item { align-items: flex-start; flex-direction: column; gap: 8px; }
  .address-value { align-items: flex-start; }
}

@media (min-width: 901px) and (max-height: 800px) {
  .catalogue-section { padding-top: 10px; padding-bottom: 16px; }
  .catalogue-heading { margin-bottom: 18px; }
  .catalogue-category { margin-bottom: 10px; }
  .service-card { min-height: 250px; padding: 16px; }
  .service-card__top { margin-bottom: 13px; }
  .service-card__icon { width: 32px; height: 32px; }
  .service-card h3 { font-size: 15px; }
  .service-card p { min-height: 0; margin-bottom: 10px; font-size: 11.5px; }
  .service-card__price { font-size: 18px; }
  .service-card__availability { margin: 4px 0 10px; }
}

@media (min-width: 901px) and (max-height: 650px) {
  .catalogue-section { padding-top: 8px; }
  .service-card { min-height: 230px; padding: 14px; }
  .service-card p { margin-bottom: 8px; }
}

@media (max-width: 900px) and (max-height: 760px) {
  .catalogue-section { padding-bottom: 16px; }
}

@media (min-width: 641px) and (max-width: 900px) and (max-height: 800px) {
  .service-card { min-height: 230px; padding: 14px; }
  .service-card__top { margin-bottom: 12px; }
  .service-card p { min-height: 0; margin-bottom: 8px; font-size: 11.5px; }
  .service-card__price { font-size: 18px; }
  .service-card__availability { margin: 4px 0 9px; }
}

@media (max-width: 900px) and (max-height: 650px) {
  .catalogue-section { padding-top: 6px; padding-bottom: 0; }
  .service-card { min-height: 210px; padding: 12px; }
  .service-card__top { margin-bottom: 9px; }
  .service-card p { margin-bottom: 6px; }
  .service-card__availability { margin-bottom: 7px; }
}

@media (min-width: 641px) and (max-width: 900px) and (max-height: 650px) {
  .service-card p, .service-card__availability { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f5f5f5; --text: #111; --text-soft: #333; --muted: #555; --line: #ccc; }
  body { background: #fff; color: #111; }
  .sidebar, .landing-sidebar, .landing-mobilebar, .topbar, .public-nav, .sidebar-backdrop, .button, .icon-button, .toast-region, .flash, .skip-link, .result-tabs, .filter-bar { display: none !important; }
  .app-main, .landing-main { margin: 0; }
  .app-content { padding: 0; }
  .card, .metric, .service-card { break-inside: avoid; box-shadow: none; }
  .table { font-size: 11px; }
  a { color: #111; }
}
