.ai-guest-welcome{border:1px solid var(--line);background:var(--surface);width:100%;max-width:620px;box-shadow:var(--shadow-paper);text-align:center;border-radius:24px;margin:12px auto 24px;padding:32px}.ai-guest-hero{aspect-ratio:1280/720;object-fit:cover;object-position:50% 45%;background:var(--mist-soft,var(--canvas));border-radius:16px;width:min(320px,92%);height:auto;margin:0 auto 16px;display:block}.ai-guest-emblem{background:var(--accent-soft);width:56px;height:56px;color:var(--accent-text);border-radius:18px;place-items:center;margin:0 auto 14px;display:grid}.ai-guest-eyebrow{color:var(--accent-text);margin-bottom:8px;font-size:13px;font-weight:600}.ai-guest-welcome h1{margin-bottom:10px;font-size:clamp(22px,5vw,28px);line-height:1.4}.ai-guest-intro{color:var(--muted);margin-bottom:24px;font-size:14px;line-height:1.7}.ai-guest-features{text-align:left;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px;display:grid}.ai-guest-features>div{min-width:0}.ai-guest-features svg{color:var(--accent-text);margin-bottom:8px}.ai-guest-features h2{margin-bottom:6px;font-size:16px}.ai-guest-features p{color:var(--muted);margin-bottom:0;font-size:13px;line-height:1.7}.ai-guest-welcome .ai-guest-start{background:var(--accent);width:100%;min-height:48px;color:var(--on-accent);border:0;border-radius:999px;justify-content:center;align-items:center;gap:8px;margin-bottom:20px;font-weight:600;text-decoration:none;display:flex}.ai-guest-welcome .ai-guest-start:hover{background:var(--accent-hover);color:var(--on-accent)}.ai-guest-example-hint{color:var(--muted);margin-bottom:10px;font-size:13px;line-height:1.5}.ai-guest-examples{text-align:left;gap:10px;display:grid}.ai-guest-example{border:1px solid var(--line);background:var(--surface-secondary);border-radius:16px;grid-template-columns:minmax(0,1fr) 18px;gap:5px 12px;min-height:64px;padding:14px 16px;display:grid}.ai-guest-example:hover{border-color:var(--accent);background:var(--accent-soft)}.ai-guest-example span{color:var(--muted);font-size:12px}.ai-guest-example strong{grid-column:1;font-size:14px;font-weight:500;line-height:1.6}.ai-guest-example>svg{color:var(--accent-text);grid-area:1/2/span 2;align-self:center}.ai-guest-restored{color:var(--muted);margin:0 0 10px;font-size:13px;line-height:1.6}@media (width<=600px){.ai-guest-welcome{border-radius:20px;margin-top:0;padding:24px 20px}.ai-guest-intro{margin-bottom:20px}.ai-guest-features{gap:14px;margin-bottom:20px}}.role-memory-entry{white-space:nowrap;gap:6px;padding:7px 10px;font-size:13px}.role-memory-entry span{background:var(--canvas);color:var(--muted);border-radius:9px;padding:2px 6px;font-size:13px}.context-strip .role-memory-entry{color:var(--accent-text);background:var(--surface);border:1px solid var(--line);margin-left:auto}.role-tool-dialog{border:1px solid var(--line);width:min(560px,100% - 28px);max-height:calc(100dvh - 28px);color:inherit;border-radius:18px;padding:24px;overflow:auto}.role-tool-dialog::backdrop{background:color-mix(in srgb, var(--canvas) 28%, #000 72%)}.role-tool-dialog header{justify-content:space-between;align-items:center;gap:16px;display:flex}.role-tool-dialog header h2{margin:4px 0 0;font-size:20px}.role-tool-dialog header small{color:var(--muted);font-size:13px}.role-tool-dialog header button{background:0 0;border:0;padding:7px}.role-tool-description,.role-memory-note{color:var(--muted);font-size:13px;line-height:1.8}.memory-switch{background:var(--accent-soft);border-radius:12px;justify-content:space-between;align-items:center;gap:14px;padding:14px;display:flex}.memory-switch strong{font-size:13px;font-weight:600;display:block}.memory-switch small{color:var(--muted);margin-top:5px;font-size:13px;display:block}.memory-switch input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.memory-list-title{justify-content:space-between;margin:22px 0 10px;font-size:13px;display:flex}.memory-list-title small{color:var(--muted);font-size:13px}.memory-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.memory-list li{border:1px solid var(--line);border-radius:10px;padding:12px}.memory-list p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 7px;font-size:15px;line-height:1.7}.memory-item-actions{justify-content:flex-end;gap:6px;display:flex}.memory-item-actions button,.memory-confirm button{padding:4px 8px;font-size:13px}.memory-confirm{border-top:1px solid var(--line);flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:10px;font-size:13px;display:flex}.memory-confirm span{width:100%}.memory-empty{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:10px;padding:20px 12px;font-size:13px;line-height:1.7}.memory-editor{gap:9px;margin-top:18px;display:grid}.memory-editor label{gap:8px;font-size:13px;display:grid}.memory-editor textarea{resize:none;min-height:94px;font-size:15px}.memory-editor>small{color:var(--muted);text-align:right;font-size:13px}.memory-editor .form-actions{justify-content:flex-end;gap:8px;margin:0;display:flex}.memory-editor summary{color:var(--muted);cursor:pointer;font-size:13px}.memory-source{white-space:pre-wrap;background:var(--canvas);border-radius:9px;max-height:140px;padding:12px;font-size:13px;line-height:1.7;overflow:auto}.role-memory-note{border-top:1px solid var(--line);margin:18px 0 0;padding-top:14px;font-size:13px}.role-message-actions{flex-wrap:wrap;gap:7px;margin-top:12px;display:flex}.role-message-actions>button{color:var(--muted);border-color:var(--line);background:0 0;align-items:center;gap:4px;padding:4px 7px;font-size:13px;display:inline-flex}.role-branch-note{color:var(--muted);margin:10px 0;font-size:13px}@media (width<=600px){.role-tool-dialog{padding:18px}.context-strip .role-memory-entry{margin-left:0}.context-strip:has(.role-memory-entry){flex-wrap:wrap}.role-tool-dialog header h2{font-size:18px}}.role-scene-caption .role-memory-entry{min-height:44px;color:var(--accent-text);background:var(--surface);border:0;border-radius:24px;margin-left:auto;padding:8px 12px}.role-tool-dialog button{min-height:44px;font-size:13px}.role-tool-dialog .memory-source{font-size:15px}.role-tool-dialog{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-sheet);border-radius:24px}.role-scene-caption .role-memory-entry{background:var(--surface);border:1px solid var(--line);color:var(--accent-text)}.memory-switch,.memory-source{background:var(--canvas)}.memory-list li{background:var(--surface);border-radius:14px}.memory-empty{background:var(--canvas)}.memory-editor textarea{background:var(--surface);border-radius:14px}.role-action-recovery{border:1px solid var(--line);background:var(--surface);border-radius:16px;gap:8px;margin-block:12px;padding:12px 14px;font-size:14px;display:grid}.role-action-recovery p{margin:0;line-height:1.6}.role-action-recovery-row,.role-action-inline-recovery{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.role-action-recovery-row span{margin-right:auto}.role-action-recovery button,.role-action-inline-recovery button{min-height:44px;padding:8px 12px}.role-action-inline-recovery{color:var(--muted);margin-block:12px}.role-story-control{flex-wrap:wrap;align-items:center;gap:6px 12px;display:flex}.role-story-entry{min-height:44px;color:var(--ink);background:0 0;border:0;align-items:center;gap:6px;padding:6px 10px;font-size:13px;display:inline-flex}.role-story-notice{color:var(--muted);flex-basis:100%;margin:0;font-size:14px;line-height:1.5}.role-story-recovery{flex-wrap:wrap;gap:8px;display:flex}.role-story-recovery button{background:var(--surface);min-height:44px;color:var(--ink);border:1px solid var(--line)}.role-story-dialog{border:1px solid var(--line);width:min(380px,100vw - 32px);color:var(--ink);background:var(--surface);border-radius:20px;padding:20px}.role-story-dialog::backdrop{background:color-mix(in srgb, var(--canvas) 28%, #000 72%)}.role-story-dialog header{justify-content:space-between;align-items:center;gap:12px;display:flex}.role-story-dialog h2{margin:0;font-size:18px}.role-story-dialog p{color:var(--muted);margin:12px 0 20px;font-size:15px;line-height:1.6}.role-story-dialog button{min-height:44px}.dream-app .role-story-dialog header .icon-button{background:var(--control);width:44px;min-width:44px;height:44px;color:var(--ink);flex-shrink:0;padding:0}.dream-app .role-story-dialog header .icon-button svg{flex-shrink:0;width:20px;height:20px}.role-story-dialog .form-actions{justify-content:flex-end}.role-story-dialog .form-actions>button:not(.primary){background:var(--control);color:var(--ink)}.role-regeneration-control{flex-wrap:wrap;gap:8px;display:flex}.role-regeneration-control>button,.role-regeneration-recovery button{background:var(--surface);min-height:44px;color:var(--ink);border:1px solid var(--line)}.role-regeneration-notice{color:var(--muted);flex-basis:100%;margin:0;font-size:14px;line-height:1.5}.role-regeneration-recovery{flex-wrap:wrap;gap:8px;display:flex}.role-regeneration-dialog{border:1px solid var(--line);background:var(--surface);width:min(420px,100vw - 32px);color:var(--ink);border-radius:20px;padding:20px}.role-regeneration-dialog::backdrop{background:color-mix(in srgb, var(--canvas) 28%, #000 72%)}.role-regeneration-dialog header{justify-content:space-between;align-items:center;gap:12px;display:flex}.role-regeneration-dialog h2{margin:0;font-size:18px}.role-regeneration-dialog p{color:var(--muted);margin:12px 0 20px;font-size:15px;line-height:1.6}.role-regeneration-dialog button{min-height:44px}.dream-app .role-regeneration-dialog .icon-button{background:var(--control);flex-shrink:0;width:44px;min-width:44px;padding:0}.dream-app .role-regeneration-dialog .icon-button svg{flex-shrink:0;width:20px;height:20px}.role-regeneration-preview{white-space:pre-wrap;background:var(--canvas);border-radius:12px;max-height:240px;margin-bottom:16px;padding:14px;font-size:15px;line-height:1.6;overflow:auto}.role-regeneration-dialog .form-actions{justify-content:flex-end}
