/* AI Room follows the same quiet, full-width visual language as Messages. */
.character-studio.ai-room{width:100%;max-height:calc(75dvh - 32px);padding:8px 0 56px;color:#1f2020;background:#fff}
.ai-room-header{display:block;padding:18px 4px 22px;border-bottom:1px solid #ededec}
.ai-room-header .eyebrow{margin:0 0 9px;color:#a7a8a8;font-size:10px;letter-spacing:.2em}
.ai-room-header h2,.app-modal:has(#characterStudio:not([hidden])) .ai-room-header h2{font-size:26px!important;font-weight:600!important;letter-spacing:-.045em;line-height:1.15}
.ai-room-header>p{max-width:none;margin:10px 0 0;text-align:left;color:#8b8d8d;font-size:12px;line-height:1.5}
.ai-room-tabs,.app-modal:has(#characterStudio:not([hidden])) .ai-room-tabs{display:flex;gap:0;margin:0 0 26px;padding:0;border-bottom:1px solid #e7e8e8;border-radius:0;background:#fff;box-shadow:none}
.ai-room-tabs button{flex:1;min-height:54px;padding:10px 3px;border-radius:0;color:#919393;background:transparent;font-size:13px;font-weight:500;letter-spacing:-.01em}
.ai-room-tabs button[aria-selected="true"]{position:relative;color:#1f2020;background:transparent;box-shadow:none;font-weight:600}
.ai-room-tabs button[aria-selected="true"]:after{content:"";position:absolute;right:14%;bottom:-1px;left:14%;height:2px;border-radius:2px;background:#252626}
.ai-room-panel{padding:0 2px 20px}
.ai-room-section-head{align-items:center;gap:16px;margin:0 2px 18px}
.ai-room-section-head strong{font-size:17px;font-weight:600;letter-spacing:-.025em}
.ai-room-section-head small{max-width:none;margin-top:6px;color:#8c8e8e;font-size:12px;line-height:1.5}
.ai-room-section-head>button{min-height:38px;padding:8px 13px;border-color:#e7e8e8;border-radius:12px;color:#303131;font-size:12px}
.ai-room-import{position:relative;grid-template-columns:minmax(0,1fr) auto;min-height:120px;gap:12px;padding:22px 18px;border:1px solid #e6e7e7;border-radius:24px;background:#f8f8f7;box-shadow:0 10px 28px rgba(22,23,23,.035)}
.ai-room-import:before{content:"↥";display:grid;place-items:center;width:34px;height:34px;margin-bottom:11px;border:1px solid #e5e6e6;border-radius:11px;background:#fff;color:#383a3a;font:22px/1 var(--font-family)}
.ai-room-import>div{grid-column:1;grid-row:2;min-width:0}
.ai-room-import strong{color:#242626;font-size:15px;font-weight:600;line-height:1.3}
.ai-room-import small{margin-top:6px;color:#8c8e8e;font-size:11px;line-height:1.55}
.ai-room-import button{grid-column:2;grid-row:2;align-self:center;min-width:82px;min-height:40px;padding:8px 12px;border-radius:13px;background:#272929;color:#fff;font-size:12px;font-weight:500}
.ai-room-status{margin:12px 4px 16px;color:#666969;font-size:12px;line-height:1.5}
.ai-room .character-library{margin:20px 0 22px!important;gap:10px!important}
.ai-room .library-char{min-height:72px;padding:12px 45px 12px 14px!important;border:1px solid #ececec!important;border-radius:18px!important;box-shadow:0 5px 18px rgba(20,20,20,.025)}
.ai-room .library-char .char-avatar-letter{width:48px;height:48px;background:#ededeb!important}
.ai-room .library-char strong{font-size:13px!important;font-weight:600!important}
.ai-room .library-char small{font-size:11px!important;margin-top:5px!important}
.ai-room .character-card-form{gap:12px!important;margin:22px 0 0;padding:19px!important;border:1px solid #ebebea!important;border-radius:24px!important;background:#f7f7f6!important}
.ai-room .character-form-title{margin:0 0 3px;color:#303131;font-size:16px;font-weight:600}
.ai-room .studio-avatar-picker{min-height:64px;padding:5px 0!important}
.ai-room .studio-avatar-picker span{width:56px;height:56px}
.ai-room .studio-avatar-picker i{font-size:12px;color:#747676}
.ai-room .character-card-form input,.ai-room .character-card-form select,.ai-room .character-card-form textarea{min-height:46px;padding:12px 14px!important;border:1px solid #e8e9e8!important;border-radius:14px!important;background:#fff!important;color:#282a2a;font-size:16px!important;line-height:1.45!important}
.ai-room .character-card-form textarea{min-height:135px!important}
.ai-room .character-card-form>#saveStudioCharacter{width:100%;min-height:45px;margin:2px 0 0;padding:12px!important;border-radius:14px!important;background:#252727;color:#fff;font-size:13px!important;font-weight:600!important}
.ai-room #studioStatus{font-size:11px;line-height:1.45}
.ai-room-scope{gap:10px;margin:18px 0;padding:17px;border:1px solid #ebebea;border-radius:18px;background:#fff}
.ai-room-scope>label{color:#313333;font-size:13px;font-weight:600}
.ai-room-scope select{min-height:43px;border-radius:12px;font-size:12px}
.ai-room-scope small{font-size:11px;line-height:1.5}
.ai-room-library{gap:12px;margin-top:17px}
.ai-room-library>article{padding:18px;border:1px solid #e7e8e7;border-radius:20px;background:#fff;box-shadow:0 6px 24px rgba(25,26,26,.03)}
.ai-room-library strong{font-size:15px;font-weight:600;line-height:1.4}
.ai-room-library small{font-size:11px;line-height:1.4}
.ai-room-empty{padding:32px 18px;border:1px dashed #dfe0df;border-radius:18px;background:#fafafa;color:#888a8a;font-size:12px}
.ai-room-active{padding:14px 16px;border-left:3px solid #343636;border-radius:0 13px 13px 0;background:#f5f5f4;color:#616363;font-size:12px}
.ai-room-preview{padding:17px;border-radius:16px;background:#f6f6f5}
.ai-room-preview strong{font-size:13px}
.ai-room-preview pre{font-size:11px}
.ai-room-storage-note{margin-top:30px;color:#999b9b;font-size:11px}
.ai-room-review{margin:15px 0 24px;padding:19px;border:1px solid #e3e4e3;border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(23,24,24,.04)}
.ai-room-review>header strong{font-size:16px}
.ai-room-review>header small{font-size:10px}
.ai-room-review>header span,.ai-room-review>label,.ai-room-review-source,.ai-room-review-ai p{font-size:12px}
.ai-room-review-name input{min-height:46px;font-size:16px}
.ai-room-review-name button,.ai-room-review-ai button,.ai-room-review-actions button{min-height:42px;font-size:12px}
.ai-room-review-findings p{padding:11px 12px;border-radius:12px;font-size:12px}
.ai-room-review-result{font-size:11px}
.ai-room-asset>header{gap:12px}
.ai-room-asset>header>button,.ai-room-asset-actions button,.ai-room-add-entry{min-height:36px;padding:8px 11px;border-radius:11px;font-size:12px}
.ai-room-toggle{font-size:12px}
.ai-room-toggle input,.ai-room-checks input{width:17px;height:17px}
.ai-room-asset-actions{flex-wrap:wrap;gap:9px;margin-top:17px;padding-top:15px;border-top:1px solid #eeefee}
.ai-room-asset-actions>label{flex:1 1 125px;font-size:11px}
.ai-room-asset-actions select,.ai-room-asset-actions input{min-height:39px;border-radius:11px;font-size:12px}
.ai-room-entry-list{gap:8px;margin-top:15px}
.ai-room-entry{border-color:#e9eae9;border-radius:14px;background:#fafafa}
.ai-room-entry summary{min-height:48px;padding:12px 13px}
.ai-room-entry summary strong{font-size:13px}
.ai-room-entry summary small{font-size:11px}
.ai-room-entry-fields{gap:12px;padding:15px}
.ai-room-entry-fields>label,.ai-room-entry-options>label{font-size:11px}
.ai-room-entry-fields input:not([type="checkbox"]),.ai-room-entry-fields select,.ai-room-entry-fields textarea{min-height:42px;padding:10px 12px;border-radius:11px;font-size:16px}
.ai-room-entry-fields textarea{min-height:110px}
.ai-room-checks{gap:10px 14px}
.ai-room-checks label{font-size:12px}
.ai-room-add-entry{min-height:42px;margin-top:12px}
.chat-avatar-editor,.person-settings-page{padding:20px;border:1px solid #ededeb;border-radius:22px;background:#fff;text-align:center}
.chat-avatar-preview,.person-settings-avatar{display:grid;place-items:center;width:76px;height:76px;margin:2px auto 12px;overflow:hidden;border-radius:50%;background:#ededeb;color:#5b5c5c;font-size:24px}
.chat-avatar-preview img,.person-settings-avatar img{width:100%;height:100%;object-fit:cover}
.chat-avatar-editor p,.person-settings-page p{margin:8px 0 18px;color:#858787;font-size:12px;line-height:1.5}
.person-settings-page>strong,.person-settings-page>small{display:block}.person-settings-page>strong{font-size:18px}.person-settings-page>small{margin-top:5px;color:#929494;font-size:11px}
.chat-avatar-editor button,.person-settings-page button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:47px;margin-top:9px;padding:11px 15px;border:1px solid #e8e9e8;border-radius:14px;background:#f8f8f7;color:#2c2e2e;text-align:left;font-size:13px}
.chat-avatar-editor #chatAvatarChoose{justify-content:center;border-color:#292b2b;background:#292b2b;color:#fff}
.person-settings-page button i{font-style:normal;color:#a1a3a3}
.message-actions{position:fixed!important;z-index:18000!important;left:50%!important;right:auto!important;bottom:calc(90px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:4px!important;width:min(370px,calc(100vw - 24px))!important;padding:8px!important;border:1px solid #e7e8e7!important;border-radius:19px!important;background:#fff!important;box-shadow:0 14px 42px rgba(19,20,20,.18)!important}
.message-actions[hidden],.message-actions button[hidden]{display:none!important}
.message-actions button{flex:1 0 22%;min-height:35px!important;padding:8px 6px!important;border:0!important;border-radius:10px!important;background:#f4f5f4!important;color:#333535!important;font:500 12px/1.2 var(--font-family)!important}
.message-actions button[data-message-action="delete"],.message-actions button[data-message-action="recall"]{color:#ad4444!important}
.message-selected{outline:2px solid #8d9090;outline-offset:3px}
.chat-room .chat-person #chatAvatar,.chat-room .chat-person #chatName{cursor:pointer}
.private-conversation-tools>button[hidden],#privateOnlySettings .friend-management[hidden],#privateOnlySettings>.builder-label[hidden]{display:none!important}
.private-conversation-tools[hidden]{display:none!important}
.conversation-identity+.private-conversation-tools{margin:0 0 18px}
.favorite-message-list{display:grid;gap:9px}.favorite-message-list article{padding:16px;border:1px solid #e7e8e8;border-radius:16px;background:#fff}.favorite-message-list small{color:#909292;font-size:11px}.favorite-message-list p{margin:8px 0 12px;color:#262828;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.favorite-message-list button{border:0;border-radius:9px;padding:8px 11px;background:#f1f1f0;color:#606262;font-size:11px}
@media(max-width:390px){.ai-room-import{grid-template-columns:1fr;padding:18px}.ai-room-import button{grid-column:1;grid-row:3;width:100%}.ai-room-review-name{flex-wrap:wrap}.ai-room-review-name button{width:100%}}

/* One spacing and type scale for the three import libraries. */
.character-studio.ai-room{width:100%;text-align:left;--room-line:#e5e5e3;--room-radius:16px;--room-ink:#242525;--room-muted:#787b7b}
.ai-room select{color-scheme:light}
.app-modal:has(#characterStudio:not([hidden])) .modal-panel{display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fff;text-align:left}
.app-modal:has(#characterStudio:not([hidden])) .modal-close{flex:0 0 auto}
.app-modal:has(#characterStudio:not([hidden])) #characterStudio{flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow-x:hidden;overflow-y:auto}
.ai-room-header{padding:10px 2px 20px;text-align:left}
.ai-room-header .eyebrow{margin:0 0 8px;font-size:10px;line-height:1.2}
.ai-room-header h2,.app-modal:has(#characterStudio:not([hidden])) .ai-room-header h2{margin:0!important;text-align:left!important;font-size:24px!important;line-height:1.25!important;letter-spacing:-.035em}
.ai-room-header>p{margin:8px 0 0;font-size:13px;line-height:1.55;text-align:left}
.ai-room-tabs,.app-modal:has(#characterStudio:not([hidden])) .ai-room-tabs{gap:0;margin:0 0 23px;padding:0;border-bottom:1px solid var(--room-line);background:#fff;box-shadow:none}
.ai-room-tabs button{min-height:48px;font-size:13px;line-height:1.25}
.ai-room-panel{padding:0 2px 8px}
.ai-room-section-head{align-items:flex-start;gap:12px;margin:0 0 16px;text-align:left}
.ai-room-section-head>div{min-width:0}
.ai-room-section-head strong{font-size:17px;line-height:1.3}
.ai-room-section-head small{margin-top:5px;font-size:12px;line-height:1.5}
.ai-room-section-head>button{min-height:38px;padding:8px 12px;border-radius:12px;font-size:12px;white-space:nowrap}
.ai-room-import{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:92px;padding:17px;border:1px solid var(--room-line);border-radius:var(--room-radius);background:#f8f8f7;box-shadow:none;text-align:left}
.ai-room-import:before{display:none}
.ai-room-import>div{grid-column:1;grid-row:1;min-width:0}
.ai-room-import strong{font-size:15px;line-height:1.3}
.ai-room-import small{margin-top:5px;font-size:11px;line-height:1.5}
.ai-room-import button{grid-column:2;grid-row:1;min-width:82px;min-height:40px;border-radius:11px;font-size:12px}
.ai-room-status{margin:10px 2px 12px;font-size:12px;line-height:1.5;text-align:left}
.ai-room .character-library{gap:10px!important;margin:17px 0!important}
.ai-room #characterLibrary .social-empty{min-height:0;margin:0;padding:17px;border:1px dashed var(--room-line);border-radius:var(--room-radius);background:#fafafa;color:var(--room-muted);font-size:12px;line-height:1.4;text-align:left}
.ai-room .library-char{border-radius:var(--room-radius)!important;box-shadow:none}
.ai-room .library-char strong{font-size:14px!important;line-height:1.35!important}
.ai-room .library-char small{font-size:11px!important;line-height:1.35!important}
.ai-room-create{margin:19px 0 0;border:1px solid var(--room-line);border-radius:var(--room-radius);background:#fff;overflow:hidden}
.ai-room-create>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:15px 17px;list-style:none;cursor:pointer;color:var(--room-ink);font-size:15px;font-weight:600}
.ai-room-create>summary::-webkit-details-marker{display:none}
.ai-room-create>summary small{display:block;margin-top:4px;color:var(--room-muted);font-size:11px;font-weight:400;line-height:1.4}
.ai-room-create>summary i{color:#777;font-size:18px;font-style:normal;transition:transform .2s}
.ai-room-create[open]>summary i{transform:rotate(180deg)}
.ai-room .character-card-form{margin:0;padding:17px!important;border:0!important;border-top:1px solid var(--room-line)!important;border-radius:0!important;background:#fafafa!important}
.ai-room .character-form-title{font-size:14px;line-height:1.3}
.ai-room .character-card-form input,.ai-room .character-card-form select,.ai-room .character-card-form textarea{border-radius:12px!important;font-size:16px!important}
.ai-room .character-card-form textarea{min-height:118px!important}
.ai-room-scope{gap:9px;margin:16px 0;padding:16px;border-radius:var(--room-radius);background:#f8f8f7}
.ai-room-scope>label{font-size:13px;line-height:1.3}
.ai-room-scope select{min-height:44px;border-radius:11px;font-size:13px}
.ai-room-scope small{font-size:11px;line-height:1.5}
.ai-room-library{gap:10px;margin-top:16px}
.ai-room-library>article{padding:0;border-radius:var(--room-radius);box-shadow:none;overflow:hidden}
.ai-room-asset>header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:67px;padding:14px 15px}
.ai-room-asset>header>div{min-width:0}
.ai-room-library strong{font-size:14px;line-height:1.35}
.ai-room-library small{font-size:11px;line-height:1.4}
.ai-room-asset>header>button,.ai-room-asset-actions button,.ai-room-add-entry{min-height:36px;padding:8px 10px;border-radius:10px;font-size:11px;white-space:nowrap}
.ai-room-asset>header>.ai-room-fold{border-color:#d9dad9;background:#fff;color:#333}
.ai-room-asset-body{padding:0 15px 16px;border-top:1px solid var(--room-line);background:#fbfbfa}
.ai-room-asset-actions{align-items:end;gap:10px;margin-top:0;padding:16px 0 14px;border:0;border-bottom:1px solid var(--room-line)}
.ai-room-asset-actions>label{flex:1 1 130px;font-size:11px;line-height:1.4}
.ai-room-asset-actions select,.ai-room-asset-actions input{min-height:42px;margin-top:6px;border-radius:10px;background:#fff;font-size:16px}
.ai-room-entry-list{gap:8px;margin-top:14px}
.ai-room-entry{border-radius:12px;background:#fff}
.ai-room-entry summary{min-height:52px;padding:12px}
.ai-room-entry summary strong{font-size:13px}
.ai-room-entry summary small{font-size:11px}
.ai-room-entry-fields{gap:12px;padding:14px}
.ai-room-entry-fields>label,.ai-room-entry-options>label{font-size:11px;line-height:1.4}
.ai-room-entry-fields input:not([type="checkbox"]),.ai-room-entry-fields select,.ai-room-entry-fields textarea{min-height:43px;margin-top:5px;border-radius:10px;font-size:16px}
.ai-room-entry-fields textarea{min-height:112px}
.ai-room-add-entry{width:100%;min-height:41px;margin-top:11px}
.ai-room-active{margin:14px 0 0;padding:12px 14px;border-radius:0 11px 11px 0;font-size:12px;line-height:1.45}
.ai-room-empty{padding:26px 17px;border-radius:var(--room-radius);font-size:12px;line-height:1.5;text-align:left}
.ai-room-preview{margin-top:15px;padding:0;border:1px solid var(--room-line);border-radius:var(--room-radius);background:#fff;overflow:hidden}
.ai-room-preview summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 15px;list-style:none;cursor:pointer;font-size:13px;font-weight:600}
.ai-room-preview summary::-webkit-details-marker{display:none}
.ai-room-preview summary i{font-size:18px;font-style:normal;transition:transform .2s}
.ai-room-preview[open] summary i{transform:rotate(180deg)}
.ai-room-preview pre{max-height:260px;margin:0;padding:15px;border-top:1px solid var(--room-line);background:#fafafa;font-size:11px;line-height:1.6}
.ai-room-review{margin:14px 0 20px;padding:16px;border-radius:var(--room-radius);box-shadow:none}
.ai-room-review>header strong{font-size:15px}
.ai-room-review-name input{border-radius:11px}
.ai-room-review-name button,.ai-room-review-ai button,.ai-room-review-actions button{border-radius:11px}
.ai-room-storage-note{margin:25px 2px 0;font-size:11px;line-height:1.55}
@media(max-width:390px){.ai-room-import{grid-template-columns:minmax(0,1fr) auto;padding:14px}.ai-room-import button{grid-column:2;grid-row:1;width:auto}.ai-room-asset>header{gap:6px;padding:12px}.ai-room-asset>header>button{padding:7px 8px;font-size:10px}.ai-room-scope>div{grid-template-columns:1fr}}

/* Editorial, line-led language shared with Messages; cards are reserved for the chat itself. */
.ai-room .ai-room-import{min-height:84px;padding:15px 2px;border:0;border-top:1px solid #dedfdd;border-bottom:1px solid #dedfdd;border-radius:0;background:#fff;box-shadow:none}
.ai-room .ai-room-import strong{font-size:15px;font-weight:600}
.ai-room .ai-room-import small{max-width:255px;font-size:11px;line-height:1.55}
.ai-room .ai-room-import button{min-width:74px;min-height:38px;padding:8px 10px;border:1px solid #242525;border-radius:4px;background:#fff;color:#242525;font-size:12px;font-weight:600}
.ai-room .ai-room-import button:active{background:#eee}
.ai-room #characterLibrary .social-empty,.ai-room .ai-room-empty{padding:16px 3px;border:0;border-bottom:1px solid #e4e5e3;border-radius:0;background:#fff;color:#8b8c89;font-size:12px;text-align:left}
.ai-room .character-library{gap:0!important;margin:0 0 16px!important}
.ai-room .library-char{min-height:67px;padding:10px 34px 10px 2px!important;border:0!important;border-bottom:1px solid #e4e5e3!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
.ai-room .library-char .char-avatar-letter{width:44px;height:44px}
.ai-room .library-char strong{font-size:14px!important;font-weight:600!important}
.ai-room .library-char small{font-size:11px!important}
.ai-room .ai-room-scope{margin:15px 0;padding:14px 2px;border:0;border-top:1px solid #e4e5e3;border-bottom:1px solid #e4e5e3;border-radius:0;background:#fff}
.ai-room .ai-room-library>article{border:0;border-top:1px solid #e4e5e3;border-radius:0;background:#fff;box-shadow:none}
.ai-room .ai-room-asset-body{border-top:1px solid #e4e5e3;background:#fff}
.ai-room .ai-room-entry{border:0;border-bottom:1px solid #e4e5e3;border-radius:0;background:#fff}
.ai-room .ai-room-active{border-radius:0;background:#f5f5f3}
.ai-room .ai-room-preview{border-radius:0}
.ai-room .ai-room-asset>header>.ai-room-fold{display:grid;place-items:center;flex:none;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:0;background:transparent;color:#333}
.ai-room .ai-room-fold i,.ai-room-create>summary i,.ai-room-preview summary i,.ai-room-entry>summary i{box-sizing:border-box;display:block;flex:0 0 9px;width:9px!important;height:9px!important;margin:0 3px 4px 0!important;border:0!important;border-right:1.5px solid currentColor!important;border-bottom:1.5px solid currentColor!important;color:#666865!important;font-size:0!important;line-height:0!important;transform:rotate(45deg);transform-origin:50% 50%;transition:transform .2s}
.ai-room .ai-room-fold[aria-expanded="true"] i,.ai-room-create[open]>summary i,.ai-room-preview[open] summary i,.ai-room-entry[open]>summary i{margin-top:5px!important;margin-bottom:0!important;transform:rotate(225deg)}
.ai-room #aiRoomCharacterPanel .ai-room-create{margin:10px 0 0;border:0;border-top:1px solid #dedfdd;border-bottom:1px solid #dedfdd;border-radius:0;background:#fff;overflow:visible}
.ai-room #aiRoomCharacterPanel .ai-room-create>summary{min-height:54px;padding:12px 2px;border:0;color:#292a29;font-size:14px;font-weight:600}
.ai-room #aiRoomCharacterPanel .ai-room-create>summary i{margin-right:12px;color:#5d5e5c;font-size:0}
.ai-room #aiRoomCharacterPanel .character-card-form{display:grid;gap:0!important;margin:0;padding:0 2px 18px!important;border:0!important;border-top:1px solid #e4e5e3!important;border-radius:0!important;background:#fff!important}
.ai-room #aiRoomCharacterPanel .studio-avatar-picker{min-height:72px;padding:12px 0!important;border-bottom:1px solid #e4e5e3!important;border-radius:0!important;background:#fff!important;color:#353635!important;font-size:13px!important}
.ai-room #aiRoomCharacterPanel .studio-avatar-picker span{width:43px;height:43px;background:#ecece9}
.ai-room #aiRoomCharacterPanel .studio-avatar-picker i{font-size:13px;color:#464745}
.ai-room #aiRoomCharacterPanel .studio-field{display:block;min-width:0;padding:13px 0 12px;border-bottom:1px solid #e4e5e3;color:#717371;text-align:left}
.ai-room #aiRoomCharacterPanel .studio-field>span,.ai-room #aiRoomCharacterPanel .studio-gender-field>span{display:block;font-size:11px;font-weight:500;line-height:1.3;letter-spacing:.025em}
.ai-room #aiRoomCharacterPanel .studio-field input,.ai-room #aiRoomCharacterPanel .studio-field textarea{display:block;width:100%;min-height:38px;margin:4px 0 0;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#262725;font-size:16px!important;line-height:1.5!important;outline:none}
.ai-room #aiRoomCharacterPanel .studio-field input::placeholder,.ai-room #aiRoomCharacterPanel .studio-field textarea::placeholder{color:#a2a39f;opacity:1}
.ai-room #aiRoomCharacterPanel .studio-gender-field{min-width:0;padding:13px 0 12px;border-bottom:1px solid #e4e5e3;text-align:left}
.ai-room #aiRoomCharacterPanel .studio-gender-options{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:9px}
.ai-room #aiRoomCharacterPanel .studio-gender-options button{flex:0 1 auto;min-height:35px;padding:6px 2px 5px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#888a87;font-size:13px;font-weight:400;white-space:nowrap}
.ai-room #aiRoomCharacterPanel .studio-gender-options button[aria-pressed="true"]{border-bottom-color:#252624;color:#202120;font-weight:650}
.ai-room #aiRoomCharacterPanel #studioCharGender{display:none!important}
.ai-room #aiRoomCharacterPanel .studio-persona-field textarea{min-height:150px!important;resize:vertical}
.ai-room #aiRoomCharacterPanel #saveStudioCharacter{width:100%;min-height:45px;margin:17px 0 0;padding:10px 14px!important;border:0!important;border-radius:5px!important;background:#242525;color:#fff;font-size:13px!important;font-weight:600!important}
.ai-room #aiRoomCharacterPanel #studioStatus{margin:8px 0 0;color:#6f716e;font-size:11px;line-height:1.5}
.ai-room #aiRoomCharacterPanel .ai-room-review{margin:12px 0 18px;padding:14px 2px 16px;border:0;border-top:1px solid #dadbd9;border-bottom:1px solid #dadbd9;border-radius:0;background:#fff;box-shadow:none;text-align:left}
.ai-room #aiRoomCharacterPanel .ai-room-review-name input{border:0;border-bottom:1px solid #d8dad7;border-radius:0;box-shadow:none}
.ai-room #aiRoomCharacterPanel .ai-room-review-name button,.ai-room #aiRoomCharacterPanel .ai-room-review-ai-actions button{border:1px solid #d3d5d2;border-radius:4px;background:#fff;color:#2d2f2d}
.ai-room #aiRoomCharacterPanel .ai-room-review-ai-actions{display:flex;flex-wrap:wrap;gap:8px}
.ai-room #aiRoomCharacterPanel .ai-room-review-ai-actions button{min-height:38px;padding:8px 10px;font-size:12px}
.ai-room #aiRoomCharacterPanel .ai-room-review-ai-actions #characterAiFill{border-color:#242525;background:#242525;color:#fff}
.ai-room #aiRoomCharacterPanel .ai-room-review-findings p{padding:10px 0;border-bottom:1px solid #ebebea;border-radius:0;background:#fff;color:#666866;font-size:11px}
.ai-room #aiRoomCharacterPanel .ai-room-review-findings p[data-severity="warning"]{color:#826f5e}
.ai-room #aiRoomCharacterPanel .ai-room-review-actions button{border-radius:4px}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill{display:grid;gap:0;margin:16px 0 0;border-top:1px solid #dedfdd}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill[hidden]{display:none!important}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill>strong{margin:15px 0 3px;color:#242525;font-size:14px}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill>small{margin-bottom:8px;color:#81837f;font-size:11px;line-height:1.5}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill label{display:block;padding:10px 0;border-bottom:1px solid #e6e7e5;color:#777a76;font-size:11px}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill input,.ai-room #aiRoomCharacterPanel .ai-room-ai-fill textarea{display:block;width:100%;min-height:36px;margin-top:5px;padding:4px 0;border:0;border-radius:0;background:#fff;color:#282a27;font-size:16px;line-height:1.45;resize:vertical;outline:none}
.ai-room #aiRoomCharacterPanel .ai-room-ai-fill textarea{min-height:85px}
.ai-room #aiRoomCharacterPanel #characterAiFillNote{margin:10px 0;color:#6d6f6a;font-size:11px;line-height:1.5}
.ai-room #aiRoomCharacterPanel .character-ai-request{display:block;margin:12px 0 10px;color:#6f716e;font-size:11px}
.ai-room #aiRoomCharacterPanel .character-ai-request textarea{box-sizing:border-box;width:100%;min-height:76px;margin-top:7px;padding:10px 11px;border:1px solid #dedfdd;border-radius:5px;background:#fafafa;color:#292a29;font:14px/1.55 var(--font-family);resize:vertical;outline:none}
.ai-room #aiRoomCharacterPanel .character-source-review{margin:18px 0 4px;padding:0;border-top:1px solid #dedfdd}
.character-source-review[hidden]{display:none!important}.character-source-review>header{display:flex;align-items:center;justify-content:space-between;padding:15px 1px 10px}.character-source-review>header strong{font-size:14px}.character-source-review>header small{color:#92938f;font-size:10px}
#characterSourceSegments{display:grid;gap:6px}.character-source-segment{display:block;width:100%;padding:10px 11px;border:0;border-left:3px solid #c9c9c5;border-radius:3px;background:#f6f6f4;color:#333;text-align:left}.character-source-segment small,.character-source-segment span,.character-source-segment em{display:block}.character-source-segment small{margin-bottom:5px;color:#777975;font-size:10px}.character-source-segment span{max-height:6.2em;overflow:hidden;font:12px/1.55 var(--font-family);white-space:pre-wrap}.character-source-segment em{margin-top:7px;color:#696b67;font:11px/1.45 var(--font-family)}
.character-source-segment.type-identity,.character-source-segment.type-relationship{border-left-color:#9db8b0;background:#f0f6f4}.character-source-segment.type-background,.character-source-segment.type-personality{border-left-color:#b3acc9;background:#f4f2f8}.character-source-segment.type-speech,.character-source-segment.type-example{border-left-color:#b7c397;background:#f4f7ee}.character-source-segment.type-status,.character-source-segment.type-format{border-left-color:#d2aaa4;background:#faf1f0}
#characterAiRevise{width:100%;min-height:40px;margin:11px 0 0;border:1px solid #2d2e2d;border-radius:4px;background:#fff;color:#292a29;font:600 12px var(--font-family)}
.character-segment-editor{position:fixed;inset:0;z-index:1200;display:none;align-items:flex-end;justify-content:center}.character-segment-editor.open{display:flex}.character-segment-shade{position:absolute;inset:0;border:0;background:rgba(20,20,19,.28);backdrop-filter:blur(3px)}.character-segment-editor>div{position:relative;box-sizing:border-box;width:min(100%,430px);padding:18px 20px max(22px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -14px 40px rgba(0,0,0,.14)}.character-segment-editor header{display:grid;grid-template-columns:1fr auto;gap:3px 12px}.character-segment-editor header small{grid-column:1;color:#8a8c88;font-size:10px}.character-segment-editor header strong{grid-column:1;font-size:18px}.character-segment-editor header button{grid-column:2;grid-row:1/3;width:32px;height:32px;border:0;background:transparent;font-size:24px}.character-segment-editor p{margin:13px 0;color:#666864;font-size:12px;line-height:1.55}.character-segment-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.character-segment-actions button{min-height:38px;border:1px solid #dedfdd;border-radius:4px;background:#fff;color:#686a66}.character-segment-actions button.selected{border-color:#252625;background:#252625;color:#fff}.character-segment-editor label{display:block;margin-top:14px;color:#757773;font-size:11px}.character-segment-editor textarea{box-sizing:border-box;width:100%;margin-top:7px;padding:10px;border:1px solid #dedfdd;border-radius:5px;font:14px/1.5 var(--font-family);resize:vertical}.character-segment-editor #characterSegmentSave{width:100%;min-height:43px;margin-top:12px;border:0;border-radius:5px;background:#242525;color:#fff;font-weight:600}
