/* Samvidhi Shield 2.0 — the new look. Loaded after styles.css; everything here builds on its tokens. */
:root {
  --side: 256px;
  --nav-bg: #0d1b33; --nav-bg-2: #12264a; --nav-ink: #c9d4e6; --nav-ink-2: #7f93b5; --nav-active: #1f6feb;
  --bg: #f4f6fa;
  --violet: #6d4ddb; --violet-bg: #efeafd; --teal: #0e8a8a; --teal-bg: #e2f4f4;
  --r: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 2px 6px rgba(15, 27, 45, .04);
}
body.signed-in { background: var(--bg); }

/* ------------------------------------------------------------------ sidebar */
.side { background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%); color: var(--nav-ink); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.side-brand { padding: 16px 16px 8px; }
.side-plan { margin: 4px 14px 6px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #dbe4f3; display: flex; align-items: center; gap: 8px; }
.side-plan i { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 3px rgba(63,185,80,.2); }
.side-plan.free i { background: #8fa3c2; box-shadow: none; }
.nav-sec { padding: 16px 12px 5px; font-size: 10.5px; color: var(--nav-ink-2); letter-spacing: .1em; }
.nav-item { padding: 7px 10px; font-size: 13.5px; color: var(--nav-ink); gap: 10px; border-radius: 8px; }
.nav-item .ic { opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.07); }
.nav-item.active { background: var(--nav-active); color: #fff; box-shadow: 0 4px 14px rgba(31,111,235,.35); }
.nav-item.active .ic { opacity: 1; }
.nav-count { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; line-height: 18px; }
.nav-count.crit { background: #d03b3b; }

/* ------------------------------------------------------------------ top bar */
.topbar { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); gap: 14px; padding: 0 22px; }
.topbar h1 { flex: 0 1 auto; font-size: 17px; }
.gsearch { flex: 1; max-width: 520px; position: relative; margin-left: 10px; }
.gsearch input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fb; padding: 0 70px 0 36px; font-size: 13.5px; }
.gsearch input:focus { background: #fff; border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.gsearch > .ic { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.gsearch kbd { position: absolute; right: 10px; top: 9px; font: 600 11px/18px var(--font); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.gs-pop { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 70vh; overflow: auto; z-index: 60; padding: 6px; }
.gs-pop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.gs-pop a:hover, .gs-pop a.hl { background: var(--accent-soft); }
.gs-pop a b { display: block; font-size: 13.5px; font-weight: 600; }
.gs-pop a small { color: var(--muted); }
.gs-pop .gs-k { margin-left: auto; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.gs-pop .gs-sec { padding: 8px 10px 2px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.np { position: absolute; right: 0; top: 46px; width: min(400px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
.np-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.np-list { max-height: 60vh; overflow: auto; }
.np-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.np-item:hover { background: var(--zebra); }
.np-item.unread { background: #f6f9ff; }
.np-item .lv { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--accent); }
.np-item .lv.crit { background: var(--crit); } .np-item .lv.warn { background: var(--warn); } .np-item .lv.good { background: var(--good); }
.np-item b { display: block; font-size: 13.5px; } .np-item small { color: var(--ink-2); }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--ink); }
.user-chip small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.2; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip b { display: block; font-size: 13px; line-height: 1.2; }

/* ------------------------------------------------------------------ page parts */
.view { max-width: 1360px; padding: 20px 26px 30px; }
.ph { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ph .ph-t { flex: 1; min-width: 240px; }
.ph h2 { font-size: 21px; margin: 0 0 3px; display: flex; align-items: center; gap: 8px; }
.ph p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 820px; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag-dsr { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--violet-bg); color: var(--violet); letter-spacing: .03em; }
.btn.howto { background: var(--violet-bg); color: var(--violet); border-color: transparent; }
.btn.howto:hover { background: #e4dcfb; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpis.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px 12px; box-shadow: var(--shadow); display: grid; gap: 1px; align-content: start; min-height: 92px; text-decoration: none !important; color: var(--ink); }
a.kpi:hover, button.kpi:hover { border-color: #c7d3e6; }
button.kpi { text-align: left; font: inherit; cursor: pointer; }
.kpi .k-l { font-size: 12px; color: var(--ink-2); font-weight: 600; padding-right: 30px; line-height: 1.3; }
.kpi .k-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-s { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.kpi .k-i { position: absolute; top: 11px; right: 11px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi.good .k-i { background: var(--good-bg); color: var(--good-ink); } .kpi.warn .k-i { background: var(--warn-bg); color: var(--warn-ink); }
.kpi.crit .k-i { background: var(--crit-bg); color: var(--crit-ink); } .kpi.violet .k-i { background: var(--violet-bg); color: var(--violet); }
.kpi.teal .k-i { background: var(--teal-bg); color: var(--teal); } .kpi.neutral .k-i { background: var(--zebra); color: var(--ink-2); }
.kpi.crit .k-v { color: var(--crit-ink); } .kpi.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.callout { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 14px; color: #fff; background: linear-gradient(90deg, #0f8a4b, #18a85c); }
.callout b { display: block; font-size: 15px; } .callout span { opacity: .92; font-size: 13px; }
.callout.warn { background: linear-gradient(90deg, #b26b00, #d98a0b); } .callout.crit { background: linear-gradient(90deg, #a32020, #cf3a3a); }
.callout.info { background: linear-gradient(90deg, #1c4f8f, #2a78d6); }
.note-bar { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--info-ink); font-size: 13.5px; margin-bottom: 14px; border: 1px solid #d5e3f7; }
.note-bar.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #f5e2b0; } .note-bar.crit { background: var(--crit-bg); color: var(--crit-ink); border-color: #f2c9c9; }
.note-bar.good { background: var(--good-bg); color: var(--good-ink); border-color: #cbe8cb; }
.note-bar .grow b { display: block; }

.tabs2 { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs2 button { border: 0; background: none; padding: 9px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs2 button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs2 .cnt { font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--zebra); color: var(--ink-2); line-height: 18px; }
.tabs2 button.on .cnt { background: var(--accent-soft); color: var(--accent); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pills button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pills button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pills button .cnt { opacity: .8; font-weight: 700; }

.fbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.fbar .f { display: grid; gap: 3px; }
.fbar .f label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fbar select, .fbar input[type=search], .fbar input[type=text], .fbar input[type=date] { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; font-size: 13px; background: #fff; min-width: 140px; }
.fbar input[type=search] { min-width: 220px; }
.fbar .f.grow input { width: 100%; }
.fbar .chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; height: 34px; color: var(--ink-2); }

.t2-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; }
.t2 { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t2 th { position: sticky; top: 0; background: #fafbfd; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t2 td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t2 tbody tr:last-child td { border-bottom: 0; }
.t2 tbody tr.click { cursor: pointer; } .t2 tbody tr.click:hover td { background: #f8faff; }
.t2 td.num, .t2 th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t2 .sub { display: block; color: var(--muted); font-size: 12px; }
.t2 .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.t2-foot { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); }
.yes { color: var(--good-ink); font-weight: 700; } .no { color: var(--crit-ink); font-weight: 700; }
.chipx { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--zebra); color: var(--ink-2); border: 1px solid var(--line-2); margin: 1px 2px 1px 0; white-space: nowrap; }
.chipx.good { background: var(--good-bg); color: var(--good-ink); border-color: #cfe9cf; } .chipx.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #f4e1ac; }
.chipx.crit { background: var(--crit-bg); color: var(--crit-ink); border-color: #f1caca; } .chipx.brand { background: var(--accent-soft); color: var(--info-ink); border-color: #d6e4f7; }
.chipx.violet { background: var(--violet-bg); color: var(--violet); border-color: #ddd3fa; } .chipx.teal { background: var(--teal-bg); color: var(--teal); border-color: #c9e7e7; }
.dotl { display: inline-flex; align-items: center; gap: 6px; } .dotl i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dotl.good i { background: var(--good); } .dotl.warn i { background: var(--warn); } .dotl.crit i { background: var(--crit); } .dotl.brand i { background: var(--accent); }

/* code blocks and install tabs */
.codebox { position: relative; background: #0f1b2d; color: #d6e2f5; border-radius: 10px; padding: 14px 16px; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; margin: 8px 0 12px; max-height: 340px; overflow: auto; }
.codebox .cb-copy { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; font-size: 12px; padding: 3px 9px; cursor: pointer; }
.codebox .c-cm { color: #7f93b5; } .codebox .c-tg { color: #79c0ff; } .codebox .c-at { color: #ffa657; } .codebox .c-st { color: #a5d6ff; }
.steps-v { counter-reset: st; display: grid; gap: 14px; margin: 6px 0; }
.steps-v > div { position: relative; padding-left: 36px; }
.steps-v > div::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.steps-v h4 { margin: 2px 0 4px; font-size: 14px; }

/* wizard (domain set-up) */
.wiz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 16px; }
.wiz div { text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 34px; }
.wiz div::before { content: attr(data-n); position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.wiz div.done::before { content: '✓'; background: var(--good); border-color: var(--good); color: #fff; }
.wiz div.on { color: var(--accent); font-weight: 700; } .wiz div.on::before { border-color: var(--accent); background: var(--accent); color: #fff; }

/* drawer (right-hand detail panel) */
.drawer-back { position: fixed; inset: 0; z-index: 80; background: rgba(15, 27, 45, .35); opacity: 0; transition: opacity .18s; }
.drawer-back.in { opacity: 1; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(30px); transition: transform .2s; }
.drawer.wide { width: min(860px, 100%); }
.drawer-back.in .drawer { transform: none; }
.drawer-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.drawer-head h3 { margin: 0; font-size: 17px; } .drawer-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.drawer-head .tabs2 { margin: 10px 0 -11px; border: 0; }
.drawer-body { padding: 16px 18px; overflow: auto; flex: 1; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0 0 14px; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; word-break: break-word; }
.dsec { margin: 16px 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dbox { background: var(--zebra); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 14px 22px; }
.tl li::before { content: ''; position: absolute; left: 5px; top: 7px; bottom: -7px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.tl li.good::after { border-color: var(--good); } .tl li.crit::after { border-color: var(--crit); } .tl li.warn::after { border-color: var(--warn); }
.tl .tl-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .tl .tl-h b { font-size: 13px; }
.tl .tl-b { font-size: 12.5px; color: var(--ink-2); }

/* rings, stepper, progress */
.ring { display: inline-grid; place-items: center; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .rv { position: absolute; font-weight: 700; font-size: 14px; }
.sla { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.sla .sl-l { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.sla .sl-v { font-size: 17px; font-weight: 700; } .sla .sl-s { font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 0; margin: 14px 0; overflow-x: auto; padding-bottom: 2px; }
.stepper .st { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stepper .st i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 12px; background: #fff; }
.stepper .st.done { color: var(--ink); } .stepper .st.done i { background: var(--good); border-color: var(--good); color: #fff; }
.stepper .st.on { color: var(--accent); } .stepper .st.on i { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper .ln { flex: 1; min-width: 18px; height: 2px; background: var(--line); margin: 0 8px; }
.stepper .ln.done { background: var(--good); }
.pbar { display: flex; gap: 3px; } .pbar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .pbar i.on { background: var(--accent); } .pbar i.done { background: var(--good); }
.meter { display: flex; align-items: center; gap: 8px; } .meter .bar { flex: 1; min-width: 60px; }

/* board (kanban) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.bcol { background: #eef2f8; border-radius: 12px; padding: 8px; min-height: 140px; }
.bcol h4 { margin: 2px 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); display: flex; justify-content: space-between; }
.bcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; font: inherit; color: var(--ink); }
.bcard:hover { border-color: #c7d3e6; }
.bcard b { font-size: 13px; } .bcard small { display: block; color: var(--muted); font-size: 11.5px; }
.bcard .due { font-size: 11.5px; font-weight: 700; }

/* request cards (list view) */
.rq { display: grid; grid-template-columns: 92px 1fr 220px 170px auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.rq .left { font-weight: 700; font-size: 15px; line-height: 1.1; } .rq .left small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.rq .left.crit { color: var(--crit-ink); } .rq .left.warn { color: var(--warn-ink); }
.rq .t b { font-size: 14px; margin-right: 6px; } .rq .t small { display: block; color: var(--muted); font-size: 12px; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hb { display: grid; grid-template-columns: 140px 1fr 46px; gap: 8px; align-items: center; font-size: 12.5px; margin: 5px 0; }
.hb .hb-t { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; } .hb .hb-f { height: 100%; border-radius: 4px; background: var(--accent); }
.donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* cards grid (hub, agents) */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.ccard .cc-h { display: flex; gap: 10px; align-items: center; }
.ccard .cc-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ccard .cc-i.violet { background: var(--violet-bg); color: var(--violet); } .ccard .cc-i.teal { background: var(--teal-bg); color: var(--teal); }
.ccard .cc-i.good { background: var(--good-bg); color: var(--good-ink); } .ccard .cc-i.warn { background: var(--warn-bg); color: var(--warn-ink); } .ccard .cc-i.crit { background: var(--crit-bg); color: var(--crit-ink); }
.ccard h4 { margin: 0; font-size: 14.5px; } .ccard p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.ccard .cc-f { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; }
.ccard ul.ok { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.ccard ul.ok li { padding-left: 20px; position: relative; margin: 3px 0; }
.ccard ul.ok li::before { content: '✓'; position: absolute; left: 2px; color: var(--good); font-weight: 700; }

/* progress steps (legacy) */
.psteps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pstep { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--ink-2); }
.pstep b { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink); margin-bottom: 4px; }
.pstep b i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--zebra); border: 1px solid var(--line); flex: none; }
.pstep.done { background: #f2faf3; border-color: #cfe9d2; } .pstep.done b i { background: var(--good); border-color: var(--good); color: #fff; }
.pstep.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .pstep.on b i { background: var(--accent); border-color: var(--accent); color: #fff; }

/* how-to guide */
.howto-stage { display: grid; grid-template-columns: 220px 1fr; gap: 16px; background: linear-gradient(135deg, #f4f1ff, #eef5ff); border-radius: 12px; padding: 18px; min-height: 230px; }
.howto-stage .hs-l small { color: var(--violet); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.howto-stage .hs-l h3 { font-size: 20px; margin: 6px 0; }
.howto-stage .hs-l p { font-size: 13px; color: var(--ink-2); }
.howto-stage .hs-r { background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 14px; font-size: 13px; }
.howto-dots { display: flex; gap: 5px; margin-top: 12px; } .howto-dots i { width: 18px; height: 4px; border-radius: 2px; background: #d9d2f5; } .howto-dots i.on { background: var(--violet); }

/* misc */
.two-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flowmap { width: 100%; height: auto; }
.flowmap text { font: 12px var(--font); fill: var(--ink); }
.flowmap .fm-sub { font-size: 10.5px; fill: var(--muted); }
.ok-list { margin: 0; padding: 0; list-style: none; } .ok-list li { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; display: flex; gap: 8px; }
.ok-list li:last-child { border-bottom: 0; }
.preview-site { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; position: relative; min-height: 360px; }
.preview-site .ps-bar { height: 28px; background: #eef1f6; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.preview-site .ps-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e3; }
.preview-site .ps-url { margin-left: 8px; font-size: 11.5px; color: var(--muted); }
.preview-site .ps-body { position: relative; height: 420px; background: repeating-linear-gradient(0deg, #fff, #fff 34px, #f6f8fb 34px, #f6f8fb 36px); }
.preview-site .ps-body .ps-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #b4bdcb; font-size: 13px; }
.layout-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.layout-pick label { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.layout-pick label svg { display: block; margin: 0 auto 4px; }
.layout-pick input { display: none; }
.layout-pick label.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-row .fld { margin: 0; } .swatch-row input[type=color] { width: 120px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

@media (max-width: 1180px) {
  .kpis.k6, .kpis.k7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .psteps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rq { grid-template-columns: 80px 1fr 180px auto; } .rq .rq-own { display: none; }
}
@media (max-width: 1023px) {
  .gsearch { max-width: none; } .gsearch kbd { display: none; } .user-chip span { display: none; }
  .two-1, .three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .view { padding: 14px 14px 90px; }
  .topbar { padding: 0 12px; gap: 8px; } .topbar h1 { display: none; }
  .gsearch { margin-left: 0; } .gsearch input { padding-right: 10px; }
  .kpis, .kpis.k5, .kpis.k6, .kpis.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .k-v { font-size: 22px; }
  .psteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq { grid-template-columns: 1fr; gap: 6px; }
  .dl { grid-template-columns: 1fr; gap: 2px; } .dl dt { margin-top: 6px; }
  .howto-stage { grid-template-columns: 1fr; }
  .layout-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wiz div { font-size: 11px; }
  .drawer { width: 100%; }
}

/* ---- 2.0 fixes */
.nav-item span.nav-count { flex: 0 0 auto; overflow: visible; min-width: 20px; text-align: center; }
.gsearch #gs-in { padding: 0 70px 0 36px; }
button.link { background: none; border: 0; padding: 2px 0; margin: 0; color: var(--accent, #1f6feb); cursor: pointer; min-height: 0; text-align: left; white-space: nowrap; font-family: inherit; }
button.link:hover { text-decoration: underline; }
.t2 td .link { white-space: nowrap; }
.yes { color: #1f7a3d; font-weight: 700; } .no { color: #c62828; font-weight: 700; } .warn-t { color: #a15c00; }
.dom-pick { height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: #fff; max-width: 340px; }
.toggle-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row small { display: block; color: var(--muted); font-size: 12.5px; }
.w100 { width: 100%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.rowx { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rq.click { cursor: pointer; } .rq.click:hover { border-color: #c7d3e6; }
.rq .chipx { margin-right: 4px; }
.bcard .due { display: block; margin: 4px 0 2px; } .bcard .due.crit { color: var(--crit-ink); } .bcard .due.warn { color: var(--warn-ink); } .bcard .due.good { color: var(--good-ink); }
.bcard .chipx { margin: 4px 4px 0 0; }
.inc2 { cursor: pointer; border-left: 4px solid var(--crit, #c62828); margin-bottom: 12px; }
.inc2 .inc-ref { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--crit-ink); }
.clk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.clk { background: var(--zebra, #f7f9fc); border: 1px solid var(--line-2, #e8edf4); border-radius: 10px; padding: 8px 10px; }
.clk small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.clk .clk-state { font-weight: 700; font-size: 13px; }
.clk-state.crit { color: var(--crit-ink); } .clk-state.warn { color: var(--warn-ink); } .clk-state.good { color: var(--good-ink); } .clk-state.info { color: var(--accent); } .clk-state.neutral { color: var(--muted); }
.block { display: block; }
.fn-pick { height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font-size: 12.5px; margin-right: 6px; background: #fff; }
.today > .kpis { margin-bottom: 14px; }
.today .two-1 { margin-bottom: 16px; }
.mini-h { margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.dotl.crit i { background: var(--crit, #c62828); } .dotl.warn i { background: var(--warn, #e0a100); }
