:root {
  --ox-paper: #fff; --ox-ink: #1a2c39; --ox-muted: #526570; --ox-line: #c3ced4;
  --ox-field: #f0f5f6; --ox-accent: #105861; --ox-soft: #dcecef; --ox-danger: #8b2926;
}
.ox {
  color: var(--ox-ink); background: var(--ox-paper); padding: clamp(14px, 2.4vw, 32px); min-width: 0;
}
.ox * { box-sizing: border-box; }
.ox h2,.ox h3 { margin: 0; color: var(--ox-ink); line-height: 1.15; overflow-wrap: break-word; }
.ox h2 { font-size: clamp(1.3rem, 3vw, 2.1rem); max-width: 36ch; }
.ox h3 { font-size: 1.1rem; }
.ox-head p,.ox-filter,.ox-agenda span,.ox dt {color: var(--ox-muted); font-size: .88rem;}
.ox-head p { margin: 8px 0 18px; }
.ox-filter { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; border-block:1px solid var(--ox-line); padding:10px 0; }
.ox-filter label { display:flex; align-items:center; gap:8px; min-height:32px; }
.ox .ox-filter input { min-width:0; width:auto; min-height:0; }
.ox-scroll { overflow:auto; }
.ox table { width:100%; border-collapse:collapse; text-align:left; }
.ox th,.ox td { padding:9px 10px; border-bottom:1px solid var(--ox-line); }
.ox th { font-size:.86rem; font-weight:550; color:var(--ox-muted); }
.ox-selected,.ox-agenda button[aria-pressed="true"] { background:var(--ox-soft); }
.ox .ox-select { border:0; background:transparent; color:var(--ox-accent); text-align:left; font:inherit; font-weight:600; padding:6px; cursor:pointer; min-height:40px; }
.ox .ox-select:hover { text-decoration:underline; }
.ox-sheet { border-inline-start:3px solid var(--ox-accent); padding:4px 0 4px 18px; margin-top:24px; }
.ox dl,.ox-fields { display:flex; gap:10px 20px; flex-wrap:wrap; }
.ox dl { margin:12px 0 18px; }
.ox dd { margin:4px 0 0; }
.ox-fields label { display:grid; align-content:start; gap:5px; font-size:.85rem; flex:1 1 155px; max-width:440px; }
.ox input,.ox select { color:var(--ox-ink); background:var(--ox-paper); border:1px solid var(--ox-line); border-radius:4px; padding:8px; min-height:40px; width:100%; min-width:0; font:inherit; }
.ox input[type="checkbox"] { accent-color:var(--ox-accent); }
.ox .ox-action { background:var(--ox-accent); color:var(--ox-paper); border:0; border-radius:4px; min-height:42px; margin-top:12px; padding:8px 14px; cursor:pointer; font:inherit; font-weight:600; }
.ox :focus-visible { outline:3px solid var(--ox-accent); outline-offset:2px; }
.ox-route { display:grid; grid-template-columns:minmax(170px,.7fr) minmax(0,1.8fr); gap:20px; align-items:start; margin-top:18px; }
.ox-route .ox-sheet {margin:0;}
.ox-agenda {background:var(--ox-field);padding:10px;}
.ox-agenda h3 {padding:8px;}
.ox-agenda .ox-select {display:grid; gap:4px; width:100%; padding:10px 8px; border-top:1px solid var(--ox-line);}
.ox-feedback:not(:empty) {padding:12px; background:var(--ox-soft); color:var(--ox-accent);font-weight:550;}
.ox .ox-error {color:var(--ox-danger);}
.ox-log {padding:10px 0; border-top:1px solid var(--ox-line);}
.ox-log summary {cursor:pointer;}
.ox-log li {margin:6px 0;}
@media (max-width:680px) { .ox-route {grid-template-columns: minmax(0,1fr);} .ox-fields label {max-width:none;} .ox td,.ox th {padding:6px;} }
.ox-workbench { margin: 18px 0 24px; }
.ox-workbench h3 { margin: 18px 0 12px; font-size: 1.05rem; }
.ox-workbench .ox-select { width: 100%; text-align: left; min-height: 44px; padding: 8px; border-radius: 4px; }
.ox-workbench .ox-select[aria-pressed="true"] { background:var(--ox-soft); box-shadow:inset 3px 0 var(--ox-accent); }
.ox-workbench .ox-select:focus-visible { outline:2px solid var(--ox-accent); outline-offset:-2px; }
.ox-workbench .ox-select b,.ox-workbench .ox-select small { display:block; overflow-wrap:anywhere; }
.ox-workbench .ox-select small { color:var(--ox-muted); font-size:.86rem; margin-top:3px; }
.ox-lanes,.ox-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr)); gap:12px; }
.ox-lanes section { min-width:0; border-top:3px solid var(--ox-accent); }
.ox-lanes h4 { margin:10px 0; font-size:.95rem; }
.ox-lanes h4 span { font-weight:normal; color:var(--ox-muted); }
.ox-strip { margin:12px 0; }
.ox-facts { margin:12px 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:12px; }
.ox-facts div { min-width:0; padding:10px 0; border-top:1px solid var(--ox-line); }
.ox-facts dt,.ox-facts dd { margin:0; }
.ox-facts dd { margin-top:6px; font-weight:650; overflow-wrap:anywhere; }
.ox-timeline,.ox-events,.ox-steps,.ox-simulation { margin:12px 0; padding:0; list-style:none; }
.ox-timeline li,.ox-events li,.ox-steps li { padding:5px 12px; border-inline-start:2px solid var(--ox-line); }
.ox-timeline span { display:block; color:var(--ox-muted); }
.ox-branch { margin-inline-start:18px; border-inline-start:2px solid var(--ox-line); }
.ox-hint { color:var(--ox-muted); line-height:1.45; font-size:.9rem; max-width:76ch; }
.ox-bars .ox-select { display:grid; grid-template-columns:minmax(5em,2fr) minmax(3em,3fr) minmax(3em,1fr); align-items:center; gap:4px 12px; }
.ox-bars .ox-select small { grid-column:1/-1; }
.ox-scale { height:8px; background:var(--ox-field); }
.ox-scale i { display:block; height:100%; background:var(--ox-accent); }
.ox-workbench .ox-preview { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.ox .ox-preview input { width:5rem; min-width:4rem; }
.ox-simulation li { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--ox-line); }
.ox-workbench table th[scope="row"] { max-width:18rem; }

.ox .ox-select:active,.ox .ox-action:active { box-shadow:inset 0 0 0 2px var(--ox-accent); }
.ox h2 { text-wrap:balance; }

.ox:has(.ot-layout) {container-type:inline-size}
.ot-layout {display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);border:1px solid var(--ox-line);border-radius:8px;overflow:hidden}
.ot-directory,.ot-card {min-width:0;padding:clamp(16px,2.4vw,32px)}
.ot-directory {background:#f5f8f6;border-inline-end:1px solid var(--ox-line)}
.ot-directory header {display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.ot-directory h2 {font-size:1.28rem}.ot-directory header>span,.ot-path,.ot-kind,.ot-owners span,.ot-form p {color:var(--ox-muted);font-size:.875rem}
.ot-layout .ot-tree,.ot-layout .ot-tree ul,.ot-owners {padding:0;margin:0;list-style:none}
.ot-tree ul[role=group] {padding-inline-start:14px;margin-inline-start:10px;border-inline-start:1px solid #bfcec8}
.ot-tree li {margin:0;padding:0;outline:0}
.ot-row {display:flex;align-items:center;gap:6px;min-height:44px;line-height:1.25;color:#25443c;padding:4px 8px 4px 0;border-radius:4px;cursor:pointer}
.ot-row:hover {background:#e6eeea}.ot-tree li[aria-selected=true]>.ot-row {background:#cfe6dc;color:#0c4738;font-weight:650;box-shadow:inset 3px 0 #147052}
.ot-tree li:focus-visible>.ot-row {outline:2px solid #1864a8;outline-offset:-2px}
.ot-name {min-width:0;overflow-wrap:anywhere}.ot-row small {margin-inline-start:auto;color:var(--ox-muted)}
.ot-space,.ot-twist {flex:none;width:24px}.ot-twist {min-height:32px;display:grid;place-items:center}
.ot-twist i {width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)}
.ot-tree [aria-expanded=true]>.ot-row .ot-twist i {transform:rotate(45deg)}
.ot-icon {display:inline-block;flex:none;width:14px;height:11px;border:1.5px solid #647c72;border-radius:2px;position:relative}
.ot-icon-branch:before,.ot-icon-root:before {content:"";position:absolute;left:0;top:-4px;width:7px;height:3px;border:1.5px solid #647c72;border-bottom:0;border-radius:2px 2px 0 0}
.ot-icon-leaf {height:7px;width:7px;margin:0 3.5px;background:#a4b8af;border:0;border-radius:50%}
.ot-path {line-height:1.4;margin:0 0 8px}.ot-path:empty {display:none}.ot-card h2 {font-size:clamp(1.5rem,2.8vw,2.4rem);text-wrap:balance}.ot-kind {margin:8px 0 20px}
.ot-card .ot-facts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border-block:1px solid var(--ox-line);padding-block:14px;margin:0 0 20px}
.ot-facts dd {font-size:1.6rem;line-height:1.2;font-variant-numeric:tabular-nums;margin:4px 0 0}.ot-card h3,.ot-card h4 {font-size:.9rem;margin:16px 0 6px}
.ot-owners li {display:flex;flex-direction:column;margin:0 0 8px;line-height:1.4}.ot-owners strong {font-weight:550}
.ot-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:20px}
.ox .ot-primary,.ox .ot-secondary {font:inherit;font-weight:600;line-height:1.25;border:1px solid var(--ox-line);border-radius:4px;min-height:42px;padding:8px 12px;cursor:pointer;color:var(--ox-accent);background:var(--ox-paper)}
.ox .ot-primary {background:#11583f;border-color:#11583f;color:#f5faf6}.ox .ot-primary:hover,.ox .ot-secondary:hover {filter:brightness(.93)}.ox .ot-primary:active,.ox .ot-secondary:active {transform:translateY(1px)}
.ot-form {border-top:1px solid var(--ox-line);margin-top:16px}.ot-form label {display:grid;gap:4px;margin:10px 0;font-size:.88rem}.ot-form input,.ot-form select {width:100%;min-width:0}.ot-card .ox-feedback:empty {display:none}
@container(max-width:720px){.ot-layout {grid-template-columns:1fr}.ot-directory {border-inline-end:0;border-block-end:1px solid var(--ox-line)}}
.oa-panel {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);border:1px solid var(--line);border-radius:12px;margin:20px 0 0;background:var(--surface);overflow:clip}
.oa-panel .oa-object,.oa-panel>form,.oa-inspect,.oa-preview,.oa-receipt {min-width:0;padding:clamp(16px,2.4vw,28px)}
.oa-panel .oa-object {background:var(--selected)}
.oa-object small,.oa-preview>small,.oa-receipt>small {display:block;color:var(--muted);font-size:.87rem;font-weight:600}
.oa-panel .oa-object h3 {font-size:clamp(1.2rem,2vw,1.6rem);margin:8px 0;letter-spacing:-.03em;color:var(--ink)}
.oa-panel h4 {font-size:1.04rem;margin:4px 0 12px;color:var(--ink)}
.oa-object>span,.oa-last {color:var(--muted);font-size:.9rem;line-height:1.45}
.oa-panel .oa-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.oa-panel .ox-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));align-items:start}
.oa-panel dl {display:grid;gap:8px;margin:0 0 16px}.oa-panel dd {margin:0;color:var(--ink);font-weight:550;overflow-wrap:anywhere}
.oa-panel dt {color:var(--muted);font-size:.86rem}
.oa-button {min-height:44px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px 16px;font:inherit;font-weight:600}
.oa-button.oa-primary {color:var(--surface);background:var(--ink);border-color:var(--ink)}.oa-button:hover {border-color:var(--brand)}
.oa-panel p {margin:8px 0 16px}.oa-preview dl>div {display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1.15fr);gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.ox:has(.oa-panel) {container-type:inline-size}
@container(max-width:680px){.oa-panel {grid-template-columns:1fr}}
.oa-difference {display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:16px 0;padding:12px 16px;border:1px solid var(--line);border-radius:8px}
.oa-difference small,.oa-difference strong {display:block}.oa-difference small {font-size:.8rem;color:var(--muted)}
.oa-difference strong {line-height:1.28;margin-top:4px;overflow-wrap:anywhere}
