:root{--bg: #f6f7f9;--surface: #ffffff;--border: #e3e6eb;--text: #16181d;--muted: #6b7280;--accent: #e5322d;--accent-hover: #c92823;--ok: #15803d;--ok-bg: #dcfce7;--warn: #b45309;--warn-bg: #fef3c7;--err: #b91c1c;--err-bg: #fee2e2;--info-bg: #e0e7ff;--info: #3730a3;--radius: 10px;font-family:Pretendard,-apple-system,Segoe UI,Malgun Gothic,sans-serif;color:var(--text);background:var(--bg);font-size:14px}@media (prefers-color-scheme: dark){:root{--bg: #0f1115;--surface: #181b21;--border: #2a2f38;--text: #e8eaed;--muted: #9aa1ad;--ok-bg: #12321f;--ok: #4ade80;--warn-bg: #3a2a0c;--warn: #fbbf24;--err-bg: #3b1214;--err: #f87171;--info-bg: #1e2246;--info: #a5b4fc}}*{box-sizing:border-box}body{margin:0;background:var(--bg)}h1{font-size:22px;margin:4px 0}h3{font-size:15px;margin:0 0 12px}a{color:inherit}.app{display:flex;min-height:100vh}.sidebar{width:210px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);padding:20px 14px;display:flex;flex-direction:column;gap:20px}.sidebar nav{display:flex;flex-direction:column;gap:2px}.sidebar nav a{padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--muted)}.sidebar nav a.active,.sidebar nav a:hover{background:var(--bg);color:var(--text);font-weight:600}.sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:4px;align-items:flex-start}.brand{font-weight:800;font-size:18px;display:flex;align-items:center;gap:8px}.brand-dot{width:12px;height:12px;border-radius:50%;background:var(--accent);display:inline-block}.content{flex:1;padding:28px 32px;max-width:1200px;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;flex-wrap:wrap}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:16px}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:ui-monospace,Consolas,monospace}.right{text-align:right}.center{display:grid;place-items:center;min-height:100vh}.row{display:flex;align-items:center}.row.between{justify-content:space-between}.row.gap,.gap{gap:8px}.row.wrap{flex-wrap:wrap}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}button,.button{font:inherit;padding:8px 14px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;text-decoration:none;display:inline-block}button:hover:not(:disabled),.button:hover{border-color:var(--muted)}button:disabled{opacity:.5;cursor:not-allowed}button.primary,.button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.primary:hover:not(:disabled),.button.primary:hover{background:var(--accent-hover)}button.danger{color:var(--err);border-color:var(--err)}button.link{border:none;background:none;padding:0;color:var(--muted);text-decoration:underline}button.icon{padding:2px 8px;border:none;background:none;color:var(--muted)}button.icon:hover{color:var(--text)}.danger-text{color:var(--err)!important}.error-text{color:var(--err)}input,select{font:inherit;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);width:100%}input[type=checkbox],input[type=time]{width:auto}label,.field{display:flex;flex-direction:column;gap:6px;font-weight:500}label.check{flex-direction:row;align-items:center;gap:8px;font-weight:400}.form{display:flex;flex-direction:column;gap:14px}.error,.notice,.success{padding:10px 14px;border-radius:8px;margin-bottom:14px}.error{background:var(--err-bg);color:var(--err)}.notice{background:var(--warn-bg);color:var(--warn)}.success{background:var(--ok-bg);color:var(--ok)}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--bg);color:var(--muted);margin-left:4px}.badge-live{background:var(--ok-bg);color:var(--ok)}.badge-starting,.badge-reconnecting{background:var(--warn-bg);color:var(--warn)}.badge-resting{background:var(--info-bg);color:var(--info)}.badge-error{background:var(--err-bg);color:var(--err)}.pulse{width:7px;height:7px;border-radius:50%;background:currentColor;animation:pulse 1.4s infinite}@keyframes pulse{50%{opacity:.25}}.meter{height:6px;background:var(--border);border-radius:999px;overflow:hidden;margin-top:6px;min-width:220px}.meter>div{height:100%;background:var(--accent);transition:width .3s}.auth{display:grid;place-items:center;min-height:100vh;padding:16px}.auth-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px}.empty .steps{line-height:2}.stream-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.stream-card{display:flex;flex-direction:column;gap:10px;margin:0}.stream-name{font-weight:700;font-size:16px;text-decoration:none}.dropzone{border:2px dashed var(--border);border-radius:var(--radius);padding:32px;text-align:center;cursor:pointer;margin-bottom:16px;background:var(--surface);display:flex;flex-direction:column;gap:6px}.dropzone.dragging,.dropzone:hover{border-color:var(--accent)}.upload-row{padding:6px 0}.table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);table-layout:fixed}.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left}.table th{font-size:12px;color:var(--muted);font-weight:600}.table th:first-child{width:40%}.table tr:last-child td{border-bottom:none}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.two-col .card{margin:0}.help ol{padding-left:18px;line-height:1.8;margin:0 0 8px}.editor{display:grid;grid-template-columns:1fr 1fr;gap:16px}.editor .card{margin:0}.segmented{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.segmented button{flex:1;border:none;border-radius:0}.segmented button.active{background:var(--text);color:var(--surface)}.schedule-row{display:flex;flex-direction:column;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--border)}.days{display:flex;gap:4px}.day{padding:4px 9px;font-size:12px}.day.active{background:var(--text);color:var(--surface);border-color:var(--text)}.playlist .list{list-style:none;padding:0;margin:0;max-height:380px;overflow-y:auto}.playlist ol.list{counter-reset:item}.playlist .list li{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:6px 4px;border-bottom:1px solid var(--border)}.save-bar{margin:16px 0}.logs{background:#0d0f13;color:#c7cdd6;padding:12px;border-radius:8px;max-height:300px;overflow:auto;font-size:12px;white-space:pre-wrap;word-break:break-all;margin:0}.plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.plan{display:flex;flex-direction:column;gap:10px;margin:0}.plan.current{border-color:var(--accent)}.plan .price{font-size:26px;font-weight:800}.plan ul{padding-left:18px;margin:0;line-height:1.8;flex:1}.subscription{display:flex;flex-direction:column;gap:12px}.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0}.kv dt{color:var(--muted)}.kv dd{margin:0}.payments{margin-top:16px}.payments .table th:first-child{width:auto}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:grid;place-items:center;padding:16px;z-index:10}.modal{width:100%;max-width:420px;margin:0}.summary{background:var(--bg);border-radius:8px;padding:12px}.summary p{margin:8px 0 0}code{font-family:ui-monospace,Consolas,monospace;font-size:12px}.auth{flex-direction:column;gap:16px;display:flex;align-items:center;justify-content:center}.biz-info{margin-top:32px;padding-top:16px;border-top:1px solid var(--border);line-height:1.8;text-align:center}.biz-info a{color:inherit}.legal{max-width:820px;margin:0 auto;padding:24px 16px}.legal .brand{text-decoration:none;margin-bottom:12px}.legal-nav{display:flex;gap:16px;margin-bottom:16px}.legal article h1{font-size:22px;margin-bottom:16px}.legal article h2{font-size:16px;margin:24px 0 8px}.legal article p,.legal article li{line-height:1.75}.legal .table th:first-child{width:auto}.events th:first-child,.events td:first-child{width:180px}.events td:nth-child(2){width:130px}.raw-logs{margin-top:12px}.raw-logs summary{cursor:pointer;color:var(--muted);margin-bottom:8px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:16px;flex-wrap:wrap}.tabs button{border:none;border-bottom:2px solid transparent;border-radius:0;background:none}.tabs button.active{border-bottom-color:var(--accent);font-weight:600}.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-bottom:16px}.stat{margin:0}.stat .value{font-size:24px;font-weight:800;margin-top:4px}.admin-table{table-layout:auto}.admin-table th:first-child{width:auto}.clickable{cursor:pointer}.clickable:hover{background:var(--bg)}.plain-link{text-decoration:none}.staging-banner{background:#f59e0b;color:#1f1300;text-align:center;font-size:13px;font-weight:700;padding:6px 12px;position:sticky;top:0;z-index:30}.landing{max-width:1100px;margin:0 auto;padding:0 16px 32px}.landing-nav{display:flex;justify-content:space-between;align-items:center;padding:18px 0;gap:12px;flex-wrap:wrap}.landing-nav .brand{text-decoration:none}.landing-nav nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.landing-nav nav a:not(.button){text-decoration:none;color:var(--muted)}.landing-nav nav a:not(.button):hover{color:var(--text)}.hero{text-align:center;padding:72px 0 56px}.hero h1{font-size:clamp(28px,5vw,46px);line-height:1.25;margin:0 0 18px;letter-spacing:-.02em}.hero .lead{font-size:17px;color:var(--muted);max-width:640px;margin:0 auto 28px;line-height:1.7}.center-row{justify-content:center;flex-wrap:wrap;margin-bottom:12px}.button.big{padding:13px 22px;font-size:16px}.landing-section{padding:48px 0 8px}.landing-section h2{text-align:center;font-size:26px;margin:0 0 24px}.section-sub{text-align:center;margin:-12px 0 20px}.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.step{margin:0}.step-no{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:12px}.feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.feature{margin:0}.feature p,.step p{margin:0;line-height:1.6}.pricing-notes{margin-top:16px}.pricing-notes ul{margin:0;padding-left:18px;line-height:1.9}.faq{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:10px}.faq details{margin:0}.faq summary{cursor:pointer;font-weight:600}.faq details p{margin:10px 0 0;line-height:1.7}.landing-cta{text-align:center;padding:56px 0 24px}.landing-cta h2{font-size:24px;margin:0 0 18px}.landing,.landing *{min-width:0;overflow-wrap:anywhere}body{word-break:keep-all}@media (max-width: 640px){.landing-nav nav a:not(.button):not([href="/login"]){display:none}.landing-nav nav{gap:12px}.hero{padding:40px 0 32px}.hero .lead{font-size:15px}.landing-section{padding:32px 0 4px}.landing-section h2{font-size:22px}.plan-grid{grid-template-columns:1fr 1fr;gap:10px}.plan .price{font-size:20px}.steps-grid,.feature-grid{grid-template-columns:1fr}}.danger-zone{border-color:var(--err)}.warn-list{margin:0;padding-left:18px;line-height:1.8;color:var(--text)}@media (max-width: 860px){.app{flex-direction:column}.sidebar{width:auto;flex-direction:row;align-items:center;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));border-right:none;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.sidebar-foot{display:none}.sidebar nav{position:fixed;left:0;right:0;bottom:0;z-index:20;flex-direction:row;gap:0;background:var(--surface);border-top:1px solid var(--border);padding:4px 4px calc(4px + env(safe-area-inset-bottom))}.sidebar nav a{flex:1;text-align:center;padding:10px 2px;font-size:13px;border-radius:8px;white-space:nowrap}.content{padding:16px 16px calc(84px + env(safe-area-inset-bottom))}.page-head{align-items:flex-start}.page-head h1{font-size:20px}.editor,.two-col,.stream-grid{grid-template-columns:1fr}.stream-card button,.stream-card .button{flex:1;padding:12px;font-size:15px;text-align:center}.table th:nth-child(3),.table td:nth-child(3),.table th:nth-child(4),.table td:nth-child(4){display:none}.admin-table th:nth-child(n),.admin-table td:nth-child(n){display:table-cell}.admin-table{display:block;overflow-x:auto}}
