:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --surface: #fffefa;
  --surface-soft: #eef0f1;
  --sidebar: #111d2a;
  --sidebar-soft: #1a2938;
  --text: #26333e;
  --muted: #7b858d;
  --faint: #a8afb4;
  --border: #e4e4de;
  --accent: #9d7d49;
  --accent-dark: #29465e;
  --accent-soft: #eaf0f4;
  --danger: #bd5359;
  --shadow: 0 14px 40px rgb(24 42 58 / 9%);
  --font-display: "Bodoni 72", Didot, "Songti SC", STSong, Georgia, serif;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111820;
  --surface: #19222b;
  --surface-soft: #24303a;
  --text: #e8edf0;
  --muted: #9ca8b1;
  --faint: #717e88;
  --border: #303b44;
  --accent: #c2a571;
  --accent-dark: #d2ba8c;
  --accent-soft: #253540;
  --shadow: 0 14px 40px rgb(0 0 0 / 24%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; color: var(--text); background: var(--bg); }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button, a, textarea, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: flex; height: 100dvh; }
.sidebar { position: relative; z-index: 20; display: flex; width: 278px; flex: 0 0 278px; flex-direction: column; padding: 28px 18px 20px; overflow: hidden; color: #e7edf1; background: radial-gradient(circle at 0 0, #24394a 0, transparent 40%), linear-gradient(165deg, #142231 0%, #0e1822 100%); }
.sidebar::after { position: absolute; right: -90px; bottom: 80px; width: 220px; height: 220px; border: 1px solid rgb(200 177 133 / 6%); border-radius: 50%; box-shadow: 0 0 0 36px rgb(200 177 133 / 2%), 0 0 0 72px rgb(200 177 133 / 2%); pointer-events: none; content: ""; }
.brand, .login-brand, .login-mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.brand { padding: 0 8px; }
.brand-mark { position: relative; display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 13px; color: #26394a; background: linear-gradient(145deg, #f1e9da, #cdb994); box-shadow: 0 6px 20px rgb(0 0 0 / 16%); font-family: var(--font-display); font-size: 23px; font-style: italic; }
.brand-mark svg { position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; padding: 2px; color: #dbc79e; background: #1d2b38; stroke-width: 1.4; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy > span { font-family: var(--font-display); font-size: 25px; font-weight: 500; letter-spacing: .2px; line-height: 1.1; }
.brand-copy small { color: #94a2ae; font-size: 8px; font-weight: 500; letter-spacing: 2.4px; }
.new-chat { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; margin: 34px 0 30px; padding: 13px 14px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 12px; color: #273949; background: linear-gradient(135deg, #eee6d8, #d3c09c); box-shadow: 0 7px 18px rgb(4 11 18 / 18%); font-size: 13px; font-weight: 600; transition: transform .2s, box-shadow .2s, filter .2s; }
.new-chat:hover { filter: brightness(1.04); box-shadow: 0 9px 24px rgb(4 11 18 / 25%); transform: translateY(-1px); }
.new-chat svg { width: 17px; height: 17px; }
.shortcut { margin-left: auto; color: #857557; font-size: 10px; font-weight: 400; }
.history-label { display: flex; align-items: center; gap: 12px; padding: 0 10px 12px; color: #82919d; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; }
.history-label i { height: 1px; flex: 1; background: linear-gradient(to right, #344553, transparent); }
.conversation-list { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #354653 transparent; }
.conversation-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; margin: 3px 0; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: #a6b3bd; background: transparent; text-align: left; transition: color .18s, background .18s, border-color .18s; }
.conversation-item:hover { color: #edf2f5; background: rgb(255 255 255 / 4%); }
.conversation-item.active { border-color: rgb(205 181 134 / 13%); color: #f1eee7; background: linear-gradient(90deg, rgb(180 150 96 / 14%), rgb(255 255 255 / 4%)); }
.conversation-item.active::after { position: absolute; right: 11px; width: 4px; height: 4px; border-radius: 50%; background: #c5ab7d; content: ""; }
.conversation-item svg { width: 15px; height: 15px; flex: 0 0 auto; color: #7e909e; }
.conversation-item span { overflow: hidden; padding-right: 6px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.empty-history { padding: 15px 11px; color: #687b89; font-size: 11px; line-height: 1.7; }
.sidebar-note { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 11px; margin: 16px 8px 20px; color: #748693; }
.sidebar-note svg { width: 16px; height: 16px; margin-top: 3px; color: #b59b70; }
.sidebar-note p { margin: 0; font-family: var(--font-display); font-size: 13px; line-height: 1.55; letter-spacing: .15px; }
.sidebar-note em { color: #a4b0b8; font-weight: 400; }
.sidebar-footer { position: relative; z-index: 1; display: flex; align-items: center; padding: 17px 4px 0; border-top: 1px solid rgb(200 218 230 / 10%); }
.profile-avatar { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; margin-right: 10px; border: 1px solid #526272; border-radius: 50%; color: #dbc69e; background: #233340; font-family: var(--font-display); font-size: 16px; font-style: italic; }
.service-status { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.service-status strong { color: #d8e0e5; font-size: 11px; font-weight: 500; letter-spacing: .3px; }
.service-status > span { display: flex; align-items: center; gap: 5px; color: #82939f; font-size: 9px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #c39b56; }
.status-dot.online { background: #73ad8e; box-shadow: 0 0 0 3px rgb(115 173 142 / 8%); }
.status-dot.offline { background: #d6676c; }
.icon-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; padding: 0; place-items: center; border: 0; border-radius: 10px; color: var(--muted); background: transparent; transition: color .18s, background .18s; }
.icon-button:hover { color: var(--text); background: var(--surface-soft); }
.icon-button svg { width: 17px; height: 17px; }
.logout-button { margin-left: auto; color: #82929e; }
.logout-button:hover, .theme-button:hover { color: #f0e8d9; background: #263744; }
.theme-button { color: #82929e; }
.moon-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: none; }
:root[data-theme="dark"] .moon-icon { display: block; }

.main-panel { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; isolation: isolate; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.ambient-one { top: -180px; right: -130px; width: 520px; height: 520px; background: radial-gradient(circle, rgb(191 171 133 / 14%) 0%, rgb(215 205 183 / 5%) 45%, transparent 70%); }
.ambient-two { bottom: -260px; left: -180px; width: 540px; height: 540px; background: radial-gradient(circle, rgb(145 171 190 / 12%) 0%, transparent 68%); }
:root[data-theme="dark"] .ambient-one { background: radial-gradient(circle, rgb(167 134 78 / 9%) 0%, transparent 68%); }
:root[data-theme="dark"] .ambient-two { background: radial-gradient(circle, rgb(75 110 137 / 10%) 0%, transparent 68%); }
.topbar { z-index: 5; display: flex; height: 74px; flex: 0 0 74px; align-items: center; padding: 0 34px; border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(20px); }
.conversation-heading { display: flex; min-width: 0; align-items: center; gap: 15px; }
.conversation-heading h2 { max-width: min(45vw, 480px); margin: 0; overflow: hidden; font-size: 12px; font-weight: 600; letter-spacing: .2px; text-overflow: ellipsis; white-space: nowrap; }
.online-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; letter-spacing: .2px; }
.online-label i { width: 4px; height: 4px; border-radius: 50%; background: #729a83; }
.delete-button { margin-left: auto; }
.delete-button:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.menu-button { display: none; margin-right: 10px; }

.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.messages { width: min(100%, 900px); min-height: 100%; margin: 0 auto; padding: 38px 38px 34px; }
.welcome { position: relative; display: flex; min-height: calc(100dvh - 244px); flex-direction: column; align-items: center; justify-content: center; padding: 25px 0 28px; text-align: center; animation: appear .65s ease-out; }
.welcome-mark { position: relative; display: grid; width: 65px; height: 65px; margin-bottom: 24px; place-items: center; border: 1px solid rgb(255 255 255 / 75%); border-radius: 50%; color: #5f4e32; background: linear-gradient(145deg, #f0e8da, #d7c49f); box-shadow: 0 10px 35px rgb(115 94 54 / 15%), inset 0 0 0 5px rgb(255 255 255 / 22%); font-family: var(--font-display); font-size: 36px; font-style: italic; }
.welcome-mark::before { position: absolute; inset: -8px; border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent); border-radius: 50%; content: ""; }
.welcome-mark svg { position: absolute; top: -6px; right: -9px; width: 23px; height: 23px; padding: 4px; border-radius: 50%; color: #987c4e; background: var(--bg); stroke-width: 1.25; }
:root[data-theme="dark"] .welcome-mark { color: #eee0c3; background: linear-gradient(145deg, #5d513b, #332e25); box-shadow: 0 10px 35px rgb(0 0 0 / 22%); }
.welcome-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; color: var(--accent); font-size: 8px; font-weight: 600; letter-spacing: 2.5px; }
.welcome-eyebrow i { width: 20px; height: 1px; background: color-mix(in srgb, var(--accent) 42%, transparent); }
.welcome h1 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(29px, 3.5vw, 39px); font-weight: 500; letter-spacing: -.8px; line-height: 1.35; }
.welcome h1 em { color: var(--accent); font-family: "Bodoni 72", Didot, Georgia, serif; font-size: 1.14em; font-weight: 400; }
.welcome h1 em::after { color: var(--text); font-family: var(--font-display); font-size: .88em; font-style: normal; content: "，"; }
.welcome > p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .25px; line-height: 1.9; }
.suggestion-grid { display: grid; width: 100%; max-width: 730px; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 35px; }
.suggestion-card { position: relative; display: flex; min-width: 0; align-items: center; gap: 13px; padding: 16px 17px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 3px 10px rgb(31 48 61 / 2%); text-align: left; transition: transform .25s, border-color .25s, box-shadow .25s; animation: appear .5s both; }
.suggestion-card:nth-child(2) { animation-delay: .06s; }
.suggestion-card:nth-child(3) { animation-delay: .12s; }
.suggestion-card:nth-child(4) { animation-delay: .18s; }
.suggestion-card::before { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, color-mix(in srgb, var(--accent) 4%, transparent)); pointer-events: none; content: ""; }
.suggestion-card:hover { border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); box-shadow: var(--shadow); transform: translateY(-3px); }
.suggestion-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / 55%); border-radius: 12px; }
.suggestion-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.suggestion-icon.blue { color: #557c98; background: #e6eef3; }
.suggestion-icon.slate { color: #6e7e8c; background: #e9edef; }
.suggestion-icon.gold { color: #9c7b46; background: #f1ebde; }
.suggestion-icon.sage { color: #628472; background: #e6eee8; }
:root[data-theme="dark"] .suggestion-icon.blue { background: #253642; }
:root[data-theme="dark"] .suggestion-icon.slate { background: #2b343b; }
:root[data-theme="dark"] .suggestion-icon.gold { background: #383226; }
:root[data-theme="dark"] .suggestion-icon.sage { background: #26372e; }
.suggestion-copy { display: flex; min-width: 0; flex-direction: column; }
.suggestion-copy small { margin-bottom: 4px; color: var(--faint); font-size: 6.5px; font-weight: 600; letter-spacing: 1.15px; }
.suggestion-copy strong { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .4px; }
.suggestion-copy > span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { width: 15px; height: 15px; flex: 0 0 auto; margin-left: auto; color: var(--faint); transition: color .2s, transform .2s; }
.suggestion-card:hover .card-arrow { color: var(--accent); transform: translateX(2px); }
.welcome-footer { display: flex; align-items: center; gap: 11px; margin-top: 25px; color: var(--faint); font-size: 8px; letter-spacing: 2px; }
.welcome-footer i { width: 2px; height: 2px; border-radius: 50%; background: var(--accent); opacity: .55; }

.message { display: flex; gap: 13px; margin-bottom: 31px; animation: appear .25s ease-out; }
.message-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; margin-top: 1px; place-items: center; border-radius: 10px; font-size: 10px; font-weight: 600; }
.message.assistant .message-avatar { border: 1px solid rgb(255 255 255 / 25%); color: #f3e9d6; background: linear-gradient(145deg, #36536a, #1b3449); box-shadow: 0 4px 12px rgb(24 49 69 / 15%); font-family: var(--font-display); font-size: 12px; font-style: italic; }
.message.user { flex-direction: row-reverse; }
.message.user .message-avatar { border: 1px solid var(--border); border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-family: var(--font-display); font-size: 14px; font-style: italic; }
.message-body { min-width: 0; max-width: calc(100% - 50px); }
.message.user .message-body { display: flex; flex-direction: column; align-items: flex-end; }
.message-content { font-size: 13.5px; line-height: 1.9; overflow-wrap: anywhere; }
.message.assistant .message-content { padding-top: 3px; }
.message.user .message-content { padding: 11px 16px; border: 1px solid color-mix(in srgb, var(--accent-dark) 7%, transparent); border-radius: 16px 4px 16px 16px; background: var(--accent-soft); line-height: 1.75; white-space: pre-wrap; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 13px; }
.message-content h1, .message-content h2, .message-content h3 { margin: 22px 0 10px; font-family: var(--font-display); font-weight: 600; line-height: 1.4; }
.message-content h1 { font-size: 21px; }
.message-content h2 { font-size: 18px; }
.message-content h3 { font-size: 16px; }
.message-content ul, .message-content ol { margin: 8px 0 15px; padding-left: 24px; }
.message-content li { margin: 4px 0; padding-left: 2px; }
.message-content blockquote { margin: 12px 0; padding: 3px 0 3px 14px; border-left: 2px solid var(--accent); color: var(--muted); }
.message-content a { color: var(--accent-dark); text-decoration: none; }
.message-content a:hover { text-decoration: underline; }
.message-content :not(pre) > code { padding: 2px 5px; border-radius: 5px; color: var(--accent-dark); background: var(--accent-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.code-block { margin: 14px 0; overflow: hidden; border: 1px solid #33414d; border-radius: 12px; background: #121c25; }
.code-header { display: flex; height: 35px; align-items: center; justify-content: space-between; padding: 0 12px; color: #8f9faa; background: #1d2a35; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.copy-code { display: flex; align-items: center; gap: 5px; padding: 3px 5px; border: 0; color: #a4b1ba; background: none; font-size: 10px; text-transform: none; }
.copy-code:hover { color: white; }
.copy-code svg { width: 13px; height: 13px; }
.code-block pre { margin: 0; padding: 15px; overflow-x: auto; color: #dfe7ec; font: 12px/1.7 "SFMono-Regular", Consolas, monospace; tab-size: 2; }
.code-block code { font-family: inherit; }
.copy-message { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 0; border: 0; color: var(--faint); background: none; font-size: 10px; opacity: 0; transition: opacity .15s, color .15s; }
.message:hover .copy-message, .copy-message:focus-visible { opacity: 1; }
.copy-message:hover { color: var(--accent); }
.copy-message svg { width: 13px; height: 13px; }
.message.streaming .message-content::after { display: inline-block; width: 5px; height: 14px; margin-left: 4px; border-radius: 2px; background: var(--accent); vertical-align: -2px; content: ""; animation: blink .8s infinite; }
.message-error { margin-top: 9px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); border-radius: 8px; color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); font-size: 12px; line-height: 1.6; }

.composer-area { flex: 0 0 auto; padding: 12px 36px 16px; background: linear-gradient(to top, var(--bg) 80%, transparent); }
.composer { width: min(100%, 824px); margin: 0 auto; padding: 14px 14px 10px 19px; border: 1px solid var(--border); border-radius: 17px; background: color-mix(in srgb, var(--surface) 95%, transparent); box-shadow: 0 8px 30px rgb(27 45 59 / 7%); backdrop-filter: blur(16px); transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 9px 34px rgb(36 58 76 / 10%); }
.composer textarea { display: block; width: 100%; max-height: 160px; padding: 2px 0 9px; resize: none; overflow-y: auto; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; line-height: 1.65; }
.composer textarea::placeholder { color: var(--faint); }
.composer-bottom { display: flex; min-height: 32px; align-items: center; }
.composer-hint { color: var(--faint); font-size: 9px; }
.composer-hint span { font-size: 8px; letter-spacing: .2px; }
.composer-hint i { margin: 0 5px; font-style: normal; opacity: .6; }
.send-button { display: grid; width: 34px; height: 34px; margin-left: auto; padding: 0; place-items: center; border: 0; border-radius: 11px; color: #f4e9d4; background: linear-gradient(145deg, #36536b, #1c354a); box-shadow: 0 4px 12px rgb(27 53 74 / 20%); transition: transform .18s, filter .18s, opacity .18s; }
.send-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.send-button:disabled { cursor: default; opacity: .3; box-shadow: none; }
.send-button svg { width: 16px; height: 16px; }
.stop-button { display: flex; height: 33px; align-items: center; gap: 6px; margin-left: auto; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface-soft); font-size: 11px; }
.stop-button:hover { border-color: var(--faint); }
.stop-button svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.disclaimer { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 9px 0 0; color: var(--faint); font-size: 8px; letter-spacing: .1px; }
.disclaimer span { font-family: var(--font-display); font-size: 9px; font-style: italic; letter-spacing: .2px; }
.disclaimer i { font-style: normal; opacity: .6; }
.toast { position: fixed; bottom: 30px; left: 50%; z-index: 50; padding: 10px 16px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 10px; color: #edf2f4; background: #1b2c3a; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sidebar-overlay { display: none; }

.login-body { overflow: auto; background: #f8f7f3; }
.login-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(430px, .95fr) 1.05fr; }
.login-showcase { position: relative; display: flex; min-height: 100dvh; flex-direction: column; padding: 42px 48px 35px; overflow: hidden; color: #e8edf0; background: radial-gradient(circle at 80% 20%, #263e50 0, transparent 40%), linear-gradient(150deg, #152635, #0e1924 75%); }
.login-showcase::after { position: absolute; right: -100px; bottom: 12%; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgb(190 158 103 / 8%), transparent 68%); content: ""; }
.login-brand { align-self: flex-start; }
.showcase-orbit { position: absolute; border: 1px solid rgb(204 181 138 / 8%); border-radius: 50%; pointer-events: none; }
.orbit-one { top: 20%; right: -180px; width: 520px; height: 520px; }
.orbit-two { top: calc(20% + 48px); right: -132px; width: 424px; height: 424px; }
.showcase-content { position: relative; z-index: 1; margin: auto 0; padding: 60px 0; }
.showcase-label { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: #bda676; font-size: 9px; font-weight: 500; letter-spacing: 2.6px; }
.showcase-label i { width: 30px; height: 1px; background: #8f7a52; }
.showcase-content h2 { margin: 0; font-family: var(--font-display); font-size: clamp(33px, 3.4vw, 48px); font-weight: 400; letter-spacing: .5px; line-height: 1.55; }
.showcase-content h2 span { color: #d1bb91; }
.showcase-content > p { margin: 27px 0 0; color: #96a6b2; font-size: 12px; letter-spacing: .5px; line-height: 2.1; }
.showcase-signature { margin-top: 36px; color: #758a99; font-family: var(--font-display); font-size: 16px; font-style: italic; }
.showcase-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; color: #627989; font-size: 8px; letter-spacing: 2px; }
.showcase-footer i { width: 3px; height: 3px; border-radius: 50%; background: #9c865e; }
.login-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 60px 45px 85px; background: radial-gradient(circle at 100% 0, rgb(199 179 141 / 10%), transparent 32%), #f8f7f3; }
.login-form-wrap { width: 100%; min-width: 0; max-width: 400px; animation: appear .55s ease-out; }
.login-mobile-brand { display: none; }
.login-eyebrow { margin-bottom: 16px; color: #9d7d49; font-size: 9px; font-weight: 600; letter-spacing: 2.5px; }
.login-panel h1 { margin: 0; font-family: var(--font-display); font-size: clamp(29px, 3vw, 38px); font-weight: 500; letter-spacing: -.5px; line-height: 1.5; }
.login-panel h1 em { color: #9d7d49; font-family: "Bodoni 72", Didot, Georgia, serif; font-size: 1.2em; font-weight: 400; }
.login-intro { margin: 14px 0 38px; color: #7b858d; font-size: 12px; line-height: 1.8; }
.login-form { display: flex; flex-direction: column; }
.field-label { margin: 0 0 9px; color: #4e5b65; font-size: 11px; font-weight: 550; }
.input-wrap { position: relative; display: flex; align-items: center; margin-bottom: 23px; }
.input-wrap > svg { position: absolute; left: 16px; width: 17px; height: 17px; color: #96a0a7; pointer-events: none; }
.input-wrap input { width: 100%; height: 51px; padding: 0 46px; border: 1px solid #dedfd9; border-radius: 11px; outline: none; color: #26333e; background: rgb(255 254 250 / 80%); font-size: 13px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input::placeholder { color: #abb1b5; }
.input-wrap input:focus { border-color: #a88d5e; background: #fffefa; box-shadow: 0 0 0 4px rgb(157 125 73 / 8%); }
.input-wrap input:disabled { opacity: .7; }
.password-toggle { position: absolute; right: 8px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 8px; color: #8e989f; background: transparent; }
.password-toggle:hover { color: #29465e; background: #eef0ed; }
.password-toggle svg { width: 17px; height: 17px; }
.password-toggle .eye-closed { display: none; }
.password-toggle.showing .eye-open { display: none; }
.password-toggle.showing .eye-closed { display: block; }
.login-error { margin: -7px 0 18px; padding: 10px 12px; border: 1px solid rgb(189 83 89 / 20%); border-radius: 9px; color: #b24c52; background: rgb(189 83 89 / 5%); font-size: 11px; line-height: 1.6; }
.login-submit { display: flex; height: 51px; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; border: 0; border-radius: 11px; color: #f2e8d6; background: linear-gradient(135deg, #2c485f, #142c40); box-shadow: 0 8px 20px rgb(23 46 65 / 17%); font-size: 12px; font-weight: 550; letter-spacing: .5px; transition: transform .2s, box-shadow .2s, filter .2s; }
.login-submit:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 10px 26px rgb(23 46 65 / 23%); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .78; }
.login-submit svg { width: 16px; height: 16px; }
.loading-spinner { width: 15px; height: 15px; border: 1.5px solid rgb(255 255 255 / 30%); border-top-color: #f2e8d6; border-radius: 50%; animation: spin .7s linear infinite; }
.login-assurance { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #9aa2a7; font-size: 9px; }
.login-assurance svg { width: 13px; height: 13px; color: #8a9a8e; }
.login-copyright { position: absolute; right: 0; bottom: 27px; left: 0; margin: 0; color: #a8afb4; font-size: 7px; letter-spacing: 1.4px; text-align: center; }
.login-copyright span { margin: 0 7px; color: #9d7d49; }

@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(350px, .85fr) 1.15fr; }
  .login-showcase { padding: 35px 32px 30px; }
  .showcase-content h2 { font-size: 33px; }
  .showcase-content > p { font-size: 11px; }
  .login-panel { padding-right: 35px; padding-left: 35px; }
}

@media (max-width: 800px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 15; background: rgb(7 16 24 / 48%); backdrop-filter: blur(3px); }
  .sidebar-overlay.visible { display: block; }
  .menu-button { display: grid; }
  .topbar { height: 64px; flex-basis: 64px; padding: 0 17px; }
  .online-label { display: none; }
  .messages { padding: 26px 20px 24px; }
  .welcome { min-height: calc(100dvh - 224px); }
  .composer-area { padding: 9px 16px 13px; }
}

@media (max-width: 700px) {
  .login-shell { display: block; }
  .login-showcase { display: none; }
  .login-panel { min-height: 100dvh; padding: 45px 28px 75px; }
  .login-form-wrap { max-width: 410px; }
  .login-mobile-brand { display: flex; margin-bottom: 55px; color: #1d3041; }
  .login-mobile-brand .brand-copy small { color: #89949c; }
  .login-panel h1 { font-size: 31px; }
  .login-intro { margin-bottom: 32px; }
}

@media (max-width: 520px) {
  .welcome { min-height: auto; justify-content: flex-start; padding-top: 3vh; }
  .welcome-mark { width: 57px; height: 57px; margin-bottom: 18px; font-size: 32px; }
  .welcome h1 { max-width: 340px; margin-bottom: 10px; font-size: 28px; line-height: 1.35; }
  .welcome h1 em::after { content: ""; }
  .welcome h1 span { display: block; margin-top: 3px; font-size: .82em; }
  .welcome > p { max-width: 285px; font-size: 11px; }
  .suggestion-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 24px; }
  .suggestion-card { padding: 12px 15px; }
  .suggestion-icon { width: 36px; height: 36px; }
  .suggestion-copy small { font-size: 6px; }
  .welcome-footer { margin-top: 22px; }
  .message { gap: 9px; margin-bottom: 25px; }
  .message-avatar { width: 28px; height: 28px; border-radius: 9px; }
  .message-body { max-width: calc(100% - 37px); }
  .message-content { font-size: 13px; }
  .composer { padding-left: 16px; }
  .composer-hint { display: none; }
  .disclaimer span, .disclaimer i { display: none; }
  .copy-message { opacity: 1; }
  .login-mobile-brand { margin-bottom: 42px; }
  .login-panel h1 { font-size: 28px; }
  .login-copyright { font-size: 6px; }
}

@media (max-height: 760px) and (min-width: 521px) {
  .welcome { justify-content: flex-start; padding-top: 5px; }
  .welcome-mark { width: 55px; height: 55px; margin-bottom: 18px; font-size: 31px; }
  .welcome h1 { font-size: 32px; }
  .suggestion-grid { margin-top: 25px; }
  .suggestion-card { padding-top: 13px; padding-bottom: 13px; }
  .welcome-footer { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
