/* Azurv admin + client portal (light design, matches azurv.com) */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --soft: #f6f7fb; --soft-2: #eef1f8;
  --ink: #0d1424; --ink-2: #48536a; --ink-3: #6b7489; --line: #e4e8f1; --line-2: #d5dbe8;
  --navy: #0b1530; --cyan: #22c3ec; --azure: #3f7ff5; --violet: #7c5cf0; --green: #16a36a; --red: #d93a3a; --amber: #b7791f;
  --grad: linear-gradient(120deg, #22c3ec 0%, #3f7ff5 45%, #7c5cf0 100%);
  --shadow: 0 1px 2px rgba(13,20,36,.04), 0 8px 24px -16px rgba(13,20,36,.18);
  --head: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  /* legacy aliases used in markup */
  --text: var(--ink); --muted: var(--ink-2); --dim: var(--ink-3); --stroke: var(--line); --stroke2: var(--line-2); --card: var(--surface); --card2: var(--soft-2);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 .975rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 3vw, 2.05rem); letter-spacing: -.03em; }
h2 { font-size: 1.06rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.center { text-align: center; }
.t-err { color: var(--red); font-weight: 600; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }

/* ---------- Top bar (client portal + sign-in) ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 0 22px; min-height: 66px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { display: block; height: 22px; aspect-ratio: 669 / 131; background: var(--grad); -webkit-mask: url(/assets/azurv-logo.png) center / contain no-repeat; mask: url(/assets/azurv-logo.png) center / contain no-repeat; }
.tag { font: 600 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 5px 8px; border-radius: 6px; background: var(--soft-2); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--soft-2); }
.nav a.on { color: var(--azure); background: #eef4ff; font-weight: 600; }
.nav a.out { color: var(--ink-3); margin-left: 6px; }
.navbtn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.navbtn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; }

/* ---------- Admin: left sidebar ---------- */
@media (min-width: 901px) {
  body.area-admin:not(.no-nav) { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .area-admin:not(.no-nav) .bar { grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; background: var(--navy); border: 0; }
  .area-admin:not(.no-nav) .bar-in { height: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 22px 14px; min-height: 0; }
  .area-admin:not(.no-nav) .brand { padding: 4px 10px 26px; }
  .area-admin:not(.no-nav) .tag { background: rgba(255,255,255,.08); color: #9fb0d2; }
  .area-admin:not(.no-nav) .nav { flex-direction: column; align-items: stretch; margin: 0; gap: 3px; flex: 1; }
  .area-admin:not(.no-nav) .nav a { color: #b9c4dc; padding: 10px 12px; font-size: .93rem; }
  .area-admin:not(.no-nav) .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .area-admin:not(.no-nav) .nav a.on { background: rgba(63,127,245,.22); color: #fff; }
  .area-admin:not(.no-nav) .nav a.out { margin: auto 0 0; color: #7f8db0; }
  .area-admin:not(.no-nav) .main, .area-admin:not(.no-nav) .foot { grid-column: 2; max-width: 1180px; }
}

/* ---------- Layout ---------- */
.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 34px 22px 64px; }
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.hello p { margin: 4px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--azure); margin-bottom: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); }
.dot.warn { background: #e0a020; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.wide-left { grid-template-columns: 1.5fr 1fr; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; color: inherit; text-decoration: none !important; box-shadow: var(--shadow); }
.grid > .card, .grid > div > .card:last-child { margin-bottom: 0; }
.grid > div { display: grid; gap: 18px; align-content: start; }
a.card { transition: border-color .15s, transform .15s; }
a.card:hover { border-color: #b9cdfa; transform: translateY(-1px); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 10px; }
.card-h h2 { margin: 0; }
.k { font: 600 .72rem/1.2 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.v { font: 700 1.1rem/1.25 var(--head); margin-bottom: 4px; color: var(--ink); }
.v.big { font-size: 1.85rem; letter-spacing: -.03em; }
.v small { font: 500 .88rem var(--body); color: var(--ink-3); }
.stat .v.big { color: var(--ink); }
.link { font-weight: 600; font-size: .94rem; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.row:first-of-type { border-top: 0; }
a.row { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
a.row:hover { background: var(--soft); }
a.row + a.row, .row + a.row, a.row + .row { border-top-color: transparent; box-shadow: 0 -1px 0 var(--line); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: #e7f7ef; color: var(--green); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- Buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; font: 600 .95rem/1 var(--body); color: #fff; background: var(--grad); box-shadow: 0 10px 22px -12px rgba(63,127,245,.7); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(63,127,245,.75); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #b9cdfa; color: var(--azure); }
.btn.danger { background: var(--red); box-shadow: 0 10px 22px -12px rgba(217,58,58,.7); }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: .86rem; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stack { display: grid; gap: 14px; }
.stack.two { grid-template-columns: 1fr 1fr; }
.stack .full, .stack.two .inline.full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink); }
label .muted { font-weight: 400; }
label.inline { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-2); }
label.inline input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--azure); flex: none; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 400 .97rem/1.4 var(--body); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(63,127,245,.14); }
input:disabled { background: var(--soft); color: var(--ink-3); }
input.code { font: 700 1.6rem/1 var(--head); letter-spacing: .4em; text-align: center; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filters input { flex: 1; min-width: 200px; }
.filters select { width: auto; min-width: 170px; }
form.mini { display: inline; }
form.mini select { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font-size: .85rem; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.seg a { padding: 7px 13px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .9rem; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: var(--navy); color: #fff; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 600 .74rem/1.2 var(--body); white-space: nowrap; background: var(--soft-2); color: var(--ink-2); }
.b-active, .p-paid, .r-done, .l-won, .l-ready, .l-final, .l-live { background: #e6f6ee; color: #11704a; }
.b-pending, .r-in_progress, .p-pending, .l-contacted, .k-preview, .l-sent { background: #eaf1ff; color: #2f62c9; }
.b-past_due, .b-suspended, .p-failed, .l-lost, .l-spam { background: #fdecec; color: #b32b2b; }
.b-canceling, .r-open, .l-new, .k-order { background: #fff4dc; color: #8a5a00; }
.b-canceled, .p-refunded { background: var(--soft-2); color: var(--ink-3); }
.k-contact, .l-building, .l-paid { background: #f0ebff; color: #5b3fc4; }
.l-won { background: #fff4dc; color: #8a5a00; }

/* ---------- Alerts + flash ---------- */
.flash, .alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.flash.ok { border-color: #bfe8d3; background: #eefaf4; color: #11633f; }
.flash.err, .alert.err { border-color: #f4c6c6; background: #fdf1f1; color: #8f2424; }
.alert.warn { border-color: #f1dca6; background: #fff8e8; color: #7a4d00; }
.alert.info { border-color: #cfdcfb; background: #f2f6ff; color: #29498f; }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.alert form { display: inline; }

/* ---------- Tables ---------- */
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font: 600 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--soft); }

/* ---------- Requests / messages ---------- */
details.req { border-top: 1px solid var(--line); }
details.req:first-of-type { border-top: 0; }
details.req summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; }
details.req summary::-webkit-details-marker { display: none; }
.req-body { padding: 0 0 14px; color: var(--ink-2); }
.reply { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #f2f6ff; border: 1px solid #cfdcfb; color: var(--ink-2); }
pre.msg { white-space: pre-wrap; font: 400 .88rem/1.55 var(--body); color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; max-height: 420px; overflow: auto; }
.copy { margin-top: 14px; }
.copy .k { margin-bottom: 6px; }
.copy code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); word-break: break-all; user-select: all; }
details > summary.small { cursor: pointer; color: var(--ink-3); margin-top: 8px; }

/* ---------- Sign-in ---------- */
.auth { display: grid; place-items: center; min-height: 66vh; }
.auth-card { width: 100%; max-width: 440px; padding: 38px 34px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13,20,36,.25); }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .btn { width: 100%; }

/* ---------- Cancel ---------- */
.narrow { max-width: 720px; margin: 0 auto; }
.danger-card { border-color: #f4c6c6; }
.warnlist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.warnlist li { position: relative; padding: 13px 16px 13px 46px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.warnlist li::before { content: "!"; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--body); background: #fff4dc; color: #8a5a00; }
.warnlist li b { color: var(--ink); }
label.confirm { padding: 14px 16px; border-radius: 12px; border: 1px solid #f4c6c6; background: #fdf1f1; color: #8f2424; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1120px; width: 100%; margin: 0 auto; padding: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .84rem; }
.foot a { color: var(--ink-2); }

/* ---------- Dashboard: needs attention ---------- */
.todo { display: flex; align-items: center; gap: 14px; padding: 13px 10px; margin: 0 -10px; border-radius: 12px; color: inherit; text-decoration: none !important; }
.todo + .todo { box-shadow: 0 -1px 0 var(--line); }
.todo:hover { background: var(--soft); }
.todo .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; background: var(--soft-2); }
.todo .ic.go { background: #e6f6ee; } .todo .ic.warn { background: #fff4dc; } .todo .ic.bad { background: #fdecec; } .todo .ic.new { background: #eaf1ff; }
.todo .tx { flex: 1; min-width: 0; }
.todo .tx b { display: block; color: var(--ink); font-weight: 600; }
.todo .tx span { display: block; font-size: .86rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo .go-arrow { color: var(--ink-3); }
.empty { padding: 22px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

/* ---------- Website requests ---------- */
.pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pipe-s { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pipe-s b { display: block; font: 700 1.5rem/1.1 var(--head); color: var(--ink); }
.pipe-s span { font-size: .8rem; color: var(--ink-3); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.facts span { font-size: .8rem; padding: 4px 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.t-link { color: var(--ink); text-decoration: none; }
.t-link:hover { color: var(--azure); }
/* Slim stepper */
.track { display: flex; gap: 0; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); overflow-x: auto; }
.track button { position: relative; flex: 1; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 4px; border: 0; background: none; color: var(--ink-3); font: 500 .74rem/1.2 var(--body); cursor: pointer; text-align: center; }
.track button::before { content: ""; position: absolute; top: 12px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.track button:first-of-type::before { display: none; }
.track button i { position: relative; z-index: 1; font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-size: .72rem; font-weight: 700; color: var(--ink-3); }
.track button:hover i { border-color: var(--azure); color: var(--azure); }
.track button.done { color: var(--ink-2); }
.track button.done::before, .track button.on::before { background: var(--green); }
.track button.done i { background: var(--green); border-color: var(--green); color: #fff; }
.track button.on { color: var(--ink); font-weight: 700; }
.track button.on i { background: var(--azure); border-color: var(--azure); color: #fff; box-shadow: 0 0 0 4px rgba(63,127,245,.15); }
.track button.on::before { background: var(--green); }
.qa-r { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.card h2 + .qa-r { border-top: 0; }
.qa-r .k { margin: 0; padding-top: 3px; }
.qa-r div { white-space: pre-wrap; color: var(--ink); }
.qa-r .na { color: var(--ink-3); }
.selectable { user-select: all; }
.send-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.send-box h3 { margin: 0; }
.mail-prev { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #eef1f6; }
.mail-prev .k { margin: 0; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mail-prev iframe { display: block; width: 100%; height: 620px; border: 0; background: #eef1f6; }
.spam-box { border-color: #f4c6c6; background: #fffafa; }
.pay-box { border-color: #f1dca6; background: #fffcf3; }
.final-box { border-color: #bfe8d3; background: #f8fdfa; }
.card.claimed { border-color: #bfe8d3; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.card .files { margin: 6px 0 12px; }
.file { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file.logo { grid-column: span 2; aspect-ratio: auto; background: #fff; }
.file.logo img { object-fit: contain; padding: 14px; height: 104px; }
.file.logo span { position: absolute; left: 8px; bottom: 6px; font-size: .7rem; font-weight: 700; color: var(--ink-3); }
.fb-box { margin: 4px 0 12px; padding: 4px 16px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.fb-box > .k { margin: 10px 0 0; }
details.tech { padding: 0; }
details.tech > summary { list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::after { content: "Show"; font-weight: 500; color: var(--azure); font-size: .88rem; }
details.tech[open] > summary::after { content: "Hide"; }
details.tech > .tech-in { padding: 0 22px 18px; }

/* ---------- Client portal ---------- */
.welcome { position: relative; overflow: hidden; padding: 30px; border-radius: 20px; background: var(--navy); color: #d6deee; margin-bottom: 18px; }
.welcome::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(63,127,245,.35), transparent 65%); pointer-events: none; }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { color: #8fb3ff; }
.welcome h1 { color: #fff; margin-bottom: 6px; }
.welcome p { color: #b9c4dc; margin: 0; }
.welcome .wl-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.welcome .btn.ghost { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.steps { display: flex; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.steps div { position: relative; flex: 1; text-align: center; font-size: .8rem; color: #8f9cb8; }
.steps div::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: rgba(255,255,255,.15); }
.steps div:first-child::before { display: none; }
.steps i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255,255,255,.25); font-style: normal; font-weight: 700; font-size: .75rem; color: #8f9cb8; }
.steps .done i { background: #22b37a; border-color: #22b37a; color: #fff; }
.steps .done::before, .steps .on::before { background: #22b37a; }
.steps .on i { background: var(--azure); border-color: var(--azure); color: #fff; box-shadow: 0 0 0 4px rgba(63,127,245,.3); }
.steps .on { color: #fff; font-weight: 600; }
.steps .done { color: #c8d3ea; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none !important; transition: border-color .15s, transform .15s; cursor: pointer; font: inherit; text-align: left; width: 100%; }
.tile:hover { border-color: #b9cdfa; transform: translateY(-1px); }
.tile .ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eef4ff; color: var(--azure); font-size: 1.1rem; margin-bottom: 8px; }
.tile b { font-family: var(--head); color: var(--ink); font-size: .98rem; }
.tile span { font-size: .85rem; color: var(--ink-3); }
form.tilef { margin: 0; display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g4, .tiles { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g2, .wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .navbtn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(13,20,36,.3); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav a.out { margin: 4px 0 0; }
}
@media (max-width: 600px) {
  .main { padding: 22px 14px 50px; }
  .g4, .g3, .stack.two { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 14px; }
  .hello .btn { width: 100%; }
  .tag { display: none; }
  .btns { flex-direction: column-reverse; }
  .btns .btn { width: 100%; }
  th:nth-child(n+4), td:nth-child(n+4) { display: none; }
  .auth-card { padding: 30px 22px; }
  .qa-r { grid-template-columns: 1fr; gap: 4px; }
  .welcome { padding: 22px; }
  .steps div { font-size: .7rem; }
}

/* ---------- Portal polish (v10) ---------- */
.tile .ti svg { width: 20px; height: 20px; }
.tile .ti { background: linear-gradient(135deg, #eaf6ff, #efeaff); }
.tile b .ext, .ext { font-style: normal; color: var(--ink-3); font-weight: 500; }
.site-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sc-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sc-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(63,127,245,.8); }
.sc-ic svg { width: 24px; height: 24px; }
.site-card .k { margin-bottom: 2px; }
.site-card .v { font-size: 1.15rem; margin-bottom: 6px; word-break: break-all; }
.sc-st { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-amt { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 0; }
.plan-amt b { font: 800 2rem/1 var(--head); letter-spacing: -.03em; color: var(--ink); }
.plan-amt span { color: var(--ink-3); font-weight: 500; }
.welcome { background: linear-gradient(135deg, #0b1530 0%, #12224a 100%); }
.card-h a { font-weight: 600; font-size: .9rem; }
@media (max-width: 600px) {
  .site-card .btnrow { width: 100%; }
  .site-card .btnrow .btn { flex: 1; }
  .tiles { gap: 10px; }
  .tile { padding: 14px; }
}
