/* Short Web - app + admin + auth styles */
:root {
  --ink: #182033;
  --ink-2: #4A5468;
  --ink-3: #8790A3;
  --line: #E2E6EE;
  --paper: #F4F6FA;
  --card: #FFFFFF;
  --brand: #3446E8;
  --brand-2: #2433C4;
  --brand-soft: #E8EAFF;
  --marigold: #F4B023;
  --marigold-soft: #FFF3D6;
  --ok: #12925E;
  --ok-soft: #DDF5EA;
  --bad: #D93A3F;
  --bad-soft: #FDE6E7;
  --shadow: 0 1px 2px rgba(24,32,51,.06), 0 8px 24px -12px rgba(24,32,51,.18);
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --f-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF1F8; --ink-2: #B4BCCD; --ink-3: #7D879B; --line: #2A3349;
    --paper: #0F1524; --card: #182033; --brand: #6D7BFF; --brand-2: #8B96FF; --brand-soft: #232B57;
    --marigold-soft: #3A2E12; --ok-soft: #12352A; --bad-soft: #3D1A1D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 750; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: .88rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- Buttons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-md); border: 1.5px solid var(--b); background: var(--b); color: #fff; font: 600 .95rem var(--f-body);
  cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .08s, background .15s; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); border-color: var(--ink-3); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.btn.danger { --b: var(--bad); }
.btn.danger:hover { background: #b92d32; border-color: #b92d32; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.icon-btn svg, .btn svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field small { display: block; color: var(--ink-3); margin-top: 5px; font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); font: 1rem var(--f-body); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.prefix-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.prefix-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.prefix-input .pre { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--ink-3); font-size: .95rem; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.prefix-input input { flex: 1 0 90px; width: auto; border: 0 !important; box-shadow: none !important; padding-left: 2px; min-width: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.avail { font-size: .84rem; margin-top: 6px; min-height: 1.2em; }
.avail.ok { color: var(--ok); } .avail.bad { color: var(--bad); }

/* ---------- Cards / chips ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card.tight { padding: 14px 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.gold { background: var(--marigold-soft); color: #8A5C00; border-color: transparent; }
.chip.blue { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.gold { color: var(--marigold); } }
.alert { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-size: .94rem; border: 1px solid transparent; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--brand-soft); color: var(--brand); }
.alert.warn { background: var(--marigold-soft); color: #7A5200; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert.warn { color: var(--marigold); } }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 750 1.15rem var(--f-head); color: var(--ink); text-decoration: none !important; letter-spacing: -.02em; }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; position: relative; flex: none; }
.brand .mark::before { content: ""; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; border-right-color: transparent; transform: rotate(-45deg); }
.brand .mark::after { content: ""; position: absolute; width: 8px; height: 8px; background: var(--marigold); border-radius: 50%; right: 6px; top: 6px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-side { display: none; background: var(--brand); color: #fff; padding: 48px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-side .brand { color: #fff; }
.auth-side .brand .mark { background: #fff; }
.auth-side .brand .mark::before { border-color: var(--brand); border-right-color: transparent; }
.auth-side h2 { font-size: 2.3rem; max-width: 14ch; line-height: 1.05; font-weight: 750; }
.auth-addr { font: 600 1.05rem var(--f-head); background: rgba(255,255,255,.12); border-radius: 14px; padding: 14px 18px; display: inline-block; }
.auth-addr b { color: var(--marigold); font-weight: 750; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand { margin-bottom: 28px; }
@media (min-width: 900px) { .auth-box > .brand { display: none; } }

/* ---------- App shell ---------- */
.shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.topbar-in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main { max-width: 980px; margin: 0 auto; padding: 20px 16px 32px; }
.bottomnav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--ink-3); font-size: .74rem; font-weight: 600; text-decoration: none; border-radius: 12px; }
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.on { color: var(--brand); }
.bottomnav a.on svg { stroke-width: 2.4; }
.sidenav { display: none; }
@media (min-width: 1000px) {
  .shell { padding-bottom: 0; padding-left: 240px; }
  .bottomnav { display: none; }
  .sidenav { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; left: 0; bottom: 0; width: 240px; padding: 22px 14px; background: var(--card); border-right: 1px solid var(--line); }
  .sidenav .brand { margin: 0 8px 22px; }
  .sidenav a.nav { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
  .sidenav a.nav:hover { background: var(--paper); color: var(--ink); }
  .sidenav a.nav.on { background: var(--brand-soft); color: var(--brand); }
  .sidenav a.nav svg { width: 20px; height: 20px; }
  .topbar .brand { visibility: hidden; }
}
.page-head { margin-bottom: 18px; }
.page-head p { margin: 0; }

/* Address card on dashboard */
.addr-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .addr-card { background: var(--brand-soft); } }
.addr-card .lbl { color: rgba(255,255,255,.65); font-size: .85rem; }
.addr-card .addr { font: 700 clamp(1.15rem, 4.6vw, 1.6rem) var(--f-head); letter-spacing: -.02em; word-break: break-all; margin: 2px 0 14px; }
.addr-card .addr span { color: rgba(255,255,255,.55); font-weight: 500; }
.addr-card .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.addr-card .btn.ghost:hover { background: rgba(255,255,255,.1); }
.addr-card .dot { position: absolute; right: -34px; top: -34px; width: 96px; height: 96px; border-radius: 50%; background: var(--marigold); }
.addr-card > :not(.dot) { position: relative; z-index: 1; }
.addr-card .addr { padding-right: 40px; }

.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.full > i { background: var(--bad); }

/* Link list */
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.link-item .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item .s { color: var(--brand); font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item .d { color: var(--ink-3); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; grid-column: 1 / -1; }
.link-item .n { text-align: right; }
.link-item .n b { font: 750 1.25rem var(--f-head); display: block; line-height: 1; }
.link-item .n small { color: var(--ink-3); font-size: .75rem; }
.link-item .acts { grid-column: 1 / -1; display: flex; gap: 2px; margin: 6px -6px -4px; flex-wrap: wrap; }
.link-item.off { opacity: .6; }

.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--r-lg); color: var(--ink-2); }
.empty h3 { color: var(--ink); }

/* Stats */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font: 750 1.7rem/1.1 var(--f-head); letter-spacing: -.02em; }
.stat span { color: var(--ink-2); font-size: .86rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; min-width: 3px; background: var(--brand); border-radius: 4px 4px 1px 1px; position: relative; min-height: 2px; opacity: .9; }
.bars .b:hover { opacity: 1; background: var(--brand-2); }
.bars .b.zero { background: var(--line); }
.bars-x { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .75rem; margin-top: 6px; }
.toplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toplist li { position: relative; overflow: hidden; background: var(--paper); display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: .92rem; z-index: 0; }
.toplist li .bg { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); border-radius: 8px; z-index: -1; }
.toplist li b { font-weight: 700; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 9px; color: var(--ink-2); font-size: .86rem; font-weight: 600; text-decoration: none; }
.seg a.on { background: var(--brand); color: #fff; }

/* Dialog / sheet */
dialog.sheet { border: 0; padding: 0; width: min(520px, 100%); max-height: 92vh; background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(15,21,36,.45); backdrop-filter: blur(2px); }
@media (max-width: 600px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
dialog.sheet[open] { animation: sheetIn .22s ease-out; }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.sheet-b { padding: 8px 20px 20px; overflow: auto; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
@media (min-width: 1000px) { #toast { bottom: 28px; } }

/* Plans */
.plan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plan.current { border-color: var(--brand); }
.plan .price { font: 750 1.8rem var(--f-head); letter-spacing: -.02em; }
.plan .price small { font: 500 .9rem var(--f-body); color: var(--ink-3); }
.plan ul { margin: 6px 0 12px; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.plan .btn { margin-top: auto; }

/* Theme swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch .sw { display: block; aspect-ratio: 3 / 4; border-radius: 14px; border: 2px solid var(--line); padding: 10px 8px; position: relative; overflow: hidden; }
.swatch .sw i { display: block; height: 8px; border-radius: 4px; margin-top: 6px; opacity: .85; }
.swatch .sw i:first-child { width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 8px; }
.swatch input:checked + .sw { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.swatch input:focus-visible + .sw { outline: 3px solid var(--brand); }
.swatch em { display: block; text-align: center; font-style: normal; font-size: .82rem; font-weight: 600; margin-top: 6px; color: var(--ink-2); }
.avatar-edit { display: flex; gap: 16px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--brand); color: #fff; display: grid; place-items: center; font: 750 1.5rem var(--f-head); flex: none; }

/* ---------- Admin ---------- */
.admin .sidenav { display: none; }
.adm-shell { min-height: 100vh; }
@media (min-width: 1000px) { .adm-shell { padding-left: 240px; } .admin .sidenav { display: flex; } .adm-menu-btn { display: none !important; } }
.adm-drawer { display: none; }
.adm-drawer.open { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(15,21,36,.45); }
.adm-drawer.open .sidenav { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; left: 0; bottom: 0; width: 260px; padding: 22px 14px; background: var(--card); overflow: auto; }
.adm-drawer .sidenav a.nav { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.adm-drawer .sidenav a.nav.on { background: var(--brand-soft); color: var(--brand); }
.adm-drawer .sidenav a.nav svg { width: 20px; height: 20px; }
.adm-drawer .sidenav .brand { margin: 0 8px 22px; }
.admin .main { max-width: 1180px; }
.admin .topbar-in { max-width: 1180px; }
.nav-badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 320px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* Migration screen */
.mig-hero { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.mig-hero .stat.alert-on { border-color: var(--marigold); background: var(--marigold-soft); }
.mig-hero .stat.ok-on b { color: var(--ok); }
.mig-list { display: flex; flex-direction: column; gap: 12px; }
.mig { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mig > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.mig > summary::-webkit-details-marker { display: none; }
.mig .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.mig .ico.done { background: var(--ok-soft); color: var(--ok); }
.mig .ico.pend { background: var(--marigold-soft); color: #9A6700; }
.mig .ico svg { width: 18px; height: 18px; }
.mig .id { font-size: .78rem; color: var(--ink-3); }
.mig ul { list-style: none; margin: 0; padding: 0 16px 14px 62px; }
.mig ul li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.code { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: .85rem/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }

/* ---------- Landing ---------- */
.land { min-height: 100vh; }
.land-nav { max-width: 1120px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 20px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.land-hero { max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .land-hero { grid-template-columns: 1.1fr .9fr; padding-top: 56px; } }
.land-hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; max-width: 13ch; }
.land-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.claim { display: flex; flex-wrap: wrap; max-width: 480px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); margin: 26px 0 10px; }
.claim .pre { display: flex; align-items: center; padding-left: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.claim input { flex: 1 1 110px; width: auto; min-width: 0; border: 0 !important; box-shadow: none !important; min-height: 46px; padding-left: 2px; font-weight: 650; }
@media (max-width: 480px) { .claim .btn { flex: 1 1 100%; margin-top: 4px; } }
.claim .btn { flex: none; }
.phone { justify-self: center; width: min(320px, 86vw); aspect-ratio: 9 / 18.5; border-radius: 42px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px -30px rgba(24,32,51,.5); position: relative; }
.phone-in { height: 100%; border-radius: 32px; background: var(--marigold-soft); overflow: hidden; padding: 30px 18px; display: flex; flex-direction: column; gap: 10px; }
.phone-in .pf { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.phone-in .pf .av { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 750 1.2rem var(--f-head); }
.phone-in .pf b { font: 750 1.1rem var(--f-head); color: #182033; display: block; }
.phone-in .pf small { color: #5c5240; }
.phone-in .lk { background: #fff; border-radius: 14px; padding: 12px 14px; font-weight: 650; color: #182033; display: flex; justify-content: space-between; font-size: .92rem; }
.phone-in .lk em { font-style: normal; color: #8790A3; font-weight: 500; font-size: .8rem; }
.land-feats { max-width: 1120px; margin: 0 auto; padding: 10px 20px 64px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.land-feats .card h3 { margin-bottom: 6px; }
.land-feats .card p { margin: 0; color: var(--ink-2); }
.land-foot { border-top: 1px solid var(--line); padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-3); font-size: .88rem; }
.land-foot a { color: var(--ink-2); margin: 0 8px; }

.legal { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; }
.legal .body { white-space: pre-wrap; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Themed popup (confirm / alert) ---------- */
dialog.sw-modal { border: 0; padding: 24px 22px 20px; width: min(400px, calc(100% - 32px)); background: var(--card); color: var(--ink);
  border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(15,21,36,.45); text-align: left; animation: swmIn .18s ease-out; }
dialog.sw-modal::backdrop { background: rgba(15,21,36,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: swmFade .18s ease-out; }
dialog.sw-modal.closing { animation: swmOut .14s ease-in forwards; }
dialog.sw-modal .swm-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
dialog.sw-modal.danger .swm-ico { background: var(--bad-soft); color: var(--bad); }
dialog.sw-modal .swm-ico svg { width: 24px; height: 24px; }
dialog.sw-modal h2 { font-size: 1.25rem; margin: 0 0 6px; }
dialog.sw-modal p { color: var(--ink-2); margin: 0 0 22px; font-size: .97rem; line-height: 1.5; word-break: break-word; }
dialog.sw-modal .swm-acts { display: flex; gap: 10px; }
dialog.sw-modal .swm-acts .btn { flex: 1; }
@media (max-width: 600px) {
  dialog.sw-modal { margin: auto auto calc(16px + env(safe-area-inset-bottom)); }
}
@keyframes swmIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes swmOut { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes swmFade { from { opacity: 0; } }
