:root{
  --background:#f6f7fb;
  --panel:#ffffff;
  --border:#e7ebf3;
  --text:#182230;
  --muted:#6b7787;

  --primary:#0b6bff;
  --warning:#ffb020;
  --success:#1fbd6b;
  --danger:#e5484d;

  --radius:16px;
  --radius-sm:12px;
  --shadow:0 10px 24px rgba(16,24,40,.08);

  --text-xs:12px;
  --text-sm:13px;
  --text-md:14px;
  --text-lg:18px;
  --text-xl:22px;

  --space-1:8px;
  --space-2:16px;
  --space-3:24px;

  --font:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
[hidden]{display:none !important;}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--background);
  font-size:var(--text-md);
}
a{color:inherit}

.app-shell{display:flex; min-height:100dvh; position:relative;}
.auth-shell{min-height:100vh; display:grid; place-items:center; padding:var(--space-3);}
.layout-auth{
  background:
    radial-gradient(900px 500px at 20% 15%, rgba(11,107,255,.12), transparent 60%),
    radial-gradient(900px 500px at 80% 85%, rgba(31,189,107,.10), transparent 62%),
    var(--background);
}

.sidebar{
  width:272px;
  color:#eaf2ff;
  padding:18px 14px;
  position:sticky;
  top:0;
  height:100dvh;
  display:flex;
  flex-direction:column;
  position:relative;
  background:
    radial-gradient(800px 280px at 40% 0%, rgba(47,125,255,.20), transparent 60%),
    linear-gradient(180deg, rgba(14, 22, 34, .96), rgba(9, 14, 22, .98));
  border-right:1px solid rgba(255,255,255,.08);
}
.brand{display:flex; gap:12px; align-items:center; padding:8px 10px; margin-bottom:12px;}
.logo{
  width:40px;
  height:40px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  color:#eaf2ff;
  border:1px solid rgba(255,255,255,.08);
}
.brand-name{font-weight:900; letter-spacing:.2px; font-size:14px}
.brand-sub{font-size:12px; opacity:.75}
.nav,.nav-secondary{display:flex; flex-direction:column; gap:6px; padding:8px;}
.nav-secondary{margin-top:auto;}
.nav-link{
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#eaf2ff;
  opacity:.92;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid transparent;
  min-height:44px;
}
.nav-ico{
  width:22px;
  opacity:.9;
  display:grid;
  place-items:center;
}
.nav-ico svg{display:block}
.nav-link:hover{background:rgba(255,255,255,.08)}
.nav-link.active{
  background:linear-gradient(90deg, rgba(47,125,255,.22), rgba(47,125,255,.08));
  border-color:rgba(47,125,255,.22);
  opacity:1;
}
.nav-link--subtle{opacity:.78}

body.sidebar-collapsed .app-shell{padding-left:86px;}
body.sidebar-collapsed .sidebar{
  width:86px;
  padding:18px 10px;
  position:fixed;
  left:0;
  top:0;
  z-index:40;
}
/* body.sidebar-collapsed .brand{justify-content:center; gap:12px;} */
body.sidebar-collapsed .brand-text{opacity:0; width:0; overflow:hidden; pointer-events:none;}
body.sidebar-collapsed .nav-link{justify-content:center; padding:10px; gap:0;}
body.sidebar-collapsed .nav-label{opacity:0; width:0; overflow:hidden; pointer-events:none;}

body.sidebar-collapsed .sidebar:hover{width:272px; padding:18px 14px;}
body.sidebar-collapsed .sidebar:hover .brand-text{opacity:1; width:auto; pointer-events:auto;}
body.sidebar-collapsed .sidebar:hover .nav-link{justify-content:flex-start; padding:10px 12px; gap: 10px;}
body.sidebar-collapsed .sidebar:hover .nav-label{opacity:1; width:auto; pointer-events:auto;}

.sidebar{transition:width .18s ease, padding .18s ease;}
.brand-text,.nav-label{transition:opacity .12s ease;}

.main{flex:1; padding:18px 18px 28px; min-width:0; min-height:100dvh;}
.page{max-width:1400px; margin:0 auto; display:grid; gap:var(--space-2);}
.dash{max-width:1250px;}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* Dashboard (light) */
.layout-app[data-page="dashboard"]{
  background:
    radial-gradient(1000px 700px at 15% 10%, rgba(11,107,255,.06), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(192,85,255,.05), transparent 55%),
    var(--background);
}
.layout-app[data-page="dashboard"] .main{padding-top:26px;}
.layout-app[data-page="dashboard"] .topbar{
  background:rgba(255,255,255,.82);
  border-color:rgba(231,235,243,.9);
  box-shadow:0 18px 42px rgba(16,24,40,.12);
  position:sticky;
  top:16px;
  z-index:30;
  backdrop-filter:blur(10px);
}
.layout-app[data-page="dashboard"] .breadcrumb{color:var(--muted);}
.layout-app[data-page="dashboard"] .page-title{color:var(--text);}
.layout-app[data-page="dashboard"] .topbar-search{
  background:#fff;
  border-color:var(--border);
  color:var(--muted);
}
.layout-app[data-page="dashboard"] .topbar-search .input{color:var(--text);}
.layout-app[data-page="dashboard"] .btn.ghost{
  background:#fff;
  border-color:var(--border);
  color:var(--text);
}
.layout-app[data-page="dashboard"] .btn.primary{
  box-shadow:0 12px 26px rgba(11,107,255,.25);
}

.dash-kpis{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; margin-top:10px;}
.dash-stat{
  padding:18px;
  border-radius:18px;
  border:1px solid var(--border);
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(11,107,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  box-shadow:0 24px 48px rgba(16,24,40,.12);
  color:var(--text);
  min-height:116px;
  display:grid;
  gap:10px;
  cursor:pointer;
}
.dash-stat:hover{border-color:rgba(11,107,255,.28);}
.dash-stat-top{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.dash-stat-label{font-size:14px; color:var(--muted);}
.dash-stat-ico{
  width:46px; height:46px;
  border-radius:12px;
  display:grid; place-items:center;
  font-size:18px;
  border:1px solid rgba(231,235,243,.9);
  background:rgba(255,255,255,.9);
}
.dash-stat[data-tone="blue"] .dash-stat-ico{color:#2f7dff; background:rgba(47,125,255,.10); border-color:rgba(47,125,255,.18);}
.dash-stat[data-tone="orange"] .dash-stat-ico{color:#ff7a1a; background:rgba(255,122,26,.10); border-color:rgba(255,122,26,.18);}
.dash-stat[data-tone="purple"] .dash-stat-ico{color:#c055ff; background:rgba(192,85,255,.10); border-color:rgba(192,85,255,.18);}
.dash-stat[data-tone="red"] .dash-stat-ico{color:#ff3d4a; background:rgba(255,61,74,.10); border-color:rgba(255,61,74,.18);}
.dash-stat-value{font-size:34px; font-weight:900; letter-spacing:-.6px;}
.dash-stat-sub{font-size:13px; color:var(--muted);}

.dash-row3{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; margin-top:12px;}
.dash-wide{margin-top:16px;}
.dash-panel{
  padding:18px;
  border-radius:18px;
  border:1px solid var(--border);
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(11,107,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  box-shadow:0 26px 52px rgba(16,24,40,.12);
  color:var(--text);
  min-height:320px;
}
.dash-panel--wide{min-height:auto; padding:22px;}
.dash-panel-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px;}
.dash-panel-title{font-weight:900; font-size:16px;}
.dash-link{color:#0b6bff; text-decoration:none; font-weight:900; font-size:13px;}
.dash-link:hover{text-decoration:underline;}

.dash-bars{display:grid; gap:16px; margin-top:6px;}
.dash-bar{display:grid; gap:8px;}
.dash-bar-top{display:flex; justify-content:space-between; align-items:center; gap:10px;}
.dash-bar-val{font-weight:900;}
.dash-bar-label{color:var(--muted); font-weight:900;}
.dash-bar-track{height:8px; border-radius:999px; background:rgba(11,107,255,.12); overflow:hidden;}
.dash-bar-fill{height:100%; background:#0b6bff;}
.dash-bar-pct{font-size:12px; color:var(--muted); justify-self:end;}

.dash-list{display:grid; gap:14px;}
.dash-item{display:flex; justify-content:space-between; gap:12px; padding:10px 10px; border-radius:14px; border:1px solid var(--border); background:rgba(255,255,255,.75);}
.dash-item-title{font-weight:900;}
.dash-item-sub{font-size:13px; color:var(--muted); margin-top:4px;}
.dash-item-side{display:grid; justify-items:end; gap:6px;}
.dash-pill{
  display:inline-flex; align-items:center; height:24px; padding:0 10px;
  border-radius:999px; background:rgba(255,255,255,.9);
  border:1px solid var(--border);
  font-weight:900; font-size:12px;
}
.dash-dim{color:rgba(107,119,135,.9); font-weight:800;}

.dash-alerts{display:grid; gap:12px;}
.dash-alert{
  border-radius:14px;
  border:1px solid var(--border);
  padding:12px 12px;
  background:rgba(255,255,255,.75);
}
.dash-alert-top{display:flex; align-items:center; gap:10px;}
.dash-alert-dot{width:12px; height:12px; border-radius:999px; border:2px solid rgba(24,34,48,.20);}
.dash-alert-title{font-weight:900;}
.dash-alert-body{margin-top:6px; font-size:13px; color:var(--muted);}
.dash-alert[data-kind="danger"]{background:rgba(229,72,77,.18); border-color:rgba(229,72,77,.28);}
.dash-alert[data-kind="danger"] .dash-alert-dot{border-color:rgba(229,72,77,.70);}
.dash-alert[data-kind="warning"]{background:rgba(255,176,32,.14); border-color:rgba(255,176,32,.26);}
.dash-alert[data-kind="warning"] .dash-alert-dot{border-color:rgba(255,176,32,.75);}
.dash-alert[data-kind="orange"]{background:rgba(255,122,26,.16); border-color:rgba(255,122,26,.26);}
.dash-alert[data-kind="orange"] .dash-alert-dot{border-color:rgba(255,122,26,.75);}
.dash-alert[data-kind="success"]{background:rgba(31,189,107,.16); border-color:rgba(31,189,107,.26);}
.dash-alert[data-kind="success"] .dash-alert-dot{border-color:rgba(31,189,107,.75);}

.dash-wo-list{display:grid; gap:14px;}
.dash-wo{
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.80);
  padding:14px 14px;
}
.dash-wo:hover{border-color:rgba(11,107,255,.35); background:rgba(255,255,255,.95);}
.dash-wo-top{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.dash-wo-title{display:flex; align-items:center; gap:10px; font-weight:900; font-size:16px;}
.dash-wo-sub{color:var(--muted); font-size:13px; margin-top:4px;}
.dash-wo-side{display:grid; gap:6px; justify-items:end; text-align:right;}
.dash-wo-job{font-weight:900;}
.dash-wo-prog{display:flex; justify-content:space-between; align-items:center; margin-top:12px; font-size:13px; color:var(--muted);}
.dash-wo-track{height:8px; border-radius:999px; background:rgba(11,107,255,.12); overflow:hidden; margin-top:8px;}
.dash-wo-fill{height:100%; background:#0b6bff;}

.dash-tag{
  height:24px; padding:0 10px;
  display:inline-flex; align-items:center;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.9);
  font-size:12px; font-weight:900;
  color:var(--text);
}
.dash-tag.primary{background:rgba(11,107,255,.12); border-color:rgba(11,107,255,.20); color:#103b9c;}
.dash-tag.danger{background:rgba(229,72,77,.10); border-color:rgba(229,72,77,.20); color:#9b1c21;}
.dash-tag.warning{background:rgba(255,176,32,.10); border-color:rgba(255,176,32,.22); color:#8a5200;}
.dash-tag.neutral{background:rgba(255,255,255,.9); border-color:var(--border); color:var(--text);}

@media (max-width: 1200px){
  .dash-kpis{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .dash-row3{grid-template-columns:1fr;}
}

@media (max-width: 920px){
  .dash-kpis{grid-template-columns:1fr;}
}
.topbar-left{display:grid; gap:2px}
.breadcrumb{font-size:var(--text-xs); color:var(--muted); letter-spacing:.3px}
.page-title{font-size:var(--text-lg); font-weight:900}
.topbar-right{display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end;}
.topbar-search{
  height:40px;
  min-width:320px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
}
.topbar-search .input{border:0; outline:none; height:100%; width:100%; padding:0; background:transparent; color:var(--text);}
.topbar-actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.card-title{font-weight:900; font-size:12px; letter-spacing:.55px; color:var(--muted); margin:0 0 10px;}

.kpi-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.kpi-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
  display:grid;
  gap:10px;
}
.kpi-top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px;}
.kpi-label{font-weight:900; color:var(--muted); font-size:12px; letter-spacing:.45px; text-transform:uppercase;}
.trend{
  font-size:12px;
  font-weight:900;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
}
.trend.up{color:#0f7a45; background:rgba(31,189,107,.10); border-color:rgba(31,189,107,.22);}
.trend.down{color:#9b1c21; background:rgba(229,72,77,.10); border-color:rgba(229,72,77,.22);}
.kpi-value{font-size:28px; font-weight:900; letter-spacing:-.2px;}
.kpi-sub{font-size:12px; color:var(--muted);}
.kpi-split{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.kpi-split-item{border:1px solid var(--border); border-radius:14px; padding:10px; background:#fff;}
.kpi-mini-label{font-size:12px; color:var(--muted); font-weight:900;}
.kpi-mini-value{font-size:16px; font-weight:900; margin-top:4px;}

.widget-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.panel-sub{font-size:12px; color:var(--muted); margin-top:-2px;}
.panel-filters{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end;}
.panel-filters .input{min-width:240px;}

.btn{
  height:40px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  white-space:nowrap;
}
.btn.primary{background:var(--primary); color:#fff;}
.btn.secondary{background:#eef3ff; color:#2346a3; border-color:#dbe6ff;}
.btn.ghost{background:transparent; border-color:var(--border); color:var(--text);}
.btn:hover{filter:brightness(.98)}
.btn:active{transform:translateY(1px)}
.icon-btn{
  width:36px; height:36px; border-radius:12px;
  border:1px solid var(--border); background:#fff; cursor:pointer;
  display:grid; place-items:center;
}

.badge{
  display:inline-flex; align-items:center;
  height:22px; padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:12px; font-weight:900;
  background:#f6f7fb;
}
.badge.success{background:rgba(31,189,107,.12); border-color:rgba(31,189,107,.25); color:#0f7a45;}
.badge.warning{background:rgba(255,176,32,.14); border-color:rgba(255,176,32,.30); color:#8a5200;}
.badge.danger{background:rgba(229,72,77,.12); border-color:rgba(229,72,77,.25); color:#9b1c21;}
.badge.neutral{background:#f6f7fb; color:var(--muted);}

.input,.select{
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  padding:0 12px;
  background:#fff;
  color:var(--text);
  font-size:var(--text-md);
}
.input:focus,.select:focus{
  outline:none;
  border-color:rgba(11,107,255,.35);
  box-shadow:0 0 0 4px rgba(11,107,255,.10);
}
.input.is-invalid{
  border-color:rgba(229,72,77,.45);
  box-shadow:0 0 0 4px rgba(229,72,77,.10);
}
.input::placeholder{color:#98a4b3}
.field{display:grid; gap:6px}
.label{font-size:var(--text-xs); color:var(--muted); font-weight:800;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}

.filterbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
}
.chip.active{border-color:#dbe6ff; background:#eef3ff; color:#2346a3}

.tabs{display:flex; gap:8px; background:#f3f5fb; border:1px solid var(--border); border-radius:999px; padding:4px;}
.tab{
  border:0; background:transparent;
  padding:8px 12px; border-radius:999px;
  cursor:pointer; font-weight:900; color:#37506a;
}
.tab.active{background:#fff; color:var(--text); box-shadow:0 1px 8px rgba(16,24,40,.10)}

.table-wrap{overflow:auto; border:1px solid var(--border); border-radius:14px; background:#fff;}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:var(--text-sm);
}
.table th,.table td{padding:12px 12px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap;}
.table th{font-size:12px; color:var(--muted); letter-spacing:.4px; font-weight:900; background:#f8fafc;}
.table tr[data-href]{cursor:pointer}
.table tr[data-href]:hover td{background:#f6f9ff}
.table.is-sticky thead th{position:sticky; top:0; z-index:1;}
.table td:last-child,.table th:last-child{text-align:right}

.empty-state{
  padding:34px 18px;
  display:grid;
  place-items:center;
  text-align:center;
  gap:10px;
  color:var(--muted);
}
.empty-state .empty-title{color:var(--text); font-weight:900; font-size:16px}
.skeleton{
  position:relative;
  overflow:hidden;
  background:#eef1f7;
  border-radius:12px;
}
.skeleton::after{
  content:"";
  position:absolute; inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation:shimmer 1.2s infinite;
}
@keyframes shimmer{100%{transform:translateX(100%)}}

.overlay{
  position:fixed; inset:0;
  background:rgba(11,18,32,.45);
  backdrop-filter:blur(4px);
  z-index:80;
}
.modal{position:fixed; inset:0; display:grid; place-items:center; z-index:90; padding:24px;}
.modal-panel{
  width:min(720px, 100%);
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.modal-head,.modal-foot{padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px;}
.modal-head{border-bottom:1px solid var(--border);}
.modal-title{font-weight:900; font-size:16px}
.modal-body{padding:16px;}

.drawer{
  position:fixed; top:0; right:0;
  width:min(420px, 92vw);
  height:100vh;
  background:var(--panel);
  border-left:1px solid var(--border);
  box-shadow:var(--shadow);
  z-index:95;
  display:flex;
  flex-direction:column;
}
.drawer-head{padding:14px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between;}
.drawer-title{font-weight:900; font-size:16px}
.drawer-body{padding:16px; overflow:auto;}

.toast-host{position:fixed; right:16px; bottom:16px; z-index:120; display:grid; gap:10px; width:min(360px, calc(100vw - 32px));}
.toast{
  background:rgba(17, 24, 39, .92);
  color:#fff;
  border-radius:14px;
  padding:12px 12px;
  box-shadow:0 10px 24px rgba(16,24,40,.22);
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.toast-title{font-weight:900}
.toast-sub{font-size:12px; opacity:.86; margin-top:2px}
.toast .toast-x{border:0; background:transparent; color:#fff; cursor:pointer; font-size:16px; line-height:1}

.user-btn{
  height:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  padding:0 10px 0 6px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}
.avatar{width:32px; height:32px; border-radius:999px; background:#eef3ff; color:#2346a3; display:grid; place-items:center; font-weight:900; font-size:12px}
.user-meta{display:grid; line-height:1.05; text-align:left}
.user-name{font-weight:900; font-size:13px}
.user-role{font-size:12px; color:var(--muted)}
.chev{color:var(--muted)}
.menu{
  position:absolute;
  margin-top:8px;
  right:0;
  width:220px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
  padding:6px;
}
.user-menu{position:relative;}
.menu-item{
  display:flex;
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  text-decoration:none;
  border:0;
  background:transparent;
  cursor:pointer;
  text-align:left;
  font-weight:800;
  color:var(--text);
}
.menu-item:hover{background:#f6f7fb}
.menu-item.danger{color:var(--danger)}
.menu-sep{height:1px; background:var(--border); margin:6px;}

.grid{
  display:grid;
  grid-template-columns: 340px repeat(3, minmax(220px, 1fr));
  gap:14px;
}
.card-left{grid-row: span 2;}
.card-wide{grid-column: span 3;}
.big{font-size:28px; font-weight:900; margin:8px 0 14px;}
.kv{display:grid; gap:10px;}
.kv span{display:block; color:var(--muted); font-size:12px;}
.kv b{display:block; font-size:14px;}
.chart-placeholder{
  height:220px;
  border:1px dashed #cfd7e6;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:var(--muted);
  background:#fafbff;
}
.list{display:grid; gap:10px;}
.list-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
}
.list-row b{font-size:14px}

.planning{border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff;}
.planning-head{
  display:grid; grid-template-columns: 220px repeat(18, 1fr);
  background:#f8fafc; border-bottom:1px solid var(--border);
}
.day{padding:10px 8px; font-size:12px; color:var(--muted); border-left:1px solid var(--border);}
.lane-label{padding:10px 12px; font-weight:900; font-size:12px; color:var(--muted);}
.planning-row{display:grid; grid-template-columns: 220px 1fr; border-bottom:1px solid var(--border);}
.lane{position:relative; min-height:64px; border-left:1px solid var(--border);}
.bar{
  position:absolute; top:12px; height:40px;
  border-radius:12px; background:rgba(255,176,32,.14);
  border:2px solid rgba(255,176,32,.70); padding:6px 10px;
}
.bar-title{font-weight:900; font-size:12px;}
.bar-sub{font-size:11px; color:var(--muted);}

.tasks{display:grid; gap:10px;}
.task{
  display:flex; justify-content:space-between; gap:14px;
  padding:12px; border:1px solid var(--border); border-radius:16px;
}
.task-left{display:flex; gap:12px; align-items:center;}
.pill{
  padding:6px 10px; border-radius:999px; background:#eef3ff; color:#2a4ea6;
  font-weight:900; font-size:12px;
}
.task-title{font-weight:900;}
.task-sub{font-size:12px; color:var(--muted); margin-top:2px;}
.task-meta{display:flex; gap:16px; align-items:center; flex-wrap:wrap; justify-content:flex-end;}
.task-meta span{display:block; font-size:11px; color:var(--muted)}
.task-meta b{display:block; font-size:13px}

.stack{display:grid; gap:10px;}

/* Fleet Synthesis (FS v1.0) */
.help{font-size:12px; color:var(--muted);}
.fs-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px;}
.fs-title{font-weight:900; font-size:18px;}
.fs-sub{color:var(--muted); font-size:13px; margin-top:2px;}
.fs-inline-actions{display:flex; align-items:center; gap:10px;}
.fs-filters{display:grid; gap:14px;}
.fs-filter-row{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px;}
.fs-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:4px; flex-wrap:wrap;}
.fs-predef-actions{display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px;}
.fs-predef-table .table td:last-child,.fs-predef-table .table th:last-child{text-align:right;}
.btn.fs-mini{height:32px; padding:0 10px; border-radius:10px; font-size:12px;}
.btn.fs-mini.danger{color:var(--danger); border-color:rgba(229,72,77,.25);}

.fs-switch{display:inline-flex; align-items:center; gap:8px; cursor:pointer;}
.fs-switch input{display:none;}
.fs-switch-ui{
  width:42px; height:24px; border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  position:relative;
}
.fs-switch-ui::after{
  content:"";
  width:18px; height:18px; border-radius:999px;
  background:#cbd5e1;
  position:absolute; top:2px; left:2px;
  transition:left .14s ease, background .14s ease;
}
.fs-switch input:checked + .fs-switch-ui{border-color:rgba(11,107,255,.25); background:rgba(11,107,255,.10);}
.fs-switch input:checked + .fs-switch-ui::after{left:22px; background:var(--primary);}

.fs-summary{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:6px 0 12px;}
.fs-sum-pill{
  display:inline-flex; align-items:center; gap:8px;
  height:34px; padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
}
.fs-sum-pill[data-alarm="red"]{border-color:rgba(229,72,77,.30); background:rgba(229,72,77,.08);}
.fs-sum-pill[data-alarm="orange"]{border-color:rgba(255,176,32,.35); background:rgba(255,176,32,.10);}
.fs-sum-pill[data-alarm="green"]{border-color:rgba(31,189,107,.28); background:rgba(31,189,107,.08);}
.fs-sum-meta{font-size:12px; color:var(--muted);}
.fs-dot{
  width:10px; height:10px; border-radius:999px;
  background:#94a3b8;
}
.fs-sum-pill[data-alarm="red"] .fs-dot{background:var(--danger);}
.fs-sum-pill[data-alarm="orange"] .fs-dot{background:var(--warning);}
.fs-sum-pill[data-alarm="green"] .fs-dot{background:var(--success);}

.fs-cell{
  width:100%;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:flex;
  justify-content:flex-start;
}
.fs-pill{
  display:inline-flex; align-items:center; gap:8px;
  height:26px; padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  font-size:12px;
}
.fs-pill[data-alarm="red"]{border-color:rgba(229,72,77,.30); background:rgba(229,72,77,.08);}
.fs-pill[data-alarm="orange"]{border-color:rgba(255,176,32,.35); background:rgba(255,176,32,.10);}
.fs-pill[data-alarm="green"]{border-color:rgba(31,189,107,.28); background:rgba(31,189,107,.08);}
.fs-pill[data-alarm="red"] .fs-dot{background:var(--danger);}
.fs-pill[data-alarm="orange"] .fs-dot{background:var(--warning);}
.fs-pill[data-alarm="green"] .fs-dot{background:var(--success);}

.fs-details-head{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:start;
  margin-bottom:12px;
}
.fs-details-left{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.fs-details-mid{min-width:0;}
.fs-details-title{font-weight:900; font-size:16px;}
.fs-details-tools{display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-top:10px;}
.fs-search{min-width:280px; flex:1;}
.fs-toolgroup{display:flex; gap:10px; align-items:center;}
.fs-wp-actions{display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap;}

.fs-spinner{
  position:sticky;
  top:12px;
  margin-top:10px;
  justify-self:end;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}

.fs-freeze .fs-sticky-col{
  position:sticky;
  background:#fff;
  z-index:3;
  border-right:1px solid var(--border);
}
.fs-freeze thead .fs-sticky-col{z-index:6; background:#f8fafc;}

.muted{color:var(--muted); font-size:12px;}

.popover{
  position:absolute;
  z-index:110;
  width:min(360px, calc(100vw - 24px));
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:8px;
}
.popover-title{font-weight:900; font-size:12px; color:var(--muted); letter-spacing:.4px; padding:6px 8px;}
.popover-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:0;
  background:transparent;
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
  text-align:left;
  font-weight:900;
}
.popover-item:hover{background:#f6f7fb;}

.fs-filter-pop{padding:6px 8px 8px;}
.fs-filter-grid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px;}
.fs-filter-pop-actions{display:flex; justify-content:flex-end; gap:10px; margin-top:12px; flex-wrap:wrap;}

.fs-wp-list{display:grid; gap:10px;}
.fs-wp-card{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:12px;
  cursor:pointer;
  text-align:left;
}
.fs-wp-card:hover{border-color:rgba(11,107,255,.28); background:#f6f9ff;}
.fs-wp-top{display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:6px;}

@media (max-width: 980px){
  .fs-filter-row{grid-template-columns:1fr;}
  .fs-filter-grid{grid-template-columns:1fr;}
  .fs-details-head{grid-template-columns:1fr;}
  .fs-search{min-width:0;}
}

.auth-card{
  width:min(420px, 100%);
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}
.auth-head{display:flex; align-items:center; gap:12px;}
.auth-mark{
  width:44px; height:44px;
  border-radius:14px;
  display:grid; place-items:center;
  background:rgba(11,107,255,.10);
  color:var(--primary);
  border:1px solid rgba(11,107,255,.18);
}
.auth-brand{display:grid; gap:2px;}
.auth-brand .auth-title{margin:0;}
.auth-brand .auth-sub{margin:0;}
.auth-title{font-weight:900; font-size:20px}
.auth-sub{color:var(--muted); font-size:13px}
.auth-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.checkbox{
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:13px;
  user-select:none;
}
.checkbox input{width:16px; height:16px;}
.link{
  color:#2346a3;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
}
.link:hover{text-decoration:underline}
.auth-footer{
  margin-top:12px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

@media (max-width: 1200px){
  .kpi-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .grid{grid-template-columns:1fr;}
  .card-left,.card-wide{grid-column:auto; grid-row:auto;}
  .topbar-search{min-width:220px;}
}

@media (max-width: 920px){
  .kpi-grid{grid-template-columns:1fr;}
  .sidebar{display:none;}
  .main{padding:14px;}
  .topbar{border-radius:14px;}
}
