/* ============================================================
   Super intelligence dashboard + Builder console.
   Built on the app's tokens (styles.css), so light and dark both work.
   ============================================================ */

.si { padding-bottom: 60px; }
.si-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 36px 0 22px; }
.si-head h1 { font-size: 28px; letter-spacing: -0.03em; }
.si-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.si-head .grow { flex: 1; }
.si-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.si-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--panel); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.si-pill b { color: var(--text); font-weight: 600; }
.si-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.si-pill.warn { border-color: rgba(245, 182, 82, 0.4); color: var(--amber); }
.si-pill.warn .dot { background: var(--amber); }
a.si-pill:hover { text-decoration: none; border-color: var(--accent-border); }

/* the build box */
.si-build { border-radius: 18px; padding: 22px 22px 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.si-build:focus-within { border-color: var(--accent-border); }
.si-build-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 8px; }
.si-build textarea { width: 100%; min-height: 96px; resize: vertical; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
.si-build textarea::placeholder { color: var(--faint); }
.si-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.si-model { position: relative; text-align: left; border: 1px solid var(--border); background: var(--bg-soft); border-radius: 11px; padding: 10px 12px; cursor: pointer; color: var(--text); font-family: var(--font); transition: border-color .15s, background .15s; }
.si-model:hover { border-color: var(--border-strong); }
.si-model.on { border-color: var(--accent-border); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-border) inset; }
.si-model b { display: block; font-size: 13.5px; }
.si-model .price { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.si-model small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 4px; }
.si-advice { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 13px; color: var(--text-2); }
.si-advice .tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.si-advice.api .tag { color: var(--green); background: var(--green-soft); }
.si-advice.chat .tag { color: var(--blue); background: var(--blue-soft); }
.si-advice.either .tag { color: var(--amber); background: var(--amber-soft); }
.si-advice ul { margin: 0; padding-left: 16px; }
.si-advice li + li { margin-top: 3px; }
.si-build-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.si-build-row .grow { flex: 1; }
.si-build-row .note { color: var(--muted); font-size: 12.5px; }
.si-setup { margin-top: 12px; padding: 12px 14px; border-radius: 11px; border: 1px dashed rgba(245, 182, 82, 0.45); color: var(--text-2); font-size: 13px; }
.si-setup a { font-weight: 600; }

/* grid of panels */
.si-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.si-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.si-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.si-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.si-panel-head h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.si-panel-head .grow { flex: 1; }
.si-panel-head a { font-size: 12.5px; }
.si-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }

/* jobs */
.si-jobs { display: flex; flex-direction: column; gap: 8px; }
.si-job { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); color: var(--text); text-decoration: none; }
a.si-job:hover { border-color: var(--border-strong); text-decoration: none; }
.si-job-main { flex: 1; min-width: 0; }
.si-job-title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-job-meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1px; }
.si-job-meta .mono { font-family: var(--mono); }
.si-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--panel-2); white-space: nowrap; }
.si-st .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.si-st.run { color: var(--blue); background: var(--blue-soft); border-color: rgba(110,168,255,.3); }
.si-st.run .dot { background: var(--blue); animation: pulse 1.2s ease-in-out infinite; }
.si-st.wait { color: var(--accent-bright); background: var(--accent-soft); border-color: var(--accent-border); }
.si-st.wait .dot { background: var(--accent); }
.si-st.ok { color: var(--green); background: var(--green-soft); border-color: rgba(62,207,142,.3); }
.si-st.ok .dot { background: var(--green); }
.si-st.bad { color: var(--red); background: var(--red-soft); border-color: rgba(244,114,114,.3); }
.si-st.bad .dot { background: var(--red); }
.si-st.warn { color: var(--amber); background: var(--amber-soft); border-color: rgba(245,182,82,.3); }
.si-st.warn .dot { background: var(--amber); }

/* meter */
.si-meter-big { display: flex; align-items: baseline; gap: 8px; }
.si-meter-big .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-family: var(--font); }
.si-meter-big .of { color: var(--muted); font-size: 13px; }
.si-bar { height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 10px 0 12px; }
.si-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.si-bar.over > i { background: var(--red); }
.si-kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.si-kv span:nth-child(odd) { color: var(--text-2); }
.si-kv span:nth-child(even) { font-family: var(--mono); text-align: right; }
.si-spark { display: flex; align-items: flex-end; gap: 2px; height: 42px; margin-top: 12px; }
.si-spark i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--accent-border); }
.si-spark i.today { background: var(--accent); }
.si-foot { color: var(--muted); font-size: 12px; margin-top: 10px; line-height: 1.45; }

/* PRs and businesses */
.si-rows { display: flex; flex-direction: column; }
.si-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; min-width: 0; }
.si-row:first-child { border-top: none; padding-top: 2px; }
.si-row .grow { flex: 1; min-width: 0; }
.si-row .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-row small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-count { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); white-space: nowrap; }
.si-count.late { background: var(--red-soft); color: var(--red); }
.si-count.soon { background: var(--amber-soft); color: var(--amber); }

/* research box (the old composer, smaller) */
.si-research .composer { padding: 14px 16px; box-shadow: none; }
.si-research .composer textarea { min-height: 60px; font-size: 14.5px; }

/* Builder console */
.bc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.bc-tab { border: none; background: none; color: var(--muted); font: 600 13.5px var(--font); padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bc-tab.on { color: var(--text); border-bottom-color: var(--accent); }
.bc-job-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.bc-job-head h2 { font-size: 20px; letter-spacing: -0.02em; flex: 1; min-width: 220px; }
.bc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.bc-summary { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--text); }
.bc-prompt { color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; border-left: 3px solid var(--accent-border); padding-left: 12px; margin: 10px 0; }
.bc-err { padding: 11px 14px; border-radius: 11px; background: var(--red-soft); color: var(--red); font-size: 13px; margin: 10px 0; }
.bc-files { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-files code { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 7px; background: var(--panel-2); color: var(--text-2); }
.bc-files code.del { text-decoration: line-through; color: var(--muted); }
.bc-log { font-family: var(--mono); font-size: 12px; line-height: 1.5; max-height: 460px; overflow: auto; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.bc-log div { display: grid; grid-template-columns: 62px 64px 1fr; gap: 8px; padding: 2px 0; }
.bc-log .when { color: var(--faint); }
.bc-log .kind { color: var(--accent-bright); }
.bc-log .text { color: var(--text-2); word-break: break-word; white-space: pre-wrap; }
.bc-form { display: grid; gap: 14px; max-width: 640px; }
.bc-form label { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.bc-form .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.bc-prices { width: 100%; border-collapse: collapse; font-size: 13px; }
.bc-prices th, .bc-prices td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--border); }
.bc-prices th { color: var(--muted); font-weight: 600; font-size: 12px; border-top: none; }
.bc-prices td.n { font-family: var(--mono); text-align: right; }

/* sidebar groups */
.side-group { margin: 12px 0 2px; padding: 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.side-nav .side-group:first-child { margin-top: 0; }

@media (max-width: 980px) {
  .si-grid { grid-template-columns: minmax(0, 1fr); }
  .si-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .si-head { padding-top: 22px; }
  .si-head h1 { font-size: 23px; }
  .si-build { padding: 16px; }
  .si-models { grid-template-columns: minmax(0, 1fr); }
  .bc-log div { grid-template-columns: 52px 1fr; }
  .bc-log .kind { display: none; }
}

/* ---------- the Brain ---------- */
.br-life { border-color: var(--accent-border); background: linear-gradient(180deg, var(--accent-soft), var(--panel) 220px); }
.br-overview p { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0 0 10px; }
.br-overview.short { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 4px; }
.br-life h3, .br-panel h3, .br-area h4 { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.br-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 22px; }
.br-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); }
.br-list li + li { margin-top: 3px; }
.br-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.br-theme { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-soft); }
.br-theme b { font-size: 14px; }
.br-theme p { font-size: 13px; color: var(--text-2); margin: 4px 0 8px; line-height: 1.5; }
.br-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.br-chip { font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--accent-border); }
a.br-chip:hover { text-decoration: none; background: var(--accent-border); }
.br-chip.idea { background: var(--panel-2); color: var(--text-2); border-color: var(--border); }
.br-conns { display: flex; flex-direction: column; gap: 6px; }
.br-conn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; padding: 7px 10px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--border); }
.br-conn a { font-weight: 600; }
.br-conn .arrow { color: var(--faint); }
.br-conn .idea { color: var(--text-2); flex-basis: 100%; }
.br-search { margin: 18px 0 12px; }
.br-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.br-area.open { grid-column: 1 / -1; }
.br-area-head { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.br-area-head h3 { font-size: 16px; letter-spacing: -0.01em; }
.br-area-head small { color: var(--muted); font-size: 12px; }
.br-toggle { font-size: 18px; color: var(--muted); line-height: 1; padding: 2px 6px; }
.br-area-sum { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin-top: 8px; }
.br-next { font-size: 12.5px; color: var(--amber); margin-top: 8px; }
.br-doc { padding: 11px 0; border-top: 1px solid var(--border); }
.br-doc-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.br-doc-head small { color: var(--faint); font-size: 11.5px; font-family: var(--mono); }
.br-doc p { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
@media (max-width: 520px) { .br-areas { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Super Intelligence Journal (#/journal): writing, peer review, decisions.
   ============================================================ */
.jr .jr-back { font-size: 12.5px; color: var(--muted); }
.jr .si-panel { margin-bottom: 16px; }
.jr h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.jr h4 { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 14px 0 6px; }
.jr ul, .jr ol { padding-left: 20px; margin: 4px 0; } .jr li + li { margin-top: 4px; }
.jr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.jr-tabs button { border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); border-radius: 99px; padding: 6px 14px; font: 600 13px var(--font); cursor: pointer; }
.jr-tabs button.on { border-color: var(--accent-border); background: var(--accent-soft); color: var(--text); }
.jr-tabs.big { margin: 4px 0 16px; }
.jr-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jr-form .si-panel-head, .jr-form .wide { grid-column: 1 / -1; }
.jr-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.jr-form label small, .jr-label small { font-weight: 400; color: var(--muted); }
.jr-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.jr-form input:not([type=checkbox]):not([type=radio]), .jr-form select, .jr-form textarea, .jr select.input-sm, .jr-resp select, .jr-resp input {
  background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font: 14px var(--font); padding: 8px 10px; width: 100%; box-sizing: border-box; }
.jr-form textarea { resize: vertical; line-height: 1.5; }
.jr select.input-sm { width: auto; max-width: 260px; padding: 5px 8px; font-size: 13px; }
.jr-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.jr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jr-row .grow { flex: 1; } .jr-row .note, .jr .note { color: var(--muted); font-size: 12.5px; }
.jr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .jr-two .jr-form { grid-template-columns: 1fr 1fr; align-content: start; }
.jr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.jr-chip.green { color: var(--green); background: var(--green-soft); border-color: transparent; }
.jr-chip.amber { color: var(--amber); background: var(--amber-soft); border-color: transparent; }
.jr-chip.red { color: var(--red); background: var(--red-soft); border-color: transparent; }
.jr-chip.blue { color: var(--blue); background: var(--blue-soft); border-color: transparent; }
.jr-ai, .jr-human { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-bright); white-space: nowrap; }
.jr-human { background: var(--green-soft); color: var(--green); }
.jr-sub { color: var(--muted); font-size: 12px; margin-left: 6px; }
.jr-busy, .jr-err { padding: 10px 14px; border-radius: 11px; margin-bottom: 14px; font-size: 13.5px; }
.jr-busy { background: var(--blue-soft); color: var(--text); } .jr-err { background: var(--red-soft); color: var(--red); }
.jr-err-line { color: var(--red); font-size: 12px; }
.jr-list { display: flex; flex-direction: column; gap: 8px; }
.jr-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); color: var(--text); }
.jr-item:hover { border-color: var(--border-strong); text-decoration: none; }
.jr-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .jr-item-main span { color: var(--muted); font-size: 12.5px; }
.jr-question { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 9px 9px 0; margin: 10px 0; font-size: 14px; }
.jr-abstract { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.jr-body { margin-top: 18px; line-height: 1.65; font-size: 15px; }
.jr-claims { display: flex; flex-direction: column; gap: 8px; }
.jr-claim { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.jr-claim-id { font: 700 12px var(--mono); color: var(--accent-bright); padding-top: 2px; }
.jr-claim-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.jr-claim-main small { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; margin-right: 4px; }
.jr-claim-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.jr-conf { font: 600 12.5px var(--mono); color: var(--text-2); }
.jr-claim-ed { display: grid; grid-template-columns: 60px 2fr 2fr 80px 2fr auto; gap: 6px; margin-bottom: 6px; align-items: start; }
.jr-rvs { display: flex; flex-direction: column; gap: 8px; }
.jr-rv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); flex-wrap: wrap; }
.jr-rv-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; } .jr-rv-main > span { color: var(--muted); font-size: 12.5px; }
.jr-rv-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.jr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jr-stats > div { display: flex; flex-direction: column; padding: 12px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); }
.jr-stats small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.jr-stats b { font-size: 20px; margin: 4px 0 2px; } .jr-stats span { color: var(--muted); font-size: 12px; }
.jr-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin-top: 14px; }
.jr-scores > div { display: grid; grid-template-columns: 82px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); text-transform: capitalize; }
.jr-scores i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--w), var(--panel-3) var(--w)); }
.jr-review-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.jr-mini-scores { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); text-transform: capitalize; }
.jr-mini-scores b { color: var(--text); }
.jr-issues { display: flex; flex-direction: column; gap: 8px; }
.jr-issue { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 13.5px; }
.jr-issue p { margin: 6px 0 0; } .jr-sugg { color: var(--text-2); }
.jr-resp { display: grid; grid-template-columns: 150px 1fr; gap: 6px; margin-top: 8px; }
.jr-claim-ratings { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.jr-claim-ratings span:not(.jr-chip) { color: var(--text-2); }
.jr-brief p { line-height: 1.6; } .jr-rec { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-weight: 600; }
.jr-verdicts { display: flex; gap: 16px; flex-wrap: wrap; } .jr-verdicts label { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.jr-versions { display: flex; flex-direction: column; gap: 10px; }
.jr-version { display: flex; gap: 12px; align-items: baseline; } .jr-version > b { font-family: var(--mono); color: var(--accent-bright); }
.jr-method ol { line-height: 1.55; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 860px) {
  .jr-form, .jr-two, .jr-two .jr-form { grid-template-columns: minmax(0, 1fr); }
  .jr-stats { grid-template-columns: 1fr 1fr; }
  .jr-claim-ed { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Web agent (#/web-agent) ---------- */
.wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .wa-grid { grid-template-columns: minmax(0, 1fr); } }
.wa-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.wa-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 6px 0 4px; cursor: pointer; }
.wa-check input { margin-top: 3px; }
.wa-input-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; margin-bottom: 6px; }
.wa-match { margin-top: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--accent-border); background: var(--accent-soft); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wa-chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; }
.wa-chip.wa-done { color: var(--green); border-color: rgba(62, 207, 142, 0.35); }
.wa-chip.wa-failed, .wa-chip.wa-cancelled { color: var(--red); border-color: rgba(244, 114, 114, 0.35); }
.wa-chip.wa-waiting { color: var(--amber); border-color: rgba(245, 182, 82, 0.45); }
.wa-chip.wa-running, .wa-chip.wa-queued { color: var(--accent-bright); border-color: var(--accent-border); }
.wa-goal { font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.wa-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-ask { margin-top: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(245, 182, 82, 0.5); background: var(--amber-soft); font-size: 13.5px; display: grid; gap: 4px; }
.wa-answer { margin-top: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(62, 207, 142, 0.35); background: var(--bg-soft); font-size: 13.5px; display: grid; gap: 6px; }
.wa-answer.bad { border-color: rgba(244, 114, 114, 0.35); }
.wa-json { margin: 0; padding: 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); font: 12.5px/1.45 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }
.wa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wa-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 13px; }
.wa-steps li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wa-steps li[data-shot] { cursor: pointer; }
.wa-steps li[data-shot]:hover { border-color: var(--border-strong); }
.wa-steps li.bad { border-color: rgba(244, 114, 114, 0.3); }
.wa-by { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; color: var(--muted); border: 1px solid var(--border-strong); }
.wa-by.ai { color: var(--accent-bright); border-color: var(--accent-border); }
.wa-by.mem { color: var(--green); border-color: rgba(62, 207, 142, 0.35); }
.wa-err { color: var(--red); font-size: 12.5px; }
.wa-screen { position: sticky; top: 16px; }
.wa-shot img { width: 100%; height: auto; border-radius: 9px; border: 1px solid var(--border); display: block; }
.wa-procs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.wa-proc { display: grid; gap: 6px; align-content: start; }
.wa-proc .si-panel-head { margin-bottom: 2px; }
.wa-in { display: inline-block; padding: 0 6px; border-radius: 5px; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-bright); font: 600 11.5px var(--mono); }
.wa-where { display: grid; gap: 4px; }
.wa-where .wa-check { margin: 0; }
.wa-setup { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.wa-code { margin-top: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--accent-border); background: var(--accent-soft); font-size: 13px; }
.wa-code .input { flex: 1; min-width: 200px; font-size: 12px; }
.wa-site { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-soft); margin-bottom: 6px; font-size: 13px; }
.wa-site > div { min-width: 0; overflow-wrap: anywhere; }
.wa-report { margin-top: 8px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-soft); font-size: 13px; display: grid; gap: 3px; }
.wa-report.changed { border-color: var(--accent-border); background: var(--accent-soft); }
.wa-report.bad { border-color: rgba(244, 114, 114, 0.35); }
.wa-changes { margin: 2px 0 0; padding-left: 18px; font: 12px/1.45 var(--mono); }
.wa-modal { max-width: 460px; }
.wa-modal h3 { margin: 0 0 4px; }

/* ---------- Projects board ---------- */
.pj-wait { border-color: var(--accent-border); }
.pj-wait .si-rows .si-row { flex-wrap: wrap; }
.pj-more { margin-top: 10px; }
.pj-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.pj-card h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.pj-card-head { display: flex; align-items: baseline; gap: 10px; }
.pj-card-head h3 { font-size: 16px; flex: 1; letter-spacing: -0.01em; }
.pj-card-head h3 a { color: var(--text); }
.pj-pct { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pj-card .si-bar { margin: 8px 0 6px; }
.pj-basis { font-size: 12.5px; color: var(--muted); }
.pj-sum { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pj-fb { padding: 12px 0; border-top: 1px solid var(--border); }
.pj-fb:first-of-type { border-top: none; }
.pj-fb-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.pj-fb-head span { color: var(--muted); }
.pj-fb-text { margin: 6px 0 4px; white-space: pre-wrap; font-size: 14px; }
.pj-fb-reply { margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--accent-border); color: var(--text-2); font-size: 13px; }
@media (max-width: 520px) { .pj-grid { grid-template-columns: minmax(0, 1fr); } .pj-wait .si-row, .pj-card .si-row { flex-wrap: wrap; } .pj-wait .si-row > div:first-child, .pj-card .si-row > div:first-child { flex: 1 1 100%; min-width: 0; } .pj-wait .si-row > div:first-child *, .pj-card .si-row > div:first-child * { white-space: normal; } }

/* ---- Inspections (#/projects/inspect) and the morning report ---- */
.ix-score { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 700; font-size: 13px; background: var(--panel-2); color: var(--text-2); font-variant-numeric: tabular-nums; }
.ix-score.big { min-width: 52px; height: 52px; font-size: 20px; border-radius: 14px; }
.ix-score.ok { background: var(--green-soft); color: var(--green); }
.ix-score.mid { background: var(--amber-soft); color: var(--amber); }
.ix-score.bad { background: var(--red-soft); color: var(--red); }
.ix-chg { font-size: 11.5px; font-weight: 700; margin-left: 4px; }
.ix-chg.up { color: var(--green); } .ix-chg.down { color: var(--red); }
.ix-team { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ix-member { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border); cursor: help; }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.ix-site-head { display: flex; gap: 12px; align-items: center; }
.ix-site-head .t { font-weight: 600; } .ix-site-head small { color: var(--muted); }
.ix-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 12px 0 4px; }
.ix-bar { display: grid; grid-template-columns: 18px 1fr 24px; align-items: center; gap: 6px; font-size: 12px; }
.ix-bar i { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.ix-bar b { display: block; height: 100%; background: var(--muted); }
.ix-bar b.ok { background: var(--green); } .ix-bar b.mid { background: var(--amber); } .ix-bar b.bad { background: var(--red); }
.ix-bar em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ix-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ix-shots { display: grid; grid-template-columns: 3fr 1fr; gap: 14px; margin: 14px 0 6px; align-items: start; }
.ix-shots figure { margin: 0; } .ix-shots img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; min-height: 60px; background: var(--panel-2); }
.ix-shots figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ix-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.ix-facts div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; } .ix-facts small { display: block; color: var(--muted); font-size: 11.5px; } .ix-facts b { font-size: 15px; }
.ix-spec { margin-top: 14px; } .ix-verdict { margin: 4px 0 6px; font-size: 14.5px; }
.ix-quick { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: var(--amber-soft); font-size: 13.5px; }
.ix-issue { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0 10px 12px; border-top: 1px solid var(--border); border-left: 3px solid var(--border-strong); margin-top: 8px; font-size: 13.5px; }
.ix-issue.sev-high { border-left-color: var(--red); } .ix-issue.sev-medium { border-left-color: var(--amber); }
.ix-sev { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.ix-morning { border-color: var(--accent-border); margin-bottom: 14px; }
.ix-headline { font-size: 15.5px; margin: 6px 0 10px; }
.ix-start { margin: 0 0 10px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.ix-start li { display: block; } .ix-start .btn { margin-top: 6px; }
.ix-proj { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); margin-left: 6px; }
.ix-arrow { font-size: 22px; color: var(--muted); }
.ix-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ix-pages > div { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.ix-palette { display: flex; gap: 6px; } .ix-palette span { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); }
@media (max-width: 640px) { .ix-shots { grid-template-columns: minmax(0, 1fr); } .ix-shots figure.phone { max-width: 220px; } .ix-bars { grid-template-columns: minmax(0, 1fr); } .ix-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- ⓘ feedback summaries per site (#/projects/feedback) ---- */
.fd-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fd-head h2 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 16px; align-items: start; }
.fd-sum { margin: 4px 0 8px; font-size: 14.5px; }
.fd-themes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fd-theme { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--border); }
.fd-theme b { margin-left: 4px; }
.fd-rec { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent-border); background: var(--accent-soft, var(--panel-2)); font-size: 13.5px; display: grid; gap: 4px; }
.fd-rec-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.fd-rec .bc-actions { margin-top: 6px; }
.ix-fb { display: block; margin-top: 10px; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: var(--panel-2); color: var(--text-2); text-decoration: none; }
.ix-fb:hover { color: var(--text); }
@media (max-width: 640px) { .fd-grid { grid-template-columns: minmax(0, 1fr); } }

/* Group of Consultants (v3.316) */
.gc-tab { display: inline-block; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-2); border-radius: 99px; padding: 6px 14px; font: 600 13px var(--font); text-decoration: none; }
.gc-tab.on { border-color: var(--accent-border); background: var(--accent-soft); color: var(--text); }
.gc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.gc-card { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.gc-card:hover { border-color: var(--accent-border); }
.gc-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gc-card-top b { font-size: 15px; margin-right: auto; }
.gc-role { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.gc-talents { display: flex; flex-wrap: wrap; gap: 4px; }
.gc-talents i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); }
.gc-meta { font-size: 12px; color: var(--muted); }
.gc-add { align-items: flex-start; justify-content: center; border-style: dashed; }
.gc-add span { font-size: 12.5px; color: var(--muted); }
.gc-rec { margin-top: 14px; padding: 14px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: var(--accent-soft); }
.gc-rec-head { font-size: 15px; margin-bottom: 4px; }
.gc-rec p, .gc-rec ol { margin: 6px 0; font-size: 13.5px; }
.gc-human { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 13px; }
.gc-human ul { margin: 4px 0 0 18px; }
.gc-rules { margin: 4px 0 8px 18px; font-size: 13.5px; line-height: 1.55; }
.gc-task { align-items: flex-start; }
.gc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.gc-body { margin-top: 8px; font-size: 13px; border-left: 3px solid var(--border); padding-left: 10px; }
.gc-new summary { cursor: pointer; margin-top: 12px; font-weight: 600; font-size: 13.5px; }
.gc-new form { margin-top: 10px; }
.gc-contact { margin-top: 8px; gap: 6px; }
.gc-table-wrap { overflow-x: auto; }
.gc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gc-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.gc-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.gc-table .r { text-align: right; white-space: nowrap; }
.gc-table code { font-size: 11.5px; color: var(--muted); }
.gc-in { border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: 12.5px; min-width: 0; }
.gc-in.num { width: 64px; text-align: right; }
.gc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.gc-kpis > div { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.gc-kpis span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.gc-kpis b { font-size: 22px; letter-spacing: -0.02em; }
.gc-kpis small { font-size: 12px; color: var(--muted); }
.gc-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 8px; }
.gc-bars.days { gap: 2px; height: 120px; }
.gc-bar { flex: 1; min-width: 6px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.gc-bar span, .gc-bar small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.gc-stack { flex: 1; width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; background: var(--bg-soft); border-radius: 4px; overflow: hidden; }
.gc-stack i { display: block; width: 100%; min-height: 1px; }
.gc-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.gc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.gc-out { white-space: pre-wrap; font-size: 12px; max-height: 260px; overflow: auto; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-top: 8px; }
@media (max-width: 640px) { .gc-actions { justify-content: flex-start; } .gc-kpis b { font-size: 19px; } #gc-obv .jr-item { flex-wrap: wrap; } #gc-obv .jr-item-main { flex: 1 1 200px; } }

/* Team connections (v3.317) */
.focus-card { outline: 3px solid var(--accent, #6c5ce7); outline-offset: 3px; transition: outline-color .4s; }
.gc-conn-bar { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: 6px 0 12px; }
.gc-conn-bar i { display: block; height: 100%; background: var(--accent, #6c5ce7); border-radius: 99px; }
.gc-conn { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.gc-conn:last-child { border-bottom: 0; }
.gc-conn .tick { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.gc-conn.done .tick { background: #16a34a; border-color: #16a34a; color: #fff; }
.gc-conn.next { background: var(--accent-soft); border-radius: 10px; padding: 10px; border-bottom-color: transparent; }
.gc-conn .main { flex: 1; min-width: 0; }
.gc-conn .main b { font-size: 14px; }
.gc-conn .main p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.gc-conn .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gc-conn-group { margin: 14px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.si-team-card .si-panel-head h2 { margin-right: 6px; }
.si-team-next { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
@media (max-width: 640px) { .gc-conn { flex-wrap: wrap; } .gc-conn .acts { justify-content: flex-start; width: 100%; padding-left: 34px; } }
/* Team connections: Andrew's order (v3.318) */
.gc-conn-tools { margin-bottom: 8px; gap: 8px; }
.gc-conn-tools select { margin-left: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 6px; padding: 4px 6px; font: inherit; }
.gc-grip { cursor: grab; touch-action: none; padding: 0 4px; }
.gc-conn.dragging { background: var(--accent-soft); border-radius: 10px; }
.gc-conn.dragging { opacity: .45; }
.gc-grip { flex: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 22px; user-select: none; }
.gc-conn-tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); }

/* Websites · health and admin (public/js/views/site-health.js) */
.sh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.sh-row.need { border-color: rgba(245, 182, 82, 0.45); }
.sh-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sh-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-light { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.sh-light.green { background: var(--green); } .sh-light.amber { background: var(--amber); } .sh-light.red { background: var(--red); }
.sh-score { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--text-2); }
.sh-alerts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-alert { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--text-2); }
.sh-alert.urgent { color: var(--red); background: var(--red-soft); border-color: rgba(244,114,114,.3); }
.sh-alert.warn { color: var(--amber); border-color: rgba(245, 182, 82, 0.4); }
.sh-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sh-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, inherit); }
.sh-mode select { min-height: 32px; font: inherit; padding: 2px 6px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: inherit; }
@media (max-width: 720px) { .sh-row { grid-template-columns: minmax(0, 1fr); } .sh-actions { justify-content: flex-start; } }

/* ---------- Approvals (#/approvals) ---------- */
.ap-page { max-width: 640px; }
.ap-head { flex-wrap: wrap; gap: 10px; }
.ap-card { flex-wrap: wrap; }
.ap-desk { border-left: 4px solid var(--border, #ddd); padding-left: 12px; }
.ap-desk.ap-r-medium { border-left-color: #c98a1b; }
.ap-desk.ap-r-high { border-left-color: #c0392b; }
.ap-sum { margin: 6px 0 0; }
.ap-pre { white-space: pre-wrap; font-size: 13px; margin: 6px 0 0; }
.ap-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.ap-links a { font-weight: 600; }
.ap-verdict { display: block; margin-top: 6px; }
.ap-note { flex: 1 1 100%; margin-top: 8px; }
.ap-acts { display: flex; gap: 10px; flex: 1 1 100%; margin-top: 8px; }
.ap-acts .ap-approve { flex: 1 1 auto; }
.ap-card .t a { font-weight: 600; }
.ap-approve, .ap-all { min-height: 48px; font-size: 15.5px; border-radius: 12px; margin-top: 4px; }
.ap-open { flex: 0 0 auto; }
.ap-more summary { cursor: pointer; color: var(--muted); padding: 8px 2px; }
.ap-link { color: inherit; text-decoration: none; }
@media (max-width: 520px) {
  .ap-page .page, .ap-page { padding-left: 14px; padding-right: 14px; }
  .ap-card small { display: block; margin-top: 2px; }
}

/* AI Influencer Studio (#/influencer) */
.inf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-bottom: 14px; }
.inf-card { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; padding: 0; overflow: hidden; }
.inf-card:hover { border-color: var(--accent-border); }
.inf-card-body { padding: 0 16px 16px; }
.inf-card-body h3 { font-size: 16px; margin: 0 0 2px; }
.inf-new { padding: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid; }
.inf-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-soft); display: block; }
.inf-portrait.big { width: 160px; border-radius: var(--radius); flex: none; }
.inf-nopic { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--bg-soft); }
.inf-chips, .inf-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inf-checks label.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; font-size: 13px; margin-right: 10px; }
.inf-hero { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin: 10px 0 14px; }
.inf-hero-body { flex: 1 1 260px; min-width: 0; }
.inf-hero-body h1 { font-size: 22px; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.inf-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.inf-stats div { display: flex; flex-direction: column; }
.inf-stats b { font-size: 20px; }
.inf-stats span { font-size: 12px; color: var(--muted); }
.inf-posts { display: grid; gap: 14px; margin-top: 14px; }
.inf-post { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 16px; }
.inf-pic { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.inf-post-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inf-caption { width: 100%; resize: vertical; font: inherit; line-height: 1.5; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text); }
.inf-tags { word-break: break-word; }
.inf-actions { flex-wrap: wrap; gap: 6px; }
.inf-rules ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.inf-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.inf-table td { padding: 6px 8px; border-top: 1px solid var(--border); }
.inf-table td.num { text-align: right; font-weight: 600; }
.inf .jr-form { margin-bottom: 14px; }
@media (max-width: 640px) { .inf-post { grid-template-columns: minmax(0, 1fr); } .inf-new { grid-template-columns: minmax(0, 1fr); } .inf-portrait.big { width: 110px; } }

/* ---------- Device Lab (#/device-lab): sites as phones and tablets ---------- */
.dl .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dl .si-panel + .si-panel { margin-top: 18px; }
.dl-pill-red { color: var(--red); border-color: rgba(244, 114, 114, 0.35); }
.dl-score { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }
.dl-score.green { background: var(--green-soft); color: var(--green); }
.dl-score.amber { background: var(--amber-soft); color: var(--amber); }
.dl-score.red { background: var(--red-soft); color: var(--red); }
.dl-score.grey { background: rgba(148, 163, 208, 0.1); color: var(--muted); }
.dl-devs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dl-dev { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.dl-dev.on { border-color: var(--accent-border); background: var(--accent-soft); color: var(--text); }
.dl-ico { display: inline-block; width: 9px; height: 15px; border: 1.6px solid currentColor; border-radius: 3px; flex: none; }
.dl-ico.tablet { width: 13px; height: 17px; border-radius: 3px; }
.dl-ico.land { transform: rotate(90deg); }
.dl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-form .input { flex: 1 1 260px; min-width: 0; font-size: 16px; min-height: 44px; }
.dl-form .btn { min-height: 44px; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.dl-site { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; min-height: 44px; }
.dl-name { display: flex; flex-direction: column; min-width: 0; }
.dl-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-name span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-change { font-size: 12px; font-weight: 600; }
.dl-change.up { color: var(--green); } .dl-change.down { color: var(--red); }
.dl-per { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dl-mini { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-mini.green { color: var(--green); background: var(--green-soft); } .dl-mini.amber { color: var(--amber); background: var(--amber-soft); }
.dl-mini.red { color: var(--red); background: var(--red-soft); } .dl-mini.grey { color: var(--muted); background: rgba(148, 163, 208, 0.1); }
.dl-mini .dl-ico { width: 7px; height: 11px; border-width: 1.3px; border-radius: 2px; }
.dl-mini .dl-ico.tablet { width: 9px; height: 12px; }
.dl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; align-items: start; }
.dl-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; }
.dl-frame { position: relative; margin: 0 auto 14px; max-height: 520px; max-width: 100%; border: 7px solid #10131c; border-radius: 26px; overflow: hidden; background: #10131c; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }
.dl-frame.phone { width: min(100%, 240px); }
.dl-frame.phone.land, .dl-frame.tablet.land { width: 100%; }
.dl-frame.tablet { width: min(100%, 300px); border-width: 9px; border-radius: 20px; }
.dl-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dl-noshot { display: grid; place-items: center; height: 100%; min-height: 120px; padding: 12px; color: #aab2c5; font-size: 13px; text-align: center; }
.dl-card-head { display: flex; align-items: center; gap: 12px; }
.dl-card-head div { display: flex; flex-direction: column; min-width: 0; }
.dl-card-head span { color: var(--muted); font-size: 12.5px; }
.dl-ok { color: var(--green); font-size: 13px; margin-top: 12px; }
.dl-fs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-f { border-left: 3px solid var(--border-strong); padding: 2px 0 2px 10px; font-size: 13px; }
.dl-f.fail { border-color: var(--red); } .dl-f.warn { border-color: var(--amber); }
.dl-f-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dl-sev { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dl-sev.fail { color: var(--red); } .dl-sev.warn { color: var(--amber); }
.dl-f p { margin: 4px 0 0; color: var(--text-2); line-height: 1.45; }
.dl-f p.dl-fix { color: var(--text); }
.dl-items { margin: 6px 0 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
.dl-items li { overflow-wrap: anywhere; }
.dl-items code { font-size: 11.5px; color: var(--text-2); }
@media (max-width: 640px) {
  .dl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-per { grid-column: 1 / -1; justify-content: flex-start; }
  .dl-row > .btn { grid-row: 1; grid-column: 2; }
}
.dl-pick { margin-bottom: 14px; }
.dl-pick summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); list-style: none; }
.dl-pick summary::-webkit-details-marker { display: none; }
.dl-pick summary::after { content: '▾'; margin-left: 4px; }
.dl-pick[open] summary::after { content: '▴'; }
.dl-pick summary span { flex: none; }
.dl-pick summary b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dl-pick .dl-devs { margin: 6px 0 0; }

/* ---------- Nonprofit hub (#/business/nonprofit) ---------- */
.np-page .si-panel { margin-bottom: 18px; }
.np-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.np-steps li span { color: var(--muted); }
.np-steps li.done strong::after { content: " \2713"; color: var(--ok, #2e9d55); }
.np-notes { color: var(--muted); margin: 0 0 12px; }
.np-ads-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.np-ads-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np-ads-none { color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 8px; }
.np-kpis div { display: flex; flex-direction: column; }
.np-kpis b { font-size: 1.35rem; }
.np-kpis span { color: var(--muted); font-size: 0.85rem; }
.np-meter { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 10px; }
.np-meter span { display: block; height: 100%; background: var(--accent, #4b7bec); }
.np-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.np-checks li { border-left: 4px solid var(--border); padding: 4px 10px; display: flex; flex-direction: column; }
.np-checks li span { color: var(--muted); font-size: 0.9rem; }
.np-c-urgent { border-left-color: var(--danger, #d64545) !important; }
.np-c-warn { border-left-color: var(--warn, #e0a100) !important; }
.np-c-ok { border-left-color: var(--ok, #2e9d55) !important; }
.np-err { color: var(--danger, #d64545); }
.np-accounts { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.np-accounts th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.np-accounts td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.np-accounts td .hint { font-size: 0.85rem; }
.np-status { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 0.8rem; white-space: nowrap; border: 1px solid var(--border); }
.np-s-urgent { background: rgba(214, 69, 69, 0.14); border-color: rgba(214, 69, 69, 0.5); }
.np-s-warn { background: rgba(224, 161, 0, 0.14); border-color: rgba(224, 161, 0, 0.5); }
.np-s-info { background: rgba(75, 123, 236, 0.12); border-color: rgba(75, 123, 236, 0.45); }
.np-s-ok { background: rgba(46, 157, 85, 0.14); border-color: rgba(46, 157, 85, 0.5); }
.np-s-quiet { color: var(--muted); }
@media (max-width: 700px) {
  .np-accounts thead { display: none; }
  .np-accounts tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .np-accounts td { border: 0; padding: 0; }
  .np-accounts td:nth-child(3) { grid-column: 1 / -1; }
}
.np-page .si-panel-head { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 700px) {
  .np-page .si-panel-head h2 { flex: 1 1 auto; }
  .np-page .si-panel-head .grow { display: none; }
  .np-page .si-panel-head .hint { flex: 1 1 100%; order: 3; }
  .np-page .si-panel-head .btn { order: 4; }
  .np-kpis { grid-template-columns: 1fr 1fr; }
}

/* Approval Desk projects */
.ap-project { border-top: 1px solid var(--border); }
.ap-project > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 16px; cursor: pointer; }
.ap-project > summary::before { content: '▸'; }
.ap-project[open] > summary::before { content: '▾'; }
.ap-project-name { flex: 1 1 200px; font-weight: 650; overflow-wrap: anywhere; }
.ap-progress { display: flex; align-items: center; gap: 10px; flex: 1 1 230px; }
.ap-progress progress { width: 120px; max-width: 45%; accent-color: var(--primary, #246bce); }
.ap-project > summary small { color: var(--muted); }
.ap-project-body { padding: 0 16px 16px; }
.ap-milestone { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ap-milestone .input { flex: 1 1 180px; min-width: 0; }
.ap-milestone input[type=checkbox] { width: 44px; height: 44px; margin: 0; }
.ap-milestone .btn { min-height: 44px; }
.ap-milestone-add label { flex: 1 1 220px; }
.ap-milestone-add input { display: block; width: 100%; }
.ap-project-body .hint { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .ap-project > summary { gap: 8px; }
  .ap-project-name { flex-basis: calc(100% - 30px); }
  .ap-progress { flex-basis: 100%; }
  .ap-project > summary > small { flex-basis: 100%; }
}
.ap-project-body summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.ap-page .input { font-size: 16px; }

.ap-milestone textarea { resize: vertical; }
/* Meta jobs on the owner's Approval Desk. */
.ap-page input, .ap-page textarea { font-size: 16px; }
#ap-meta { margin-bottom: 16px; }

/* T120: readiness evidence stays readable on narrow Websites rows. */
.sh-launch{min-width:0;margin-top:1rem;padding:1rem;border:1px solid var(--border);border-radius:8px}
.sh-launch[hidden]{display:none}.sh-launch h3{margin:0 0 .5rem}.sh-checks{padding-left:1.2rem}.sh-checks li{margin:1rem 0;overflow-wrap:anywhere}.sh-checks small{display:block}.sh-checks p{margin:.35rem 0}.sh-override{display:grid;gap:.5rem}.sh-override textarea{box-sizing:border-box;width:100%;max-width:100%;font:inherit;font-size:16px;min-height:100px}.sh-launch button,.sh-mode select,[data-phone]{min-height:44px}.sh-launch .sh-actions{flex-wrap:wrap}.sh-launch .sh-gate-status{overflow-wrap:anywhere}
.sh-launch{grid-column:1/-1}.sh-row>.sh-actions{min-width:0}.sh-row .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}.sh-mode select{font-size:16px}.sh-checks a{display:inline-flex;align-items:center;min-height:24px}.sh-panel .si-panel-head{flex-wrap:wrap}
@media(max-width:720px){.sh-row{grid-template-columns:minmax(0,1fr)}.sh-launch{padding:.75rem}.sh-panel .si-panel-head{padding:12px}.sh-panel .si-panel-head h2{font-size:18px}}
@media(min-width:721px){.sh-row{grid-template-columns:minmax(150px,1fr) minmax(0,3fr)}}
/* Task Desk: usage forms and long allocation reasons fit the owner's phone. */
.gc-credit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:16px; margin:20px 0; }
.gc-credit,.gc-desk-task { padding:16px; border:1px solid var(--line); border-radius:12px; min-width:0; overflow-wrap:anywhere; }
.gc-credit summary { cursor:pointer; min-height:44px; font-size:16px; }
.gc-credit input,.gc-credit textarea,.gc-credit select { width:100%; min-width:0; box-sizing:border-box; font-size:16px; }
.gc-desk-tasks { display:grid; gap:12px; }
.gc-desk p,.gc-desk label { font-size:16px; }
.gc-desk .jr-form,.gc-desk .jr-row { min-width:0; }
.gc-desk .jr-row { flex-wrap:wrap; }
.gc-desk .jr-row label { min-width:0; max-width:100%; }

.gc-task-desk { font-size:16px; }
body:has(.gc-task-desk) { font-size:16px; }
.gc-task-desk :is(input,textarea,select,button) { font-size:16px; min-height:44px; }
.gc-task-desk input[type="checkbox"] { min-height:24px; width:24px; height:24px; }
.gc-task-desk .jr-tabs { flex-wrap:wrap; }
.gc-task-desk .jr-tabs a { min-height:44px; display:inline-flex; align-items:center; }
.gc-task-desk .gc-credit .jr-form { display:grid; grid-template-columns:minmax(0,1fr); }
.gc-task-desk .gc-credit .jr-form :is(input,textarea,select) { font-size:16px; min-height:44px; }
.gc-task-desk .gc-talents i { font-size:12px; }
.gc-task-desk :is(input,textarea,select) { font-size:16px!important; }
/* Task Desk: readable controls on phones; contain long model ids and credit notes. */
.gc { font-size: 16px; }
.gc input, .gc select, .gc textarea { font-size: 16px; max-width: 100%; }
.gc fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.gc fieldset label { display: block; margin: 8px 0; }
.gc fieldset input:not([type="hidden"]) { width: 100%; }
.gc .gc-talents i, .gc .gc-meta, .gc .note, .gc .jr-chip { font-size: 12px; }
.gc .gc-task, .gc .gc-rec { overflow-wrap: anywhere; }
body:has(.gc) { font-size: 16px; }
.page.gc .jr-form input, .page.gc .jr-form select, .page.gc .jr-form textarea { font-size: 16px; }
.ap-agents { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.ap-agents-label { flex: 1 0 100%; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ap-agents .si-pill { max-width: 100%; white-space: normal; }
.ap-summary { margin: 0 0 20px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; font-size: 19px; line-height: 1.65; background: var(--panel); }
.ap-summary p { margin: 0; }
.ap-summary p + p { margin-top: 8px; }
.ap-jump { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.ap-section h2 { scroll-margin-top: 90px; }
.ap-card { gap: 10px; overflow-wrap: anywhere; }
.ap-card .grow { min-width: 0; }
.ap-task-link { display: block; padding: 8px 0; color: inherit; text-decoration: none; }
.ap-task-link:hover .t { text-decoration: underline; }
.ap-card .btn, .ap-page .ap-link { min-height: 48px; }
.ap-card .btn-block { width: 100%; }
.ap-why { margin: 8px 0 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.ap-page button:focus-visible, .ap-page a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.ap-section { margin-bottom: 16px; }
.ap-card .t { white-space: normal; overflow: visible; text-overflow: clip; font-size: 16px; }
.ap-jump { color: var(--accent-bright); }
/* Approvals keeps readable text and status chips on the smallest phones. */
.ap-page { font-size:16px; }
.ap-page .si-st { font-size:12px; }
body:has(.ap-page) { font-size:16px; }

/* ---------- Analytics (#/analytics, public/js/views/analytics.js) ---------- */
.an .si-head p { max-width: 60ch; }
.an-period { display: flex; gap: 6px; flex-wrap: wrap; }
.an-p { cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text); min-height: 32px; font: inherit; }
.an-p.on { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-bright); font-weight: 600; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.an-tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-tile > span { color: var(--muted); font-size: 12.5px; }
.an-tile b { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--text); }
.an-tile b small, .an-tile > small { font-size: 12px; color: var(--muted); font-weight: 400; }
.an-ch { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-ch.up { color: var(--green); } .an-ch.down { color: var(--red); } .an-ch.new { color: var(--muted); font-weight: 400; }
.an-google { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.an-google > div { flex: 1; min-width: 220px; color: var(--text); }
.an-google.ok { border-color: var(--green); }
.an-google details { margin-top: 6px; color: var(--muted); font-size: 13px; }
.an-google summary { cursor: pointer; min-height: 24px; }
.an-g { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); flex: none; }
.an-list { list-style: none; margin: 0; padding: 0; }
.an-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 120px repeat(6, minmax(70px, .7fr)) minmax(150px, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.an-site { display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none; }
.an-site b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-site span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-site:hover b { text-decoration: underline; }
.an-num { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.an-num > b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-num small { color: var(--muted); font-size: 12px; }
.an-muted { color: var(--muted); }
.an-spark { width: 120px; height: 28px; display: block; }
.an-spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.an-spark-fill { fill: var(--accent-soft); stroke: none; }
.an-spark-base { stroke: var(--border-strong); stroke-width: 1; }
.an-setup { display: flex; flex-wrap: wrap; gap: 4px; }
.an-chip { font-size: 12px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.an-chip.on { border-color: var(--green); color: var(--text); }
.an-chip.warn { border-color: var(--amber); color: var(--text); }
.an-more { margin-top: 8px; }
.an-score { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid var(--border); color: var(--text); }
.an-score.green { border-color: var(--green); background: var(--green-soft); } .an-score.amber { border-color: var(--amber); background: var(--amber-soft); } .an-score.red { border-color: var(--red); background: var(--red-soft); }
.an-score.big { min-width: 52px; height: 52px; border-radius: 50%; font-size: 18px; }
.an-vital { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-vital i { font-style: normal; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; color: #fff; background: var(--muted); }
.an-vital.green i { background: var(--green); } .an-vital.amber i { background: var(--amber); } .an-vital.red i { background: var(--red); }
.an-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.an-grid2 .si-panel { margin: 0; }
.an-section { margin: 26px 0 10px; font-size: 18px; }
.an-h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
.an-bars { list-style: none; margin: 0; padding: 0; }
.an-bars li { position: relative; display: flex; gap: 10px; align-items: center; padding: 5px 8px; min-height: 28px; border-radius: 6px; overflow: hidden; }
.an-bar { position: absolute; inset: 2px auto 2px 0; width: var(--w); background: var(--accent-soft); border-radius: 0 4px 4px 0; z-index: 0; }
.an-bl { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.an-bl small { color: var(--muted); }
.an-bars b { position: relative; font-variant-numeric: tabular-nums; color: var(--text); }
.an-empty { color: var(--muted); padding: 10px 0; }
.an-chart-wrap { position: relative; }
.an-chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.an-grid { stroke: var(--border); stroke-width: 1; }
.an-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.an-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-area { fill: var(--accent-soft); }
.an-cross { stroke: var(--border-strong); stroke-width: 1; }
.an-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.an-hit { fill: transparent; cursor: crosshair; }
.an-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow); color: var(--text); white-space: nowrap; transform: translateY(-100%); }
.an-tip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.an-table { margin-top: 8px; color: var(--muted); }
.an-table summary { cursor: pointer; min-height: 24px; }
.an-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; color: var(--text); }
.an-table th, .an-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.an-vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.an-vitals div { display: flex; flex-direction: column; gap: 3px; }
.an-vitals dt { color: var(--muted); font-size: 12.5px; } .an-vitals dd { margin: 0; }
.an-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.an-warn { color: var(--text); background: var(--amber-soft); border: 1px solid var(--amber); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.an-errors { list-style: none; margin: 0; padding: 0; }
.an-errors li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.an-errors li span { display: flex; flex-direction: column; min-width: 0; }
.an-errors code { white-space: pre-wrap; word-break: break-word; }
.an-errors small { color: var(--muted); }
.an-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.an-mini div { display: flex; flex-direction: column; }
.an-mini b { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--text); } .an-mini span { color: var(--muted); font-size: 12px; }
.an-dials { display: flex; gap: 16px; flex-wrap: wrap; }
.an-dials div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.an-fixes { margin: 0; padding-left: 18px; } .an-fixes li { padding: 2px 0; } .an-fixes small { color: var(--muted); }
.an-kit { list-style: none; margin: 0 0 10px; padding: 0; }
.an-kit li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: var(--muted); }
.an-kit li.on { color: var(--text); }
.an-kit i { font-style: normal; width: 18px; flex: none; text-align: center; }
.an-kit li.on i { color: var(--green); }
.an-kit span { display: flex; flex-direction: column; min-width: 0; } .an-kit small { color: var(--muted); overflow-wrap: anywhere; }
.an-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.an-acct { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.an-acct select { width: auto; min-height: 32px; }
.an-hand { margin-top: 12px; } .an-hand summary { cursor: pointer; color: var(--muted); min-height: 24px; }
.an-form { display: grid; gap: 8px; margin-top: 8px; }
.an-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.an-form .btn { justify-self: start; }
@media (max-width: 1100px) {
  .an-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .an-row .an-site { grid-column: 1 / 4; } .an-row .an-sp { grid-column: 4; justify-self: end; }
  .an-row .an-setup { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .an-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-row .an-site { grid-column: 1 / -1; } .an-row .an-sp { grid-column: 1 / -1; justify-self: stretch; } .an-spark { width: 100%; }
  .an-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-tile b { font-size: 22px; }
}
.an-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 14px; padding-bottom: 2px; }
.an-tabs::-webkit-scrollbar { display: none; }
.an-tab { flex: none; cursor: pointer; font: inherit; font-size: 13.5px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); }
.an-tab.on { background: var(--accent-soft); border-color: var(--accent-border); color: var(--text); font-weight: 600; }
.an-tab:focus-visible, .an-p:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.an [data-pane] > .si-panel, .an [data-pane] > .an-google { margin-bottom: 14px; }
.an-num > .an-score, .an-num > .an-vital { align-self: flex-start; }
.an-rt { font-weight: 400; color: var(--muted); }
.an-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); }
.an-tip[hidden], .an [data-pane][hidden] { display: none; }
