/* ============================================================
   GOBANNOS — Design system (extrait pixel-pour-pixel de
   mockup/gobannos.html). Polices et icônes auto-hébergées :
   aucune dépendance réseau externe (CLAUDE.md §4).
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --gold: #f4c430;
  --gold-hi: #ffd84d;
  --run: #3ddc84;
  --agent: #38bdf8;
  --automation: #8b5cf6;
  --build: #fb923c;
  --error: #ef4444;
  --info: #60a5fa;
  --r: 18px;
  --r-sm: 12px;
  --r-xs: 8px;
  --t: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-title: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
html[data-theme="dark"] {
  --bg: #0b0e11;
  --bg-2: #111827;
  --surface: #161b22;
  --hover: #1e293b;
  --border: #2a3342;
  --glass: rgba(17, 24, 39, 0.72);
  --txt: #f8fafc;
  --txt-2: #cbd5e1;
  --muted: #94a3b8;
  --disabled: #64748b;
  --grid: rgba(255, 255, 255, 0.04);
  --scrim: rgba(4, 6, 9, 0.66);
  --tint: rgba(244, 196, 48, 0.1);
}
html[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --hover: #eef2f8;
  --border: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.78);
  --txt: #0b1220;
  --txt-2: #334155;
  --muted: #64748b;
  --disabled: #94a3b8;
  --grid: rgba(15, 23, 42, 0.05);
  --scrim: rgba(15, 23, 42, 0.28);
  --tint: rgba(244, 196, 48, 0.14);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--txt);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-size: 14px; line-height: 1.5; overflow: hidden;
}
::selection { background: rgba(244, 196, 48, 0.28); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ BUTTONS / BADGES / CHIPS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--txt-2); font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all var(--t); white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--txt); transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1206; border-color: transparent;
  box-shadow: 0 4px 14px rgba(244, 196, 48, 0.28); }
.btn.gold:hover { filter: brightness(1.05); box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; justify-content: center; }
.btn.icon.sm { width: 30px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; border: 1px solid transparent; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.b-gold { background: var(--tint); color: var(--gold); border-color: rgba(244, 196, 48, 0.25); }
.b-run { background: rgba(61, 220, 132, 0.12); color: var(--run); border-color: rgba(61, 220, 132, 0.25); }
.b-build { background: rgba(251, 146, 60, 0.12); color: var(--build); border-color: rgba(251, 146, 60, 0.25); }
.b-agent { background: rgba(56, 189, 248, 0.12); color: var(--agent); border-color: rgba(56, 189, 248, 0.25); }
.b-info { background: rgba(96, 165, 250, 0.12); color: var(--info); border-color: rgba(96, 165, 250, 0.25); }
.b-err { background: rgba(239, 68, 68, 0.12); color: var(--error); border-color: rgba(239, 68, 68, 0.28); }
.b-muted { background: var(--hover); color: var(--muted); border-color: var(--border); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--hover);
  border: 1px solid var(--border); font-size: 12px; color: var(--txt-2); font-weight: 500; cursor: default; }
.chip.clickable { cursor: pointer; transition: all var(--t); }
.chip.on { border-color: var(--gold); color: var(--gold); }
.chip input[type="checkbox"] { width: 13px; height: 13px; margin: 0; accent-color: var(--gold); cursor: pointer; flex: none; }

/* ============ CARDS ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.card.hover:hover { border-color: rgba(244, 196, 48, 0.35); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-pad { padding: 18px; }
.sec-title { font-size: 14px; font-weight: 700; font-family: var(--font-title); letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 12.5px; }
.progress { height: 6px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ============ APP SHELL ============ */
#app { display: none; height: 100vh; }
#app.on { display: grid; grid-template-columns: var(--side, 258px) 1fr; transition: grid-template-columns var(--t); }
#app.collapsed { --side: 72px; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.side-top { padding: 16px 14px 10px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 6px; }
.logo { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #2a2410, #0d0f14); border: 1px solid rgba(244, 196, 48, 0.35); position: relative;
  color: var(--gold); font-family: var(--font-title); font-weight: 800; font-size: 15px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.1; overflow: hidden; }
.brand .bn { font-family: var(--font-title); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand .bp { font-size: 10.5px; color: var(--gold); font-weight: 600; white-space: nowrap; opacity: 0.9; }
.collapsed .hide-c { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.nav-item { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--txt-2);
  cursor: pointer; transition: all var(--t); font-weight: 500; font-size: 13.5px; position: relative; margin-bottom: 1px; }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.nav-item:hover { background: var(--hover); color: var(--txt); }
.nav-item.active { background: var(--tint); color: var(--gold); }
.nav-item.active svg { opacity: 1; }
.nav-item.active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--gold); }
.collapsed .nav-item { justify-content: center; padding: 0; }
.collapsed .nav-item .nt { display: none; }
.side-foot { border-top: 1px solid var(--border); padding: 10px; }
.user { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; cursor: default; }
.av { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  background: linear-gradient(135deg, #f4c430, #fb923c); color: #1a1206; }
.user .un { font-size: 13px; font-weight: 600; line-height: 1.15; }
.user .ur { font-size: 11px; color: var(--muted); }
.collapsed .user .ux { display: none; }

/* ============ MAIN ============ */
.main { display: flex; flex-direction: column; height: 100vh; overflow: hidden; position: relative; }
.topbar { height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); z-index: 20; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.crumbs b { color: var(--txt); font-weight: 600; }
.crumbs svg { width: 14px; height: 14px; opacity: 0.6; }
.topbar .spacer { flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center;
  cursor: pointer; color: var(--txt-2); transition: all var(--t); position: relative; }
.iconbtn:hover { background: var(--hover); color: var(--txt); }
.iconbtn svg { width: 17px; height: 17px; }
.workspace { flex: 1; overflow-y: auto; scroll-behavior: smooth; position: relative; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 26px 28px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; font-weight: 800; }
.page-head .pt { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.page-head .spacer { flex: 1; }
.error-box { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--error);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* grids */
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1180px) { .g-kpi { grid-template-columns: repeat(2, 1fr); } .g-3, .g-2-1, .g-2 { grid-template-columns: 1fr; } }

/* KPI */
.kpi { padding: 16px 16px 14px; }
.kpi .kt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi .kt svg { width: 14px; height: 14px; }
.kpi .kv { font-family: var(--font-title); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 9px; display: flex; align-items: baseline; gap: 8px; }
.kpi .kd { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* section header row */
.srow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.srow .spacer { flex: 1; }
.srow .sub { font-size: 12px; }

/* Project cards */
.pcard { padding: 15px 16px; display: flex; flex-direction: column; gap: 11px; cursor: pointer; }
.pcard .pc-top { display: flex; align-items: center; gap: 9px; }
.pcard .pc-id { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pcard h4 { font-size: 15px; font-weight: 700; }
.pcard .pc-cli { font-size: 12px; color: var(--muted); }
.pcard .pc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pcard .pc-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Table */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--txt-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.rowh { cursor: pointer; }
.tbl tr.rowh:hover td { background: var(--hover); }
.rname { display: flex; align-items: center; gap: 10px; }
.rname .ri { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--hover); }
.rname .ri svg { width: 16px; height: 16px; }
.rname b { font-size: 13px; color: var(--txt); display: block; font-weight: 600; }
.rname span { font-size: 11px; color: var(--muted); }
.stpill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.stpill .sd { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* filters */
.rfilters { display: flex; gap: 8px; flex-wrap: wrap; }
.rfilter { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 9px; background: var(--surface);
  border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--txt-2); cursor: pointer; transition: all var(--t); }
.rfilter:hover { border-color: var(--gold); }
.rfilter.on { background: var(--tint); border-color: rgba(244, 196, 48, 0.4); color: var(--gold); }
.rfilter .rc { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.rfilter.on .rc { color: var(--gold); }
.filters select, .filters input { height: 34px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border);
  color: var(--txt); padding: 0 10px; font-size: 13px; font-family: inherit; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

/* tabs */
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 0 20px; overflow-x: auto; }
.ptab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 15px; font-size: 13.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color var(--t), border-color var(--t); margin-bottom: -1px; }
.ptab svg { width: 16px; height: 16px; opacity: 0.85; }
.ptab:hover { color: var(--txt-2); }
.ptab.on { color: var(--gold); border-bottom-color: var(--gold); }
.ptab .tc { font-size: 10.5px; background: var(--hover); border-radius: 999px; padding: 1px 7px; color: var(--muted); font-weight: 700; }
.ptab.on .tc { background: var(--tint); color: var(--gold); }

/* Supervision */
.sup-counters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1100px) { .sup-counters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sup-counters { grid-template-columns: repeat(2, 1fr); } }
.supc { border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; background: var(--bg-2); position: relative; overflow: hidden; }
.supc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--run)); }
.supc .scv { font-family: var(--font-title); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.supc .scl { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.metcell { min-width: 118px; }
.metcell .mv { font-size: 11.5px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; color: var(--txt-2); }
.gauge { height: 7px; border-radius: 999px; background: var(--hover); overflow: hidden; }
.gauge > i { display: block; height: 100%; border-radius: 999px; transition: width var(--t); }
.svcst { display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 7px; }

/* Alerts (journal de notifications) */
.alert { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.alert:last-child { border-bottom: 0; }
.alert .ai { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.alert b { font-size: 13px; display: block; margin-bottom: 2px; }
.alert span { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* Jira kanban */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kanban { grid-template-columns: 1fr; } }
.kcol { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 9px; min-height: 120px; }
.khead { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; font-size: 12px; font-weight: 700; color: var(--txt-2); }
.khead .kdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.khead .kn { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--hover); border-radius: 999px; padding: 1px 8px; }
.tkt { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 11px; transition: all var(--t); }
.tkt:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow); }
.tkt .tk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tkt .tk-key { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tkt .tk-sum { font-size: 12.5px; color: var(--txt); line-height: 1.4; margin-bottom: 10px; }
.tkt .tk-foot { display: flex; align-items: center; gap: 8px; }
.tk-av { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-weight: 700;
  background: linear-gradient(135deg, #f4c430, #fb923c); color: #1a1206; margin-left: auto; }

/* ===== LOGIN ===== */
#login { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
#login.off { display: none; }
.login-art { position: relative; overflow: hidden; border-right: 1px solid var(--border);
  background: radial-gradient(80% 90% at 20% 15%, rgba(244, 196, 48, 0.14), transparent 55%),
    radial-gradient(70% 80% at 90% 90%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(60% 60% at 70% 30%, rgba(139, 92, 246, 0.1), transparent 60%), var(--bg-2); }
.login-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent); }
.login-art .inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 64px; }
.login-art .brand2 { display: flex; align-items: center; gap: 13px; margin-bottom: 40px; }
.login-art .brand2 .bn { font-family: var(--font-title); font-weight: 800; font-size: 22px; }
.login-art .brand2 .bp { font-size: 12px; color: var(--gold); font-weight: 600; }
.login-art h1 { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 480px; }
.login-art h1 em { font-style: normal; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { color: var(--txt-2); font-size: 15px; max-width: 460px; margin-top: 18px; line-height: 1.6; }
.login-art .feats { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.login-art .feat { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--txt-2); }
.login-art .feat .fi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--gold); flex: none; }
.login-art .orch { position: absolute; right: -40px; bottom: -40px; width: 340px; height: 340px; opacity: 0.5; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 360px; }
.login-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.login-box .lsub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.login-box .btn.gold { width: 100%; height: 46px; justify-content: center; font-size: 14.5px; margin-top: 8px; }
.login-foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { #login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ===== PROJECT DETAIL ===== */
.proj-hero { padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.proj-hero .ph-l { flex: 1; min-width: 260px; }
.proj-hero h1 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-hero .ph-cli { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.proj-phases { display: flex; gap: 0; margin-top: 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 4px; width: fit-content; max-width: 100%; overflow: auto; }
.phase { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; position: relative; }
.phase.done { color: var(--run); }
.phase.active { background: var(--tint); color: var(--gold); }
.phase .pn { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; border: 1.5px solid currentColor; }
.phase.done .pn { background: var(--run); color: #04140a; border-color: var(--run); }

/* ===== FORMS / WIZARD ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--txt-2); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--txt);
  padding: 0 14px; font-size: 14px; font-family: inherit; transition: border-color var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.14); }
.field textarea { height: auto; padding: 10px 14px; resize: vertical; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 10px; align-items: flex-start; }
.row > * { flex: 1; }

.wiz { max-width: 900px; margin: 0 auto; }
.wiz-steps { display: flex; gap: 6px; margin-bottom: 26px; overflow-x: auto; padding-bottom: 4px; }
.wstep { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: all var(--t); }
.wstep .wsn { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--hover); border: 1px solid var(--border); }
.wstep.on { background: var(--tint); color: var(--gold); }
.wstep.on .wsn { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.wstep.done { color: var(--run); }
.wstep.done .wsn { background: var(--run); color: #04140a; border-color: var(--run); }
.wiz-panel { min-height: 260px; }
.wiz-panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.wiz-panel .wp-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.wiz-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.wiz-foot .spacer { flex: 1; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
.opt { border: 1px solid var(--border); border-radius: 14px; padding: 14px; cursor: pointer; transition: all var(--t); background: var(--bg-2); position: relative; }
.opt:hover { border-color: var(--gold); }
.opt.on { border-color: var(--gold); background: var(--tint); }
.opt.on::after { content: "✓"; position: absolute; top: 10px; right: 12px; color: var(--gold); font-weight: 800; }
.opt .oic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); margin-bottom: 10px; }
.opt b { font-size: 13.5px; display: block; }
.opt span { font-size: 11.5px; color: var(--muted); }
.optog { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-2); margin-bottom: 10px; }
.optog .oi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hover); flex: none; }
.optog .ot { flex: 1; }
.optog .ot b { font-size: 13.5px; display: block; }
.optog .ot span { font-size: 11.5px; color: var(--muted); }
.toggle { width: 40px; height: 22px; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; transition: background var(--t); flex: none; }
.toggle.on { background: var(--run); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left var(--t); }
.toggle.on::after { left: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 600; text-align: right; }
.dropzone-row { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg-2); margin-bottom: 10px; }

/* ===== Toast ===== */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; font-size: 13px; animation: tin 0.3s ease; }
.toast svg { width: 16px; height: 16px; color: var(--gold); }
.toast.err svg { color: var(--error); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.view { animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.empty { color: var(--muted); font-size: 13px; padding: 30px 0; text-align: center; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  #app.on { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 70; width: 258px; transform: translateX(-100%); }
  #app.mobopen .sidebar { transform: translateX(0); }
}
