/* ============================================================
   BIOSYNEXIS — Platform (app.biosynexis.com)
   High-fidelity prototype · design system
   ============================================================ */
:root {
  --navy: #07111F;
  --navy-2: #0B1A2E;
  --navy-3: #10233B;
  --blue: #1565FF;
  --cyan: #00A8FF;
  --ice: #EAF4FF;
  --white: #FFFFFF;
  --gray: #F5F7FA;
  --gray-2: #EEF2F7;

  --ink: #0C1826;
  --ink-soft: #46566A;
  --ink-muted: #7688A0;
  --line: #E6ECF3;
  --line-soft: #EFF3F8;

  --grad: linear-gradient(120deg, var(--blue), var(--cyan));

  --green: #0a7d3f;    --green-bg: #E3F6EC;
  --amber: #A5670A;    --amber-bg: #FFF2DA;
  --red:   #C0392B;    --red-bg:   #FDE9E7;
  --blue-bg: var(--ice);
  --violet: #6A5AE0;   --violet-bg: #EDEBFB;

  --sidebar-w: 248px;
  --topbar-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(7,17,31,0.05), 0 3px 12px rgba(7,17,31,0.05);
  --shadow-md: 0 10px 30px rgba(7,17,31,0.10);
  --shadow-lg: 0 24px 60px rgba(7,17,31,0.18);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--gray);
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2.5px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--navy); color: #cddcf0; position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  display: flex; flex-direction: column; z-index: 40; border-right: 1px solid rgba(255,255,255,0.06);
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; height: var(--topbar-h); }
.sb-brand .logo { filter: drop-shadow(0 2px 8px rgba(0,168,255,.35)); }
.sb-brand .name { font-family: var(--display); font-weight: 800; font-size: 1.16rem; color: #fff; letter-spacing: .02em; }
.sb-brand .name span { color: var(--cyan); }

.sb-scroll { flex: 1; overflow-y: auto; padding: 12px 12px 8px; }
.sb-section-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #62789a; padding: 16px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: #b6c7de; font-size: .92rem; font-weight: 500; margin-bottom: 2px; position: relative;
  transition: background .18s, color .18s;
}
.nav-item .ic { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active { background: linear-gradient(120deg, rgba(21,101,255,.22), rgba(0,168,255,.14)); color: #fff; box-shadow: inset 0 0 0 1px rgba(0,168,255,.28); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-item .badge { margin-left: auto; background: var(--grad); color: #fff; font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.nav-item.cta { background: var(--grad); color: #fff; font-weight: 600; margin-top: 8px; box-shadow: 0 8px 20px rgba(21,101,255,.3); }
.nav-item.cta:hover { transform: translateY(-1px); }

.sb-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.client-switch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.04); }
.client-switch .avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: .8rem; flex-shrink: 0; }
.client-switch .cs-info { min-width: 0; }
.client-switch .cs-name { font-size: .82rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-switch .cs-sub { font-size: .68rem; color: #7f95b4; }
.client-switch .chev { margin-left: auto; color: #7f95b4; }

/* ---------- Main / Topbar ---------- */
.main { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 26px;
}
.hamburger { display: none; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; }
.tb-title { font-family: var(--display); font-weight: 700; font-size: 1.06rem; }
.tb-crumb { color: var(--ink-muted); font-size: .82rem; font-weight: 500; }
.tb-search { margin-left: auto; position: relative; }
.tb-search input { width: 260px; max-width: 40vw; padding: 9px 14px 9px 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--gray); font-size: .88rem; transition: .2s; }
.tb-search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21,101,255,.1); width: 300px; }
.tb-search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
.tb-icons { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; display: grid; place-items: center; color: var(--ink-soft); transition: .18s; }
.icon-btn:hover { background: var(--gray); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .6rem; font-weight: 700; display: grid; place-items: center; }
.icon-btn .dot.amber { background: var(--amber); }
.tb-profile { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.tb-profile .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.tb-profile .pf-name { font-size: .82rem; font-weight: 600; }
.tb-profile .pf-role { font-size: .68rem; color: var(--ink-muted); }

/* ---------- View container ---------- */
.view { padding: 26px; max-width: 1360px; width: 100%; margin: 0 auto; }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.view-head h1 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.view-head .sub { color: var(--ink-muted); font-size: .9rem; margin-top: 3px; display: flex; align-items: center; gap: 10px; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.pill-status .pd { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 12px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-muted); border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; transition: .18s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab .cnt { margin-left: 6px; font-size: .7rem; background: var(--gray-2); color: var(--ink-soft); padding: 1px 7px; border-radius: 999px; }
.tab.active .cnt { background: var(--ice); color: var(--blue); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: .88rem; padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent; transition: transform .16s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(21,101,255,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(21,101,255,.38); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: none; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--gray); color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 13px 24px; font-size: .96rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.panel-head .sub { font-size: .8rem; color: var(--ink-muted); }

.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.mb-18 { margin-bottom: 18px; }
.mb-22 { margin-bottom: 22px; }

/* KPI stat cards */
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ice); color: var(--blue); }
.kpi .kpi-ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.kpi .kpi-ic.green { background: var(--green-bg); color: var(--green); }
.kpi .kpi-ic.amber { background: var(--amber-bg); color: var(--amber); }
.kpi .kpi-ic.violet { background: var(--violet-bg); color: var(--violet); }
.kpi .kpi-num { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin-top: 14px; letter-spacing: -.02em; }
.kpi .kpi-lbl { font-size: .82rem; color: var(--ink-muted); margin-top: 6px; }
.kpi .kpi-trend { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.kpi .kpi-trend.up { background: var(--green-bg); color: var(--green); }
.kpi .kpi-trend.flat { background: var(--gray-2); color: var(--ink-soft); }

/* ============================================================
   TABLES
   ============================================================ */
.toolbar { display: flex; gap: 10px; padding: 16px 22px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.input, .select { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--gray); font-size: .85rem; color: var(--ink); transition: .18s; }
.input:focus, .select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21,101,255,.1); }
.input.search { padding-left: 34px; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); width: 15px; height: 15px; }
.toolbar .spacer { margin-left: auto; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
table.tbl th { text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: 13px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl th .sort { color: var(--line); margin-left: 4px; }
table.tbl td { padding: 14px 22px; font-size: .88rem; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.tbl tbody tr { transition: background .14s; }
table.tbl tbody tr:hover { background: var(--gray); }
table.tbl tbody tr:last-child td { border-bottom: none; }
.t-link { color: var(--blue); font-weight: 600; }
.t-strong { font-weight: 600; }
.t-muted { color: var(--ink-muted); }
.avatar-cell { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 30px; height: 30px; border-radius: 8px; background: var(--ice); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: .74rem; flex-shrink: 0; }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.gray { background: var(--gray-2); color: var(--ink-soft); }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.plain::before { display: none; }

.row-actions { display: flex; gap: 6px; }
.ico-act { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-soft); transition: .16s; }
.ico-act:hover { border-color: var(--blue); color: var(--blue); background: var(--ice); }

.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; font-size: .82rem; color: var(--ink-muted); flex-wrap: wrap; gap: 10px; }
.pager { display: flex; gap: 4px; }
.pager button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .82rem; color: var(--ink-soft); }
.pager button.active { background: var(--grad); color: #fff; border-color: transparent; }
.pager button:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

/* ============================================================
   DASHBOARD specifics
   ============================================================ */
.snapshot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.acct-card { padding: 22px; }
.acct-row { display: flex; gap: 24px; flex-wrap: wrap; }
.acct-metric { flex: 1; min-width: 120px; }
.acct-metric .lbl { font-size: .76rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.acct-metric .val { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin-top: 6px; }
.acct-metric .val.blue { color: var(--blue); }
.acct-metric .val.green { color: var(--green); }
.acct-divider { height: 1px; background: var(--line); margin: 20px 0; }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 8px; }
.mini-bars span { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 5px 5px 0 0; opacity: .9; transition: height .6s ease; }
.legend { display: flex; gap: 16px; font-size: .76rem; color: var(--ink-muted); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

.contact-line { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-soft); }
.info-row { display: flex; gap: 8px; font-size: .88rem; padding: 7px 0; }
.info-row .k { color: var(--ink-muted); min-width: 130px; }
.info-row .v { font-weight: 600; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,17,31,.5); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 860px; animation: pop .25s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--display); font-size: 1.15rem; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 1.1rem; }
.modal-close:hover { background: var(--gray); }
.modal-body { padding: 24px 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--gray); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.form-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.form-tab { padding: 10px 4px; margin-right: 18px; font-weight: 600; font-size: .9rem; color: var(--ink-muted); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.form-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fg { display: flex; flex-direction: column; }
.fg.col-span-2 { grid-column: span 2; }
.fg label { font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.fg label .req { color: var(--red); }
.fg label .opt { color: var(--ink-muted); font-weight: 400; }
.fg input, .fg select, .fg textarea { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--gray); font-size: .9rem; color: var(--ink); transition: .18s; width: 100%; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21,101,255,.1); }
.fg .hint { font-size: .74rem; color: var(--ink-muted); margin-top: 5px; }
.input-icon { position: relative; }
.input-icon .cal { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); pointer-events: none; }

/* Radios */
.radio-row { display: flex; gap: 22px; align-items: center; }
.radio { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; }
.radio input { width: 16px; height: 16px; accent-color: var(--blue); }

/* ============================================================
   SCHEDULE WIZARD
   ============================================================ */
.wizard-steps { display: flex; align-items: center; margin-bottom: 26px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); max-width: 720px; }
.wz-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--ink-muted); position: relative; }
.wz-step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--gray-2); color: var(--ink-soft); display: grid; place-items: center; font-size: .76rem; font-weight: 700; }
.wz-step.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(21,101,255,.28); }
.wz-step.active .n { background: rgba(255,255,255,.28); color: #fff; }
.wz-step.done { color: var(--green); }
.wz-step.done .n { background: var(--green-bg); color: var(--green); }
.partner-logos { display: flex; gap: 20px; align-items: center; padding: 4px 0 20px; }
.partner-logos .plogo { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; opacity: .5; }
.loc-card { display: flex; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: .18s; align-items: flex-start; }
.loc-card:hover { border-color: var(--blue); background: var(--ice); }
.loc-card.sel { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 3px rgba(21,101,255,.12); }
.loc-card .lc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.loc-card .lc-name { font-weight: 700; font-size: .94rem; }
.loc-card .lc-addr { font-size: .82rem; color: var(--ink-muted); margin-top: 2px; }
.loc-card .lc-meta { font-size: .76rem; color: var(--blue); font-weight: 600; margin-top: 6px; }
.pay-summary { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pay-summary .ps-row { display: flex; justify-content: space-between; padding: 14px 18px; font-size: .9rem; border-bottom: 1px solid var(--line-soft); }
.pay-summary .ps-row.total { font-family: var(--display); font-weight: 800; font-size: 1.05rem; background: var(--gray); border-bottom: none; }
.credit-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ice); border-radius: var(--radius); margin-bottom: 18px; }
.credit-box .cb-num { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--blue); }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 200; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; transform: translateY(120%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.toast.show { transform: none; }
.toast .tk { width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }

/* Empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-muted); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--line); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.backdrop { display: none; }
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .snapshot { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .3s ease; }
  .sidebar.open { transform: none; }
  .main { grid-column: 1; }
  .hamburger { display: block; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(7,17,31,.4); z-index: 35; }
  .tb-search { display: none; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .form-grid, .form-grid.cols-2 { grid-template-columns: 1fr; }
  .fg.col-span-2 { grid-column: auto; }
  .wizard-steps { flex-direction: column; border-radius: 16px; }
  .wz-step { width: 100%; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .view { padding: 16px; }
  .g-4 { grid-template-columns: 1fr; }
  .tb-profile .pf-info { display: none; }
}
