@font-face { font-family: "Bebas"; src: url("fonts/BebasNeue-Bold.otf") format("opentype"); font-weight: 700; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.ttf") format("truetype"); font-weight: 700; }

:root {
  --bg: #070b14;
  --bg2: #0b1220;
  --panel: #0f1829;
  --panel2: #132036;
  --line: #1f2d47;
  --text: #eef3fb;
  --muted: #a9b6cc;
  --blue: #2f6bff;
  --blue2: #1d4fd8;
  --glow: rgba(47, 107, 255, .35);
  --steel: #c9d3e1;
  --ok: #2ee59d;
  --bad: #ff5d6c;
  --warn: #ffc24b;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47,107,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(201,211,225,.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: #8fb1ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }

/* Sidebar */
.side {
  background: linear-gradient(180deg, #0a1324, #070b14);
  border-right: 1px solid var(--line);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo { width: 64px; height: 64px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px var(--glow); overflow: hidden; flex: none; }
.logo img { width: 92%; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.title { font-family: "Bebas", "Montserrat", sans-serif; font-size: 36px; line-height: .9; letter-spacing: .04em; color: #fff; }
.title span { display: block; font-size: 22px; color: var(--blue); letter-spacing: .12em; }

nav { display: flex; flex-direction: column; gap: 6px; }
nav button {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 13px 14px; font-size: 18px; font-weight: 600; color: var(--muted);
}
nav button .ico { width: 26px; text-align: center; color: var(--steel); font-size: 18px; }
nav button:hover { background: var(--panel); color: var(--text); }
nav button.on { background: linear-gradient(90deg, rgba(47,107,255,.25), rgba(47,107,255,.05));
  border-color: rgba(47,107,255,.45); color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
nav button.on .ico { color: var(--blue); }

.lights-card { margin-top: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.lights-head { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 700;
  display: flex; justify-content: space-between; margin-bottom: 8px; }
.lights-head span { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
#lights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#lights li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
#lights .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
#lights .dot.ok { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
#lights .dot.bad { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
#lights b { display: block; font-size: 15px; }
#lights small { color: var(--muted); font-size: 13px; line-height: 1.3; display: block; word-break: break-word; }

/* Buttons */
.btn { background: linear-gradient(180deg, var(--blue), var(--blue2)); border: 0; border-radius: 12px;
  padding: 11px 18px; font-weight: 700; color: #fff; box-shadow: 0 6px 20px var(--glow); }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost { background: transparent; border: 1px solid #36507e; box-shadow: none; color: var(--text); }
.btn.ghost:hover { border-color: var(--blue); background: rgba(47,107,255,.1); }
.btn.wide { width: 100%; padding: 13px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.big { padding: 0 26px; font-size: 18px; }

/* Main */
main { padding: 26px 34px 40px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.hello { font-family: "Bebas", "Montserrat", sans-serif; font-size: 54px; letter-spacing: .03em; line-height: 1; }
.now { color: var(--muted); margin-top: 6px; }
.ask-mini { display: flex; gap: 10px; flex: 1; max-width: 560px; }
.ask-mini input, .leads-tools input, .leads-tools select, textarea {
  flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  padding: 12px 16px; font: inherit; outline: none;
}
.ask-mini input:focus, .leads-tools input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.2); }

.tab { display: none; animation: fade .25s ease; }
.tab.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 22px; margin-bottom: 20px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h.sub { margin-top: 22px; }
.card h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.tag { font-size: 13px; color: var(--steel); background: rgba(201,211,225,.08); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 99px; white-space: nowrap; }

.grid-today { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-today .card { margin: 0; }
.span3 { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stack { display: grid; grid-template-columns: 1fr; gap: 0; }
#reminders { max-height: 560px; overflow-y: auto; padding-right: 6px; }
.leads td.co .meta a { color: var(--muted); font-weight: 400; }
.leads td.co .meta a:hover { color: #8fb1ff; }

.timeline, .list, .feed { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 10px var(--glow); }
.meta { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; background: rgba(47,107,255,.15); color: #9cb8ff; margin-right: 6px; }
.pill.desktop { background: rgba(46,229,157,.12); color: var(--ok); }
.pill.gray { background: rgba(201,211,225,.1); color: var(--steel); }
.pill.warn { background: rgba(255,194,75,.14); color: var(--warn); }

.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.list .when { color: #9cb8ff; font-weight: 700; font-size: 15px; }
.empty { color: var(--muted); padding: 10px 0; }

.feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feed li { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.feed .who { font-weight: 700; }
.feed .txt { margin-top: 4px; color: #dbe3f1; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Jobs */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.job { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.job h3 { margin: 0; font-size: 19px; }
.job .last { color: #dbe3f1; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.job .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Tables */
.tbl-wrap { overflow: auto; max-height: calc(100vh - 290px); border-radius: 12px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
  padding: 10px 10px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: rgba(47,107,255,.06); }
.tbl .open { background: none; border: 1px solid #36507e; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tbl .open:hover { border-color: var(--blue); }
.leads th { cursor: pointer; user-select: none; }
.leads th:hover { color: #fff; }
.leads th.sorted::after { content: " \25BE"; color: var(--blue); }
.leads th.sorted.asc::after { content: " \25B4"; }
.leads td.co { font-weight: 700; min-width: 200px; }
.leads td.ph a { white-space: nowrap; font-weight: 700; color: #fff; background: rgba(47,107,255,.18); border: 1px solid rgba(47,107,255,.5);
  padding: 4px 10px; border-radius: 8px; display: inline-block; }
.leads td.ph a:hover { background: var(--blue); text-decoration: none; }
.stars { color: var(--warn); font-weight: 700; white-space: nowrap; }
.leads-tools { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.leads-tools select { flex: 0 0 200px; }

/* Talk */
.talk { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.quick { display: grid; gap: 12px; }
.qa { text-align: left; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; transition: .15s; }
.qa b { font-size: 18px; }
.qa span { color: var(--muted); font-size: 14px; }
.qa:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.qa.go { border-color: rgba(47,107,255,.5); background: linear-gradient(180deg, rgba(47,107,255,.22), rgba(47,107,255,.06)); }
.chat { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 480px; margin: 0; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 14px; }
.msg { max-width: 78%; padding: 12px 16px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; font-size: 17px; }
.msg .meta { font-size: 12px; margin-top: 6px; }
.msg.keith { align-self: flex-end; background: linear-gradient(180deg, var(--blue), var(--blue2)); border-bottom-right-radius: 4px; }
.msg.keith .meta { color: #d6e2ff; }
.msg.kevin { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.kevin.err { border-color: var(--bad); }
.msg.think { color: var(--muted); font-style: italic; }
.dots::after { content: ""; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.composer { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.composer textarea { resize: none; font-size: 17px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.hello-kevin { margin: auto; text-align: center; color: var(--muted); max-width: 420px; }
.hello-kevin b { color: var(--text); font-size: 22px; display: block; margin-bottom: 6px; }

/* Drop */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  min-height: 420px; border: 2px dashed #36507e; border-radius: 20px; background: rgba(47,107,255,.04); cursor: pointer; padding: 30px; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: rgba(47,107,255,.12); box-shadow: 0 0 40px var(--glow) inset; }
.drop-ico { font-size: 60px; color: var(--blue); line-height: 1; }
.drop-big { font-size: 26px; font-weight: 700; }
.drop-small { color: var(--muted); max-width: 420px; }
.drop-msg { min-height: 28px; font-weight: 700; color: var(--ok); }
.drop-msg.err { color: var(--bad); }

.side-btns { display: grid; gap: 10px; }
.slack-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0;
  background: conic-gradient(#e01e5a 0 25%, #36c5f0 0 50%, #2eb67d 0 75%, #ecb22e 0); }
.quick { gap: 8px; }
.qa { padding: 11px 14px; }
.qa b { font-size: 16px; }
.qa span { font-size: 13px; }
.qa-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin: 6px 2px -4px; }
.quick { max-height: calc(100vh - 170px); overflow-y: auto; padding-right: 4px; }
.msg.note { align-self: center; max-width: 90%; background: rgba(46,229,157,.08); border: 1px solid rgba(46,229,157,.35);
  color: #c9f7e3; font-size: 15px; padding: 8px 14px; border-radius: 99px; }
.msg.note .meta { display: none; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 22px 26px; border-radius: var(--r); border: 1px solid rgba(47,107,255,.55);
  background: radial-gradient(600px 200px at 0% 0%, rgba(47,107,255,.35), transparent 70%), linear-gradient(90deg, #10224a, #0d1830);
  box-shadow: 0 10px 40px rgba(47,107,255,.18); }
.promo-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #9cb8ff; font-weight: 700; }
.promo h2 { margin: 2px 0 4px; font-family: "Bebas", "Montserrat", sans-serif; font-size: 36px; letter-spacing: .03em; font-weight: 700; }
.promo p { margin: 0; color: #dbe3f1; max-width: 640px; font-size: 18px; }
.promo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-btns .btn { padding: 13px 22px; font-size: 17px; }
.email-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.email-btns { display: flex; gap: 10px; }
.email-btns a.btn { display: inline-block; text-decoration: none; }
.eyebrow-sm { font-size: 13px; color: var(--steel); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat b { display: block; font-family: "Bebas", "Montserrat", sans-serif; font-size: 44px; line-height: 1; letter-spacing: .02em; }
.stat span { color: var(--muted); font-size: 14px; }
.stat.hot b { color: #8fb1ff; } .stat.warn b { color: var(--warn); } .stat.ok b { color: var(--ok); }
.mail { list-style: none; margin: 0; padding: 0; }
.mail li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mail li:last-child { border: 0; }
.mail .who { font-weight: 700; } .mail .subj { color: #dbe3f1; }
.mail .sum { grid-column: 1 / -1; color: var(--text); font-size: 16px; }
.mail .right { text-align: right; white-space: nowrap; color: var(--muted); font-size: 14px; }
.mail .right a { display: inline-block; margin-top: 4px; font-weight: 700; }
.rescue { border-color: rgba(255,194,75,.45); }
.ib-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ib-pill { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-weight: 700; }
.ib-pill b { color: #8fb1ff; font-size: 20px; margin-right: 6px; }
@media (max-width: 1150px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.nav-badge:not(:empty) { margin-left: auto; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800;
  min-width: 24px; height: 24px; border-radius: 12px; display: inline-grid; place-items: center; padding: 0 7px; }
.br-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.br-grid .card { margin: 0; }
.cal-day { margin-bottom: 10px; } .cal-day h3 { margin: 0 0 6px; font-size: 15px; color: #9cb8ff; letter-spacing: .04em; }
.cal-ev { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cal-ev:last-child { border: 0; } .cal-ev .t { color: var(--muted); font-size: 15px; }
.drafts-card { border-color: rgba(47,107,255,.5); }
.draft { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.draft .why { color: #c9f7e3; font-size: 15px; margin-bottom: 10px; }
.draft .orig { color: var(--muted); font-size: 14px; border-left: 3px solid var(--line); padding-left: 10px; margin: 0 0 10px; white-space: pre-wrap; max-height: 120px; overflow: auto; }
.draft label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin: 8px 0 4px; }
.draft input, .draft textarea, .form-row input, .form-row select, .claim-form input, .claim-form select, .claim-form textarea, .deny-row input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font: inherit; outline: none; }
.draft textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.draft input:focus, .draft textarea:focus, .form-row input:focus, .claim-form input:focus, .claim-form textarea:focus { border-color: var(--blue); }
.draft-btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.btn.deny { background: transparent; border: 1px solid rgba(255,93,108,.6); color: #ffb3bb; box-shadow: none; }
.deny-row { display: none; gap: 8px; margin-top: 10px; } .deny-row.on { display: flex; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.person { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.person h3 { margin: 0; font-size: 20px; } .person .role { color: #9cb8ff; font-weight: 600; font-size: 14px; }
.person .sec { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin: 12px 0 4px; }
.person ul { margin: 0; padding-left: 18px; } .person li { margin: 3px 0; font-size: 15px; }
.form-row { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 2fr auto; gap: 8px; margin-bottom: 16px; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.col { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 120px; }
.col h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.task { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.task b { display: block; } .task .row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.task select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 14px; }
.task .x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 14px; }
.task.overdue { border-color: rgba(255,93,108,.6); }
.claim { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 20px; }
.claim-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.claim h2 { margin: 0; font-size: 22px; }
.claim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; font-size: 15px; } .kv span { color: var(--muted); }
.check li { list-style: none; margin: 4px 0; } .check { padding: 0; margin: 0; }
.check .ok { color: var(--ok); font-weight: 800; margin-right: 6px; } .check .no { color: var(--warn); font-weight: 800; margin-right: 6px; }
.confirm-flag { background: rgba(255,194,75,.14); color: var(--warn); border: 1px solid rgba(255,194,75,.45); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.claim-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.claim-form label { font-size: 13px; color: var(--steel); font-weight: 600; display: grid; gap: 4px; } .claim-form .wide { grid-column: 1 / -1; }
.docs-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin-top: 6px; font-size: 14px; }
.docs-pick label { display: flex; gap: 8px; align-items: center; color: var(--text); font-weight: 400; }
.docs-pick input { width: auto; }
.modal { position: fixed; inset: 0; background: rgba(3,6,12,.72); display: grid; place-items: center; z-index: 50; }
.modal[hidden] { display: none; }
.modal-box { background: #0f1829; border: 1px solid var(--blue); border-radius: 18px; padding: 24px; width: min(720px, 92vw); max-height: 86vh; overflow: auto; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.modal-box h2 { margin: 0 0 12px; } .modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal pre { white-space: pre-wrap; font-size: 12px; background: #070b14; border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 260px; overflow: auto; }
.testmode { background: rgba(255,194,75,.14); color: var(--warn); border: 1px solid rgba(255,194,75,.45); padding: 8px 12px; border-radius: 10px; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 1150px) { .br-grid, .people, .board, .claim-grid { grid-template-columns: 1fr; } .form-row, .claim-form { grid-template-columns: 1fr; } }
.claim-grid a { word-break: break-all; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(30px); opacity: 0;
  background: #142443; border: 1px solid var(--blue); padding: 12px 20px; border-radius: 12px; transition: .25s; pointer-events: none; font-weight: 600; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1150px) {
  .grid-today, .split, .talk { grid-template-columns: 1fr; }
  .feed { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  main { padding: 16px; }
}


/* ---------- v8 Team tab: org chart in the AI Remote Operations layout ---------- */
.org-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.org-stats span { font-size: 14px; color: var(--muted); background: rgba(47,107,255,.08); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-family: "SF Mono", ui-monospace, Menlo, monospace; }
.org-stats b { color: #8fb1ff; font-size: 16px; margin-right: 4px; }
.org-stage { position: relative; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(circle at 1px 1px, rgba(143,177,255,.12) 1px, transparent 0) 0 0/28px 28px,
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,194,75,.07), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(47,107,255,.16), transparent 70%),
    var(--bg);
  box-shadow: inset 0 0 90px rgba(47,107,255,.07), 0 14px 50px rgba(0,0,0,.4); }
.org-stage::before { content: ""; position: absolute; inset: -50%; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%, rgba(47,107,255,.06), transparent 14%, transparent 86%, rgba(255,194,75,.035));
  animation: org-sweep 34s linear infinite; }
@keyframes org-sweep { to { transform: rotate(360deg); } }
.org-tree { position: relative; padding: 30px 28px 34px; display: flex; flex-direction: column; align-items: center; transition: padding .2s;
  --nw: clamp(140px, 10vw, 230px); --cg: clamp(24px, 2.5vw, 72px); }
.org-stage.has-panel .org-tree { padding-right: 490px; }
.org-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.ol-dash path { fill: none; stroke: #8193b6; stroke-width: 1.6; stroke-opacity: .85; stroke-dasharray: 6 5; animation: ol-march 1.4s linear infinite; }
@keyframes ol-march { to { stroke-dashoffset: -11; } }

/* tier legend (top left) */
.och-legend { position: absolute; left: 22px; top: 18px; z-index: 1; display: flex; flex-direction: column; gap: 7px; }
.och-legend span { display: flex; align-items: center; gap: 8px; font: 700 11.5px "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: #c9d3e1; }
.och-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* tiers */
.och-row { position: relative; z-index: 1; display: flex; justify-content: center; width: 100%; }
.och-row.t-owner { margin-bottom: 44px; }
.och-row.t-cos { margin-bottom: 52px; }
.och-row.t-leads { gap: var(--cg); align-items: flex-start; }
.och-col { display: flex; flex-direction: column; align-items: center; }
.och-ais { display: grid; grid-template-columns: repeat(2, var(--nw)); column-gap: 16px; row-gap: 40px; margin-top: 44px; justify-items: center; }
.och-ais:has(> .ocn:only-child) { grid-template-columns: var(--nw); }
.och-ais:empty { display: none; }

/* node = photo ring + name pill (reference: AI Remote Operations chart) */
.ocn { position: relative; width: var(--nw); display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; outline: none;
  --s: clamp(54px, 3.6vw, 80px); transition: transform .18s ease; }
.ocn.k-owner { --s: clamp(74px, 4.8vw, 106px); width: calc(var(--nw) * 1.35); }
.ocn.k-cos { --s: clamp(80px, 5.2vw, 116px); width: calc(var(--nw) * 2); }
.ocn.k-human { --s: clamp(64px, 4.3vw, 96px); width: calc(var(--nw) * 1.3); }
.ocn .ring { position: relative; width: var(--s); height: var(--s); border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 22px color-mix(in srgb, var(--c1) 45%, transparent), 0 10px 22px rgba(0,0,0,.45); transition: box-shadow .18s ease; }
.ocn .ring img, .ocn .ring .ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #0b1220; display: flex; align-items: center;
  justify-content: center; background: radial-gradient(circle at 35% 30%, #22345a, #0a1122 80%); color: #fff; font: 700 calc(var(--s) * .32) "Montserrat", -apple-system, sans-serif; letter-spacing: .02em; }
.ocn.k-human .ring .ini { color: #6ee7b7; }
.ocn.k-owner .ring .ini { color: #9fd8ff; }
.ocn.k-cos .ring { animation: on-halo 2.8s ease-in-out infinite; }
@keyframes on-halo { 0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 18px rgba(255,194,75,.35), 0 10px 22px rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 40px rgba(255,194,75,.7), 0 10px 22px rgba(0,0,0,.45); } }
.ocn .live { position: absolute; right: 2px; bottom: 3px; width: calc(var(--s) * .2); height: calc(var(--s) * .2); max-width: 16px; max-height: 16px; min-width: 11px; min-height: 11px;
  border-radius: 50%; background: var(--ok); border: 2px solid #0b1220; box-shadow: 0 0 8px var(--ok); animation: org-pulse 1.9s ease-in-out infinite; }
@keyframes org-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.ocn .lab { position: relative; margin-top: -8px; max-width: 100%; padding: 5px 10px 6px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.ocn .lab b { display: block; font-weight: 800; font-size: clamp(12.5px, .8vw, 17px); line-height: 1.18; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.ocn .lab span { display: block; font-weight: 700; font-size: clamp(10.5px, .64vw, 14px); line-height: 1.22; opacity: .95; margin-top: 1px; }
.ocn.k-owner .lab b { font-size: clamp(15px, .98vw, 21px); } .ocn.k-owner .lab span { font-size: clamp(11.5px, .72vw, 15.5px); }
.ocn.k-cos .lab b { font-size: clamp(15.5px, 1.02vw, 22px); } .ocn.k-cos .lab span { font-size: clamp(11.5px, .72vw, 15.5px); }
.ocn.k-human .lab b { font-size: clamp(14px, .9vw, 19px); } .ocn.k-human .lab span { font-size: clamp(11px, .68vw, 14.5px); }
.ocn.k-cos .lab { color: #1a1300; } .ocn.k-cos .lab b, .ocn.k-cos .lab span { text-shadow: none; }
.on-st { display: block; margin-top: 7px; max-width: 100%; text-align: center; font-size: clamp(11px, .62vw, 13.5px); line-height: 1.25; color: #8ff0c4; }
.on-st i { display: inline-block; vertical-align: 1px; margin-right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: org-pulse 1.9s ease-in-out infinite; }
.on-st.idle { color: var(--muted); } .on-st.idle i { background: #8394b3; box-shadow: none; animation: none; }
.on-st.gold { color: #ffd98a; } .on-st.gold i { background: #ffc24b; box-shadow: 0 0 8px #ffc24b; }
.on-st.mem { margin-top: 3px; }
.on-st.hum { color: #a7f3d0; } .on-st.hum.warn { color: #ffd98a; } .on-st.hum.warn i { background: #ffc24b; box-shadow: 0 0 8px #ffc24b; }
.ocn:hover, .ocn:focus-visible { transform: translateY(-3px); }
.ocn:hover .ring, .ocn:focus-visible .ring { box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 0 34px color-mix(in srgb, var(--c1) 75%, transparent), 0 12px 26px rgba(0,0,0,.5); }
.ocn.sel .ring { box-shadow: 0 0 0 3px #fff, 0 0 40px color-mix(in srgb, var(--c1) 85%, transparent); }
.ocn.sel .lab { box-shadow: 0 0 0 2px #fff, 0 0 26px color-mix(in srgb, var(--c1) 70%, transparent); }
@media (prefers-reduced-motion: reduce) { .org-stage::before, .ol-dash path, .ocn .ring, .ocn .live, .on-st i { animation: none !important; } }

/* detail panel */
.org-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(450px, calc(100% - 28px)); overflow-y: auto;
  background: rgba(11,18,32,.95); border: 1px solid #2a3d63; border-radius: 18px; padding: 22px 22px 18px;
  backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(47,107,255,.12), 0 0 40px rgba(47,107,255,.15);
  animation: org-in .22s ease-out; z-index: 3; }
.org-panel[hidden] { display: none; }
@keyframes org-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.org-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.org-close:hover { color: #fff; border-color: var(--blue); }
.op-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; padding-right: 36px; }
.op-av { flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 22px color-mix(in srgb, var(--c1) 45%, transparent); }
.op-av img, .op-av span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0b1220; display: grid; place-items: center;
  font: 700 20px "Montserrat", sans-serif; color: #fff; background: radial-gradient(circle at 35% 30%, #22345a, #0a1122); }
.op-head h3 { margin: 0; font-size: 22px; line-height: 1.15; }
.op-tag { font: 700 11px "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.op-role { color: #9cb8ff; font-weight: 600; font-size: 15px; }
.op-sec { margin-top: 16px; }
.op-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); font-weight: 700; margin-bottom: 8px;
  padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.op-sec p { margin: 0; font-size: 15.5px; color: #dbe3f1; }
.op-sec ul { margin: 0; padding-left: 18px; } .op-sec li { margin: 4px 0; font-size: 15px; color: #dbe3f1; }
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.op-chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c, #2f6bff) 55%, transparent);
  background: color-mix(in srgb, var(--c, #2f6bff) 12%, transparent); color: var(--text); }
.op-chip:hover { background: color-mix(in srgb, var(--c, #2f6bff) 28%, transparent); }
.op-status { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; color: #8ff0c4; }
.op-status.sm { font-size: 13px; margin-top: 6px; }
.op-status .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: org-pulse 1.9s ease-in-out infinite; }
.op-skill { border: 1px solid color-mix(in srgb, var(--c) 35%, #1f2d47); border-left: 3px solid var(--c); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px; background: rgba(15,24,41,.7); }
.op-skill-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.op-skill-h b { font-size: 15.5px; } .op-skill-h span { font-size: 12.5px; color: var(--muted); text-align: right; }
.op-skill p { font-size: 14px !important; }
.op-skill-m { font-size: 13px; color: #9cb8ff; margin-top: 5px; }
@media (max-width: 1500px) { .org-stage.has-panel .org-tree { padding-right: 28px; } .org-panel { position: fixed; top: 20px; right: 20px; bottom: 20px; } }
@media (max-width: 1150px) { .och-row.t-leads { flex-wrap: wrap; row-gap: 40px; } .och-legend { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 18px; } }

/* ---------- v7 Leads tab: ready card + call script ---------- */
.leads-ready { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 26px 30px; border-radius: 20px; border: 1px solid rgba(46,229,157,.4);
  background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(46,229,157,.16), transparent 70%), linear-gradient(180deg, var(--panel), var(--bg2));
  box-shadow: 0 0 40px rgba(46,229,157,.08), 0 10px 40px rgba(0,0,0,.35); }
.lr-num { font-family: "Bebas", "Montserrat", sans-serif; font-size: 92px; line-height: .85; color: #fff; letter-spacing: .02em;
  text-shadow: 0 0 30px rgba(46,229,157,.45); }
.lr-txt { flex: 1 1 420px; min-width: 0; }
.lr-eyebrow { font: 700 12px "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--ok); }
.lr-txt h2 { margin: 4px 0 6px; font-size: 28px; }
.lr-txt p { margin: 0; color: #dbe3f1; font-size: 18px; }
.lr-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lr-stats span { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(201,211,225,.07); border: 1px solid var(--line); color: var(--muted); }
.lr-stats b { color: #fff; }
.lr-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lr-btns .btn { padding: 14px 24px; font-size: 18px; }
.sc-back { position: fixed; inset: 0; z-index: 50; background: rgba(3,6,12,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 30px; }
.sc-back[hidden] { display: none; }
.sc-modal { width: min(860px, 100%); max-height: calc(100vh - 60px); display: flex; flex-direction: column; border-radius: 20px;
  background: linear-gradient(180deg, #111c31, #0a1222); border: 1px solid #2a3d63; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 50px rgba(47,107,255,.15); }
.sc-mh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.sc-mh h2 { margin: 0; font-size: 24px; } .sc-mh .meta { margin-top: 2px; }
.sc-mb { overflow-y: auto; padding: 8px 24px 24px; }
.sc-sec { margin-top: 18px; }
.sc-h { display: flex; align-items: center; gap: 10px; font: 700 12px "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #8fb1ff; margin-bottom: 6px; }
.sc-h i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(47,107,255,.2); border: 1px solid rgba(143,177,255,.5); color: #cfe0ff; letter-spacing: 0; }
.sc-sec p { margin: 6px 0; font-size: 17px; line-height: 1.55; color: #e7edf8; }
.sc-sec .say { padding: 10px 14px; border-left: 3px solid var(--blue); background: rgba(47,107,255,.07); border-radius: 0 10px 10px 0; }
.sc-obj { margin: 8px 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15,24,41,.6); }
.sc-obj b { display: block; color: #ffd98a; font-size: 16px; margin-bottom: 4px; }
.sc-obj span { font-size: 16.5px; color: #e7edf8; }
.sc-note { font-size: 14px; color: var(--muted); }

/* ---------- v9 (11/10/2026): how-to videos, sign-in chip, editable call script ---------- */
.howto-btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-color: rgba(255,194,75,.55) !important; }
.howto-btn .play-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); color: #1a1200; font-size: 9px; }
.howto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.howto-grid .card { margin: 0; }
.howto h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.howto-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); font-size: 16px; }
.howto-frame { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.howto-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1150px) { .howto-grid { grid-template-columns: 1fr; } }
.me-card { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.me-card b { color: var(--text); }
.me-links { display: flex; gap: 14px; margin-top: 6px; }
.me-links a { color: #8fb1ff; text-decoration: none; }
.me-links a:hover { text-decoration: underline; }
body.no-send .d-approve, body.no-send .d-deny { display: none; }
body.no-send .draft-btns::before { content: "Only Keith can approve or deny emails. You can edit the draft."; color: var(--muted); font-size: 14px; }
.sc-up { cursor: pointer; display: inline-flex; align-items: center; }
.sc-extra { border-top: 1px solid var(--line); padding-top: 4px; }
.sc-extra:empty { display: none; }
.sc-x { margin-top: 16px; }
.sc-xh { font: 700 12px "SF Mono", ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #8fb1ff; margin-bottom: 8px; cursor: default; }
details.sc-x summary { cursor: pointer; }
.sc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(31,45,71,.6); flex-wrap: wrap; }
.sc-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-row-btns a.btn { text-decoration: none; }
.sc-lab { display: grid; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.sc-modal input, .sc-modal textarea { width: 100%; background: #0a1220; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5; box-sizing: border-box; }
.sc-modal textarea { resize: vertical; }
.sce-sec { margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15,24,41,.6); }
.sce-top { display: flex; gap: 10px; margin-bottom: 8px; }
.sce-top input { font-weight: 700; }
.sce-sec .x { flex: none; background: transparent; border: 1px solid rgba(255,93,108,.5); color: #ffb3bb; border-radius: 10px; padding: 0 12px; cursor: pointer; }
@media (max-width: 800px) { .sc-back { padding: 10px; } .sc-mh { flex-direction: column; align-items: flex-start; } .sc-mh .email-btns { flex-wrap: wrap; } }
.side { overflow-y: auto; scrollbar-width: thin; }
@media (max-height: 1000px) and (min-width: 801px) {
  .side { gap: 14px; padding: 16px 16px; }
  nav { gap: 2px; } nav button { padding: 9px 12px; font-size: 16px; }
  .side-btns { gap: 8px; } .side-btns .btn.wide { padding: 10px; }
}
.sc-mh .email-btns[hidden] { display: none !important; }
.sc-mh .email-btns .btn { white-space: nowrap; }
@media (max-width: 800px) {
  .side { gap: 12px; padding: 14px 16px; overflow: visible; }
  .side .logo { width: 48px; height: 48px; } .side .title { font-size: 28px; } .side .title span { font-size: 17px; }
  nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  nav button { flex: none; padding: 8px 12px; font-size: 15px; white-space: nowrap; border-color: var(--line); }
  .lights-card { display: none; }
  .side-btns { grid-template-columns: 1fr 1fr; } .side-btns .btn.wide { padding: 10px 8px; font-size: 14px; }
  .me-card { margin-top: 0; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side, main { min-width: 0; }
  .leads-ready h2, .promo h2 { overflow-wrap: anywhere; }
  .lr-num { font-size: 64px; }
}
@media (max-width: 800px) {
  .card-h { flex-wrap: wrap; } .card-h .tag { white-space: normal; overflow-wrap: anywhere; }
  nav { scrollbar-width: none; } nav::-webkit-scrollbar { display: none; }
}
