:root{color:#242520;background:#171816;font-family:Inter,Pretendard,Noto Sans KR,system-ui,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#171816}button,textarea,input,select{font:inherit}button{min-height:44px}button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b66c17;outline-offset:3px}.app-shell{min-height:100vh;display:grid;grid-template-columns:272px minmax(0,1fr);padding:16px;gap:16px}.identity-rail{min-height:calc(100vh - 32px);display:flex;flex-direction:column;color:#f5f0e7;padding:20px 8px 24px}.wordmark{color:inherit;text-decoration:none;font-family:Georgia,serif;font-size:2.1rem;line-height:1.05;padding:6px 12px 26px;border-bottom:1px solid #393a35}.character-card{margin-top:22px;border:1px solid #8a551d;background:#20211e;min-height:86px;display:flex;align-items:center;gap:14px;padding:16px;border-radius:14px}.character-card strong,.character-card small{display:block}.character-card small{color:#aaa99f;margin-top:4px}.avatar,.message-avatar{display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#e6ddcd;color:#20211e;font-family:Georgia,serif;font-weight:700}.avatar{width:48px;height:48px;font-size:1.25rem}.message-avatar{width:36px;height:36px}.privacy-note{margin:auto 10px 0;color:#d1cec5;display:flex;align-items:flex-start;gap:10px;line-height:1.55;font-size:.84rem}.primary-nav{display:grid;gap:6px;margin:22px 8px}.primary-nav button{border:0;border-radius:9px;background:transparent;color:#d7d3c9;text-align:left;padding:0 14px;cursor:pointer}.primary-nav button[aria-current=page]{color:#fff;background:#38342d;box-shadow:inset 3px 0 #d58a36}.mobile-nav{display:none}.conversation,.workspace-panel,.unlock-panel{min-height:calc(100vh - 32px);background:#f8f5ef;border:1px solid #292a26;border-radius:16px;overflow:hidden}.conversation{display:flex;flex-direction:column}.conversation-header{min-height:92px;padding:18px 28px;border-bottom:1px solid #ddd8ce;display:flex;justify-content:space-between;align-items:center;gap:16px}.conversation-header h1{margin:5px 0 0;font-family:Georgia,serif;font-size:1.35rem;font-weight:500}.emotion-readout{margin:8px 0 0;color:#6d665c;font-size:.8rem;font-weight:700;display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}.emotion-readout span{color:#8a8276;font-weight:600;font-variant-numeric:tabular-nums}.usage-readout{margin-top:6px}.usage-hint{margin:8px 0 0;max-width:36rem}.usage-hint a{color:#8a551d}.memory-section{margin-top:28px;padding-top:22px;border-top:1px solid #ddd6cc}.memory-section h3{margin:0 0 8px;font:500 1.2rem/1.3 Georgia,serif}.memory-add{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin:14px 0}.memory-add label{display:grid;gap:6px}.memory-add button{border:0;border-radius:8px;background:#a96317;color:#fff;padding:0 16px;cursor:pointer}.memory-add button:disabled{background:#b9b4aa;cursor:not-allowed}.memory-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.memory-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #d8d1c6;border-radius:10px;background:#fff;padding:12px 14px}.memory-list li span{min-width:0;overflow-wrap:anywhere;line-height:1.5;color:#2f302c}.memory-item-body{min-width:0;display:grid;gap:4px}.memory-meta{font-size:.82rem;color:#746c61}.memory-list .danger-button{flex:0 0 auto;min-height:36px;padding:0 12px;font-size:.78rem}.memory-empty{border:0!important;background:transparent!important;color:#746c61;justify-content:center}.memory-section code{font-size:.85em;background:#eee7dd;padding:1px 5px;border-radius:4px}.conversation-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.conversation-controls label{display:grid;gap:4px;color:#6d665c;font-size:.72rem;font-weight:800}.conversation-controls select{min-height:40px;min-width:150px;border:1px solid #bdb6aa;border-radius:9px;background:#fff;color:#292a26;padding:7px 10px}.mic-cost-hint{flex-basis:100%;margin:0}.connection-status{display:flex;align-items:center;gap:9px;margin:0;font-size:.88rem;font-weight:700}.status-dot{width:10px;height:10px;border-radius:50%;background:#a96317}.status-connected .status-dot{background:#288b58}.status-error .status-dot,.status-offline .status-dot{background:#a43e32}.status-idle .status-dot{background:#8d887e}.secondary-button,.mic-button{border:1px solid #b7afa1;color:#34352f;background:transparent;border-radius:10px;padding:0 16px;cursor:pointer}.mic-button[aria-pressed=true]{background:#a96317;border-color:#a96317;color:#fff}.panel-error{margin:18px 28px 0;border:1px solid #c9877f;border-radius:9px;background:#fff2ef;color:#7d2921;padding:12px 14px}.message-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:34px clamp(22px,6vw,86px);display:flex;flex-direction:column;gap:24px}.empty-state{max-width:520px;margin:auto;text-align:center;color:#6c675e}.empty-state h2{color:#2d2e29;font-family:Georgia,serif;font-size:clamp(1.8rem,4vw,3.1rem);font-weight:500;margin:8px 0 14px}.eyebrow{color:#9a5b14;font-size:.72rem;letter-spacing:.16em;font-weight:800}.message{display:flex;align-items:flex-start;gap:10px;max-width:min(680px,82%)}.message>div{border:1px solid #ded9cf;background:#fff;border-radius:13px;padding:14px 17px;box-shadow:0 3px 12px #2f2b240a}.message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}.message-user{align-self:flex-end}.message-user>div{background:#eee4d5;border-color:#eee4d5;border-bottom-right-radius:4px}.message-assistant{align-self:flex-start}.streaming-label{display:inline-flex;align-items:center;margin-top:12px;color:#786f62;font-size:.8rem}.streaming-label i{width:7px;height:7px;margin-left:8px;border-radius:50%;background:#a96317;animation:pulse 1.2s infinite}.composer{margin:0 28px 24px;border:1px solid #cec7bb;background:#fff;border-radius:13px;padding:13px 15px}.composer label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.composer textarea{width:100%;resize:none;border:0;color:#292a25;background:transparent;line-height:1.5;outline:0}.composer textarea::placeholder{color:#8d887e}.composer-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:#6f6a61;font-size:.78rem;flex-wrap:wrap}.composer-footer span{margin-right:auto}.composer button[type=submit],.unlock-form button,.character-builder button[type=submit],.primary-action{border:0;border-radius:9px;background:#a96317;color:#fff;padding:0 23px;font-weight:700;cursor:pointer}.composer button:disabled,.unlock-form button:disabled,.character-builder button:disabled{background:#b9b4aa;cursor:not-allowed}.workspace-panel,.unlock-panel{overflow:auto;padding:28px clamp(18px,4vw,48px)}.workspace-header,.unlock-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:22px;border-bottom:1px solid #d9d3c9}.workspace-header h1,.unlock-header h1{margin:4px 0 8px;font:500 clamp(2rem,4vw,3.4rem)/1 Georgia,serif}.workspace-header p:last-child,.unlock-header p:last-child{margin:0;color:#676158}.unlock-form,.character-builder{display:grid;gap:12px;margin:24px 0;max-width:520px}.character-builder{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;padding:16px;border:1px solid #d8d1c6;border-radius:12px;background:#fbfaf7}.unlock-form label,.character-builder label{display:grid;gap:6px;color:#5c574f;font-size:.8rem;font-weight:700}.unlock-form input,.character-builder input,.character-builder textarea,.character-builder select{min-height:44px;border:1px solid #bdb6aa;border-radius:9px;background:#fff;color:#292a26;padding:9px 11px}.character-builder textarea{min-height:88px;resize:vertical}.character-builder .span-2{grid-column:1 / -1}.character-builder button[type=submit]{justify-self:start}.character-layout{display:grid;grid-template-columns:minmax(190px,.32fr) 1fr;gap:16px}.record-list{display:flex;flex-direction:column;gap:8px;max-height:640px;overflow:auto}.record-list>button{display:grid;gap:5px;min-height:92px;text-align:left;border:1px solid #d8d1c6;border-radius:10px;background:#fff;color:#292a26;padding:13px 15px;cursor:pointer}.record-list>button[aria-current=true]{border-color:#a2631c;box-shadow:inset 3px 0 #a2631c}.record-list>button small{color:#736d63}.record-detail{min-width:0;border:1px solid #d8d1c6;border-radius:12px;background:#fff;padding:clamp(18px,3vw,30px)}.record-detail h2{margin:0 0 12px;font:500 1.5rem/1.5 Georgia,serif}.record-detail label{display:grid;gap:6px;margin-top:12px;color:#5c574f;font-size:.8rem;font-weight:700}.record-detail input,.record-detail textarea,.record-detail select{min-height:44px;border:1px solid #bdb6aa;border-radius:9px;background:#fff;color:#292a26;padding:9px 11px}.record-detail textarea{min-height:88px;resize:vertical}.record-detail p{color:#5c574f;line-height:1.6}.action-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.danger-button{border:0;border-radius:8px;background:#8f3028;color:#fff;padding:0 15px;cursor:pointer}.form-hint{grid-column:1 / -1;margin:0;color:#746c61;font-size:.75rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes pulse{50%{opacity:.25;transform:scale(.75)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}@media(max-width:760px){.app-shell{display:block;padding:0}.identity-rail{display:none}.mobile-nav{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:repeat(2,1fr);background:#20211e;padding-top:env(safe-area-inset-top)}.mobile-nav button{border:0;border-bottom:3px solid transparent;background:transparent;color:#d8d3ca}.mobile-nav button[aria-current=page]{color:#fff;border-color:#d38a37}.conversation,.workspace-panel,.unlock-panel{min-height:100vh;border:0;border-radius:0}.conversation-header{min-height:78px;padding:14px 18px}.conversation-controls{align-items:flex-end;flex-direction:column;gap:6px}.message-list{padding:26px 14px;gap:18px}.message{max-width:92%}.composer{position:sticky;bottom:0;margin:0;border-width:1px 0 0;border-radius:0;padding:12px 14px max(12px,env(safe-area-inset-bottom))}.workspace-panel,.unlock-panel{padding:22px 14px}.character-builder,.character-layout{grid-template-columns:1fr}}
