/* UI Anatomy — styles shared by the app and the public home page (with kit.js): icons, chips, layer kinds and the stage. */
.ic { display: inline-flex; flex: none; } .ic svg { display: block; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 500; white-space: nowrap; border: 0; }
.chip-ok { background: var(--ok-soft); color: var(--ok); } .chip-warn { background: var(--warn-soft); color: var(--warn); } .chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-muted { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); } .chip-accent { background: var(--accent-soft); color: var(--accent-text); }
.kindsq { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); }
.canvas-bg { background-color: var(--canvas); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 18px 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; font-size: 13px; } .kv > span:nth-child(odd) { color: var(--text-3); } .kv b { font-weight: 500; }
.stage { display: flex; gap: 20px; align-items: stretch; padding: 24px; border-radius: 22px; border: 1px solid var(--line); min-width: 0; }
.st-shot { position: relative; flex: none; align-self: center; border-radius: 14px; overflow: hidden; background: #000; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 1px var(--line-2), 0 30px 50px -28px rgba(0,0,0,.65); --cut: 100%; }
.st-shot img { display: block; width: 100%; height: 100%; }
.st-ana { position: absolute; inset: 0; background: rgba(9,11,16,.66); clip-path: inset(0 0 0 var(--cut)); }
.st-ana i { position: absolute; border: 1px solid var(--k); background: color-mix(in srgb, var(--k) 12%, transparent); border-radius: 2px; } .st-ana i.big { background: none; }
.st-line { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 28px; margin-left: -14px; cursor: ew-resize; }
.st-line::before { content: ''; position: absolute; top: 0; bottom: 0; left: 13px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.st-line::after { content: ''; position: absolute; top: 50%; left: 3px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.st-shot.sweep .st-ana { transition: clip-path 1.1s var(--ease-out); } .st-shot.sweep .st-line { transition: left 1.1s var(--ease-out); }
.st-tag { position: absolute; top: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-size: 11.5px; font-weight: 500; pointer-events: none; } .st-tag.l { left: 8px; } .st-tag.r { right: 8px; }
.st-hl { position: absolute; display: none; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 0 4px color-mix(in srgb, var(--k, #fff) 45%, transparent); pointer-events: none; }
.st-unity { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 12.5px; box-shadow: var(--shadow); }
.st-unity > header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 600; } .st-unity > header .chip { margin-left: auto; height: 22px; font-size: 11.5px; }
.st-rows { flex: 1; min-height: 0; padding: 6px; overflow: hidden; }
.st-row { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 8px; border-radius: 6px; white-space: nowrap; transition: background-color .12s; } .st-row.on { background: var(--accent-soft); }
.st-row .kindsq { width: 18px; height: 18px; border-radius: 5px; } .st-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .st-row .cp { color: var(--text-3); font-size: 11.5px; }
.st-insp { border-top: 1px solid var(--line); background: var(--surface-2); padding: 12px; min-height: 124px; display: flex; flex-direction: column; gap: 8px; }
.st-insp .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; min-width: 0; } .st-insp .who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-insp .kv { font-size: 12.5px; gap: 4px 12px; } .st-insp p { color: var(--text-2); font-size: 12.5px; }
.mix { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; } .mix i { background: var(--k); flex: var(--n) 1 0; }
.mix-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); } .mix-leg span { display: inline-flex; align-items: center; gap: 5px; } .mix-leg i { width: 8px; height: 8px; border-radius: 2px; background: var(--k); }
@media (max-width: 560px) { .stage { flex-direction: column; padding: 16px; } }
/* the signature chamfer: only on the primary button, the brand mark, the workspace tile and the match score */
.cut, .btn-primary { clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)); }
.cut:focus-visible, .btn-primary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--guide); } /* an outline would be clipped by the cut */
:focus-visible { outline: 2px solid var(--guide); outline-offset: 2px; }
h1, h2, h3, .score, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; text-transform: none; }
.mark.cut, .brand i.cut { border-radius: 0; }
.cut, .btn.btn-primary, .btn-primary.btn-lg, .btn-primary.btn-sm { border-radius: 0; } /* square corners under the cut, whatever radius the page gives buttons */
