/* =====================================================================
   WE Installment System - UI (mobile-first, no build step)
   Tenant colours arrive as --brand / --accent on :root.
   ===================================================================== */

:root {
    --brand: #0F5132;
    --accent: #C9A227;
    --brand-600: color-mix(in srgb, var(--brand) 88%, #000);
    --brand-50: color-mix(in srgb, var(--brand) 7%, #fff);
    --brand-100: color-mix(in srgb, var(--brand) 14%, #fff);
    --sidebar: color-mix(in srgb, var(--brand) 22%, #0B1220);

    --bg: #F4F6F9;
    --surface: #FFFFFF;
    --surface-2: #F9FAFB;
    --text: #101828;
    --text-2: #344054;
    --muted: #667085;
    --line: #E4E7EC;
    --line-2: #EEF0F3;

    --danger: #D92D20;  --danger-bg: #FEF3F2;  --danger-line: #FECDCA;
    --ok: #067647;      --ok-bg: #ECFDF3;      --ok-line: #ABEFC6;
    --warn: #B54708;    --warn-bg: #FFFAEB;    --warn-line: #FEDF89;
    --info: #175CD3;    --info-bg: #EFF8FF;    --info-line: #B2DDFF;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-lg: 0 12px 24px -6px rgba(16, 24, 40, .12), 0 4px 8px -4px rgba(16, 24, 40, .06);
    --topbar-h: 60px;
    --sidebar-w: 264px;
    font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    font-feature-settings: "cv11", "ss01";
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 600; }
small, .muted { color: var(--muted); }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .85em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- App shell ------------------------------------------------ */
.topbar {
    position: sticky; top: 0; z-index: 30;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: .75rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); min-width: 0; }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: var(--brand-50); }
.topbar .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: none; border: 1px solid var(--line); color: var(--text-2); cursor: pointer; }

.lang-pill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface-2); }
.lang-pill a { padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lang-pill a:hover { text-decoration: none; color: var(--text); }
.lang-pill a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.user-chip { display: flex; align-items: center; gap: .55rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex: none; }
.user-chip .who { display: none; line-height: 1.15; }
.user-chip .who strong { display: block; font-size: .85rem; }
.user-chip .who small { font-size: .72rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

.layout { display: flex; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
    width: var(--sidebar-w);
    background: var(--sidebar); color: #CBD2DC;
    transform: translateX(-100%); transition: transform .22s ease;
    overflow-y: auto; padding: 1rem .75rem 1.5rem;
    display: flex; flex-direction: column;
}
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar-head { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1rem; color: #fff; font-weight: 700; }
.sidebar-head img { width: 32px; height: 32px; border-radius: 8px; background: #fff; object-fit: contain; }
.sidebar .section { padding: 1rem .75rem .35rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8994A5; }
.sidebar a, .sidebar .nav-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .75rem; margin: 1px 0; border-radius: 9px;
    color: #CBD2DC; font-weight: 500; font-size: .92rem;
}
.sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.sidebar a.active { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar .nav-item { color: #6B7586; cursor: not-allowed; }
.sidebar .nav-item .badge { margin-left: auto; background: rgba(255, 255, 255, .06); color: #8994A5; }
.sidebar .grow { flex: 1; }
.sidebar-foot { padding: .75rem; font-size: .72rem; color: #6B7586; }
.scrim { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(16, 24, 40, .45); }
.sidebar.open ~ .scrim { display: block; }

.content { flex: 1; min-width: 0; padding: 1.1rem 1rem 2.5rem; max-width: 1240px; width: 100%; margin: 0 auto; }

@media (min-width: 700px) {
    .user-chip .who { display: block; }
}
@media (min-width: 1000px) {
    .menu-toggle, .topbar .brand { display: none; }
    .sidebar { position: sticky; top: 0; height: 100vh; transform: none; }
    .shell { display: flex; }
    .shell > .main { flex: 1; min-width: 0; }
    .layout { min-height: calc(100vh - var(--topbar-h)); }
    .content { padding: 1.75rem 2rem 3rem; }
    .scrim { display: none !important; }
}

/* ---------- Page header ---------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: .35rem; display: inline-flex; align-items: center; gap: .3rem; }
.crumb a { color: var(--muted); }

/* ---------- Cards ----------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); padding: 1.1rem 1.15rem; margin-bottom: 1rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -.1rem 0 .9rem; }
.card-head h2 { margin: 0; }
fieldset.card { margin-left: 0; margin-right: 0; }
fieldset.card > legend { float: left; width: 100%; padding: 0; margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 650; }
fieldset.card > legend + * { clear: both; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 > .card { margin-bottom: 0; } }

/* ---------- Stats ----------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-xs); position: relative; }
.stat .label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin-top: .15rem; }
.stat .stat-icon { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
a.stat { color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { text-decoration: none; border-color: var(--brand-100); box-shadow: var(--shadow); }

/* ---------- Buttons --------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem 1rem; min-height: 40px; border-radius: 10px;
    border: 1px solid var(--brand); background: var(--brand); color: #fff;
    font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
    box-shadow: var(--shadow-xs); transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-600); text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.btn.secondary { background: var(--surface); color: var(--text-2); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); box-shadow: none; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.small { padding: .3rem .7rem; min-height: 32px; font-size: .82rem; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }

/* ---------- Badges ---------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; background: #F2F4F7; color: #475467; white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.active { background: var(--ok-bg); color: var(--ok); }
.badge.suspended, .badge.provisioning_failed { background: var(--danger-bg); color: var(--danger); }
.badge.read_only, .badge.provisioning { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.soon { background: #F2F4F7; color: #667085; font-weight: 500; }
.badge.soon::before { display: none; }

/* ---------- Alerts ---------------------------------------------------- */
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid var(--info-line); background: var(--info-bg); color: #194185; font-size: .9rem; }
.alert.success { background: var(--ok-bg); color: #05603A; border-color: var(--ok-line); }
.alert.error { background: var(--danger-bg); color: #912018; border-color: var(--danger-line); }
.alert.warn { background: var(--warn-bg); color: #93370D; border-color: var(--warn-line); }

/* ---------- Forms ----------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: repeat(3, 1fr); } }
.field label { display: block; font-weight: 600; font-size: .84rem; color: var(--text-2); margin-bottom: .35rem; }
.field .help { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.field .error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
    width: 100%; padding: .6rem .75rem; min-height: 44px;
    border: 1px solid #D0D5DD; border-radius: 10px;
    font: inherit; font-size: .95rem; background: #fff; color: var(--text);
    box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 80px; }
input::placeholder, textarea::placeholder { color: #98A2B3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
input[readonly] { background: var(--surface-2); }
input[type=file] { width: 100%; font-size: .85rem; padding: .5rem; border: 1px dashed #D0D5DD; border-radius: 10px; background: var(--surface-2); }
input[type=file]::file-selector-button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .35rem .7rem; margin-right: .6rem; font: inherit; font-weight: 600; font-size: .8rem; cursor: pointer; }
input[type=color] { width: 64px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.checkbox { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .92rem; color: var(--text-2); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 650; padding: 0 .4rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.actions.end { justify-content: flex-end; }
.filters { display: grid; gap: .6rem; grid-template-columns: 1fr; padding: .8rem; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: center; } }

/* Option cards (radio) */
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); background: var(--brand-50); }
.choice.disabled { opacity: .55; cursor: not-allowed; }

/* Stepper */
.stepper { display: flex; gap: .5rem; margin-bottom: 1.1rem; counter-reset: step; overflow-x: auto; }
.stepper .step { flex: 1; min-width: 120px; display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .85rem; cursor: pointer; }
.stepper .step::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F2F4F7; color: var(--muted); font-size: .78rem; flex: none; }
.stepper .step.current { border-color: var(--brand); color: var(--text); box-shadow: 0 0 0 3px var(--brand-100); }
.stepper .step.current::before, .stepper .step.done::before { background: var(--brand); color: #fff; }
.stepper .step.done { color: var(--text-2); }
.step-pane[hidden] { display: none; }
details.more { border-top: 1px dashed var(--line); margin-top: 1rem; padding-top: .8rem; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: .9rem; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "– "; }
details.more > .form-grid { margin-top: .9rem; }

/* ---------- Tables ---------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 -1.15rem; }
.card > .table-wrap:first-child { margin-top: -.2rem; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
table.data th, table.data td { padding: .7rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
table.data tbody tr:hover td { background: #FCFCFD; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
    table.data.stack thead { display: none; }
    table.data.stack tr { display: block; border-bottom: 1px solid var(--line); padding: .55rem 0; }
    table.data.stack td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0; padding: .28rem 1.15rem; text-align: right; }
    table.data.stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8rem; text-align: left; }
    table.data.stack td:not([data-label])::before { content: none; }
}

/* ---------- Details list --------------------------------------------- */
dl.details { display: grid; grid-template-columns: 1fr; gap: .15rem 1rem; margin: 0; }
dl.details dt { color: var(--muted); font-size: .82rem; }
dl.details dd { margin: 0 0 .6rem; font-weight: 500; word-break: break-word; }
@media (min-width: 700px) { dl.details { grid-template-columns: 210px 1fr; row-gap: .55rem; } dl.details dd { margin: 0; } }

/* Summary figures (plan, money) */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: .7rem .8rem; }
.figure .k { font-size: .76rem; color: var(--muted); font-weight: 500; }
.figure .v { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.figure.hl { background: var(--brand-50); border-color: var(--brand-100); }
.figure.hl .v { color: var(--brand-600); font-size: 1.35rem; }

/* People / list rows */
.row-item { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.row-item:last-child { border-bottom: 0; }
.row-item .grow { flex: 1; min-width: 0; }
.thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.doc { border: 1px solid var(--line); border-radius: 10px; padding: .4rem; text-align: center; background: #fff; }
.doc img, .doc .ph { width: 100%; height: 100px; object-fit: cover; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-weight: 700; }

/* Tabs (segmented links) */
.tabs { display: flex; gap: .25rem; padding: .25rem; background: #EEF0F3; border-radius: 10px; overflow-x: auto; margin-bottom: 1rem; }
.tabs a { padding: .45rem .9rem; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .86rem; white-space: nowrap; }
.tabs a:hover { text-decoration: none; background: rgba(255, 255, 255, .6); }
.tabs a.active { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }

/* ---------- Pagination ----------------------------------------------- */
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1rem 0 0; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.pagination a:hover { text-decoration: none; background: var(--surface-2); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Empty state ---------------------------------------------- */
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty .icon { width: 36px; height: 36px; color: #98A2B3; margin-bottom: .5rem; }

/* ---------- Auth & public pages -------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-aside { display: none; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.1rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { display: block; margin: 0 0 1.2rem; max-height: 56px; max-width: 200px; object-fit: contain; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.auth-card .tagline { color: var(--muted); margin: 0 0 1.5rem; }
.auth-card .card { padding: 1.4rem; box-shadow: var(--shadow); }
.powered-by { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 1.5rem; }
.lang-switch { text-align: center; margin-top: .9rem; }
@media (min-width: 960px) {
    .auth-page { grid-template-columns: 1.05fr 1fr; }
    .auth-aside {
        display: flex; flex-direction: column; justify-content: space-between;
        padding: 2.5rem 3rem; color: #fff; position: relative; overflow: hidden;
        background:
            radial-gradient(1200px 500px at -10% 110%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%),
            radial-gradient(800px 400px at 110% -10%, rgba(255, 255, 255, .12), transparent 60%),
            linear-gradient(160deg, var(--brand) 0%, var(--sidebar) 100%);
    }
    .auth-aside .a-brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.1rem; }
    .auth-aside .a-brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: contain; }
    .auth-aside h2 { color: #fff; font-size: 2rem; line-height: 1.2; max-width: 460px; margin: 0 0 1rem; letter-spacing: -.02em; }
    .auth-aside p { color: rgba(255, 255, 255, .78); max-width: 440px; }
    .auth-aside ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
    .auth-aside li { display: flex; gap: .6rem; align-items: center; color: rgba(255, 255, 255, .9); }
    .auth-aside li .icon { color: var(--accent); }
    .auth-aside .a-foot { font-size: .8rem; color: rgba(255, 255, 255, .6); }
}

/* ---------- Print ----------------------------------------------------- */
@media print {
    .topbar, .sidebar, .scrim, .no-print { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ccc; }
}
@media (min-width: 960px) { .auth-card .logo { display: none; } }

/* ---------- Mobile refinements --------------------------------------- */
.lang-pill .short { display: none; }
.card-head { flex-wrap: wrap; }
@media (max-width: 699px) {
    .lang-pill .long { display: none; }
    .lang-pill .short { display: inline; }
    .topbar { gap: .5rem; padding: 0 .75rem; }
    .stepper { gap: .35rem; }
    .stepper .step { min-width: 0; flex-direction: column; text-align: center; gap: .3rem; padding: .55rem .3rem; font-size: .72rem; line-height: 1.2; }
    .page-head .actions { width: 100%; }
    h1 { font-size: 1.35rem; }
}
@media (max-width: 420px) { .topbar .brand span { display: none; } }
