/* Marilao Business Permit Portal — design system.
   Brand: My Marilao magenta (#FC186E) paired with deep ink for a trustworthy,
   modern government-service feel. Fonts: Lexend (headings) + Source Sans 3. */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --brand: #FC186E;
  --brand-600: #E60F60;
  --brand-700: #BA356F;
  --brand-900: #7A1E4B;
  --accent: #FF658B;
  --ink: #14121A;
  --ink-2: #3F3A4A;
  --muted: #6B6875;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #FBF6F8;
  --line: #ECEAF1;
  --line-2: #E1DEE8;
  --ok: #16A34A; --ok-bg: #E7F7EE;
  --warn: #E8590C; --warn-bg: #FFF0E3;
  --err: #E11D48; --err-bg: #FDE7EC;
  --info: #2563EB; --info-bg: #E7EEFF;
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 244px;
  --mtopbar-h: 56px;
  --shadow-sm: 0 1px 2px rgba(20,18,26,.06), 0 2px 8px rgba(20,18,26,.05);
  --shadow: 0 10px 30px rgba(20,18,26,.10);
  --shadow-lg: 0 24px 60px rgba(122,30,75,.18);
  --ease: cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-font { font-family: 'Lexend', sans-serif; letter-spacing: -.01em; }
.container { width: 100%; max-width: 680px; margin: 0 auto; padding: 20px 16px 48px; }
a { color: var(--brand-600); }

/* ---------- App header (dashboard / wizard) ---------- */
/* ---------- Sidebar shell (replaces the old top bar) ---------- */
body.has-sidebar { padding-left: var(--sidebar-w); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column; gap: 6px; padding: 20px 15px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 62%, var(--brand-900) 100%);
  color: #fff; box-shadow: 6px 0 22px rgba(122,30,75,.18);
}
.sb-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; padding: 4px 6px 16px; }
.sb-brand img { height: 40px; width: 40px; border-radius: 10px; background: #fff; padding: 4px; box-shadow: var(--shadow-sm); }
.sb-brand-txt b { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.02rem; display: block; line-height: 1.12; }
.sb-brand-txt small { font-size: .76rem; opacity: .9; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; }
.sb-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px;
  color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.sb-link svg { width: 20px; height: 20px; flex: none; }
.sb-link:hover { background: rgba(255,255,255,.13); color: #fff; }
.sb-link.active { background: rgba(255,255,255,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
/* Comply & Resubmit callout */
.comply-callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px;
  background: #FFF7ED; border: 1px solid #FED7AA; }
.comply-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: linear-gradient(135deg,#F59E0B,#D97706);
  color: #fff; display: grid; place-items: center; }
.comply-ic svg { width: 22px; height: 22px; }
.comply-callout b { display: block; color: #9A3412; font-size: 15px; margin-bottom: 4px; }
.comply-remarks { font-size: 13.5px; color: #7C4A1E; line-height: 1.5; }

/* Compliance edit form fields */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .frow { grid-template-columns: 1fr; } }
#editBody h3 { font-size: 15px; font-weight: 800; color: var(--ink); }
.ffield { margin-bottom: 14px; }
.ffield label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.ffield label i { color: var(--brand); font-style: normal; font-weight: 800; }
.ffield input, .ffield select {
  width: 100%; padding: 12px 13px; border: 1.4px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: .98rem; background: #fff; color: var(--ink); outline: none;
  transition: border-color .15s;
}
.ffield input:focus, .ffield select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(252,24,110,.1); }

/* Line-of-Business searchable dropdown */
.lob-wrap { position: relative; }
.lob-wrap .lob-search { position: absolute; left: 15px; top: 26px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; z-index: 1; }
.lob-wrap > input#lineOfBusiness { padding-left: 44px; }
.lob-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  box-shadow: 0 18px 44px rgba(18,20,28,.16); max-height: 328px; overflow-y: auto; display: none; }
.lob-results.show { display: block; animation: lobIn .14s ease-out; }
@keyframes lobIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.lob-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0;
  background: none; cursor: pointer; padding: 11px 12px; border-radius: 12px; font-family: inherit;
  font-size: .95rem; font-weight: 600; color: var(--ink); transition: background .12s; }
.lob-opt + .lob-opt { margin-top: 2px; }
.lob-opt:hover, .lob-opt:focus { background: linear-gradient(90deg, #FFF1F6, #FBF6F8); outline: none; }
.lob-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(252,24,110,.1); color: var(--brand); }
.lob-ic svg { width: 17px; height: 17px; }
.lob-name { flex: 1; line-height: 1.3; }
.lob-loading, .lob-empty { padding: 14px 12px; color: var(--muted); font-size: .9rem; }

/* Checkbox grid (closure retirement verification) */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.check-item {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line, #e2e8f0); background: #fff; cursor: pointer; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.check-item:hover { border-color: var(--brand, #2563eb); background: #f8fafc; }
.check-item input { width: 18px; height: 18px; accent-color: var(--brand, #2563eb); flex: none; }
.check-item:has(input:checked) { border-color: var(--brand, #2563eb); background: rgba(37,99,235,.06); }

.sb-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.sb-bell { width: 100%; cursor: pointer; border: none; background: transparent; font: inherit; text-align: left; }
.sb-bell.on { color: #6ee7b7; }
.sb-bell.on svg { color: #6ee7b7; }
.sb-bell.off { color: rgba(255,255,255,.5); }
.sb-logout {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 12px; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font: inherit; font-weight: 600; font-size: .92rem;
  transition: background .18s var(--ease);
}
.sb-logout:hover { background: rgba(255,255,255,.26); }
.sb-logout svg { width: 18px; height: 18px; flex: none; }

/* Mobile top bar + drawer overlay (hidden on desktop) */
.mtopbar { display: none; }
.sb-overlay { display: none; }

/* In-body page header + Back control (surfaced from the old top bar) */
.page-head { display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--brand-700); font-family: 'Lexend', sans-serif; font-weight: 700;
  font-size: .9rem; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.page-back:hover { background: var(--surface-2); border-color: var(--brand); }
.page-back svg { width: 17px; height: 17px; }
.page-head .ph-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.16rem; line-height: 1.15; color: var(--ink); }
.page-head .ph-sub { font-size: .84rem; color: var(--muted); }

@media (max-width: 860px) {
  body.has-sidebar { padding-left: 0; padding-top: var(--mtopbar-h); }
  .sidebar { transform: translateX(-100%); transition: transform .26s var(--ease); width: 272px; }
  .sidebar.open { transform: translateX(0); }
  .mtopbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; height: var(--mtopbar-h); z-index: 45; padding: 0 14px;
    background: linear-gradient(115deg, var(--brand) 0%, var(--brand-700) 75%, var(--brand-900) 100%);
    color: #fff; box-shadow: 0 4px 16px rgba(122,30,75,.22);
  }
  .mtopbar img { height: 32px; width: 32px; border-radius: 8px; background: #fff; padding: 3px; }
  .mtopbar-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1rem; }
  .mburger { background: rgba(255,255,255,.16); border: none; color: #fff; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
  .mburger svg { width: 22px; height: 22px; }
  .sb-overlay.show { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(20,18,26,.45); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px; margin: 18px 0;
}
.card h2 { margin: 0 0 4px; font-size: 1.24rem; font-weight: 700; }
.card .muted, .muted { color: var(--muted); }
.card .muted { font-size: .95rem; margin-top: 0; }

/* ---------- Fields ---------- */
.field { margin: 16px 0; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--ink); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder { color: #A7A3B0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(252,24,110,.14);
}
.field.invalid input, .field.invalid select { border-color: var(--err); background: #FFF8FA; }
.field-error { color: var(--err); font-size: .84rem; margin-top: 7px; display: none; font-weight: 500; }
.field.invalid .field-error { display: block; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 44px; }
.hint { font-size: .82rem; color: var(--muted); }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip {
  border: 1.5px solid var(--line-2); border-radius: 999px; padding: 10px 18px;
  cursor: pointer; font-size: .92rem; font-weight: 500; user-select: none;
  transition: all .16s var(--ease); background: #fff;
}
.radio-chip:hover { border-color: var(--accent); }
.radio-chip.selected { border-color: var(--brand); background: var(--surface-2); color: var(--brand-700); font-weight: 700; box-shadow: 0 0 0 3px rgba(252,24,110,.10); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700;
  font-family: 'Lexend', sans-serif; cursor: pointer; border: none; text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(252,24,110,.30); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 26px rgba(252,24,110,.38); }
.btn-primary:disabled { background: #F4A9C7; box-shadow: none; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--brand-700); border: 1.5px solid var(--line-2); }
.btn-secondary:hover { border-color: var(--accent); background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; margin-top: 22px; }
.btn-row .btn { flex: 1; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.badge-checking { background: var(--info-bg); color: #1D4ED8; }
.badge-compliance { background: var(--warn-bg); color: var(--warn); }
.badge-approved { background: var(--ok-bg); color: #15803D; }
.badge-denied { background: var(--err-bg); color: var(--err); }
.badge-default { background: #EEECF2; color: #5A5666; }

/* ---------- Step indicator ---------- */
.step-indicator { display: flex; gap: 6px; margin: 6px 0 6px; }
.step-dot { flex: 1; height: 7px; border-radius: 999px; background: var(--line-2); transition: background .3s var(--ease); }
.step-dot.done { background: var(--accent); }
.step-dot.active { background: var(--brand); box-shadow: 0 0 0 3px rgba(252,24,110,.15); }
.step-label { font-size: .82rem; color: var(--muted); margin-bottom: 10px; font-weight: 600; }

/* ---------- Business cards ---------- */
.biz-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); margin: 14px 0; transition: transform .15s var(--ease), box-shadow .18s var(--ease);
}
.biz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.biz-card .avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; font-weight: 800; font-family: 'Lexend'; flex: none; }
.biz-card .info { flex: 1; min-width: 0; }
.biz-card .name { font-weight: 700; }
.biz-card .id { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.link { color: var(--brand-600); text-decoration: none; font-weight: 700; }
.link:hover { text-decoration: underline; }
.error-banner { background: var(--err-bg); color: var(--err); border: 1px solid #F7C6D2; border-radius: var(--radius-sm); padding: 13px 15px; font-size: .92rem; font-weight: 500; display: none; margin: 14px 0; }
.error-banner.show { display: block; }
.empty { text-align: center; color: var(--muted); padding: 36px 14px; font-size: 1rem; }
.section { display: none; }
.section.active { display: block; animation: fadeUp .28s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= AUTH (login) split hero ================= */
.auth {
  min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr;
}
.auth-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #FF4E92 0%, var(--brand) 35%, var(--brand-700) 72%, var(--brand-900) 100%);
  padding: 56px 52px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-hero::before, .auth-hero::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09);
}
.auth-hero::before { width: 420px; height: 420px; right: -140px; top: -120px; }
.auth-hero::after { width: 300px; height: 300px; left: -110px; bottom: -90px; background: rgba(255,255,255,.06); }
.auth-hero .brandline { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.auth-hero .brandline img { height: 52px; width: 52px; border-radius: 14px; background: #fff; padding: 5px; box-shadow: var(--shadow); }
.auth-hero .brandline .n { font-family: 'Lexend'; font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.auth-hero .brandline .s { font-size: .85rem; opacity: .9; }
.auth-hero .headline { position: relative; z-index: 1; }
.auth-hero .headline h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.08; margin: 0 0 14px; }
.auth-hero .headline p { font-size: 1.08rem; opacity: .95; max-width: 34ch; margin: 0; }
.auth-hero .points { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: 8px; }
.auth-hero .point { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.auth-hero .point .ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.auth-hero .point .ic svg { width: 20px; height: 20px; }
.auth-hero .foot { position: relative; z-index: 1; font-size: .82rem; opacity: .8; }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .welcome { font-family: 'Lexend'; font-weight: 800; font-size: 1.7rem; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; }
.auth-mobile-brand { display: none; }

/* Responsive: stack on tablet/mobile */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-form { min-height: 100dvh; align-items: flex-start; padding-top: 0; }
  .auth-mobile-brand {
    display: flex; align-items: center; gap: 13px; width: 100%;
    background: linear-gradient(115deg, var(--brand), var(--brand-700) 75%, var(--brand-900));
    color: #fff; padding: 22px 20px; margin: 0 -28px 26px; box-shadow: 0 6px 20px rgba(122,30,75,.22);
  }
  .auth-mobile-brand img { height: 44px; width: 44px; border-radius: 12px; background: #fff; padding: 4px; }
  .auth-mobile-brand .n { font-family: 'Lexend'; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
  .auth-mobile-brand .s { font-size: .8rem; opacity: .92; }
  .auth-card { padding: 0 4px; }
}
/* ================= DASHBOARD — My Businesses ================= */
.dash-hero {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius);
  background: radial-gradient(120% 130% at 0% 0%, #FF4E92 0%, var(--brand) 38%, var(--brand-700) 78%, var(--brand-900) 100%);
  padding: 26px 26px 24px; margin: 18px 0 4px;
  box-shadow: var(--shadow-lg);
}
.dash-hero::before, .dash-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }
.dash-hero::before { width: 260px; height: 260px; right: -90px; top: -110px; }
.dash-hero::after { width: 170px; height: 170px; right: 40px; bottom: -110px; background: rgba(255,255,255,.07); }
.dash-hero .eyebrow { position: relative; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .88; margin-bottom: 8px; }
.dash-hero h1 { position: relative; z-index: 1; font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 1.72rem; line-height: 1.12; margin: 0 0 8px; }
.dash-hero p { position: relative; z-index: 1; margin: 0; font-size: 1rem; opacity: .95; max-width: 40ch; }

/* Prominent New Permit call-to-action */
.cta-new {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: linear-gradient(115deg, var(--brand) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
  color: #fff; border-radius: var(--radius); padding: 18px 20px; margin: 18px 0 6px;
  box-shadow: 0 12px 28px rgba(252,24,110,.30);
  transition: transform .14s var(--ease), box-shadow .2s var(--ease);
}
.cta-new:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(252,24,110,.40); }
.cta-new:active { transform: translateY(0); }
.cta-new .cta-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.20); display: grid; place-items: center; flex: none; }
.cta-new .cta-ic svg { width: 26px; height: 26px; }
.cta-new .cta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cta-new .cta-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.cta-new .cta-sub { font-size: .86rem; opacity: .9; }
.cta-new .cta-arrow svg { width: 22px; height: 22px; opacity: .9; }

.list-head { display: flex; align-items: center; gap: 10px; margin: 24px 2px 4px; }
.list-head h2 { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.12rem; margin: 0; }
.list-head .count { font-size: .78rem; font-weight: 700; color: var(--brand-700); background: var(--surface-2); border: 1px solid var(--line-2); padding: 2px 10px; border-radius: 999px; }

/* Business card polish (extends .biz-card) */
.biz-card { text-decoration: none; color: inherit; }
.biz-card .chev { color: var(--line-2); flex: none; transition: color .16s var(--ease), transform .16s var(--ease); }
.biz-card:hover .chev { color: var(--brand); transform: translateX(2px); }

/* Empty state */
.empty-state { text-align: center; padding: 40px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 14px 0; }
.empty-state .empty-ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--brand); }
.empty-state .empty-ic svg { width: 38px; height: 38px; }
.empty-state h3 { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.16rem; margin: 0 0 6px; }
.empty-state p { color: var(--muted); margin: 0 auto 20px; max-width: 34ch; }
.empty-state .btn { display: inline-flex; }

/* ================= WIZARD — New Business Permit ================= */
.wizard-progress {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 16px 18px; margin: 18px 0 4px;
}
.wizard-progress .wp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wizard-progress .wp-name { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.wizard-progress .step-label { margin: 0; }
.wizard-progress .step-indicator { margin: 0; }

/* Section step header: icon + title */
.step-head { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.step-head .step-ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-2), #fff); border: 1.5px solid var(--line-2); color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.step-head .step-ic svg { width: 24px; height: 24px; }
.step-head h2 { margin: 0; }
.section.card > .muted:first-of-type, .section.card .step-head + .muted { margin-top: 2px; }
.sub-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; }
.sub-head .sub-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--brand-700); }
.sub-head .sub-ic svg { width: 17px; height: 17px; }
.sub-head h2 { margin: 0 !important; font-size: 1.02rem !important; }

.section.card { padding-top: 22px; }
.btn-row { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 72%, rgba(245,246,250,0)); padding: 14px 0 6px; margin-top: 26px; z-index: 5; }

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

/* ---------- Business item actions (dashboard) ---------- */
.biz-item { margin: 14px 0; }
.biz-item .biz-card { margin: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.biz-actions { display: flex; gap: 0; border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: #fff; }
.pill-btn { flex: 1; text-align: center; padding: 11px; font-weight: 700; font-family: 'Lexend';
  font-size: .9rem; text-decoration: none; cursor: pointer; transition: background .15s var(--ease); }
.pill-btn.renew { color: var(--brand-700); border-right: 1px solid var(--line); }
.pill-btn.renew:hover { background: var(--surface-2); }
.pill-btn.close { color: var(--muted); }
.pill-btn.close:hover { background: #F7F5F9; color: var(--err); }

/* ---------- Simple sub-page shell (renew / closure / csm) ---------- */
.subpage { max-width: 560px; }
.rating-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-chip { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; font-weight: 700; cursor: pointer; font-family: 'Lexend'; transition: all .15s var(--ease); }
.rating-chip.selected { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px rgba(252,24,110,.28); }
.q-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-block:last-child { border-bottom: none; }
.q-block .q { font-weight: 600; margin-bottom: 10px; }
.success-hero { text-align: center; padding: 20px 8px; }
.success-hero .ic { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ok), #0E9F6E); color: #fff; }

/* clickable business card + detail view */
a.biz-card { text-decoration: none; color: inherit; }
a.biz-card .chev { color: var(--muted); flex: none; }
.detail-sec { margin: 18px 0; }
.detail-sec h3 { font-size: 1.02rem; margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 40% 60%; gap: 6px 10px; }
.kv .k { color: var(--muted); font-size: .9rem; }
.kv .v { font-weight: 600; font-size: .92rem; word-break: break-word; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-item:last-child { border-bottom: none; }
.doc-item .folder { font-size: .78rem; color: var(--muted); }
.insp-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.insp-item:last-child { border-bottom: none; }
.insp-item .dept { font-weight: 600; }

/* ================= Responsive (phones / small tablets) ================= */
@media (max-width: 560px) {
  .container { padding: 14px 12px 40px; }
  .card { padding: 18px; border-radius: 14px; }
  .app-header { padding: 12px 14px; gap: 10px; }
  .app-header img { height: 36px; width: 36px; }
  .app-header .title { font-size: .98rem; }
  .app-header .subtitle { font-size: .74rem; }
  .app-header a.logout, .app-header .logout { padding: 6px 12px; font-size: .8rem; }
  .card h2 { font-size: 1.12rem; }
  .auth-card .welcome { font-size: 1.45rem; }
  /* stack key/value in detail view */
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 8px; font-size: .82rem; }
  .kv .v { font-size: 1rem; }
  /* rating chips fit small screens */
  .rating-row { gap: 6px; }
  .rating-chip { width: 40px; height: 40px; font-size: .95rem; }
  /* buttons stack when cramped */
  .btn-row { flex-direction: column; }
  .btn { padding: 13px 18px; }
  .radio-chip { padding: 9px 15px; font-size: .88rem; }
  /* wizard nav stays usable */
  .field input, .field select, .field textarea { font-size: 16px; } /* avoid iOS zoom */
}
@media (max-width: 380px) {
  .rating-chip { width: 36px; height: 36px; }
  .auth-hero { padding: 40px 24px; }
}
/* dash hero + cta scale down */
@media (max-width: 560px) {
  .dash-hero { padding: 22px 18px !important; }
  .dash-hero h1 { font-size: 1.7rem !important; }
  .cta-new { padding: 16px !important; }
}

/* ---------- Document upload slots (add / replace / remove / compile) ---------- */
.doc-slot { margin-bottom: 20px; }
.doc-slot > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--ink-2); }
.doc-slot > label .req { color: var(--brand); }
.doc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; }
.doc-file {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.doc-file svg { width: 20px; height: 20px; flex: none; }
.doc-file-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-file-view { flex: none; color: var(--brand-600); font-weight: 700; font-size: .82rem; text-decoration: none; }
.doc-file-view:hover { text-decoration: underline; }
.doc-file-rm {
  flex: none; width: 27px; height: 27px; border-radius: 8px; border: none;
  background: var(--err-bg); color: var(--err); font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .16s var(--ease);
}
.doc-file-rm:hover { background: #F7C6D2; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-mini {
  padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff;
  color: var(--brand-700); font-family: 'Lexend', sans-serif; font-weight: 700; font-size: .82rem;
  cursor: pointer; transition: background .16s var(--ease), border-color .16s var(--ease);
}
.btn-mini:hover { background: var(--surface-2); border-color: var(--brand); }
.doc-compile { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }
.doc-status { margin-top: 7px; min-height: 1em; }

/* ================= Business detail — wide, compact layout ================= */
.container-wide { max-width: 1180px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-grid .card { margin: 0; padding: 20px; }
.detail-grid .span-2 { grid-column: 1 / -1; }
.card-h { margin: 0 0 14px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 9px; }
.count-pill { font-size: .72rem; font-weight: 800; background: var(--surface-2); color: var(--brand-700); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
/* compact key/value — two pairs per row on desktop */
.kv-cols { display: grid; grid-template-columns: minmax(96px,max-content) 1fr minmax(96px,max-content) 1fr; gap: 9px 18px; align-items: baseline; }
.kv-cols .k { color: var(--muted); font-size: .86rem; }
.kv-cols .v { font-weight: 600; font-size: .9rem; word-break: break-word; }

/* department chips (inspection + approvals) */
.dept-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dept-chip { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.dept-ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.dept-ic svg { width: 18px; height: 18px; }
.dept-nm { flex: 1; font-weight: 600; font-size: .9rem; }

/* documents gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.doc-tile { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; text-align: left; font: inherit; transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .12s var(--ease); }
.doc-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tile-thumb { position: relative; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile-thumb svg { width: 42px; height: 42px; }
.tile-ext { position: absolute; bottom: 7px; font-size: .64rem; font-weight: 800; letter-spacing: .5px; color: var(--muted); }
.tile-meta { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-folder { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-actions { position: static; background: none; padding: 0; display: flex; gap: 12px; max-width: 520px; margin: 26px auto 0; }
.detail-actions .act-btn { padding: 14px 16px; font-size: .96rem; border-radius: 14px; }
.detail-actions .act-btn svg { width: 18px; height: 18px; }

/* document viewer dialog */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,10,18,.74); backdrop-filter: blur(2px); }
.modal-panel { position: relative; z-index: 1; width: min(1040px, 94vw); height: min(88vh, 940px); background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.modal-x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--surface-2); color: var(--ink-2); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--err-bg); color: var(--err); }
.modal-body { flex: 1; overflow: auto; display: grid; place-items: center; background: var(--surface-2); }
.modal-body img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.modal-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-fallback { text-align: center; padding: 44px 24px; }
.viewer-fallback .vf-ic { position: relative; display: inline-grid; place-items: center; margin-bottom: 14px; }
.viewer-fallback .vf-ic svg { width: 64px; height: 64px; }
.viewer-fallback p { color: var(--muted); margin: 0 0 18px; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.modal-nav:hover { background: #fff; }
.modal-nav.prev { left: 12px; } .modal-nav.next { right: 12px; }

@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .span-2 { grid-column: auto; }
  .kv-cols { grid-template-columns: minmax(90px,max-content) 1fr; }
  .modal-panel { width: 96vw; height: 92vh; border-radius: 12px; }
}

/* documents grouped by type */
.doc-groups { display: flex; flex-direction: column; gap: 20px; }
.doc-group-h { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.doc-group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.doc-group-h .count-pill { flex: none; }

/* ================= Business detail — PREMIUM restyle ================= */
.detail-grid .card { box-shadow: 0 2px 4px rgba(20,18,26,.04), 0 10px 30px rgba(20,18,26,.05); border-color: #EFEDF3; border-radius: 18px; }

/* Hero summary banner */
.biz-hero {
  border-radius: 22px; padding: 26px 30px; margin-bottom: 18px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(255,101,139,.55) 0%, rgba(255,101,139,0) 46%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 56%, var(--brand-900) 100%);
  box-shadow: 0 18px 44px rgba(122,30,75,.30);
}
.biz-hero::after { content:""; position:absolute; right:-50px; top:-70px; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.08); }
.biz-hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; position:relative; z-index:1; }
.biz-eyebrow { text-transform:uppercase; letter-spacing:1.5px; font-size:.72rem; font-weight:700; opacity:.85; }
.biz-hero-name { font-family:'Lexend',sans-serif; font-weight:800; font-size:1.72rem; line-height:1.1; margin:7px 0 4px; }
.biz-hero-id { font-size:.9rem; opacity:.92; font-variant-numeric:tabular-nums; }
.biz-hero-stats { display:flex; flex-wrap:wrap; gap:14px 34px; margin-top:22px; position:relative; z-index:1;
  border-top:1px solid rgba(255,255,255,.16); padding-top:18px; }
.hstat { display:flex; flex-direction:column; gap:3px; }
.hstat-l { font-size:.7rem; text-transform:uppercase; letter-spacing:.7px; opacity:.82; }
.hstat-v { font-weight:700; font-size:1rem; font-variant-numeric:tabular-nums; }

/* premium status pill with dot */
.spill { display:inline-flex; align-items:center; gap:7px; padding:5px 12px 5px 11px; border-radius:999px; font-size:.7rem; font-weight:800; letter-spacing:.4px; text-transform:uppercase; white-space:nowrap; border:1px solid transparent; }
.spill-dot { width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(255,255,255,.3); }
.spill-ok   { background:var(--ok-bg);   color:#15803D; border-color:#BBF7D0; }
.spill-warn { background:var(--warn-bg); color:#B45309; border-color:#FDE3C7; }
.spill-bad  { background:var(--err-bg);  color:var(--err); border-color:#F7C6D2; }
.spill-wait { background:#EDF1F7; color:#475569; border-color:#E2E8F0; }

/* premium department rows */
.dept-grid { display:flex; flex-direction:column; gap:9px; }
.dept-row {
  display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:13px;
  background:#fff; border:1px solid var(--line); position:relative; overflow:hidden;
  transition: box-shadow .16s var(--ease), transform .12s var(--ease), border-color .16s var(--ease);
}
.dept-row::before { content:""; position:absolute; left:0; top:11px; bottom:11px; width:3px; border-radius:0 3px 3px 0; background:#CBD5E1; }
.dept-row.tone-ok::before   { background:#22C55E; }
.dept-row.tone-warn::before { background:#F59E0B; }
.dept-row.tone-bad::before  { background:var(--err); }
.dept-row:hover { box-shadow:0 6px 18px rgba(20,18,26,.07); transform:translateY(-1px); border-color:var(--line-2); }
.dept-ic { width:34px; height:34px; border-radius:10px; flex:none; display:grid; place-items:center; }
.dept-ic svg { width:18px; height:18px; }
.dept-ic.tone-ok   { background:var(--ok-bg);   color:#15803D; }
.dept-ic.tone-warn { background:var(--warn-bg); color:#B45309; }
.dept-ic.tone-bad  { background:var(--err-bg);  color:var(--err); }
.dept-ic.tone-wait { background:#EDF1F7; color:#64748B; }
.dept-nm { flex:1; font-weight:600; font-size:.92rem; }

/* progress indicator */
.card-h-row { display:flex; align-items:center; justify-content:space-between; }
.prog { height:7px; border-radius:999px; background:#EEF1F6; overflow:hidden; margin:2px 0 7px; }
.prog-bar { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--brand),var(--brand-600)); transition:width .5s var(--ease); }
.prog-meta { font-size:.76rem; color:var(--muted); font-weight:600; margin-bottom:15px; }

/* premium gallery tiles */
.doc-tile { border-radius:14px; box-shadow:0 1px 2px rgba(20,18,26,.04); }
.doc-tile:hover { box-shadow:0 10px 26px rgba(20,18,26,.10); }
.doc-group-h { color:var(--ink-2); }

/* department row remark (color-coded by tone) */
.dept-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dept-remark { font-size: .78rem; line-height: 1.35; font-weight: 500; }
.dept-remark.tone-ok   { color: #15803D; }
.dept-remark.tone-warn { color: #B45309; }
.dept-remark.tone-bad  { color: var(--err); }
.dept-remark.tone-wait { color: var(--muted); }

/* ================= Premium dashboard business cards ================= */
.biz-item {
  margin: 14px 0; background: #fff; border: 1px solid #EFEDF3; border-radius: 18px;
  box-shadow: 0 2px 4px rgba(20,18,26,.04), 0 10px 28px rgba(20,18,26,.05);
  overflow: hidden; transition: box-shadow .18s var(--ease), transform .14s var(--ease);
}
.biz-item:hover { box-shadow: 0 6px 12px rgba(20,18,26,.06), 0 18px 42px rgba(20,18,26,.09); transform: translateY(-2px); }
.biz-item .biz-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; margin: 0;
  border: none; border-radius: 0; background: transparent; box-shadow: none; text-decoration: none; color: inherit;
}
.biz-item .biz-card:hover { transform: none; box-shadow: none; }
.biz-card .avatar { width: 50px; height: 50px; border-radius: 15px; font-size: 1.15rem; box-shadow: 0 6px 14px rgba(252,24,110,.28); }
.biz-card .name { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-card .id { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.biz-actions { display: flex; gap: 10px; padding: 0 16px 16px; border: none; background: transparent; }
.act-btn {
  flex: 1 1 190px; display: inline-flex; align-items: center; justify-content: flex-start; gap: 13px;
  padding: 15px 18px; border-radius: 18px; font-family: 'Lexend', sans-serif; font-weight: 700;
  font-size: .98rem; line-height: 1.2; text-align: left; text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), filter .2s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
/* soft top sheen for depth */
.act-btn::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 46%; z-index: -1;
  background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,0)); pointer-events: none; }
.act-btn:active { transform: translateY(0) scale(.99); }
.act-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .16s var(--ease); }
.act-btn:hover .act-ic { transform: scale(1.06) rotate(-3deg); }
.act-ic svg { width: 20px; height: 20px; }
/* fallback: a bare svg (no .act-ic wrapper) must never stretch to fill the button */
.act-btn > svg { flex: 0 0 auto; width: 20px; height: 20px; }
.act-tx { display: block; }
.act-renew { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; box-shadow: 0 10px 22px rgba(252,24,110,.3); }
.act-renew:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(252,24,110,.42); }
.act-close { background: var(--surface-2); color: var(--brand-700); border: 1.5px solid var(--line-2); }
.act-close .act-ic { background: rgba(252,24,110,.1); box-shadow: none; }
.act-close:hover { transform: translateY(-2px); background: #fff; border-color: var(--brand); color: var(--brand); box-shadow: 0 12px 24px rgba(252,24,110,.14); }
/* Comply & Resubmit — amber call-to-action (matches the "For Compliance" tone) */
.act-comply { background: linear-gradient(135deg, #FBBF24, #E08A00); color: #fff; box-shadow: 0 10px 22px rgba(217,119,6,.3); }
.act-comply:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(217,119,6,.44); }
/* Edit business details — indigo, paired with Comply during compliance */
.act-edit { background: linear-gradient(135deg, #6366F1, #4F46E5); color: #fff; box-shadow: 0 10px 22px rgba(79,70,229,.3); }
.act-edit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(79,70,229,.44); }
/* Download issued permit — green success tone */
.act-permit { background: linear-gradient(135deg, #34D399, #059669); color: #fff; box-shadow: 0 10px 22px rgba(5,150,105,.3); }
.act-permit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(5,150,105,.44); }

/* dashboard hero illustration + section heading icon */
.hero-art { position: absolute; right: 6px; bottom: -6px; width: 200px; height: auto; opacity: .17; z-index: 0; pointer-events: none; }
.list-head h2 { display: flex; align-items: center; gap: 9px; }
.list-head h2 svg { width: 21px; height: 21px; color: var(--brand); flex: none; }
@media (max-width: 560px) { .hero-art { width: 132px; opacity: .13; } }

/* ---- Save as draft: banner, button, toast ---- */
.btn-draft { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-2); color: var(--brand-700); border: 1.5px solid var(--line-2); }
.btn-draft svg { width: 18px; height: 18px; }
.btn-draft:hover { background: #fff; border-color: var(--brand); color: var(--brand); }
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(79,70,229,.06));
  border: 1.5px solid rgba(99,102,241,.28); color: #3730A3; }
.draft-banner .db-text { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.draft-banner .db-text svg { width: 20px; height: 20px; flex: none; color: #4F46E5; }
.draft-banner .db-actions { display: flex; gap: 8px; }
.db-resume { background: #4F46E5; color: #fff; border: none; }
.db-resume:hover { background: #4338CA; }
.db-discard { background: transparent; color: #4F46E5; border: 1.5px solid rgba(99,102,241,.4); }
.db-discard:hover { background: rgba(99,102,241,.1); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 2000;
  background: #0F172A; color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* business-detail action buttons at the top (under the hero) */
.detail-actions-top { margin: 0 0 4px; max-width: 520px; }

/* dashboard business cards as a responsive premium grid (fills the width) */
#list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
#list .biz-item { margin: 0; height: 100%; display: flex; flex-direction: column; }
#list .biz-item .biz-card { flex: 1; }
#list .empty-state { grid-column: 1 / -1; }
.list-head { margin-top: 22px; }
@media (max-width: 720px) { #list { grid-template-columns: 1fr; } }

/* business card meta row (id + status pill) — grid-friendly */
.biz-card .meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 3px; }
.biz-card .meta .id { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.biz-card .meta .spill { font-size: .64rem; padding: 3px 9px 3px 8px; }

/* in the grid, let long business names wrap instead of truncating */
#list .biz-card .name { white-space: normal; overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
