/* Operations: planning, documenten, bouwplaats. */
.ops-mt4 { margin-top: 4px; }
.ops-tight { margin: -8px 0 14px; }
.ops-h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.ops-col { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
.ops-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ops-li-ic { width: 15px; height: 15px; stroke: var(--t3); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ops-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 18px; text-align: center; color: var(--t3); font-size: 13px; }
.ops-human { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--t3); }
.ops-human svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ops-dd svg:last-child { width: 12px; height: 12px; }
.ops-dd.set { background: var(--hy-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hy) 45%, transparent); }
.ops-drawer { padding: 22px 24px 28px; }
.ops-dr-h { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-top: 4px; }
.ops-dr-sub { font-size: 13.5px; font-weight: 500; margin: 22px 0 4px; }
.ops-kv { display: grid; gap: 8px; margin: 14px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--w06); }
.ops-kv > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.ops-kv span { color: var(--t3); }
.ops-kv b { font-weight: 500; text-align: right; }
.ops-match { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--hy-soft); }
.ops-match b { font-weight: 500; }

/* ---------------------------------------------------------------- bezetting grid */
.ops-plan { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ops-scroll { overflow: auto; max-height: calc(100dvh - 268px); min-height: 440px; scrollbar-width: thin; overscroll-behavior: contain; border-radius: inherit; }
.ops-grid { display: grid; grid-template-columns: 176px repeat(5, minmax(134px, 1fr)); min-width: 846px; }
.ops-gh { position: sticky; top: 0; z-index: 3; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 12px 8px; font-size: 12px; color: var(--t3); background: var(--panel); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-2); }
.ops-gh span { font-size: 11px; color: var(--t3); }
.ops-gh.today { color: var(--t0); font-weight: 500; }
.ops-gh.today span { color: var(--hy-ink); background: var(--hy); border-radius: 6px; padding: 0 5px; font-weight: 600; }
.ops-gcorner { left: 0; z-index: 4; justify-content: flex-start; padding-left: 16px; border-left: 0; }
.ops-gp { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 10px 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.ops-gp.off { opacity: 0.62; }
.ops-gp-n { font-size: 12.5px; font-weight: 500; }
.ops-gp-r { font-size: 11px; color: var(--t3); }
.ops-cell { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 86px; padding: 6px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background 0.15s; }
.ops-cell.off { background: repeating-linear-gradient(135deg, var(--w05) 0 6px, transparent 6px 12px); }
.ops-cell.over { outline: 2px dashed var(--t3); outline-offset: -3px; border-radius: 10px; }
.ops-cell.over.ok { outline-color: var(--up); background: color-mix(in srgb, var(--up) 9%, transparent); }
.ops-cell.over.risk { outline-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.ops-add { display: grid; place-items: center; width: 24px; height: 24px; margin: auto; border: 0; border-radius: 8px; background: var(--w0d); color: var(--t3); opacity: 0; transition: opacity 0.15s, background 0.15s; }
.ops-add svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.ops-cell:hover .ops-add, .ops-add:focus-visible { opacity: 1; }
.ops-add:hover { background: var(--w21); color: var(--t0); }
.ops-cell:has(.ops-card) .ops-add { display: none; }
.ops-cell:has(.ops-card):hover .ops-add { display: grid; height: 18px; }
.ops-card { display: block; padding: 7px 9px 8px; border-radius: 10px; background: var(--surf-a); box-shadow: 0 1px 2px var(--k4d), inset 0 0 0 1px var(--line); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: box-shadow 0.2s, opacity 0.15s; outline: none; }
.ops-card:hover { box-shadow: 0 6px 14px -8px var(--kff), inset 0 0 0 1px var(--w33); }
.ops-card:focus-visible { box-shadow: 0 0 0 2px var(--hy); }
.ops-card.dragging { opacity: 0.32; }
.ops-card-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--t0); }
.ops-card-t i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.ops-card-t svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ops-card-s { font-size: 11px; line-height: 1.35; color: var(--t3); margin-top: 1px; }
.ops-card.bad { background: color-mix(in srgb, var(--down) 7%, var(--surf-a)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--down) 58%, transparent); }
.ops-card.bad svg { color: var(--down); }
.ops-card.warn { background: color-mix(in srgb, var(--warn) 7%, var(--surf-a)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 55%, transparent); }
.ops-card.warn svg { color: var(--warn); }
.ops-card.flash { animation: opsFlash 1.3s var(--ease); }
@keyframes opsFlash { 0% { box-shadow: 0 0 0 3px var(--hy); } 100% { box-shadow: 0 0 0 14px transparent; } }
.ops-ghost { position: fixed; left: 0; top: 0; z-index: 500; margin: 0; pointer-events: none; cursor: grabbing; box-shadow: 0 18px 34px -12px var(--kff), inset 0 0 0 1px var(--w33); }
.ops-ghost-h { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--t2); }
.ops-ghost-h.ok { color: var(--up-t); }
.ops-ghost-h.risk { color: var(--warn-t); }
body.ops-dragging, body.ops-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* ai panel */
.ops-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ops-stat { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 12px; background: var(--w06); }
.ops-stat b { font-size: 21px; font-weight: 400; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ops-stat span { font-size: 11px; color: var(--t3); }
.ops-stat.bad b { color: var(--down); } .ops-stat.warn b { color: var(--warn); } .ops-stat.ok b { color: var(--up); }
.ops-risks { display: flex; flex-direction: column; gap: 10px; }
.ops-risk { display: flex; flex-direction: column; gap: 5px; padding: 12px 13px; border-radius: 14px; background: var(--w06); box-shadow: inset 0 0 0 1px var(--w0d); animation: opsIn 0.4s var(--ease) both; }
.ops-risk-t { padding: 0; border: 0; background: none; text-align: left; font-size: 13px; font-weight: 500; color: var(--t0); line-height: 1.3; }
.ops-risk-t:hover { text-decoration: underline; text-underline-offset: 2px; }
.ops-clear { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--up) 9%, transparent); }
.ops-clear svg { width: 18px; height: 18px; stroke: var(--up); fill: none; stroke-width: 2; flex: none; }
.ops-clear b { font-weight: 500; }
@keyframes opsIn { from { opacity: 0; transform: translateY(6px); } }

/* personeel */
.ops-row { cursor: pointer; outline: none; }
.ops-row:focus-visible { background: var(--w12); }
.ops-name { font-weight: 500; }
.ops-certs { display: flex; flex-wrap: wrap; gap: 4px; max-width: 280px; }
.ops-skill { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.ops-skill b { font-weight: 500; font-size: 12.5px; width: 34px; font-variant-numeric: tabular-nums; }
.ops-skill .meter { flex: 1; }
.ops-skill .meter i { background: var(--navy); }

/* regels */
.ops-rules { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ops-sentence { margin: -6px 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--hy-soft); font-size: 12.5px; line-height: 1.45; color: var(--t1); }
.ops-rb { display: flex; flex-direction: column; align-items: stretch; }
.ops-rcard { padding: 14px 16px 4px; border-radius: 16px; background: var(--surf-a); box-shadow: 0 1px 2px var(--k4d), inset 0 0 0 1px var(--line); }
.ops-rcard-h { margin-bottom: 10px; }
.ops-rcard-h h4 { font-size: 13.5px; font-weight: 500; }
.ops-crow { margin-bottom: 12px; }
.ops-crow .ops-two { margin-top: 6px; }
.ops-fsel { background-color: transparent !important; box-shadow: none !important; color: var(--t3); padding-left: 0; font-size: 12px; width: auto; max-width: 240px; }
.ops-rowx { width: 24px !important; height: 24px !important; }
.ops-rl { position: relative; display: flex; justify-content: center; padding: 14px 0; color: var(--t3); }
.ops-rl::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--w40); }
.ops-rl span { position: relative; padding: 4px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ops-rb-add { margin-top: 16px; }
.ops-near { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 5px; }
.ops-near-r { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.ops-pulse { animation: opsIn 0.45s var(--ease); }

/* ---------------------------------------------------------------- facturen */
.ops-fact { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.ops-fact-l { position: sticky; top: 0; }
.ops-fact-h { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; }
.ops-fact-h .seg button { padding: 4px 9px; font-size: 11.5px; }
.ops-searchwrap { position: relative; }
.ops-search { width: 100%; padding-right: 34px; }
.ops-searchwrap svg { position: absolute; right: 11px; top: 11px; width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.ops-inbox { display: flex; flex-direction: column; padding: 0 8px 10px; max-height: calc(100dvh - 300px); min-height: 280px; overflow-y: auto; scrollbar-width: thin; }
.ops-inv { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background 0.15s; }
.ops-inv:hover { background: var(--w0a); }
.ops-inv.on { background: var(--surf-a); box-shadow: 0 1px 2px var(--k4d), inset 0 0 0 1px var(--line); }
.ops-inv-ic { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 2px; }
.ops-inv-f { font-size: 12.5px; font-weight: 500; }
.ops-inv-a { font-size: 12.5px; color: var(--info-t); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops-viewer-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.ops-viewer { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; padding: 16px 18px 18px; align-items: start; }
.ops-paper-box { position: relative; min-width: 0; padding: 16px; border-radius: 16px; background: var(--w06); }
.ops-paper-scroll { height: 720px; overflow: auto; scrollbar-width: thin; }
/* A4 at 72 dpi: 595 x 842 */
.ops-paper { width: 595px; height: 842px; flex: none; display: flex; flex-direction: column; margin: 0 auto; font-size: 12px; line-height: 1.5; padding: 52px 54px 40px; border-radius: 2px; }
.ops-paper mark { background: #ffb81c55; color: inherit; padding: 0 3px; border-radius: 3px; }
.ops-p-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 44px; }
.ops-p-co { font-size: 14px; }
.ops-p-kind { font-size: 22px; letter-spacing: 0.04em; color: #8995a8; font-weight: 500; }
.ops-p-meta { display: flex; justify-content: space-between; gap: 22px; margin-bottom: 34px; }
.ops-p-l { color: #8995a8; font-size: 9.5px; margin-top: 4px; }
.ops-p-t { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.ops-p-t th { text-align: left; font-weight: 600; font-size: 9.5px; padding: 5px 4px; background: #eef1f6; }
.ops-p-t td { padding: 6px 4px; border-bottom: 1px solid #e5e9f0; vertical-align: top; }
.ops-p-t th:nth-child(n + 2), .ops-p-t td:nth-child(n + 2) { text-align: right; white-space: nowrap; }
.ops-p-sum { width: 56%; margin-left: auto; display: flex; flex-direction: column; gap: 4px; }
.ops-p-sum > div { display: flex; justify-content: space-between; }
.ops-p-sum .tot { padding-top: 5px; border-top: 1px solid #c6cedb; font-size: 12px; }
.ops-p-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #e5e9f0; color: #8995a8; font-size: 9.5px; text-align: center; }
.ops-p-page { margin-top: 3px; }
.ops-zoom { position: absolute; left: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ops-zoom-p { font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; }
.ops-ai { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--w06); box-shadow: inset 0 0 0 1px var(--w0d); }
.ops-ai-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--hy-soft); color: var(--hy-ink); flex: none; }
.ops-ai-ic svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root:not([data-theme="light"]) .ops-ai-ic { color: var(--hy); }
.ops-ai-f { display: flex; flex-direction: column; gap: 3px; }
.ops-ai-f > span { font-size: 11.5px; color: var(--t3); }
.ops-ai-f b { font-weight: 500; }
.ops-ai-f .row b { flex: none; }
.ops-ai-f .meter i { background: var(--navy); }
.ops-ai-alts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ops-ai-alts span { width: 100%; font-size: 11.5px; color: var(--t3); }
.ops-why { margin: 0; padding: 0 0 0 15px; font-size: 12px; line-height: 1.45; color: var(--t2); display: flex; flex-direction: column; gap: 3px; }
.ops-guard { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 12px; font-size: 12px; color: var(--brand-t); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.ops-guard svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ops-ai-btns { display: flex; flex-direction: column; gap: 7px; }
.ops-ai-btns .btn { width: 100%; }
.ops-fin { display: flex; flex-direction: column; }
.ops-fin-r { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.ops-fin-r:last-child { border-bottom: 0; }
.ops-fin-r span { color: var(--t2); }
.ops-fin-r b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ops-total td { font-weight: 500; }

/* ---------------------------------------------------------------- engineering */
.ops-saved { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12.5px; color: var(--t2); margin-right: 6px; }
.ops-saved b { font-size: 19px; font-weight: 400; letter-spacing: -0.03em; color: var(--t0); }
.ops-saved em { font-style: normal; margin-left: 6px; color: var(--up-t); }
.ops-eng { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ops-jobs { display: flex; flex-direction: column; padding: 0 8px 10px; }
.ops-job { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background 0.15s; }
.ops-job:hover { background: var(--w0a); }
.ops-job.on { background: var(--surf-a); box-shadow: 0 1px 2px var(--k4d), inset 0 0 0 1px var(--line); }
.ops-job-t { font-size: 13px; font-weight: 500; }
.ops-gen-t { font-size: 21px; font-weight: 400; letter-spacing: -0.03em; margin-top: 2px; }
.ops-gen-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; margin: 14px 0 12px; }
.ops-gen-s { display: flex; flex-direction: column; gap: 6px; }
.ops-out { margin-top: 16px; }
.ops-doc { margin-top: 10px; padding: 20px 22px; border-radius: 16px; background: var(--surf-a); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; line-height: 1.6; }
.ops-doc h4 { font-size: 14px; font-weight: 500; margin: 16px 0 4px; }
.ops-doc h4:first-child { margin-top: 0; }
.ops-doc p { margin: 0; color: var(--t1); }
.ops-doc ul { margin: 4px 0 0; padding-left: 18px; }
.ops-doc .li { padding: 9px 0; font-size: 13px; }
.ops-decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ops-approved { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--up-t); font-size: 13px; }
.ops-approved svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.ops-diff { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--w06); }
.ops-diff b { font-weight: 500; }
.ops-diff-o, .ops-diff-n { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.ops-diff-o span, .ops-diff-n span { flex: none; width: 52px; }
.ops-diff del { color: var(--down-t); text-decoration-thickness: 1px; }
.ops-diff ins { text-decoration: none; background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up-t); padding: 0 3px; border-radius: 3px; }
.ops-know { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.ops-know:first-child { border-top: 0; padding-top: 0; }
.ops-know p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--t2); }

/* ---------------------------------------------------------------- bouwplaats */
.ops-bp { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 18px; align-items: start; }
.ops-bp-stage { display: flex; justify-content: center; padding: 6px 0 14px; }
.ops-ph { position: relative; width: min(368px, 100%); height: 780px; padding: 9px; border-radius: 46px; background: linear-gradient(160deg, #1b2740, #0d1525); box-shadow: 0 0 0 1px #ffffff1f inset, 0 34px 60px -30px var(--kff); }
.ops-ph-notch { position: absolute; top: 18px; left: 50%; z-index: 2; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #060b14; }
.ops-ph-in { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 38px; overflow: hidden; color: var(--t1); background: linear-gradient(180deg, color-mix(in srgb, var(--sky) 11%, var(--bg-2)), var(--bg-2) 40%); }
.ops-ph-status { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 14px 26px 6px; font-size: 14px; }
.ops-ph-status b { font-weight: 600; }
.ops-ph-status span { display: inline-flex; }
.ops-ph-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 6px 14px 12px; overflow-y: auto; scrollbar-width: none; }
.ops-ph-hello { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.ops-ph-ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--hy); color: var(--hy-ink); font-size: 12px; font-weight: 600; flex: none; }
.ops-ph-hello b { display: block; font-weight: 500; font-size: 13.5px; }
.ops-ph-hello span { font-size: 11.5px; color: var(--t3); }
.ops-ph-bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; }
.ops-ph-bell svg { width: 17px; height: 17px; stroke: var(--t2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ops-ph-bell i { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.ops-ph-notes { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ops-ph-notes b { display: block; font-weight: 500; font-size: 12px; }
.ops-ph-notes span { font-size: 11px; color: var(--t3); }
.ops-ph-banner { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 14px; font-size: 11.5px; line-height: 1.35; color: var(--t2); background: color-mix(in srgb, var(--sky) 12%, transparent); flex: none; }
.ops-ph-banner.off { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn-t); }
.ops-ph-sync { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 9px; background: var(--panel); flex: none; }
.ops-ph-sync svg { width: 13px; height: 13px; stroke: var(--t2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ops-ph-sync.spin svg { animation: spin 0.8s linear infinite; }
.ops-ph-card { display: block; width: 100%; padding: 11px 13px; border: 0; border-radius: 14px; background: var(--panel); text-align: left; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.ops-ph-card b { font-weight: 500; font-size: 12.5px; }
.ops-ph-card p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--t2); }
.ops-ph-ctx { display: flex; flex-direction: column; gap: 7px; }
.ops-ph-ctx > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.ops-ph-ctx span { color: var(--t3); }
.ops-ph-info { transition: transform 0.15s; }
.ops-ph-info:active { transform: scale(0.985); }
.ops-ph-info.hot { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warn) 45%, transparent); }
.ops-ph-tag { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 12px; color: var(--t2); }
.ops-ph-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--w0f); }
.ops-ph-ic svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ops-ph-src { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-2); font-size: 10.5px; color: var(--t3); }
.ops-ph-bar { height: 5px; margin-bottom: 2px; border-radius: 999px; background: var(--w10); overflow: hidden; flex: none; }
.ops-ph-bar i { display: block; height: 100%; border-radius: 999px; background: var(--hy-hi); transition: width 0.4s var(--ease); }
.ops-ph-acts { display: flex; flex-direction: column; gap: 7px; padding: 10px 14px 6px; border-top: 1px solid var(--line-2); flex: none; }
.ops-ph-act { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 12px; background: var(--panel); font-size: 12.5px; font-weight: 500; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ops-ph-act:active { background: var(--panel-2); }
.ops-ph-act svg, .ops-ph-act span { position: relative; }
.ops-ph-act svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ops-dl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--hy-soft); }
.ops-ph-home { flex: none; width: 130px; height: 4px; margin: 6px auto 8px; border-radius: 4px; background: var(--t1); opacity: 0.8; }
.ops-ph-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 4px 14px 8px; }
.ops-ph-sub b { font-weight: 500; font-size: 14px; }
.ops-ph-back { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ops-ph-back svg { width: 14px; height: 14px; stroke: var(--t1); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ops-ph-sp { width: 32px; }
.ops-ph-conn { font-size: 11px; color: var(--up-t); }
.ops-ph-conn.off { color: var(--warn-t); }
.ops-ph-sec { padding: 4px 2px 0; font-size: 12px; color: var(--t3); }
.ops-ph-list { display: flex; flex-direction: column; gap: 8px; }
.ops-ph-list b { display: block; }
.ops-ph-list span, .ops-ph-mut { font-size: 11.5px; color: var(--t3); }
.ops-ph-chart { margin-top: 8px; }
.ops-ph-stop { display: flex; gap: 9px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand-t); flex: none; }
.ops-ph-stop svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 1px; }
.ops-ph-stop b { font-weight: 500; font-size: 12.5px; }
.ops-ph-stop p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; }
.ops-ph-steps { display: flex; gap: 5px; flex: none; }
.ops-ph-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--w14); transition: background 0.3s; }
.ops-ph-steps i.on { background: var(--hy-hi); }
.ops-ph-step { display: flex; flex-direction: column; gap: 8px; }
.ops-ph-step span { font-size: 11.5px; color: var(--t3); }
.ops-ph-step b { font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; }
.ops-ph-chk { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: 12.5px; line-height: 1.35; flex: none; }
.ops-ph-box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--w33); flex: none; }
.ops-ph-box svg { width: 11px; height: 11px; stroke: transparent; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ops-ph-chk.on { color: var(--t2); }
.ops-ph-chk.on .ops-ph-box { background: var(--up); box-shadow: none; }
.ops-ph-chk.on .ops-ph-box svg { stroke: var(--panel); }
.ops-ph-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 14px 10px; overflow-y: auto; scrollbar-width: none; }
.ops-ph-intro { padding: 11px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; color: var(--t2); background: color-mix(in srgb, var(--sky) 10%, transparent); }
.ops-ph-msg { max-width: 92%; padding: 9px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; animation: opsIn 0.3s var(--ease) both; flex: none; }
.ops-ph-msg.me { align-self: flex-end; background: var(--inv-bg); color: var(--inv-fg); border-bottom-right-radius: 5px; }
.ops-ph-msg.ai { align-self: flex-start; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.ops-ph-msg.guard { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent); }
.ops-ph-gt { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 11px; font-weight: 500; color: var(--brand-t); }
.ops-ph-gt svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ops-ph-msrc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ops-ph-msrc .src { max-width: 100%; }
.ops-ph-typing { display: inline-flex; gap: 4px; padding: 12px; }
.ops-ph-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--t3); animation: opsDot 1s infinite; }
.ops-ph-typing i:nth-child(2) { animation-delay: 0.15s; }
.ops-ph-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes opsDot { 40% { transform: translateY(-3px); opacity: 0.4; } }
.ops-ph-sug { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 8px; flex: none; }
.ops-ph-sug button { padding: 5px 10px; border: 0; border-radius: 999px; background: var(--w0f); font-size: 11.5px; color: var(--t2); }
.ops-ph-sug button:hover { background: var(--w1a); color: var(--t1); }
.ops-ph-send { display: flex; align-items: center; gap: 7px; padding: 6px 12px 4px; border-top: 1px solid var(--line-2); flex: none; }
.ops-ph-input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--panel); outline: none; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.ops-ph-input::placeholder { font-size: 13px; color: var(--t3); }
.ops-ph-sendb { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--inv-bg); color: var(--inv-fg); flex: none; }
.ops-ph-sendb svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ops-bp-side .seg { display: flex; width: 100%; }
.ops-bp-side .seg button { flex: 1; padding: 5px 4px; }
.ops-online { margin: 2px 0 2px; font-size: 13px; }
.ops-online b { font-weight: 500; }
.ops-log { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 12.5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1320px) {
  .ops-eng { grid-template-columns: 250px minmax(0, 1fr); }
  .ops-eng > :last-child { grid-column: 1 / -1; }
  .ops-viewer { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 1180px) {
  .ops-plan, .ops-rules, .ops-fact, .ops-bp { grid-template-columns: minmax(0, 1fr); }
  .ops-scroll { max-height: 66dvh; }
  .ops-fact-l { position: static; }
  .ops-inbox { max-height: 320px; }
}
@media (max-width: 900px) {
  .ops-eng { grid-template-columns: minmax(0, 1fr); }
  .ops-viewer { grid-template-columns: minmax(0, 1fr); }
  .ops-gen-meta { grid-template-columns: minmax(0, 1fr); }
  .ops-paper-scroll { height: 500px; }
}
@media (max-width: 640px) {
  .ops-grid { grid-template-columns: 104px repeat(5, 132px); min-width: 764px; }
  .ops-gp { padding: 8px 6px 8px 8px; }
  .ops-gp .ava { display: none; }
  .ops-gcorner { padding-left: 8px; }
  .ops-ph { height: 720px; border-radius: 40px; }
  .ops-ph-in { border-radius: 32px; }
  .ops-paper-box { padding: 10px; }
  .ops-zoom { left: 16px; bottom: 16px; }
  .ops-doc { padding: 14px 14px; }
}
