:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1c3048;background:#f1f5fa;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}.hidden{display:none!important}.home-screen{min-height:100dvh;background:radial-gradient(ellipse at 60% -25%,#d9ebf8 0,transparent 50%),#f5f8fc}.home-container{max-width:1180px;margin:auto;padding:34px 32px 70px}.home-top,.brand,.hero-actions,.section-heading,.local-status{display:flex;align-items:center}.home-top,.section-heading{justify-content:space-between}.brand{gap:12px;font-size:18px;letter-spacing:-.5px;line-height:1.1;font-weight:600}.brand b{font-weight:800}.brand small{display:block;font-size:10px;letter-spacing:1.9px;color:#7d91a9;margin-top:6px;font-weight:700}.brand-mark{width:40px;height:40px;border-radius:13px;background:#132941;color:#78d8dc;display:grid;place-items:center;font-size:22px;box-shadow:inset 0 -5px 9px #0002;flex:0 0 auto}.brand-mark.mini{width:30px;height:30px;border-radius:9px;font-size:17px}.version-chip{font-size:10px;border:1px solid #d4e1eb;border-radius:100px;padding:8px 12px;letter-spacing:1.3px;font-weight:800;color:#7187a0;background:white}.hero{margin:43px 0 40px;display:flex;min-height:300px;justify-content:space-between;gap:30px;border-radius:24px;background:#13253d;position:relative;overflow:hidden;box-shadow:0 22px 50px #14345c1c}.hero:before{content:"";position:absolute;width:550px;height:550px;border-radius:50%;background:radial-gradient(circle,#385e7d70 0,transparent 65%);right:-90px;top:-200px}.hero-copy{z-index:1;padding:43px 15px 46px 48px;max-width:625px}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:900;color:#44b9bf}.hero h1{font-size:clamp(28px,3.5vw,45px);letter-spacing:-1.7px;color:white;line-height:1.12;margin:17px 0 12px}.hero h1 em{color:#7fe0dc;font-style:normal}.hero p{color:#a8bed0;line-height:1.65;max-width:475px;margin:0 0 25px}.hero-actions{gap:11px;flex-wrap:wrap}.btn{border:0;border-radius:10px;padding:12px 18px;font-weight:750;transition:transform .12s,background .12s}.btn:active,.icon-btn:active{transform:scale(.97)}.btn.primary{background:#58c4c5;color:#0b2a3b}.btn.primary:hover{background:#78dfde}.btn.ghost{color:#e6eff7;background:#ffffff17;border:1px solid #ffffff20}.hero-art{width:370px;min-width:245px;align-self:center;z-index:1;margin-right:12px}.hero-art svg{width:100%;filter:drop-shadow(0 18px 20px #0004)}.section-heading{gap:12px;margin-bottom:20px}.section-heading h2{margin:6px 0 0;font-size:23px;letter-spacing:-.5px}.section-heading h2 span{font-size:13px;color:#7e90a1;background:#e8eef4;padding:4px 9px;border-radius:20px;margin-left:5px}.local-status{gap:8px;color:#6a8394;font-size:12px}.status-dot{background:#35b69a;width:7px;height:7px;border-radius:50%}.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:18px}.project-card{position:relative;border:1px solid #e1e7ef;background:#fff;border-radius:18px;text-align:left;padding:0;overflow:hidden;box-shadow:0 7px 20px #2d4a630a;transition:transform .15s,box-shadow .15s}.project-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px #2d4a6320}.project-preview{height:144px;background:#172740;display:grid;place-items:center;overflow:hidden}.project-preview svg{width:98%;height:98%}.project-info{padding:17px}.project-info h3{font-size:15px;margin:0 0 6px;color:#24354c}.project-info p{margin:0;color:#8191a4;font-size:12px}.project-meta{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.meta-tag{font-size:10px;color:#50718b;background:#f0f5f8;padding:6px 8px;border-radius:6px;font-weight:700}.card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:17px;color:#8ca0b1;font-size:11px}.card-bottom .more{border:0;background:#eaf2f5;border-radius:7px;color:#315568;padding:4px 10px;font-size:18px}.new-card{border:1.5px dashed #c4d6e6;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:257px;color:#5c839c;background:#f8fbff}.new-card strong{font-size:14px;color:#415f77}.new-card .plus-large{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:#e2f0f3;color:#28a6ae;font-size:29px}.home-note{margin-top:28px;max-width:900px;border-left:3px solid #80bbc5;padding:12px 16px;font-size:12px;line-height:1.6;color:#71879b;background:#eaf4f8;border-radius:0 9px 9px 0}.editor-screen{height:100dvh;min-height:500px;background:#f1f5f9;display:flex;flex-direction:column;overflow:hidden}.editor-header{height:62px;min-height:62px;background:#fff;display:flex;align-items:center;gap:8px;border-bottom:1px solid #dfe8f0;padding:0 13px;z-index:20}.editor-brand{display:flex;align-items:center;gap:7px;font-weight:900;color:#233c56;font-size:12px;letter-spacing:1.5px}.project-name{margin-left:10px;display:flex;flex-direction:column;gap:1px;max-width:270px;min-width:80px}.project-name input{background:transparent;border:0;outline:0;font-weight:850;color:#1c3048;font-size:15px;width:100%;text-overflow:ellipsis}.project-name input:focus{border-bottom:1px solid #5fb9bf}.project-name span{font-size:10px;color:#8a9cac}.header-spacer{flex:1}.icon-btn{display:inline-grid;place-items:center;width:35px;height:35px;flex:0 0 auto;border:1px solid transparent;background:transparent;color:#556f86;border-radius:9px;font-weight:800;font-size:21px}.icon-btn:hover,.top-btn:hover{background:#ecf3f8}.icon-btn.back{font-size:25px}.save-status{font-size:10px;white-space:nowrap;color:#2da186;font-weight:750;margin-right:6px}.save-status.pending{color:#be8c3d}.top-btn{border:1px solid #e0e9f1;color:#54718a;background:white;display:flex;align-items:center;gap:7px;padding:9px 11px;border-radius:9px;font-weight:750;font-size:12px;white-space:nowrap}.sync-btn{background:#e7f4f5;border-color:#c9e8e8;color:#248f99}.editor-workspace{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}.stage-area{flex:1;min-height:185px;display:flex;flex-direction:column}.stage-toolbar{height:43px;min-height:43px;padding:0 17px;background:#f9fbfe;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e9f0;gap:8px}.stage-indicator{font-weight:850;font-size:12px;color:#35516a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-spark{color:#26aeb8}.stage-tools{display:flex;gap:7px;align-items:center}#stage-dim{font-size:11px;font-weight:750;color:#8ea0b0;margin-right:4px;white-space:nowrap}.small-pill{border:1px solid #dde7ef;background:#fff;border-radius:7px;min-height:30px;padding:4px 10px;color:#688097;font-size:12px;font-weight:750;white-space:nowrap}.small-pill.active{color:#168c96;background:#dcf3f4;border-color:#98d8d8}.small-pill:hover{background:#ecf4f7}.seg{display:flex;background:#e9f0f6;border-radius:8px;padding:3px;gap:2px}.seg button{border:0;border-radius:6px;background:transparent;color:#73879c;font-weight:850;font-size:11px;padding:5px 11px}.seg button.active{background:white;box-shadow:0 1px 4px #18395b24;color:#2b718d}.stage-host{position:relative;flex:1;min-height:0;background:#111d2c;overflow:hidden;touch-action:none}.stage-host svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}.stage-help{position:absolute;left:50%;transform:translateX(-50%);bottom:8px;color:#bacbd9;background:#09172b9c;border:1px solid #51637558;padding:6px 13px;border-radius:100px;font-size:11px;pointer-events:none;max-width:calc(100% - 20px);text-align:center}.transport{height:51px;min-height:51px;display:flex;justify-content:space-between;gap:12px;align-items:center;padding:0 16px;background:white;border-bottom:1px solid #e0e9f1}.transport-left,.transport-right{display:flex;align-items:center;gap:8px}.transport-icon{border:0;background:transparent;font-size:25px;font-weight:600;color:#657e95;padding:2px 7px}.transport-icon:hover{color:#18aab1}.play-btn{width:37px;height:37px;border:0;border-radius:50%;background:#21a8b0;color:white;box-shadow:0 3px 8px #18a1b246;font-size:15px;padding:0}.play-btn.active{background:#e2b16d;color:#18344c}.transport-left #time-readout{margin-left:11px;font-size:13px;white-space:nowrap}.transport-left #time-readout b{color:#243d52}.transport-left #time-readout>span{color:#93a4b3}.transport-right label{font-size:11px;color:#8397a9}.transport-right select{border:1px solid #e1e9f0;border-radius:6px;padding:6px;background:#f7fafc;color:#466079;font-size:12px}.timeline-area{height:188px;min-height:188px;background:#fff;display:flex;flex-direction:column}.timeline-bar{height:44px;min-height:44px;padding:0 15px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e2eaf2}.timeline-bar strong{font-size:11px;color:#2e4a61;letter-spacing:1.2px}.timeline-hint{font-size:10px;color:#9eafbb;margin-left:15px}.timeline-actions{display:flex;align-items:center;gap:5px}.timeline-actions #timeline-zoom{font-size:10px;color:#94a6b8;min-width:42px;text-align:center}.btn.add-small{background:#e0f5f4;color:#138994;font-size:11px;padding:8px 11px}.timeline-layout{display:flex;min-height:0;flex:1}.track-labels{width:106px;min-width:106px;background:#f7fafc;border-right:1px solid #e7edf3}.time-ruler-label{height:27px;font-size:9px;letter-spacing:1px;font-weight:850;color:#a8b7c3;padding:8px 9px}.track-caption{height:62px;border-top:1px solid #e4eaf0;font-weight:700;color:#6b8195;display:flex;gap:6px;align-items:center;padding-left:10px;font-size:15px}.track-caption span{font-size:10px}.track-caption:last-child{height:53px}.timeline-scroll{overflow:auto hidden;flex:1;position:relative;touch-action:pan-x;scrollbar-width:thin;scrollbar-color:#b8d0da transparent}.timeline-inner{position:relative;min-width:100%;height:100%;user-select:none}.time-ruler{height:27px;position:relative;background:#f7fafd;border-bottom:1px solid #e3ebf2}.ruler-tick{position:absolute;top:0;height:26px;width:1px;background:#d6e3ec}.ruler-tick span{font-size:10px;color:#849aaa;position:absolute;left:4px;top:6px}.ruler-tick.minor{height:9px;top:17px;background:#dce6ed}.formation-track{height:62px;background:#f4f8fb;display:flex;align-items:stretch;border-bottom:1px solid #dde7f0;position:relative}.segment{position:relative;flex:none;border-right:1px solid #fff;border-radius:5px;margin:5px 0;height:51px;cursor:pointer;overflow:visible;display:flex;align-items:center;justify-content:center;text-align:center;min-width:22px}.segment.formation{background:#dae6f3;border:1px solid #b8ccde;color:#365976}.segment.formation.selected{background:#d1f1f0;border:2px solid #28adb1;color:#117e88;box-shadow:inset 0 0 0 1px #fff}.segment.transition{background:repeating-linear-gradient(120deg,#f3d6a0 0,#f3d6a0 8px,#ffebc6 8px,#ffebc6 16px);color:#835b20;border:1px solid #dfbb77}.segment.transition.selected{outline:2px solid #db9d3d;outline-offset:-2px}.segment-inner{overflow:hidden;text-overflow:ellipsis;pointer-events:none;padding:0 8px}.segment strong{font-size:11px;display:block;white-space:nowrap}.segment span{font-size:10px;display:block;white-space:nowrap;margin-top:2px}.segment .resize-handle{position:absolute;right:-5px;top:2px;bottom:2px;width:11px;border-radius:5px;background:#ffffffb5;border:1px solid #7c95ae9e;cursor:ew-resize;z-index:4;touch-action:none}.segment.transition .resize-handle{border-color:#b28f55}.audio-track{height:54px;background:#fbfcff;position:relative;border-bottom:1px solid #e4eaf2;cursor:crosshair}.audio-track canvas{height:54px;position:absolute;left:0;top:0;pointer-events:none}.audio-track-label{position:absolute;left:12px;top:18px;color:#a9b8c4;font-size:11px;pointer-events:none;max-width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.playhead{position:absolute;top:0;bottom:0;width:2px;background:#dc546b;z-index:6;pointer-events:none;box-shadow:0 0 0 1px #fff8}.playhead-top{position:absolute;left:-5px;top:0;width:12px;height:11px;background:#dc546b;clip-path:polygon(0 0,100% 0,50% 100%)}.bottom-nav{height:66px;min-height:66px;background:#fff;display:flex;justify-content:center;align-items:stretch;border-top:1px solid #e1eaf1;box-shadow:0 -4px 13px #172a3e0a;z-index:10}.nav-tool{border:0;background:white;color:#6d8192;min-width:92px;max-width:150px;flex:1;font-weight:700;font-size:11px;padding:5px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.nav-tool:hover{background:#f3f9fb}.nav-tool.active{color:#138f9b;background:#eaf7f8;box-shadow:inset 0 3px #22b4b9}.tool-icon{font-family:ui-sans-serif,system-ui;font-size:26px;line-height:26px;font-weight:400}.tool-panel{position:absolute;z-index:12;left:12px;top:58px;bottom:72px;width:292px;max-height:calc(100% - 130px);overflow:hidden;display:flex;flex-direction:column;border:1px solid #d9e5ef;border-radius:15px;background:white;box-shadow:0 17px 55px #091c3245}.tool-header{height:50px;min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 13px 0 18px;border-bottom:1px solid #e8edf3}.tool-header h3{font-size:15px;margin:0;color:#29435a}.tool-content{padding:15px;overflow:auto;overscroll-behavior:contain}.field{margin:0 0 16px}.field label{font-weight:750;color:#526e82;font-size:11px;display:block;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;padding:9px 10px;border:1px solid #dbe6ef;border-radius:8px;background:#f8fafc;color:#344d62;outline:none}.field input:focus,.field select:focus{border-color:#31b2bc;background:white}.field .field-row{display:flex;gap:8px;align-items:center}.field-row input{flex:1;min-width:0}.field small,.tool-note{font-size:11px;color:#899ba9;line-height:1.55}.tool-note{margin:0 0 15px;background:#f0f7fa;border-left:2px solid #61b5bc;padding:9px 10px;border-radius:0 8px 8px 0}.panel-btn{width:100%;border:1px solid #d6e6eb;background:#eef8f9;color:#277b89;border-radius:9px;font-size:12px;padding:10px 12px;font-weight:780;margin:0 0 8px;text-align:left}.panel-btn:hover{background:#dff2f3}.panel-btn.danger{color:#ad4e58;background:#fff0f0;border-color:#f4d6d7}.panel-row{display:flex;gap:7px;align-items:center;margin-bottom:8px}.panel-row .panel-btn{margin:0;flex:1;text-align:center}.members-list{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.member-item{display:flex;align-items:center;gap:9px;width:100%;padding:9px 10px;border:1px solid #e3ebf2;background:#fbfdff;border-radius:9px;text-align:left;font-weight:700;color:#526b80}.member-item.active{background:#e7f7f7;border-color:#49c0c4}.member-swatch{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d6e2e9;flex:0 0 auto}.member-item .mini-meta{font-weight:400;font-size:10px;display:block;color:#8da2b1;margin-top:2px}.member-item .member-index{margin-left:auto;font-size:11px;color:#91a5b3}.swatches{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.swatch{height:29px;width:29px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #dce5eb}.swatch.active{box-shadow:0 0 0 2px #177d92}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}.preset{border:1px solid #dce7ef;border-radius:10px;min-height:66px;background:#f7fbfd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#587288}.preset:hover{background:#e4f3f5;border-color:#98d4d9}.preset .shape{font-size:27px;color:#2a8c9e;font-weight:750}.preset span:last-child{font-size:10px;font-weight:700}.pill-line{display:flex;justify-content:space-between;align-items:center;border:1px solid #e1eaf0;background:#f7fafc;border-radius:8px;padding:9px 10px;margin-bottom:9px;gap:9px;font-size:11px;color:#526c82}.pill-line strong{font-size:11px;color:#2d516b}.divider{height:1px;background:#e7edf1;margin:14px 0}.object-item{display:flex;align-items:center;gap:12px;border:1px solid #dfebf1;border-radius:9px;padding:10px;background:#f7fafc;margin-bottom:8px;font-size:12px;color:#536d83}.object-item .object-name{flex:1}.object-item button{background:transparent;border:0;color:#af6576;font-weight:800}.height-pill{font-size:10px;color:#248e99;background:#e2f3f4;padding:4px 7px;border-radius:6px}.modal-overlay{position:fixed;z-index:90;inset:0;background:#101d30a8;display:grid;place-items:center;padding:18px;backdrop-filter:blur(3px)}.modal-card{position:relative;background:white;border-radius:17px;box-shadow:0 24px 100px #0005;width:min(550px,100%);max-height:90dvh;overflow:auto;padding:27px}.modal-card.wide{width:min(870px,100%)}.modal-x{position:absolute;right:17px;top:14px;background:#f0f4f8;color:#59718a;border:0;width:29px;height:29px;border-radius:8px;font-weight:800}.modal-card h2{font-size:21px;letter-spacing:-.5px;color:#20394f;margin:0 32px 7px 0}.modal-card p{font-size:12px;line-height:1.65;color:#70889b}.modal-card .modal-actions{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}.modal-card .modal-actions .btn{flex:1}.modal-card .field{margin-bottom:13px}.modal-card input[type=checkbox]{width:auto}.modal-card .btn.secondary{background:#edf3f8;color:#476b83}.modal-card .btn.danger{background:#fae7e9;color:#9a384c}.boards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:11px;margin:17px 0}.board-card{border:1px solid #e0e8f0;border-radius:10px;overflow:hidden;background:#fff}.board-card svg{width:100%;height:115px;background:#182840}.board-card .board-caption{padding:10px;font-size:11px;color:#50718a}.board-card b{display:block;color:#26445d;font-size:12px;margin-bottom:5px}.toast{position:fixed;bottom:90px;left:50%;transform:translate(-50%,20px);background:#223b54;color:white;border-radius:10px;padding:12px 18px;font-size:12px;font-weight:600;box-shadow:0 10px 40px #0003;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:200;white-space:normal;max-width:85vw}.toast.visible{opacity:1;transform:translate(-50%,0)}.color-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#607f96}.color-legend>span{display:flex;align-items:center;gap:4px}.color-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}.badge-warning{font-size:11px;color:#925e1c;background:#fff4dd;padding:9px;border-radius:8px;line-height:1.5}.sync-placeholder{padding:13px;border:1px dashed #b8cdd7;border-radius:8px;background:#f6fafb;font-size:12px;color:#68829a;line-height:1.6}.checkbox-row{display:flex;align-items:center;gap:8px;font-size:12px;color:#587387;margin:9px 0}.checkbox-row input{accent-color:#279fa8}.active-button{background:#dff4f4!important;color:#117c86!important;border-color:#85d1d5!important}.updown{display:flex;gap:7px;margin:8px 0}.updown button{flex:1}.mini-preview{display:flex;justify-content:space-between;font-size:11px;color:#8ba0af;margin-bottom:7px}.measurement{color:#a3b9c6;font-size:10px;letter-spacing:1.3px}.preview-locked{font-size:42px;color:#8bb0c7}.delete-link{border:0;background:none;color:#a66b73;text-decoration:underline;text-underline-offset:2px;font-size:11px;padding:7px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1000px){.editor-header{gap:5px;padding:0 8px}.editor-header .save-status{font-size:0}.save-status:before{content:"●";font-size:12px}.top-btn{padding:9px}.top-btn span{display:none}.editor-brand>span{display:none}.project-name{max-width:185px;margin-left:3px}.stage-toolbar{padding:0 9px}.timeline-hint{display:none}.hero-art{width:280px;min-width:210px}.tool-panel{top:50px;width:270px}}
@media(max-width:690px){.home-container{padding:22px 17px 45px}.home-top .version-chip{font-size:8px}.hero{margin:24px 0}.hero-copy{padding:29px 24px}.hero-art{display:none}.section-heading{align-items:flex-start}.local-status{font-size:10px}.editor-header{min-height:53px;height:53px}.project-name{max-width:122px}.project-name input{font-size:12px}.project-name span{font-size:9px}.editor-header .icon-btn{width:28px;height:31px}.editor-header .top-btn{padding:5px 7px}.sync-btn{display:none}.stage-tools #stage-dim,.stage-tools #grid-toggle,.stage-tools #stage-reset{display:none}.stage-help{font-size:10px}.transport{padding:0 7px}.transport-left,.transport-right{gap:2px}.transport-left #time-readout{margin-left:3px;font-size:11px}.transport-right label{display:none}.transport-right select{padding:4px;width:53px}.transport-right #loop-toggle{font-size:0}.transport-right #loop-toggle:before{content:'↻';font-size:17px}.timeline-area{height:174px;min-height:174px}.timeline-bar{padding:0 7px}.timeline-bar strong{font-size:10px}.timeline-actions #timeline-zoom{display:none}.track-labels{width:62px;min-width:62px}.track-caption{font-size:12px;flex-direction:column;gap:0;justify-content:center;padding:0}.track-caption span{font-size:8px}.bottom-nav{min-height:60px;height:60px}.nav-tool{min-width:0;font-size:9px;gap:1px}.tool-icon{font-size:23px}.tool-panel{left:5px;right:5px;top:auto;bottom:64px;width:auto;max-height:65%;border-radius:14px}.hero h1{font-size:31px}.hero p{font-size:12px}}
@media(max-height:650px) and (min-width:690px){.stage-area{min-height:175px}.timeline-area{height:160px;min-height:160px}.timeline-bar{height:33px;min-height:33px}.bottom-nav{height:54px;min-height:54px}.nav-tool{font-size:10px}.tool-icon{font-size:20px;line-height:20px}.editor-header{height:52px;min-height:52px}.stage-toolbar{height:33px;min-height:33px}.transport{height:43px;min-height:43px}.play-btn{height:32px;width:32px}}
@media print{body{background:white}.home-screen,.editor-screen,.modal-overlay,.toast{display:none!important}body.print-board .print-document{display:block!important}body.print-board .print-document{padding:0 8mm;font-family:Arial,sans-serif}.print-document h1{font-size:20pt}.print-document .print-grid{display:grid;grid-template-columns:1fr 1fr;gap:9mm}.print-document .print-item{break-inside:avoid;border:1px solid #adb7c2;padding:4mm}.print-document .print-item svg{width:100%;height:55mm}.print-document .print-item p{font-size:10pt}.print-document .print-item h3{font-size:12pt}}

.appeps-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #d5e5ed;background:#eef7fb;border-radius:13px;margin:0 0 17px}.appeps-entry>div:first-child{display:flex;flex-direction:column;gap:4px}.appeps-entry strong{font-size:13px;color:#3e637f}.appeps-entry span{font-size:11px;color:#809aac}.appeps-entry-actions{display:flex;gap:8px;align-items:center}.appeps-entry-actions input{width:155px;max-width:38vw;padding:9px 11px;border:1px solid #cbdae5;border-radius:8px;background:white;color:#3b5c72}.appeps-entry-actions button{padding:9px 13px;border-radius:8px;background:#d6ebf1;color:#3e7286}.editor-workspace.focus-mode .timeline-area,.editor-workspace.focus-mode .bottom-nav{display:none}.editor-workspace.focus-mode .tool-panel{bottom:10px;max-height:calc(100% - 70px)}#stage-focus.active{background:#d9f3f4;color:#108a94;border-color:#94d5d6}@media(max-width:690px){.appeps-entry{flex-direction:column;align-items:stretch}.appeps-entry-actions input{max-width:none;width:auto;flex:1}.stage-tools #stage-focus{display:block}}

/* V1.0.1 : lecteur YouTube explicite et retours d’erreur non ambigus. */
.yt-player-root{aspect-ratio:16/9;min-height:205px;min-width:200px;background:#182638;color:#e9f2fa;display:grid;place-items:center;border-radius:9px;overflow:hidden;font-size:12px;text-align:center;padding:0}
.yt-player-status{font-size:11px;line-height:1.55;color:#337a71;background:#ecf8f5;border-radius:7px;padding:9px 10px;margin-top:8px}
.yt-player-status.yt-error{background:#fff4e9;color:#91541d}
.yt-player-actions{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0}.yt-player-actions .panel-btn{flex:1 1 145px;text-align:center;text-decoration:none;display:flex;justify-content:center;align-items:center;min-height:36px}.yt-external-link{color:#1c6172!important}

/* V1.0.2 : commandes explicites et montage non destructif de l'extrait */
.timeline-actions{flex-wrap:nowrap;white-space:nowrap;overflow-x:auto;scrollbar-width:thin;max-width:calc(100vw - 200px);padding:3px 0}
.timeline-bar{gap:5px}.timeline-bar>div:first-child{flex:none}
.timeline-actions .btn.add-small{flex:none}.add-transition{background:#fff0d9!important;color:#9d651a!important;border:1px solid #e8c489!important}
.selected-segment-text{font-size:10px;color:#51718b;border-left:1px solid #d5e3eb;padding-left:9px;max-width:125px;overflow:hidden;text-overflow:ellipsis}
.segment-action{flex:none}.segment-action.delete{color:#a75259;background:#fff2f1;border-color:#f4dbd8}
.formation-track .segment{position:absolute;min-width:0;overflow:visible}.formation-track .segment .resize-handle{touch-action:none}
.timeline-cut{position:absolute;z-index:3;top:13px;margin-left:-9px;width:20px;height:29px;border:1px dashed #c08227;color:#a36928;background:#fff8e8;border-radius:5px;padding:0}
.media-clip{position:absolute;height:48px;top:3px;box-sizing:border-box;border:2px solid #0faeae;border-radius:5px;background:linear-gradient(90deg,#0daea71b,#14aeb02a);pointer-events:none;z-index:2}
.media-clip-title{font-size:10px;color:#147b84;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:14px 14px 0;font-weight:750;pointer-events:none}
.media-clip-handle{pointer-events:auto;position:absolute;z-index:4;top:-2px;bottom:-2px;width:14px;background:#0a9da2;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 1px #0b949d;cursor:ew-resize;touch-action:none}
.media-clip-handle.left{left:-6px}.media-clip-handle.right{right:-6px}
.clip-editor{padding:12px 10px 4px;border:1px solid #cde7e9;background:#f1fafb;border-radius:11px;margin-top:12px}
.clip-editor h4{margin:0 0 7px;color:#1b6871;font-size:13px}
.clip-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.clip-fields input{width:100%}
.clip-duration{font-size:11px;color:#278087;background:white;border-radius:7px;border:1px solid #d6ebec;padding:8px;margin-bottom:12px}
.video-preview{width:100%;max-height:210px;aspect-ratio:16/9;background:#102234;border-radius:8px;margin-top:10px}
@media(max-width:1000px){.timeline-actions{max-width:calc(100vw - 200px)}.selected-segment-text{display:none}}
@media(max-width:690px){.timeline-actions{max-width:calc(100vw - 135px)}.timeline-actions .btn.add-small{font-size:10px;padding:7px 8px}.timeline-actions .segment-action span{display:none}}

/* V1.0.4 — repères temporels musicaux associés à YouTube. */
.reference-heading{font-size:13px;margin:12px 0 8px;color:#1c6578}.checkbox-row{margin:10px 0}

/* V1.0.5 — quadrillage personnalisable */
.grid-settings{border:1px solid rgba(112,153,184,.28);border-radius:12px;padding:11px;margin:12px 0;background:rgba(28,51,71,.36);}
.grid-settings h4{margin:0 0 9px;font-size:13px;font-weight:650;}
.grid-settings .clip-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.grid-settings .field{min-width:0;}
.grid-settings-note{color:#8dbbd3;font-size:12px;margin:6px 0 9px;}
.grid-settings .panel-row{display:flex;gap:6px;}
.grid-settings .panel-row button{flex:1;min-width:0;padding:9px 2px;}
.grid-settings-muted{opacity:.82;}
.video-preview-title{font-size:12px;color:#9eb4c9;margin:9px 0 4px;}

/* V1.0.6 — faire glisser le corps de l’extrait; bords réservés au trim. */
.media-clip{pointer-events:auto;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.media-clip.dragging{cursor:grabbing;box-shadow:0 0 0 3px #1dbcc366}
.media-clip-title{cursor:grab;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;text-align:center;padding:15px 16px 0;letter-spacing:.1px}
.media-clip.dragging .media-clip-title{cursor:grabbing}
.media-clip-handle{cursor:ew-resize;touch-action:none}
/* Laisser toutes les pistes de la timeline libres lorsque le panneau d’outil est ouvert. */
.tool-panel{bottom:260px;max-height:calc(100% - 318px)}

/* V1.0.7 — mémos individuels, timeline tactile et exports */
.timeline-area{height:216px;min-height:216px}
.track-caption.memo-caption{height:28px;font-size:12px;background:#f5f9fc}
.track-caption.memo-caption span{font-size:10px}
.memo-track{height:28px;min-height:28px;position:relative;border-bottom:1px solid #dce7f0;background:#f0f7fb}
.memo-marker{position:absolute;z-index:7;transform:translateX(-50%);width:21px;height:19px;border:1.5px solid #ffffff;border-radius:6px;background:var(--memo-color,#218fab);box-shadow:0 1px 5px #16374b47;color:#0b2938;font-size:14px;font-weight:900;padding:0;cursor:grab;touch-action:none;user-select:none}
.memo-marker:focus-visible{outline:2px solid #0d628a;outline-offset:1px}
.memo-marker:hover{filter:brightness(1.12)}
.memo-panel{border:1px solid #d6e9ee;background:#f6fbfd;border-radius:10px;padding:11px 9px;margin-bottom:12px}
.memo-panel h4{margin:0 0 8px;color:#2a607c;font-size:13px}
.memo-panel .memo-add{background:#dff3f2;color:#136b76;border-color:#9cd6d8}
.memo-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.memo-entry{display:grid;grid-template-columns:50px minmax(0,1fr) 15px;align-items:start;gap:8px;padding:9px 7px;border-radius:8px;border:1px solid #d4e6ed;background:white;color:#34586f;text-align:left;font-size:11px;white-space:normal;overflow-wrap:anywhere}
.memo-entry b{font-size:11px;color:#0c8b94}
.memo-entry span:last-child{color:#2b95a3}
#memo-text{width:100%;min-height:100px;resize:vertical;border:1px solid #c6d5e3;border-radius:7px;padding:10px;font:inherit;color:#314f64}
.board-notes{margin-top:6px;border-top:1px dashed #cddfe4;padding-top:6px;overflow-wrap:anywhere}
.board-notes div{font-size:10px;line-height:1.5;margin:3px 0}
.board-notes div b{display:inline;font-size:10px;color:#0e8790}
.memo-export-table{border-collapse:collapse;width:100%;font-size:11pt;table-layout:auto}
.memo-export-table th,.memo-export-table td{border:1px solid #c7d5df;padding:6px 9px;vertical-align:top;text-align:left;white-space:normal;overflow-wrap:anywhere}
.memo-export-table th{background:#edf6f9;color:#2b536c}
.memo-export-table td:first-child{white-space:nowrap}
.memo-export-summary{break-before:page;margin-top:16mm}
.memo-person-card{break-after:page;margin-top:12mm}
.memo-person-card:last-child{break-after:auto}
.print-board-notes{font-size:9pt;line-height:1.4;overflow-wrap:anywhere}
.print-board-notes div{padding:2px 0}
@media(max-width:690px){.timeline-area{height:202px;min-height:202px}.track-caption.memo-caption{height:28px;font-size:11px}.tool-panel{bottom:64px;max-height:65%}}
@media(max-height:650px) and (min-width:690px){.timeline-area{height:187px;min-height:187px}}
@media print{.memo-person-card{break-inside:avoid}.memo-export-summary h2,.memo-person-card h2{font-size:14pt}.memo-export-table{font-size:9pt}.memo-export-table th,.memo-export-table td{padding:4px 6px}.print-document .print-item svg{height:48mm}.print-document .print-item{break-inside:avoid}}

/* Le panneau des outils ne doit pas recouvrir les memos ni la musique sur une tablette paysage. */
@media(min-width:691px) and (min-height:651px){.tool-panel{bottom:288px;max-height:calc(100% - 344px)}}
@media(min-width:691px) and (max-height:650px){.tool-panel{bottom:241px;max-height:calc(100% - 292px)}}

/* V1.0.8 — navigation 3D et consultation des mémos en fenêtre */
.stage-host{position:relative}
.camera-controls{position:absolute;z-index:12;top:12px;right:12px;display:flex;flex-wrap:wrap;gap:5px;max-width:92%;padding:5px;border-radius:10px;background:#0d2239e8;box-shadow:0 3px 12px #0006}
.camera-controls button{border:1px solid #4b6982;background:#1c3c54;color:#f1f9ff;padding:7px 11px;border-radius:7px;font-size:12px;min-height:30px}
.camera-controls button:focus-visible{outline:2px solid #57c5d2}
#stage-svg{touch-action:none}
.memo-open-button{background:#dcf5f1!important;border-color:#8acccf!important;color:#125d6c!important}
.memo-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.memo-modal-actions span{font-size:12px;color:#74909c}
.memo-modal-list{display:flex;flex-direction:column;gap:7px;max-height:40vh;overflow-y:auto;padding:4px 1px}
.memo-modal-entry{display:grid;grid-template-columns:70px minmax(0,1fr) 18px;align-items:center;gap:9px;border:1px solid #cbdfe9;border-radius:9px;background:#f5fafc;padding:10px;text-align:left;color:#28546b;overflow-wrap:anywhere}
.memo-modal-entry strong{color:#0a8492}
.board-member-legend{display:flex;flex-wrap:wrap;gap:4px 9px;padding:6px 8px;background:#ebf2f7;color:#244257;font-size:10px;line-height:1.3}
.board-member-legend span{white-space:nowrap}
.board-member-legend b{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#30516a;color:#fff;font-size:9px;margin-right:3px}
.print-document .board-member-legend{break-inside:avoid;font-size:8pt;padding:4px}
@media(max-width:690px){.camera-controls{top:5px;right:5px}.camera-controls button{padding:5px 8px;font-size:11px}}

/* V1.0.9 : zoom tactiles 2D/3D, objets EPS et affichage complet de la piste audio */
.stage-zoom-controls{position:absolute;z-index:12;right:12px;bottom:36px;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid #57718b;background:#112841ef;border-radius:10px;color:#f4fbff;box-shadow:0 3px 12px #0006}
.stage-zoom-controls button{border:0;background:#254a65;color:#fff;border-radius:7px;min-width:34px;min-height:34px;font-size:21px;touch-action:manipulation}
.stage-zoom-controls output{font-variant-numeric:tabular-nums;min-width:55px;text-align:center;font-size:12px;font-weight:750}
.stage-zoom-controls button:focus-visible{outline:2px solid #61d8e0}
.object-rotation-row{display:grid;grid-template-columns:auto minmax(58px,1fr) auto;gap:6px;align-items:center}
.object-rotation-row input{min-width:0;width:100%;text-align:center}
.object-rotation-row button{padding:8px 5px;font-size:11px}
.object-visibility{margin:12px 0;border:1px solid #c7d9e5;border-radius:11px;background:#f6fafc;color:#31546d}
.object-visibility>summary{padding:12px;font-size:12px;font-weight:800;cursor:pointer}
.object-visibility>.tool-note{margin:0 12px 8px}
.object-visibility-list{max-height:200px;overflow-y:auto;padding:7px 12px 11px;display:flex;flex-direction:column;gap:5px}
.object-visibility-quick{display:flex;gap:6px;padding:0 12px 6px}
.object-visibility-quick .panel-btn{flex:1;min-width:0;padding:7px 3px;font-size:11px}
.object-visibility-row{display:flex;align-items:center;gap:8px;background:white;padding:8px;border:1px solid #dde8ef;border-radius:7px;font-size:11px;cursor:pointer}
.object-visibility-row input{width:17px;height:17px;flex:none;accent-color:#128c9a}
/* Les hauteurs ci-dessous réservent toute la piste de musique (54 px) et les mémos. */
.timeline-layout{flex:1 1 auto;min-height:171px}
.timeline-scroll{overflow-x:auto;overflow-y:hidden}
.timeline-area{height:218px;min-height:218px;flex-shrink:0}
@media(max-width:690px){
  .stage-zoom-controls{right:5px;bottom:26px;gap:1px;padding:3px}
  .stage-zoom-controls button{min-width:31px;min-height:30px}
  .stage-zoom-controls output{min-width:44px;font-size:10px}
  .timeline-area{height:214px;min-height:214px}
  .timeline-layout{min-height:171px}
}
@media(max-height:650px) and (min-width:691px){
  .timeline-area{height:207px;min-height:207px}
}
/* Téléphone paysage : défilement vertical du studio au lieu de rogner la musique sous le menu. */
@media(max-height:540px){
  .editor-screen{height:100dvh;min-height:0;overflow:hidden}
  .editor-workspace{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;display:flex;flex-direction:column}
  .stage-area{flex:none;height:260px;min-height:210px}
  .timeline-area{flex:none;height:214px;min-height:214px}
  .bottom-nav{flex:none;height:58px;min-height:58px;position:relative}
  .tool-panel{position:fixed;top:55px;bottom:12px;left:8px;right:8px;width:auto;max-height:calc(100dvh - 70px)}
}

.board-object-legend{font-size:10px;padding:4px 8px;background:#e9f5f9;color:#30647c;line-height:1.5;overflow-wrap:anywhere}
.print-document .board-object-legend{font-size:8pt;break-inside:avoid}

/* Espaces AppEPS */
.appeps-entry{flex-wrap:wrap;gap:14px}.appeps-entry-actions{flex-wrap:wrap}.appeps-group{padding:18px;background:#172a42;border:1px solid #3b5572;border-radius:14px;margin:12px 0}.appeps-group h3{margin:0 0 7px}.appeps-group p{color:#bdcfe1;white-space:pre-wrap}.appeps-remote{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #3b5572;margin-bottom:10px}.appeps-remote small{display:block;color:#b1c7dd;margin-top:5px}.home-note{line-height:1.55}#account-close[hidden]{display:none!important}
