:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #fff8fb; background: #24101c; }
* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100vh; min-height: var(--app-viewport-height, 100dvh); overflow-x: clip; background: linear-gradient(180deg, #210d1e 0%, #49203b 50%, #190d20 100%); }
button, textarea { font: inherit; }
.auth-screen { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 3, 16, .48); backdrop-filter: blur(12px); }
.auth-screen[hidden] { display: none; }
.login-card { width: min(100%, 390px); display: grid; gap: 13px; padding: 28px; border: 1px solid rgba(255, 216, 233, .35); border-radius: 25px; background: linear-gradient(145deg, rgba(83, 27, 67, .96), rgba(35, 17, 49, .96)); box-shadow: 0 25px 80px rgba(12, 1, 10, .5); }
.login-card h2 { margin: -4px 0 4px; font-size: 1.55rem; }
.login-card label { display: grid; gap: 6px; color: #ffdce9; font-size: .86rem; }
.login-card input { width: 100%; padding: 11px 12px; color: white; border: 1px solid rgba(255, 211, 230, .32); border-radius: 10px; background: rgba(22, 8, 27, .45); outline-color: #f78ab7; }
.form-error { min-height: 1.2em; margin: 0; color: #ffbac7; font-size: .83rem; }
.auth-note { margin: 0; color: #e8b9ce; font-size: .75rem; }
.app-locked { filter: blur(7px); pointer-events: none; user-select: none; }
.sakura-scene { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(145deg, rgba(72, 19, 57, .35), rgba(13, 12, 34, .55)); }
.sakura-scene.custom-wallpaper { background-image: linear-gradient(145deg, rgba(30, 5, 28, .36), rgba(19, 8, 35, .54)), var(--user-wallpaper); background-size: cover; background-position: center; }
.sakura-scene.custom-wallpaper .sun, .sakura-scene.custom-wallpaper .mountain, .sakura-scene.custom-wallpaper .sakura-tree, .sakura-scene.custom-wallpaper .petals { display: none; }
.sun { position: absolute; top: 7%; right: 15%; width: min(23vw, 270px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 42% 38%, #fff6cd 0 10%, #ffc4d2 42%, #e983ac 72%, #bc466f); opacity: .65; filter: blur(1px); box-shadow: 0 0 80px #ff9fc6; }
.mountain { position: absolute; bottom: 0; width: 85vw; height: 47vh; opacity: .46; clip-path: polygon(0 100%, 45% 23%, 57% 54%, 73% 5%, 100% 100%); }
.mountain-one { left: -18vw; background: linear-gradient(130deg, #260d2d, #7a2d62); }
.mountain-two { right: -25vw; height: 35vh; background: linear-gradient(110deg, #27142d, #5f365f); opacity: .55; transform: scaleX(-1); }
.sakura-tree { position: absolute; left: -85px; bottom: -85px; width: min(48vw, 580px); height: min(72vh, 720px); transform-origin: bottom left; filter: drop-shadow(10px 12px 14px rgba(25, 4, 20, .35)); }
.tree-trunk { position: absolute; left: 23%; bottom: 0; width: 18%; height: 76%; background: linear-gradient(90deg, #250d17, #5b263b 45%, #1d0a13); border-radius: 70% 30% 25% 20%; transform: rotate(-12deg); }
.branch { position: absolute; z-index: 1; height: 11%; background: linear-gradient(#4e2034, #1b0913); border-radius: 100% 0 100% 0; transform-origin: left center; }
.branch-one { left: 29%; bottom: 54%; width: 55%; transform: rotate(-32deg); }
.branch-two { left: 27%; bottom: 35%; width: 53%; transform: rotate(24deg); }
.canopy { position: absolute; border-radius: 48% 52% 41% 59%; background: radial-gradient(circle at 38% 35%, #ffd4e4 0 5%, #f38db6 30%, #bd406f 67%, #611c47); box-shadow: inset -22px -19px 34px rgba(84, 15, 59, .48), 0 0 33px rgba(255, 156, 196, .24); }
.canopy-one { left: 11%; bottom: 49%; width: 72%; height: 37%; transform: rotate(-13deg); }
.canopy-two { left: 34%; bottom: 25%; width: 69%; height: 30%; transform: rotate(13deg); }
.canopy-three { left: -1%; bottom: 33%; width: 56%; height: 30%; transform: rotate(20deg); }
.petals i { position: absolute; left: var(--x); top: -30px; width: var(--size); height: calc(var(--size) * .7); border-radius: 80% 0 80% 0; background: linear-gradient(135deg, #fff1f5, #f18bb5); opacity: .86; animation: fall var(--duration) linear var(--delay) infinite; }
@keyframes fall { 0% { transform: translate3d(0, -20px, 0) rotate(0deg); } 35% { transform: translate3d(55px, 38vh, 0) rotate(220deg); } 70% { transform: translate3d(-45px, 74vh, 0) rotate(460deg); } 100% { transform: translate3d(35px, 108vh, 0) rotate(700deg); } }
.app { position: relative; z-index: 1; width: min(1600px, calc(100% - 32px)); min-height: 100vh; min-height: var(--app-viewport-height, 100dvh); margin: auto; padding: 30px 0 22px; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 13px; }
.chat-layout { min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.history-sidebar, .chat-panel { min-height: 0; border: 1px solid rgba(255, 213, 231, .22); border-radius: 20px; background: rgba(39, 15, 43, .66); box-shadow: 0 15px 40px rgba(23, 2, 15, .22); backdrop-filter: blur(17px); }
.history-sidebar { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.new-chat { min-height: 42px; padding: 8px; font-size: .82rem; }
.history-heading { display: flex; justify-content: space-between; align-items: center; color: #ffe0ed; font-size: .78rem; }.history-heading span { color: #e5a7c1; font-size: .68rem; }
.conversation-list { display: grid; align-content: start; gap: 6px; min-height: 240px; color: #e5b6cc; font-size: .75rem; }
.conversation-row { position: relative; }.conversation-item { display: grid; gap: 4px; width: 100%; padding: 9px 57px 9px 9px; border: 1px solid transparent; border-radius: 11px; color: #ffe9f2; text-align: left; background: rgba(117, 45, 93, .24); box-shadow: none; font-weight: 500; }.conversation-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .77rem; }.conversation-item span { color: #e4aac3; font-size: .65rem; }.conversation-item.selected { border-color: rgba(255, 165, 207, .7); background: rgba(186, 65, 130, .42); }.conversation-actions { position: absolute; top: 50%; right: 5px; display: flex; gap: 3px; transform: translateY(-50%); }.conversation-icon { display: grid; place-items: center; width: 23px; height: 23px; padding: 0; border: 1px solid rgba(255, 218, 235, .28); border-radius: 7px; color: #ffe6f0; background: rgba(49, 15, 43, .56); box-shadow: none; font-size: .78rem; line-height: 1; }.conversation-icon:hover { background: rgba(205, 83, 145, .58); }.conversation-icon.delete:hover { background: rgba(166, 51, 76, .78); }
.history-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #ffd5e5; font-size: .72rem; }.history-pagination button { min-width: 38px; padding: 6px; }
.theme-picker { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 214, 232, .18); color: #ffdce9; font-size: .72rem; font-weight: 800; }.theme-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }.theme-option { width: 100%; min-height: 25px; padding: 0; border: 2px solid transparent; border-radius: 8px; box-shadow: none; }.theme-option.selected { border-color: #fff7fb; box-shadow: 0 0 0 2px rgba(247, 137, 183, .48); }.theme-option[data-theme="violet"] { background: #8e58dc; }.theme-option[data-theme="blue"] { background: #3478d7; }.theme-option[data-theme="teal"] { background: #238e88; }.theme-option[data-theme="green"] { background: #3b9b60; }.theme-option[data-theme="orange"] { background: #d87b32; }.theme-option[data-theme="red"] { background: #c94d5b; }.theme-option[data-theme="rose"] { background: #d46193; }.theme-option[data-theme="black"] { background: #121212; }
.chat-panel { display: grid; grid-template-rows: minmax(390px, 1fr) auto auto auto; gap: 10px; padding: 14px; }
.study-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 0 2px; }
.study-mode button.active { color: #2b142d; background: linear-gradient(135deg, #ffd5e9, #ffb4d7); border-color: transparent; }
.study-diagram-control { display: flex; align-items: center; gap: 6px; color: #f9d5e4; font-size: .76rem; cursor: pointer; }
.study-diagram-control input { accent-color: #ed75ad; }
.study-diagram-control span { color: #e9afc7; }
.admin-personal-mode { display: grid; gap: 8px; padding: 11px 12px; border: 1px solid rgba(255, 191, 221, .28); border-radius: 13px; background: rgba(90, 32, 76, .43); color: #f8cfe0; font-size: .76rem; }
body[data-account-role="user"] .admin-personal-mode { display: none !important; }
.personal-mode-toggle { display: flex; align-items: center; gap: 7px; color: #fff0f6; font-weight: 800; cursor: pointer; }.personal-mode-toggle input { accent-color: #ec76ad; }
.personal-model-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.personal-model-selects[hidden] { display: none; }.personal-model-selects label { display: grid; gap: 5px; color: #f5c8da; }.personal-model-selects select { width: 100%; min-width: 0; padding: 8px; color: #fff3f8; border: 1px solid rgba(255, 211, 230, .3); border-radius: 8px; background: rgba(30, 8, 28, .72); }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 9px; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: .98; margin: 4px 0 7px; letter-spacing: -.055em; text-shadow: 0 3px 17px rgba(69, 6, 44, .55); }
.eyebrow { margin: 0; color: #ffd2e2; letter-spacing: .14em; font-size: .69rem; font-weight: 800; }
.subtitle { margin: 0; color: #f5c7da; font-size: .96rem; }
.header-controls { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.account-actions { display: flex; gap: 8px; align-items: center; }
.account-actions a, .logout { color: #ffe6f0; font-size: .76rem; text-decoration: none; padding: 7px 10px; border: 1px solid rgba(255, 212, 232, .25); border-radius: 999px; background: rgba(59, 20, 49, .5); }
.logout { box-shadow: none; }
.language-chip, .status { border: 1px solid rgba(255, 212, 232, .25); border-radius: 999px; padding: 8px 12px; color: #ffe6f0; background: rgba(59, 20, 49, .5); box-shadow: 0 8px 18px rgba(20, 3, 16, .15); font-size: .78rem; backdrop-filter: blur(10px); white-space: nowrap; }
.status { background: rgba(25, 111, 76, .72); color: #d2ffe9; border-color: transparent; }
.status.offline { background: rgba(140, 47, 59, .8); color: #ffe0e3; }
.header-controls > .status, .account-actions #admin-link { display: none !important; }

:root { --ui-top: #210d1e; --ui-middle: #49203b; --ui-bottom: #190d20; --ui-panel: rgba(39, 15, 43, .66); --ui-panel-deep: rgba(36, 16, 42, .76); --ui-assistant-a: rgba(77, 31, 68, .81); --ui-assistant-b: rgba(42, 20, 54, .83); --ui-user-a: #ed699b; --ui-user-b: #9243bf; --ui-accent-a: #f17da9; --ui-accent-b: #9c64eb; --ui-wallpaper-a: rgba(30, 5, 28, .36); --ui-wallpaper-b: rgba(19, 8, 35, .54); }
body[data-theme="blue"] { --ui-top: #071a36; --ui-middle: #143d73; --ui-bottom: #08172d; --ui-panel: rgba(10, 33, 69, .70); --ui-panel-deep: rgba(9, 29, 60, .80); --ui-assistant-a: rgba(20, 66, 124, .84); --ui-assistant-b: rgba(13, 38, 83, .86); --ui-user-a: #3495d6; --ui-user-b: #4a65d2; --ui-accent-a: #3d9de5; --ui-accent-b: #596ee0; --ui-wallpaper-a: rgba(5, 22, 50, .40); --ui-wallpaper-b: rgba(5, 15, 42, .58); }
body[data-theme="teal"] { --ui-top: #072c2d; --ui-middle: #14585a; --ui-bottom: #092527; --ui-panel: rgba(10, 61, 61, .70); --ui-panel-deep: rgba(8, 50, 52, .80); --ui-assistant-a: rgba(17, 91, 91, .84); --ui-assistant-b: rgba(11, 58, 64, .86); --ui-user-a: #32b3a3; --ui-user-b: #357cbc; --ui-accent-a: #37c0a9; --ui-accent-b: #4083cc; --ui-wallpaper-a: rgba(5, 44, 45, .40); --ui-wallpaper-b: rgba(5, 30, 33, .58); }
body[data-theme="green"] { --ui-top: #102d1b; --ui-middle: #2e6943; --ui-bottom: #102619; --ui-panel: rgba(25, 70, 43, .72); --ui-panel-deep: rgba(20, 57, 36, .82); --ui-assistant-a: rgba(37, 100, 58, .84); --ui-assistant-b: rgba(22, 63, 41, .86); --ui-user-a: #58b869; --ui-user-b: #4d9c91; --ui-accent-a: #61c875; --ui-accent-b: #529ca1; --ui-wallpaper-a: rgba(10, 44, 23, .40); --ui-wallpaper-b: rgba(8, 29, 17, .58); }
body[data-theme="orange"] { --ui-top: #35200c; --ui-middle: #764321; --ui-bottom: #2a160a; --ui-panel: rgba(78, 43, 19, .72); --ui-panel-deep: rgba(62, 34, 16, .82); --ui-assistant-a: rgba(119, 66, 28, .84); --ui-assistant-b: rgba(77, 42, 19, .86); --ui-user-a: #e48b42; --ui-user-b: #be6e56; --ui-accent-a: #f09a4f; --ui-accent-b: #c67158; --ui-wallpaper-a: rgba(56, 30, 7, .40); --ui-wallpaper-b: rgba(38, 20, 6, .58); }
body[data-theme="red"] { --ui-top: #360e19; --ui-middle: #762239; --ui-bottom: #2a0d15; --ui-panel: rgba(79, 18, 36, .72); --ui-panel-deep: rgba(62, 14, 29, .82); --ui-assistant-a: rgba(113, 28, 52, .84); --ui-assistant-b: rgba(71, 18, 36, .86); --ui-user-a: #e45d6d; --ui-user-b: #bd4d72; --ui-accent-a: #ef6677; --ui-accent-b: #c34d78; --ui-wallpaper-a: rgba(54, 8, 22, .40); --ui-wallpaper-b: rgba(36, 6, 15, .58); }
body[data-theme="rose"] { --ui-top: #351225; --ui-middle: #75314f; --ui-bottom: #2a1020; --ui-panel: rgba(78, 23, 53, .72); --ui-panel-deep: rgba(62, 18, 43, .82); --ui-assistant-a: rgba(111, 35, 78, .84); --ui-assistant-b: rgba(71, 22, 56, .86); --ui-user-a: #e36c9f; --ui-user-b: #bd5ab7; --ui-accent-a: #ed79aa; --ui-accent-b: #c267c9; --ui-wallpaper-a: rgba(51, 10, 35, .40); --ui-wallpaper-b: rgba(35, 7, 25, .58); }
body[data-theme="black"] { --ui-top: #050505; --ui-middle: #202020; --ui-bottom: #080808; --ui-panel: rgba(18, 18, 18, .80); --ui-panel-deep: rgba(12, 12, 12, .88); --ui-assistant-a: rgba(45, 45, 45, .90); --ui-assistant-b: rgba(22, 22, 22, .92); --ui-user-a: #3e3e3e; --ui-user-b: #202020; --ui-accent-a: #565656; --ui-accent-b: #292929; --ui-wallpaper-a: rgba(0, 0, 0, .45); --ui-wallpaper-b: rgba(0, 0, 0, .64); }
body { background: linear-gradient(180deg, var(--ui-top) 0%, var(--ui-middle) 50%, var(--ui-bottom) 100%); }.sakura-scene { background: linear-gradient(145deg, var(--ui-wallpaper-a), var(--ui-wallpaper-b)); }.sakura-scene.custom-wallpaper { background-image: linear-gradient(145deg, var(--ui-wallpaper-a), var(--ui-wallpaper-b)), var(--user-wallpaper); }.history-sidebar, .chat-panel { background: var(--ui-panel); }.composer { background: var(--ui-panel-deep); }.assistant { background: linear-gradient(135deg, var(--ui-assistant-a), var(--ui-assistant-b)); }.user { background: linear-gradient(135deg, var(--ui-user-a), var(--ui-user-b)); }button:not(.secondary):not(.conversation-icon):not(.logout):not(.theme-option) { background: linear-gradient(135deg, var(--ui-accent-a), var(--ui-accent-b)); }.conversation-item.selected { background: color-mix(in srgb, var(--ui-accent-a) 48%, transparent); }.conversation-icon:hover { background: color-mix(in srgb, var(--ui-accent-a) 58%, transparent); }
.chat { min-height: 390px; max-height: calc(var(--app-viewport-height, 100dvh) - 222px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 18px 8px 30px; display: flex; flex-direction: column; gap: 13px; scrollbar-color: #e88bb3 transparent; }
.message { position: relative; box-sizing: border-box; min-width: 0; max-width: min(78%, 1080px); padding: 14px 17px; border: 1px solid rgba(255, 221, 235, .13); border-radius: 20px; line-height: 1.55; box-shadow: 0 12px 28px rgba(24, 3, 18, .18); backdrop-filter: blur(14px); }
.message p { white-space: pre-wrap; margin: 0; }
.message-content, .message p { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 .85rem; white-space: normal; }
.message-content h2, .message-content h3, .message-content h4 { margin: 1.15rem 0 .55rem; color: #fff5fa; line-height: 1.25; }
.message-content h2 { font-size: 1.16rem; }.message-content h3 { font-size: 1.02rem; }.message-content h4 { font-size: .94rem; }
.message-content ul { margin: 0 0 .85rem; padding-left: 1.25rem; }.message-content li { margin: .25rem 0; }
.message-content hr { border: 0; border-top: 1px solid rgba(255, 218, 235, .2); margin: 1.15rem 0; }
.message-content code { padding: .08rem .28rem; border-radius: 4px; background: rgba(255, 225, 239, .12); }
.math-display { overflow-x: auto; margin: .7rem 0; padding: .15rem 0; }.math-inline { white-space: nowrap; }
.thinking { position: relative; }.thinking::after { content: ""; display: inline-block; width: .65rem; height: .65rem; margin-left: .45rem; border: 2px solid rgba(255, 232, 242, .42); border-top-color: #fff; border-radius: 50%; vertical-align: -0.03rem; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.assistant { align-self: flex-start; background: linear-gradient(135deg, rgba(77, 31, 68, .81), rgba(42, 20, 54, .83)); border-bottom-left-radius: 5px; }
.user { align-self: flex-end; background: linear-gradient(135deg, rgba(237, 105, 155, .94), rgba(146, 67, 191, .92)); border-bottom-right-radius: 5px; }
.message-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.message-media img, .message-media video { width: min(250px, 100%); max-height: 210px; object-fit: cover; border-radius: 11px; background: #25101e; }
.message-file { display: inline-flex; align-items: center; max-width: 100%; padding: 8px 10px; border: 1px solid rgba(255, 215, 233, .25); border-radius: 10px; background: rgba(44, 14, 41, .48); color: #fff0f7; font-size: .82rem; overflow-wrap: anywhere; }
.message-image-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.reply-context { display: grid; gap: 2px; margin: -3px 0 10px; padding: 6px 9px; border-left: 3px solid #ffc2dd; border-radius: 6px; background: rgba(18, 5, 27, .18); color: #f8d7e5; font-size: .72rem; line-height: 1.32; }.reply-context strong { color: #fff4f8; }.reply-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-reply { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255, 225, 238, .25); border-radius: 9px; color: #fff1f7; background: rgba(39, 12, 37, .5); box-shadow: none; font-size: .85rem; opacity: 0; }.message:hover .message-reply, .message:focus-within .message-reply { opacity: 1; }
.reply-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid rgba(255, 194, 221, .34); border-radius: 13px; background: rgba(69, 23, 65, .78); color: #f9d8e6; font-size: .75rem; }.reply-preview[hidden] { display: none; }.reply-preview div { display: grid; min-width: 0; gap: 2px; }.reply-preview strong { color: #fff3f8; }.reply-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.reply-preview button { flex: 0 0 auto; opacity: 1; }
.composer { display: flex; gap: 10px; padding: 9px; border: 1px solid rgba(255, 213, 231, .25); background: rgba(36, 16, 42, .76); border-radius: 20px; box-shadow: 0 15px 40px rgba(23, 2, 15, .26); backdrop-filter: blur(17px); }
textarea { resize: vertical; flex: 1; min-height: 53px; max-height: 160px; padding: 12px; color: inherit; border: 0; outline: 0; background: transparent; }
textarea::placeholder { color: #e9adc5; }
button { border: 0; border-radius: 13px; padding: 0 18px; color: white; background: linear-gradient(135deg, #f17da9, #9c64eb); box-shadow: 0 7px 17px rgba(111, 51, 157, .25); cursor: pointer; font-weight: 800; }
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; }
.attachment-button { display: grid; place-items: center; align-content: center; min-width: 74px; gap: 2px; border: 1px solid rgba(255, 210, 230, .27); border-radius: 13px; color: #ffe8f1; cursor: pointer; font-size: .78rem; background: rgba(110, 43, 90, .33); }
.attachment-button:hover { background: rgba(196, 85, 141, .45); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; }
.attachment-card { position: relative; display: grid; grid-template-columns: 70px minmax(80px, 160px) 26px; align-items: center; gap: 8px; padding: 5px; border: 1px solid rgba(255, 214, 232, .18); border-radius: 10px; background: rgba(57, 21, 56, .7); color: #ffe2ed; font-size: .75rem; backdrop-filter: blur(10px); }
.attachment-card img, .attachment-card video { width: 70px; height: 50px; object-fit: cover; border-radius: 6px; background: #21101f; }
.attachment-file-icon { display: grid; place-items: center; width: 70px; height: 50px; border-radius: 6px; background: rgba(242, 127, 173, .2); font-size: 1.35rem; }
.attachment-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card button { padding: 0; width: 26px; height: 26px; background: #813d70; }
.hint { margin: -4px 0 0; color: #f5c4d7; font-size: .74rem; text-shadow: 0 1px 4px #2a0a20; }
.actions { display: flex; justify-content: flex-end; align-items: center; min-height: 28px; color: #ffd8e7; font-size: .8rem; }
.share-status { min-height: 1.1em; margin: -3px 0 0; color: #ffd4e6; font-size: .74rem; }.share-status a { color: #fff0f7; }
.secondary { padding: 7px 10px; font-size: .8rem; color: #ffe6ef; background: rgba(60, 18, 50, .61); border: 1px solid rgba(255, 214, 232, .35); box-shadow: none; }
.image-generator { display: grid; gap: 9px; padding-top: 2px; }.image-generator > button { justify-self: start; }.image-generator form { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(255, 213, 231, .2); border-radius: 14px; background: rgba(61, 18, 53, .52); }.image-generator form[hidden] { display: none; }.image-generator label { color: #ffdce9; font-size: .8rem; }.image-generator textarea { min-height: 75px; padding: 10px; border: 1px solid rgba(255, 211, 230, .28); border-radius: 10px; background: rgba(23, 7, 27, .38); }.image-generator form button { min-height: 40px; }.image-status { min-height: 1.1em; margin: 0; color: #f2c6d9; font-size: .74rem; }.generated-image { display: grid; }.generated-image img { width: min(100%, 512px); border: 1px solid rgba(255, 216, 233, .28); border-radius: 14px; box-shadow: 0 14px 32px rgba(14, 2, 12, .25); }.generated-image-actions { display: flex; flex-wrap: wrap; gap: 8px; }.generated-image-actions[hidden] { display: none; }
.presentation-generator { display: grid; gap: 9px; padding-top: 2px; }.presentation-generator > button { justify-self: start; }.presentation-generator form { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(255, 213, 231, .2); border-radius: 14px; background: rgba(61, 18, 53, .52); }.presentation-generator form[hidden] { display: none; }.presentation-generator label { display: grid; gap: 6px; color: #ffdce9; font-size: .8rem; }.presentation-generator textarea, .presentation-generator select { min-height: 42px; padding: 10px; color: inherit; border: 1px solid rgba(255, 211, 230, .28); border-radius: 10px; background: rgba(23, 7, 27, .38); }.presentation-generator select { width: min(100%, 220px); }.presentation-generator form button { min-height: 40px; }.small-generator-note { margin: 0; color: #f2c6d9; font-size: .74rem; line-height: 1.4; }.presentation-generator .image-status a { color: #fff1f7; font-weight: 800; }
.shared-page { display: grid; place-items: start center; padding: 28px 16px; }.shared-chat-shell { width: min(820px, 100%); padding: 26px; border: 1px solid rgba(255, 213, 231, .24); border-radius: 24px; background: rgba(47, 16, 43, .78); box-shadow: 0 22px 55px rgba(19, 2, 14, .34); backdrop-filter: blur(16px); }.shared-chat-shell h1 { font-size: clamp(1.65rem, 5vw, 2.6rem); margin-top: 7px; }.shared-meta { margin: 0 0 21px; color: #f2c5d8; font-size: .84rem; }.shared-chat { display: flex; flex-direction: column; gap: 12px; }.shared-chat .message { max-width: 88%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 720px) { .app { width: min(100% - 20px, 940px); min-height: var(--app-viewport-height, 100dvh); padding-top: 16px; gap: 10px; } header { align-items: flex-start; flex-direction: column; gap: 10px; } .header-controls { width: 100%; align-items: flex-start; flex-direction: row; flex-wrap: wrap; } .account-actions { flex-wrap: wrap; } .chat-layout { grid-template-columns: minmax(0, 1fr); }.history-sidebar { order: 2; }.chat-panel { min-width: 0; grid-template-rows: auto auto auto auto; padding: 10px; }.chat { box-sizing: border-box; height: min(52dvh, 540px); min-height: 320px; max-height: none; padding: 12px 3px 18px; }.conversation-list { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }.message { width: fit-content; max-width: 100%; padding: 13px 14px; }.message-content, .message p { max-width: 100%; }.message-media img, .message-media video { width: min(100%, 270px); max-height: 320px; }.message-reply { opacity: 1; }.personal-model-selects { grid-template-columns: 1fr; }.composer { align-items: stretch; flex-direction: column; }.composer button, .attachment-button { min-height: 43px; } .sakura-tree { left: -180px; opacity: .7; } .sun { right: -4%; } .history-sidebar, .chat-panel, .composer, .message { backdrop-filter: none; } }
@media (max-height: 600px) and (orientation: landscape) { .app { width: min(100% - 24px, 1100px); min-height: var(--app-viewport-height, 100dvh); padding-top: 10px; padding-bottom: 10px; }.chat-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 10px; }.history-sidebar { order: 0; max-height: calc(var(--app-viewport-height, 100dvh) - 20px); overflow: auto; }.chat { height: calc(var(--app-viewport-height, 100dvh) - 210px); min-height: 160px; }.chat-panel { padding: 10px; } header > div:first-child { display: none; }.header-controls { justify-content: space-between; }.conversation-list { grid-template-columns: 1fr; } }
