/* ProdPlan — visual system lifted directly from the Claude Design prototype
   (fonts, colors, spacing, component shapes). Converted from the prototype's inline
   style-object DSL to real CSS classes for a server-rendered EJS app. */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Inter Tight', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  background: #f4f5f7;
  color: #16181d;
  line-height: 1.5;
}
input, select, textarea, button { font-family: 'Inter Tight', sans-serif; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c7cbd1; border-radius: 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

:root {
  --shadow-xs: 0 1px 2px rgba(16,24,40,0.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,0.07), 0 1px 2px rgba(16,24,40,0.05);
  --shadow-md: 0 6px 16px rgba(16,24,40,0.08), 0 2px 5px rgba(16,24,40,0.05);
  --shadow-lg: 0 16px 36px rgba(16,24,40,0.14), 0 4px 12px rgba(16,24,40,0.07);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Focus ring: consistent, visible, accent-colored — replaces the browser default so keyboard
   focus reads as a deliberate part of the design rather than an unstyled leftover. */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-row:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.heading { font-family: 'Sora', sans-serif; font-weight: 700; }
.app-shell { display: flex; height: 100vh; width: 100%; overflow: hidden; }

/* Sidebar */
.sidebar { width: 224px; flex-shrink: 0; background: #fff; border-right: 1px solid #e3e6ea; box-shadow: 1px 0 0 rgba(16,24,40,0.02), var(--shadow-xs); display: flex; flex-direction: column; padding: 16px 0; position: relative; z-index: 3; }
.sidebar-brand { padding: 0 20px 16px 20px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #eef0f2; margin-bottom: 8px; }
.sidebar-brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 800; color: #1a1200; font-size: 14px; }
.sidebar-brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; flex: 1; overflow: auto; }
.nav-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: #55595f; transition: background-color 0.14s var(--ease), color 0.14s var(--ease); }
.nav-row:hover { background: #f1f2f4; color: #16181d; }
.nav-row.active { font-weight: 700; color: #16181d; background: #fff3dc; }
.nav-row.active:hover { background: #ffedcc; }
.nav-bar { width: 3px; height: 14px; border-radius: 2px; background: transparent; flex-shrink: 0; transition: background-color 0.14s var(--ease); }
.nav-row.active .nav-bar { background: var(--accent); }
.nav-text.locked { opacity: 0.55; }
.nav-badge { margin-left: auto; font-size: 10px; color: #b7bbc2; border: 1px solid #e3e6ea; border-radius: 4px; padding: 1px 5px; }
.sidebar-footer { padding: 12px 20px 0 20px; border-top: 1px solid #eef0f2; }
.scope-link { font-size: 11.5px; color: #6b7280; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.main-col { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar { height: 60px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #e3e6ea; box-shadow: var(--shadow-xs); position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 20px; }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.unit-pill, .notif-pill { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border: 1px solid #e3e6ea; border-radius: 7px; padding: 7px 11px; cursor: pointer; background: #fafafb; white-space: nowrap; transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease); }
.unit-pill:hover, .notif-pill:hover { background: #f1f2f4; border-color: #d7dbe0; }
.notif-pill { font-size: 12.5px; font-weight: 600; color: #3a3d43; background: #fff; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: #b42318; display: inline-block; box-shadow: 0 0 0 2px #fde8e8; }
.search-input { width: 280px; max-width: 32vw; padding: 8px 12px; border: 1px solid #e3e6ea; border-radius: 7px; font-size: 13px; outline: none; transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.dropdown-wrap { position: relative; }
.dropdown-panel { position: absolute; top: 40px; right: 0; width: 320px; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; opacity: 0; transform: translateY(-6px) scale(0.98); transition: opacity 0.14s var(--ease), transform 0.14s var(--ease); }
.dropdown-panel.open { opacity: 1; transform: translateY(0) scale(1); }
.dropdown-panel.left { left: 0; right: auto; top: 38px; width: 220px; }
.dropdown-row { padding: 8px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background-color 0.12s var(--ease); }
.dropdown-row:hover { background: #f6f7f9; }
.dropdown-row.selected { background: #fafafb; font-weight: 700; }
.dropdown-section-title { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px 6px; }
.notif-item-text { font-size: 12.5px; color: #16181d; font-weight: 500; line-height: 1.4; }
.notif-item-time { font-size: 11px; color: #94979e; margin-top: 3px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #eef0f2; display: flex; align-items: center; justify-content: center; color: #3a3d43; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background-color 0.14s var(--ease), box-shadow 0.14s var(--ease); }
.avatar:hover { background: #e3e6ea; box-shadow: var(--shadow-xs); }
.breadcrumb { padding: 16px 28px 0; font-size: 12px; color: #94979e; letter-spacing: 0.01em; }
.breadcrumb b { color: #3a3d43; font-weight: 600; }

main.page-main { flex: 1; overflow: auto; padding: 16px 28px 40px; position: relative; }

/* Cards / generic */
.card { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: var(--shadow-xs); }
.card-pad { padding: 18px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.page-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.3px; }
.section-title { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14.5px; letter-spacing: -0.1px; margin-bottom: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 17px 19px; box-shadow: var(--shadow-xs); }
.stat-label { font-size: 12px; color: #6b7280; margin-bottom: 10px; font-weight: 500; }
.stat-value { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.4px; }
.stat-sub { font-size: 11.5px; color: #94979e; margin-top: 5px; }

.exception-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; margin: 0 -8px; border-radius: 7px; border-top: 1px solid #f0f1f3; cursor: pointer; transition: background-color 0.12s var(--ease); }
.exception-row:hover { background: #fafbfc; }
.exception-row:first-child { border-top: none; }
.exception-left { display: flex; align-items: center; gap: 12px; }
.exception-title { font-size: 13px; font-weight: 600; }
.exception-detail { font-size: 12px; color: #94979e; margin-top: 2px; }
.exception-open { font-size: 12px; color: var(--accent); font-weight: 600; }

.wc-load-row { margin-bottom: 12px; }
.wc-load-row:last-child { margin-bottom: 0; }
.wc-load-labels { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.wc-load-labels span:first-child { font-weight: 600; }
.wc-load-labels span:last-child { color: #6b7280; }
.wc-load-track { height: 8px; background: #f0f1f3; border-radius: 4px; overflow: hidden; }
.wc-load-fill { height: 100%; }

/* Chips */
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 5px; white-space: nowrap; display: inline-block; }
.chip-queued { background: #f1f2f4; color: #55595f; }
.chip-in-progress { background: #eaf1ff; color: #1d4ed8; }
.chip-on-hold { background: #fff4e0; color: #92620a; }
.chip-completed { background: #e8f7ee; color: #157347; }
.chip-on-track { background: #e8f7ee; color: #157347; }
.chip-at-risk { background: #fff4e0; color: #92620a; }
.chip-delayed { background: #fde8e8; color: #b42318; }
.chip-blocked { background: #fde8e8; color: #b42318; }
.chip-shortfall { background: #fde8e8; color: #b42318; }
.chip-available { background: #e8f7ee; color: #157347; }
.chip-urgent, .chip-high { background: #fde8e8; color: #b42318; }
.chip-medium { background: #fff4e0; color: #92620a; }
.chip-low { background: #eef4fb; color: #2563a8; }
.chip-active { background: #e8f7ee; color: #157347; }
.chip-down { background: #fde8e8; color: #b42318; }
.chip-invited { background: #fff4e0; color: #92620a; }

/* Buttons */
.btn { font-size: 12.5px; font-weight: 600; padding: 9px 14px; border-radius: 7px; border: 1px solid #e3e6ea; background: #fff; cursor: pointer; color: #3a3d43; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow-xs); transition: background-color 0.12s var(--ease), box-shadow 0.12s var(--ease), border-color 0.12s var(--ease), transform 0.05s var(--ease); }
.btn:hover { background: #fafafb; border-color: #d7dbe0; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary { font-weight: 700; background: var(--accent); color: #1a1200; border: none; }
.btn-primary:hover { filter: brightness(0.97); box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }
.btn-flex { flex: 1; }
button.btn, button.btn-primary { font-family: 'Inter Tight', sans-serif; }

/* Filter chips */
.chip-toggle { padding: 7px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #e3e6ea; color: #94979e; background: #fff; transition: background-color 0.12s var(--ease), border-color 0.12s var(--ease), color 0.12s var(--ease); }
.chip-toggle:hover { border-color: #d7dbe0; color: #55595f; }
.chip-toggle.on { border-color: var(--accent); color: #16181d; background: #fff7ea; }
.pill-toggle { padding: 7px 13px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; background: #f1f2f4; color: #55595f; transition: background-color 0.12s var(--ease), color 0.12s var(--ease); border: none; }
.pill-toggle:hover { background: #e7e9ec; }
.pill-toggle.on { background: #16181d; color: #fff; }
.pill-toggle.on:hover { background: #16181d; }

.status-badge { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 7px; }
.status-draft { background: #fff4e0; color: #92620a; }
.status-published { background: #e8f7ee; color: #157347; }

/* Tables */
.table-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: var(--shadow-xs); overflow: hidden; }
.table-scroll { overflow: auto; }
.table-head, .table-row { display: grid; align-items: center; padding: 12px 16px; font-size: 12.5px; }
.table-head { padding: 11px 16px; background: #fafbfc; border-bottom: 1px solid #e3e6ea; font-size: 10.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; }
.table-row { border-bottom: 1px solid #f0f1f3; cursor: pointer; position: relative; box-shadow: inset 3px 0 0 transparent; transition: background-color 0.12s var(--ease), box-shadow 0.12s var(--ease); }
.table-row:hover { background: #fafbfc; box-shadow: inset 3px 0 0 var(--accent); }
.table-row:last-child { border-bottom: none; }
.table-empty { padding: 30px; text-align: center; color: #94979e; font-size: 13px; }

/* Empty states — used wherever a table/grid has nothing to show yet (new org, no data filed
   yet). Deliberately calm/informational, never phrased as an error. */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 48px 24px; text-align: center; }
.empty-state-icon { width: 38px; height: 38px; margin-bottom: 8px; color: #c7cbd1; }
.empty-state-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: #3a3d43; }
.empty-state-sub { font-size: 12.5px; color: #94979e; max-width: 340px; line-height: 1.55; margin-top: 2px; }

.text-right { text-align: right; }
.text-muted { color: #6b7280; }
.text-faint { color: #94979e; }
.progress-track { width: 44px; height: 6px; background: #f0f1f3; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; }
.progress-fill { height: 100%; }

/* Planning board */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e3e6ea; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.board-toolbar-left { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #3a3d43; }
.board-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.board-layout { display: flex; gap: 12px; align-items: flex-start; }
.unscheduled-panel { width: 260px; flex-shrink: 0; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: var(--shadow-xs); padding: 14px; }
.unscheduled-card { border: 1px dashed #c7cbd1; border-radius: 7px; padding: 10px; margin-bottom: 8px; transition: border-color 0.12s var(--ease), background-color 0.12s var(--ease); }
.unscheduled-card:hover { border-color: #94979e; background: #fafbfc; }
.unscheduled-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.unscheduled-op { font-size: 12px; color: #3a3d43; margin: 3px 0 6px; }
.unscheduled-reason { font-size: 11.5px; color: #b42318; line-height: 1.4; }
.unscheduled-deadline { font-size: 11px; color: #94979e; margin-top: 4px; }
.ai-suggest-btn { margin-top: 10px; text-align: center; background: #fafafb; border: 1px solid #e3e6ea; border-radius: 7px; padding: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color 0.12s var(--ease), box-shadow 0.12s var(--ease); }
.ai-suggest-btn:hover { background: #fff; box-shadow: var(--shadow-sm); }

.board-grid-card { flex: 1; min-width: 0; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: var(--shadow-xs); overflow: auto; }
.board-grid-head { display: flex; border-bottom: 1px solid #e3e6ea; position: sticky; top: 0; background: #fff; z-index: 2; }
.board-machine-col-head { width: 170px; flex-shrink: 0; padding: 9px 12px; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; border-right: 1px solid #f0f1f3; }
.board-day-head { width: 60px; flex-shrink: 0; text-align: center; font-size: 10.5px; font-weight: 600; padding: 9px 0; border-right: 1px solid #f8fafc; }
.board-day-head.weekend { color: #cbd5e1; background: #fbfcfd; }
.board-day-head.today { color: var(--accent); background: #fff7ea; }
.board-machine-row { display: flex; border-bottom: 1px solid #f0f1f3; }
.board-machine-label { width: 170px; flex-shrink: 0; padding: 0 12px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #f0f1f3; background: #fafafb; }
.board-machine-name { font-size: 12.5px; font-weight: 600; }
.board-machine-wc { font-size: 10.5px; color: #94979e; }
.board-track { position: relative; height: 58px; flex-shrink: 0; }
.board-cells { position: absolute; inset: 0; display: flex; }
.board-cell { width: 60px; flex-shrink: 0; border-right: 1px solid #f8fafc; height: 100%; }
.board-downtime { position: absolute; top: 0; height: 100%; font-size: 9.5px; display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; font-weight: 600; }
.board-downtime.maintenance { background: repeating-linear-gradient(45deg,#eef0f2,#eef0f2 6px,#e3e6ea 6px,#e3e6ea 12px); color: #6b7280; }
.board-downtime.breakdown { background: repeating-linear-gradient(45deg,#fde8e8,#fde8e8 6px,#f7d0d0 6px,#f7d0d0 12px); color: #b42318; }
.board-downtime.reported { background: rgba(180,35,24,0.06); color: #b42318; }
.board-block { position: absolute; top: 9px; height: 40px; border-radius: 6px; padding: 5px 8px; font-size: 11.5px; cursor: grab; border: 1.5px solid #c7cbd1; background: #fff; box-shadow: var(--shadow-xs); transition: box-shadow 0.12s var(--ease), transform 0.08s var(--ease); }
.board-block:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.board-block:active { cursor: grabbing; }
.board-block.conflict { background: #fde8e8; border-color: #dc2626; color: #b42318; }
.board-block.material-blocked { background: #fde8e8; border-color: #b42318; color: #b42318; }
.board-block.locked { cursor: not-allowed; }
.board-block.locked:hover { transform: none; }
.board-block-order { display: flex; align-items: center; gap: 4px; font-weight: 700; overflow: hidden; white-space: nowrap; }
.board-block-status { font-size: 10px; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-block.drag-over { outline: 2px dashed var(--accent); }

.conflict-banner { margin-top: 12px; background: #fff4e0; border: 1px solid #f0d9ad; border-radius: 8px; padding: 12px 16px; }
.conflict-banner-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.conflict-banner-head span:first-child { font-size: 13px; font-weight: 700; color: #92620a; }
.conflict-banner-head span:last-child { font-size: 12px; color: #92620a; }
.conflict-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.conflict-list div { font-size: 12.5px; color: #5a4200; }

/* Shop floor */
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; margin-top: 14px; }
.floor-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 16px; box-shadow: var(--shadow-xs); transition: box-shadow 0.14s var(--ease); }
.floor-card:hover { box-shadow: var(--shadow-sm); }
.floor-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.floor-order { font-weight: 700; font-size: 14px; }
.floor-product { font-size: 12.5px; color: #6b7280; }
.floor-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: #3a3d43; margin-bottom: 10px; }
.floor-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.floor-hold-chip { font-size: 11.5px; padding: 6px 10px; border: 1px solid #e3e6ea; border-radius: 14px; cursor: pointer; }
.floor-saved { font-size: 11px; color: #94979e; margin-top: 8px; }

/* Drawers / overlays */
.overlay-scrim { position: fixed; inset: 0; background: rgba(16,20,28,0.4); backdrop-filter: blur(1px); z-index: 70; }
.overlay-scrim.modal { background: rgba(16,20,28,0.45); z-index: 80; display: flex; align-items: center; justify-content: center; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 460px; background: #fff; z-index: 71; box-shadow: var(--shadow-lg); padding: 26px; overflow: auto; }
.drawer.narrow { width: 400px; }
.drawer-close { cursor: pointer; color: #94979e; font-size: 20px; background: none; border: none; border-radius: 6px; transition: background-color 0.12s var(--ease), color 0.12s var(--ease); }
.drawer-close:hover { background: #f1f2f4; color: #16181d; }
.drawer-stat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 18px 0; }
.drawer-stat { background: #fafbfc; border: 1px solid #f0f1f3; border-radius: 7px; padding: 10px 12px; }
.drawer-stat-label { font-size: 10.5px; color: #94979e; }
.drawer-stat-value { font-weight: 700; font-size: 14px; }
.drawer-section-title { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.drawer-line-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 10px; background: #fafbfc; border: 1px solid #f0f1f3; border-radius: 6px; }
.drawer-activity { font-size: 12px; color: #3a3d43; }

.modal-card { background: #fff; border-radius: 12px; width: 420px; padding: 24px; box-shadow: var(--shadow-lg); }
.modal-card.wide { width: 480px; }
.modal-card.wider { width: 520px; }
.modal-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 14px; letter-spacing: -0.2px; }
.modal-sub { font-size: 12px; color: #94979e; margin-bottom: 14px; }
.modal-box { font-size: 12.5px; background: #fafbfc; border: 1px solid #f0f1f3; border-radius: 7px; padding: 12px; margin-bottom: 10px; }
.modal-actions { display: flex; gap: 8px; }
.field-label { font-size: 11.5px; color: #6b7280; font-weight: 500; display: block; margin-bottom: 6px; }
.field-input { width: 100%; padding: 10px 11px; border: 1px solid #e3e6ea; border-radius: 8px; margin: 0 0 12px; font-size: 13px; background: #fff; transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease); }
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #16181d; color: #fff; padding: 12px 20px; border-radius: 9px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 90; animation: toastIn 0.2s var(--ease); }

.restricted-wrap { max-width: 480px; margin: 70px auto; text-align: center; }
.restricted-icon { width: 40px; height: 40px; color: #c7cbd1; margin: 0 auto 14px; }
.restricted-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 8px; letter-spacing: -0.2px; }
.restricted-body { font-size: 13.5px; color: #6b7280; line-height: 1.6; }

.stub-wrap { max-width: 560px; margin: 80px auto; text-align: center; }
.stub-wrap .page-title { margin-bottom: 10px; }
.stub-list { text-align: left; margin-top: 20px; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; box-shadow: var(--shadow-xs); padding: 16px 18px; }
.stub-list li { font-size: 13px; color: #3a3d43; margin-bottom: 8px; }

/* Auth pages (login / signup) — deliberate first impression: split layout with a brand/value
   panel, not a bare centered card on grey. Light theme only, accent stays configurable. */
.auth-shell { min-height: 100vh; display: flex; background: #fff; }
.auth-side { flex: 1; display: none; position: relative; background: #0e1526; color: #fff; padding: 56px; overflow: hidden; }
.auth-side::before { content: ''; position: absolute; inset: 0; background:
    radial-gradient(560px 420px at 12% 18%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    radial-gradient(640px 480px at 88% 82%, rgba(255,255,255,0.06), transparent 60%); }
.auth-side-content { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.auth-side-mark { display: flex; align-items: center; gap: 10px; }
.auth-side-copy { margin-top: auto; max-width: 380px; }
.auth-side-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 14px; }
.auth-side-sub { font-size: 13.5px; color: rgba(255,255,255,0.68); line-height: 1.6; }
.auth-side-stats { display: flex; gap: 28px; margin-top: 32px; }
.auth-side-stat-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; }
.auth-side-stat-label { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.auth-main { flex: 1.1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #f4f5f7; }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-heading { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.4px; margin-bottom: 6px; }
.auth-subheading { font-size: 13px; color: #6b7280; margin-bottom: 26px; line-height: 1.5; }
.auth-error { font-size: 12.5px; color: #b42318; background: #fde8e8; border: 1px solid #f7d0d0; border-radius: 8px; padding: 11px 12px; margin-bottom: 16px; line-height: 1.5; }
.auth-notice { font-size: 12.5px; color: #1d4ed8; background: #eaf1ff; border: 1px solid #d3e3fd; border-radius: 8px; padding: 11px 12px; margin-bottom: 16px; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 11.5px; color: #94979e; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e3e6ea; }
.btn-google { width: 100%; background: #fff; border: 1px solid #e3e6ea; padding: 10px 14px; }
.btn-google:hover { background: #fafbfc; }
.auth-footer { text-align: center; font-size: 12.5px; color: #6b7280; margin-top: 22px; }
.auth-footer a { color: #16181d; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 920px) { .auth-side { display: flex; } }

.dropzone { border: 1.5px dashed #c7cbd1; border-radius: 8px; padding: 34px; text-align: center; font-size: 13px; color: #6b7280; margin-bottom: 16px; transition: border-color 0.12s var(--ease), background-color 0.12s var(--ease); }
.dropzone:hover { border-color: #94979e; background: #fafbfc; }
.mapping-row { display: flex; justify-content: space-between; font-size: 12.5px; background: #fafbfc; padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; }
.mapping-arrow { color: var(--accent); }
.import-error { font-size: 12px; color: #b42318; background: #fde8e8; padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; }
