StoryChatBot / frontend /styles.css
cereeenn120's picture
Add group image support to ui
370aad8
Raw History Blame Contribute Delete
24.9 kB
:root {
color-scheme: dark;
--bg: #11110f;
--panel: #191916;
--panel-2: #20201c;
--panel-3: #292923;
--line: #35352e;
--text: #f4f0e8;
--muted: #aaa79e;
--faint: #77756e;
--accent: #dba76f;
--accent-hi: #f0c58e;
--accent-wash: #493a2a;
--danger: #e68b81;
--radius: 18px;
font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen { min-height: 100vh; }
.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.screen-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 17px Manrope, sans-serif; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #17140f; background: var(--accent); font-size: 20px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, "DM Sans", sans-serif; letter-spacing: -.04em; }
h1 { font-size: clamp(35px, 5.3vw, 62px); line-height: 1.04; margin-bottom: 14px; }
h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.12; margin-bottom: 10px; }
.subtle { color: var(--muted); line-height: 1.65; }
.icon-btn, .text-btn, .primary-btn, .secondary-btn, .menu-option, .choice-card, .group-chip, .character-option { border: 0; cursor: pointer; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 11px; position: relative; transition: .16s ease; }
.icon-btn:hover { color: var(--text); background: var(--panel-3); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[data-tooltip]:hover::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 9px); right: 0; width: max-content; max-width: 190px; z-index: 40; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: #292923; color: var(--text); font-size: 11px; font-weight: 500; white-space: nowrap; box-shadow: 0 7px 24px #0008; }
.text-btn { padding: 11px 15px; border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 11px; font-weight: 600; transition: .16s ease; }
.text-btn:hover { color: var(--text); border-color: #626055; background: var(--panel); }
.primary-btn { padding: 13px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #18140e; background: var(--accent); border-radius: 12px; font-weight: 700; box-shadow: 0 7px 24px #b2793a26; transition: .16s ease; }
.primary-btn:hover { background: var(--accent-hi); transform: translateY(-1px); }
.primary-btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.secondary-btn { padding: 12px 16px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.secondary-btn:hover { background: var(--panel-3); }
.button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.button-row.end { justify-content: flex-end; }
.center-stage { min-height: calc(100vh - 100px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 0 90px; }
.home-intro { width: min(680px, 100%); margin-bottom: 36px; text-align: center; }
.home-intro .brand-mark { margin: 0 auto 25px; width: 58px; height: 58px; border-radius: 19px; font-size: 29px; }
.menu-list { width: min(470px, 100%); display: grid; gap: 10px; }
.menu-option { min-height: 66px; display: flex; align-items: center; gap: 16px; padding: 11px 17px; border-radius: 15px; border: 1px solid var(--line); background: linear-gradient(110deg, #1c1c18, #171714); color: var(--text); text-align: left; transition: .18s ease; }
.menu-option:hover { transform: translateX(4px); border-color: #80694d; background: #24221d; }
.menu-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-wash); color: var(--accent-hi); }
.menu-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-copy { flex: 1; font: 700 15px Manrope, sans-serif; }
.menu-caption { display: block; margin-top: 3px; color: var(--faint); font: 400 12px "DM Sans", sans-serif; letter-spacing: 0; }
.chevron { color: var(--faint); font-size: 20px; }
.screen-content { padding: 28px 0 58px; }
.section-heading { margin: 24px 0 28px; max-width: 760px; }
.section-heading p { margin-bottom: 0; }
.library-grid { display: grid; grid-template-columns: 180px 200px minmax(220px, 1fr) minmax(260px, 360px); gap: 15px; min-height: 470px; }
.story-library-grid { grid-template-columns: minmax(190px, 240px) minmax(240px, 320px) minmax(0, 1fr); }
.library-column { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.column-label { padding: 15px 15px 11px; color: var(--faint); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.scroll-list { padding: 0 8px 10px; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.choice-card { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 45px; padding: 8px 10px; text-align: left; border-radius: 10px; color: var(--muted); background: transparent; font-size: 13px; }
.choice-card:hover, .choice-card.selected { color: var(--text); background: var(--panel-3); }
.choice-card.selected { box-shadow: inset 2px 0 var(--accent); }
.category-symbol { width: 28px; height: 28px; display: grid; place-items: center; color: var(--accent-hi); font-size: 17px; }
.character-list { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.character-option { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 10px; text-align: left; color: var(--muted); background: transparent; font-size: 13px; }
.character-option:hover, .character-option.selected { color: var(--text); background: var(--panel-3); }
.mini-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; object-fit: cover; background: #33332c; }
.preview-card { position: relative; min-height: 400px; overflow: hidden; border-radius: 17px; background: #25241f; border: 1px solid var(--line); }
.preview-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.preview-shade { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #11110feF); }
.preview-info { position: absolute; inset: auto 20px 20px; z-index: 1; }
.preview-info h3 { font-size: 24px; margin: 0 0 6px; }
.preview-role { font-size: 12px; color: var(--accent-hi); margin-bottom: 8px; }
.preview-description { color: #dad6cc; font-size: 12px; line-height: 1.55; margin: 0; }
.library-footer { margin-top: 20px; }
.world-preview { justify-content: flex-start; }
.group-preview-image { display: block; width: min(100% - 32px, 270px); max-height: 430px; aspect-ratio: 9 / 16; margin: 2px auto 0; border: 1px solid var(--line); border-radius: 14px; object-fit: cover; background: #22211d; }
.world-card-copy { padding: 10px 16px 20px; }
.world-card-copy strong { font: 700 20px Manrope, sans-serif; }
.world-card-copy p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.role-setup-card { width: min(940px, 100%); margin: 0 auto 40px; }
.role-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.role-choice { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #151512; color: var(--muted); }
.role-choice.selected { border-color: #94734d; box-shadow: inset 0 0 0 1px #94734d55; color: var(--text); }
.role-choice > input { accent-color: var(--accent); }
.role-choice > input[type="radio"] { width: 17px; height: 17px; margin: 0; }
.role-preview-image { width: 100%; height: 250px; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; object-position: top center; background: #22211d; }
.role-choice small { font-size: 12px; }
.role-form-footer { margin-top: 22px; }
.role-choice > span { font-weight: 700; }
.role-choice select, .role-choice input:not([type="radio"]), .role-choice textarea, .story-topic-field textarea { width: 100%; padding: 12px; border: 1px solid #45443c; border-radius: 10px; color: var(--text); background: #12120f; }
.role-choice small { color: var(--muted); line-height: 1.5; }
.role-choice .persona-form { gap: 12px; }
.role-choice .persona-form .field:nth-last-of-type(-n+2) { grid-column: auto; }
.role-choice .persona-form .field:last-child { grid-column: 1 / -1; }
.role-choice textarea, .story-topic-field textarea { min-height: 90px; resize: vertical; }
.story-topic-field { margin: 23px 0; }
.story-topic-field .subtle { font-size: 11px; }
.story-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.story-context-form { display: grid; gap: 18px; }
.story-context-form .story-theme-grid { margin-top: 0; }
.settings-card { width: min(760px, 100%); margin: 35px auto 0; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #1c1c18, #171714); }
.settings-form { display: grid; gap: 23px; margin: 28px 0 35px; }
.field { display: grid; gap: 9px; }
.field label, .field-title { color: #ded9cf; font-size: 13px; font-weight: 700; }
.field-hint { color: var(--faint); font-size: 11px; line-height: 1.45; }
.field select, .field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #45443c; border-radius: 11px; color: var(--text); background: #12120f; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23aaa79e' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field option { color: var(--text); background: #191916; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid #33332d; }
.switch-copy strong { display: block; font-size: 13px; }
.switch-copy span { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { width: 1px; height: 1px; opacity: 0; position: absolute; }
.switch-track { position: absolute; inset: 0; border: 1px solid #55544c; border-radius: 30px; background: #30302a; cursor: pointer; transition: .2s; }
.switch-track::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #aaa79e; transition: .2s; }
.switch input:checked + .switch-track { background: #72583a; border-color: #a68254; }
.switch input:checked + .switch-track::after { transform: translateX(20px); background: #f4d5aa; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.config-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.requests-card { width: min(720px, 100%); margin: 35px auto 0; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.requests-card form { display: grid; gap: 20px; margin-top: 28px; }
.requests-card textarea { min-height: 210px; resize: vertical; }
.requests-note { min-height: 21px; color: var(--accent-hi); font-size: 12px; }
/* Chat room */
.chat-screen { height: 100vh; min-height: 620px; padding: 18px; overflow: hidden; }
.chat-layout { width: min(1480px, 100%); height: calc(100vh - 36px); min-height: 584px; margin: 0 auto; display: grid; grid-template-columns: minmax(210px, 300px) minmax(0, 1fr); gap: 17px; }
.character-sidebar { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.character-rail { position: relative; width: 100%; max-height: calc(100% - 104px); aspect-ratio: 9 / 16; justify-self: center; align-self: center; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 18px 17px; border-radius: 20px; border: 1px solid var(--line); background: #22211d; }
.cast-wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 1fr); gap: 2px; overflow: hidden; background: #27251f; }
.cast-wall img { width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .82; }
.narrator-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border: 1px solid #625645; border-radius: 50%; color: var(--accent-hi); background: var(--accent-wash); font-size: 22px; }
.narrator-avatar { display: grid; place-items: center; color: var(--accent-hi); background: var(--accent-wash); font-size: 18px; }
.rail-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rail-shade { position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #11110feF); }
.rail-title { position: relative; z-index: 1; margin-bottom: 19px; }
.rail-title h2 { font-size: 23px; margin: 0 0 5px; }
.rail-title p { color: #d0cabc; font-size: 12px; line-height: 1.4; margin: 0; }
.rail-actions { display: grid; gap: 8px; }
.rail-config, .rail-exit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px; border-radius: 11px; border: 1px solid #ffffff26; background: #171714; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 700; transition: .16s ease; }
.rail-config:hover, .rail-exit:hover { background: #39342c; border-color: #dba76f66; }
.rail-config svg, .rail-exit svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-hi); stroke-width: 1.8; }
.rail-exit { color: #d2c8ba; }
.rail-exit svg { stroke: #c99a82; }
.chat-panel { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: #161613; }
.chat-header { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 12px 17px; border-bottom: 1px solid var(--line); background: #1b1b17; }
.portrait { width: 43px; height: 43px; flex: 0 0 43px; border: 1px solid #625645; border-radius: 50%; object-fit: cover; background: #33332c; }
.chat-person { flex: 1; min-width: 0; }
.chat-person strong { display: block; font: 700 14px Manrope, sans-serif; }
.chat-person span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; }
.chat-actions { display: flex; gap: 2px; }
.chat-actions .icon-btn { width: 36px; height: 36px; }
.chat-history { min-height: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 23px; padding: 26px clamp(14px, 4vw, 48px); scroll-behavior: smooth; }
.message-row { display: flex; align-items: flex-start; gap: 12px; max-width: 88%; }
.message-row.user { align-self: flex-end; justify-content: flex-end; }
.message-row.assistant { align-self: flex-start; }
.message-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; background: #34332d; border: 1px solid #4b473f; }
.message-content { min-width: 0; }
.message-bubble { padding: 13px 16px; border: 1px solid #37362f; border-radius: 4px 15px 15px 15px; background: #22221d; color: #e8e4dc; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.message-row.user .message-bubble { border-color: #574934; border-radius: 15px 4px 15px 15px; background: #393025; }
.message-bubble p { margin: 0 0 9px; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-tools { display: flex; gap: 2px; margin: 5px 0 0 3px; }
.message-tools .icon-btn { width: 31px; height: 29px; border-radius: 8px; }
.message-tools .icon-btn svg { width: 16px; height: 16px; }
.typing-indicator { color: var(--muted); font-size: 12px; padding: 8px 4px; }
.chat-composer { padding: 13px 17px 16px; border-top: 1px solid var(--line); background: #191916; }
.compose-box { display: flex; align-items: flex-end; gap: 10px; padding: 9px 10px 9px 15px; border: 1px solid #48473f; border-radius: 15px; background: #12120f; }
.compose-box:focus-within { border-color: #9b7951; box-shadow: 0 0 0 3px #dba76f12; }
.compose-box textarea { flex: 1; max-height: 150px; min-height: 28px; padding: 5px 0; border: 0; outline: 0; resize: none; color: var(--text); background: transparent; font-size: 14px; line-height: 1.45; }
.compose-box textarea::placeholder { color: #77756e; }
.send-btn { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 0; border-radius: 11px; color: #1a160f; background: var(--accent); cursor: pointer; }
.send-btn:hover { background: var(--accent-hi); }
.send-btn:disabled { opacity: .45; cursor: not-allowed; }
.send-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.composer-hint { padding: 7px 5px 0; text-align: center; color: var(--faint); font-size: 10px; }
.chat-error { min-height: 16px; padding: 0 4px 7px; color: var(--danger); font-size: 12px; }
.config-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: #080807b8; backdrop-filter: blur(9px); }
.config-window { width: min(820px, 100%); max-height: min(850px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #48463d; border-radius: 20px; background: #191916; box-shadow: 0 25px 90px #000b; }
.config-window-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px 15px; }
.config-window-header h2 { margin: 5px 0 0; font-size: 28px; }
.config-tabs { display: flex; gap: 4px; padding: 0 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.config-tab { position: relative; flex: 0 0 auto; padding: 13px 11px; border: 0; border-radius: 9px 9px 0 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.config-tab:hover { color: var(--text); background: #25251f; }
.config-tab.active { color: var(--accent-hi); background: #25221c; }
.config-tab.active::after { position: absolute; right: 9px; bottom: 0; left: 9px; height: 2px; background: var(--accent); content: ""; }
.config-window-content { min-height: 180px; overflow: auto; padding: 22px 26px; }
.config-tab-panel > .subtle { margin-bottom: 20px; font-size: 13px; }
.config-tab-panel .settings-form { margin: 0; }
.config-window-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 20px; border-top: 1px solid var(--line); }
.persona-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.persona-form .field:nth-last-of-type(-n+2) { grid-column: 1 / -1; }
.persona-form textarea, .memory-form textarea { min-height: 88px; resize: vertical; }
.persona-form button { justify-self: end; grid-column: 1 / -1; }
.persona-form input[readonly] { color: #aaa79e; background: #1c1c18; cursor: default; }
.persona-warning { grid-column: 1 / -1; margin: -4px 0 0; color: var(--accent-hi); font-size: 12px; line-height: 1.55; }
.memory-list { display: grid; gap: 9px; max-height: 285px; overflow: auto; margin-bottom: 20px; }
.memory-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #20201c; }
.memory-item p { grid-column: 1 / -1; margin: 0; color: var(--text); font-size: 13px; line-height: 1.55; }
.memory-item > span { align-self: center; color: var(--faint); font-size: 10px; text-transform: capitalize; }
.memory-item > div { display: flex; justify-content: flex-end; gap: 6px; }
.memory-item .text-btn { padding: 7px 10px; font-size: 11px; }
.danger-btn { color: var(--danger); }
.memory-form { display: flex; align-items: flex-end; gap: 12px; }
.memory-form .field { flex: 1; }
.memory-form .primary-btn { flex: 0 0 auto; }
.save-load-panel { display: grid; justify-items: start; gap: 16px; }
.save-load-panel > .subtle { margin: 0; }
.upload-field { width: 100%; margin-top: 7px; }
.upload-field input { padding: 10px; }
.settings-tip { color: var(--muted); font-size: 12px; line-height: 1.55; }
#toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; padding: 11px 16px; border: 1px solid #5c5548; border-radius: 12px; color: var(--text); background: #28251f; font-size: 12px; box-shadow: 0 12px 35px #0008; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-note { padding: 14px; color: var(--faint); font-size: 12px; line-height: 1.5; }
@media (max-width: 1000px) {
.library-grid { grid-template-columns: 1fr 1fr; }
.story-library-grid { grid-template-columns: 1fr 1fr; }
.library-column { min-height: 250px; }
.preview-card { grid-column: 1 / -1; min-height: 470px; }
.category-column { grid-column: 1; }
.group-column { grid-column: 2; }
.names-column { grid-column: 1 / -1; min-height: 220px; }
.names-column .character-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.preview-card { grid-row: auto; }
}
@media (max-width: 680px) {
.shell { width: min(100% - 30px, 540px); }
.screen-top { padding: 17px 0; }
.center-stage { min-height: calc(100svh - 70px); padding: 25px 0 55px; }
.menu-option { min-height: 62px; }
.library-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
.role-choice-grid { grid-template-columns: 1fr; }
.story-theme-grid { grid-template-columns: 1fr; }
.role-setup-card { margin-bottom: 25px; }
.library-column { min-height: 215px; }
.names-column { min-height: 225px; }
.names-column .character-list { grid-template-columns: 1fr; }
.preview-card { min-height: 480px; }
.screen-content { padding-top: 14px; }
.config-actions { position: sticky; bottom: 0; padding: 13px 0 3px; background: #191916; }
.chat-screen { height: 100svh; min-height: 0; padding: 0; }
.chat-layout { height: 100svh; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.character-sidebar { display: flex; flex-direction: row; justify-content: stretch; gap: 7px; padding: 7px 9px; border-bottom: 1px solid var(--line); background: #171714; }
.character-rail { display: none; }
.rail-actions { display: flex; flex: 1; gap: 7px; }
.rail-config, .rail-exit { padding: 9px 7px; font-size: 11px; }
.chat-panel { flex: 1; min-height: 0; border: 0; border-radius: 0; }
.chat-header { min-height: 68px; padding: 9px 10px; }
.chat-actions { gap: 0; }
.chat-actions .icon-btn { width: 32px; height: 34px; }
.chat-actions .icon-btn svg { width: 17px; height: 17px; }
.chat-person span { max-width: 42vw; }
.config-overlay { padding: 10px; }
.config-window { max-height: calc(100svh - 20px); border-radius: 16px; }
.config-window-header { padding: 17px 17px 12px; }
.config-window-header h2 { font-size: 24px; }
.config-tabs { padding: 0 8px; }
.config-tab { padding: 12px 9px; font-size: 11px; }
.config-window-content { padding: 18px 17px; }
.config-window-footer { padding: 12px 17px 15px; }
.persona-form { grid-template-columns: 1fr; }
.persona-form .field:nth-last-of-type(-n+2) { grid-column: auto; }
.memory-form { align-items: stretch; flex-direction: column; }
.memory-form .primary-btn { align-self: flex-end; }
.chat-history { padding: 19px 12px; gap: 17px; }
.message-row { max-width: 96%; gap: 8px; }
.message-avatar { width: 29px; height: 29px; flex-basis: 29px; }
.message-bubble { padding: 11px 13px; font-size: 13px; }
.chat-composer { padding: 9px 10px calc(10px + env(safe-area-inset-bottom)); }
.composer-hint { display: none; }
.icon-btn[data-tooltip]:hover::after { display: none; }
}