/* Organization concept page — prefix .og- */
.og-scroll { position: absolute; inset: 0; }
.og-wrap { max-width: 1180px; margin: 0 auto; padding: 80px 40px 60px; display: flex; flex-direction: column; gap: 18px; container: og / inline-size; }

/* ---------- header ---------- */
.og-head { display: flex; align-items: center; gap: 18px; padding: 8px 2px 6px; }
.og-mark { position: relative; isolation: isolate; flex: none; }
.og-mark::before { content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 30%, transparent), transparent); filter: blur(8px); opacity: .7; }
.og-mark .orgmark { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(0,0,0,.3), 0 10px 30px -10px color-mix(in oklab, var(--c) 60%, transparent); }
.og-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.og-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.og-title-row .h-page { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-role { flex: none; height: 24px; color: var(--t-2); }
.og-role svg { color: var(--t-4); }
.og-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; font-size: 12.5px; color: var(--t-3); }
.og-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.og-meta svg { color: var(--t-4); }
.og-sep-dot::before { content: ""; width: 3px; height: 3px; margin-right: 4px; border-radius: 50%; background: var(--t-5); flex: none; }
.og-acts { display: flex; gap: 8px; flex: none; align-self: flex-start; margin-top: 6px; }

/* ---------- top: summary + stats ---------- */
.og-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: stretch; }
.og-sum { display: flex; flex-direction: column; padding: 18px 22px 16px; overflow: hidden;
  background: radial-gradient(110% 130% at 0% 0%, rgba(139,131,255,.10), transparent 52%), radial-gradient(80% 120% at 100% 100%, color-mix(in oklab, var(--c) 7%, transparent), transparent 60%), var(--e-1); }
.og-sum::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(179,173,255,.55), transparent); opacity: .7; }
.og-sum-top { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.og-ai { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); }
.og-ai-t { color: var(--t-4); text-transform: none; letter-spacing: .02em; }
.og-refresh svg { transition: transform var(--d-4) var(--ease-out); }
.og-sum.thinking .og-refresh svg { animation: spin 900ms linear infinite; }
.og-sum-text { margin: 10px 0 16px; font: 450 18px/1.62 var(--f-ui); letter-spacing: -0.012em; color: var(--t-3); max-width: 760px; transition: opacity var(--d-3); }
.og-sum.thinking .og-sum-text { animation: og-breathe 1.1s var(--ease-std) infinite alternate; }
@keyframes og-breathe { to { opacity: .45; } }
.og-f { color: var(--t-1); }
.og-g { color: var(--t-2); text-decoration: underline dashed rgba(179,173,255,.55); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.og-cite { position: relative; top: -0.5em; display: inline-grid; place-items: center; min-width: 15px; height: 15px; padding: 0 3px; margin: 0 1px 0 3px;
  border-radius: 4px; font: 600 9.5px/1 var(--f-mono); color: var(--accent-2); background: var(--accent-bg); border: 1px solid transparent;
  transition: background var(--d-1), border-color var(--d-1); vertical-align: baseline; }
.og-nw { white-space: nowrap; }
.og-cite:hover { background: rgba(139,131,255,.24); border-color: var(--accent-line); }
.og-sum-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-1); }
.og-src-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.og-src-row .src-pill { max-width: 170px; }
.og-legend { flex: none; display: flex; gap: 12px; font-size: 11.5px; color: var(--t-4); }
.og-legend span { display: inline-flex; align-items: center; gap: 6px; }
.og-lg-f, .og-lg-g { display: inline-block; width: 14px; height: 0; border-top: 1.5px solid var(--t-1); }
.og-lg-g { border-top: 1.5px dashed rgba(179,173,255,.7); }

.og-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.og-stat { display: flex; flex-direction: column; padding: 13px 14px 12px; min-width: 0; }
.og-stat .eyebrow { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-stat-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 9px 0 6px; }
.og-stat-n { font-size: 30px; font-weight: 600; line-height: .95; color: var(--t-1); }
.og-stat-sub { font-size: 11.5px; color: var(--t-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-stat-sub b { font-weight: var(--w-ui); }
.og-red { color: var(--red-tx); } .og-amber { color: var(--amber-tx); }
.og-up { display: inline-flex; align-items: center; gap: 1px; color: var(--t-2); font-family: var(--f-mono); font-size: 11px; }
.og-up svg { color: var(--green); }
.og-spark { flex: none; margin-bottom: 1px; }
.og-stack { display: flex; padding-left: 6px; margin-bottom: 2px; }
.og-stack .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--e-1), inset 0 0 0 1px rgba(255,255,255,.12); }
.og-pips, .og-meter { display: flex; gap: 3px; margin-bottom: 3px; }
.og-pips i { width: 6px; height: 16px; border-radius: 2px; background: var(--t-5); }
.og-pips i.over { background: var(--red); box-shadow: 0 0 8px rgba(255,97,102,.55); }
.og-pips i.soon { background: var(--amber); }
.og-meter { gap: 2px; }
.og-meter i { width: 5px; height: 16px; border-radius: 1.5px; background: rgba(198,202,211,.28); }
.og-meter i.soon { background: var(--amber); box-shadow: 0 0 8px rgba(245,179,63,.5); }

/* ---------- shared card head ---------- */
.og-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.og-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; min-height: 28px; }
.og-card-h > div:first-child { min-width: 0; }
.og-card-h .eyebrow + .h-sec { margin-top: 5px; }
.og-card-ht { display: flex; align-items: center; gap: 8px; }
.og-count { height: 18px; padding: 0 6px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 11px; color: var(--t-3); background: rgba(255,255,255,.05); }

/* ---------- to handle ---------- */
.og-todo { padding: 15px 8px 8px; }
.og-todo > .og-card-h { padding: 0 8px 0 10px; }
.og-iss-list { display: flex; flex-direction: column; }
.og-iss { position: relative; display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 10px 11px 10px;
  border-radius: 10px; outline: none; transition: background var(--d-1), opacity var(--d-2); }
.og-iss + .og-iss::before { content: ""; position: absolute; left: 27px; right: 10px; top: 0; height: 1px; background: var(--line-1); transition: opacity var(--d-1); }
.og-iss:hover, .og-iss:focus-visible, .og-iss.menu-on { background: rgba(255,255,255,.04); }
.og-iss:hover::before, .og-iss:hover + .og-iss::before, .og-iss.menu-on::before, .og-iss.menu-on + .og-iss::before { opacity: 0; }
.og-iss:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-line); }
.og-sev { width: 3px; height: 34px; border-radius: 3px; background: var(--t-5); transition: background var(--d-2), box-shadow var(--d-2); }
.og-iss.over .og-sev { background: var(--red); box-shadow: 0 0 10px rgba(255,97,102,.55); }
.og-iss.soon .og-sev { background: var(--amber); }
.og-iss.working .og-sev { background: linear-gradient(180deg, var(--orb-a), var(--orb-c), var(--orb-b)); background-size: 100% 300%; animation: og-sweep 900ms linear infinite; box-shadow: 0 0 12px rgba(139,131,255,.6); }
@keyframes og-sweep { to { background-position: 0 300%; } }
.og-iss.is-done .og-sev { background: var(--accent); box-shadow: none; }
.og-iss-b { min-width: 0; }
.og-iss-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; font-weight: var(--w-med); color: var(--t-1); letter-spacing: -0.005em; }
.og-iss-t .chip { flex: none; }
.og-iss.is-done .og-iss-t > .ell { color: var(--t-2); }
.og-iss-m { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; }
.og-iss-m .chip { flex: none; }
.og-iss-sub { flex: 1; min-width: 40px; font-size: 12px; color: var(--t-4); }
.og-dchip { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 5px; height: 20px; min-width: 0; max-width: 190px; padding: 0 7px 0 5px; border-radius: 6px;
  font-size: 11.5px; color: var(--t-2); background: rgba(255,255,255,.035); border: 1px solid var(--line-1); transition: background var(--d-1), border-color var(--d-1); }
.og-dchip svg { color: var(--t-4); flex: none; }
.og-dchip:hover { background: rgba(255,255,255,.07); border-color: var(--line-2); }
.og-iss-a { display: flex; align-items: center; gap: 2px; }
.og-primary { width: 168px; justify-content: flex-start; gap: 7px; padding: 0 5px 0 9px; transition: background var(--d-1), color var(--d-1), border-color var(--d-1), transform var(--d-1) var(--ease-out); }
.og-primary svg { color: var(--t-3); transition: color var(--d-1); }
.og-primary .ell { flex: 1; min-width: 0; text-align: left; }
.og-ret { height: 16px; min-width: 16px; font-size: 10px; opacity: 0; transition: opacity var(--d-1); }
.og-iss:hover .og-primary, .og-iss:focus-within .og-primary { background: var(--paper); color: var(--ink); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -8px rgba(238,240,244,.35); }
.og-iss:hover .og-primary svg, .og-iss:focus-within .og-primary svg { color: var(--ink); }
.og-iss:hover .og-ret, .og-iss:focus-within .og-ret { opacity: 1; color: #3A3E47; background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); box-shadow: none; }
.og-iss.working .og-primary { opacity: .6; pointer-events: none; }
.og-more { color: var(--t-3); }
.og-done-chip { height: 24px; }
.og-iss-a > .btn.ghost.sm:not(.og-more) { color: var(--t-3); }
.og-iss.flash { animation: og-flash 1.4s var(--ease-out); }
@keyframes og-flash { 0% { background: rgba(139,131,255,.16); } 100% { background: transparent; } }
.og-iss.leaving { overflow: hidden; opacity: 0; padding-top: 0; padding-bottom: 0; transition: height 280ms var(--ease-out), opacity 180ms, padding 280ms var(--ease-out); }
.og-empty { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 26px; color: var(--t-3); }
.og-empty svg { color: var(--green); }
.og-todo-foot { display: flex; align-items: center; gap: 6px; padding: 10px 10px 4px; margin: 6px 0 0; border-top: 1px solid var(--line-1); font-size: 11.5px; color: var(--t-4); }
.og-sep { width: 1px; height: 12px; background: var(--line-2); margin: 0 6px; }

/* ---------- key facts ---------- */
.og-facts { padding: 15px 14px 8px 16px; }
.og-fact-list { display: flex; flex-direction: column; }
.og-fact { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 2px; border-top: 1px solid var(--line-1); transition: opacity var(--d-2); }
.og-fact:first-child { border-top: 0; }
.og-fact-l { font-size: 12px; color: var(--t-3); padding-top: 2px; }
.og-fact-v { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; font-size: 13px; color: var(--t-1); line-height: 1.45; padding-top: 1px; }
.og-fv { min-width: 0; overflow-wrap: anywhere; }
.og-fv.mono { font-size: 12.5px; }
.og-fact.guess .og-fv { color: var(--t-2); text-decoration: underline dashed rgba(179,173,255,.55); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.og-guess { flex-basis: 100%; display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 11.5px; color: var(--accent-2); }
.og-guess > span { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; opacity: .9; }
.og-yn { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; color: var(--t-2); background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  transition: background var(--d-1), color var(--d-1), border-color var(--d-1), transform var(--d-1) var(--ease-out); }
.og-yn:active { transform: scale(.94); }
.og-yn.ok:hover { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.og-yn.no:hover { color: var(--red); background: var(--red-bg); border-color: var(--red-line); }
.og-fact-p { display: flex; gap: 4px; align-items: center; }
.og-prov, .og-copy { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--t-4); background: rgba(255,255,255,.03); border: 1px solid var(--line-1);
  transition: color var(--d-1), background var(--d-1), border-color var(--d-1), opacity var(--d-1); }
.og-prov:hover, .og-copy:hover { color: var(--t-1); background: rgba(255,255,255,.07); border-color: var(--line-2); }
.og-prov.g { color: var(--accent-2); border: 1px dashed var(--accent-line); background: transparent; }
.og-prov.ok { color: var(--green); }
.og-copy { opacity: 0; background: transparent; border-color: transparent; }
.og-fact:hover .og-copy { opacity: 1; }
.og-fact.confirming { opacity: .5; }
.og-fact.flash { animation: og-flash-g 1.4s var(--ease-out); border-radius: 8px; }
@keyframes og-flash-g { 0% { background: rgba(61,214,140,.14); } 100% { background: transparent; } }
.og-fact.rejected .og-fv { text-decoration: line-through; color: var(--t-4); }
.og-fact.rejected .og-guess { opacity: .4; pointer-events: none; }

/* ---------- time band ---------- */
.og-band { padding: 17px 20px 12px; z-index: 2; }
.og-band .og-card-h { align-items: flex-end; margin-bottom: 12px; }
.og-band-lg { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 11.5px; color: var(--t-4); }
.og-band-lg span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.og-band-lg i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.og-band-lg i.d { background: rgba(198,202,211,.5); width: 5px; height: 5px; }
.og-band-lg i.k { background: var(--c); box-shadow: 0 0 0 2px var(--e-1), 0 0 0 3px color-mix(in oklab, var(--c) 40%, transparent); }
.og-band-lg i.h { border: 1.5px solid var(--amber); width: 9px; height: 9px; }
.og-band-lg i.r { background: var(--red); box-shadow: 0 0 8px rgba(255,97,102,.7); }
.og-band-lg i.n { width: 1.5px; height: 12px; border-radius: 1px; background: var(--accent-2); box-shadow: 0 0 6px rgba(139,131,255,.9); }
.og-band-plot { position: relative; height: 196px; }
.og-band-svg { display: block; overflow: visible; }
.og-ll { font: 500 10px/1 var(--f-mono); fill: var(--t-4); letter-spacing: .05em; text-transform: uppercase; }
.og-lane { stroke: rgba(255,255,255,.045); stroke-width: 1; }
.og-tick { stroke: rgba(255,255,255,.028); stroke-width: 1; }
.og-tick.yr { stroke: rgba(255,255,255,.075); }
.og-ax { font: 500 10px/1 var(--f-mono); fill: var(--t-4); letter-spacing: .02em; }
.og-ax.yr { fill: var(--t-3); }
.og-dot { fill: rgba(198,202,211,.36); animation: og-dot-in 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 520ms + 120ms); }
.og-key { fill: var(--c); stroke: var(--e-1); stroke-width: 2; filter: drop-shadow(0 0 4px color-mix(in oklab, var(--c) 70%, transparent)); animation: og-dot-in 520ms var(--ease-spring) both; animation-delay: calc(var(--i) * 520ms + 260ms); transform-box: fill-box; transform-origin: center; }
@keyframes og-dot-in { from { opacity: 0; transform: scale(.2); } }
.og-dots circle { transform-box: fill-box; transform-origin: center; }
.og-hb { fill: rgba(255,255,255,.07); }
.og-hb.cur { fill: var(--accent-2); opacity: .45; }
.og-od { stroke: var(--red); stroke-width: 2; stroke-linecap: round; opacity: .5; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: og-draw 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 120ms + 450ms); }
@keyframes og-draw { to { stroke-dashoffset: 0; } }
.og-dr { stroke-width: 1.6; }
.og-dr.over { fill: var(--red); stroke: rgba(255,97,102,.3); stroke-width: 4; }
.og-dr.soon { fill: var(--e-1); stroke: var(--amber); }
.og-dr.later { fill: var(--e-1); stroke: var(--t-3); }
.og-odl { font: 500 10.5px/1 var(--f-ui); fill: var(--red-tx); }
.og-dll { font: 500 10.5px/1 var(--f-ui); fill: var(--t-2); }
.og-hl { stroke: rgba(139,131,255,.075); stroke-width: 2; }
.og-futl { font: 500 10px/1 var(--f-mono); fill: var(--accent-2); opacity: .75; letter-spacing: .08em; text-transform: uppercase; }
.og-nowl { stroke-width: 1.3; filter: drop-shadow(0 0 4px rgba(139,131,255,.9)); }
.og-nowd { fill: var(--accent-2); }
.og-band-svg .hl { fill: none; stroke: var(--t-1); stroke-width: 1.2; opacity: .7; pointer-events: none; }
.og-tip { position: absolute; z-index: 6; left: 0; top: 0; max-width: 250px; padding: 9px 11px; border-radius: 11px; pointer-events: none; display: flex; flex-direction: column; gap: 3px;
  background: var(--glass-bg-strong); opacity: 0; transform: translateY(4px); transition: opacity 140ms var(--ease-out), transform 180ms var(--ease-out); }
.og-tip.on { opacity: 1; transform: none; }
.og-tip b { font-weight: var(--w-med); font-size: 12.5px; color: var(--t-1); line-height: 1.35; }
.og-tip span { font-size: 11.5px; color: var(--t-3); }
.og-tip-k { margin-bottom: 3px; }
.og-tip-img { width: 226px; height: 124px; margin-bottom: 6px; border-radius: 7px; }
.og-tip-img img { object-position: 50% 0; }

/* ---------- people ---------- */
.og-people { padding: 15px 8px 8px; }
.og-people > .og-card-h { padding: 0 6px 0 10px; }
.og-pl { display: flex; flex-direction: column; gap: 1px; }
.og-person { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 9px; transition: background var(--d-1), transform var(--d-1) var(--ease-out); }
.og-person:hover { background: rgba(255,255,255,.045); }
.og-person:active { transform: scale(.99); }
.og-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.og-pn b { font-weight: var(--w-ui); font-size: 13px; color: var(--t-1); }
.og-pn span { font-size: 11.5px; color: var(--t-4); }
.og-pr { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.og-tier { display: flex; gap: 2.5px; }
.og-tier i { width: 4px; height: 4px; border-radius: 50%; background: var(--t-5); }
.og-tier.t1 i:nth-child(1), .og-tier.t2 i:nth-child(-n+2), .og-tier.t3 i { background: var(--t-2); }
.og-last { font-size: 10.5px; color: var(--t-4); }
.og-pl-more { display: flex; align-items: center; gap: 6px; margin: 6px 2px 0; padding: 10px 8px 6px; border-top: 1px solid var(--line-1); border-radius: 0 0 8px 8px; transition: color var(--d-1); }
.og-pl-more svg { color: var(--t-4); flex: none; }
.og-pl-more .dimmer { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-pl-more:hover { color: var(--t-1); }
.og-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.og-whr { padding: 15px 16px 14px; }
.og-whr .og-card-h { margin-bottom: 12px; }
.og-whr-g { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; }
.og-whr-g > div { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--t-2); }
.og-whr-g > div > i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); opacity: var(--a); flex: none; }
.og-whr-g > div .mono { margin-left: auto; font-size: 11px; color: var(--t-4); }
.og-whr-g > div.zero { color: var(--t-4); } .og-whr-g > div.zero > i { opacity: .08; }
.og-whr-path { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; margin-top: 14px; padding: 0 10px; border-radius: 9px; color: var(--t-2);
  background: rgba(0,0,0,.22); border: 1px solid var(--line-1); transition: background var(--d-1), border-color var(--d-1); }
.og-whr-path:hover { background: rgba(255,255,255,.04); border-color: var(--line-2); }
.og-whr-path svg { color: var(--t-4); flex: none; }
.og-whr-path .mono { flex: 1; min-width: 0; text-align: left; font-size: 11.5px; }
.og-whr-l { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11px; color: var(--green-tx); }
.og-whr-l svg { color: var(--green-tx); }

/* ---------- documents ---------- */
.og-docs { min-width: 0; }
.og-docs-h { align-items: flex-end; padding: 0 2px; margin-bottom: 12px; }
.og-docs-note { display: inline-flex; align-items: center; gap: 6px; color: var(--t-4); }
.og-docs-note svg { color: var(--green); }
.og-facets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.og-facet { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--t-3); white-space: nowrap;
  background: rgba(255,255,255,.02); border: 1px solid var(--line-1); transition: background var(--d-1), color var(--d-1), border-color var(--d-1), transform var(--d-1) var(--ease-out); }
.og-facet svg { color: var(--t-4); }
.og-facet .mono { font-size: 10.5px; color: var(--t-4); }
.og-facet:hover { color: var(--t-1); background: rgba(255,255,255,.05); border-color: var(--line-2); }
.og-facet:active { transform: scale(.97); }
.og-facet.on { color: var(--t-1); background: var(--e-3); border-color: var(--line-3); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.4); }
.og-facet.on svg, .og-facet.on .mono { color: var(--t-2); }
.og-doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.og-doc-grid.swap > * { animation: rise var(--d-4) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
.og-doc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 6px; border-radius: var(--r-card); outline: none;
  background: var(--e-1); border: 1px solid var(--line-1); box-shadow: inset 0 1px 0 var(--rim);
  transition: background var(--d-2) var(--ease-out), border-color var(--d-2), transform var(--d-2) var(--ease-out); }
.og-doc:hover, .og-doc:focus-visible { background: var(--e-2); border-color: var(--line-2); }
.og-doc:active { transform: scale(.99); }
.og-doc-face { position: relative; height: 128px; border-radius: 8px; overflow: hidden; background: var(--e-2); border: 1px solid var(--line-1); }
.og-doc-face img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-5) var(--ease-out), filter var(--d-3); }
.og-doc:hover .og-doc-face img { transform: scale(1.035); }
.og-doc-type { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 11px 12px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%), var(--e-2); }
.og-doc-type::after { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 28px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--e-2)); }
.og-doc:hover .og-doc-type::after { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--e-2) 100%, var(--e-3) 0%)); }
.og-doc-kic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--t-2); background: rgba(255,255,255,.05); border: 1px solid var(--line-1); flex: none; }
.og-doc-type p { margin: 0; font: 450 12px/1.5 var(--f-ui); color: var(--t-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.og-doc-file { margin-top: auto; font-size: 10.5px; color: var(--t-4); }
.og-doc.priv .og-doc-face img { filter: blur(12px) saturate(.5) brightness(.8); transform: scale(1.18); }
.og-doc.priv:hover .og-doc-face img { transform: scale(1.2); }
.og-doc-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); white-space: nowrap; font-size: 11.5px; color: var(--green-tx); background: rgba(10,11,14,.62); border: 1px solid var(--green-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.og-doc-hov { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 6px; padding: 28px 8px 8px;
  background: linear-gradient(180deg, transparent, rgba(8,9,12,.85)); opacity: 0; transform: translateY(4px); transition: opacity var(--d-2) var(--ease-out), transform var(--d-2) var(--ease-out); }
.og-doc:hover .og-doc-hov, .og-doc:focus-within .og-doc-hov { opacity: 1; transform: none; }
.og-glass-btn { width: 26px; padding: 0; background: rgba(20,21,27,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.og-doc-cap { padding: 9px 4px 2px; min-width: 0; }
.og-doc-t { font-size: 12.5px; font-weight: var(--w-ui); color: var(--t-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-doc-m { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--t-4); }
.og-doc-m .ell { flex: 1; min-width: 0; }
.og-doc-m svg { flex: none; }
.og-doc-m .mono { flex: none; font-size: 10.5px; }
.og-doc-all { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; min-height: 100%; padding: 14px 16px; text-align: left;
  border-radius: var(--r-card); border: 1px dashed var(--line-2); color: var(--t-3); font-size: 12.5px;
  background: radial-gradient(90% 80% at 0% 100%, color-mix(in oklab, var(--c) 9%, transparent), transparent 70%);
  transition: background var(--d-2), border-color var(--d-2), transform var(--d-1) var(--ease-out); }
.og-doc-all .num { font-size: 30px; font-weight: 600; color: var(--t-1); line-height: 1.05; }
.og-doc-all-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--t-2); font-size: 12px; }
.og-doc-all:hover { border-color: var(--line-3); background-color: rgba(255,255,255,.025); }
.og-doc-all:active { transform: scale(.99); }

/* ---------- scoped ask + foot ---------- */
.og-ask { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.og-ask .composer { background: rgba(20,21,27,.86); }
.og-scope { color: var(--t-1); }
.og-scope svg { color: var(--t-4); }
.og-scope-n { margin-left: 6px; color: var(--t-4); }
.og-sugg { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 2px; }
.og-foot { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; padding: 14px 0 0; font-size: var(--fs-12); color: var(--t-4); }
.og-foot > span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- action menu (⋯ / ⌘K) ---------- */
.menu-open[data-tip]:hover::after { display: none; }
.btn.menu-open { background: rgba(255,255,255,.08); color: var(--t-1); }
.og-menu { position: absolute; z-index: 40; width: 280px; padding: 6px; border-radius: 13px; background: var(--glass-bg-strong);
  transform-origin: top right; animation: og-pop 180ms var(--ease-out) both; }
@keyframes og-pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.og-menu-h { padding: 7px 9px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--t-4); }
.og-mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px 0 9px; border-radius: 8px; font-size: 13px; color: var(--t-2); text-align: left; }
.og-mi > span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-mi svg { color: var(--t-3); flex: none; }
.og-mi.on { background: rgba(255,255,255,.08); color: var(--t-1); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.og-mi.on svg { color: var(--t-1); }
.og-mi .kbd { height: 17px; min-width: 17px; font-size: 10px; }

/* ---------- inspector: where it lives ---------- */
.og-insp { display: flex; flex-direction: column; gap: 22px; padding-top: 16px; }
.og-is-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.og-is-h .mono { font-size: 11px; color: var(--t-3); letter-spacing: 0; }
.og-alias { display: flex; flex-wrap: wrap; gap: 6px; }
.og-alias .chip svg { color: var(--t-4); }
.og-alias .chip.mono { font-size: 11px; }
.og-sg { margin-top: 10px; padding: 10px 10px 10px 11px; border-radius: 10px; border: 1px dashed var(--accent-line); background: rgba(139,131,255,.05); }
.og-sg-t { display: flex; gap: 7px; font-size: 12px; color: var(--t-2); line-height: 1.5; }
.og-sg-t svg { color: var(--accent-2); flex: none; margin-top: 3px; }
.og-sg-t b { color: var(--t-1); font-weight: var(--w-med); }
.og-sg-t.done svg { color: var(--green); }
.og-sg-a { display: flex; gap: 6px; margin: 9px 0 0 19px; }
.og-srcbar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.og-srcbar i { background: var(--c); opacity: var(--a); transition: opacity var(--d-1); }
.og-srcbar i:hover { opacity: 1; }
.og-srclg { display: flex; flex-direction: column; margin-top: 10px; }
.og-srcl { display: grid; grid-template-columns: 8px 16px minmax(0, 1fr) auto 34px; gap: 8px; align-items: center; height: 28px; font-size: 12.5px; color: var(--t-2); }
.og-srcl > i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: var(--a); }
.og-srcl svg { color: var(--t-4); }
.og-srcl .mono { font-size: 11.5px; text-align: right; }
.og-srcl.zero { color: var(--t-4); }
.og-srcl.zero > i { opacity: .08; }
.og-tree { padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.26); border: 1px solid var(--line-1); font-size: 11.5px; line-height: 1.8; color: var(--t-2); overflow: hidden; }
.og-tr { display: flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; }
.og-tr svg { color: var(--t-4); flex: none; }
.og-tr-g { color: var(--t-5); flex: none; }
.og-tr-c { margin-left: auto; padding-left: 10px; color: var(--t-4); }
.og-tr.root { color: var(--t-1); }
.og-tr.root svg { color: var(--c); }
.og-tr.leaf { color: var(--t-3); font-size: 11px; }
.og-tr.leaf svg { color: var(--accent-2); }
.og-tr.arrow { color: var(--accent-2); opacity: .75; font-size: 11px; }
.og-tr .og-tr-n { min-width: 0; }
.og-nomove { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.5; color: var(--green-tx);
  background: var(--green-bg); border: 1px solid var(--green-line); }
.og-nomove svg { flex: none; margin-top: 2px; }
.og-is-btn { margin-top: 10px; width: 100%; }
.og-how { display: flex; flex-direction: column; }
.og-hw { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line-1); font-size: 12.5px; color: var(--t-2); line-height: 1.45; }
.og-hw:first-child { border-top: 0; padding-top: 2px; }
.og-hw-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); }
.og-hw.you .og-hw-ic { color: var(--accent-2); background: var(--accent-bg); border-color: var(--accent-line); }
.og-hw-v { margin-top: 2px; font-size: 11px; color: var(--t-3); }
.og-hw-k { font: 500 10px/1.9 var(--f-mono); color: var(--t-4); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.og-is-note { margin: 10px 0 0; line-height: 1.55; }

/* compact corner lock for text-face cards (live items have no thumbnail to blur) */
.og-doc-lock.corner { left: auto; right: 8px; top: 8px; transform: none; width: 24px; height: 24px; padding: 0; }

/* ---------- live loading / error shell ---------- */
.og-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 320px; padding: 40px 20px;
  color: var(--t-3); text-align: center; animation: rise var(--d-4) var(--ease-out) both; }
.og-loading p { margin: 0; font-size: 13.5px; color: var(--t-3); max-width: 420px; line-height: 1.6; }
.og-loading svg { color: var(--t-4); }
.og-loading.error svg { color: var(--amber); }

/* ---------- responsive (container = the page column, so it reacts to the inspector too) ---------- */
@container og (max-width: 1000px) {
  .og-iss-sub { display: none; }
  .og-dchip { max-width: 230px; }
}
@container og (max-width: 880px) {
  .og-top, .og-grid { grid-template-columns: minmax(0, 1fr); }
  .og-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .og-head { flex-wrap: wrap; }
  .og-acts { margin-top: 0; }
}
@container og (max-width: 620px) {
  .og-stats { grid-template-columns: 1fr 1fr; }
  .og-doc-grid { grid-template-columns: 1fr 1fr; }
  .og-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .og-dot, .og-key, .og-od { animation: none; stroke-dashoffset: 0; }
  .og-iss.working .og-sev { animation: none; }
}
