:root {
  --bg: #f5f6f8; --panel: #ffffff; --ink: #1a2230; --muted: #667085; --line: #e4e7ec;
  --brand: #4338ca; --brand-soft: #eef0ff; --ok: #0f766e; --warn: #b45309;
  --apexti: #4338ca; --presidio: #0f766e; --aws: #c2410c; --cisco: #0369a1;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
.boot { padding: 80px 20px; text-align: center; color: var(--muted); }

/* header and menu */
.top { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 10px 20px 0; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.logo { background: var(--brand); color: #fff; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 8px; font-size: 14px; }
.brand-text { flex: 1; min-width: 0; }
.brand-text b { display: block; font-size: 15px; }
.brand-text span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.me b { color: var(--ink); font-weight: 600; }
.link-btn { background: none; border: 0; color: var(--muted); padding: 4px 6px; border-radius: 6px; font-size: 13px; }
.link-btn:hover { background: var(--bg); color: var(--ink); }
.nav { display: flex; gap: 2px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; color: var(--muted); font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nav button:hover { color: var(--ink); }
.nav button.on { color: var(--brand); border-bottom-color: var(--brand); }
.nav .nav-link { margin-left: auto; padding: 9px 12px; color: var(--muted); font-weight: 500; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.nav .nav-link:hover { color: var(--ink); }
.badge { background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-size: 11.5px; padding: 0 7px; font-weight: 600; line-height: 18px; }
.lock { font-size: 11px; color: var(--warn); border: 1px solid #f3d9b1; background: #fff8ec; border-radius: 999px; padding: 0 7px; line-height: 17px; }

/* layout */
main { max-width: 1040px; margin: 0 auto; padding: 22px 20px 80px; }
.tab-note { color: var(--warn); background: #fff8ec; border: 1px solid #f3d9b1; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; font-size: 13.5px; }
.card-sec { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 12px; margin-bottom: 14px; }
.card-sec h2 { margin: 0 0 8px; font-size: 17px; }
.body p { margin: 8px 0; }
.body .lead { font-size: 16px; }
.body ul, .body ol { margin: 8px 0; padding-left: 20px; }
.body li { margin: 3px 0; }
.body h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.body th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; }
.body td { border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.body tr:last-child td { border-bottom: 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.cards3 .card { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; }
.cards3 .card b { display: block; font-size: 18px; color: var(--brand); }
.cards3 .card span { font-size: 13.5px; color: #3b4558; }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 12.5px; border-radius: 999px; padding: 2px 10px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
.who { color: #3b4558; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.flow { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: f; }
.flow li { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 14px; counter-increment: f; }
.flow li::before { content: counter(f); display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 22px; margin-bottom: 6px; }

/* discussion */
.disc { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; }
.disc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 5px 11px; font-size: 13.5px; color: var(--ink); }
.btn:hover { border-color: #c9ceda; background: var(--bg); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #372fb0; }
.btn.small { padding: 2px 8px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: default; }
.disc-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.item { display: flex; gap: 10px; padding: 10px 0 2px; }
.item.resolved { opacity: .55; }
.av { flex: 0 0 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.o-apexti { background: var(--apexti); } .o-presidio { background: var(--presidio); } .o-aws { background: var(--aws); } .o-cisco { background: var(--cisco); } .o-other { background: #667085; }
.item-main { flex: 1; min-width: 0; }
.item-head { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item-head b { color: var(--ink); }
.tag { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 0 6px; line-height: 17px; }
.tag.sug { background: #fff3d6; color: #8a5a00; }
.tag.done { background: #dcf5ee; color: var(--ok); }
.item-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 4px; }
.item-acts { display: flex; gap: 4px; }
.composer { margin-top: 10px; background: var(--bg); border-radius: 12px; padding: 10px; }
.composer textarea { width: 100%; min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; background: #fff; }
.composer-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.composer-foot .sp { flex: 1; }

/* decisions */
.dec-context { color: var(--muted); margin: 0 0 10px; }
.opt { display: block; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; color: var(--ink); }
.opt:hover { border-color: #b9bfd0; }
.opt.mine { border-color: var(--brand); background: #fafaff; box-shadow: 0 0 0 1px var(--brand) inset; }
.opt-top { display: flex; align-items: center; gap: 8px; }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9bfd0; flex: 0 0 16px; }
.opt.mine .radio { border-color: var(--brand); background: radial-gradient(var(--brand) 45%, #fff 50%); }
.opt-label { font-weight: 600; flex: 1; }
.opt-count { font-size: 12.5px; color: var(--muted); }
.opt-detail { font-size: 13.5px; color: #3b4558; margin: 3px 0 6px 24px; }
.bar { height: 5px; background: var(--bg); border-radius: 999px; margin-left: 24px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.voters { margin: 6px 0 0 24px; display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: 12px; border-radius: 999px; padding: 1px 8px; color: #fff; }
.hint { color: var(--muted); font-size: 13px; }

/* activity, admin */
.act-where { font-size: 12.5px; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.form-row input, .form-row select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font: inherit; background: #fff; min-width: 0; }
.form-row input { flex: 1 1 160px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* sign in */
.signin { max-width: 420px; margin: 9vh auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.signin h1 { font-size: 20px; margin: 12px 0 4px; }
.signin p { color: var(--muted); margin: 6px 0 12px; }
.signin .err { color: #b42318; }
.signin input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; margin-bottom: 8px; }
.signin hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1a2230; color: #fff; padding: 9px 14px; border-radius: 10px; font-size: 13.5px; z-index: 50; max-width: 90vw; }
.busy main { opacity: .6; pointer-events: none; }

@media (max-width: 720px) {
  .cards3, .cols2, .flow { grid-template-columns: 1fr; }
  .me b { display: none; }
  .card-sec { padding: 14px 14px 10px; }
  .body table { font-size: 13px; }
}
