/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.table{display:table}}:root{--text:#f7fafb;--cyan:#41c9ff;--green:#33ef82}*{box-sizing:border-box}html,body{background:#050708;min-height:100%;margin:0}body{color:var(--text);overscroll-behavior:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans JP,Yu Gothic UI,sans-serif}button{color:inherit;font:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible{outline-offset:3px;outline:4px solid #fff}.school-app{isolation:isolate;width:100%;height:100dvh;min-height:100svh;padding:max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));background:radial-gradient(circle at 50% -15%,#293840 0,#10171b 46%,#070a0c 100%);position:relative;overflow:hidden}:is(:fullscreen .school-app,:fullscreen .school-app){width:100vw;height:100vh;min-height:100vh}.machine-frame{z-index:0;pointer-events:none;background:linear-gradient(90deg,#11171a,#30393e 8%,#151c20 18%,#11171a 82%,#30393e 92%,#11171a);border:4px solid #717b80;border-radius:18px;position:absolute;inset:3px;overflow:hidden;box-shadow:inset 0 0 0 3px #20292e,inset 0 0 30px #000,0 0 0 1px #020304}.machine-frame:before,.machine-frame:after{content:"";background:var(--cyan);border-radius:8px;width:8px;height:24%;position:absolute;top:38%;box-shadow:0 0 15px #1eaeea}.machine-frame:before{left:8px}.machine-frame:after{right:8px}.frame-rail{background:linear-gradient(90deg,#0000,#59676e 8%,#a9b0b3 22%,#273238 48%,#a9b0b3 78%,#59676e 92%,#0000);border-radius:4px;height:4px;position:absolute;left:7%;right:7%;box-shadow:0 1px #000,0 0 7px #5fd5ff44}.frame-rail-top{top:5px}.frame-rail-bottom{bottom:5px}.frame-screw{background:radial-gradient(circle at 38% 34%,#c8ced0 0 10%,#697278 12% 35%,#242b2f 38% 68%,#050708 72%);border:2px solid #0a0d0f;border-radius:50%;width:14px;height:14px;position:absolute;box-shadow:0 0 0 1px #87919788,0 2px 4px #000}.frame-screw:after{content:"";background:#111619;border-radius:2px;height:2px;position:absolute;top:4px;left:2px;right:2px;transform:rotate(45deg)}.screw-tl{top:8px;left:8px}.screw-tr{top:8px;right:8px}.screw-bl{bottom:8px;left:8px}.screw-br{bottom:8px;right:8px}.frame-vent{opacity:.72;background:repeating-linear-gradient(0deg,#06090b 0 8px,#77858c 9px 11px,#06090b 12px 17px);border:1px solid #4d5b62;border-radius:7px;width:11px;position:absolute;top:14%;bottom:14%;box-shadow:inset 0 0 5px #000}.frame-vent-left{left:2px}.frame-vent-right{right:2px}.theme-machine{background-image:linear-gradient(90deg,#9fb3bd0b 1px,#0000 1px),repeating-linear-gradient(0deg,#0000 0 76px,#7e98a41a 77px 78px),radial-gradient(circle at 50% -15%,#293840 0,#10171b 46%,#070a0c 100%);background-size:84px 100%,auto,auto}.theme-standard .machine-frame:before,.theme-standard .machine-frame:after{opacity:.25}.theme-standard .frame-rail,.theme-standard .frame-screw,.theme-standard .frame-vent{opacity:.14}.home-screen,.settings-screen,.caption-screen{z-index:1;background:linear-gradient(#141c21f2,#090d0ff5);border:1px solid #35434b;border-radius:15px;width:100%;height:100%;min-height:0;position:relative;overflow:hidden}.home-screen{grid-template-rows:clamp(90px,18vh,154px) 1fr auto;gap:clamp(10px,2vh,20px);padding:clamp(12px,2vh,22px) clamp(18px,3vw,50px);display:grid}.school-brand{background:radial-gradient(circle at 10% 12%,#ffffff10 0 2px,#0000 3px) 0 0/22px 22px,linear-gradient(#222c31,#080c0f);border:3px solid #66737b;border-radius:22px;grid-template-columns:auto 1fr auto;align-items:center;gap:clamp(16px,2vw,28px);padding:10px clamp(18px,2.5vw,38px);display:grid;position:relative;box-shadow:inset 0 0 0 3px #0b1013,inset 0 -10px 22px #0008,0 7px 16px #0008}.theme-machine .school-brand:after{content:"SUBTITLE MACHINE CONTROL UNIT";color:#4e8297;letter-spacing:.13em;font:800 clamp(7px,.7vw,10px)/1 monospace;position:absolute;bottom:5px;right:clamp(180px,19vw,270px)}.school-logo{fill:none;width:clamp(58px,9vh,92px);stroke:var(--cyan);stroke-width:4px;stroke-linecap:round;stroke-linejoin:round}.school-brand p{color:#8db7ca;letter-spacing:.16em;margin:0 0 4px;font-size:clamp(9px,1vw,14px);font-weight:850}.school-brand h1{letter-spacing:.03em;margin:0;font-size:clamp(30px,5vw,68px);line-height:1}.school-brand h1 span{color:#9ddfff;font-size:.7em}.home-actions{align-items:stretch;gap:10px;display:flex}.status-lamps{background:#070a0c;border:2px solid #4d5960;border-radius:15px;grid-template-columns:18px auto;align-content:center;gap:8px 10px;min-width:125px;padding:10px 16px;font-size:clamp(11px,1.2vw,16px);display:grid}.app-exit-button{color:#aeb7bc;cursor:pointer;background:linear-gradient(#252d31,#101518);border:2px solid #4d5960;border-radius:15px;min-width:clamp(88px,10vw,132px);font-size:clamp(10px,1.05vw,14px)}.app-exit-button:hover{color:#fff;border-color:#737f86}.lamp{background:#333b40;border-radius:50%;width:14px;height:14px}.lamp.green{background:#23e967;box-shadow:0 0 13px #23e967}.lamp.blue{background:#159cff;box-shadow:0 0 13px #159cff}.lamp.off{background:#a32e35;box-shadow:0 0 8px #a32e35}.home-main{grid-template-rows:auto 1fr auto;place-items:center;gap:clamp(8px,2vh,18px);min-height:0;padding:clamp(4px,1vh,12px);display:grid}.school-copy{color:#c6d0d5;margin:0;font-size:clamp(18px,2.5vw,34px);font-weight:650}.start-button{cursor:pointer;background:linear-gradient(150deg,#2b94f7,#0d4ba9);border:6px solid #8f999f;border-radius:clamp(26px,4vw,50px);justify-content:center;align-items:center;gap:clamp(28px,5vw,78px);width:min(76vw,1040px);height:min(34vh,260px);min-height:120px;display:flex;position:relative;box-shadow:inset 0 0 0 5px #ffffff40,inset 0 -20px 30px #0004,0 9px #020405,0 14px 32px #0008}.theme-machine .start-button:before,.theme-machine .start-button:after{content:"";background:#9ee4ff;border:3px solid #102331;border-radius:50%;width:clamp(10px,1.2vw,16px);height:clamp(10px,1.2vw,16px);position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 0 0 2px #48616e,0 0 14px #37c7ff}.theme-machine .start-button:before{left:clamp(16px,2vw,28px)}.theme-machine .start-button:after{right:clamp(16px,2vw,28px)}.start-button:hover{filter:brightness(1.08)}.start-button:active{transform:translateY(4px);box-shadow:inset 0 0 0 5px #ffffff40,inset 0 -20px 30px #0004,0 5px #020405}.start-button svg{fill:none;stroke:#fff;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;width:clamp(72px,13vh,130px)}.start-button span{font-size:clamp(40px,7vw,96px);font-weight:850}.connection-message{color:#9dd6f0;min-height:1.5em;margin:0;font-size:clamp(13px,1.5vw,20px);font-weight:700}.connection-message.warning{color:#ffd36c}.home-footer{background:linear-gradient(90deg,#06090b55,#26323866 50%,#06090b55);border-top:2px solid #34434a;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:6px 10px;display:grid;position:relative}.theme-machine .home-footer:before{content:"SYSTEM READY  •  INPUT 01  •  LIVE CAPTION";color:#558297;letter-spacing:.15em;white-space:nowrap;background:#0c1114;padding:0 12px;font:800 8px/1 monospace;position:absolute;top:-8px;left:50%;transform:translate(-50%)}.settings-button{cursor:pointer;background:linear-gradient(#303a40,#151b1f);border:2px solid #5b6870;border-radius:12px;justify-self:start;min-width:150px;min-height:50px;font-weight:800}.home-footer span{color:#aab5bb}.home-footer small{color:#7f8b91;justify-self:end}.caption-screen{grid-template-rows:auto 1fr auto;gap:7px;padding:8px clamp(10px,1.5vw,24px) 6px;display:grid}.caption-toolbar{background:linear-gradient(90deg,#091014,#182329 50%,#091014);border:2px solid #3c4b52;border-radius:12px;grid-template-columns:minmax(220px,1fr) auto minmax(100px,1fr);align-items:center;gap:18px;min-height:clamp(54px,8vh,76px);padding:4px 12px;display:grid;position:relative;box-shadow:inset 0 0 0 1px #080b0d,0 3px 9px #0008}.theme-machine .caption-toolbar:after{content:"AUDIO INPUT // LIVE";color:#477489;letter-spacing:.18em;font:800 7px/1 monospace;position:absolute;bottom:3px;left:50%;transform:translate(-50%)}.listening-indicator{color:#aab4ba;align-items:center;gap:14px;display:flex}.listening-indicator.active{color:var(--green);text-shadow:0 0 12px #25dd72aa}.listening-indicator b{font-size:clamp(16px,2vw,27px)}.wave-bars{align-items:center;gap:5px;height:34px;display:flex}.wave-bars i{background:currentColor;border-radius:5px;width:6px;height:30%;display:block}.active .wave-bars i{animation:.85s ease-in-out infinite alternate wave}.active .wave-bars i:nth-child(2){height:55%;animation-delay:-.5s}.active .wave-bars i:nth-child(3){height:90%;animation-delay:-.25s}.active .wave-bars i:nth-child(4){height:65%;animation-delay:-.65s}.active .wave-bars i:nth-child(5){height:40%;animation-delay:-.35s}@keyframes wave{to{height:100%}}.caption-state{color:#bfc8cd;text-align:center;font-size:clamp(12px,1.45vw,19px);font-weight:700}.stop-button{cursor:pointer;background:linear-gradient(#d83b43,#861319);border:3px solid #6d2428;border-radius:12px;justify-self:end;min-width:clamp(100px,12vw,170px);min-height:50px;font-size:clamp(18px,2vw,28px);font-weight:850}.caption-panel{contain:layout paint;background:linear-gradient(90deg,#0c161a55 1px,#0000 1px) 0 0/90px 100%,linear-gradient(#07101455 1px,#0000 1px) 0 0/100% 72px,#030506;border:4px solid #56636a;border-radius:18px;min-width:0;height:100%;min-height:0;padding:clamp(16px,2.8vw,42px) clamp(24px,4.5vw,78px);position:relative;overflow:hidden;box-shadow:inset 0 0 0 3px #11191d,inset 0 0 35px #000,0 4px 12px #0009}.caption-lines{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--cyan) #162027;flex-direction:column;justify-content:flex-start;width:100%;height:100%;min-height:0;display:flex;overflow:hidden auto}.caption-lines::-webkit-scrollbar{width:9px}.caption-lines::-webkit-scrollbar-track{background:#162027;border-radius:9px}.caption-lines::-webkit-scrollbar-thumb{background:var(--cyan);border-radius:9px}.caption-lines p{letter-spacing:.02em;overflow-wrap:anywhere;flex:none;margin:0;font-size:1em;font-weight:760;line-height:1.12}.caption-lines p:first-child{margin-top:auto}.caption-lines .interim-text{color:#84939c;font-weight:560}.caption-footer{color:#7f8b91;justify-content:center;align-items:center;min-height:24px;font-size:clamp(9px,1vw,13px);display:flex}.settings-screen{grid-template-rows:auto 1fr auto;gap:clamp(12px,2vh,22px);padding:clamp(18px,3vh,34px) clamp(24px,4vw,68px);display:grid}.settings-header{background:linear-gradient(90deg,#0a0f12,#202a2f 50%,#0a0f12);border:2px solid #435159;border-radius:14px;justify-content:space-between;align-items:center;padding:10px 18px;display:flex;box-shadow:inset 0 0 0 1px #060809,0 4px 11px #0007}.settings-header p{color:#75cdec;letter-spacing:.16em;margin:0 0 4px;font-size:12px;font-weight:850}.settings-header h2{margin:0;font-size:clamp(34px,5vw,64px)}.settings-header button{cursor:pointer;background:linear-gradient(#303a40,#151b1f);border:2px solid #5c6870;border-radius:12px;min-width:140px;min-height:48px;font-weight:800}.settings-grid{grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,24px);min-height:0;display:grid}.settings-card{background-color:#0b1114e8;background-image:radial-gradient(circle at 14px 14px,#738087 0 2px,#10171a 3px 5px,#0000 6px),none;background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:100% 100%;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;border:2px solid #4b5960;border-radius:18px;min-width:0;padding:clamp(18px,2.3vw,30px);position:relative;overflow-y:auto;box-shadow:inset 0 0 0 2px #06090b,0 5px 12px #0007}.settings-card.emphasized{border-color:#3d9ac3;box-shadow:inset 0 0 0 2px #21628255}.settings-card h3{margin:0 0 10px;font-size:clamp(19px,2vw,28px)}.settings-card p{color:#acb7bd;min-height:4.5em;margin:0 0 18px;font-size:clamp(12px,1.15vw,16px);line-height:1.55}.option-grid{gap:9px;display:grid}.option-grid.lines,.option-grid.return-time{grid-template-columns:repeat(3,1fr)}.option-grid.theme-options{grid-template-columns:1fr 1fr}.option-grid button{color:#dbe1e4;cursor:pointer;background:linear-gradient(#293239,#12181c);border:2px solid #52616a;border-radius:11px;min-height:52px;font-weight:850}.option-grid button.selected{color:#fff;background:linear-gradient(#1c89cb,#0a4f80);border-color:#73d8ff;box-shadow:0 0 14px #36bff066}.recommended-note{color:#65efa0;margin-top:16px;font-size:clamp(11px,1.15vw,15px);display:block}.save-settings{cursor:pointer;background:linear-gradient(#2c8edb,#0d5599);border:3px solid #7d888e;border-radius:14px;justify-self:center;min-width:min(380px,65vw);min-height:56px;font-size:clamp(18px,2vw,27px);font-weight:850}@media (height<=580px){.home-screen{grid-template-rows:92px 1fr auto;gap:7px;padding:8px 20px}.school-brand{border-width:2px;padding:6px 20px}.school-logo{width:56px}.school-brand h1{font-size:38px}.school-brand p{font-size:8px}.status-lamps{padding:7px 12px;font-size:10px}.app-exit-button{min-width:88px;font-size:9px}.start-button{border-width:4px;height:180px;min-height:104px}.start-button span{font-size:56px}.school-copy{font-size:19px}.settings-button{min-height:38px}.caption-toolbar{min-height:44px}.stop-button{min-height:40px}.caption-panel{padding:12px 34px}.caption-footer{min-height:17px}.settings-screen{gap:9px;padding:12px 28px}.settings-header h2{font-size:36px}.settings-card{padding:14px}.settings-card h3{font-size:18px}.settings-card p{min-height:0;margin-bottom:10px;font-size:11px}.option-grid button{min-height:38px;font-size:12px}.save-settings{min-height:42px;font-size:18px}}@media (width<=900px){.settings-grid{grid-template-columns:1fr;overflow-y:auto}.settings-card{overflow:visible}.caption-toolbar{grid-template-columns:1fr auto}.caption-state,.home-footer span{display:none}}@media (prefers-reduced-motion:reduce){.active .wave-bars i{animation:none}*{scroll-behavior:auto!important}}
