.type-fill {position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;}
.type-ready #layer-type > .copy {opacity:0;}
.type-editor-overlay {position:absolute;inset:0;width:100%;height:100%;z-index:15;touch-action:none;user-select:none;outline:none;}
.type-editor-overlay[hidden],.type-editor-done[hidden] {display:none;}
.type-editor-overlay .type-hit {fill:transparent;stroke:none;cursor:move;pointer-events:all;}
.type-editor-overlay .type-hit:hover {fill:#eeeae20b;stroke:#eeeae24d;stroke-width:1;}
.type-box,.type-stem {fill:none;stroke:#eeeae2df;stroke-width:1;pointer-events:none;}
.type-anchor {fill:#eeeae2;stroke:#1c1920;stroke-width:1;pointer-events:none;}
.type-handle-hit {fill:transparent;pointer-events:all;}
.type-handle--nw,.type-handle--se {cursor:nwse-resize;}
.type-handle--ne,.type-handle--sw {cursor:nesw-resize;}
.type-handle--rotate {cursor:grab;}
.type-editor-overlay.is-dragging .type-hit {cursor:grabbing;}
.type-editor-overlay.is-dragging .type-handle--rotate {cursor:grabbing;}
.type-editor-done {position:absolute;z-index:25;left:5vw;bottom:28px;min-height:44px;background:none;border:0;padding:0;color:var(--paper);font-size:11px;}
.scene[data-type-editing="on"] :is(.masthead,.controls) {z-index:25;}
.scene[data-type-editing="on"] .corner-copy {opacity:0;}
.type-edit-toggle {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;border:0;border-bottom:1px solid #eeeae23d;background:none;color:var(--paper);padding:3px 0 10px;margin:0 0 12px;text-align:left;font-size:10px;}
.type-edit-toggle[aria-pressed="true"] {color:var(--coral);}
.type-editor-help,.type-editor-keys,.type-editor-mobile {font-size:10px;line-height:1.7;color:#eeeae28c;margin:0 0 14px;}
.type-editor-selection {display:block;min-height:42px;font-size:10px;line-height:1.7;color:#eeeae2d9;font-variant-numeric:tabular-nums;white-space:pre-line;margin-bottom:10px;}
.type-editor-actions {display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin-bottom:14px;}
.type-editor-actions button {border:0;border-bottom:1px solid #eeeae23b;padding:4px 0;background:none;color:var(--paper);font-size:9px;min-height:30px;}
.type-editor-actions button:disabled {opacity:.3;cursor:default;}
.type-editor-keys {font-size:9px;}
.scene[data-transition="running"] .type-editor-overlay {pointer-events:none;opacity:.35;}
.type-editor-panel button:disabled {cursor:default;opacity:.35;}
@media(max-width:700px) {.type-edit-toggle,.type-editor-help,.type-editor-selection,.type-editor-actions,.type-editor-keys {display:none;}.type-editor-mobile {display:block;}}

@media(min-width:701px) {.type-editor-panel {max-height:max(180px,calc(100svh - 400px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#eeeae24d transparent;}}
.type-motion-controls {margin:16px 0 0;border-top:1px solid #eeeae235;padding:16px 0 0;}
.type-motion-label {font-size:8px;letter-spacing:.13em;color:#eeeae278;margin:0 0 12px;}
.type-motion-presets {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;margin-bottom:12px;}
.type-motion-presets button {text-align:left;background:none;border:0;border-bottom:1px solid transparent;padding:4px 0;min-height:28px;color:#eeeae294;font-size:10px;}
.type-motion-presets button[aria-pressed="true"] {color:var(--paper);border-bottom-color:var(--coral);}
.type-motion-presets button:hover {color:var(--paper);}
.type-motion-play-row {display:flex;align-items:center;justify-content:space-between;gap:12px;}
#type-motion-play {background:none;border:0;padding:4px 0;min-height:30px;color:var(--paper);font-size:10px;white-space:nowrap;}
#type-motion-play span {margin-left:8px;}
#type-motion-status {font-size:8px;color:#eeeae27d;text-align:right;line-height:1.5;max-width:90px;}
.type-motion-progress {height:1px;background:#eeeae220;margin-top:8px;overflow:hidden;}
.type-motion-progress span {display:block;height:100%;background:var(--coral);transform:scaleX(var(--type-progress,0));transform-origin:left;}
.scene[data-type-motion="playing"] .type-editor-overlay {opacity:0;pointer-events:none;}
@media(max-width:700px) {.type-motion-controls {display:none;}}

.type-text-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:8px;letter-spacing:.13em;color:#eeeae28c;}
#type-text-count{font-variant-numeric:tabular-nums;letter-spacing:0;}
.type-text{display:block;width:100%;min-width:0;min-height:38px;border:0;border-bottom:1px solid #eeeae24d;border-radius:0;background:none;padding:4px 0 8px;margin:0;color:var(--paper);font:inherit;font-size:17px;letter-spacing:-.03em;outline:none;}
.type-text:focus-visible{outline:none;border-bottom-color:var(--coral);box-shadow:0 1px 0 var(--coral);}
.type-text:disabled{opacity:.4;}
.type-text-help{font-size:9px;line-height:1.6;color:#eeeae278;margin:8px 0 16px;}
.type-editor-panel:not([data-editing=on]) :is(.type-editor-help,.type-editor-selection,.type-editor-keys){display:none;}
.type-editor-actions{margin-bottom:0;}
@media(max-width:700px){.type-edit-controls{display:none;}}

.type-section-title{font-size:8px;font-weight:400;line-height:1.5;letter-spacing:.13em;color:#eeeae28c;margin:0 0 9px;}
.type-layout-controls{border-top:1px solid #eeeae235;margin-top:16px;padding-top:16px;}
.type-layout-help{font-size:9px;line-height:1.65;color:#eeeae278;margin:0 0 12px;}
.type-edit-toggle{min-height:30px;padding:3px 0 7px;margin-bottom:10px;}
.type-loop{display:flex;align-items:center;gap:8px;width:max-content;cursor:pointer;font-size:9px;letter-spacing:.09em;color:#eeeae2c9;margin:2px 0 10px;min-height:28px;}
.type-loop input{appearance:none;-webkit-appearance:none;width:12px;height:12px;margin:0;border:1px solid #eeeae280;background:transparent;display:grid;place-content:center;cursor:pointer;}
.type-loop input::before{content:'';width:6px;height:6px;background:var(--coral);transform:scale(0);}
.type-loop input:checked::before{transform:scale(1);}
.type-loop input:focus-visible{outline:1px solid var(--paper);outline-offset:4px;}
.type-loop input:disabled{cursor:default;opacity:.35;}
.labs .type-color-controls{margin:12px 0 0;}
.type-color-controls .post-row{margin-bottom:3px;}
.type-color-controls .post-row-heading{font-size:9px;}
.type-color-note{font-size:8px;line-height:1.5;color:#eeeae278;margin:3px 0 0;}
.type-motion-controls .type-layout-help{margin-bottom:8px;}
@media(max-width:700px){.type-layout-controls{display:none;}}

.type-color-disclosure{margin-top:10px;}
.type-color-disclosure summary{min-height:28px;letter-spacing:0;font-size:10px;color:#eeeae2c9;justify-content:flex-start;gap:8px;}
.type-color-disclosure summary::after{content:'+';margin-left:auto;color:#eeeae278;}
.type-color-disclosure[open] summary::after{content:'−';}
.type-color-swatch{width:8px;height:8px;border-radius:1px;background:var(--type-ink,var(--coral));}
