/* iBooked: one light theme, system fonts, no external requests. */
:root {
  --bg: #ffffff;
  --soft: #f6f8fb;
  --soft-2: #eef2f7;
  --line: #e3e8ef;
  --line-2: #d3dae4;
  --ink: #0d1726;
  --ink-2: #2b3648;
  --muted: #5e6a7d;
  --faint: #8a95a7;
  --blue: #1859d6;
  --blue-2: #1247ad;
  --blue-soft: #eaf1ff;
  --green: #10865a;
  --green-soft: #e6f6ee;
  --amber: #a35c00;
  --amber-soft: #fff4e2;
  --red: #c4362c;
  --red-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 23, 38, 0.05), 0 4px 16px rgba(13, 23, 38, 0.05);
  --shadow-lg: 0 2px 4px rgba(13, 23, 38, 0.04), 0 18px 48px rgba(13, 23, 38, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 750; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(24, 89, 214, .35); outline-offset: 2px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 40px; height: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 100px; border: 1px solid transparent; font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(24, 89, 214, .3); }
.btn-primary:hover { background: var(--blue-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #0b6f4a; color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #efc4c0; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.linkbtn:hover { color: var(--ink); }
button[disabled] { opacity: .55; cursor: not-allowed; }


/* ---------- Shared brand bits (also used by the signed-in shell) ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.logo b { font-weight: 800; color: var(--blue); }
.logo-ic { width: 28px; height: 28px; color: #fff; background: var(--blue); border-radius: 8px; padding: 4px; stroke-width: 2; }
.navtoggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* ---------- Public site: one narrow column, type first, hairlines instead of boxes ---------- */
.pub { background: #fff; }
.col { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.col-form { max-width: 440px; }
.center { text-align: center; }

.hd { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.8) blur(14px); -webkit-backdrop-filter: saturate(1.8) blur(14px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hd-nav { display: flex; align-items: center; gap: 6px; }
.hd-link, .hd-login { color: var(--ink-2); font-size: 15px; font-weight: 520; padding: 8px 12px; border-radius: 100px; white-space: nowrap; }
.hd-link:hover, .hd-link.on, .hd-login:hover { color: var(--ink); background: var(--soft); }
.hd-login { margin-left: 6px; }
.hd-nav .btn-sm { height: 38px; padding: 0 18px; }

.top { padding: 104px 0 88px; }
.top-sm { padding: 80px 0 24px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 18px; letter-spacing: .01em; }
.top h1 { font-size: clamp(2.5rem, 7.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 760; margin: 0 0 22px; }
.top-sm h1 { font-size: clamp(2.1rem, 5.6vw, 3.2rem); }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 34em; margin: 0 auto; }
.top-cta { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin: 36px 0 28px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 16px; color: var(--blue); }
.textlink .ic-sm { transition: transform .15s; }
.textlink:hover .ic-sm { transform: translateX(3px); }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; margin: 0; color: var(--faint); font-size: 14px; }
.facts span + span::before { content: "·"; margin: 0 10px; color: var(--line-2); }

.blk { padding: 72px 0; border-top: 1px solid var(--line); }
.blk-tight { border-top: 0; padding-top: 24px; }
.blk-gray { background: var(--soft); }
.blk-end { padding: 96px 0 104px; }
.blk h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 10px; }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; }
.blk-end .sub { margin-bottom: 30px; }
.note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* Trade picker: a segmented control that swaps one panel (pure CSS radios). */
.sr { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg { display: flex; gap: 4px; padding: 5px; background: var(--soft-2); border-radius: 100px; margin: 0 auto 36px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg label { flex: 1 0 auto; text-align: center; padding: 10px 20px; border-radius: 100px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; user-select: none; }
.seg label:hover { color: var(--ink); }
.pane { display: none; }
.pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.pane-head h2 { margin: 0; }
.pane-price { margin: 0; color: var(--muted); font-size: 15px; }
.pane-price b { font: 750 1.6rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; margin-right: 4px; }
.pane-sum { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 22px; }
.pane .ticks { margin-bottom: 26px; }
#tp-windows:checked ~ .pane-windows, #tp-roofing:checked ~ .pane-roofing, #tp-bathroom:checked ~ .pane-bathroom, #tp-plumbing:checked ~ .pane-plumbing { display: block; animation: fade .2s ease; }
#tp-windows:checked ~ .seg [for=tp-windows], #tp-roofing:checked ~ .seg [for=tp-roofing], #tp-bathroom:checked ~ .seg [for=tp-bathroom], #tp-plumbing:checked ~ .seg [for=tp-plumbing] { background: #fff; color: var(--blue-2); box-shadow: 0 1px 3px rgba(13, 23, 38, .12); }
#tp-windows:focus-visible ~ .seg [for=tp-windows], #tp-roofing:focus-visible ~ .seg [for=tp-roofing], #tp-bathroom:focus-visible ~ .seg [for=tp-bathroom], #tp-plumbing:focus-visible ~ .seg [for=tp-plumbing] { outline: 3px solid rgba(24, 89, 214, .35); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .ic-sm { color: var(--blue); stroke-width: 2.6; margin-top: 4px; flex: none; }
.ticks-lg { gap: 0; }
.ticks-lg li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.04rem; }
.ticks-lg li:last-child { border-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps-n { font: 760 1.9rem/1 var(--display); color: var(--blue); letter-spacing: -0.04em; }
.steps h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.rows li { border-bottom: 1px solid var(--line-2); }
.rows a, .rows-plain li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px; color: var(--ink); font-size: 1.08rem; font-weight: 560; }
.rows a:hover { color: var(--blue); }
.rows-price { color: var(--muted); font-weight: 450; font-size: 15px; white-space: nowrap; }
.rows-price b { font: 720 1.25rem/1 var(--display); color: var(--ink); margin-right: 4px; letter-spacing: -0.02em; }
.rows-2 li { display: grid; grid-template-columns: 170px 1fr; gap: 4px 20px; align-items: baseline; }
.rows-2 li span { color: var(--muted); font-weight: 450; font-size: 1rem; }

.qas { margin-bottom: 24px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue); font-weight: 300; flex: none; }
.qa[open] summary::after { content: "−"; }
.qa p { color: var(--muted); margin: -6px 0 22px; }

.auth { padding: 72px 0 96px; }
.auth-top { text-align: center; margin-bottom: 32px; }
.auth-top h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); margin-bottom: 8px; }
.auth-top .sub { margin: 0; }
.alt { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.prose h2 { font-size: 1.25rem; margin-top: 2em; }
.prose p { color: var(--ink-2); }

.ft { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.ft-in { max-width: 1040px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft-links a { color: var(--muted); font-size: 14px; }
.ft-links a:hover { color: var(--ink); }
.ft p { margin: 0; color: var(--faint); font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px 18px; }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lbl i { color: var(--red); font-style: normal; margin-left: 2px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: 16px/1.4 var(--font); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6a7d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24, 89, 214, .12); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 13px; font-weight: 520; }
.hint { color: var(--faint); font-size: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; font-weight: 520; background: #fff; user-select: none; }
.checkbox:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-2); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.inline-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.inline-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font-weight: 650; font-size: 15px; margin-bottom: 10px; padding: 0; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-weight: 520; font-size: 15px; }
.flash-ok { background: var(--green-soft); color: #0b5e3f; border: 1px solid #bfe6d2; }
.flash-err { background: var(--red-soft); color: #962a22; border: 1px solid #f3c7c2; }
.flash-info { background: var(--blue-soft); color: var(--blue-2); border: 1px solid #c9dafc; }
.notice { background: var(--amber-soft); border: 1px solid #f2d9ad; color: #7a4600; border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 20px; }
.notice.info { background: var(--blue-soft); border-color: #c9dafc; color: #163f8f; }


/* ---------- Signed-in shell ---------- */
.appbody { background: var(--soft); }
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 22px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 540; font-size: 15px; }
.side nav a:hover { background: var(--soft); color: var(--ink); }
.side nav a.on { background: var(--blue-soft); color: var(--blue-2); }
.side nav a .ic { width: 19px; height: 19px; }
.count { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; background: var(--red); color: #fff; border-radius: 100px; padding: 1px 8px; }
.side-foot { margin-top: auto; display: grid; gap: 14px; padding: 0 6px; }
.balance { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.balance:hover { color: var(--ink); border-color: var(--line-2); }
.balance span { color: var(--muted); }
.balance b { font-size: 16px; }
.neg { color: var(--red); }
.who { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--muted); font-weight: 450; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--soft-2); color: var(--muted); }
.mobilebar { display: none; }
.main { min-width: 0; }
.content { padding: 32px 40px 64px; max-width: 1240px; }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { font-size: 1.75rem; letter-spacing: -0.03em; margin: 0; }
.pagehead-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.panel-body { padding: 20px; }
.panel-body > :last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 520; }
.stat b { font: 720 28px/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.stat small { color: var(--faint); font-size: 13px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 650; padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfdfe; }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table .strong { font-weight: 600; color: var(--ink); }
.table .sub { display: block; color: var(--muted); font-size: 13px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a.rowlink { color: var(--ink); font-weight: 600; }
.table a.rowlink:hover { color: var(--blue); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 100px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill-blue { background: var(--blue-soft); color: var(--blue-2); }
.pill-green { background: var(--green-soft); color: #0b6f4a; }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-gray { background: var(--soft-2); color: var(--muted); }
.pill-dark { background: var(--ink); color: #fff; }
.trade { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.trade .ic-sm { color: var(--blue); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.filters .field { gap: 4px; }
.filters .lbl { font-size: 12px; color: var(--muted); }
.filters select, .filters input { height: 40px; font-size: 15px; }
.filters input[type=search] { min-width: 220px; }
.tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 12px; color: var(--muted); font-weight: 560; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--blue); }
.tabs a em { font-style: normal; color: var(--faint); font-weight: 500; margin-left: 4px; }

.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.big-when { font: 720 24px/1.25 var(--display); letter-spacing: -0.02em; margin: 0 0 4px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 14px; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-top: 7px; }
.timeline small { display: block; color: var(--faint); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic-lg { margin: 0 auto 12px; color: var(--line-2); }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.bar { height: 8px; border-radius: 100px; background: var(--soft-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 100px; }
.hours-row { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row select { height: 40px; }
.hours-row.off select { opacity: .4; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
pre.code { background: var(--ink); color: #dbe4f3; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.elig { display: grid; gap: 8px; }
.elig-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.elig-row.ok { border-color: #bfe6d2; background: #f7fcf9; }
.elig-row small { display: block; color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .mobilebar .navtoggle { display: inline-flex; margin: 0; }
  .content { padding: 22px 16px 48px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}
@media (max-width: 720px) {
  .hd-link { display: none; }
  .hd-login { margin-left: 0; }
  .col, .hd-in, .ft-in { padding-left: 20px; padding-right: 20px; }
  .top { padding: 64px 0 56px; }
  .top-sm { padding: 52px 0 12px; }
  .top h1 br { display: none; }
  .top-cta { flex-direction: column; gap: 18px; margin: 30px 0 24px; }
  .top-cta .btn { width: 100%; }
  .blk { padding: 52px 0; }
  .blk-end { padding: 64px 0 72px; }
  .blk-end .btn { width: 100%; }
  .seg { width: 100%; margin-bottom: 28px; padding: 4px; gap: 2px; }
  .seg label { flex: 1 1 0; min-width: 0; padding: 10px 2px; font-size: 14px; }
  .facts { flex-direction: column; gap: 4px; }
  .facts span + span::before { content: none; }
  .rows-price i { display: none; }
  .rows a, .rows-plain li { font-size: 1.02rem; padding: 16px 2px; }
  .steps li { grid-template-columns: 44px 1fr; }
  .steps-n { font-size: 1.6rem; }
  .rows-2 li { grid-template-columns: 1fr; }
  .auth { padding: 44px 0 64px; }
  .ft-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row > :first-child { grid-column: span 2; }
  .filters input[type=search] { min-width: 0; width: 100%; }
  .filters .field { flex: 1 1 140px; }
  .table th, .table td { padding: 12px 14px; }
}
@media (max-width: 360px) {
  .hd-nav .btn-sm { padding: 0 14px; }
  .seg label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .side, .mobilebar, .hd, .ft, .pagehead-actions, form { display: none !important; } .shell { display: block; } }
