/* The prototype's floating panel: tooling, never product. It sits above everything, docks bottom right
   by default (beside the app's toasts) and moves to the left with ⇄. */
aside[data-proto] { display: none; }
.f-out { display: none !important; }
.proto { position: fixed; bottom: 1rem; z-index: 100; width: 21rem; max-width: calc(100vw - 2rem); max-height: min(75dvh, 44rem); display: flex; flex-direction: column; font-family: var(--font-sans); font-size: 0.8125rem; line-height: 1.125rem; color: var(--text-color-primary); --control-h: 1.75rem; }
.proto[data-dock="right"] { right: 1rem; align-items: flex-end; }
.proto[data-dock="left"] { left: 1rem; align-items: flex-start; }
.proto[data-lift="true"] { bottom: auto; top: 1rem; }
.proto-pill { display: inline-flex; align-items: center; gap: 0.5rem; height: 2.25rem; padding: 0 0.875rem; border-radius: 999rem; border: 0.0625rem solid var(--border-color-strong); background: var(--background-color-raised); color: var(--text-color-primary); box-shadow: var(--shadow-lg); cursor: pointer; font-weight: 600; }
.proto-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999rem; background: var(--background-color-brand); }
.proto[data-open="true"] .proto-pill { display: none; }
.proto[data-open="false"] .proto-body { display: none; }
.proto-badge { min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 999rem; background: var(--background-color-danger); color: var(--text-color-on-danger); font-size: 0.6875rem; display: inline-flex; align-items: center; justify-content: center; }
.proto-body { width: 100%; overflow-y: auto; background: var(--background-color-raised); border: 0.0625rem solid var(--border-color-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.proto-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 0.875rem; background: var(--background-color-raised); border-bottom: 0.0625rem solid var(--border-color-default); }
.proto-eyebrow, .proto-label, .proto-kind > span { font-size: 0.6875rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-color-tertiary); }
.proto-tools { display: flex; gap: 0.25rem; }
.proto-tools button { width: 1.75rem; height: 1.75rem; font-size: 1rem; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-color-secondary); cursor: pointer; }
.proto-tools button:hover { background: var(--background-color-hover); color: var(--text-color-primary); }
.proto-sec { padding: 0.75rem 0.875rem; border-bottom: 0.0625rem solid var(--border-color-subtle); display: flex; flex-direction: column; gap: 0.5rem; }
.proto-row { flex-direction: row; align-items: center; justify-content: space-between; }
.proto-kind { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.5rem; align-items: start; }
.proto-kind > span { padding-top: 0.3125rem; }
.proto-kind > div, .proto-seg { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.proto-kind button, .proto-seg button { height: 1.75rem; padding: 0 0.625rem; border: 0.0625rem solid var(--border-color-default); border-radius: var(--radius-md); background: var(--background-color-surface); color: var(--text-color-secondary); cursor: pointer; font-size: 0.75rem; font-weight: 500; }
.proto-kind button:hover, .proto-seg button:hover { color: var(--text-color-primary); border-color: var(--border-color-strong); }
.proto-kind button[aria-pressed="true"], .proto-seg button[aria-pressed="true"] { background: var(--background-color-brand); border-color: var(--background-color-brand); color: var(--text-color-on-brand); }
.proto select { height: 1.75rem; padding: 0 0.5rem; font: inherit; color: var(--text-color-primary); background: var(--background-color-surface); border: 0.0625rem solid var(--border-color-strong); border-radius: var(--radius-md); }
.proto details summary { cursor: pointer; font-weight: 600; color: var(--text-color-secondary); }
.proto details ul { margin: 0.25rem 0 0; padding-left: 1rem; display: flex; flex-direction: column; gap: 0.375rem; color: var(--text-color-secondary); }
.proto code { font-size: 0.6875rem; }
.proto-conflicts summary { color: var(--text-color-danger); }
.proto-todo summary { color: var(--text-color-warning); }
.proto-conflicts li b { color: var(--text-color-primary); font-weight: 600; }
.proto-foot { padding: 0.625rem 0.875rem; display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; color: var(--text-color-tertiary); font-size: 0.75rem; }
.proto-foot p { margin: 0; }
@media (max-width: 47.99rem) { .proto { max-height: 55dvh; } }
@media print { .proto { display: none; } }
/* The list a side panel opens over (iframe[data-over]): drawn behind its dim, never clickable. */
.over { position: fixed; inset: 0; z-index: 14; width: 100%; height: 100%; border: 0; }
