/* ATAD Vendor Portal -- look and layout modelled on the Operon e-vendor portal
   (Aloshi's request, 25 Sept 2026): white sidebar with a logo card, green
   accent, page title bar, white content area with bordered cards, uppercase
   table headers, pill badges; light and dark themes via html[data-theme]. */
:root {
  --brand: #047857; --brand-2: #036549; --brand-3: #024834; --brand-soft: #E6F2EE; --brand-rgb: 4, 120, 87;
  --on-brand: #fff;
  --ink: #1A1A1A; --ink-2: #3A3A3A; --muted: #686868; --faint: #8a929c;
  --line: #e7ebf0; --line-2: #eef1f5; --field: #d7dde5; --field-hover: #bcc6d1;
  --bg: #f4f6fa; --card: #fff; --raised: #f7f9fb; --th: #fafbfc; --side: #fff;
  --warn: #c0392b; --warn-soft: #fdecec; --amber: #8a6508; --amber-soft: #fff6e0;
  --ok: #15803d; --ok-soft: #e7f6ec; --blue: #556b8a; --blue-soft: #eef2f7;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.10);
  --font: "Montserrat", "Gotham", "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --brand: #0b7a57; --brand-2: #5fd3a8; --brand-3: #b9ecd7; --brand-soft: #10271f; --brand-rgb: 11, 122, 87;
  --ink: #e8ecf2; --ink-2: #c4ccd8; --muted: #9aa3b3; --faint: #7d8799;
  --line: #2a3342; --line-2: #212834; --field: #384255; --field-hover: #4a5670;
  --bg: #0e131c; --card: #161e2b; --raised: #1c2535; --th: #1a2231; --side: #121925;
  --warn: #ff7367; --warn-soft: #3a1e1c; --amber: #e3ad44; --amber-soft: #352b13;
  --ok: #6fd99a; --ok-soft: #13301f; --blue: #6fa3d6; --blue-soft: #12203a;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 14px 38px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.2px; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 20px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 18px; margin: 0; }
.strong { font-weight: 700; }
.bad-t { color: var(--warn); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------------ splash */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 16px;
  border-radius: 9px; border: 1px solid transparent; background: var(--brand); color: var(--on-brand); font-weight: 700;
  font-size: 13.5px; cursor: pointer; text-decoration: none; transition: background .14s, box-shadow .14s; }
.btn:hover { background: var(--brand-3); text-decoration: none; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .28); }
html[data-theme="dark"] .btn:hover { background: #09694b; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.ghost, .btn.line { background: var(--card); color: var(--brand-2); border-color: var(--brand); }
.btn.ghost:hover, .btn.line:hover { background: var(--brand-soft); box-shadow: none; }
.btn.plain { background: transparent; color: var(--brand-2); border-color: transparent; }
.btn.plain:hover { background: var(--brand-soft); box-shadow: none; }
.btn.danger { background: var(--warn); color: #fff; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn svg { width: 15px; height: 15px; }
.btn:focus-visible, .icon-btn:focus-visible, .nav-a:focus-visible, .row-link:focus-visible, .chip-b:focus-visible, .switch:focus-within {
  outline: 3px solid rgba(var(--brand-rgb), .55); outline-offset: 2px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-2); }
.icon-btn svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------------ fields */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
input, select, textarea, .input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 9px;
  font-size: 14px; background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: border-color .14s, box-shadow .14s; }
textarea { resize: vertical; min-height: 84px; }
input:hover, select:hover, textarea:hover { border-color: var(--field-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; box-shadow: none; accent-color: var(--brand); }
.field.ro .ro-v { min-height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; background: var(--line-2);
  color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------------ layout */
.layout { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: 248px; flex: 0 0 248px; background: var(--side); border-right: 1px solid var(--line); display: flex;
  flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; box-shadow: 0 2px 12px rgba(16,24,40,.06); z-index: 30; }
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; margin: 12px 12px 6px;
  padding: 16px 12px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.side-brand .brand-img { width: 150px; height: auto; }
.side-sub { font-size: 11px; color: #024834; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-align: center; }
.side-nav { display: flex; flex-direction: column; padding: 14px 12px; gap: 3px; flex: 1; overflow-y: auto; }
.nav-a { color: var(--ink-2); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; display: flex;
  align-items: center; gap: 12px; white-space: nowrap; border: 1px solid transparent; text-decoration: none; min-height: 44px;
  transition: background .14s, color .14s, transform .14s; }
.nav-a .ic { width: 28px; height: 28px; display: inline-grid; place-items: center; flex: 0 0 28px; color: var(--muted); border-radius: 8px; }
.nav-a svg { width: 18px; height: 18px; }
.nav-a:hover { background: var(--brand-soft); color: var(--brand-2); text-decoration: none; transform: translateX(2px); }
.nav-a:hover .ic { color: var(--brand-2); }
.nav-a.on { background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .45), 0 6px 18px rgba(var(--brand-rgb), .40); }
.nav-a.on .ic { color: #fff; background: rgba(255,255,255,.20); }
.nav-a.on:hover { transform: none; }
.side-foot { padding: 12px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, transparent, rgba(var(--brand-rgb), .035)); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
.side-user div { display: flex; flex-direction: column; min-width: 0; }
.side-user b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { font-size: 11px; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; cursor: pointer; font-size: 12.5px;
  font-weight: 600; color: var(--ink-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 36px; height: 20px; border-radius: 999px; background: var(--field); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch .lbl { flex: 1; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--card); min-height: 100vh; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px;
  background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,24,40,.02); }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: relative; padding-left: 14px; }
.topbar-title h1::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: var(--brand); }
.menu-btn { display: none; }
.content-scroll { flex: 1; padding: 20px 22px 40px; }
.wrap { max-width: 1180px; }
.scrim { display: none; }

@media (max-width: 899px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10,14,22,.45); z-index: 25; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 14px; }
  .content-scroll { padding: 16px 14px 32px; }
}

/* intro line at the top of a screen */
.intro { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.intro .t { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.intro h2 { margin: 0; font-size: 20px; }
.intro p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 20px; }
.intro .hello { font-size: 13px; color: var(--muted); font-weight: 600; }
.intro .input { max-width: 320px; flex: 1 1 220px; }

/* ------------------------------------------------------------------ cards */
.panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel > h2, .card-head h2, .panel-head h2 { position: relative; padding-left: 13px; }
.panel > h2::before, .card-head h2::before, .panel-head h2::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px;
  border-radius: 2px; background: var(--brand); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { margin: 0; flex: 1; }
.panel.list { padding: 4px 0; }

.cards3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
@media (min-width: 820px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards3 .card { margin: 0; display: flex; flex-direction: column; gap: 6px; min-height: 110px; border-top: 3px solid var(--brand); border-radius: 16px; }
.card .k, .invite .k { font-size: 11.5px; font-weight: 600; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.card b { font-size: 17px; }
.card.soon { border-top-color: var(--amber); background: var(--amber-soft); }
.card.soon .k { color: var(--amber); }
.card .more { font-weight: 700; font-size: 13px; margin-top: 2px; }

/* ------------------------------------------------------------------ tables */
.tbl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 12px; border-bottom: 1px solid var(--line-2);
  font-size: 13.5px; align-items: center; }
.tr:last-child { border-bottom: 0; }
.tr:not(.th):hover { background: var(--raised); }
.tr.th { display: none; }
.tr .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .tr { grid-template-columns: 1.2fr 1fr 1.4fr 1fr 140px; }
  .tr.th { display: grid; background: var(--th); color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
}
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.pill.blue { background: var(--brand-soft); color: var(--brand-3); }
.pill.grey { background: var(--line-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--warn-soft); color: var(--warn); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip-b { border: 1px solid var(--field); background: var(--card); border-radius: 999px; padding: 0 14px; min-height: 36px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip-b:hover { border-color: var(--brand); color: var(--brand-2); }
.chip-b.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-3); }

.row-link { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 62px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-2); }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { background: var(--raised); text-decoration: none; }
.rl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rl-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-main small { font-size: 12px; color: var(--muted); }
.row-link svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.s { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.s.ok { color: var(--ok); } .s.warn { color: var(--amber); } .s.none { color: var(--muted); font-weight: 600; }

.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 960px) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span2 { grid-column: span 2; } }
.form-grid > h2 { margin: 0; }

.people-l { display: flex; flex-direction: column; margin-bottom: 14px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.p-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-name b { font-size: 14px; } .p-name small { font-size: 12px; color: var(--muted); }
.pl-act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.invite { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-2); }

.zoho { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 3px solid var(--brand); }
.zoho .z-t { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.zoho .z-t b { font-size: 15px; }
.zoho.off { border-top-color: var(--amber); }
.banner { border-radius: 12px; padding: 12px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; line-height: 20px; border: 1px solid transparent; }
.banner.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(21,128,61,.25); }
.banner.bad { background: var(--warn-soft); color: var(--warn); border-color: rgba(192,57,43,.25); }
.kv { display: flex; flex-direction: column; }
.kv-r { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv-r:last-child { border-bottom: 0; }
.kv-r span { color: var(--muted); } .kv-r b { text-align: right; }
.help-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.help-row:last-child { border-bottom: 0; }
.help-row svg { width: 22px; height: 22px; color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }
.help-row div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13.5px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.msg { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 12.5px; line-height: 18px; color: var(--muted); background: var(--raised);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; max-height: 180px; overflow: auto; }
.code-box { font-size: 28px; font-weight: 700; letter-spacing: 3px; text-align: center; padding: 16px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-3); user-select: all; }

/* ------------------------------------------------------------------ sign in */
.auth { display: flex; min-height: 100vh; min-height: 100dvh; background: var(--bg); position: relative; }
.auth-brand { flex: 1.1; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 7vh 5vw;
  background: radial-gradient(620px 380px at 78% 12%, rgba(255,255,255,.12), transparent 60%),
              linear-gradient(160deg, #0a7a58 0%, #055c43 55%, #03402f 100%);
  background-color: #055c43; }
.auth-brand::after { content: ""; position: absolute; right: -200px; bottom: -200px; width: 560px; height: 560px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.14); }
.auth-brand::before { content: ""; position: absolute; right: -110px; bottom: -110px; width: 380px; height: 380px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.10); }
.auth-brand-inner { position: relative; z-index: 1; max-width: 460px; display: flex; flex-direction: column; gap: 22px; }
.auth-logo-badge { align-self: flex-start; background: #fff; border-radius: 18px; padding: 16px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.auth-logo-badge img { width: 190px; height: auto; }
.auth-brand h1 { font-size: 30px; line-height: 38px; margin: 0; padding-left: 14px; border-left: 4px solid rgba(255,255,255,.55); }
.auth-brand p { margin: 0; font-size: 14.5px; line-height: 22px; color: rgba(255,255,255,.88); }
.auth-points { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.92); }
.auth-points span { display: flex; align-items: center; gap: 10px; }
.auth-points i { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.auth-copy { position: absolute; left: 5vw; bottom: 22px; font-size: 11.5px; color: rgba(255,255,255,.7); z-index: 1; }
.auth-form { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 18px; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px;
  box-shadow: var(--shadow-lg); border-top: 5px solid var(--brand); display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s; }
.login-card:hover { box-shadow: 0 0 0 1px rgba(var(--brand-rgb), .3), 0 0 30px rgba(var(--brand-rgb), .18), 0 18px 50px rgba(16,24,40,.14); }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.login-logo .logo-card { background: #fff; border-radius: 12px; padding: 8px 10px; }
.login-logo img { width: 170px; height: auto; }
.login-logo small { color: var(--ink-2); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
.login-badge { background: var(--brand-soft); color: var(--brand-3); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  margin: 2px auto 2px; width: fit-content; }
.login-switch { text-align: center; font-size: 12.5px; color: var(--muted); }
.login-switch a, .login-switch button { font-weight: 700; color: var(--brand-2); }
.login-switch button { all: unset; cursor: pointer; font-weight: 700; color: var(--brand-2); }
.login-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.auth-theme { position: absolute; top: 16px; right: 16px; z-index: 2; }
@media (max-width: 899px) {
  .auth { flex-direction: column; }
  .auth-brand { flex: 0 0 auto; padding: 36px 22px 44px; }
  .auth-brand h1 { font-size: 24px; line-height: 30px; }
  .auth-points, .auth-copy { display: none; }
  .auth-logo-badge img { width: 150px; }
  .auth-form { padding: 24px 16px 40px; align-items: flex-start; }
  .auth-theme .icon-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
}

/* ------------------------------------------------------------------ sheet + toasts */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10,14,22,.5); }
.sheet-panel { position: relative; background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; border-top: 5px solid var(--brand); box-shadow: var(--shadow-lg); }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 18px; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px 20px; }
.sheet-head h2 { margin: 0; font-size: 17px; flex: 1; }
.sheet-body { overflow: auto; padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-foot .btn { flex: 1; }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #1A1A1A; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; max-width: 480px; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: auto; }
.toast.bad { background: #8C1D18; } .toast.ok { background: #065f46; }
