:root {
  --bg: #fffefc;
  --side: #f8f7f4;
  --paper: #fffcf6;
  --ink: #2d2c29;
  --muted: #8c8a84;
  --line: #eeeae3;
  --line-dark: #e5dfd5;
  --red: #c83d2f;
  --red-dark: #ad2c20;
  --red-wash: #fdf0eb;
  --gold: #b78a4a;
  --sidebar-width: 270px;
  --shadow: 0 5px 24px rgba(57, 46, 28, .075);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(200, 61, 47, .27); outline-offset: 2px; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.icon-library { display: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.tiny { width: 15px; height: 15px; }
.app-shell { display: flex; height: 100dvh; min-height: 0; width: 100%; overflow: hidden; }

/* Navigation: deliberately familiar layout, with original OiPenAI branding. */
.sidebar { display: flex; flex-direction: column; flex: 0 0 var(--sidebar-width); min-width: 0; background: var(--side); border-right: 1px solid #f0ede7; padding: 23px 14px 17px; z-index: 20; transition: margin-left .24s ease, transform .24s ease; }
.app-shell.sidebar-closed .sidebar { margin-left: calc(-1 * var(--sidebar-width)); }
.brand-line { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 19px 7px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-home { border: 0; background: transparent; color: inherit; padding: 4px 7px; margin: -4px -7px; border-radius: 12px; text-align: left; transition: background .15s ease; }
.brand-home:hover { background: #eee9e1; }
.brand-home:active { background: #e9ded2; }
.brand-stamp { display: grid; place-items: center; width: 35px; height: 35px; flex: none; color: #fff6ed; background: var(--red); border-radius: 11px; font-family: Georgia, "Songti SC", serif; font-weight: bold; font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.9px; }
.brand-name span { color: var(--red); }
.icon-btn { border: 0; background: transparent; color: #75736e; height: 36px; width: 36px; border-radius: 11px; display: inline-grid; place-items: center; }
.icon-btn:hover, .tool-icon:hover { color: var(--ink); background: #ebe8e1; }
.sidebar-primary { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 11px; border-radius: 12px; padding: 0 12px; color: #35322e; background: #fffdfa; border: 1px solid #eee9df; font-size: 13.5px; font-weight: 620; text-align: left; box-shadow: 0 1px 3px rgba(70,55,30,.035); }
.sidebar-primary:hover { background: #fff4ed; border-color: #efddcf; }
.sidebar-primary .icon { width: 18px; height: 18px; }
.keycap { color: #aaa59f; margin-left: auto; font-size: 11px; letter-spacing: -.5px; }
.search-wrap { min-height: 42px; margin: 12px 1px 0; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 10px; color: #8d8b84; }
.search-wrap:focus-within, .search-wrap:hover { background: #f0ede7; }
.search-wrap .icon { width: 18px; height: 18px; }
.search-wrap input { background: transparent; border: none; outline: none; min-width: 0; width: 100%; color: var(--ink); font-size: 13px; }
.search-wrap input::placeholder { color: #87847e; }
.search-wrap input::-webkit-search-cancel-button { cursor: pointer; }
.sidebar-history { flex: 1; min-height: 0; overflow: auto; margin: 25px -5px 12px 0; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #dedbd5 transparent; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 0 11px; color: #716b63; font-size: 11px; font-weight: 650; margin-bottom: 11px; }
.section-decoration { color: #c0ada0; font-size: 17px; }
.chat-list { display: grid; gap: 4px; }
.history-item { display: flex; gap: 4px; width: 100%; min-width: 0; border-radius: 10px; align-items: center; padding: 1px 3px 1px 0; }
.history-item:hover { background: #efebe5; }
.history-item.current { background: #eee8df; }
.history-open { flex: 1; min-width: 0; border: 0; text-align: left; background: transparent; color: #58544e; font-size: 12.5px; padding: 10px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item.current .history-open { color: #2c2a27; font-weight: 640; }
.history-delete { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #a6a19b; background: transparent; opacity: 0; }
.history-item:hover .history-delete, .history-delete:focus-visible { opacity: 1; }
.history-delete:hover { color: var(--red); background: #fbe5dd; }
.history-delete .icon { width: 15px; height: 15px; }
.no-chats { display: flex; padding: 14px 12px; flex-direction: column; align-items: flex-start; gap: 7px; color: #77736f; font-size: 12px; }
.no-chats-icon { font-size: 22px; margin-bottom: 5px; }
.no-chats small { line-height: 1.6; color: #aaa49c; }
.sidebar-bottom { display: grid; gap: 18px; }
.daily-note { border: 1px solid #e9e1d4; background: #f7f2e8; border-radius: 12px; padding: 14px 13px 12px; }
.note-heading { font-size: 11px; font-weight: 720; color: #856a4c; letter-spacing: .2px; margin-bottom: 10px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c69550; margin-right: 5px; vertical-align: middle; }
.daily-note p { color: #83715f; font-size: 11px; margin: 5px 0; }
.daily-note b { font-weight: 580; color: #6c5949; }
.profile-row { padding: 8px 5px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.profile-avatar { width: 35px; height: 35px; background: #eddcc6; color: #76583c; display: grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: bold; }
.profile-name { display: grid; gap: 3px; }
.profile-name strong { font-size: 12.5px; }
.profile-name small { font-size: 10.5px; color: #a29b91; }
.profile-emoji { margin-left: auto; font-size: 17px; }

.main-panel { background: var(--bg); flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.topbar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 28px; position: relative; z-index: 10; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.desktop-open { display: none; }
.sidebar-closed .desktop-open { display: inline-grid; }
.mobile-menu { display: none; }
.model-switcher-wrap { position: relative; }
.model-switcher { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 7px 9px; border-radius: 10px; font-size: 17px; font-weight: 670; letter-spacing: -.5px; color: #353331; }
.model-switcher:hover, .model-switcher[aria-expanded="true"] { background: #f5f2ec; }
.model-name { color: #8d8983; font-weight: 550; }
.model-switcher .icon { color: #7b7874; margin-left: 2px; }
.satire-tag { background: #fff8f5; color: #bd5548; border: 1px solid #f2dfd9; border-radius: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; font-size: 10px; font-weight: 760; letter-spacing: .5px; white-space: nowrap; }
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: #cf6557; }
.export-btn { color: #8a8781; }
.popover { position: absolute; box-shadow: 0 12px 40px rgba(40,27,17,.14); border: 1px solid #eee5da; z-index: 40; background: #fffdf9; border-radius: 16px; padding: 9px; }
.model-menu { left: 0; top: 45px; width: min(287px, calc(100vw - 80px)); max-height: min(390px, 70dvh); overflow-y: auto; }
.menu-eyebrow { color: #a0958b; font-size: 11px; padding: 9px 11px 10px; font-weight: 650; }
.model-option { width: 100%; border: 0; background: transparent; border-radius: 10px; padding: 10px; display: flex; align-items: center; gap: 11px; text-align: left; }
.model-option:hover, .model-option.active { background: #f9f2eb; }
.mode-emoji { width: 32px; height: 32px; border-radius: 8px; background: #f2ebe0; display: grid; place-items: center; font-size: 17px; }
.model-option span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.model-option strong { font-size: 13px; font-weight: 710; color: #3e3935; }
.model-option small { font-size: 11px; color: #90877e; }
.selected-check { color: var(--red); width: 16px; height: 16px; opacity: 0; }
.model-option.active .selected-check { opacity: 1; }
.menu-footnote { color: #a7a09a; font-size: 10px; margin: 12px 10px 5px; }

.content-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #ddd7cf transparent; display: flex; flex-direction: column; }
.welcome { width: min(100%, 850px); margin: auto; padding: 28px 32px 35px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: none; }
.welcome-art { position: relative; height: 124px; width: 160px; margin-bottom: 14px; display: grid; place-items: center; }
.hero-seal { width: 87px; height: 87px; border: 4px double rgba(255,245,234,.86); outline: 1px solid #bd3528; outline-offset: 4px; transform: rotate(-9deg); background: var(--red); border-radius: 21px; display: grid; place-items: center; font-size: 56px; font-weight: 820; color: #fff8e9; font-family: Georgia, "Songti SC", "STSong", serif; box-shadow: 0 14px 25px rgba(193,57,39,.17); z-index: 2; }
.orbit { position: absolute; border: 1px solid #f3dfd3; border-radius: 50%; }
.orbit-one { width: 139px; height: 80px; transform: rotate(29deg); }
.orbit-two { width: 130px; height: 83px; transform: rotate(-38deg); }
.art-glint { position: absolute; z-index: 3; color: var(--gold); }
.art-glint-a { top: 2px; right: 2px; font-size: 20px; }
.art-glint-b { bottom: 4px; left: 4px; color: #d77d63; font-size: 17px; }
.welcome-eyebrow { font-size: 11.5px; color: #b48b68; font-weight: 750; letter-spacing: 3px; margin-bottom: 13px; }
.welcome h1 { font-weight: 740; font-size: clamp(28px, 3.3vw, 43px); letter-spacing: -1.8px; line-height: 1.45; margin: 0 0 12px; }
.red-brush { color: var(--red); position: relative; display: inline-block; }
.red-brush::after { content: ""; position: absolute; left: 3%; right: 7%; height: 6px; border-radius: 100%; bottom: 0; background: rgba(210,87,62,.24); transform: rotate(-6deg); }
.welcome-subtitle { font-size: 13.5px; color: #85807b; line-height: 1.85; margin: 0 0 41px; }
.mobile-break { display: none; }
.suggestion-grid { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 690px); gap: 12px; }
.suggestion { min-width: 0; min-height: 89px; background: #fffdf9; border: 1px solid #ede8e1; box-shadow: 0 2px 7px rgba(67,50,33,.02); border-radius: 15px; padding: 16px 13px; text-align: left; display: flex; align-items: center; gap: 12px; position: relative; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.suggestion:hover { transform: translateY(-2px); background: #fffcf7; border-color: #e5c8b9; box-shadow: 0 8px 20px rgba(72,43,22,.075); }
.suggestion-symbol { background: #f7f0e8; border: 1px solid #f4eee7; border-radius: 11px; width: 42px; height: 42px; font-size: 23px; display: grid; place-items: center; flex: none; }
.suggestion-body { min-width: 0; display: grid; gap: 7px; }
.suggestion-body strong { font-size: 13px; font-weight: 670; color: #3a3632; }
.suggestion-body small { font-size: 11px; color: #99928b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-arrow { margin-left: auto; font-size: 16px; color: #c5b9ad; align-self: start; }
.fake-trending { margin-top: 28px; display: flex; align-items: center; gap: 11px; justify-content: center; flex-wrap: wrap; color: #a0978c; font-size: 11px; }
.trending-flame { color: var(--red); font-size: 16px; }
.trending-topic { color: #746d65; }
.trending-rank { color: #fff; background: #e17e60; border-radius: 4px; padding: 2px 4px; font-size: 9px; font-weight: bold; }

.conversation { flex: 1; width: min(100%, 820px); margin: 0 auto; padding: 31px 30px 40px; }
.messages { display: flex; flex-direction: column; gap: 28px; }
.message { display: flex; gap: 13px; align-items: flex-start; animation: rise-in .24s ease both; }
.message.user { justify-content: flex-end; }
.message.user .message-content { background: #f4f1eb; border: 1px solid #f1ede7; border-radius: 19px 19px 5px 19px; padding: 12px 17px; max-width: min(82%, 610px); white-space: pre-wrap; line-height: 1.8; font-size: 14px; overflow-wrap: anywhere; }
.bot-avatar { width: 31px; height: 31px; min-width: 31px; border-radius: 10px; display: grid; place-items: center; background: var(--red); font-family: Georgia, "Songti SC", serif; color: #fff9ef; font-size: 18px; margin-top: 2px; }
.message.assistant .message-column { flex: 1; min-width: 0; }
.message.assistant .message-content { white-space: pre-wrap; line-height: 1.95; font-size: 14px; overflow-wrap: anywhere; color: #393630; }
.bot-name { font-size: 12px; font-weight: 760; color: #6c6156; margin: 0 0 9px; }
.bot-name .mini-model { font-weight: 520; color: #c0936f; font-size: 10px; margin-left: 8px; }
.message-actions { display: flex; align-items: center; gap: 4px; padding-top: 8px; }
.message-action { min-width: 40px; min-height: 40px; border: 0; background: transparent; color: #aaa49b; border-radius: 8px; display: grid; place-items: center; }
.message-action .icon { width: 16px; height: 16px; }
.message-action:hover { color: #6e655a; background: #f2eee8; }
.typing-indicator { display: flex; gap: 12px; align-items: center; margin-top: 26px; padding-bottom: 8px; }
.typing-dots { display: flex; align-items: center; gap: 4px; }
.typing-dots span { display: block; width: 6px; height: 6px; background: var(--red); opacity: .45; border-radius: 50%; animation: bounce 1.1s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
.typing-label { font-size: 11px; color: #68625b; }

.composer-area { position: relative; z-index: 5; padding: 12px 26px 14px; background: linear-gradient(180deg, rgba(255,254,252,0), #fffefc 18%, #fffefc); flex: none; }
.composer-container { margin: 0 auto; max-width: 795px; }
.composer { border: 1px solid #e7e1d8; background: #fffefa; border-radius: 21px; box-shadow: var(--shadow), 0 1px 3px rgba(45,34,21,.03); padding: 14px 15px 11px; transition: border-color .17s ease, box-shadow .17s ease; }
.composer:focus-within { border-color: #d9b7a6; box-shadow: 0 5px 27px rgba(112,67,37,.09); }
#message-input { width: 100%; display: block; min-height: 35px; max-height: 166px; resize: none; color: #36322e; border: 0; background: transparent; outline: 0; overflow-y: auto; font-size: 13.5px; padding: 0 2px; line-height: 1.75; }
#message-input::placeholder { color: #aaa59f; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.composer-tools { display: flex; align-items: center; gap: 11px; }
.quick-actions-wrap { position: relative; }
.tool-icon { border: 1px solid #eee9e3; background: #fffdfa; border-radius: 50%; display: grid; place-items: center; color: #6c6862; width: 42px; height: 42px; }
.tool-icon .icon { width: 18px; height: 18px; }
.quick-actions-menu { width: 235px; left: -4px; bottom: 42px; }
.quick-actions-menu button { width: 100%; border: 0; background: transparent; text-align: left; font-size: 12px; color: #595149; padding: 11px 9px; border-radius: 8px; }
.quick-actions-menu button:hover { background: #f9f1e9; }
.thinking-toggle { display: flex; align-items: center; gap: 5px; color: #7e766b; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 6px 7px; font-size: 11.5px; font-weight: 540; }
.thinking-toggle .icon { width: 15px; height: 15px; }
.thinking-toggle:hover, .thinking-toggle[aria-pressed="true"] { color: var(--red-dark); background: #fdf0eb; border-color: #f8e4d9; }
.composer-context { color: #b4aea8; font-size: 10.5px; }
.send-button { border: 0; background: var(--red); border-radius: 11px; width: 42px; height: 42px; display: grid; place-items: center; color: white; transition: background .15s, transform .15s; }
.send-button:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); }
.send-button:disabled { background: #e6e1da; color: #b7b1ab; }
.send-button .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.disclaimer { margin: 10px 0 0; text-align: center; color: #68625b; font-size: 12px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 145px; transform: translateX(-50%) translateY(8px); color: #fff; background: #3c3834; padding: 11px 16px; font-size: 12px; box-shadow: 0 10px 28px rgba(15,15,14,.16); border-radius: 10px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 100; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 30px); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.sidebar-backdrop { display: none; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .3; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1400px) { .welcome { transform: translateY(-12px); } }
@media (max-height: 740px) and (min-width: 701px) { .welcome { padding-top: 10px; padding-bottom: 12px; } .welcome-art { height: 96px; margin-bottom: 7px; transform: scale(.82); } .welcome-subtitle { margin-bottom: 25px; } .suggestion { min-height: 72px; padding: 11px; } .fake-trending { margin-top: 15px; } }
@media (max-width: 920px) { :root { --sidebar-width: 242px; } .sidebar { padding-inline: 10px; } .satire-tag { letter-spacing: 0; } .composer-context { display: none; } .welcome { padding-inline: 22px; } }
@media (max-width: 700px) {
  body { overflow: hidden; }
  .app-shell { min-height: 0; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(82vw, 310px); z-index: 32; transform: translateX(-105%); margin-left: 0 !important; box-shadow: none; }
  .app-shell.sidebar-open-mobile .sidebar { transform: translateX(0); box-shadow: 12px 0 40px rgba(35,28,20,.12); }
  .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(37,34,31,.25); backdrop-filter: blur(1px); z-index: 31; }
  .mobile-menu { display: inline-grid; }
  .desktop-open, .sidebar-closed .desktop-open { display: none; }
  .topbar { height: 61px; padding: 0 16px; }
  .topbar-left { gap: 3px; }
  .model-switcher { font-size: 15px; padding: 7px 4px; gap: 5px; }
  .model-name { font-size: 13px; }
  .satire-tag { font-size: 9px; gap: 0; padding: 5px 7px; letter-spacing: -.15px; }
  .tag-dot { display: none; }
  .export-btn { width: 32px; }
  .topbar-right { gap: 10px; }
  .welcome { margin: auto; padding: 14px 18px 26px; }
  .welcome-art { transform: scale(.82); margin-bottom: 0; height: 104px; }
  .welcome-eyebrow { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .welcome h1 { font-size: clamp(25px, 6.5vw, 34px); letter-spacing: -.9px; margin-bottom: 9px; }
  .welcome-subtitle { font-size: 12px; margin-bottom: 27px; }
  .suggestion-grid { gap: 9px; }
  .suggestion { min-height: 76px; padding: 11px 10px; gap: 8px; border-radius: 12px; }
  .suggestion-symbol { width: 31px; height: 31px; font-size: 18px; border-radius: 8px; }
  .suggestion-body strong { font-size: 11px; line-height: 1.35; }
  .suggestion-body small { display: none; }
  .suggestion-arrow { font-size: 12px; }
  .fake-trending { margin-top: 19px; font-size: 10px; gap: 7px; }
  .conversation { padding: 20px 18px 36px; }
  .message.user .message-content { font-size: 13px; }
  .message.assistant .message-content { font-size: 13px; }
  .composer-area { padding: 8px 12px max(11px, env(safe-area-inset-bottom)); }
  .composer { border-radius: 18px; padding: 13px 11px 10px; }
  .disclaimer { font-size: 11px; margin-top: 7px; }
  .toast { bottom: 137px; }
}
@media (max-width: 390px) {
  .welcome-art { height: 94px; transform: scale(.75); }
  .welcome-eyebrow { letter-spacing: .5px; }
  .suggestion { padding: 9px 8px; }
  .suggestion-symbol { display: grid; }
  .suggestion-arrow { display: none; }
  .suggestion-body strong { font-size: 11px; }
}
@media (max-height: 640px) and (max-width: 700px) {
  .welcome-art { display: none; }
  .welcome-subtitle { margin-bottom: 16px; }
  .suggestion { min-height: 60px; }
  .fake-trending { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 2026 bilingual remix — same calm layout, extra chaos. */
.headline-en { display: block; font-size: .43em; line-height: 1.5; margin-top: 2px; font-weight: 660; letter-spacing: -.4px; color: #a7978a; }
.accent-text { color: var(--red); font-weight: 620; }
.surprise-btn { color: var(--red); }
.surprise-btn:hover { color: var(--red-dark); background: #fdf0eb; }
.trending-button { color: #746d65; background: transparent; border: 0; padding: 3px 4px; font-size: inherit; text-align: center; border-radius: 5px; }
.trending-button:hover { color: var(--red-dark); background: #f9eae3; text-decoration: underline; text-underline-offset: 3px; }
.profile-row { width: 100%; border: 0; border-top: 1px solid var(--line); text-align: left; background: transparent; border-radius: 9px; color: inherit; }
.profile-row:hover { background: #ece7df; }
.profile-emoji { color: #a29b91; font-size: 17px; }
.message-action.text-action { width: auto; min-height: 40px; padding: 0 10px; border: 1px solid transparent; font-size: 11px; font-weight: 550; color: #998b7a; }
.message-action.text-action:hover { border-color: #eedbc9; background: #f9f1e8; color: var(--red-dark); }
.about-backdrop:not([hidden]) { position: fixed; inset: 0; display: grid; place-items: center; z-index: 90; background: rgba(42,31,24,.38); backdrop-filter: blur(4px); padding: 16px; }
.about-dialog { position: relative; width: min(100%, 426px); background: #fffdfa; color: #3e3732; border: 1px solid #e9dace; border-radius: 22px; padding: 34px 30px 28px; box-shadow: 0 25px 80px rgba(34,25,17,.22); text-align: left; }
.about-close { position: absolute; right: 16px; top: 14px; }
.about-stamp { width: 52px; height: 52px; border: 3px double #ffece1; background: var(--red); color: #fff9ef; display: grid; place-items: center; border-radius: 14px; font-family: Georgia, 'Songti SC', serif; font-size: 29px; font-weight: 750; transform: rotate(-7deg); margin-bottom: 16px; }
.about-eyebrow { color: var(--red); font-size: 10px; letter-spacing: 1.8px; font-weight: 790; }
.about-dialog h2 { margin: 8px 0 12px; font-size: 24px; letter-spacing: -.7px; }
.about-dialog p { color: #83776d; line-height: 1.85; font-size: 13px; }
.about-ok { display: block; width: 100%; border: 0; margin-top: 22px; border-radius: 12px; background: var(--red); color: #fff; padding: 13px; font-weight: 710; }
.about-ok:hover { background: var(--red-dark); }
@media (max-width: 700px) {
  .welcome h1 .headline-en { font-size: .45em; }
  .welcome-subtitle { margin-bottom: 22px; }
  .satire-tag { width: auto; height: auto; }
  .topbar-right { gap: 2px; }
  .topbar-left { min-width: 0; }
  .model-switcher { white-space: nowrap; }
  .welcome-eyebrow { letter-spacing: 1px; }
  .about-dialog { padding: 30px 24px 24px; }
}

/* v2 reliability, mobile & accessibility fixes */
.pending-reply { align-items: center; }
.pending-reply .typing-label { color: #695c51; font-size: 12px; }
.backup-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.backup-tool { flex: 1; min-width: 0; background: #fffdfa; border: 1px solid #e8e0d6; border-radius: 9px; padding: 10px 4px; font-size: 10.5px; color: #68584b; white-space: nowrap; }
.backup-tool:hover { background: #f3e9dc; }
.storage-alert { max-width: 795px; margin: 0 auto 8px; padding: 9px 12px; background: #fff0e1; border: 1px solid #df9b69; color: #713c23; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.storage-alert button { flex: none; padding: 7px; border-radius: 8px; color: white; background: #984028; border: 0; }
.undo-toast { position: fixed; z-index: 110; bottom: 175px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 15px; color: #fff; background: #35312e; box-shadow: 0 12px 30px rgba(0,0,0,.17); border-radius: 12px; padding: 9px 11px 9px 16px; font-size: 12px; }
.undo-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-toast button { flex: none; min-height: 40px; border: 1px solid #ba8776; background: #5d3932; color: #fff; padding: 0 12px; border-radius: 8px; font-size: 12px; font-weight: 650; }
.undo-toast button:hover { background: #843c2d; }
.history-delete { min-width: 40px; min-height: 40px; }
.history-open { min-height: 42px; }
.icon-btn { min-width: 40px; min-height: 40px; }
@media (hover: none), (pointer: coarse) { .history-delete { opacity: 1; color: #766d65; } }
@media (max-width: 700px) {
  .satire-tag .tag-dot { display: none; }
  .topbar { padding: 0 9px; }
  .topbar-right { gap: 0; }
  .model-switcher { gap: 4px; }
  .undo-toast { bottom: 150px; }
  .backup-tools { gap: 5px; }
  .toast { white-space: normal; text-align: center; }
  .disclaimer { line-height: 1.35; }
}
@media (max-width: 380px) {
  .model-switcher > span:first-child { display: none; }
  .satire-tag { font-size: 8.5px; padding: 4px 5px; }
  .topbar-left { gap: 0; }
  .export-btn { width: 40px; }
}
@media (max-height: 460px) {
  .composer-area { padding-block: 5px 6px; }
  .composer { padding-block: 7px 6px; }
  #message-input { min-height: 25px; max-height: 70px; }
  .disclaimer { margin-top: 3px; }
  .topbar { height: 45px; }
  .welcome { margin: 0 auto; }
  .welcome-art { display: none; }
  .welcome-subtitle { margin-bottom: 10px; }
  .suggestion { min-height: 60px; }
  .fake-trending { display: none; }
}
@media (max-height: 280px) {
  html, body { height: auto; min-height: 100%; overflow: auto; }
  .app-shell { height: auto; min-height: 100dvh; overflow: visible; }
  .main-panel { min-height: 100dvh; }
  .content-scroll { min-height: 60px; }
}
