:root{color:#141414;background:#f6f7f8;font-family:system-ui,-apple-system,BlinkMacSystemFont,MiSans,Noto Sans SC,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{overflow-x:hidden}button,input,textarea{font:inherit}button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh;padding:calc(18px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));background:#f6f7f8}.home-panel,.editor-panel{width:min(720px,100%);margin:0 auto}.home-header,.editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.home-header h1,.editor-header h1{margin:0;font-size:28px;line-height:1.15;letter-spacing:0}.home-header p{margin:8px 0 0;color:#666;font-size:15px;line-height:1.5}.primary-button,.ghost-button,.script-actions button,.editor-header button{min-height:46px;padding:0 18px;border-radius:8px;font-weight:700}.primary-button{flex:0 0 auto;color:#fff;background:#111}.ghost-button,.script-actions button{color:#171717;background:#fff;border:1px solid #d9dde3}.danger-button{color:#b42318!important}.script-list{display:grid;gap:12px}.script-card{overflow:hidden;border:1px solid #e0e3e8;border-radius:8px;background:#fff}.script-main{display:grid;width:100%;gap:7px;padding:16px;color:inherit;text-align:left;background:transparent}.script-title{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:800}.current-dot{padding:3px 7px;border-radius:999px;color:#fff;background:#111;font-size:11px;font-weight:700}.script-preview{display:-webkit-box;overflow:hidden;color:#4c4f55;font-size:14px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.script-meta{color:#7b8088;font-size:12px}.script-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:0 12px 12px}.empty-state{padding:48px 20px;border:1px dashed #c9ced6;border-radius:8px;text-align:center;background:#fff}.empty-state h2{margin:0 0 8px;font-size:22px}.empty-state p{margin:0 0 20px;color:#666}.editor-panel{display:flex;min-height:calc(100vh - 42px - var(--safe-top) - var(--safe-bottom));flex-direction:column}.field-label{display:grid;gap:8px;margin-bottom:16px;color:#333;font-size:14px;font-weight:700}.field-label input,.field-label textarea{width:100%;border:1px solid #d7dce2;border-radius:8px;color:#161616;background:#fff;outline:none}.field-label input:focus,.field-label textarea:focus{border-color:#111;box-shadow:0 0 0 3px #11111114}.field-label input{height:50px;padding:0 14px}.editor-content{flex:1}.field-label textarea{min-height:58vh;flex:1;padding:14px;resize:vertical;font-size:18px;line-height:1.7}.prompter-screen{position:fixed;inset:0;overflow:hidden;color:#fff;background:#000;touch-action:none;-webkit-user-select:none;user-select:none}.prompter-screen.light-theme{color:#050505;background:#f7f7f2}.reading-viewport{position:absolute;inset:0;overflow:hidden;padding:calc(84px + var(--safe-top)) max(24px,7vw) calc(180px + var(--safe-bottom))}.reading-content{width:100%;max-width:920px;margin:0 auto;color:inherit;text-align:center;font-weight:700;line-height:1.42;letter-spacing:0;line-break:loose;white-space:normal;word-break:normal;will-change:transform}.reading-content p{margin:0 0 .9em}.prompter-segment{display:inline-block}.reading-content .end-spacer{height:55vh}.mirror-mode{transform-origin:center top}.prompter-topbar,.control-dock{position:fixed;z-index:5;opacity:0;transition:opacity .18s ease;pointer-events:none}.prompter-topbar.visible,.control-dock.visible{opacity:1;pointer-events:auto}.prompter-topbar{top:0;right:0;left:0;display:grid;grid-template-columns:72px 1fr 72px;align-items:center;gap:8px;padding:calc(10px + var(--safe-top)) 12px 10px;background:linear-gradient(180deg,#000000e0,#0000)}.light-theme .prompter-topbar{background:linear-gradient(180deg,#f7f7f2eb,#f7f7f200)}.prompter-topbar span{overflow:hidden;font-size:14px;font-weight:700;text-align:center;text-overflow:ellipsis;white-space:nowrap}.prompter-topbar button,.control-dock button{min-height:46px;border-radius:8px;color:#fff;background:#ffffff24;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:15px;font-weight:800}.light-theme .prompter-topbar button,.light-theme .control-dock button{color:#050505;background:#00000014}.control-dock{right:0;bottom:0;left:0;display:grid;gap:10px;padding:14px 12px calc(16px + var(--safe-bottom));background:linear-gradient(0deg,#000000e6,#0000)}.light-theme .control-dock{background:linear-gradient(0deg,#f7f7f2eb,#f7f7f200)}.control-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.main-actions{grid-template-columns:1.15fr 1.15fr 1fr 1fr}.control-dock .play-button{color:#050505;background:#fff}.light-theme .control-dock .play-button{color:#fff;background:#050505}.slider-row{display:grid;gap:10px;padding:10px 12px;border-radius:8px;background:#ffffff1a;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.light-theme .slider-row{background:#00000012}.slider-row label{display:grid;gap:6px;font-size:13px;font-weight:800}.slider-row input{width:100%;accent-color:currentColor}.countdown{position:fixed;inset:0;z-index:10;display:grid;place-items:center;color:currentColor;background:#00000070;font-size:clamp(96px,30vw,220px);font-weight:800}.light-theme .countdown{background:#f7f7f294}.ended-pill{position:fixed;z-index:4;top:calc(70px + var(--safe-top));left:50%;transform:translate(-50%);padding:10px 16px;border-radius:999px;color:#050505;background:#fff;font-size:15px;font-weight:800}.light-theme .ended-pill{color:#fff;background:#050505}@media(orientation:landscape){.reading-viewport{padding:calc(54px + var(--safe-top)) max(24px,4vw) calc(118px + var(--safe-bottom))}.reading-content{max-width:none}.control-dock{grid-template-columns:1fr 1.2fr 1fr;align-items:end}.slider-row{order:2}}@media(max-width:420px){.home-header,.editor-header{align-items:flex-start}.home-header{flex-direction:column}.home-header .primary-button{width:100%}.editor-header h1{font-size:22px}.editor-header button{min-width:64px;padding:0 12px}.control-dock button{min-height:52px;padding:0 6px;font-size:13px}}
