/**
 * WarehouseOS — Main Stylesheet
 * Core layout, components, and base styles
 * Version: 2.5.1
 */


  :root {
    --bg: #0a0c10;
    --surface: #111318;
    --surface2: #191d26;
    --border: #252b38;
    --accent: #00e5a0;
    --accent2: #0091ff;
    --warn: #ff7b3d;
    --danger: #ff3d5a;
    --text: #e8edf5;
    --text2: #7a8499;
    --text3: #4a5268;
    --mono: 'Space Mono', monospace;
    --sans: 'DM Sans', sans-serif;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    min-height: 100vh;
    display: flex;
  }

  /* Tombol opname di header - hanya untuk mobile */
  #header-opname-btn { display: none; }

  /* ─── LOGIN PAGE ───────────────────────────────────── */
  #login-page {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 0;
  }
  #login-page.hidden { display: none; }
  .login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%; max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
  .login-logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 28px;
  }
  .login-logo-icon {
    width: 36px; height: 36px;
    background: var(--accent); color: #000;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700; font-size: 16px;
  }
  .login-logo-text { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--text); }
  .login-logo-sub  { font-size: 11px; color: var(--text3); }
  .login-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
  .login-sub   { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
  .login-label { font-size: 11px; font-family: var(--mono); color: var(--text3); letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
  .login-input {
    width: 100%; padding: 11px 14px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text);
    font-size: 14px; font-family: var(--sans);
    outline: none; transition: border-color 0.2s;
    margin-bottom: 16px;
  }
  .login-input:focus { border-color: var(--accent); }
  .login-btn {
    width: 100%; padding: 13px;
    background: var(--accent); color: #000;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700;
    font-family: var(--mono); cursor: pointer;
    transition: all 0.2s; margin-top: 4px;
  }
  .login-btn:hover { background: #00ffb2; transform: translateY(-1px); }
  .login-err {
    background: rgba(255,61,90,0.1); border: 1px solid rgba(255,61,90,0.3);
    color: var(--danger); border-radius: 6px;
    padding: 10px 14px; font-size: 12px;
    margin-bottom: 14px; display: none;
  }
  .login-err.show { display: block; }
  .login-footer { margin-top: 20px; font-size: 11px; color: var(--text3); text-align: center; font-family: var(--mono); }

  /* User badge di sidebar */
  .user-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin: 0 12px 8px;
    background: rgba(0,229,160,0.06);
    border: 1px solid rgba(0,229,160,0.15);
    border-radius: 8px;
  }
  .user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 11px; font-weight: 700;
    flex-shrink: 0;
  }
  .user-name { font-size: 12px; font-weight: 600; color: var(--text); flex: 1; }
  .user-role { font-size: 10px; color: var(--text3); font-family: var(--mono); }
  .logout-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text3); font-size: 12px; padding: 4px;
    transition: color 0.2s;
  }
  .logout-btn:hover { color: var(--danger); }

  /* ─── SIDEBAR ─────────────────────────────────────── */
  aside {
    width: 240px;
    min-height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
  }
  .logo {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
  }
  .logo-icon {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700; font-size: 14px;
    color: #000;
  }
  .logo-text { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; }
  .logo-sub { font-size: 10px; color: var(--text3); font-family: var(--mono); letter-spacing: 0.08em; }

  nav { padding: 16px 0; flex:1; }
  .nav-section { padding: 0 12px 4px; font-size: 10px; color: var(--text3); font-family: var(--mono); letter-spacing: 0.12em; margin-top: 16px; margin-bottom: 4px; }
  .nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px;
    font-size: 13.5px; font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    margin: 1px 0;
  }
  .nav-item:hover { color: var(--text); background: var(--surface2); }
  .nav-item.active { color: var(--accent); background: rgba(0,229,160,0.07); border-left-color: var(--accent); }
  .nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
  .nav-badge { margin-left: auto; font-size: 10px; background: var(--danger); color: #fff; padding: 1px 6px; border-radius: 10px; font-family: var(--mono); }

  .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text3);
  }
  .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; box-shadow: 0 0 6px var(--accent); }

  /* ─── MAIN ────────────────────────────────────────── */
  main {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    background: var(--surface);
    position: sticky; top: 0; z-index: 10;
  }
  .header-title { font-family: var(--mono); font-size: 14px; font-weight: 700; flex:1; }
  .header-date { font-size: 12px; color: var(--text3); font-family: var(--mono); }
  .btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.15s;
  }
  .btn-primary { background: var(--accent); color: #000; }
  .btn-primary:hover { background: #00ffb3; }
  .btn-keluar { background: var(--danger) !important; color: #fff !important; }
  .btn-keluar:not(:disabled):hover { background: #ff6070 !important; }
  .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-danger { background: var(--danger); color: #fff; }

  /* ─── PAGES ───────────────────────────────────────── */
  .page { display: none; padding: 32px; animation: fadeIn 0.2s ease; }
  .page.active { display: block; }
  @keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }


/* ═══ SCAN & CAMERA ════════════════════════════════════ */
  /* ─── SCAN MODE ───────────────────────────────────────── */
  .scan-overlay {
    display: none; position: fixed; inset: 0;
    background: var(--bg); z-index: 500;
    flex-direction: column;
  }
  .scan-overlay.open { display: flex; }

  .scan-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    background: var(--surface); flex-shrink: 0;
  }
  .scan-mode-toggle {
    display: flex; background: var(--surface2);
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  }
  .scan-mode-btn {
    padding: 8px 20px; font-size: 13px; font-weight: 600;
    font-family: var(--mono); cursor: pointer; border: none;
    background: none; color: var(--text2); transition: all 0.15s;
  }
  .scan-mode-btn.active-masuk { background: rgba(0,145,255,0.2); color: var(--accent2); }
  .scan-mode-btn.active-keluar { background: rgba(255,61,90,0.2); color: var(--danger); }

  .scan-body {
    flex: 1; display: flex; gap: 0; overflow: hidden;
  }

  .scan-input-zone {
    width: 420px; flex-shrink: 0;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 28px 24px; gap: 16px;
  }
  .scan-label {
    font-size: 11px; font-family: var(--mono); letter-spacing: 0.12em;
    color: var(--text3); margin-bottom: 4px;
  }
  .scan-field {
    width: 100%; padding: 14px 16px;
    background: var(--surface2); border: 1.5px solid var(--border);
    border-radius: 8px; color: var(--text);
    font-family: var(--mono); font-size: 15px; outline: none;
    transition: border-color 0.15s;
  }
  .scan-field:focus { border-color: var(--accent2); }
  .scan-field.masuk:focus { border-color: var(--accent2); }
  .scan-field.keluar:focus { border-color: var(--danger); }

  .scan-result-box {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 14px 16px; min-height: 80px;
  }
  .scan-result-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
  .scan-result-meta { font-size: 12px; color: var(--text2); font-family: var(--mono); }

  .scan-qty-row { display: flex; gap: 8px; align-items: center; }
  .scan-qty-btn {
    width: 40px; height: 40px; border-radius: 6px;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text); font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.1s;
  }
  .scan-qty-btn:hover { border-color: var(--accent); color: var(--accent); }
  .scan-qty-input {
    flex: 1; padding: 10px; text-align: center;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 6px; color: var(--text);
    font-family: var(--mono); font-size: 18px; font-weight: 700; outline: none;
  }

  .scan-confirm-btn {
    width: 100%; padding: 14px; border-radius: 8px;
    font-size: 15px; font-weight: 700; cursor: pointer; border: none;
    font-family: var(--mono); letter-spacing: 0.06em;
    transition: all 0.15s; margin-top: 4px;
  }
  .scan-confirm-btn.masuk { background: var(--accent2); color: #fff; }
  .scan-confirm-btn.masuk:hover { background: #2fa8ff; }
  .scan-confirm-btn.keluar { background: var(--danger); color: #fff; }
  .scan-confirm-btn.keluar:hover { background: #ff6070; }
  .btn:disabled, .btn[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }
  .scan-confirm-btn:disabled { opacity: 0.35; cursor: not-allowed; }

  /* SN scan list dalam scan mode */
  .scan-sn-area {
    flex: 1; display: flex; flex-direction: column; gap: 6px;
    overflow-y: auto;
  }
  .scan-sn-chip {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: 6px;
    font-family: var(--mono); font-size: 12px;
    animation: snPop 0.15s ease;
  }
  @keyframes snPop { from{opacity:0;transform:scale(0.96)} to{opacity:1;transform:scale(1)} }
  .scan-sn-chip.masuk { background: rgba(0,145,255,0.1); border: 1px solid rgba(0,145,255,0.25); color: var(--accent2); }
  .scan-sn-chip.keluar { background: rgba(255,61,90,0.1); border: 1px solid rgba(255,61,90,0.25); color: var(--danger); }

  /* feed log kanan */
  .scan-feed {
    flex: 1; display: flex; flex-direction: column;
    padding: 16px; overflow-y: auto; gap: 8px;
  }
  .scan-feed-item {
    padding: 12px 16px; border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    animation: feedIn 0.2s ease;
  }
  @keyframes feedIn { from{opacity:0;transform:translateX(10px)} to{opacity:1;transform:translateX(0)} }
  .scan-feed-item.masuk { border-left: 3px solid var(--accent2); }
  .scan-feed-item.keluar { border-left: 3px solid var(--danger); }
  .scan-feed-nama { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
  .scan-feed-meta { font-size: 11px; color: var(--text3); font-family: var(--mono); }

  .scan-empty-feed {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    color: var(--text3);
  }
  .scan-empty-icon { font-size: 48px; opacity: 0.2; }

  .scan-dd-item {
    padding: 10px 14px; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
  }
  .scan-dd-item:last-child { border-bottom: none; }
  .scan-dd-item:hover, .scan-dd-item.active { background: var(--surface2); }

  /* toast notif */
  .scan-toast {
    position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 24px;
    font-size: 14px; font-weight: 600; font-family: var(--mono);
    z-index: 600; opacity: 0; transition: opacity 0.2s;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
  }
  .scan-toast.show { opacity: 1; }
  .scan-toast.ok  { border-color: var(--accent); color: var(--accent); }
  .scan-toast.err { border-color: var(--danger); color: var(--danger); }
  .scan-toast.warn{ border-color: var(--warn);   color: var(--warn); }

  /* ─── CAMERA SCAN ─────────────────────────────────────── */
  .cam-overlay {
    display: none; position: fixed; inset: 0;
    background: #000; z-index: 800;
    flex-direction: column; align-items: center; justify-content: center;
  }
  .cam-overlay.open { display: flex; }
  .cam-video-wrap {
    position: relative; width: 100%; max-width: 480px;
    aspect-ratio: 1; overflow: hidden;
  }
  #cam-video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cam-frame {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .cam-box {
    width: 65%; aspect-ratio: 1;
    border: 2px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.55);
  }
  .cam-line {
    position: absolute; width: 65%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: camScan 1.8s ease-in-out infinite;
  }
  @keyframes camScan {
    0%   { top: 17.5%; }
    50%  { top: 82.5%; }
    100% { top: 17.5%; }
  }
  .cam-header {
    width: 100%; max-width: 480px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; color: #fff;
  }
  .cam-title { font-family: var(--mono); font-size: 13px; font-weight: 700; }
  .cam-hint  { font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; margin-top: 14px; font-family: var(--mono); }
  .cam-btn-row { display: flex; gap: 12px; margin-top: 16px; }
  .cam-btn {
    padding: 10px 22px; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer; border: none;
    font-family: var(--mono);
  }

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM UX — Toast, Skeleton, Empty State, Confirm Modal, Undo
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Toast Container ─────────────────────────────────────────────── */
#wos-toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 10000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; max-width: 400px;
}
.wos-toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2, #161b2e);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 14px;
  font-size: 13px; font-family: var(--body);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: all; cursor: pointer;
  transform: translateX(120%); opacity: 0;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.25s;
  position: relative; overflow: hidden;
}
.wos-toast--show   { transform: translateX(0); opacity: 1; }
.wos-toast--hide   { transform: translateX(120%); opacity: 0; }
.wos-toast--success{ border-left: 3px solid var(--accent,#00e5a0); }
.wos-toast--error  { border-left: 3px solid var(--danger,#ff3d5a); }
.wos-toast--warn   { border-left: 3px solid var(--warn,#ff8a3d);   }
.wos-toast--info   { border-left: 3px solid var(--accent2,#0091ff);}
.wos-toast__icon   { font-size: 16px; flex-shrink: 0; }
.wos-toast__msg    { flex: 1; line-height: 1.5; }
.wos-toast__msg strong { color: var(--text, #eef0f6); }
.wos-toast__close  {
  background: none; border: none; color: var(--text3,#3d4460);
  cursor: pointer; padding: 2px 4px; border-radius: 4px;
  font-size: 12px; flex-shrink: 0;
  transition: color 0.2s;
}
.wos-toast__close:hover { color: var(--text,#eef0f6); }

/* Undo toast */
.wos-toast--undo { padding-bottom: 20px; }
.wos-toast__undo-btn {
  background: var(--accent,#00e5a0); color: #000;
  border: none; border-radius: 5px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: var(--mono); flex-shrink: 0;
  transition: background 0.2s;
}
.wos-toast__undo-btn:hover { background: #00ffb3; }
.wos-toast__timer-bar {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--warn,#ff8a3d); border-radius: 0 0 10px 10px;
  width: 100%;
}
.wos-toast__timer-bar.running {
  animation: toastTimer linear forwards;
}
@keyframes toastTimer { from { width: 100%; } to { width: 0%; } }

/* ── Confirm Modal ───────────────────────────────────────────────── */
.wos-modal-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.wos-modal-overlay.open { opacity: 1; pointer-events: all; }
.wos-modal-box {
  background: var(--surface, #0f1220);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 0; max-width: 460px; width: 90%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.wos-modal-overlay.open .wos-modal-box { transform: scale(1) translateY(0); }
.wos-modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wos-modal-title {
  font-family: var(--syne, 'Syne', sans-serif);
  font-size: 16px; font-weight: 700;
}
.wos-modal-body { padding: 16px 24px; font-size: 13px; color: var(--text2,#7a8299); line-height: 1.7; }
.wos-modal-foot {
  padding: 16px 24px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ── Skeleton Loading ────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-line, .skeleton-pill, .skeleton-btn, .skeleton-kpi-card, .skeleton-card {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
.skeleton-line  { height: 12px; display: block; margin: 4px 0; }
.skeleton-pill  { height: 20px; width: 64px; border-radius: 100px; }
.skeleton-btn   { height: 26px; width: 52px; border-radius: 6px; }
.skeleton-row td { padding: 10px 12px; }
.skeleton-kpi-card {
  border-radius: 12px; padding: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}
.skeleton-card {
  border-radius: 10px; padding: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px;
}

/* ── Empty State ─────────────────────────────────────────────────── */
.wos-empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center;
  min-height: 280px;
}
.wos-empty-icon    { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.wos-empty-title   { font-family: var(--syne,'Syne',sans-serif); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.wos-empty-subtitle{ font-size: 13px; color: var(--text2,#7a8299); max-width: 320px; line-height: 1.7; }

/* ── Spinner ─────────────────────────────────────────────────────── */
.wos-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(0,0,0,0.2); border-top-color: #000;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Role Badge (sidebar) ────────────────────────────────────────── */
#sidebar-role-badge {
  display: inline-block; font-size: 10px; font-family: var(--mono);
  padding: 3px 8px; border-radius: 100px;
  border: 1px solid; margin-top: 4px;
  font-weight: 700; letter-spacing: 0.05em;
  transition: all 0.3s;
}

/* ── Export/Import Modal ─────────────────────────────────────────── */
.export-option-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0;
}
.export-option-card {
  background: var(--surface2,#161b2e);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px 14px;
  cursor: pointer; transition: all 0.2s;
  text-align: center;
}
.export-option-card:hover { border-color: var(--accent,#00e5a0); transform: translateY(-1px); }
.export-option-card.active { border-color: var(--accent,#00e5a0); background: rgba(0,229,160,0.06); }
.export-option-icon  { font-size: 24px; margin-bottom: 8px; }
.export-option-label { font-size: 12px; font-weight: 600; font-family: var(--mono); }
.export-option-desc  { font-size: 11px; color: var(--text3,#3d4460); margin-top: 4px; }
#export-progress-bar { display: none; margin: 12px 0; }
.export-progress-inner {
  height: 4px; background: var(--border,rgba(255,255,255,0.07));
  border-radius: 2px; overflow: hidden;
}
.export-progress-fill {
  height: 100%; background: var(--accent,#00e5a0);
  animation: indeterminate 1.5s ease infinite;
  border-radius: 2px; width: 60%;
}
@keyframes indeterminate { 0%{transform:translateX(-100%)} 100%{transform:translateX(250%)} }
#export-progress-label { font-size: 11px; color: var(--text3); font-family: var(--mono); margin-top:6px; }

/* ── Import drop zone ────────────────────────────────────────────── */
.import-dropzone {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 12px; padding: 28px 16px;
  text-align: center; cursor: pointer;
  transition: all 0.2s; margin: 12px 0;
}
.import-dropzone:hover, .import-dropzone.dragover {
  border-color: var(--accent,#00e5a0);
  background: rgba(0,229,160,0.04);
}
.import-dropzone__icon  { font-size: 28px; margin-bottom: 10px; }
.import-dropzone__label { font-size: 13px; color: var(--text2); font-weight: 500; }
.import-dropzone__hint  { font-size: 11px; color: var(--text3); margin-top: 4px; font-family: var(--mono); }

/* ── Page transitions ────────────────────────────────────────────── */
.page { transition: opacity 0.18s ease, transform 0.18s ease; }

/* ── Mobile toast ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #wos-toast-container { left: 16px; right: 16px; bottom: 80px; max-width: 100%; }
  .wos-toast { transform: translateY(20px); }
  .wos-toast--show { transform: translateY(0); }
  .wos-toast--hide { transform: translateY(20px); }
  .export-option-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Btn danger ──────────────────────────────────────────────────── */
.btn-danger {
  background: var(--danger,#ff3d5a); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s;
  font-family: var(--mono);
}
.btn-danger:hover { background: #ff1a3a; }
