@import"https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600&display=swap";:root{font-family:Noto Sans JP,sans-serif;color:#f7f2eb;background:#13161d;font-size:16px;line-height:1.65;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:2px solid #d7ab6d;outline-offset:3px}.app-shell{min-height:100vh;background:radial-gradient(circle at 12% 8%,#352925 0,transparent 30%),#14171e}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(4vw,24px);border-bottom:1px solid #ffffff20;background:#15171dec}.brand{display:flex;gap:12px;align-items:center;font-family:"Noto Serif JP",serif;font-size:21px;font-weight:600;letter-spacing:.14em}.brand-mark{color:#d0a66d;font-size:32px;line-height:1}.brand small{font-family:Noto Sans JP,sans-serif;letter-spacing:.12em;font-size:10px;margin-left:7px;color:#aeb0b4}.topbar nav{display:flex;gap:28px;color:#a6a5a5;font-size:13px}.topbar nav a{padding:12px 0;transition:color .2s}.topbar nav a:hover,.topbar nav .active{color:#f4d5a9}.eyebrow{letter-spacing:.22em;color:#d8af77;font-size:11px;font-weight:700}.muted{color:#aeb0b8}.small{font-size:12px}.error{color:#ffb8aa;background:#532e2d;border:1px solid #aa6861;border-radius:10px;padding:10px 14px}.success{color:#b9e7c4;background:#1e4733;border:1px solid #467856;border-radius:10px;padding:10px 14px}.page-loading{padding:20vh;text-align:center}.login-layout{min-height:calc(100vh - 76px);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:9vw;max-width:1300px;margin:auto;padding:50px 6vw}.intro h1{font-family:"Noto Serif JP",serif;font-size:clamp(48px,6vw,88px);line-height:1.3;font-weight:500;letter-spacing:.05em}.intro h1 em{color:#dcb17d;font-style:normal}.intro>p:not(.eyebrow){color:#c7c3bf;line-height:2;font-size:16px}.intro-line{height:1px;width:160px;background:linear-gradient(90deg,#d4a973,transparent);margin-top:50px}.login-card{max-width:460px;width:100%;background:#24242b;border:1px solid #60534b;border-radius:18px;padding:42px;box-shadow:0 24px 70px #0005}.login-card h2{font-family:"Noto Serif JP",serif;font-size:29px;font-weight:500}.login-card form,.settings-panel{display:flex;flex-direction:column}.login-card label,.settings-panel label,.detail label{display:block;font-size:13px;font-weight:600;margin:23px 0 7px}.login-card input,.admin-main input,.admin-main textarea,.admin-main select,.admin-side input,.chat-side select{width:100%;border:1px solid #66584e;border-radius:8px;background:#17191f;color:#f5f1ed;padding:12px 14px;outline:none}.login-card input:focus,.admin-main input:focus,.admin-main textarea:focus,.admin-main select:focus,.chat-side select:focus{border-color:#dfb178}.login-card input::placeholder,.admin-main textarea::placeholder{color:#85828a}.primary{border:0;border-radius:9px;background:#d4aa75;color:#2c211a;padding:14px 18px;font-weight:700;display:flex;justify-content:space-between;align-items:center;min-height:48px;transition:background .2s}.primary:hover:not(:disabled){background:#efd0a5}.login-card .primary{width:100%;margin-top:30px}.primary.narrow{align-self:flex-start;min-width:180px;margin-top:20px}.fineprint{font-size:12px;color:#ada8a5;margin:23px 0 0}.chat-layout{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:calc(100vh - 76px)}.chat-side{border-right:1px solid #ffffff20;padding:42px 24px;display:flex;flex-direction:column;background:#1b1c23}.chat-side .avatar{width:60px;height:60px;border-radius:18px;border:1px solid #9c7a56;background:linear-gradient(135deg,#665342,#312a29);display:grid;place-items:center;font-family:"Noto Serif JP",serif;font-size:28px;color:#f4d9b4;margin:25px 0 14px}.chat-side h2{font-family:"Noto Serif JP",serif;margin:0;font-weight:500}.chat-side>p{color:#aaa7a8;font-size:13px}.side-divider{height:1px;background:#ffffff25;margin:25px 0}.chat-side .side-label{margin:14px 0 5px;font-size:11px;letter-spacing:.1em;color:#aea9ab}.chat-side select{font-size:12px;padding:9px}.quiet{margin-top:auto;border:1px solid #6b5a51;border-radius:8px;background:transparent;color:#e8dbcd;min-height:44px}.quiet:hover{background:#3a302e}.chat-main{display:flex;flex-direction:column;height:calc(100vh - 76px);max-height:calc(100vh - 76px)}.chat-heading{min-height:100px;border-bottom:1px solid #ffffff17;display:flex;align-items:center;justify-content:space-between;padding:20px 5vw}.chat-heading h1{font-family:"Noto Serif JP",serif;font-size:24px;font-weight:500;margin:0}.chat-heading .eyebrow{margin:0}.online{font-size:12px;color:#c3ccc0}.online span{display:inline-block;width:7px;height:7px;background:#8eb89a;border-radius:50%;margin-right:8px}.message-list{flex:1;overflow-y:auto;padding:34px min(8vw,100px);display:flex;flex-direction:column;gap:22px}.empty-chat{text-align:center;margin:auto;color:#bcb9ba}.empty-chat .decor{color:#d7b27e;font-size:40px}.empty-chat h2{font-family:"Noto Serif JP",serif;font-weight:500;color:#f2ece6}.bubble{max-width:min(580px,82%);padding:17px 20px;border:1px solid #665851;border-radius:15px;background:#25262e;white-space:pre-wrap;word-break:break-word}.bubble.user{align-self:flex-end;background:#57432f;border-color:#8c6a4b}.bubble-name{font-size:11px;font-weight:700;color:#d6b583;letter-spacing:.1em}.bubble p{margin:8px 0 0;line-height:1.8}.processing{font-size:13px;color:#c8b89f}.compose-wrap{padding:16px min(8vw,100px) 20px;background:#181a20;border-top:1px solid #ffffff1a}.compose{display:flex;align-items:flex-end;gap:12px;border:1px solid #80664d;border-radius:14px;padding:10px;background:#25252a}.compose textarea{background:transparent;color:#fff;border:0;outline:0;resize:none;flex:1;min-height:48px;max-height:200px;padding:9px;font-size:16px}.compose textarea::placeholder{color:#a9a4a2}.send{width:46px;height:46px;border:0;border-radius:10px;background:#d4aa75;color:#231d1b;font-size:18px}.compose-hint{font-size:11px;color:#938e8b;text-align:right;margin:8px 0 0}.admin-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100vh - 76px)}.admin-side{background:#1b1d24;border-right:1px solid #ffffff21;padding:30px 18px;display:flex;flex-direction:column;gap:8px}.admin-side h2{font-size:18px;margin-bottom:18px}.admin-side button{border:0;background:transparent;color:#c5c3c2;text-align:left;padding:12px;border-radius:8px}.admin-side button:hover,.admin-side button.selected{background:#40372e;color:#ffe0b4}.admin-side label{margin-top:auto}.admin-main{padding:36px 4vw;min-width:0}.admin-head h1{font-family:"Noto Serif JP",serif;font-weight:500;font-size:30px}.admin-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(350px,2fr);gap:22px}.panel{background:#24262d;border:1px solid #555158;border-radius:14px;padding:26px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel h2{font-size:18px;margin:0}.panel h3{font-size:14px;color:#ddb782;margin:25px 0 8px}.panel-head input{max-width:180px}.chat-row{width:100%;border:0;border-bottom:1px solid #ffffff1b;background:transparent;color:#f5f0eb;padding:14px 4px;display:flex;justify-content:space-between;text-align:left}.chat-row:hover,.chat-row.chosen{background:#3c342d}.chat-row span{display:flex;flex-direction:column}.chat-row small,.model-row small{display:block;color:#ada9ad;font-size:11px}.admin-history{max-height:210px;overflow:auto;border:1px solid #ffffff21;border-radius:8px;padding:15px}.admin-history p{font-size:13px;margin:0 0 8px}.setting-block{margin:18px 0}.setting-block textarea{resize:vertical;line-height:1.7}.link-button{background:transparent;color:#dfbb8d;border:0;padding:7px 0;font-size:12px}.settings-panel{max-width:880px}.settings-panel details{margin:24px 0;padding:18px;border:1px solid #66584e;border-radius:8px}.settings-panel summary{cursor:pointer}.advanced-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.model-row{display:flex;gap:14px;padding:14px;border-bottom:1px solid #ffffff1a;align-items:center}.model-row input{width:18px}.model-row span{min-width:0}.model-row small{overflow-wrap:anywhere}.run-row{display:flex;gap:20px;align-items:center;padding:12px;border-bottom:1px solid #ffffff1a;font-size:13px}.run-row code{color:#deb883}.empty-panel{color:#a9a7ad;padding:60px 10px;text-align:center}@media(max-width:850px){.login-layout{grid-template-columns:1fr;gap:15px}.intro h1{font-size:46px}.intro-line{display:none}.login-card{max-width:none}.admin-grid,.chat-layout{grid-template-columns:1fr}.chat-side{border-right:0;border-bottom:1px solid #ffffff20;padding:15px 24px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.chat-side .avatar,.chat-side h2,.chat-side>p:not(.eyebrow),.chat-side .side-divider,.chat-side .side-label,.chat-side strong,.chat-side .small{display:none}.chat-side select{grid-column:1}.chat-side .quiet{grid-column:2}.chat-main{height:calc(100vh - 148px);max-height:calc(100vh - 148px)}}@media(max-width:600px){.topbar{height:64px;padding:0 16px}.topbar nav{gap:12px;font-size:12px}.brand{font-size:16px}.brand small{display:none}.login-layout{padding:28px 20px}.login-card{padding:26px}.chat-heading{min-height:78px;padding:12px 18px}.chat-heading h1{font-size:20px}.message-list{padding:20px 15px}.bubble{max-width:92%}.compose-wrap{padding:12px}.admin-layout{grid-template-columns:1fr}.admin-side{padding:12px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.admin-side h2,.admin-side .eyebrow{display:none}.admin-side label{flex-basis:100%;margin:4px 0 0}.admin-side input{flex-basis:100%;max-width:320px}.admin-side button{font-size:12px;padding:9px}.admin-main{padding:20px 12px}.panel{padding:18px}.advanced-grid{grid-template-columns:1fr 1fr}.run-row{flex-wrap:wrap}}.user-shell{--bg: #fff6f8;--surface: #fff;--line: #f1dce4;--ink: #2c2530;--muted: #7e6f7a;--accent: #d94f7f;--accent-dark: #b93d68;--accent-soft: #ffe9f0;--ok: #2f7a55;--danger: #a12a3f;--radius: 18px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);color:var(--ink);background:var(--bg);min-height:100dvh;font-family:Noto Sans JP,sans-serif;-webkit-tap-highlight-color:transparent}.user-shell :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.user-shell button{font:inherit}.user-shell .page-loading{min-height:100dvh;display:grid;place-items:center;padding:0}.user-shell .conversation-list{width:min(100%,640px);min-height:100dvh;margin:auto;padding:28px 20px 60px}.user-shell .conversation-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.user-shell .conversation-head small{color:var(--accent-dark);letter-spacing:.15em;font-size:11px;font-weight:700}.user-shell .conversation-head h1{margin:3px 0 0;font-size:26px;font-family:"Noto Serif JP",serif}.user-shell .conversation-head button{border:0;background:none;color:var(--muted);padding:10px}.user-shell .new-conversation{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:10px;background:var(--surface);padding:20px;border-radius:20px;box-shadow:0 8px 26px #76546b12}.user-shell .new-conversation label{font-weight:700}.user-shell .new-conversation>div{display:flex;min-width:0;gap:8px}.user-shell .new-conversation input{flex:1 1 0;width:0;min-width:0;padding:13px;border:1px solid #e6ccd6;border-radius:12px;font-size:16px}.user-shell .new-conversation button{flex:0 0 auto;min-height:46px;border:0;border-radius:12px;padding:0 16px;background:var(--accent);color:#fff;font-weight:700}.user-shell .new-conversation button:disabled{opacity:.5}.user-shell .new-conversation small{color:var(--muted)}.user-shell .conversation-items{display:grid;gap:10px;margin-top:24px}.user-shell .conversation-item{display:flex;align-items:center;gap:14px;width:100%;border:1px solid #f0dbe3;background:var(--surface);text-align:left;border-radius:16px;padding:14px;color:var(--ink)}.user-shell .conversation-item:hover{border-color:var(--accent);background:var(--accent-soft)}.user-shell .conversation-avatar{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#f5d6e2;color:#8c4262;font-weight:700}.user-shell .conversation-copy{display:grid;gap:3px;flex:1;min-width:0}.user-shell .conversation-copy small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted)}.user-shell .conversation-more{border:1px solid #e6ccd6;background:var(--surface);color:var(--accent-dark);border-radius:12px;padding:12px}.user-shell .error{color:var(--danger);background:#fff0f2;border:1px solid #f0c3cc;border-radius:12px;padding:10px 12px;font-size:13px;margin:0;display:flex;align-items:center;gap:8px}.user-shell .error .text-button{margin-left:auto;color:var(--danger)}.user-shell .text-button{background:none;border:0;padding:0;color:var(--accent-dark);font-weight:700;text-decoration:underline;text-underline-offset:3px}.user-shell .icon-button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted)}.user-shell .icon-button:hover{background:var(--accent-soft);color:var(--accent-dark)}.user-shell .dots{display:inline-flex;gap:5px;align-items:center;height:18px}.user-shell .dots i{width:7px;height:7px;border-radius:50%;background:#c98aa5;animation:dot 1.2s infinite ease-in-out}.user-shell .dots i:nth-child(2){animation-delay:.15s}.user-shell .dots i:nth-child(3){animation-delay:.3s}@keyframes dot{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.user-shell .login{max-width:440px;margin:0 auto;min-height:100dvh;padding:calc(18px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));display:flex;flex-direction:column;gap:22px}.user-shell .wordmark{margin:0;text-align:center;font-family:"Noto Serif JP",serif;font-size:18px;letter-spacing:.12em;color:#5a3a50}.user-shell .wordmark small{font-family:Noto Sans JP,sans-serif;font-size:10px;color:var(--accent-dark);letter-spacing:.18em;margin-left:4px}.user-shell .hero{position:relative;margin:0;border-radius:26px;overflow:hidden;aspect-ratio:4 / 5;background:#f6dfe7;box-shadow:0 24px 60px #b2557b22}.user-shell .hero img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}.user-shell .hero figcaption{position:absolute;inset:auto 0 0;padding:60px 22px 22px;display:flex;flex-direction:column;gap:2px;color:#fff;background:linear-gradient(180deg,transparent,#3a1a2acc 70%,#3a1a2ae6)}.user-shell .hero-tag{font-size:10px;font-weight:700;letter-spacing:.18em;color:#ffd3e2}.user-shell .hero strong{font-family:"Noto Serif JP",serif;font-size:32px;font-weight:500;line-height:1.2}.user-shell .hero figcaption>span:last-child{font-size:13px;color:#fff0f5}.user-shell .login-form{display:flex;flex-direction:column;gap:8px}.user-shell .login-form label{font-size:13px;font-weight:700;color:#5a4a56;margin-top:8px}.user-shell .login-form input{width:100%;min-height:52px;padding:12px 16px;font-size:16px;color:var(--ink);background:var(--surface);border:1px solid #e6ccd6;border-radius:14px;outline:0}.user-shell .login-form input:focus{border-color:var(--accent);box-shadow:0 0 0 4px #df8eaf33}.user-shell .login-form input::placeholder{color:#a08e9b}.user-shell .login-form .error{margin-top:6px}.user-shell .cta{margin-top:14px;min-height:54px;border:0;border-radius:16px;background:var(--accent);color:#fff;font-size:17px;font-weight:700;box-shadow:0 12px 28px #d94f7f40;transition:background .2s,transform .1s}.user-shell .cta:hover:not(:disabled){background:var(--accent-dark)}.user-shell .cta:active:not(:disabled){transform:scale(.985)}.user-shell .fineprint{margin:0;text-align:center;font-size:12px;line-height:1.8;color:var(--muted)}.user-shell .chat{height:100dvh;max-width:760px;margin:0 auto;display:flex;flex-direction:column;background:var(--surface);overflow:hidden}.user-shell .chat-bar{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:calc(8px + var(--safe-top)) 10px 8px 16px;border-bottom:1px solid var(--line);background:#fffbfcf2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.user-shell .bar-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:center 25%;border:2px solid #f5d0dd}.user-shell .bar-title{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}.user-shell .bar-title strong{font-size:17px;font-family:"Noto Serif JP",serif;font-weight:600}.user-shell .presence{font-size:12px;color:var(--ok);display:flex;align-items:center;gap:6px}.user-shell .presence:before{content:"";width:7px;height:7px;border-radius:50%;background:#4fb076}.user-shell .presence.off{color:var(--muted)}.user-shell .presence.off:before{background:#c4b7bf}.user-shell .messages{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px 14px 12px;display:flex;flex-direction:column;gap:3px;background:radial-gradient(circle at 85% -5%,#fff0f5,transparent 45%),#fffbfc}.user-shell .day{display:flex;justify-content:center;margin:14px 0 10px}.user-shell .day span{font-size:11px;color:var(--muted);background:#f5e6ec;border-radius:999px;padding:4px 12px}.user-shell .row{--message-row-width: 84%;display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:8px;align-items:end;width:fit-content;max-width:var(--message-row-width)}.user-shell .row.first{margin-top:12px}.user-shell .row.assistant{align-self:flex-start}.user-shell .row.user{align-self:flex-end;max-width:calc(var(--message-row-width) - 40px);grid-template-columns:minmax(0,1fr);justify-items:stretch}.user-shell .row-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;object-position:center 25%;visibility:hidden;grid-column:1}.user-shell .row.first .row-avatar{visibility:visible}.user-shell .bubble{grid-column:2;min-width:0;max-width:none;padding:10px 14px;border-radius:18px;background:var(--accent);color:#fff;border:1px solid var(--accent);box-shadow:0 2px 10px #76546b0d;white-space:pre-wrap;overflow-wrap:anywhere}.user-shell .row.user .bubble{grid-column:1;color:var(--ink);background:var(--surface);border-color:#f0dbe3}.user-shell .row.assistant .bubble{border-bottom-left-radius:6px}.user-shell .row.user .bubble{border-bottom-right-radius:6px}.user-shell .row.assistant:not(.first) .bubble{border-top-left-radius:8px}.user-shell .row.user:not(.first) .bubble{border-top-right-radius:8px}.user-shell .bubble p{margin:0;font-size:15.5px;line-height:1.7}.user-shell .message-photo{display:block;width:min(280px,100%);max-height:360px;object-fit:cover;border-radius:12px;margin-bottom:8px}.user-shell .stamp{grid-column:2;font-size:10.5px;color:#a4939e;margin-top:3px;padding:0 4px}.user-shell .row.user .stamp{grid-column:1}.user-shell .typing .bubble{padding:12px 16px}.user-shell .typing .dots i{background:#fff}.user-shell .slow{grid-column:2;font-size:11px;color:var(--muted);margin-top:4px;padding:0 4px}.user-shell .empty{margin:auto;text-align:center;padding:30px 12px;color:#6d5d6a;max-width:360px}.user-shell .empty img{width:96px;height:96px;border-radius:50%;object-fit:cover;object-position:center 25%;border:4px solid #f7d8e4;box-shadow:0 12px 30px #9e597829;margin-bottom:14px}.user-shell .empty .tag{margin:0 0 4px;font-size:10px;font-weight:700;letter-spacing:.2em;color:var(--accent-dark)}.user-shell .empty h2{margin:0 0 8px;font-family:"Noto Serif JP",serif;font-weight:500;font-size:22px;color:#45323f}.user-shell .empty p{margin:0;font-size:13px;line-height:1.8}.user-shell .starters{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:18px}.user-shell .starters button{border:1px solid #ecc6d4;background:var(--surface);color:var(--accent-dark);border-radius:999px;padding:9px 14px;font-size:13px;font-weight:600}.user-shell .starters button:hover{background:var(--accent-soft)}.user-shell .composer{flex:0 0 auto;padding:8px 12px calc(10px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;gap:8px}.user-shell .notice{margin:0;font-size:13px;color:#6b4a5d;background:var(--accent-soft);border-radius:12px;padding:10px 12px;line-height:1.6}.user-shell .compose{display:flex;align-items:flex-end;gap:8px}.user-shell .photo-button{flex:0 0 42px;width:42px;height:42px;border:1px solid #ead5de;border-radius:50%;display:grid;place-items:center;color:var(--accent);background:var(--surface);cursor:pointer;font-size:25px}.user-shell .photo-button input{position:absolute;width:1px;height:1px;opacity:0}.user-shell .photo-preview{position:relative;flex:0 0 48px;width:48px;height:48px}.user-shell .photo-preview img{width:100%;height:100%;object-fit:cover;border-radius:10px}.user-shell .photo-preview button{position:absolute;top:-7px;right:-7px;width:21px;height:21px;border:0;border-radius:50%;background:#2d2028;color:#fff;font-size:11px}.user-shell .compose textarea{flex:1;min-height:44px;max-height:160px;padding:11px 16px;font-size:16px;line-height:1.4;color:var(--ink);background:#fff6f9;border:1px solid #e8cbd8;border-radius:22px;resize:none;outline:0}.user-shell .compose textarea:focus{border-color:var(--accent);background:var(--surface)}.user-shell .compose textarea::placeholder{color:#a08e9b}.user-shell .compose textarea:disabled{background:#f8eef2;color:#9c8c96}.user-shell .send{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;transition:background .2s,transform .1s}.user-shell .send svg{margin-left:2px}.user-shell .send:hover:not(:disabled){background:var(--accent-dark)}.user-shell .send:active:not(:disabled){transform:scale(.94)}.user-shell .send:disabled{opacity:.35}.user-shell .hint{margin:0;text-align:right;font-size:11px;color:#a4939e}.user-shell .sheet-backdrop{position:fixed;inset:0;z-index:20;background:#2b1a2466;display:flex;align-items:flex-end;justify-content:center;animation:fade .18s ease-out}.user-shell .sheet{width:100%;max-width:560px;max-height:calc(100dvh - 40px);overflow-y:auto;background:var(--surface);border-radius:24px 24px 0 0;padding:8px 20px calc(24px + var(--safe-bottom));box-shadow:0 -20px 60px #4a203a33;display:flex;flex-direction:column;gap:18px;animation:rise .22s ease-out}@keyframes rise{0%{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}@keyframes fade{0%{opacity:0}to{opacity:1}}.user-shell .sheet-grip{width:40px;height:4px;border-radius:2px;background:#e5d0da;margin:4px auto 0}.user-shell .sheet-head{display:flex;align-items:center;justify-content:space-between}.user-shell .sheet-head h2{margin:0;font-size:18px}.user-shell .me{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:#fff6f9}.user-shell .me-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;background:#7a6f8f;flex:0 0 40px}.user-shell .me div{display:flex;flex-direction:column;min-width:0}.user-shell .me strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-shell .me small{font-size:11px;color:var(--muted)}.user-shell .field{display:flex;flex-direction:column;gap:7px}.user-shell .field label{font-size:13px;font-weight:700;color:#5a4a56}.user-shell .field small{font-size:12px;color:var(--muted);line-height:1.6}.user-shell .field input,.user-shell .field select{width:100%;min-height:48px;padding:10px 14px;font-size:16px;color:var(--ink);background:var(--surface);border:1px solid #e6ccd6;border-radius:12px;outline:0}.user-shell .field input:focus,.user-shell .field select:focus{border-color:var(--accent);box-shadow:0 0 0 4px #df8eaf33}.user-shell .inline{display:flex;gap:8px}.user-shell .inline input{flex:1;min-width:0}.user-shell .inline button{flex:0 0 auto;min-width:64px;min-height:48px;padding:0 14px;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:700}.user-shell .inline button:hover:not(:disabled){background:var(--accent-dark)}.user-shell .ok{margin:0;font-size:13px;color:var(--ok);background:#eef8f1;border-radius:12px;padding:10px 12px}.user-shell .leave{margin-top:6px;min-height:48px;border:1px solid #e3c9d3;border-radius:12px;background:transparent;color:var(--accent-dark);font-weight:600}.user-shell .leave:hover{background:var(--accent-soft)}.user-shell .reset-link{align-self:flex-start;border:0;background:transparent;color:#a5445e;font-size:13px;text-decoration:underline;padding:4px 0}.user-shell .reset-link:disabled{opacity:.45}.user-shell .reset-confirm{display:flex;flex-direction:column;gap:12px;color:var(--ink);font-size:14px;line-height:1.7}.user-shell .reset-confirm p{margin:0}.user-shell .reset-actions{display:flex;gap:8px;margin-top:8px}.user-shell .reset-actions button{flex:1;min-height:48px;border-radius:12px;border:1px solid #e3c9d3;background:#fff;color:var(--ink);font-weight:700}.user-shell .reset-actions .reset-danger{background:#a5445e;border-color:#a5445e;color:#fff}.user-shell .reset-actions button:disabled{opacity:.5}@media(min-width:761px){.user-shell{background:radial-gradient(circle at 20% 0,#ffe6ee,transparent 40%),var(--bg)}.user-shell .chat{height:calc(100dvh - 32px);margin:16px auto;border-radius:28px;border:1px solid var(--line);box-shadow:0 30px 80px #9e597822}.user-shell .chat-bar{padding:12px 12px 12px 20px;border-radius:28px 28px 0 0}.user-shell .messages{padding:20px 24px 14px}.user-shell .row{--message-row-width: 72%}.user-shell .composer{padding:10px 18px 16px;border-radius:0 0 28px 28px}.user-shell .sheet-backdrop{align-items:center}.user-shell .sheet{border-radius:24px;max-height:calc(100dvh - 80px);padding:8px 24px 24px}.user-shell .sheet-grip{display:none}.user-shell .login{min-height:100dvh;justify-content:center}.user-shell .hero{aspect-ratio:5 / 4}}@media(prefers-reduced-motion:reduce){.user-shell .dots i,.user-shell .sheet,.user-shell .sheet-backdrop{animation:none}}.user-shell .character-strip{height:calc(142px + var(--safe-top));padding-top:var(--safe-top);box-sizing:border-box;width:min(100%,760px);margin:0 auto;background:#fff;border-bottom:1px solid var(--line);overflow:hidden}.user-shell .character-track{display:flex;align-items:start;gap:8px;height:calc(100% - 38px);padding:8px 14px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}.user-shell .character-option{flex:0 0 72px;width:72px;min-height:86px;border:0;background:transparent;color:var(--ink);display:grid;justify-items:center;align-content:start;gap:3px;cursor:pointer}.user-shell .character-option:disabled{opacity:.55}.user-shell .character-option small{max-width:70px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}.user-shell .character-circle{position:relative;width:56px;height:56px;border-radius:50%;border:3px solid transparent;background:#f5d6e2;color:#8c4262;display:grid;place-items:center;overflow:hidden;font-size:20px;font-weight:700}.user-shell .character-circle img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.user-shell .character-option.selected .character-circle{border-color:var(--accent)}.user-shell .character-all{font-size:12px}.user-shell .character-error{max-width:760px;margin:8px auto}.user-shell .chat{height:calc(100dvh - 142px - var(--safe-top))}.user-shell .fallback-avatar,.user-shell .empty-avatar{display:grid;place-items:center;border-radius:50%;background:#f5d6e2;color:#8c4262;font-weight:700}.user-shell .hero-neutral{background:linear-gradient(145deg,#f6dfe7,#d94f7f)}.user-shell .character-search{height:38px;padding:4px 16px 0}.user-shell .character-search input{width:100%;height:30px;border:1px solid #e6ccd6;border-radius:10px;padding:2px 10px;background:#fff;color:var(--ink);font-size:13px}.ad-shell{--bg: #0f1116;--panel: #171a21;--panel-2: #1f232c;--line: #2a2f3a;--ink: #ecebe8;--muted: #9aa0ab;--accent: #d9b075;--accent-ink: #1d160e;--ok: #4cbf7a;--warn: #e0a54a;--danger: #ef6b6b;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);color:var(--ink);background:var(--bg);height:100dvh;display:flex;font-family:Noto Sans JP,sans-serif;-webkit-tap-highlight-color:transparent}.ad-shell :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.ad-shell button{font:inherit;color:inherit}.ad-shell h1,.ad-shell h2,.ad-shell p{margin:0}.ad-shell code{font-size:11px;color:var(--muted)}.ad-side{display:none}.ad-body{flex:1;min-width:0;display:flex;flex-direction:column;height:100dvh}.ad-top{flex:0 0 auto;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:6px;padding:calc(6px + var(--safe-top)) 8px 6px;border-bottom:1px solid var(--line);background:#14171ef2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.ad-top h1{text-align:center;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ad-icon{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:var(--muted)}.ad-icon:hover{background:var(--panel-2);color:var(--ink)}.ad-local{display:flex;gap:8px;align-items:center;padding:8px 12px;background:#2a2418;border-bottom:1px solid #4a3d24;font-size:12px}.ad-local label{color:var(--accent);white-space:nowrap}.ad-local input{flex:1;min-width:0}.ad-toast{display:flex;align-items:center;gap:10px;margin:8px 12px 0;padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.5}.ad-toast.ok{background:#1c3a2a;color:#bfe9cc;border:1px solid #2f6a48}.ad-toast.error{background:#3d2224;color:#ffc4c4;border:1px solid #7a3a3f}.ad-toast button{margin-left:auto;border:0;background:transparent;color:inherit;font-size:14px;padding:4px}.ad-main{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 12px 24px}.ad-stack{display:flex;flex-direction:column;gap:12px;max-width:880px;margin:0 auto}.ad-lead{font-size:13px;color:var(--muted);line-height:1.7}.ad-help{font-size:12px;color:var(--muted);line-height:1.6;margin-top:8px}.ad-empty{color:var(--muted);text-align:center;padding:36px 12px;font-size:14px}.ad-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px}.ad-card.ad-flush{padding:0;overflow:hidden}.ad-card h2{font-size:14px;font-weight:600;margin-bottom:10px;color:#e6d7bd}.ad-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.ad-card-head h2{margin:0}.ad-tag{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 9px}.ad-link{border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:600;padding:4px 0;text-decoration:underline;text-underline-offset:3px}.ad-shell input,.ad-shell textarea,.ad-shell select{width:100%;font:inherit;font-size:16px;color:var(--ink);background:#0f1116;border:1px solid #343a47;border-radius:12px;padding:11px 13px;outline:0;min-height:46px}.ad-shell textarea{line-height:1.7;resize:vertical;min-height:120px}.ad-shell input:focus,.ad-shell textarea:focus,.ad-shell select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #d9b07533}.ad-shell input::placeholder,.ad-shell textarea::placeholder{color:#6f7683}.ad-shell select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:36px}.ad-details summary{cursor:pointer;font-size:14px;font-weight:600;color:#e6d7bd;list-style:none;display:flex;align-items:center;justify-content:space-between}.ad-details summary:after{content:"＋";color:var(--muted)}.ad-details[open] summary:after{content:"－"}.ad-details[open] summary{margin-bottom:10px}.ad-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ad-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted);min-width:0}.ad-grid label span{display:flex;flex-direction:column;color:var(--ink)}.ad-grid input{min-height:42px;padding:8px 10px;font-size:15px}.ad-grid small{font-size:10.5px;color:var(--muted);overflow-wrap:anywhere}.ad-primary{min-height:50px;padding:0 22px;border:0;border-radius:14px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:15px;box-shadow:0 10px 26px #d9b07533}.ad-primary:hover:not(:disabled){background:#eac48c}.ad-primary:disabled{opacity:.5}.ad-secondary{min-height:42px;padding:0 14px;border:1px solid #3e4452;border-radius:12px;background:var(--panel-2);color:var(--ink);font-weight:600;font-size:13px;white-space:nowrap}.ad-secondary:hover:not(:disabled){border-color:var(--accent);color:#f2dfbf}.ad-secondary.danger{color:#ffb0b0;border-color:#6a3a3f}.ad-secondary:disabled{opacity:.5}.ad-savebar{position:sticky;bottom:0;z-index:3;display:flex;justify-content:flex-end;padding:10px 0 4px;background:linear-gradient(180deg,transparent,var(--bg) 35%)}.ad-savebar .ad-primary{width:100%}.ad-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.ad-segment{display:flex;padding:4px;border-radius:14px;background:var(--panel-2);border:1px solid var(--line)}.ad-segment button{flex:1;min-height:40px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ad-segment button.on{background:var(--panel);color:var(--ink);box-shadow:0 2px 8px #0006}.ad-segment button:disabled{opacity:.45}.ad-pill{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;white-space:nowrap;background:#2c313c;color:var(--muted)}.ad-pill.active,.ad-pill.succeeded{background:#1c3a2a;color:#9fe2b8}.ad-pill.paused,.ad-pill.queued,.ad-pill.ready{background:#3a2f18;color:#f0cd8a}.ad-pill.running{background:#1e2f4a;color:#a9cfff}.ad-pill.failed,.ad-pill.indeterminate,.ad-pill.expired{background:#3d2224;color:#ffb0b0}.ad-list{display:flex;flex-direction:column;gap:6px}.ad-search{position:relative;margin-bottom:6px}.ad-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}.ad-search input{padding-left:44px;border-radius:999px}.ad-row{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-align:left}.ad-row:hover,.ad-row.on{border-color:var(--accent);background:var(--panel-2)}.ad-row-body{flex:1;min-width:0;display:flex;flex-direction:column}.ad-row-body strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.ad-row-body small{font-size:11.5px;color:var(--muted)}.ad-avatar{flex:0 0 38px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#f4dcb4;background:linear-gradient(135deg,#5b4a34,#2c2622)}.ad-avatar.big{flex-basis:48px;width:48px;height:48px;font-size:18px}.ad-chat-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ad-chat-title{flex:1;min-width:0;display:flex;flex-direction:column}.ad-chat-title strong{font-size:17px}.ad-chat-title small{font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}.ad-log{max-height:60dvh;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}.ad-msg{max-width:92%;padding:9px 12px;border-radius:14px;background:var(--panel-2);border:1px solid var(--line)}.ad-msg.user{align-self:flex-end;background:#2b2a3a;border-color:#3d3b52}.ad-msg-name{display:flex;justify-content:space-between;gap:10px;font-size:11px;font-weight:700;color:var(--accent);margin-bottom:3px}.ad-msg-name time{font-weight:400;color:var(--muted)}.ad-msg p{font-size:13.5px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.ad-desktop-only{display:none}.ad-model{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line);cursor:pointer}.ad-model:last-child{border-bottom:0}.ad-model.off{opacity:.55;cursor:not-allowed}.ad-model-body{flex:1;min-width:0;display:flex;flex-direction:column}.ad-model-body strong{font-size:14px}.ad-model-body small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.ad-model-body .ad-warn{color:var(--warn)}.ad-switch{position:relative;flex:0 0 48px;width:48px;height:28px}.ad-switch input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer}.ad-switch i{position:absolute;inset:0;border-radius:999px;background:#3a4050;transition:background .2s}.ad-switch i:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s}.ad-switch.on i{background:var(--ok)}.ad-switch.on i:after{transform:translate(20px)}.ad-switch input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}.ad-score-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ad-score-summary article{display:flex;flex-direction:column;gap:3px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.ad-score-summary small,.ad-score-table small{color:var(--muted);font-size:11px}.ad-score-summary strong{color:var(--accent);font-size:25px}.ad-score-table .head,.ad-score-table article{display:grid;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(75px,1fr));gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.ad-score-table .head{color:var(--muted);font-size:11px;font-weight:700}.ad-score-table article:last-child{border-bottom:0}.ad-score-table article>span{display:flex;flex-direction:column;gap:2px;min-width:0}.ad-score-table article>span:first-child{display:grid;grid-template-columns:34px 1fr}.ad-score-table article>span:first-child b{grid-row:1/3;color:var(--accent)}.ad-case-section{display:flex;flex-direction:column;gap:12px}.ad-case-section>header{display:flex;align-items:end;justify-content:space-between;gap:12px}.ad-case-section h2{margin:0}.ad-case-section select{max-width:240px}.ad-case-list{display:grid;gap:12px}.ad-case-list article{display:grid;gap:10px}.ad-case-list article>header{display:flex;align-items:center;gap:8px}.ad-case-list article>header strong{flex:1}.ad-case-list time{font-size:11px;color:var(--muted)}.ad-case-list p{margin:3px 0 0;white-space:pre-wrap}.ad-case-list article>div{padding:10px;border-radius:10px;background:var(--panel-2)}.ad-case-list .cast-line{border-left:3px solid var(--accent)}.ad-case-list .reply-line{border-left:3px solid var(--ok)}.ad-case-outcome{padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.ad-case-outcome.replied{background:#173d2d;color:#83e5b3}.ad-case-outcome.dropped{background:#4b2529;color:#ffb0b0}.ad-case-outcome.pending{background:#3c3a27;color:#e7d98a}@media(max-width:720px){.ad-score-summary{grid-template-columns:1fr 1fr}.ad-score-table{overflow-x:auto}.ad-score-table .head,.ad-score-table article{min-width:680px}}.ad-run{display:flex;flex-direction:column;gap:6px;padding:13px 14px}.ad-run-head{display:flex;align-items:center;gap:10px}.ad-run-head strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.ad-run-head time{font-size:11.5px;color:var(--muted);white-space:nowrap}.ad-run-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--muted)}.ad-run-error{font-size:12px;color:#ffb0b0}.ad-rev{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px}.ad-rev div{display:flex;flex-direction:column;min-width:0}.ad-rev small{font-size:11.5px;color:var(--muted)}.ad-tabbar{flex:0 0 auto;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);background:#14171e;padding:4px 4px calc(6px + var(--safe-bottom))}.ad-tabbar button{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:10.5px;font-weight:600}.ad-tabbar button.on{color:var(--accent)}.ad-tabbar button:active{background:var(--panel-2)}@media(min-width:900px){.ad-side{display:flex;flex-direction:column;gap:4px;flex:0 0 220px;padding:22px 14px;border-right:1px solid var(--line);background:#12151b}.ad-brand{margin:0 8px 18px;font-family:"Noto Serif JP",serif;font-size:18px;letter-spacing:.1em;color:#f0dfc0}.ad-brand small{font-family:Noto Sans JP,sans-serif;font-size:10px;letter-spacing:.18em;color:var(--muted);margin-left:6px}.ad-side button{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:600;font-size:14px;text-align:left}.ad-side button:hover{background:var(--panel-2);color:var(--ink)}.ad-side button.on{background:#2e2818;color:var(--accent)}.ad-side-link{margin-top:auto;padding:10px 12px;font-size:12px;color:var(--muted)}.ad-side-link:hover{color:var(--accent)}.ad-tabbar{display:none}.ad-top{grid-template-columns:44px 1fr 44px;padding:10px 16px}.ad-top h1{text-align:left;font-size:20px}.ad-main{padding:20px 24px 40px}.ad-stack{max-width:960px}.ad-chats{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;max-width:1200px;margin:0 auto;align-items:start}.ad-list{position:sticky;top:0}.ad-detail .ad-stack{max-width:none}.ad-desktop-only{display:block}.ad-grid{grid-template-columns:repeat(3,1fr)}.ad-savebar .ad-primary{width:auto;min-width:220px}.ad-log{max-height:420px}}@media(max-width:899px){.ad-chats.detail-open .ad-list{display:none}.ad-chats:not(.detail-open) .ad-detail{display:none}}@media(prefers-reduced-motion:reduce){.ad-switch i,.ad-switch i:after{transition:none}}.ad-config-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:480px;overflow:auto;padding:12px;border-radius:10px;background:#f6f3f5;font-size:12px;line-height:1.5}.ad-usage-row{border-top:1px solid #eadfe5;padding:12px 0}.ad-usage-row summary{cursor:pointer}.ad-character-error{color:#a12a3f}.ad-character-ok{color:#2f7a55}.ad-character-list{display:flex;gap:12px;overflow-x:auto;padding:8px 0}.ad-character-list button{flex:0 0 112px;display:grid;justify-items:center;gap:4px;padding:12px 8px;border:1px solid #e6ccd6;border-radius:14px;background:#fff;cursor:pointer}.ad-character-list button.on{border-color:#d94f7f;background:#fff0f5}.ad-character-list small{font-size:11px}.ad-character-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#f5d6e2}.ad-character-avatar img{width:100%;height:100%;object-fit:cover}.ad-character-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.character-admin .ad-card label{display:grid;gap:6px;margin:12px 0}.character-admin .ad-card input,.character-admin .ad-card textarea,.character-admin .ad-card select{max-width:100%}.ad-shell{--bg:#f6f7f9;--panel:#fff;--panel-2:#f0f2f5;--line:#dfe3e8;--ink:#20242b;--muted:#667085;--accent:#a36a22;--accent-ink:#fff;background:#f6f7f9;color:#20242b}.ad-top{background:#fffffff2}.ad-card h2{color:#3a2c1d}.ad-shell input,.ad-shell textarea,.ad-shell select{color:#20242b;background:#fff;border-color:#ccd2da}.ad-side{background:#fff!important;border-color:#dfe3e8!important}.ad-side button,.ad-side a{color:#525b68!important}.ad-side button.on{background:#fff4e3!important;color:#8a5515!important}.ad-tabbar{background:#fff!important;border-color:#dfe3e8!important}.ad-tabbar button{color:#697386!important}.ad-tabbar button.on{background:#fff7e9!important;color:#98601b!important}.ad-list,.ad-detail{background:#fff!important}.ad-row{background:#fff!important;border-color:#e7e9ed!important;color:#20242b!important}.ad-row.on{background:#fff7e9!important}.ad-secondary{border-color:#ccd2da;background:#fff;color:#303640}.ad-segment button.on{box-shadow:0 2px 8px #25304418}.ad-pill{background:#edf0f3;color:#52606f}.ad-pill.active,.ad-pill.succeeded{background:#e4f5e9;color:#247044}.ad-toast.ok{background:#e8f6ec;color:#236a3b;border-color:#b9dfc5}.ad-toast.error{background:#fff0f1;color:#9a2738;border-color:#edc5ca}.ad-config-json{background:#f5f6f8!important;color:#323842!important}.ad-progress-grid{display:grid;gap:12px}.ad-progress-card{display:grid;gap:10px}.ad-progress-head{display:flex;align-items:center;justify-content:space-between}.ad-progress-status{padding:5px 10px;border-radius:999px;background:#fff1d6;color:#805300;font-size:12px;font-weight:700}.ad-progress-status.done{background:#e3f6e9;color:#247044}.ad-progress-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.ad-progress-metrics div{padding:10px;border-radius:10px;background:#f5f6f8}.ad-progress-metrics strong{display:block;font-size:20px}.ad-progress-days{display:flex;gap:5px;overflow-x:auto}.ad-progress-days span{min-width:34px;padding:7px 4px;border-radius:8px;background:#eef0f3;text-align:center;font-size:10px}.ad-progress-days span.done{background:#dff3e6;color:#24683b}.cast-shell{min-height:100vh;background:#f8f4f7;color:#2e2430;font-family:Inter,Noto Sans JP,sans-serif}.cast-top{min-height:82px;padding:14px 24px;background:#2d2028;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.cast-top small,.cast-prompts header small{letter-spacing:.14em;opacity:.7}.cast-top h1,.cast-prompts h2{margin:3px 0 0;font-size:22px}.cast-top nav{display:flex;gap:8px}.cast-top button{min-height:44px;padding:0 18px;border:1px solid #ffffff30;border-radius:12px;background:transparent;color:#fff;cursor:pointer}.cast-top button.on{background:#fff;color:#2d2028}.cast-alert{margin:12px auto 0;max-width:1120px;padding:12px 16px;border-radius:12px}.cast-alert.error{background:#ffe7ea;color:#8a2431}.cast-alert.ok{background:#e7f7ee;color:#22643e}.cast-workspace{height:calc(100vh - 82px);display:grid;grid-template-columns:340px minmax(0,1fr);max-width:1280px;margin:auto;background:#fff}.cast-list{border-right:1px solid #eadce3;overflow:auto}.cast-list h2{padding:20px;margin:0;font-size:18px}.cast-list>button{width:100%;min-height:82px;padding:14px 18px;border:0;border-top:1px solid #f1e6eb;background:#fff;text-align:left;cursor:pointer;display:grid;gap:5px}.cast-list>button.on,.cast-list>button:hover{background:#fff2f6}.cast-list span{color:#71636d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cast-list small{color:#b33a67}.cast-chat{min-width:0;display:grid;grid-template-rows:auto 1fr auto}.cast-chat>header{padding:14px 20px;border-bottom:1px solid #eadce3;display:flex;align-items:center;gap:12px}.cast-chat>header button{width:44px;height:44px;border:0;background:#f4e9ee;border-radius:50%;font-size:28px;cursor:pointer}.cast-chat h2{margin:0}.cast-chat header small{color:#776b73}.cast-messages{padding:20px;overflow:auto;display:flex;flex-direction:column;gap:10px}.cast-messages article{display:flex;align-items:end;gap:8px}.cast-messages article>div{max-width:min(72%,620px);padding:10px 14px;border-radius:18px;background:#f1e7ec}.cast-messages article.assistant{justify-content:flex-end}.cast-messages article.assistant>div{background:#9f4167;color:#fff}.cast-messages p{margin:0;white-space:pre-wrap;line-height:1.65;overflow-wrap:break-word}.cast-messages img{display:block;max-width:280px;width:100%;border-radius:12px;margin-bottom:8px}.cast-messages time{font-size:12px;color:#887b84}.cast-chat form{padding:14px 20px 18px;border-top:1px solid #eadce3}.cast-chat form>label{display:block;font-weight:700;margin-bottom:7px}.cast-chat form>div{display:flex;align-items:end;gap:10px}.cast-chat textarea,.cast-prompts textarea{width:100%;box-sizing:border-box;border:1px solid #d9c6cf;border-radius:13px;padding:12px;font:inherit;line-height:1.6;resize:vertical}.cast-chat form button,.cast-prompts header button{min-width:88px;min-height:44px;border:0;border-radius:12px;background:#9f4167;color:#fff;font-weight:700;cursor:pointer}.cast-chat button:disabled,.cast-prompts button:disabled{opacity:.45}.cast-prompts{max-width:920px;margin:0 auto;padding:28px 20px 60px}.cast-prompts header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cast-prompts label{display:block;margin-top:18px}.cast-prompts label span{display:block;font-weight:700;margin-bottom:7px}@media(max-width:720px){.cast-top{padding:12px}.cast-top h1{font-size:18px}.cast-top button{padding:0 12px}.cast-workspace{display:block;height:calc(100vh - 82px)}.cast-list,.cast-chat{height:100%}.mobile-hidden{display:none}.cast-messages article>div{max-width:82%}.cast-prompts{padding:20px 14px 50px}}.cast-character{display:flex;align-items:center;gap:8px}.cast-character span{font-size:13px}.cast-character select{min-height:44px;border:1px solid #ffffff45;border-radius:10px;background:#fff;color:#2d2028;padding:0 12px;font:inherit}.cast-sender{display:block;margin-bottom:4px;font-size:11px;font-weight:700;letter-spacing:.06em;opacity:.75}.settings-tabs{display:flex;gap:8px;margin-bottom:22px}.settings-tabs button{min-height:44px;padding:0 18px;border:1px solid #d9c6cf;border-radius:12px;background:#fff;color:#5d4b55;font-weight:700;cursor:pointer}.settings-tabs button.on{background:#9f4167;color:#fff;border-color:#9f4167}.image-library>header{display:flex;justify-content:space-between;gap:20px;align-items:start}.image-library header p{margin:8px 0;color:#71636d}.image-library header>strong{white-space:nowrap;background:#f3e6ec;padding:8px 12px;border-radius:999px}.image-upload{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;margin:20px 0 26px;background:#fff;border:1px solid #eadce3;border-radius:16px}.image-upload label,.image-grid label{display:grid;gap:7px;font-weight:700}.image-upload label:nth-child(n+3){grid-column:1/-1}.image-upload input,.image-upload select,.image-upload textarea,.image-grid input,.image-grid select,.image-grid textarea{width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #d9c6cf;border-radius:10px;background:#fff;font:inherit}.image-upload button,.image-grid button{min-height:44px;padding:0 18px;border:0;border-radius:10px;background:#9f4167;color:#fff;font-weight:700;cursor:pointer}.image-upload button{grid-column:1/-1}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.image-grid article{display:grid;gap:13px;padding:16px;background:#fff;border:1px solid #eadce3;border-radius:16px}.image-grid img{width:100%;height:260px;object-fit:cover;border-radius:12px;background:#eee}.image-grid article>div{display:flex;gap:8px}.image-grid .danger{background:#fff;color:#9a3040;border:1px solid #dcaeb6}@media(max-width:720px){.image-upload,.image-grid{grid-template-columns:1fr}.image-grid img{height:220px}}.cast-top nav a{min-height:44px;padding:0 12px;display:flex;align-items:center;color:#fff;text-decoration:none;border-radius:10px}.cast-top nav a:hover{background:#ffffff18}.image-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0}.image-stats>div{padding:8px 4px;border-radius:9px;background:#f8f1f4;text-align:center}.image-stats dt{font-size:11px;color:#776b73}.image-stats dd{margin:3px 0 0;font-size:14px;font-weight:800}@media(max-width:460px){.image-stats{grid-template-columns:repeat(2,1fr)}}.cast-prompts{padding-bottom:120px}.settings-tabs{position:sticky;top:0;z-index:12;padding:9px;border:1px solid #eadce3;border-radius:18px;background:#fffdfdea;box-shadow:0 12px 34px #4b283719;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.settings-tabs button{position:relative;flex:1;overflow:hidden;transition:color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}.settings-tabs button:after{content:"";position:absolute;inset:auto 16px 6px;height:2px;border-radius:2px;background:currentColor;transform:scaleX(0);transition:transform .28s cubic-bezier(.22,1,.36,1)}.settings-tabs button.on{background:linear-gradient(135deg,#7d2f51,#b44e79);box-shadow:0 9px 24px #9f41673d;transform:translateY(-1px)}.settings-tabs button.on:after{transform:scaleX(1)}.image-library{animation:settings-rise .5s cubic-bezier(.22,1,.36,1) both}.image-library>header{position:relative;padding:20px;border-radius:22px;background:linear-gradient(135deg,#2d2028,#753453 62%,#a84570);color:#fff;box-shadow:0 20px 50px #5e2b4033;overflow:hidden}.image-library>header:after{content:"";position:absolute;right:-52px;top:-76px;width:190px;height:190px;border-radius:50%;border:1px solid #ffffff45;box-shadow:0 0 0 32px #ffffff0b,0 0 0 65px #ffffff08}.image-library header p{position:relative;z-index:1;color:#faeaf0;line-height:1.7}.image-library header h2,.image-library header small,.image-library header>strong{position:relative;z-index:1}.image-library header>strong{background:#ffffff18;border:1px solid #ffffff30;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.image-upload{box-shadow:0 16px 45px #4b283712}.image-upload button{font-size:15px;box-shadow:0 12px 28px #9f416735;transition:transform .2s ease,box-shadow .2s ease}.image-upload button:not(:disabled){animation:image-cta-glow 2.5s ease-in-out infinite}.image-upload button:not(:disabled):active{transform:scale(.98)}.image-grid article{animation:image-card-rise .55s cubic-bezier(.22,1,.36,1) both;box-shadow:0 16px 44px #4b283712;transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease}.image-grid article:hover{transform:translateY(-4px);box-shadow:0 22px 50px #4b283720}.image-grid img{transition:transform .6s cubic-bezier(.22,1,.36,1)}.image-grid article:hover img{transform:scale(1.025)}@keyframes settings-rise{0%{opacity:0;transform:translateY(24px) scale(.98);filter:blur(5px)}to{opacity:1;transform:none;filter:none}}@keyframes image-card-rise{0%{opacity:0;transform:translateY(28px) scale(.96)}to{opacity:1;transform:none}}@keyframes image-cta-glow{50%{box-shadow:0 0 0 6px #9f416714,0 17px 36px #9f416752}}@media(max-width:720px){.cast-prompts{width:100%;max-width:none;height:calc(100dvh - 142px - env(safe-area-inset-bottom));min-height:0;box-sizing:border-box;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:14px 12px calc(140px + env(safe-area-inset-bottom));scroll-padding-top:82px;scroll-padding-bottom:150px}.settings-tabs{top:0;margin:0 0 18px;padding:7px;gap:5px}.settings-tabs button{min-width:0;min-height:52px;padding:0 7px;font-size:12px;white-space:nowrap}.image-library>header{align-items:center;padding:18px 15px}.image-library header h2{font-size:24px}.image-library header p{font-size:13px}.image-library header>strong{padding:7px 9px;font-size:11px}.image-upload{grid-template-columns:1fr;margin:16px 0 24px;padding:14px;gap:14px;border-radius:20px}.image-upload label{margin:0}.image-upload input,.image-upload select,.image-upload textarea,.image-grid input,.image-grid select,.image-grid textarea{min-height:48px;font-size:16px}.image-upload button,.image-grid button{min-height:50px}.image-grid{grid-template-columns:1fr;gap:20px}.image-grid article{padding:13px;border-radius:19px}.image-grid img{height:auto;aspect-ratio:4/5}.image-grid article>div:last-child{position:sticky;bottom:78px;z-index:2;padding:8px;margin:0 -5px -5px;border-radius:13px;background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.image-grid article>div:last-child button:first-child{flex:1}}@media(prefers-reduced-motion:reduce){.image-library,.image-grid article,.image-upload button:not(:disabled){animation:none}.settings-tabs button,.settings-tabs button:after,.image-grid article,.image-grid img{transition:none}}.cast-prompt-settings>header{margin-bottom:18px}.cast-prompt-settings>header p{margin:7px 0 0;color:#71636d}.cast-prompt-list{display:grid;gap:10px}.cast-prompt-list>button{width:100%;min-height:72px;padding:13px 15px;border:1px solid #eadce3;border-radius:14px;background:#fff;color:#2e2430;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;font:inherit;cursor:pointer;touch-action:manipulation}.cast-prompt-list>button:hover{background:#fff8fa;border-color:#dcaebf}.cast-prompt-list>button:focus-visible,.cast-prompt-modal button:focus-visible,.cast-prompt-modal textarea:focus-visible{outline:3px solid #d3a70f;outline-offset:2px}.cast-prompt-list span{display:grid;gap:5px}.cast-prompt-list strong{font-size:16px}.cast-prompt-list small{color:#71636d}.cast-prompt-list b{min-width:58px;min-height:44px;border-radius:10px;background:#fff5cd;color:#806000;display:grid;place-items:center;font-size:14px}.cast-prompt-modal{position:fixed;z-index:300;inset:0;padding:20px;background:#241a20a6;display:grid;place-items:center;overscroll-behavior:contain}.cast-prompt-modal>section{width:min(760px,100%);height:min(760px,calc(100dvh - 40px));border-radius:20px;background:#fff;box-shadow:0 24px 70px #1f151c55;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.cast-prompt-modal header{min-height:76px;padding:12px 18px;border-bottom:1px solid #eadce3;display:flex;align-items:center;gap:13px}.cast-prompt-modal header button{width:44px;height:44px;border:0;border-radius:50%;background:#f5eaef;color:#4d3944;font-size:28px;line-height:1;cursor:pointer}.cast-prompt-modal header small{color:#806f79}.cast-prompt-modal h2{margin:2px 0 0;font-size:20px}.cast-prompt-modal-body{min-height:0;padding:18px;overflow:auto;display:grid;grid-template-rows:auto minmax(280px,1fr);gap:8px}.cast-prompt-modal-body label{font-weight:700}.cast-prompt-modal textarea{width:100%;height:100%;min-height:280px;box-sizing:border-box;padding:14px;border:1px solid #d9c6cf;border-radius:13px;background:#fff;color:#2e2430;font:16px/1.7 inherit;resize:none;overscroll-behavior:contain}.cast-prompt-modal footer{padding:12px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid #eadce3;background:#fff;display:flex;justify-content:flex-end;gap:10px}.cast-prompt-modal footer button{min-width:104px;min-height:48px;border:0;border-radius:12px;background:#9f4167;color:#fff;font:700 15px inherit;cursor:pointer}.cast-prompt-modal footer button.secondary{background:#f3e9ee;color:#4d3944}.cast-prompt-modal footer button:disabled{opacity:.5}@media(max-width:720px){.cast-prompts{height:calc(100dvh - 142px - env(safe-area-inset-bottom));box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}.cast-prompt-modal{padding:0;place-items:stretch}.cast-prompt-modal>section{width:100%;height:100dvh;border-radius:0}.cast-prompt-modal header{padding-top:max(12px,env(safe-area-inset-top));padding-right:72px}.cast-prompt-modal-body{padding:14px;grid-template-rows:auto minmax(0,1fr)}.cast-prompt-modal textarea{min-height:100%;font-size:16px}.cast-prompt-modal footer{display:grid;grid-template-columns:1fr 1fr}.cast-prompt-modal footer button{width:100%}}.cast-character-create{padding:20px;background:#fff;border:1px solid #eadce3;border-radius:16px}.cast-character-create h2{margin-top:0}.cast-character-create p{color:#71636d}.cast-character-create form{display:grid;gap:9px}.cast-character-create label{font-weight:700}.cast-character-create input{min-height:48px;padding:0 13px;border:1px solid #d9c6cf;border-radius:12px;font:16px inherit}.cast-character-create button{min-height:48px;border:0;border-radius:12px;background:#9f4167;color:#fff;font-weight:800}@media(max-width:720px){.settings-tabs{overflow-x:auto}.settings-tabs button{flex:0 0 auto}.cast-character-create{padding:16px}}.cast-plus input{display:none}.cast-plus{display:grid!important;place-items:center;cursor:pointer}.cast-reply-photo{position:relative;width:96px;margin:0 0 8px}.cast-reply-photo img{display:block;width:96px;height:96px;object-fit:cover;border-radius:12px}.cast-reply-photo button{position:absolute;top:-7px;right:-7px;width:28px;height:28px;min-width:0!important;border-radius:50%!important;background:#333!important;color:#fff!important}.demo-shell{min-height:100vh;background:#070b13;color:#e9eef7;font-family:Noto Sans JP,sans-serif;padding:0 24px 30px}.demo-head{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263043;gap:24px;padding-right:58px}.demo-head h1{font-size:20px;margin:3px 0 0;letter-spacing:.04em}.demo-logo{font-size:10px;letter-spacing:.2em;color:#8694aa;font-weight:700}.demo-logo i,.demo-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34d399;margin-right:7px;box-shadow:0 0 12px #34d399}.demo-head-actions{display:flex;align-items:center;gap:16px}.demo-live{border:1px solid #245940;background:#0d2a20;color:#6ee7b7;border-radius:99px;padding:7px 12px;font:700 10px monospace;letter-spacing:.1em}.demo-head-actions label{color:#8694aa;font-size:11px}.demo-head select{margin-left:8px;background:#111827;border:1px solid #344058;color:#e9eef7;border-radius:7px;padding:7px}.demo-head button{display:flex;align-items:center;gap:8px;background:#1c2534;color:#dce5f4;border:1px solid #3a465b;border-radius:8px;padding:9px 13px}.demo-head button svg{width:16px;height:16px}.demo-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:18px 0}.demo-metrics>div{background:#0d131e;border:1px solid #202c3e;border-radius:10px;padding:15px 18px;display:grid;grid-template-columns:1fr auto;align-items:end}.demo-metrics small{grid-column:1/-1;color:#8090a7;font-size:10px;letter-spacing:.08em}.demo-metrics strong{font:600 25px Noto Sans JP;margin-top:5px}.demo-metrics strong small{font-size:12px;margin-left:3px}.demo-metrics em{color:#58d6a2;font-size:10px;font-style:normal}.demo-metrics em.amber{color:#fbbf24}.demo-grid{height:calc(100vh - 110px);min-height:580px;display:grid;grid-template-columns:minmax(280px,23%) minmax(430px,1fr) minmax(270px,22%);background:#0b111b;border:1px solid #263247;border-radius:12px;overflow:hidden}.demo-inbox,.demo-monitor{min-width:0;background:#0d141f}.demo-inbox{border-right:1px solid #263247}.demo-monitor{border-left:1px solid #263247;padding:0 17px}.demo-panel-title{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #222e40}.demo-panel-title p{font:600 9px monospace;color:#4f9eff;letter-spacing:.18em;margin:0}.demo-panel-title h2{font-size:15px;margin:3px 0 0}.demo-panel-title>span{font-size:10px;color:#fbbf24;background:#2c240f;border:1px solid #554217;border-radius:99px;padding:5px 9px}.demo-search{margin:13px;display:flex;align-items:center;background:#111a28;border:1px solid #28364b;border-radius:8px;padding:0 10px}.demo-search svg{width:15px;color:#6f8098}.demo-search input{width:100%;height:38px;background:transparent;border:0;color:#e7edf6;outline:0;padding:0 9px;font-size:12px}.demo-chat-list{height:calc(100% - 130px);overflow:auto}.demo-chat-list>button{position:relative;width:100%;min-height:82px;border:0;border-bottom:1px solid #1e293a;background:transparent;color:#e8eef7;display:grid;grid-template-columns:43px minmax(0,1fr) auto;gap:10px;text-align:left;padding:13px;transition:background .2s}.demo-chat-list>button:hover,.demo-chat-list>button.selected{background:#152134}.demo-chat-list>button.selected:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#3b82f6}.demo-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 11px monospace;letter-spacing:.04em;box-shadow:inset 0 0 0 1px #ffffff20}.demo-chat-copy{min-width:0}.demo-chat-copy strong{display:flex;align-items:center;gap:6px;font-size:12px}.demo-chat-copy strong small{font-size:9px;color:#718198;font-weight:400}.demo-chat-copy>span{display:block;color:#8d9bb0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}.demo-chat-list time{font-size:8px;color:#64748b}.demo-chat-list b{position:absolute;right:13px;bottom:13px;background:#3b82f6;border-radius:99px;font-size:9px;min-width:18px;height:18px;display:grid;place-items:center}.demo-chat-list .done{opacity:.62}.demo-conversation{min-width:0;display:flex;flex-direction:column;background:radial-gradient(circle at 50% 0,#111d2e,transparent 42%),#080e17}.demo-person{height:72px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid #263247;gap:11px}.demo-person .demo-avatar{width:40px;height:40px}.demo-person h2{font-size:13px;margin:0}.demo-person p{font-size:9px;color:#77879d;margin:3px 0 0}.demo-person p i{display:inline-block;width:5px;height:5px;background:#34d399;border-radius:50%;margin-right:5px}.demo-person button{margin-left:auto;width:40px;height:40px;border:0;background:transparent;color:#8494ab}.demo-person svg{width:20px}.demo-messages{flex:1;overflow:auto;padding:25px 8%;display:flex;flex-direction:column;gap:14px}.demo-message{max-width:72%;position:relative}.demo-message small{display:block;color:#718198;font-size:9px;margin:0 0 4px}.demo-message p{margin:0;background:#172131;border:1px solid #2a384d;border-radius:4px 13px 13px;padding:11px 14px;font-size:12px;line-height:1.7}.demo-message time{display:block;color:#56657a;font-size:8px;margin-top:4px}.demo-message.cast{align-self:flex-end}.demo-message.cast small,.demo-message.cast time{text-align:right}.demo-message.cast p{background:#173766;border-color:#27528e;border-radius:13px 4px 13px 13px}.demo-thinking{display:flex;gap:4px;background:#172131;border:1px solid #2a384d;padding:13px;width:48px;border-radius:4px 13px 13px}.demo-thinking i{width:5px;height:5px;border-radius:50%;background:#708098;animation:demo-bounce 1s infinite}.demo-thinking i:nth-child(2){animation-delay:.15s}.demo-thinking i:nth-child(3){animation-delay:.3s}.demo-composer{padding:12px 18px 16px;border-top:1px solid #253146;background:#0b121d}.demo-ai-status{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#708199;margin-bottom:8px}.demo-ai-status span{color:#6ee7b7}.demo-ai-status i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#34d399;margin-right:6px;animation:demo-pulse 1.2s infinite}.demo-input{display:flex;align-items:center;border:1px solid #2e3d55;background:#101927;border-radius:9px;padding:6px}.demo-input textarea{flex:1;resize:none;border:0;outline:0;background:transparent;color:#eef4fc;min-height:46px;padding:8px;font-size:12px}.demo-input button{width:40px;height:40px;border:0;background:transparent;color:#8292a9;display:grid;place-items:center}.demo-input svg{width:18px}.demo-input .demo-send{background:#2563eb;color:#fff;border-radius:7px}.demo-pulse{width:8px!important;height:8px;border-radius:50%!important;padding:0!important;background:#34d399!important;box-shadow:0 0 12px #34d399}.demo-cast-card{display:flex;gap:11px;align-items:center;margin:16px 0;background:#111c2a;border:1px solid #29384d;border-radius:9px;padding:11px}.demo-cast-card img{width:49px;height:49px;border-radius:8px;object-fit:cover}.demo-cast-card div{display:flex;flex-direction:column}.demo-cast-card small{font-size:8px;color:#77879d}.demo-cast-card strong{font-size:13px}.demo-cast-card span{font-size:8px;color:#5ee0aa}.demo-cast-card span i{display:inline-block;width:5px;height:5px;background:#34d399;border-radius:50%;margin-right:4px}.demo-now{background:#111927;border-left:2px solid #3b82f6;padding:12px;margin-bottom:16px}.demo-now small{font:600 8px monospace;color:#4f9eff}.demo-now strong{display:block;font-size:11px;margin:5px 0}.demo-progress{height:2px;background:#233046;overflow:hidden}.demo-progress i{display:block;width:42%;height:100%;background:#3b82f6;animation:demo-progress 2s ease-in-out infinite}.demo-log{list-style:none;margin:0;padding:0 0 0 5px;max-height:calc(100% - 315px);overflow:hidden}.demo-log li{display:flex;gap:11px;min-height:48px}.demo-log>li>i{position:relative;width:7px;height:7px;border:1px solid #45546a;border-radius:50%;margin-top:4px}.demo-log>li>i:after{content:"";position:absolute;left:2px;top:8px;width:1px;height:39px;background:#29364a}.demo-log>li>i.current{background:#3b82f6;border-color:#3b82f6;box-shadow:0 0 9px #3b82f6}.demo-log time{display:block;font:600 7px monospace;color:#52647e}.demo-log p{font-size:9px;color:#9ba8ba;margin:2px 0}.demo-safety{position:absolute;bottom:0}.demo-monitor{position:relative}.demo-safety{left:17px;right:17px;bottom:15px;display:flex;align-items:center;gap:9px;border:1px solid #234536;background:#0c221a;border-radius:8px;padding:10px}.demo-safety svg{width:19px;color:#4ade80}.demo-safety div{display:flex;flex-direction:column}.demo-safety strong{font-size:9px}.demo-safety span{font-size:7px;color:#759488}.demo-safety b{margin-left:auto;color:#62d99c;font-size:8px}.portal-content:has(.demo-shell){background:#070b13}.portal-content:has(.demo-shell)+.portal-menu-button{border-color:#35435a;background:#111a28}.demo-shell button:focus-visible,.demo-shell input:focus-visible,.demo-shell select:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}@keyframes demo-bounce{50%{transform:translateY(-3px);opacity:.4}}@keyframes demo-pulse{50%{opacity:.35}}@keyframes demo-progress{0%{transform:translate(-110%)}to{transform:translate(260%)}}@media(max-width:1050px){.demo-grid{grid-template-columns:300px 1fr}.demo-monitor{display:none}.demo-metrics{grid-template-columns:repeat(2,1fr)}.demo-grid{height:calc(100vh - 184px)}}@media(max-width:720px){.demo-shell{padding:0 10px 18px}.demo-head{height:auto;min-height:92px;padding:12px 58px 12px 0;align-items:flex-start}.demo-head-actions{flex-wrap:wrap;justify-content:flex-end}.demo-live{display:none}.demo-metrics{grid-template-columns:1fr 1fr}.demo-metrics>div{padding:10px}.demo-grid{display:block;height:auto;min-height:0}.demo-inbox{border:0}.demo-chat-list{height:280px}.demo-conversation{height:620px;border-top:1px solid #263247}.demo-head-actions label{display:none}}@media(prefers-reduced-motion:reduce){.demo-shell *{animation:none!important}}.demo-list-view .demo-grid{display:block;max-width:780px;margin:0 auto;height:calc(100dvh - 110px)}.demo-list-view .demo-inbox{height:100%;border:1px solid #263247;border-radius:12px;overflow:hidden}.demo-list-view .demo-chat-list{height:calc(100% - 130px)}.demo-chat-view{height:100dvh;min-height:0;padding:0;background:#080e17}.demo-full-chat{height:100dvh;display:grid;grid-template-rows:72px minmax(0,1fr) auto;max-width:900px;margin:0 auto;background:radial-gradient(circle at 50% 0,#111d2e,transparent 42%),#080e17;border-inline:1px solid #263247}.demo-full-chat>header{display:flex;align-items:center;gap:12px;padding:0 72px 0 16px;border-bottom:1px solid #263247;background:#0d141f}.demo-full-chat>header>button{width:42px;height:42px;border:0;background:transparent;color:#b9c5d6;display:grid;place-items:center}.demo-full-chat>header svg{width:23px}.demo-full-chat>header h1{font-size:14px;margin:0}.demo-full-chat>header p{font-size:9px;color:#77879d;margin:3px 0 0}.demo-full-chat>header p i,.demo-ai-chip i,.demo-mobile-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#34d399;margin-right:6px}.demo-ai-chip{margin-left:auto;color:#6ee7b7;background:#0d2a20;border:1px solid #245940;border-radius:99px;padding:7px 11px;font-size:9px}.demo-full-messages{min-height:0;overflow-y:auto;padding:24px clamp(18px,8vw,90px);display:flex;flex-direction:column;gap:14px}.demo-full-chat>footer{padding:10px clamp(12px,5vw,54px) max(12px,env(safe-area-inset-bottom));background:#0b121d;border-top:1px solid #253146}.demo-mobile-status{color:#6ee7b7;font-size:9px;margin:0 0 7px 4px}.demo-full-chat .demo-input textarea{height:46px;min-height:46px}.demo-full-chat .demo-message{width:fit-content}.demo-full-chat .demo-message.cast{margin-left:auto}.portal-content:has(.demo-chat-view)+.portal-menu-button{top:14px}@media(max-width:720px){.demo-list-view{height:100dvh;padding:0 10px 10px}.demo-list-view .demo-head{min-height:82px;height:82px}.demo-list-view .demo-grid{height:calc(100dvh - 92px)}.demo-list-view .demo-chat-list{height:calc(100% - 130px)}.demo-chat-view{padding:0}.demo-full-chat{border:0}.demo-full-chat>header{height:72px;padding-left:4px;padding-right:58px}.demo-full-chat>header .demo-avatar{width:36px;height:36px}.demo-ai-chip{display:none}.demo-full-messages{padding:16px 14px}.demo-full-chat .demo-message{max-width:88%}.demo-full-chat>footer{padding:8px 10px max(10px,env(safe-area-inset-bottom))}.demo-full-chat .demo-input{min-height:58px}.demo-full-chat .demo-input textarea{font-size:16px}}.demo-full-chat .demo-input{align-items:flex-end}.demo-full-chat .demo-input textarea{min-height:46px;max-height:118px;overflow-y:auto;transition:height .16s ease;resize:none}.demo-sent-bubble{animation:sent-pop .24s ease-out}.demo-mobile-status.sent{color:#3e9b61;font-weight:700}.demo-sent-label{position:absolute;right:13px;bottom:10px;color:#b18a0b;font-size:9px;font-style:normal}.demo-list-view .demo-chat-list .done{opacity:1}.demo-list-view .demo-chat-list .done .demo-chat-copy>span{color:#9b7811}@keyframes sent-pop{0%{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.demo-full-chat .demo-input textarea,.demo-sent-bubble{transition:none;animation:none}}.demo-chat-photo{display:block;width:min(280px,68vw);max-height:340px;margin:0 0 8px;border-radius:12px;object-fit:cover}.demo-floating-control{position:fixed;z-index:190;right:max(14px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);width:52px;height:52px;border:1px solid #e5ba2f;border-radius:50%;background:#ffe36f;color:#725500;box-shadow:0 10px 26px #604b1f35;display:grid;place-items:center;cursor:pointer}.demo-floating-control svg{width:22px}.demo-floating-control.stopped{background:#fff;color:#a47b00}.guide-shell{min-height:100vh;background:#fff;color:#222;padding-bottom:80px;font-family:Noto Sans JP,sans-serif}.guide-shell>header{padding:56px 22px 32px;background:linear-gradient(145deg,#ffe98d,#f6d75f);color:#684e00}.guide-shell>header small{font-size:10px;font-weight:800;letter-spacing:.18em}.guide-shell>header h1{font-size:clamp(27px,8vw,42px);line-height:1.35;margin:9px 0}.guide-shell>header p{font-size:13px;line-height:1.8;margin:0 0 20px}.guide-shell>header a{display:inline-flex;min-height:46px;align-items:center;padding:0 20px;border-radius:23px;background:#fff;color:#8d6900;font-weight:800;box-shadow:0 8px 24px #a97c1f25}.guide-shell>nav{display:flex;gap:8px;padding:14px 16px;overflow-x:auto;border-bottom:1px solid #eee;background:#fff;position:sticky;top:0;z-index:5}.guide-shell>nav a{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:20px;background:#fff9df;color:#9b7500;font-size:10px;font-weight:800}.guide-shell>nav span{color:#444}.guide-intro{margin:20px 16px;padding:17px;border:1px solid #f1dc87;border-radius:14px;background:#fffdf3}.guide-intro>strong{display:block;font-size:13px;margin-bottom:12px}.guide-intro>div{display:flex;align-items:center;justify-content:space-between;gap:5px}.guide-intro span{font-size:10px;font-weight:700}.guide-intro i{color:#d3a710;font-style:normal}.guide-steps{display:grid;gap:18px;padding:0 16px}.guide-steps article{position:relative;padding:20px;border:1px solid #ececec;border-radius:18px;background:#fff;box-shadow:0 8px 28px #6f57100d;scroll-margin-top:74px}.guide-number{color:#d1a30b;font:800 11px monospace;letter-spacing:.12em}.guide-steps h2{font-size:20px;margin:5px 0 7px}.guide-steps>article>p{font-size:13px;color:#666;line-height:1.85;margin-bottom:15px}.guide-shot{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;padding:0;border:1px solid #e6e6e6;border-radius:13px;background:#f7f7f7}.guide-shot img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}.guide-shot span{position:absolute;right:8px;bottom:8px;padding:6px 9px;border-radius:16px;background:#222c;color:#fff;font-size:9px}.guide-steps aside{margin-top:13px;padding:12px;border-left:3px solid #f0c832;background:#fff9e4}.guide-steps aside strong{font-size:11px;color:#8b6800}.guide-steps aside p{font-size:10px;line-height:1.7;margin:3px 0 0}.guide-faq{margin:28px 16px 0;padding:20px;border-radius:17px;background:#fafafa}.guide-faq h2{font-size:19px}.guide-faq details{border-top:1px solid #e7e7e7;padding:13px 0}.guide-faq summary{font-weight:700;font-size:13px}.guide-faq p{font-size:12px;color:#666;line-height:1.8}.guide-modal{position:fixed;inset:0;z-index:100;background:#000c;display:grid;place-items:center;padding:12px}.guide-modal>div{width:min(100%,440px);max-height:94dvh;height:min(94dvh,760px);background:#fff;border-radius:16px;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}.guide-modal header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #eee}.guide-modal header strong{font-size:13px}.guide-modal header button{width:42px;height:42px;border:0;border-radius:50%;background:#fff7d9;color:#856300;font-size:25px}.guide-modal img{width:100%;height:100%;min-height:0;object-fit:contain;background:#f3f3f3}@media(min-width:700px){.guide-shell{max-width:760px;margin:auto;border-inline:1px solid #eee}.guide-steps{grid-template-columns:1fr 1fr}.guide-intro,.guide-faq{margin-inline:16px}}@media(prefers-reduced-motion:reduce){.guide-shell *{scroll-behavior:auto!important}}.guide-home{min-height:100dvh}.guide-category-list{display:grid;gap:14px;padding:22px 16px 100px;max-width:720px;margin:auto}.guide-category-list button{min-height:112px;padding:18px;border:1px solid #ead8e0;border-radius:18px;background:#fff;color:#35272f;text-align:left;display:grid;grid-template-columns:1fr auto;gap:7px 14px;cursor:pointer}.guide-category-list strong{font-size:20px}.guide-category-list span{grid-column:1/2;color:#6f626a;line-height:1.6}.guide-category-list b{grid-column:2;grid-row:1/3;align-self:center;padding:10px 13px;border-radius:10px;background:#fff0f5;color:#9f4167}.guide-back{min-height:44px;margin-bottom:12px;padding:0 14px;border:1px solid #ffffff80;border-radius:12px;background:#ffffff20;color:#fff;font-weight:700;cursor:pointer}.guide-tips{margin:18px 16px;border:1px solid #e6cf72;border-radius:16px;background:#fffdf3;overflow:hidden}.guide-tips summary{min-height:58px;padding:17px 48px 17px 18px;display:flex;align-items:center;position:relative;color:#765900;font-size:15px;font-weight:800;cursor:pointer;list-style:none}.guide-tips summary::-webkit-details-marker{display:none}.guide-tips summary:after{content:"＋";position:absolute;right:18px;font-size:23px;font-weight:400}.guide-tips[open] summary:after{content:"−"}.guide-tips>div{padding:0 18px 20px;border-top:1px solid #ecdda0}.guide-tips ol{margin:17px 0;padding-left:24px}.guide-tips li{margin:0 0 10px;padding-left:3px;color:#544b2f;font-size:13px;line-height:1.75}.guide-tips h3{margin:20px 0 8px;font-size:14px}.guide-tips pre{margin:0;padding:14px;overflow:auto;border-radius:12px;background:#28251d;color:#fff9df;font:12px/1.7 ui-monospace,monospace;white-space:pre-wrap}.guide-tips p{margin:14px 0 0;color:#6c603b;font-size:12px;line-height:1.75}.portal-frame{min-height:100vh}.portal-content{min-height:100vh;padding-bottom:68px;box-sizing:border-box}.portal-menu-button{position:fixed;z-index:70;top:14px;right:14px;width:46px;height:46px;border:1px solid #ead8e0;border-radius:50%;background:#fff;color:#35272f;box-shadow:0 8px 24px #2d202830;display:grid;place-content:center;gap:4px;cursor:pointer}.portal-menu-button span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor}.portal-menu-backdrop{position:fixed;z-index:60;inset:0;border:0;background:#241a2099}.portal-menu{position:fixed;z-index:65;top:70px;right:14px;width:min(300px,calc(100vw - 28px));padding:16px;background:#fff;border-radius:18px;box-shadow:0 18px 50px #21171e45;display:grid;gap:6px}.portal-menu strong{padding:7px 10px 12px}.portal-menu a,.portal-menu>button{min-height:48px;padding:0 13px;border:0;border-radius:12px;background:transparent;color:#35272f;text-decoration:none;font:inherit;display:flex;align-items:center;gap:11px;cursor:pointer}.portal-menu a:hover,.portal-menu a.active{background:#f8eaf0;color:#963e63}.portal-menu>button{margin-top:8px;color:#9a2738;background:#fff0f1}.portal-footer{position:fixed;z-index:50;left:0;right:0;bottom:0;height:68px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #eadce3;display:grid;grid-template-columns:repeat(3,1fr)}.portal-footer a{min-width:0;color:#756872;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px}.portal-footer a.active{color:#9f4167;background:#fff8fa}.portal-login{min-height:100vh;padding:24px;box-sizing:border-box;background:radial-gradient(circle at top,#fff 0,#f9eaf1 45%,#ead3dd);display:grid;place-items:center;color:#35272f}.portal-login section{width:min(420px,100%);padding:34px;border:1px solid #ead6df;border-radius:24px;background:#ffffffed;box-shadow:0 24px 70px #4b29383b}.portal-wordmark{margin:0 0 24px;font-size:22px;font-weight:800}.portal-wordmark small{color:#a23f68}.portal-login h1{margin:0;font-size:28px}.portal-login>section>p:not(.portal-wordmark){color:#6f626a}.portal-login form{display:grid;gap:9px;margin-top:24px}.portal-login label{font-weight:700;margin-top:7px}.portal-login input{min-height:48px;border:1px solid #d8c3cd;border-radius:12px;padding:0 13px;font:inherit}.portal-login input:focus{outline:3px solid #d98aae55;border-color:#a3446c}.portal-login form p{margin:4px 0;color:#9a2738}.portal-login form button{min-height:50px;margin-top:10px;border:0;border-radius:12px;background:#9f4167;color:#fff;font-size:16px;font-weight:800;cursor:pointer}.portal-login form button:disabled{opacity:.5}@media(min-width:900px){.portal-footer{left:50%;transform:translate(-50%);width:420px;border:1px solid #eadce3;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px #3c25301a}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.portal-menu-button{z-index:220;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));display:grid!important;visibility:visible!important}.portal-menu-backdrop{z-index:210}.portal-menu{z-index:215;top:max(70px,calc(env(safe-area-inset-top) + 64px));right:max(14px,env(safe-area-inset-right))}.portal-content{padding-bottom:0}.ad-tabbar{grid-template-columns:repeat(7,1fr)}.cast-shell{box-sizing:border-box;padding-bottom:calc(68px + env(safe-area-inset-bottom))}.cast-top{padding-right:76px}.cast-workspace{height:calc(100vh - 150px - env(safe-area-inset-bottom))}.cast-footer{position:fixed;z-index:50;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(2,1fr);box-sizing:border-box;min-height:68px;padding:4px 4px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #eadce3;background:#fff}.cast-footer button{border:0;border-radius:12px;background:transparent;color:#756872;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.cast-footer button.on{background:#fff0f5;color:#9f4167}@media(max-width:720px){.cast-top{padding-right:72px}.cast-workspace{height:calc(100vh - 150px - env(safe-area-inset-bottom))}}@media(min-width:900px){.cast-footer{right:auto;left:50%;width:420px;transform:translate(-50%);border:1px solid #eadce3;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 -8px 30px #3c25301a}}:root{--chat-yellow:#f6d75f;--chat-yellow-soft:#fff4c8;--chat-yellow-deep:#b48a08;--chat-ink:#171717;--chat-muted:#a6a6a6;--chat-line:#ececec;--chat-paper:#f7f7f7}.cast-shell{height:100dvh;min-height:0;overflow:hidden;background:#fff;color:var(--chat-ink);font-family:Noto Sans JP,sans-serif}.cast-top{height:82px;min-height:82px;padding:12px 76px 12px 22px;background:linear-gradient(135deg,#ffe58b,var(--chat-yellow));color:#fff}.cast-top small{display:none}.cast-top h1{font-size:21px;text-shadow:0 1px 2px #b58d2060}.cast-character span{color:#8e6b00;font-weight:700}.cast-character select{border:1px solid #e3b92f;background:#fffdf3;color:#765900}.cast-workspace{height:calc(100dvh - 150px - env(safe-area-inset-bottom));max-width:960px;background:#fff}.cast-list{border-color:var(--chat-line);background:#fff}.cast-list h2{height:64px;padding:18px 22px;border-bottom:2px solid var(--chat-yellow);font-size:18px}.cast-list>button{position:relative;min-height:96px;padding:17px 18px 14px 86px;border:0;border-bottom:1px solid var(--chat-line);background:#fff;display:block}.cast-list>button:before{content:attr(data-initial);position:absolute;left:20px;top:18px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#f0f0f0;color:#d3aa1f;font-size:20px;font-weight:800;border:3px solid #fff1b5;box-shadow:0 0 0 1px #e8e8e8}.cast-list>button.on,.cast-list>button:hover{background:#fffdf4}.cast-list strong{display:flex;align-items:center;gap:9px;font-size:17px;color:#111}.cast-list strong small{color:#c5c5c5;font-size:11px;font-weight:500}.cast-list span{display:block;margin-top:7px;color:#383838;font-size:13px}.cast-list em{position:absolute;right:16px;top:18px;color:#d0a618;font-size:11px;font-style:normal}.cast-chat{background:var(--chat-paper)}.cast-chat>header{height:72px;padding:10px 72px 10px 12px;border-color:#ebcb55;background:linear-gradient(135deg,#ffe58b,var(--chat-yellow));color:#fff}.cast-chat>header button{background:transparent;color:#fff;font-size:34px}.cast-chat h2{font-size:18px}.cast-chat header small{color:#fff9d9}.cast-messages{padding:22px 18px;background:#f7f7f7}.cast-messages article{gap:7px}.cast-messages article>div{background:#fff;color:#181818;border-radius:4px 20px 20px;box-shadow:0 1px 1px #00000008;padding:11px 15px}.cast-messages article.assistant>div{background:var(--chat-yellow-soft);color:#7a5a00;border-radius:20px 4px 20px 20px}.cast-messages time{color:#aaa;font-size:11px}.cast-sender{color:#aaa}.cast-chat form{padding:10px 12px max(10px,env(safe-area-inset-bottom));border-color:#ddd;background:#fff}.cast-chat form>div{gap:8px;align-items:center}.cast-chat textarea{height:46px;min-height:46px;resize:none;border:1px solid #e1e1e1;border-radius:24px;background:#fff;padding:11px 17px;font-size:16px}.cast-chat form button{min-width:64px;height:46px;border-radius:23px;background:var(--chat-yellow);color:#725500}.cast-chat form .cast-plus{min-width:42px;width:42px;background:transparent;color:#bbb;font-size:31px;font-weight:300}.cast-footer{border-color:#eee!important;background:#fff!important}.cast-footer button{color:#b6b6b6!important}.cast-footer button.on{background:#fffbed!important;color:#d4aa18!important}.demo-shell{background:#fff;color:var(--chat-ink)}.demo-list-view .demo-head{background:linear-gradient(135deg,#ffe58b,var(--chat-yellow));border:0;color:#fff}.demo-list-view .demo-logo,.demo-list-view .demo-head-actions label{color:#9a760a}.demo-list-view .demo-logo i,.demo-list-view .demo-live i{background:#fff;box-shadow:none}.demo-list-view .demo-live{background:#fff7d8;border-color:#e9bd32;color:#a47c00}.demo-list-view .demo-head button{background:#fff9e6;border-color:#e4bb32;color:#816000}.demo-list-view .demo-head select{background:#fffdf5;border-color:#e4bb32;color:#816000}.demo-list-view .demo-grid,.demo-list-view .demo-inbox{background:#fff;border-color:#eee}.demo-list-view .demo-panel-title{border-color:#eee}.demo-list-view .demo-panel-title p{color:#d3a70f}.demo-list-view .demo-panel-title>span{color:#b58900;background:#fff8dc;border-color:#f1d271}.demo-list-view .demo-search{background:#fafafa;border-color:#e7e7e7}.demo-list-view .demo-search input{color:#222}.demo-list-view .demo-chat-list>button{min-height:96px;background:#fff;color:#111;border-color:#eee}.demo-list-view .demo-chat-list>button:hover,.demo-list-view .demo-chat-list>button.selected{background:#fffdf3}.demo-list-view .demo-chat-list>button.selected:before{background:var(--chat-yellow)}.demo-list-view .demo-chat-copy>span{color:#555}.demo-list-view .demo-chat-copy strong small,.demo-list-view .demo-chat-list time{color:#bbb}.demo-list-view .demo-chat-list b{background:#ef3340}.demo-chat-view{background:#f7f7f7}.demo-full-chat{background:#f7f7f7;border-color:#eee}.demo-full-chat>header{background:linear-gradient(135deg,#ffe58b,var(--chat-yellow));border-color:#e9c64b;color:#fff}.demo-full-chat>header p{color:#fff9da}.demo-ai-chip{background:#fff7d6;border-color:#e6b929;color:#977200}.demo-full-messages{background:#f7f7f7}.demo-full-chat .demo-message p{background:#fff;border-color:#f0f0f0;color:#171717;box-shadow:none}.demo-full-chat .demo-message.cast p{background:var(--chat-yellow-soft);border-color:#f6e7a9;color:#745600}.demo-full-chat .demo-message small,.demo-full-chat .demo-message time{color:#aaa}.demo-full-chat>footer{background:#fff;border-color:#ddd}.demo-mobile-status{color:#b58b00}.demo-mobile-status i{background:var(--chat-yellow)}.demo-full-chat .demo-input{background:#fff;border-color:#e1e1e1;border-radius:24px}.demo-full-chat .demo-input textarea{color:#222}.demo-full-chat .demo-input .demo-send{background:var(--chat-yellow);color:#765900;border-radius:50%}.portal-content:has(.demo-shell){background:#fff}.portal-content:has(.demo-shell)+.portal-menu-button{background:#fff7d8;border-color:#e1b62e;color:#9a7300}@media(max-width:720px){.cast-top{height:74px;min-height:74px;padding:10px 66px 10px 14px}.cast-top h1{font-size:18px}.cast-character span{display:none}.cast-character select{max-width:130px}.cast-workspace{height:calc(100dvh - 142px - env(safe-area-inset-bottom))}.cast-list h2{height:58px;padding:16px 20px}.cast-list>button{min-height:90px}.cast-chat{grid-template-rows:66px minmax(0,1fr) auto;height:100%!important}.cast-chat>header{height:66px}.cast-messages{min-height:0}.demo-list-view .demo-head{padding-left:14px}.demo-list-view .demo-grid{border-radius:0;border-inline:0}.demo-list-view .demo-chat-list>button{min-height:90px}.demo-full-chat>header{background:linear-gradient(135deg,#ffe58b,var(--chat-yellow))}.demo-full-chat>footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}}@media(max-width:720px){.cast-shell.settings-open{display:flex;flex-direction:column;height:100dvh;min-height:0}.cast-shell.settings-open>.cast-top{flex:0 0 74px}.cast-shell.settings-open>.cast-alert{flex:0 0 auto;width:calc(100% - 24px);box-sizing:border-box}.cast-shell.settings-open>.cast-prompts{flex:1 1 0;height:auto!important;min-height:0;max-height:none;overflow-y:scroll!important;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:auto;padding-bottom:calc(150px + env(safe-area-inset-bottom))}}
