:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e7edf0;background:#10151b;color-scheme:dark;font-synthesis:none;--accent: #a5e3bc;--app-height: 100dvh;--app-top: 0px}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{position:fixed;inset:0}button,input,textarea{font:inherit}button{color:inherit;border:0;background:transparent;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.35}button:focus-visible,input:focus-visible,textarea:focus-visible,.diff-view:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.app{position:absolute;top:var(--app-top);width:100%;height:var(--app-height);display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}header{flex:none;padding:0 10px;border-bottom:1px solid #2a333c}.story-line{display:flex;align-items:center;min-width:0;height:30px;gap:8px}.story-title{text-align:left;padding:0;min-width:0;font-size:12px;color:#9eacb7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:30px}.story-selector{flex:none;display:grid;place-items:center;min-width:44px;height:30px;border-radius:5px;color:var(--accent)}.story-selector:active{background:#283541}.offline-state{margin-left:auto;font-size:10px;color:#9eacb7;flex:none}.frame-line{display:flex;align-items:center;min-width:0;gap:8px;height:34px}.frame-title{display:flex;align-items:center;flex:1;min-width:0;gap:8px;padding:0;height:34px;text-align:left}.frame-title>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}.frame-label{color:var(--accent);font-size:16px;flex:none}.revision-info{flex:none;display:flex;gap:6px;font-size:12px;color:#9eacb7;font-variant-numeric:tabular-nums}.starred{color:var(--accent)}.prompt-space{flex:1;min-height:0;min-width:0;display:flex;overflow:hidden}.prompt,.diff-view{border:0;border-radius:0;padding:12px 10px;margin:0;flex:1;width:100%;min-width:0;min-height:0;resize:none;background:#10151b;color:#e7edf0;font-size:17px;line-height:1.55;overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;white-space:pre-wrap;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52616e transparent}.prompt:read-only{outline:none}.diff-caption{color:#9eacb7;font-size:12px;margin-bottom:12px}ins{color:#b9f5c8;background:#203d2a;text-decoration:underline;text-underline-offset:3px}del{color:#ffc0b9;background:#462624}del+ins,ins+del{margin-left:.2em}.omission{color:#84929e}.save-status{flex:none;min-height:20px;padding:2px 10px;font-size:11px;line-height:16px;color:#94a3af;overflow-wrap:anywhere}.save-status.error{color:#ffc0b9}.tools{flex:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border-top:1px solid #2a333c;padding:2px 2px 4px}.tool{min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:5px;padding:2px}.tool span{font-size:9px;line-height:10px;white-space:nowrap}.tool.active{color:var(--accent);background:#1b2c24}.tool:not(:disabled):active{background:#283541}.tools .tool:last-child{grid-column:6;grid-row:2}.editing-tools{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #2a333c;padding:4px}.editing-tools .tool:last-child{color:var(--accent)}.editing-tools:has(.tool:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}.story-actions{display:flex;gap:8px;justify-content:flex-end}.story-actions button{min-height:44px;font-size:12px;padding:4px;color:var(--accent)}.unlock-form input{max-width:280px;padding:10px;border:1px solid #52616e;border-radius:5px;background:#10151b;color:inherit}.dialog-body p{margin:0;font-size:12px;line-height:1.4}dialog{max-height:calc(var(--app-height) - 24px);overflow-y:auto}.empty{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;text-align:center;gap:10px}.empty button{flex-shrink:0}.empty h1{font-size:23px;font-weight:600;line-height:1.3;margin:0;max-width:300px}.empty p{color:#9eacb7;line-height:1.6;margin:0}.empty small{color:#9eacb7;font-size:12px}.primary{color:#10151b;background:var(--accent);border-radius:6px;padding:10px 16px;min-height:44px;font-weight:600}dialog{color:#e7edf0;background:#1b232c;border:1px solid #3b4854;border-radius:10px;padding:0;width:min(360px,calc(100% - 24px));max-height:calc(var(--app-height) - 24px);overflow-y:auto}dialog::backdrop{background:#0009}.dialog-body{display:flex;flex-direction:column;padding:12px;gap:10px}.dialog-body h2,.dialog-body label{font-size:16px;margin:0}.dialog-body input{min-width:0;width:100%;background:#10151b;color:inherit;padding:10px;border:1px solid #52616e;border-radius:5px;font-size:16px}.dialog-error{color:#ffc0b9;font-size:12px;overflow-wrap:anywhere;margin:0}.sheet-action{display:flex;flex-direction:column;gap:4px;text-align:left;min-height:54px;padding:8px;border:1px solid #3b4854;border-radius:6px}.sheet-action span{color:#9eacb7;font-size:12px}.story-list{display:flex;flex-direction:column;gap:8px;max-height:min(40dvh,300px);overflow-y:auto}.story-option{flex-shrink:0}.story-option strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.story-option[aria-current=true]{border-color:var(--accent);background:#1b2c24}.sheet-cancel{min-height:44px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px}.dialog-actions>button{min-height:44px;padding:10px 14px}@media(max-width:350px){.prompt,.diff-view{font-size:16px}}@media(max-height:430px)and (min-width:600px){.story-line{height:24px}.frame-line{height:28px}.tool span{display:none}.tools{grid-template-columns:repeat(11,minmax(0,1fr))}.tools .tool:last-child{grid-column:auto;grid-row:auto}}
