/* CEEC Global Ventures CRM — white and dark blue */
:root {
  --navy: #0A1F44;
  --navy-2: #102B5C;
  --navy-3: #1A3A73;
  --blue: #1F4FA3;
  --blue-hover: #173F86;
  --sky: #DCE7F7;
  --wash: #F2F6FC;
  --line: #D6DFEC;
  --line-soft: #E7EDF6;
  --ink: #12203A;
  --ink-2: #44536E;
  --ink-3: #6E7C95;
  --white: #FFFFFF;
  --red: #B42318;
  --red-wash: #FDECEA;
  --green: #1B7A4B;
  --green-wash: #E6F4EC;
  --amber: #93600E;
  --amber-wash: #FCF3E3;
  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 12px;
  --rail: 236px;
  --font: 'Schibsted Grotesk', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --shadow-pop: 0 12px 32px rgba(10, 31, 68, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.2; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Brand ---------- */
.brand-plate {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: 10px; padding: 10px 12px; height: 64px;
  margin: 0 2px 6px; text-decoration: none;
}
.brand-plate:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--navy-3); }
.brand-plate img { max-width: 100%; max-height: 44px; object-fit: contain; display: block; }
.brand-sub { color: #8FA5CC; font-size: 12px; font-weight: 600; padding: 0 8px 18px; text-align: center; }
.brand-tile {
  width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--white);
  display: grid; place-items: center; overflow: hidden; padding: 4px;
}
.brand-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.login-logo { display: block; max-width: 280px; max-height: 72px; object-fit: contain; margin-bottom: 18px; }
.logo-fallback { font-weight: 800; color: var(--navy); font-size: 14px; letter-spacing: -0.01em; text-align: center; line-height: 1.15; }
.login-main .logo-fallback { font-size: 20px; margin-bottom: 18px; display: block; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  background: var(--navy);
  color: #C9D6EE;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  padding: 22px 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: var(--white); }
.brand-mark {
  width: 44px; height: 36px; border-radius: 7px; flex: none;
  background: var(--white); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: 0;
}
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 12px; color: #8FA5CC; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 6px;
  color: #C9D6EE; font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--navy-2); color: var(--white); }
.nav a.active { background: var(--white); color: var(--navy); font-weight: 700; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav .count {
  margin-left: auto; background: #E9A23B; color: var(--navy);
  font-size: 11px; font-weight: 800; border-radius: 10px; padding: 1px 7px;
}
.nav-group { margin: 16px 10px 6px; font-size: 12px; color: #7F95BD; }
.rail-foot { margin-top: auto; border-top: 1px solid var(--navy-3); padding: 14px 8px 0; }
.rail-foot .who { color: var(--white); font-weight: 600; }
.rail-foot .role { font-size: 12px; color: #8FA5CC; }
.rail-foot .links { display: flex; gap: 14px; margin-top: 10px; }
.rail-foot button { background: none; border: 0; padding: 0; color: #C9D6EE; cursor: pointer; font-size: 13px; }
.rail-foot button:hover { color: var(--white); text-decoration: underline; }
.btn.menu-btn { display: none; }

.view { min-width: 0; padding: 28px 34px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--ink-3); margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions .input { width: auto; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--navy);
  font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: var(--navy-3); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--wash); }
.btn.small { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--white);
}
textarea.input { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: #B8C6DB; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 163, 0.15); }
.input.search { padding-left: 34px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7C95' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center / 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 140px; }
.toolbar .input.search { min-width: 240px; flex: 1 1 240px; max-width: 360px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 8px; border-radius: 4px; white-space: nowrap;
  background: var(--wash); color: var(--ink-2);
}
.chip.stage { color: var(--white); }
.chip.red { background: var(--red-wash); color: var(--red); }
.chip.green { background: var(--green-wash); color: var(--green); }
.chip.amber { background: var(--amber-wash); color: var(--amber); }
.chip.new { background: #E9A23B; color: var(--navy); }
.prio { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9FB0CC; flex: none; }
.prio.high { background: var(--red); }
.prio.medium { background: #E9A23B; }
.prio.low { background: #9FB0CC; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--sky); color: var(--navy); font-size: 10px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.money { font-weight: 700; color: var(--navy); }

/* ---------- Panels ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-body { padding: 16px 18px; }
.empty { padding: 34px 18px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }

/* ---------- Dashboard ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; margin-bottom: 22px;
}
.kpi { padding: 16px 18px; border-right: 1px solid var(--line-soft); background: var(--white); }
.kpi:last-child { border-right: 0; }
.kpi .label { color: var(--ink-3); font-size: 13px; }
.kpi .value { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-top: 2px; }
.kpi .meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.kpi.lead { background: var(--navy); border-color: var(--navy); }
.kpi.lead .label, .kpi.lead .meta { color: #A9BCE0; }
.kpi.lead .value { color: var(--white); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 110px; gap: 12px; align-items: center; }
.bar-row .name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 22px; background: var(--wash); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; min-width: 2px; transition: width 0.4s ease; }
.bar-row .num { text-align: right; font-size: 13px; color: var(--ink-2); }
.bar-row .num b { color: var(--navy); }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.agenda li:last-child { border-bottom: 0; }
.agenda .when { width: 72px; flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); padding-top: 2px; }
.agenda .when.late { color: var(--red); }
.agenda .what { flex: 1; min-width: 0; }

/* ---------- Table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-l); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-2);
  padding: 10px 12px; background: var(--wash); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data th button { background: none; border: 0; padding: 0; font-weight: 700; color: inherit; cursor: pointer; }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #F8FAFE; }
table.data tr.selected { background: #EEF3FC; }
table.data .company { font-weight: 700; color: var(--navy); }
table.data .col-check { width: 36px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-3); }

.bulkbar {
  position: sticky; bottom: 18px; z-index: 20;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 12px 10px 18px;
  background: var(--navy); color: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-pop);
}
.bulkbar .btn { background: var(--navy-2); border-color: var(--navy-3); color: var(--white); }
.bulkbar .btn:hover { background: var(--navy-3); }
.bulkbar .btn.danger { color: #FFB4AB; }
.bulkbar .spacer { flex: 1; }

/* ---------- Board ---------- */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; min-height: 60vh; }
.col {
  flex: 0 0 272px; background: var(--wash); border-radius: var(--radius-l);
  display: flex; flex-direction: column; max-height: calc(100vh - 190px);
}
.col-head { padding: 12px 14px 10px; border-top: 4px solid var(--c, var(--navy)); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.col-head .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.col-head .title { font-weight: 800; color: var(--navy); }
.col-head .n { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--white); border-radius: 10px; padding: 1px 8px; }
.col-head .val { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.col-body { padding: 4px 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 80px; flex: 1; }
.col.over { background: var(--sky); }
.col .more { font-size: 12px; color: var(--ink-3); text-align: center; padding: 4px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; cursor: grab; display: block; color: var(--ink); text-decoration: none;
}
.card:hover { border-color: var(--navy-3); text-decoration: none; }
.card.dragging { opacity: 0.45; }
.card .c-top { display: flex; align-items: center; gap: 7px; }
.card .c-name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.card .c-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .c-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.card .c-foot .money { font-size: 13px; margin-right: auto; }

/* ---------- Lead detail ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.lead-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.lead-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--ink-2); }
.lead-head .meta a { color: var(--ink-2); }
.stage-rail { display: flex; gap: 3px; margin-bottom: 20px; overflow-x: auto; }
.stage-rail button {
  flex: 1 1 0; min-width: 96px; height: 38px; border: 0; cursor: pointer;
  background: var(--wash); color: var(--ink-2); font-weight: 700; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
  padding: 0 14px 0 18px;
}
.stage-rail button:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 6px 0 0 6px; }
.stage-rail button:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%); border-radius: 0 6px 6px 0; }
.stage-rail button:hover { background: var(--sky); color: var(--navy); }
.stage-rail button.passed { background: var(--sky); color: var(--navy); }
.stage-rail button.current { background: var(--c); color: var(--white); }
.banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.banner.lost { background: var(--red-wash); color: #7A1D15; }
.banner.won { background: var(--green-wash); color: #11502F; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: 10px 12px; cursor: pointer; white-space: nowrap;
  font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--navy); }
.tabs button.active { color: var(--navy); border-bottom-color: var(--navy); }
.tabs .n { font-size: 11px; background: var(--wash); border-radius: 8px; padding: 1px 6px; margin-left: 4px; color: var(--ink-2); }

.composer { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 14px; margin-bottom: 18px; background: var(--white); }
.composer .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.composer .row > * { flex: 1 1 160px; }
.composer .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed > li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.feed > li:last-child { border-bottom: 0; }
.feed .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--wash); color: var(--navy); display: grid; place-items: center; }
.feed .ico svg { width: 17px; height: 17px; }
.feed .done .ico, .feed li.done .ico { background: var(--green-wash); color: var(--green); }
.feed li.late .ico { background: var(--red-wash); color: var(--red); }
.feed .title { font-weight: 700; color: var(--navy); }
.feed li.done .title { color: var(--ink-2); }
.feed .body { white-space: pre-wrap; margin-top: 4px; color: var(--ink); }
.feed .by { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.feed .side { display: flex; gap: 4px; align-items: flex-start; }
.note-pinned { background: #FBFCFF; }

.details .panel-body { display: flex; flex-direction: column; gap: 12px; }
.details .grid-2 { gap: 10px; }

.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.person .name { font-weight: 700; color: var(--navy); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.person .lines { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.person .lines a { color: var(--ink-2); }

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag { font-size: 12px; font-weight: 600; color: var(--navy-3); background: var(--sky); border-radius: 10px; padding: 2px 9px; }
.check-top { align-items: flex-start; }
.check-top input { margin-top: 3px; flex: none; }

/* ---------- Finder ---------- */
.finder-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.finder-form .input { flex: 1 1 260px; }
.results { display: flex; flex-direction: column; gap: 16px; }
.results .group h3 { margin-bottom: 8px; }
.kv-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.kv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.kv-list li:last-child { border-bottom: 0; }
.kv-list .v { font-weight: 600; word-break: break-all; }
.scan-note { font-size: 12px; color: var(--ink-3); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--sky); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Import ---------- */
.steps { display: flex; gap: 0; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.steps div { flex: 1; padding: 11px 16px; color: var(--ink-3); font-weight: 600; background: var(--white); border-right: 1px solid var(--line-soft); }
.steps div:last-child { border-right: 0; }
.steps div b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wash); margin-right: 8px; font-size: 12px; }
.steps div.on { color: var(--navy); background: var(--wash); }
.steps div.on b { background: var(--navy); color: var(--white); }
.steps div.done b { background: var(--green); color: var(--white); }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 2px dashed #B8C6DB; border-radius: var(--radius-l); padding: 44px 20px; cursor: pointer; background: var(--wash);
}
.drop:hover, .drop.over { border-color: var(--blue); background: #E9F0FB; }
.drop strong { color: var(--navy); font-size: 16px; }
.drop input { display: none; }
.map-table td:first-child { font-weight: 600; width: 180px; }
.map-table .sample { color: var(--ink-3); font-size: 12px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.result-figs { display: flex; gap: 28px; flex-wrap: wrap; margin: 6px 0 18px; }
.result-figs div { font-size: 13px; color: var(--ink-3); }
.result-figs b { display: block; font-size: 26px; color: var(--navy); }

/* ---------- Modal, toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(10, 31, 68, 0.45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--white); border-radius: var(--radius-l); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: var(--shadow-pop); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; }
.modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 4px; }
#toast-root { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--navy); color: var(--white); padding: 11px 16px; border-radius: var(--radius); box-shadow: var(--shadow-pop); max-width: 380px; font-weight: 500; animation: rise 0.2s ease; }
.toast.error { background: var(--red); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.form-error { color: var(--red); font-size: 13px; font-weight: 600; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-side {
  background: var(--navy); color: var(--white); padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.05) 79px 80px);
}
.login-side .big { font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.login-side .pipe { display: flex; gap: 4px; margin-top: 28px; max-width: 460px; }
.login-side .pipe span { flex: 1; height: 8px; border-radius: 2px; }
.login-side .foot { color: #8FA5CC; font-size: 13px; }
.login-main { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dash-grid, .lead-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 90; transform: translateX(-100%); transition: transform 0.2s; }
  .rail.open { transform: none; box-shadow: var(--shadow-pop); }
  .btn.menu-btn { display: inline-flex; position: fixed; top: 12px; left: 12px; z-index: 80; }
  .view { padding: 64px 16px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .bar-row { grid-template-columns: 90px 1fr 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
