/* ============================================================
   assets/css/app.css — 保險理賠 CRM v2
   Mobile-first, 深藍/白，字大按鈕大
   ============================================================ */

:root {
  --navy:      #1a2b4a;
  --navy-lt:   #2a4070;
  --blue:      #378add;
  --blue-lt:   #e6f1fb;
  --blue-dk:   #0c447c;
  --bg:        #f4f6fb;
  --card:      #ffffff;
  --border:    #dce2ec;
  --border-lt: #edf0f5;
  --text:      #1a2b4a;
  --muted:     #8a96a8;
  --success:   #27500a;
  --success-bg:#eaf3de;
  --warn:      #633806;
  --warn-bg:   #faeeda;
  --danger:    #a32d2d;
  --danger-bg: #fcebeb;
  --radius:    12px;
  --radius-sm: 8px;
  --navbar-h:  54px;
  --tabbar-h:  64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
               'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--navbar-h);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

/* ── 登入頁 ─────────────────────────────────────────────────── */
body.login-bg {
  padding: 0;
  background: linear-gradient(160deg, #12203a 0%, #1a2b4a 60%, #243d6a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-wrap { width: 100%; max-width: 400px; padding: 20px; }
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
}
.login-logo { margin-bottom: 14px; }
.login-title { font-size: 22px; font-weight: 600; color: var(--navy); }
.login-sub   { font-size: 14px; color: var(--muted); margin-top: 4px; margin-bottom: 28px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--navy);
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  gap: 10px;
}
.navbar-brand {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  text-decoration: none;
  flex: 1;
}
.nav-back-btn svg { flex-shrink: 0; }
.navbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-radius: 50%;
}
.nav-icon-btn.has-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: 0; right: 0;
  min-width: 17px; height: 17px;
  background: #e84444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}
.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* ── Tab Bar ────────────────────────────────────────────────── */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  background: #fff;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s;
}
.tab-item svg { stroke: currentColor; }
.tab-item.active { color: var(--navy); }
.tab-item.active svg { stroke: var(--navy); }

/* FAB 中央按鈕 */
.tab-fab { position: relative; }
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-top: -20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.fab-btn:active { transform: scale(.93); }

/* ── Main content ───────────────────────────────────────────── */
.main-content { min-height: calc(100vh - var(--navbar-h) - var(--tabbar-h)); }
.page-wrap    { padding: 14px 14px 24px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  overflow: hidden;
  margin-bottom: 12px;
}
.card-body    { padding: 14px; }
.card-title   { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.card-section { padding: 12px 14px; border-bottom: 0.5px solid var(--border-lt); }
.card-section:last-child { border-bottom: none; }

/* ── Search bar ─────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  height: 46px;
  gap: 10px;
  margin-bottom: 12px;
}
.search-bar svg { stroke: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  background: transparent;
}
.search-bar input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Filter chips ───────────────────────────────────────────── */
.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 0.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  text-decoration: none;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Client row ─────────────────────────────────────────────── */
.client-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 0.5px solid var(--border-lt);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}
.client-row:last-child { border-bottom: none; }
.client-row:active { background: #f8fafd; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avatar-lt { background: var(--blue-lt); color: var(--blue-dk); }

.client-name { font-size: 16px; font-weight: 500; line-height: 1.3; }
.client-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-wait { background: var(--warn-bg);    color: var(--warn); }
.badge-proc { background: var(--blue-lt);    color: var(--blue-dk); }
.badge-ok   { background: var(--success-bg); color: var(--success); }
.badge-err  { background: var(--danger-bg);  color: var(--danger); }
.badge-gray { background: #edf0f5;           color: var(--muted); }

/* ── Client detail hero ─────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 14px 16px 14px;
}
.hero-name  { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; }
.hero-sub   { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 3px; }
.hero-pill  {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #b5d4f4;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  margin-top: 7px;
}
.hero-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px 12px;
  background: var(--navy);
}

/* ── Quick action buttons ───────────────────────────────────── */
.quick-acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg);
}
.qa-btn {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qa-btn svg { stroke: var(--navy); width: 20px; height: 20px; }
.qa-btn.qa-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.qa-btn.qa-primary svg { stroke: #fff; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex;
  background: #fff;
  border-bottom: 0.5px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-link {
  flex-shrink: 0;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab-link.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ── Info rows ──────────────────────────────────────────────── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 0.5px solid var(--border-lt);
  background: #fff;
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 13px; color: var(--muted); }
.info-value { font-size: 14px; font-weight: 500; text-align: right; max-width: 60%; }
.info-value a { color: var(--blue); text-decoration: none; }

/* ── Timeline (service logs) ────────────────────────────────── */
.timeline { padding: 4px 14px 8px; }
.tl-item  { display: flex; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--border-lt); }
.tl-item:last-child { border-bottom: none; }
.tl-dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tl-dot svg { stroke: var(--blue-dk); width: 16px; height: 16px; }
.tl-meta    { font-size: 11px; color: var(--muted); }
.tl-content { font-size: 15px; line-height: 1.55; white-space: pre-wrap; margin-top: 4px; word-break: break-word; }

/* ── Reminder rows ──────────────────────────────────────────── */
.rem-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--border-lt);
  background: #fff;
}
.rem-row:last-child { border-bottom: none; }
.rem-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.rem-title{ font-size: 15px; font-weight: 500; }
.rem-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rem-done .rem-title { text-decoration: line-through; color: var(--muted); }
.check-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s;
}
.check-circle.done { background: var(--navy); border-color: var(--navy); }
.check-circle.done svg { display: block; }
.check-circle svg { display: none; stroke: #fff; width: 14px; height: 14px; }

/* ── Calendar ───────────────────────────────────────────────── */
.cal-nav   { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; background: #fff; border-bottom: 0.5px solid var(--border-lt); }
.cal-month { font-size: 17px; font-weight: 700; color: var(--navy); }
.cal-btn   { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--bg); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-btn svg { stroke: var(--navy); width: 16px; height: 16px; }

.cal-grid  { display: grid; grid-template-columns: repeat(7,1fr); background: #fff; padding: 0 8px 8px; }
.cal-dow   { text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px 0 4px; }
.cal-cell  { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-num   { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text); transition: background .12s; }
.cal-cell:active .cal-num { background: var(--blue-lt); }
.cal-cell.today .cal-num  { background: var(--navy); color: #fff; font-weight: 700; }
.cal-cell.selected .cal-num { background: var(--blue-lt); color: var(--blue-dk); font-weight: 600; }
.cal-cell.other .cal-num  { color: #c8cfd8; }
.cal-ev { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-top: 2px; }
.cal-cell.today .cal-ev  { background: #b5d4f4; }

.ev-date-head { font-size: 14px; font-weight: 600; color: var(--navy); padding: 10px 14px 6px; }
.ev-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 0.5px solid var(--border-lt); background: #fff; }
.ev-row:last-child { border-bottom: none; }
.ev-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ev-title{ font-size: 15px; font-weight: 500; flex: 1; }
.ev-meta { font-size: 12px; color: var(--muted); }

/* ── Documents ──────────────────────────────────────────────── */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 0.5px solid var(--border-lt); background: #fff; }
.doc-row:last-child { border-bottom: none; }
.file-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-icon svg { width: 20px; height: 20px; }
.fi-img   { background: #e6f1fb; } .fi-img   svg { stroke: #185fa5; }
.fi-pdf   { background: #fcebeb; } .fi-pdf   svg { stroke: #a32d2d; }
.fi-word  { background: #e6f1fb; } .fi-word  svg { stroke: #185fa5; }
.fi-excel { background: #eaf3de; } .fi-excel svg { stroke: #27500a; }
.fi-ppt   { background: #faeeda; } .fi-ppt   svg { stroke: #633806; }
.fi-other { background: #f4f6fb; } .fi-other svg { stroke: var(--muted); }
.doc-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Upload zone ────────────────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--blue);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  margin-bottom: 14px;
}
.upload-zone svg { stroke: var(--blue); width: 44px; height: 44px; margin-bottom: 8px; }
.upload-zone p  { font-size: 15px; font-weight: 500; color: var(--navy); }
.upload-zone small { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }

/* ── Log type buttons ───────────────────────────────────────── */
.log-types { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.log-types::-webkit-scrollbar { display: none; }
.log-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 58px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lt-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-lt); display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lt-icon svg { stroke: var(--blue-dk); width: 22px; height: 22px; }
.log-type-btn.active .lt-icon { background: var(--navy); }
.log-type-btn.active .lt-icon svg { stroke: #fff; }
.lt-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.log-type-btn.active .lt-label { color: var(--navy); font-weight: 700; }

/* ── Forms ──────────────────────────────────────────────────── */
.field         { margin-bottom: 16px; }
.field-label   { display: block; font-size: 14px; font-weight: 600; color: #555; margin-bottom: 6px; }
.field-label .req { color: #e84444; margin-left: 2px; }
.field-input, .field-select, .field-textarea {
  display: block; width: 100%;
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55,138,221,.12);
}
.field-textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.input-eye { position: relative; }
.input-eye .field-input { padding-right: 48px; }
.eye-btn {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .12s, transform .1s;
}
.btn:active { transform: scale(.97); opacity: .9; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.navbar .btn-outline { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-danger  { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bg); }
.btn-lg  { padding: 14px 24px; font-size: 17px; border-radius: var(--radius); min-height: 52px; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; flex-shrink: 0; }
.mt-4 { margin-top: 16px; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.alert-danger  { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }

/* ── Stat cards ─────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.stat-card  { background: #fff; border-radius: var(--radius); border: 0.5px solid var(--border); padding: 14px; }
.stat-dot   { width: 9px; height: 9px; border-radius: 50%; margin-bottom: 8px; }
.stat-num   { font-size: 28px; font-weight: 700; line-height: 1; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Section headers ────────────────────────────────────────── */
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.sec-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.sec-more  { font-size: 13px; color: var(--blue); text-decoration: none; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-state svg { stroke: var(--muted); opacity: .4; margin-bottom: 12px; }
.empty-state p   { font-size: 15px; }

/* ── Bottom sheet ───────────────────────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.sheet-overlay.show { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  z-index: 201;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32,0,.67,0);
}
.bottom-sheet.show { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 14px; }
.sheet-title  { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.sheet-grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sheet-item   { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--text); font-size: 12px; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.sheet-icon   { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.sheet-icon svg { stroke: #fff; width: 24px; height: 24px; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.si-blue  { background: var(--blue); }
.si-navy  { background: var(--navy); }
.si-red   { background: #c74444; }
.si-green { background: #3b7a2c; }

/* ── Responsive: 桌機側邊欄 ────────────────────────────────── */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tab-bar { display: none; }
  .main-content { margin-left: 220px; }
  /* 側邊欄由 header.php 注入 .sidebar 時使用 */
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast-wrap { position: fixed; top: calc(var(--navbar-h) + 10px); right: 14px; z-index: 999; display: flex; flex-direction: column; gap: 6px; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; min-width: 200px; animation: toastIn .25s ease; }
.toast.toast-ok   { background: #1a4d2e; }
.toast.toast-err  { background: #7a1f1f; }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
