/* =====================================================================
   Inventory workspace — design system matching the site's look
   (Tajawal, slate neutrals, indigo accent, white bordered cards).
   Everything is scoped under .iv; the workspace sits in the page flow
   under the site header.
   ===================================================================== */

.iv {
    --iv-panel: #ffffff;
    --iv-sub: #f8fafc;
    --iv-hover: #f8fafc;
    --iv-border: #f1f5f9;
    --iv-border-strong: #e2e8f0;
    --iv-border-input: #cbd5e1;
    --iv-text: #0f172a;
    --iv-text-2: #64748b;
    --iv-muted: #94a3b8;
    --iv-accent: #4f46e5;
    --iv-accent-hover: #4338ca;
    --iv-accent-bg: #eef2ff;
    --iv-accent-soft: rgba(79, 70, 229, 0.12);
    --iv-accent-text: #4338ca;
    --iv-ok-bg: #ecfdf5;
    --iv-ok-border: #a7f3d0;
    --iv-ok: #059669;
    --iv-warn-bg: #fffbeb;
    --iv-warn-border: #fde68a;
    --iv-warn: #d97706;
    --iv-bad-bg: #fff1f2;
    --iv-bad-border: #fecdd3;
    --iv-bad: #e11d48;
    --iv-dark: #0f172a;
    --iv-radius: 12px;
    --iv-radius-lg: 16px;

    display: block;
    color: var(--iv-text);
    font-family: 'Tajawal', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    padding-bottom: 8px;
}
.iv.hidden, .iv .iv-off { display: none !important; }
.iv *, .iv *::before, .iv *::after { box-sizing: border-box; }
/* zero-specificity resets so component classes always win */
:where(.iv) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.iv) input, :where(.iv) select, :where(.iv) textarea { font: inherit; color: inherit; }
.iv .ti { font-size: 18px; line-height: 1; }
.iv .num { font-variant-numeric: tabular-nums; }
.iv .ltr { direction: ltr; unicode-bidi: isolate; }
.iv .mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 12px; }
.iv .muted { color: var(--iv-muted); }
.iv .t2 { color: var(--iv-text-2); }
.iv .c-ok { color: var(--iv-ok); }
.iv .c-warn { color: var(--iv-warn); }
.iv .c-bad { color: var(--iv-bad); }
.iv .c-accent { color: var(--iv-accent); }
.iv .strong { font-weight: 700; color: var(--iv-text); }
.iv .small { font-size: 12.5px; }
.iv .xs { font-size: 11.5px; }
.iv .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv .row { display: flex; align-items: center; gap: 8px; }
.iv .spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iv .grow { flex: 1; min-width: 0; }
.iv .stack > * + * { margin-top: 14px; }
.iv .mt { margin-top: 14px; }
.iv .mb { margin-bottom: 14px; }
.iv .link { color: var(--iv-accent); font-size: 13px; font-weight: 600; }
.iv .link:hover { text-decoration: underline; }

/* ---------- top bar (in page, under the site header) ---------- */
.iv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.iv-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; margin-inline-end: 8px; }
.iv-brand .ti { display: none; }
.iv-search { position: relative; flex: 1; max-width: 580px; margin-inline: auto 0; }
.iv-search .ti-search { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--iv-muted); }
.iv-search input {
    width: 100%; height: 42px; padding: 0 38px 0 70px;
    border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius);
    background: var(--iv-panel); outline: none; font-size: 14px;
}
.iv-search input:focus { border-color: var(--iv-accent); box-shadow: 0 0 0 3px var(--iv-accent-soft); }
.iv-kbd { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--iv-muted); font-family: ui-monospace, monospace; direction: ltr; }
.iv-search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius);
    overflow: hidden; box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.iv-search-results button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; text-align: right; }
.iv-search-results button:hover, .iv-search-results button.on { background: var(--iv-accent-bg); }
.iv-user { display: none !important; }

/* ---------- buttons ---------- */
.iv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 16px; border-radius: var(--iv-radius);
    border: 1px solid var(--iv-border-input) !important; background: var(--iv-panel) !important;
    color: #334155 !important; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, box-shadow .15s;
}
.iv-btn:hover { background: var(--iv-sub) !important; }
.iv-btn:active { transform: scale(.98); }
.iv-btn.primary { background: var(--iv-accent) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 4px 10px rgba(79, 70, 229, .25); }
.iv-btn.primary:hover { background: var(--iv-accent-hover) !important; }
.iv-btn.dark { background: var(--iv-dark) !important; border-color: transparent !important; color: #fff !important; }
.iv-btn.danger { color: var(--iv-bad) !important; }
.iv-btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.iv-btn.lg { height: 50px; font-size: 15px; }
.iv-btn.block { width: 100%; }
.iv-btn[disabled] { opacity: .55; pointer-events: none; }
.iv-icon-btn {
    width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; color: #334155; background: var(--iv-panel) !important; border: 1px solid var(--iv-border-input) !important;
}
.iv-icon-btn:hover { background: #f1f5f9 !important; }
.iv-modal .iv-icon-btn, .iv-drawer .iv-icon-btn { border: 0 !important; width: 36px; height: 36px; color: var(--iv-muted); }

/* ---------- layout ---------- */
.iv-body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 24px; align-items: start; }
.iv-side {
    position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius-lg);
    padding: 8px;
}
.iv-nav-label { font-size: 11.5px; color: var(--iv-muted); padding: 14px 12px 4px; }
.iv-nav-item {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 12px; border-radius: 10px; color: #475569; text-align: right; font-size: 14px;
}
.iv-nav-item:hover { background: var(--iv-sub); color: var(--iv-text); }
.iv-nav-item.on { background: var(--iv-accent-bg); color: var(--iv-accent-text); font-weight: 700; }
.iv-nav-item .ti { font-size: 17px; }
.iv-nav-item .count { font-size: 12px; color: var(--iv-muted); }
.iv-nav-item.on .count { color: var(--iv-accent); }
.iv-nav-sub { padding-right: 14px; }
.iv-nav-sub .iv-nav-item { padding-block: 6px; font-size: 13px; }
.iv-dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; display: inline-block; }
.iv-main { min-width: 0; }

/* ---------- page header ---------- */
.iv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.iv-head h1 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.3; color: var(--iv-text); }
.iv-head .sub { font-size: 14px; color: var(--iv-text-2); margin-top: 2px; }
.iv-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-crumb { color: var(--iv-muted); font-weight: 500; }

/* ---------- metrics ---------- */
.iv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.iv-kpi { background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius); padding: 14px 16px; text-align: right; transition: border-color .15s, box-shadow .15s; }
.iv-kpi .label { font-size: 12.5px; color: var(--iv-text-2); }
.iv-kpi .value { font-size: 26px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--iv-text); }
.iv-kpi .value.c-warn { color: var(--iv-warn); }
.iv-kpi .value.c-bad { color: var(--iv-bad); }
.iv-kpi .value.c-accent { color: var(--iv-accent); }
.iv-kpi .value.c-ok { color: var(--iv-ok); }
button.iv-kpi:hover { border-color: var(--iv-border-input); box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.iv-kpi.on { border-color: var(--iv-accent); box-shadow: 0 0 0 1px var(--iv-accent); }

/* ---------- chips & pills ---------- */
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iv-chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--iv-border-strong) !important; font-size: 12.5px; font-weight: 700; color: #475569; display: inline-flex; align-items: center; gap: 5px; background: var(--iv-panel) !important; }
.iv-chip:hover { background: var(--iv-sub) !important; }
.iv-chip.on { background: var(--iv-dark) !important; color: #fff !important; border-color: var(--iv-dark) !important; }
.iv-chip.accent { background: var(--iv-accent) !important; color: #fff !important; border-color: transparent !important; }
.iv-chip.warn { background: var(--iv-warn-bg) !important; color: var(--iv-warn) !important; border-color: var(--iv-warn-border) !important; }
.iv-chip .n { opacity: .7; font-size: 11.5px; }
.iv-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.iv-pill.ok { background: var(--iv-ok-bg); color: var(--iv-ok); border-color: var(--iv-ok-border); }
.iv-pill.low { background: var(--iv-warn-bg); color: var(--iv-warn); border-color: var(--iv-warn-border); }
.iv-pill.out { background: var(--iv-bad-bg); color: var(--iv-bad); border-color: var(--iv-bad-border); }
.iv-pill.info { background: var(--iv-accent-bg); color: var(--iv-accent-text); border-color: #c7d2fe; }
.iv-pill.mute { background: #f1f5f9; color: var(--iv-text-2); border-color: var(--iv-border-strong); }
.iv-delta { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; border: 1px solid transparent; white-space: nowrap; }
.iv-delta.plus { background: var(--iv-ok-bg); color: var(--iv-ok); border-color: var(--iv-ok-border); }
.iv-delta.minus { background: var(--iv-bad-bg); color: var(--iv-bad); border-color: var(--iv-bad-border); }

/* ---------- toolbar ---------- */
.iv-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.iv-toolbar .iv-input { width: 280px; }
.iv-toolbar .end { margin-inline-start: auto; display: flex; gap: 8px; }

/* ---------- forms ---------- */
.iv-field { display: block; }
.iv-field > span { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 5px; }
.iv-input, .iv-select, .iv-textarea {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1px solid var(--iv-border-input); border-radius: var(--iv-radius);
    background: var(--iv-panel); outline: none; font-size: 14px;
}
.iv-select { padding-left: 28px; }
.iv-textarea { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.iv-input:focus, .iv-select:focus, .iv-textarea:focus { border-color: var(--iv-accent); box-shadow: 0 0 0 3px var(--iv-accent-soft); }
.iv-input.sm { height: 34px; font-size: 13px; border-radius: 10px; }
.iv-input.qty { width: 90px; text-align: center; }
.iv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- cards & lists ---------- */
.iv-card { background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius-lg); padding: 18px 20px; }
.iv-card-title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.iv-card-title .small { font-weight: 500; }
.iv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.iv-rows > * { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--iv-border); width: 100%; text-align: right; }
.iv-rows > *:last-child { border-bottom: 0; }
button.iv-row-btn { border-radius: 8px; }
button.iv-row-btn:hover .strong { color: var(--iv-accent); }
.iv-bar { height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.iv-bar > i { display: block; height: 100%; background: var(--iv-accent); border-radius: 999px; }
.iv-bar.warn > i { background: #f59e0b; }
.iv-empty { border: 1px dashed var(--iv-border-input); border-radius: var(--iv-radius-lg); padding: 48px 16px; text-align: center; color: var(--iv-text-2); background: var(--iv-panel); }
.iv-loading { padding: 48px 0; text-align: center; color: var(--iv-muted); }

/* ---------- table ---------- */
.iv-table-wrap { background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius-lg); overflow-x: auto; }
.iv-table { width: 100%; border-collapse: collapse; }
.iv-table th { font-weight: 500; font-size: 12px; color: var(--iv-muted); text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--iv-border-strong); white-space: nowrap; }
.iv-table td { padding: 12px 14px; border-bottom: 1px solid var(--iv-border); vertical-align: middle; }
.iv-table tr:last-child td { border-bottom: 0; }
.iv-table tbody tr.click { cursor: pointer; }
.iv-table tbody tr.click:hover { background: var(--iv-sub); }
.iv-table tbody tr.sel { background: var(--iv-accent-bg); }
.iv-table .c { text-align: center; }
.iv-table .name { font-weight: 700; color: var(--iv-text); }
.iv-table .meta { font-size: 11.5px; color: var(--iv-muted); font-family: ui-monospace, monospace; }
.iv-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--iv-accent); }
.iv-qs { display: inline-flex; border: 1px solid var(--iv-border-input); border-radius: 10px; overflow: hidden; background: var(--iv-panel); }
.iv-qs button { width: 34px; height: 30px; font-size: 16px; font-weight: 700; color: #334155; }
.iv-qs button + button { border-right: 1px solid var(--iv-border-input); }
.iv-qs button:first-child:hover { background: var(--iv-bad-bg); color: var(--iv-bad); }
.iv-qs button:last-child:hover { background: var(--iv-ok-bg); color: var(--iv-ok); }
.iv-foot { display: flex; justify-content: space-between; color: var(--iv-muted); font-size: 12px; margin-top: 10px; }
.iv-bulk { display: flex; align-items: center; gap: 6px; background: var(--iv-dark); color: #fff; border-radius: var(--iv-radius); padding: 8px 10px 8px 14px; margin-bottom: 12px; }
.iv-bulk button { color: #fff; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.08); }
.iv-bulk button:hover { background: rgba(255,255,255,.18); }

/* ---------- drawer ---------- */
.iv-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 44; }
.iv-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; width: 440px; max-width: 100%; z-index: 45;
    background: var(--iv-panel); display: flex; flex-direction: column; box-shadow: 10px 0 40px rgba(15, 23, 42, .2);
    animation: iv-slide .2s ease-out;
}
@keyframes iv-slide { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
.iv-drawer-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--iv-border-strong); }
.iv-drawer-head .strong { font-size: 17px !important; font-weight: 800; }
.iv-thumb { width: 56px; height: 56px; border-radius: var(--iv-radius); background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: var(--iv-muted); flex-shrink: 0; overflow: hidden; }
.iv-thumb img { width: 100%; height: 100%; object-fit: contain; }
.iv-thumb .ti { font-size: 26px; }
.iv-tabs { display: flex; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--iv-border-strong); overflow-x: auto; }
.iv-tab { padding: 12px 0 10px; color: var(--iv-text-2); border-bottom: 2px solid transparent !important; white-space: nowrap; border-radius: 0; font-weight: 500; }
.iv-tab.on { color: var(--iv-accent); border-bottom-color: var(--iv-accent) !important; font-weight: 700; }
.iv-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 22px; }
.iv-drawer-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px 14px; border-top: 1px solid var(--iv-border-strong); }
.iv-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.iv-stat { background: var(--iv-sub); border: 1px solid var(--iv-border); border-radius: var(--iv-radius); padding: 10px 12px; }
.iv-stat .label { font-size: 12px; color: var(--iv-text-2); }
.iv-stat .value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.iv-stat.ok { background: var(--iv-ok-bg); border-color: var(--iv-ok-border); }
.iv-stat.ok .label, .iv-stat.ok .value { color: var(--iv-ok); }
.iv-spark { display: flex; align-items: flex-end; gap: 6px; height: 64px; border-bottom: 1px solid var(--iv-border-strong); margin: 8px 0 6px; }
.iv-spark > i { flex: 1; background: var(--iv-accent); border-radius: 4px 4px 0 0; min-height: 3px; }
.iv-note { border-radius: var(--iv-radius); padding: 10px 12px; font-size: 13px; border: 1px solid transparent; }
.iv-note.warn { background: var(--iv-warn-bg); color: #92400e; border-color: var(--iv-warn-border); }
.iv-note.info { background: var(--iv-accent-bg); color: var(--iv-accent-text); border-color: #c7d2fe; }
.iv-note.bad { background: var(--iv-bad-bg); color: #9f1239; border-color: var(--iv-bad-border); }

/* ---------- modals / sheets ---------- */
.iv-modal-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.iv-modal {
    width: 100%; max-width: 470px; max-height: 90vh; overflow-y: auto;
    background: var(--iv-panel); border-radius: 18px; box-shadow: 0 25px 60px rgba(15, 23, 42, .3);
    animation: iv-pop .18s ease-out;
}
.iv-modal.wide { max-width: 800px; }
.iv-modal.mid { max-width: 620px; }
@keyframes iv-pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.iv-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.iv-modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.iv-modal-body { padding: 4px 20px 20px; }
.iv-modal-foot { padding: 14px 20px; border-top: 1px solid var(--iv-border-strong); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.iv-stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--iv-border-input); border-radius: var(--iv-radius-lg); padding: 6px; }
.iv-stepper button { width: 50px; height: 50px; border-radius: 12px; background: #f1f5f9; font-size: 24px; font-weight: 700; color: #334155; }
.iv-stepper button:hover { background: #e2e8f0; }
.iv-stepper input { width: 130px; border: 0; outline: none; text-align: center; font-size: 30px; font-weight: 800; background: transparent; font-variant-numeric: tabular-nums; }
.iv-info-strip { display: flex; justify-content: space-between; background: var(--iv-sub); border: 1px solid var(--iv-border); border-radius: var(--iv-radius); padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: var(--iv-text-2); }
.iv-line { display: flex; gap: 8px; align-items: flex-start; }
.iv-line + .iv-line { margin-top: 10px; }
.iv-x { width: 42px; height: 42px; color: var(--iv-muted); border-radius: 10px; flex-shrink: 0; }
.iv-x:hover { color: var(--iv-bad); background: var(--iv-bad-bg); }

.iv-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60;
    background: var(--iv-dark); color: #fff; border-radius: 12px; padding: 12px 18px;
    display: flex; gap: 16px; align-items: center; box-shadow: 0 12px 32px rgba(15, 23, 42, .3); font-size: 14px; font-weight: 500;
}
.iv-toast button { color: #fcd34d; font-weight: 800; }

/* ---------- mobile ---------- */
.iv-bottom-nav { display: none; }
.iv-hero { width: 100%; background: var(--iv-accent); color: #fff; border-radius: 20px; padding: 24px 16px; text-align: center; box-shadow: 0 10px 24px rgba(79, 70, 229, .3); }
.iv-hero .ti { font-size: 32px; }
.iv-hero .t { font-size: 18px; font-weight: 800; margin-top: 6px; }
.iv-hero .s { font-size: 12.5px; opacity: .85; }
.iv-mlist { background: var(--iv-panel); border: 1px solid var(--iv-border-strong); border-radius: var(--iv-radius-lg); overflow: hidden; }
.iv-mlist > * { display: flex; cursor: pointer; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; text-align: right; border-bottom: 1px solid var(--iv-border); }
.iv-mlist > *:last-child { border-bottom: 0; }
.iv-mlist > *:hover { background: var(--iv-sub); }

@media (max-width: 767px) {
    .iv { padding-bottom: 84px; }
    .iv-top { gap: 8px; margin-bottom: 16px; }
    .iv-brand { font-size: 20px; }
    .iv-search { order: 10; flex-basis: 100%; max-width: none; margin: 0; }
    .iv-kbd, .iv-hide-sm { display: none !important; }
    .iv-top .iv-btn:not(.iv-hide-sm) { margin-inline-start: auto; }
    .iv-body { grid-template-columns: minmax(0, 1fr); }
    .iv-side { display: none; }
    .iv-bottom-nav {
        display: grid; grid-template-columns: repeat(4, 1fr);
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 41;
        background: var(--iv-panel); border-top: 1px solid var(--iv-border-strong);
        padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(15, 23, 42, .05);
    }
    .iv-bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11.5px; color: var(--iv-muted); position: relative; }
    .iv-bottom-nav button .ti { font-size: 22px; }
    .iv-bottom-nav button.on { color: var(--iv-accent); font-weight: 700; }
    .iv-bottom-nav .badge { position: absolute; top: 3px; left: calc(50% - 22px); background: #f59e0b; color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; }
    .iv-head h1 { font-size: 22px; }
    .iv-toolbar .iv-input { width: 100%; }
    .iv-toolbar .end { margin-inline-start: 0; }
    .iv-cards { grid-template-columns: minmax(0, 1fr); }
    .iv-modal-scrim { align-items: flex-end; padding: 0; }
    .iv-modal, .iv-modal.wide, .iv-modal.mid { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; }
    .iv-drawer { width: 100%; }
    .iv-drawer-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .iv-grid2 { grid-template-columns: minmax(0, 1fr); }
    .iv-toast { bottom: 80px; }
}
