/* AMM 389 · Scene-to-Sound Timeline. Isolated from protected catalogue and admin UI. */
.amm389-timeline{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:18px;align-items:stretch;min-width:0;--amm389-blue:#95e7ff;--amm389-violet:#b9a6ff}
.amm389-timeline[hidden],.amm389-timeline [hidden]{display:none!important}
.amm389-timeline *{box-sizing:border-box}
.amm389-timeline button,.amm389-timeline input,.amm389-timeline select{font:inherit}
.amm389-timeline button:focus-visible,.amm389-timeline select:focus-visible,.amm389-timeline input:focus-visible{outline:3px solid #e5faff;outline-offset:3px}
.amm389-picture,.amm389-sound-panel{min-width:0;border-radius:21px;border:1px solid #95c3f54a;background:linear-gradient(145deg,#172b4bdc,#091626ef 77%);padding:clamp(15px,2.2vw,24px);box-shadow:inset 0 1px #bfe8ff15}
.amm389-labelbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;color:#9fdefa;font-size:9px;font-weight:850;letter-spacing:.13em}
.amm389-labelbar label{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#b7d7ec;letter-spacing:.02em}
.amm389-labelbar select{max-width:120px;border:1px solid #99b7e467;border-radius:10px;min-height:34px;padding:4px 7px;background:#0f2947;color:white;font-size:11px;font-weight:750}
.amm389-picture h3,.amm389-sound-panel h3{font-size:clamp(29px,3.1vw,43px);line-height:1.05;letter-spacing:-.056em;color:#f7fbff;margin:18px 0 10px;font-weight:900}
.amm389-picture h3 em,.amm389-sound-panel h3 em{font-style:normal;background:linear-gradient(95deg,#8ae7ff,#bbabff);-webkit-background-clip:text;background-clip:text;color:transparent}
.amm389-intro{font-size:13px;color:#bfd0e2;line-height:1.55;margin:0 0 16px;max-width:60ch}
.amm389-screen{position:relative;border:1px solid #86bbeb60;border-radius:16px;overflow:hidden;isolation:isolate;min-width:0;min-height:282px;background:radial-gradient(circle at 50% 52%,#3c79b547,transparent 53%),radial-gradient(circle at 84% 28%,#8168d02b,transparent 46%),linear-gradient(145deg,#041020,#102544 55%,#0b1530)}
.amm389-grid{position:absolute;inset:0;background-image:linear-gradient(#c1dbff13 1px,transparent 1px),linear-gradient(90deg,#c1dbff13 1px,transparent 1px);background-size:31px 31px;mask-image:radial-gradient(ellipse,#000 20%,transparent 91%);pointer-events:none}
.amm389-screen::after{content:"";position:absolute;inset:12%;border:1px dashed #92d9fa20;border-radius:50%;pointer-events:none;transform:scaleX(.75)}
.amm389-halo{position:absolute;left:50%;top:48%;width:40%;aspect-ratio:1;border:1px solid #abdcff6e;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 70px #65bafa39,inset 0 0 38px #8acffe23;pointer-events:none}
.amm389-halo::before{content:"";position:absolute;inset:-24%;border:1px solid #a995fa37;border-radius:50%}
.amm389-screen-head,.amm389-screen-foot{position:absolute;z-index:2;left:13px;right:13px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:9px;letter-spacing:.1em;font-weight:800;color:#a3d5f5}
.amm389-screen-head{top:14px}.amm389-screen-foot{bottom:12px;font-size:8px;color:#9fcae0}
.amm389-screen-main{position:absolute;inset:48px 12px 56px;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;pointer-events:none}
.amm389-screen-main small{font-size:9px;color:#9ee4f8;letter-spacing:.16em;font-weight:900}
.amm389-screen-main strong{font-size:clamp(23px,3.4vw,38px);letter-spacing:.17em;color:white;text-shadow:0 0 30px #a5d5ff94;max-width:100%;overflow-wrap:anywhere}
.amm389-screen-main span{font-size:11px;color:#b3cde3}
.amm389-pulses{position:absolute;left:6%;right:6%;bottom:18%;height:13%;display:flex;align-items:flex-end;gap:3px;z-index:1;pointer-events:none;opacity:.57}
.amm389-pulses i{flex:1;min-width:1px;max-width:9px;height:var(--h);border-radius:5px;background:linear-gradient(0deg,#7883ff,#91e6fe);box-shadow:0 0 9px #78c7ff59;transform-origin:bottom;transform:scaleY(.55)}
.amm389-timeline[data-playing="true"] .amm389-pulses i{animation:amm389-flare 1.4s ease-in-out infinite;animation-delay:calc(var(--i)*-.11s)}
.amm389-timeline[data-playing="true"] .amm389-halo{animation:amm389-halo 5s linear infinite}
.amm389-timeline[data-playing="true"] .amm389-screen{box-shadow:0 0 30px #79d5fc1a,inset 0 0 32px #8fccfa0e}
.amm389-ruler{margin-top:15px;padding:14px;background:#081b31b8;border:1px solid #8cbadd3b;border-radius:12px;min-width:0}
.amm389-ruler label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:10px;color:#b8d2e5}.amm389-ruler label strong{letter-spacing:.11em;color:#8dd8f7;font-weight:850}
.amm389-progress{height:8px;margin-top:12px;position:relative;background:#1f4162;border-radius:10px;overflow:visible}
.amm389-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#8ee4ff,#ba9af9);border-radius:10px;transition:width .08s linear}
.amm389-progress-markers{position:absolute;inset:0;pointer-events:none}
.amm389-progress-markers i{position:absolute;top:-4px;width:2px;height:16px;border-radius:3px;background:#d1e9ff}
.amm389-ruler input[type="range"]{display:block;width:100%;height:24px;accent-color:#91dfff;margin:7px 0 0;cursor:pointer}
.amm389-scenes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:12px;min-width:0}
.amm389-scenes button{min-width:0;min-height:126px;padding:10px 8px;text-align:left;display:flex;flex-direction:column;align-items:stretch;gap:7px;border:1px solid #779fca58;border-radius:11px;color:#dceeff;background:#112944;cursor:pointer;transition:border-color .2s,background .2s}
.amm389-scenes button>span{display:flex;justify-content:space-between;gap:3px;align-items:center}
.amm389-scenes button b{color:#8ee5fa;font-size:11px}.amm389-scenes button small{color:#9cbad5;font-style:normal;font-size:9px}
.amm389-scenes button strong{color:#f3faff;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.amm389-scenes button em{font-size:10px;color:#a4c0d5;font-style:normal;line-height:1.3}
.amm389-scenes .amm389-scene-sound{margin-top:auto;border-top:1px solid #b4d9f132;padding-top:5px;color:#a2e5ff;line-height:1.2}
.amm389-scenes button[aria-pressed="true"]{border-color:#8ae9ff;background:linear-gradient(140deg,#205676,#24366b);box-shadow:0 0 18px #75dfff23}
.amm389-honesty{font-size:10px;line-height:1.5;color:#a7bed2;margin:13px 0 0}
.amm389-sound-panel{display:flex;flex-direction:column;gap:10px;min-width:0}
.amm389-sound-panel h3{margin:8px 0 0}
.amm389-sound-panel .amm389-intro{margin:0}
.amm389-approved{border:1px solid #67dcb850;border-radius:99px;padding:5px 7px;color:#9af3d9;font-size:8px;white-space:nowrap}
.amm389-field-label{font-size:10px;color:#9bdaf5;font-weight:850;letter-spacing:.13em;margin-top:4px}
.amm389-search-line{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.amm389-search-line input,.amm389-slot-set select{background:#071a2f;border:1px solid #7fbce65b;color:#eaf5ff;border-radius:10px;padding:11px;min-width:0;width:100%;font-size:13px;min-height:45px}
.amm389-search-line input::placeholder{color:#9caec3}
.amm389-search-line button,.amm389-controls button,.amm389-bottom-actions button{border-radius:10px;min-height:43px;padding:10px 13px;cursor:pointer;font-size:12px;font-weight:850}
.amm389-search-line button{background:#162f51;border:1px solid #92c8ed8c;color:#f6fbff}
.amm389-pull-direction{align-self:flex-start;color:#bde9ff;background:transparent;border:0;border-bottom:1px solid #77c8ed56;padding:2px 0 5px;cursor:pointer;font-size:11px;text-align:left}
.amm389-search-status{min-height:33px;margin:0;font-size:11px;line-height:1.45;color:#a4c5df}
.amm389-slot-set{display:grid;grid-template-columns:1fr;gap:7px;min-width:0}
.amm389-slot-set label{font-size:12px;color:#e0eefa;display:flex;align-items:center;gap:9px;font-weight:750}
.amm389-slot-a,.amm389-slot-b{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;color:#061628;font-weight:950;flex-shrink:0}
.amm389-slot-a{background:#94e5fe}.amm389-slot-b{background:#b7a4f8}
.amm389-slot-set select{min-width:0;max-width:100%;padding-right:26px}
.amm389-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:4px}
.amm389-controls button{min-width:0;font-size:11px;padding:8px 5px;background:#132b48;color:#e5f6ff;border:1px solid #8db8d776}
.amm389-controls button:first-child{background:linear-gradient(100deg,#84dffe,#a2cfff);color:#092139;border:0}
.amm389-controls button:nth-child(2){background:linear-gradient(100deg,#b0b1ff,#d9aefa);color:#14213f;border:0}
.amm389-controls button:disabled,.amm389-bottom-actions button:disabled,.amm389-search-line button:disabled{opacity:.48;cursor:not-allowed}
.amm389-playing{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;font-size:11px;color:#b5d5eb}
.amm389-playing span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
#amm389Audio{display:block;max-width:100%;width:100%;height:40px;accent-color:#8feaff}
.amm389-bottom-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:auto}
.amm389-bottom-actions .amm389-export{background:linear-gradient(100deg,#92e6ff,#aea8ff);border:0;color:#071e30;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:7px}
.amm389-bottom-actions .amm389-reset{background:#102a46;border:1px solid #719ac26b;color:#d2e4f6}
.amm389-feedback{min-height:25px;margin:0;color:#aec7dc;font-size:11px;line-height:1.45}
@keyframes amm389-flare{0%,100%{transform:scaleY(.43);opacity:.6}50%{transform:scaleY(1);opacity:1}}
@keyframes amm389-halo{0%,100%{box-shadow:0 0 60px #65bafa3b,inset 0 0 25px #8acffe20}50%{box-shadow:0 0 93px #8fd8fe76,inset 0 0 44px #c3a9f83b}}
@media(max-width:990px){.amm389-timeline{grid-template-columns:minmax(0,1fr)}.amm389-screen{min-height:310px}}
@media(max-width:560px){.amm389-picture,.amm389-sound-panel{padding:14px}.amm389-screen{min-height:240px}.amm389-picture h3,.amm389-sound-panel h3{font-size:30px}.amm389-scenes button{min-height:102px;padding:8px 5px;gap:5px}.amm389-scenes button strong{font-size:10px}.amm389-scenes button em{font-size:9px}.amm389-scenes button small{font-size:8px}.amm389-sound-panel{gap:10px}.amm389-labelbar{font-size:8px}.amm389-bottom-actions{grid-template-columns:minmax(0,1fr)}.amm389-slot-set select{font-size:12px}}
@media(max-width:360px){.amm389-scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.amm389-scenes button{min-height:90px}.amm389-screen-main strong{font-size:22px;letter-spacing:.1em}.amm389-search-line{grid-template-columns:minmax(0,1fr)}.amm389-labelbar select{max-width:110px}.amm389-controls button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.amm389-timeline *,.amm389-timeline *::before,.amm389-timeline *::after{animation:none!important;transition:none!important}}
