/* Rishi Enviro ERP — single stylesheet, no build step.
   Structure follows HRP's token + BEM approach (l-* layout, c-* components, u-* utilities),
   re-themed: sharper radii, restrained shadow, Rishi palette. */

:root {
  --primary: #1769AA;
  --primary-dark: #123B5D;
  --primary-soft: #E7F0F8;
  --accent: #28A66A;
  --accent-soft: #E5F5EC;
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --text: #14202B;
  --text-2: #4A5866;
  --muted: #7B8794;
  --border: #DDE3EA;
  --border-2: #EEF2F6;
  --danger: #C2392B;
  --danger-soft: #FBEAE8;
  --warning: #B7791F;
  --warning-soft: #FDF3E1;
  --info-soft: #EEF1F5;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(18, 59, 93, .06), 0 1px 1px rgba(18, 59, 93, .04);
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 68px;
  --topbar-h: 56px;
  --bottomnav-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Personal portal: green context, so it is obvious which portal you are in. */
.portal-personal { --primary: #1F8A57; --primary-dark: #145C3A; --primary-soft: #E5F5EC; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0 0 8px; }
img, svg { vertical-align: middle; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Layout ---------- */
.l-app { min-height: 100vh; }
.l-main { min-width: 0; transition: margin-left .18s ease; }
.l-content { padding: 16px; padding-bottom: calc(var(--bottomnav-h) + 24px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }
@media (min-width: 1024px) {
  .l-main { margin-left: var(--sidebar-w); }
  .is-collapsed .l-main { margin-left: var(--sidebar-w-collapsed); }
  .l-content { padding: 24px 28px 40px; }
}

/* ---------- Sidebar ---------- */
.c-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--primary-dark); color: #DCE6EF; display: flex; flex-direction: column; z-index: 40; transform: translateX(-100%); transition: transform .2s ease, width .18s ease; }
.is-open .c-sidebar { transform: none; }
@media (min-width: 1024px) {
  .c-sidebar { transform: none; }
  .is-collapsed .c-sidebar { width: var(--sidebar-w-collapsed); }
  .is-collapsed .c-sidebar__label, .is-collapsed .c-sidebar__section, .is-collapsed .c-sidebar__brand-text, .is-collapsed .c-portal-switch span { display: none; }
  .is-collapsed .c-sidebar__link, .is-collapsed .c-portal-switch { justify-content: center; padding-left: 0; padding-right: 0; }
}
.c-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; height: var(--topbar-h); font-weight: 600; color: #fff; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.c-sidebar__brand img { width: 30px; height: 30px; flex: none; }
.c-sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.c-sidebar__section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8FA6BA; padding: 14px 10px 4px; }
.c-sidebar__link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 10px; border-radius: var(--radius); color: #DCE6EF; font-size: 14px; }
.c-sidebar__link:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.c-sidebar__link.is-active { background: rgba(255,255,255,.13); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.c-sidebar__link svg { flex: none; opacity: .9; }
.c-sidebar__foot { border-top: 1px solid rgba(255,255,255,.08); padding: 8px; }
.c-portal-switch { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: var(--radius); background: rgba(255,255,255,.06); color: #fff; font-size: 13px; margin: 8px; }
.c-portal-switch:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.c-scrim { position: fixed; inset: 0; background: rgba(10, 25, 40, .45); z-index: 35; display: none; }
.is-open .c-scrim { display: block; }
@media (min-width: 1024px) { .is-open .c-scrim { display: none; } }

/* ---------- Topbar ---------- */
.c-topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 4px; padding: 0 8px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.c-topbar__title { flex: 1; min-width: 0; padding: 0 4px; }
.c-topbar__title h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-crumbs { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-crumbs a { color: var(--muted); }
.c-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--text-2); border-radius: var(--radius); cursor: pointer; flex: none; }
.c-iconbtn:hover { background: var(--border-2); color: var(--text); text-decoration: none; }
.c-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap; }
@media (max-width: 480px) { .c-topbar .c-pill { padding: 3px 8px; font-size: 11px; } }

/* ---------- Bottom nav (mobile) ---------- */
.c-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.c-bottomnav a, .c-bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bottomnav-h); font-size: 11px; color: var(--muted); background: none; border: 0; font-family: inherit; cursor: pointer; }
.c-bottomnav .is-active { color: var(--primary); font-weight: 600; }
.c-bottomnav a:hover { text-decoration: none; }
@media (min-width: 768px) { .c-bottomnav { display: none; } .l-content { padding-bottom: 32px; } }

/* ---------- Page header ---------- */
.c-pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.c-pagehead__sub { color: var(--text-2); font-size: 14px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.c-actions form { margin: 0; }

/* ---------- Cards / panels ---------- */
.c-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.c-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-2); }
.c-card__body { padding: 16px; }
.c-card__body--flush { padding: 0; }
.c-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .c-grid--2 { grid-template-columns: repeat(2, 1fr); } .c-grid--3 { grid-template-columns: repeat(3, 1fr); } .c-grid--main { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1024px) { .c-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.c-grid--stats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 1024px) { .c-grid--stats { grid-template-columns: repeat(4, 1fr); } }

.c-stat { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: inherit; box-shadow: var(--shadow); }
a.c-stat:hover { border-color: var(--primary); text-decoration: none; }
.c-stat__label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.c-stat__value { font-size: 20px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .c-stat { padding: 12px; } .c-stat__value { font-size: 16px; } .c-stat__label { font-size: 11px; } }
.c-stat__hint { font-size: 12px; color: var(--muted); }
.c-stat--danger .c-stat__value { color: var(--danger); }
.c-stat--accent .c-stat__value { color: var(--accent); }

/* Definition list for show pages */
.c-dl { display: grid; grid-template-columns: 1fr; gap: 10px 16px; margin: 0; }
@media (min-width: 640px) { .c-dl { grid-template-columns: repeat(2, 1fr); } }
.c-dl div { min-width: 0; }
.c-dl dt { font-size: 12px; color: var(--muted); }
.c-dl dd { margin: 0; word-break: break-word; }

/* ---------- Buttons ---------- */
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 14px/1.2 var(--font); cursor: pointer; white-space: nowrap; }
.c-btn:hover { border-color: #C5CFD9; text-decoration: none; background: #FAFBFC; }
.c-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.c-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.c-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.c-btn--accent:hover { background: #1F8A57; color: #fff; }
.c-btn--danger { color: var(--danger); }
.c-btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.c-btn--ghost { border-color: transparent; background: none; }
.c-btn--sm { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.c-btn--block { width: 100%; }
.c-btn[disabled], .c-btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Forms ---------- */
.c-form { display: grid; gap: 14px; }
.c-form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .c-form__row--2, .c-form__row--4 { grid-template-columns: repeat(2, 1fr); } .c-form__row--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .c-form__row--4 { grid-template-columns: repeat(4, 1fr); } }
.c-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 4px; }
.c-field .req { color: var(--danger); }
.c-input, .c-field input:not([type=checkbox]):not([type=radio]), .c-field select, .c-field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); font: 15px/1.4 var(--font); }
.c-field textarea { min-height: 88px; resize: vertical; }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus, .c-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.c-field.has-error input, .c-field.has-error select, .c-field.has-error textarea { border-color: var(--danger); }
.c-field__error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.c-field__hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.c-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.c-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.c-form__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 4px; }

/* Filters bar */
.c-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.c-filters > * { flex: 1 1 140px; }
.c-filters .c-input { min-height: 40px; padding: 7px 10px; font-size: 14px; }
.c-filters .c-btn { flex: 0 0 auto; min-height: 40px; }

/* ---------- Tables (become cards on phones) ---------- */
.c-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.c-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); background: #F8FAFC; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.c-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.c-table tr:last-child td { border-bottom: 0; }
.c-table tbody tr:hover { background: #FAFCFE; }
.c-table .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-table tfoot td { font-weight: 600; background: #F8FAFC; border-top: 1px solid var(--border); }
.c-table a.row-link { font-weight: 500; }
@media (max-width: 639px) {
  .c-table--stack thead { display: none; }
  .c-table--stack, .c-table--stack tbody, .c-table--stack tr, .c-table--stack td { display: block; width: 100%; }
  .c-table--stack tr { padding: 10px 14px; border-bottom: 1px solid var(--border-2); }
  .c-table--stack td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .c-table--stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  .c-table--stack td:first-child { font-size: 15px; justify-content: flex-start; text-align: left; padding-bottom: 4px; }
  .c-table--stack td:first-child::before { display: none; }
  .c-table--stack tfoot tr { background: #F8FAFC; }
}

/* ---------- Badges ---------- */
.c-badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; background: var(--info-soft); color: var(--text-2); white-space: nowrap; }
.c-badge--blue { background: var(--primary-soft); color: var(--primary-dark); }
.c-badge--green { background: var(--accent-soft); color: #17734A; }
.c-badge--amber { background: var(--warning-soft); color: #8A5A10; }
.c-badge--red { background: var(--danger-soft); color: var(--danger); }

/* ---------- Alerts / flash ---------- */
.c-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.c-alert--success { background: var(--accent-soft); color: #17633F; border-color: #BFE5D0; }
.c-alert--error { background: var(--danger-soft); color: #8E2A1F; border-color: #F1C7C1; }
.c-alert--warning { background: var(--warning-soft); color: #7A4E0C; border-color: #F1DDB5; }
.c-alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Empty state ---------- */
.c-empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
.c-empty svg { color: var(--muted); margin-bottom: 8px; }
.c-empty h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.c-empty p { font-size: 14px; margin-bottom: 14px; }

/* ---------- Progress (budget) ---------- */
.c-progress { height: 8px; background: var(--border-2); border-radius: 999px; overflow: hidden; min-width: 80px; }
.c-progress span { display: block; height: 100%; background: var(--accent); }
.c-progress--warn span { background: var(--warning); }
.c-progress--over span { background: var(--danger); }

/* ---------- Lists (timeline, simple rows) ---------- */
.c-list { list-style: none; margin: 0; padding: 0; }
.c-list li { padding: 12px 16px; border-bottom: 1px solid var(--border-2); display: flex; justify-content: space-between; gap: 12px; }
.c-list li:last-child { border-bottom: 0; }
.c-list__main { min-width: 0; }
.c-list__meta { font-size: 12px; color: var(--muted); }

/* Tabs */
.c-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.c-tabs a { padding: 10px 14px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.c-tabs a.is-active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.c-tabs a:hover { text-decoration: none; color: var(--text); }

/* Line items editor */
.c-items td { padding: 6px; vertical-align: middle; }
.c-items input, .c-items select { width: 100%; min-height: 40px; padding: 7px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: 14px var(--font); }
.c-items .col-desc { min-width: 220px; } .c-items .col-hsn { width: 96px; } .c-items .col-gst { width: 86px; } .c-items .col-qty { width: 90px; } .c-items .col-unit { width: 90px; } .c-items .col-rate { width: 130px; } .c-items .col-amt { width: 130px; } .c-items .col-x { width: 44px; }
@media (max-width: 639px) {
  .c-items thead { display: none; }
  .c-items, .c-items tbody, .c-items tr { display: block; }
  .c-items tr { display: grid; grid-template-columns: 1fr 1fr 1fr 44px; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
  .c-items td { padding: 0; width: auto !important; }
  .c-items td.col-desc { grid-column: 1 / -1; }
  .c-items td.col-amt { grid-column: 1 / 4; text-align: left; font-weight: 600; }
}
.c-totals { margin-left: auto; max-width: 340px; display: grid; gap: 6px; font-size: 14px; }
.c-totals div { display: flex; justify-content: space-between; gap: 16px; }
.c-totals .is-grand { font-size: 17px; font-weight: 600; border-top: 1px solid var(--border); padding-top: 8px; }

/* Auth */
.l-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, var(--primary-dark) 0, var(--primary-dark) 260px, var(--bg) 260px); }
.c-authcard { width: 100%; max-width: 400px; background: var(--surface); border-radius: 10px; box-shadow: 0 8px 30px rgba(18,59,93,.12); padding: 28px 24px; }
.c-authcard__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.c-authcard__brand img { width: 44px; height: 44px; }

/* Utilities */
.u-muted { color: var(--muted); } .u-small { font-size: 13px; } .u-danger { color: var(--danger); } .u-success { color: #17734A; } .u-warning { color: var(--warning); }
.u-mt { margin-top: 16px; } .u-mb0 { margin-bottom: 0; } .u-right { text-align: right; } .u-nowrap { white-space: nowrap; }
.u-pre { white-space: pre-line; } .u-hide-sm { } @media (max-width: 639px) { .u-hide-sm { display: none !important; } }
.u-flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.u-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Pagination */
.c-pager { display: flex; gap: 6px; justify-content: center; padding: 12px; flex-wrap: wrap; }
.c-pager a, .c-pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: 14px; }
.c-pager .is-current { background: var(--primary); color: #fff; border-color: var(--primary); }
.c-pager .is-disabled { color: var(--muted); }

/* Print */
@media print {
  .c-sidebar, .c-topbar, .c-bottomnav, .c-actions, .c-filters, .c-pager, .no-print { display: none !important; }
  .l-main { margin: 0 !important; } .l-content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 12px; } .c-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* ---------- Brand logo tiles ---------- */
.c-sidebar__brand img.c-sidebar__logo { background: #fff; border-radius: 8px; padding: 2px; }
.c-authcard__brand { justify-content: center; margin-bottom: 18px; }
.c-authcard__brand img { width: 220px; height: auto; }

/* ---------- Standalone (home-screen) safe areas: iOS notch / Android status bar ---------- */
.c-topbar { padding-top: env(safe-area-inset-top); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
.c-sidebar__brand { padding-top: calc(14px + env(safe-area-inset-top)); height: calc(var(--topbar-h) + env(safe-area-inset-top)); }
.l-content { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* ---------- Dummy data ticker ---------- */
.c-ticker { overflow: hidden; background: #FDF3E1; border-bottom: 1px solid #F1DDB5; color: #7A4E0C; font: 600 12px/1 var(--font); letter-spacing: .04em; white-space: nowrap; }
.c-ticker__track { display: inline-flex; gap: 48px; padding: 9px 0; animation: ticker 38s linear infinite; }
.c-ticker__track span::before { content: "●"; margin-right: 10px; color: #C2392B; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .c-ticker__track { animation: none; } }

/* ---------- Footer credit ---------- */
.c-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 0 8px; }
.c-footer a { color: var(--text-2); font-weight: 600; }
.c-footer--auth { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

/* ---------- Save to home screen prompt ---------- */
.c-install { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--bottomnav-h) + 12px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto;
  display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; box-shadow: 0 18px 40px -12px rgba(18,59,93,.35); animation: installIn .45s cubic-bezier(.16,1,.3,1); }
.c-install[hidden], .c-install-ios[hidden] { display: none; }
.c-install img { border-radius: 10px; border: 1px solid var(--border-2); }
.c-install__text strong { display: block; font-size: 15px; } .c-install__text span { font-size: 13px; color: var(--text-2); }
.c-install__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.c-install__actions .c-btn--primary { flex: 1; }
.c-install__done { grid-column: 1 / -1; background: none; border: 0; color: var(--muted); font: 12px var(--font); text-decoration: underline; cursor: pointer; padding: 0; justify-self: center; }
@media (min-width: 768px) { .c-install { bottom: 20px; left: auto; right: 20px; } }
.l-auth ~ .c-install, body.is-auth .c-install { bottom: calc(52px + env(safe-area-inset-bottom)); }
@keyframes installIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.c-install-ios { position: fixed; inset: 0; z-index: 70; background: rgba(10,25,40,.45); display: grid; align-items: end; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.c-install-ios__card { background: #fff; border-radius: 14px; padding: 20px; max-width: 420px; margin: 0 auto; width: 100%; }
.c-install-ios__card ol { padding-left: 20px; margin: 10px 0 16px; line-height: 1.8; }
.c-install-ios__card svg { vertical-align: -3px; color: #1769AA; }
@media print { .c-ticker, .c-install, .c-footer { display: none !important; } }

/* ---------- Password show / hide ---------- */
.c-pass { position: relative; }
.c-pass input { padding-right: 48px !important; }
.c-pass__eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.c-pass__eye:hover { color: var(--text); }
