/* Hosted edition: brief, calendar strip, scoreboard, health, pipeline board, feed, voice, 2FA. */
.cont h1 { font-size: 22px; margin: 0 0 4px; color: var(--navy); }
.cont > .c, .cont > .kpis, .cont > .two, .cont > .board, .cont > .hgrid, .cont > .chips, .cont > details.c { margin-top: 14px; }
.callout.gap { background: #FFF6E8; color: #7A4B0E; border: 1px solid #F6D9A8; margin-top: 12px; }
.src { margin-top: 10px; }
.lg i.navy { background: #0B1F3A; } .lg i.gold { background: #F2A33A; } .lg i.sky { background: #7C9CC9; } .lg i.soft { background: #C9D4E6; }
.lg { display: inline-flex; gap: 12px; } .lg span { display: inline-flex; align-items: center; }

/* 1) brief */
.brief { margin-bottom: 14px; }
.brief-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.brief-head h2 { font-size: 20px; }
.brief-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
.brief-list { list-style: none; counter-reset: b; }
.brief-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.brief-item:first-child { border-top: 0; }
.brief-item .it { font-size: 14px; font-weight: 600; line-height: 1.35; }
.brief-item .it small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.brief-item .bt { display: flex; gap: 6px; }
.brief-item .result { grid-column: 1 / -1; font-size: 12.5px; }
.fires { list-style: none; }
.fires li { font-size: 13px; padding: 6px 0 6px 18px; border-top: 1px solid var(--line); position: relative; line-height: 1.35; }
.fires li:first-child { border-top: 0; }
.fires li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--neg); }

/* 10) calendar strip */
.calstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.calchip { flex: none; scroll-snap-align: start; min-width: 170px; max-width: 230px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sky);
  border-radius: 10px; padding: 8px 10px; text-decoration: none; color: var(--ink); font-size: 12.5px; line-height: 1.3; }
.calchip b { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.calchip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.calchip.k-training { border-left-color: var(--ok); } .calchip.k-renewal { border-left-color: var(--neg); }
.calchip.k-event { border-left-color: var(--acc); } .calchip.k-calls { border-left-color: var(--navy); }
.calchip.more { min-width: 90px; border-left-color: var(--line-2); }
.cal-list { list-style: none; } .cal-list li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cal-list li:first-child { border-top: 0; } .cal-list small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.pill.k-training { background: #E8F8EE; color: #1f6b3a; } .pill.k-renewal { background: #FDECEC; color: var(--neg); }
.pill.k-calls, .pill.k-deadline { background: #EEF3FA; color: var(--navy); }

/* 3) scoreboard / 8) money */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 4) health */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  font-size: 13px; text-decoration: none; color: var(--ink); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.hcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; border-top: 4px solid var(--line-2); }
.hcard.h-red { border-top-color: var(--neg); } .hcard.h-yellow { border-top-color: var(--acc); } .hcard.h-green { border-top-color: var(--ok); }
.hcard summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hcard summary::-webkit-details-marker { display: none; }
.hcard summary .sm { margin: 0 0 0 auto; }
.reasons { margin: 8px 0 0 18px; font-size: 13px; line-height: 1.4; }

/* 5) pipeline board */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.pcol { background: #EAF0F7; border-radius: 12px; padding: 10px; min-height: 120px; }
.pcol-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); display: flex; justify-content: space-between; margin-bottom: 8px; }
.pcol-h span { background: #fff; border-radius: 10px; padding: 0 8px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 13.5px; }
.pcard small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }

/* 6) feed / 7) friday */
.feed { list-style: none; } .feed li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.feed li:first-child { border-top: 0; } .feed .t { color: var(--faint); font-size: 11.5px; margin-right: 8px; }
.feed li.fi-stuck { color: var(--neg); } .feed li.fi-decision { color: #1f6b3a; }
.preview.md { max-height: 70vh; overflow: auto; font-size: 13px; line-height: 1.5; }
.steps { margin: 8px 0 8px 20px; font-size: 14px; line-height: 1.6; }

/* 9) voice */
.mic { position: fixed; right: 18px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; border: 0;
  background: var(--acc); color: var(--navy); font-size: 22px; box-shadow: 0 6px 18px rgba(11,31,58,.25); cursor: pointer; }
.voice { position: fixed; inset: 0; z-index: 60; background: rgba(11,31,58,.45); display: flex; align-items: flex-end; justify-content: center; }
.voice[hidden] { display: none; }
.voice-card { background: #fff; width: min(560px, 100%); border-radius: 16px 16px 0 0; padding: 18px; max-height: 80vh; overflow: auto; }
.voice-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.voice-heard { font-size: 17px; font-weight: 600; margin: 10px 0; min-height: 1.4em; }
.vm { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vm small { display: block; color: var(--muted); font-size: 12px; } .vm.alt { opacity: .8; }
.voice .actions { display: flex; gap: 8px; margin-top: 12px; }

/* 2FA */
.qr { background: #fff; padding: 8px; width: 220px; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.qr svg { width: 100%; height: auto; display: block; }
.setup-key { display: block; font-size: 15px; letter-spacing: .08em; margin: 8px 0; word-break: break-all; }
.code-input { font-size: 24px !important; letter-spacing: .3em; text-align: center; }
.live.stale .dot { background: var(--acc) !important; }

@media (max-width: 900px) {
  .brief-grid, .two { grid-template-columns: 1fr; }
  .kpis, .kpis.four { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(4, 78vw); scroll-snap-type: x mandatory; }
  .pcol { scroll-snap-align: start; }
  .mic { bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; }
  .brief-item { grid-template-columns: 1fr; }
  .voice-card { border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) { .kpis, .kpis.four { grid-template-columns: 1fr; } }
span.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--line-2); }
span.dot.ok { background: var(--ok); } span.dot.warn { background: var(--acc); } span.dot.bad { background: var(--neg); }
.hcard summary .why { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
