@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02FF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --accent: #f2ae3d; --accent-rgb: 242, 174, 61; --accent-ink: #33210c;
  --accent-strong: color-mix(in srgb, var(--accent) 52%, #49300c);
  --canvas: #f1efeb; --canvas-text: #272825; --surface: #fffdf9;
  --glass: rgba(255, 255, 255, .62); --glass-heavy: rgba(255, 254, 252, .91);
  --glass-edge: rgba(255, 255, 255, .85); --surface-alt: rgba(91, 77, 50, .035);
  --text: #272825; --secondary: #696963; --muted: #8a8a80; --line: rgba(65, 61, 46, .09);
  --hover: rgba(86, 76, 48, .045); --shadow: 0 12px 40px -16px #53482c18, inset 0 1px 0 #ffffffb3;
  --danger: #b94a4a; --input: rgba(255, 255, 255, .5);
  font-family: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --accent-strong: var(--accent); --canvas: #191b1e; --canvas-text: #f1f0e9; --surface: #242629;
  --glass: rgba(35, 37, 40, .69); --glass-heavy: rgba(35, 37, 40, .94); --glass-edge: rgba(255, 255, 255, .085);
  --surface-alt: rgba(255, 255, 255, .035); --text: #f1f0e9; --secondary: #b0b0a8; --muted: #858780;
  --line: rgba(255, 255, 255, .07); --hover: rgba(255, 255, 255, .045);
  --shadow: 0 14px 45px -25px #0005, inset 0 1px 0 #ffffff05; --danger: #f19491; --input: rgba(14, 16, 18, .18);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; transition: background .16s, color .16s, box-shadow .16s, border-color .16s; }
button:disabled { opacity: .36; cursor: default; }
button, input, textarea, select { outline: none; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
input, textarea, select { color: var(--text); }
button, a, input, select { touch-action: manipulation; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.glass { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(1.25); -webkit-backdrop-filter: blur(24px) saturate(1.25); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 650; letter-spacing: -.85px; text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-content: center; width: 37px; height: 37px; border-radius: 12px; padding-bottom: 4px; background: var(--accent); color: var(--accent-ink); font-size: 31px; font-weight: 650; letter-spacing: -2.5px; box-shadow: inset 0 1px 0 #ffffff4d; }
.brand-light { margin-left: 5px; color: var(--secondary); font-weight: 400; }
.eyebrow { font-size: 10px; font-weight: 550; letter-spacing: .08em; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; border: 1px solid transparent; border-radius: 12px; padding: 10px 17px; font-size: 13px; font-weight: 550; text-decoration: none; }
.button svg { width: 18px; height: 18px; }
.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 3px -2px #70500b26, inset 0 1px 0 #ffffff33; }
.primary:hover { background: color-mix(in srgb, var(--accent) 90%, white); box-shadow: 0 4px 10px -6px rgba(var(--accent-rgb), .7); }
.secondary { border-color: var(--line); background: var(--input); color: var(--secondary); }
.secondary:hover { background: var(--hover); color: var(--text); }
.icon-button, .small-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; border-radius: 10px; background: transparent; color: var(--secondary); padding: 0; }
.icon-button { width: 37px; height: 37px; }
.small-icon { width: 30px; height: 30px; }
.small-icon svg { width: 17px; height: 17px; }
.icon-button:hover, .small-icon:hover { background: var(--hover); color: var(--text); }
.danger { color: var(--danger); }
.button.primary.danger { background: var(--danger); color: #fff; }
.text-button { border: 0; background: transparent; color: var(--secondary); padding: 6px; font-size: 12px; }
.text-button:hover { color: var(--accent-strong); }
.muted { color: var(--secondary); font-size: 13px; line-height: 1.65; }
.error { color: var(--danger); font-size: 12px; line-height: 1.6; }
.error:empty { display: none; }
input:not([type=checkbox]):not([type=color]):not([type=file]), textarea, select { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:not([type=checkbox]):not([type=color]):focus, textarea:focus, select:focus { border-color: rgba(var(--accent-rgb), .65); }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
input[type=color] { width: 37px; height: 37px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--input); cursor: pointer; }

/* Amber illumination sits behind the glass, never behind the message text. */
.app, .login-shell {
  isolation: isolate; background-color: var(--canvas);
  background-image: radial-gradient(ellipse at 83% -18%, rgba(var(--accent-rgb), .2), transparent 51%), radial-gradient(ellipse at -8% 100%, rgba(var(--accent-rgb), .09), transparent 42%);
}
.login-shell { position: relative; display: grid; place-content: center; min-height: 100dvh; padding: 100px 24px; }
.login-story .brand { position: absolute; top: 36px; left: 38px; }
.story-footer { position: absolute; bottom: 28px; left: 38px; color: var(--secondary); font-size: 12px; letter-spacing: -.1px; }
.login-side { width: min(420px, calc(100vw - 40px)); }
.login-theme { position: absolute; top: 35px; right: 38px; border: 1px solid var(--glass-edge); background: var(--glass); border-radius: 12px; }
.login-card { border-radius: 25px; padding: 36px; }
.login-symbol { display: grid; place-content: center; width: 47px; height: 47px; border-radius: 15px; color: var(--accent-strong); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .12); }
.login-symbol svg { width: 23px; height: 23px; }
.login-card h1 { font-size: 31px; line-height: 1.15; font-weight: 550; letter-spacing: -1.25px; margin: 25px 0 13px; }
.login-card > p { color: var(--secondary); font-size: 13px; line-height: 1.6; margin: 0 0 28px; }
.login-card form > label { font-size: 12px; display: block; font-weight: 500; margin: 18px 0 9px; }
.login-card input { width: 100%; height: 46px; font-size: 13px; }
.password-field { position: relative; display: flex; }
.password-field input { padding-right: 45px !important; }
.password-field button { position: absolute; right: 5px; top: 5px; }
.login-submit { width: 100%; min-height: 46px; justify-content: space-between; margin-top: 25px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--muted); margin: 22px 0 0; }
.login-note svg { width: 13px; height: 13px; }

/* Independent glass panes, rather than a single boxed legacy layout. */
.app { display: flex; gap: 22px; height: 100dvh; padding: 18px; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; flex-shrink: 0; width: 230px; padding: 26px 15px 12px; border-radius: 23px; overflow-y: auto; }
.sidebar .brand { margin: 0 10px 31px; }
.compose-button { width: 100%; min-height: 46px; justify-content: flex-start; margin-bottom: 27px; padding-left: 14px; }
.compose-button .keyhint { margin-left: auto; opacity: .48; font-size: 10px; font-weight: 450; border: 1px solid currentColor; border-radius: 4px; min-width: 18px; height: 18px; display: grid; place-content: center; }
.nav-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding-left: 12px; margin-bottom: 8px; font-size: 11px; font-weight: 450; }
#folder-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-button { display: flex; align-items: center; gap: 11px; min-height: 43px; width: 100%; border: 1px solid transparent; border-radius: 11px; padding: 10px 12px; background: transparent; font-size: 13px; color: var(--secondary); text-align: left; }
.nav-button > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-button svg { width: 18px; height: 18px; opacity: .85; }
.nav-button:hover { background: var(--hover); color: var(--text); }
.nav-button.active { background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .08); color: var(--accent-strong); font-weight: 550; }
.folder-count { margin-left: auto; font-size: 10px; min-width: 21px; height: 20px; padding: 2px 5px; border-radius: 6px; display: grid; place-content: center; color: var(--muted); background: var(--surface-alt); }
.nav-button.active .folder-count { color: var(--accent-strong); background: rgba(var(--accent-rgb), .15); }
.folder-divider { height: 1px; background: var(--line); margin: 12px; }
.sidebar-spacer { flex: 1; min-height: 35px; }
.account-card { display: flex; align-items: center; gap: 10px; padding: 13px 9px; margin-top: 14px; border-top: 1px solid var(--line); }
.account-card > div { flex: 1; min-width: 0; }
.account-card strong { display: block; font-size: 12px; font-weight: 550; }
.account-card small { display: block; font-size: 10px; margin-top: 4px; color: var(--muted); text-overflow: ellipsis; overflow: hidden; }
.avatar { flex-shrink: 0; display: grid; place-content: center; width: 38px; height: 38px; border-radius: 13px; background: rgba(var(--accent-rgb), .14); color: var(--accent-strong); border: 1px solid rgba(var(--accent-rgb), .06); font-weight: 550; }
.quota { padding: 15px 12px; font-size: 10px; color: var(--muted); }
.quota-track { height: 3px; background: var(--line); margin-top: 8px; border-radius: 5px; overflow: hidden; }
.quota-track span { display: block; height: 100%; background: var(--accent); }
.workspace { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 122px; padding: 2px 8px 17px; flex-shrink: 0; color: var(--canvas-text); }
.heading-group { display: flex; align-items: center; gap: 12px; }
.folder-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-label { font-size: 11px; opacity: .55; margin-bottom: 9px; letter-spacing: -.1px; }
.workspace-label span { display: inline-block; padding: 0 6px; opacity: .5; }
.topbar h1 { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 550; letter-spacing: -1.2px; margin: 0; line-height: 1.2; }
.title-count { font-size: 12px; font-weight: 500; letter-spacing: 0; min-width: 29px; padding: 4px 8px; border-radius: 8px; background: rgba(var(--accent-rgb), .17); color: var(--accent-strong); border: 1px solid rgba(var(--accent-rgb), .08); }
.folder-subtitle { font-size: 12px; color: inherit; opacity: .55; margin: 9px 0 0; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.today { font-size: 12px; opacity: .6; }
.utility-group { display: flex; align-items: center; border-radius: 13px; padding: 4px; }
.utility-divider { height: 17px; width: 1px; background: var(--line); margin: 0 3px; }
.mail-workspace { display: flex; flex: 1; gap: 14px; min-height: 0; }
.mail-panel { display: flex; flex-direction: column; flex-shrink: 0; min-height: 0; width: 370px; border-radius: 21px; overflow: hidden; }
.list-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 21px 9px; }
.list-heading h2 { margin: 0; font-size: 16px; font-weight: 550; letter-spacing: -.45px; }
.list-search { display: flex; align-items: center; gap: 9px; margin: 5px 20px 12px; padding: 0 12px; min-height: 41px; border-radius: 11px; background: var(--input); color: var(--muted); border: 1px solid var(--line); }
.list-search > svg { width: 17px; height: 17px; }
.list-search input { width: 100%; min-width: 0; border: 0 !important; background: transparent !important; padding: 8px 0 !important; font-size: 12px; }
.search-hint { font-size: 13px; opacity: .7; }
.list-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 22px 15px; }
.select-all { display: flex; align-items: center; }
.filter-tabs { display: flex; gap: 4px; flex: 1; }
.filter-tab { display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 11px; padding: 6px 10px; min-height: 30px; border-radius: 8px; }
.filter-tab svg { width: 13px; height: 13px; }
.filter-tab.active { color: var(--text); background: var(--input); border-color: var(--line); box-shadow: 0 1px 2px #00000003; }
.filter-tab:hover { color: var(--text); }
.bulk-toolbar { display: flex; align-items: center; gap: 3px; padding: 7px 15px; background: rgba(var(--accent-rgb), .07); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bulk-toolbar > span { flex: 1; font-size: 11px; color: var(--accent-strong); }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 0 9px 9px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.message { display: flex; position: relative; gap: 12px; padding: 16px 13px; margin: 2px 0; min-height: 105px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.message:hover { background: var(--hover); }
.message.selected { background: rgba(var(--accent-rgb), .105); border-color: rgba(var(--accent-rgb), .15); }
.message-selection { position: absolute; left: 12px; top: 17px; width: 38px; height: 38px; border-radius: 13px; background: var(--surface); display: grid; place-content: center; opacity: 0; z-index: 1; }
.message:hover .message-selection, .message:focus-within .message-selection, .message.checked .message-selection, .has-selection .message-selection { opacity: 1; }
.message .avatar { font-size: 13px; background: var(--surface-alt); border-color: var(--line); color: var(--secondary); }
.message.unread .avatar { color: var(--accent-strong); border-color: rgba(var(--accent-rgb), .1); background: rgba(var(--accent-rgb), .1); }
.message-main { flex: 1; min-width: 0; }
.message-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.message-top strong { flex: 1; font-size: 12px; font-weight: 500; color: var(--secondary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-top time { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.message-subject { display: block; color: var(--text); font-size: 13px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -.15px; }
.message-detail { display: flex; align-items: center; justify-content: space-between; gap: 7px; height: 17px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.message-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-meta svg { width: 11px; height: 11px; vertical-align: -1px; }
.message-star { display: grid; place-content: center; flex-shrink: 0; width: 24px; height: 24px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; padding: 0; }
.message-star:hover { background: var(--hover); }
.message-star svg { width: 14px; height: 14px; }
.message-star.starred { color: var(--accent-strong); }
.message-star.starred svg { fill: rgba(var(--accent-rgb), .35); }
.message.unread .message-top strong, .message.unread .message-subject { font-weight: 600; color: var(--text); }
.unread-indicator { display: none; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.unread .unread-indicator { display: block; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 50px; border-top: 1px solid var(--line); padding: 8px 18px; font-size: 10px; color: var(--muted); }
.list-footer > div { display: flex; align-items: center; gap: 5px; }
.list-footer .small-icon { width: 25px; height: 27px; }
.reader { display: flex; flex: 1; min-width: 0; flex-direction: column; border-radius: 21px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.reader-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100%; padding: 30px; text-align: center; }
.empty-orbit { width: 72px; height: 72px; display: grid; place-content: center; border-radius: 23px; background: var(--input); border: 1px solid var(--glass-edge); color: var(--accent-strong); margin-bottom: 24px; box-shadow: 0 5px 15px -10px #0002; }
.empty-orbit svg { width: 27px; height: 27px; }
.reader-empty h2 { font-size: 21px; font-weight: 500; letter-spacing: -.7px; margin: 0 0 10px; }
.reader-empty p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 26px; }
.reader-empty .button { font-size: 12px; }
.reader-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 15px 22px; border-bottom: 1px solid var(--line); min-height: 68px; }
.toolbar-separator { width: 1px; height: 18px; background: var(--line); margin: 0 7px; }
.toolbar-end { display: flex; gap: 3px; margin-left: auto; }
.reader-back { display: none; }
.read-head { padding: 31px 34px 23px; }
.read-head h2 { margin: 0 0 30px; font-size: 27px; font-weight: 550; line-height: 1.3; letter-spacing: -.9px; overflow-wrap: anywhere; }
.sender-line { display: flex; align-items: center; gap: 12px; }
.sender-details { min-width: 0; flex: 1; }
.sender-details strong { display: block; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; line-height: 1.5; }
.sender-details small { display: block; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; margin-top: 3px; }
.read-date { font-size: 10px; color: var(--muted); margin-left: auto; }
.recipient-details { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 14px 0 0 50px; overflow-wrap: anywhere; }
.reader-body { flex: 1; padding: 6px 34px 34px; }
.read-content { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; margin: 0; }
.html-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; font-size: 10px; color: var(--muted); padding: 0 1px 10px; border-bottom: 1px solid var(--line); }
.html-controls .text-button { font-size: 10px; }
.mail-html { width: 100%; min-height: 400px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.attachment-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 28px; }
.attachment-section h3 { font-size: 11px; font-weight: 500; color: var(--secondary); margin: 0 0 13px; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 9px; }
.attachment-card { display: flex; align-items: center; gap: 11px; min-width: 160px; max-width: 100%; padding: 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--input); color: var(--secondary); text-decoration: none; }
.attachment-card > div { min-width: 0; flex: 1; }
.attachment-card strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.attachment-card small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.attachment-card svg { width: 16px; height: 16px; }
.attachment-card:hover { border-color: rgba(var(--accent-rgb), .6); }
.reply-actions { display: flex; gap: 9px; margin-top: 30px; flex-wrap: wrap; }
.reply-actions .button { font-size: 12px; }
.list-state { padding: 65px 22px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.8; }
.list-state > svg { display: block; margin: 0 auto 17px; width: 27px; height: 27px; opacity: .7; }
.list-state .text-button { margin-top: 12px; }
.loading-lines { padding: 25px; }
.loading-line { height: 11px; border-radius: 5px; margin-bottom: 15px; background: var(--surface-alt); animation: breathe 1.3s ease-in-out infinite alternate; }
.loading-line:nth-child(3n) { width: 62%; margin-bottom: 40px; }

/* Glass windows */
dialog { color: var(--text); padding: 0; border-radius: 23px; max-height: calc(100dvh - 40px); max-width: calc(100% - 32px); }
dialog.glass { background: var(--glass-heavy); box-shadow: 0 24px 90px -20px #0003, inset 0 1px 0 var(--glass-edge); backdrop-filter: blur(34px) saturate(1.2); -webkit-backdrop-filter: blur(34px) saturate(1.2); }
dialog::backdrop { background: #22231f38; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.dialog-title { display: flex; align-items: center; gap: 13px; }
.dialog-symbol { display: grid; place-content: center; width: 42px; height: 42px; border-radius: 13px; color: var(--accent-strong); background: rgba(var(--accent-rgb), .12); }
.dialog-symbol svg { width: 20px; height: 20px; }
.dialog-header h2 { font-size: 21px; font-weight: 550; letter-spacing: -.6px; margin: 0; }
.dialog-header .eyebrow { display: none; }
.compose-dialog { width: 760px; }
.compose-dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 44px); }
.compose-from { display: flex; align-items: center; gap: 12px; padding: 17px 30px 0; font-size: 12px; color: var(--secondary); }
.compose-from > span:first-child { width: 45px; color: var(--muted); flex-shrink: 0; }
.compose-from > span:last-child { padding: 5px 9px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; text-overflow: ellipsis; }
.compose-fields { padding: 0 30px; }
.compose-line { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.compose-line > label { width: 45px; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.compose-line > input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 12px 0 !important; font-size: 13px; }
.compose-line > button { font-size: 11px; flex-shrink: 0; }
#body { flex: 1; min-height: 280px; background: transparent; border: 0; border-radius: 0; padding: 25px 30px; resize: none; line-height: 1.8; font-size: 14px; }
#body:focus { border: 0; }
.compose-attachments { display: flex; flex-wrap: wrap; gap: 8px; max-height: 120px; overflow: auto; padding: 0 30px 14px; }
.compose-attachments:empty { padding: 0; }
.file-chip { display: flex; align-items: center; gap: 9px; max-width: 100%; font-size: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--input); padding: 6px 6px 6px 12px; }
.file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .small-icon { width: 24px; height: 24px; }
.compose-dialog .error { margin: 8px 30px; }
.compose-footer { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 18px 24px; border-top: 1px solid var(--line); }
.compose-footer-left, .compose-footer-right { display: flex; align-items: center; gap: 9px; }
#draft-status { font-size: 10px; color: var(--muted); }
.settings-dialog { width: 640px; }
.settings-tabs { display: flex; gap: 5px; padding: 5px; margin: 20px 28px 0; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 12px; }
.settings-tabs button { flex: 1; padding: 10px 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; }
.settings-tabs button.active { background: var(--input); color: var(--text); border-color: var(--line); box-shadow: 0 1px 3px #00000005; }
.settings-body { padding: 25px 28px; max-height: calc(100dvh - 306px); min-height: 230px; overflow-y: auto; scrollbar-width: thin; }
.settings-body h3 { font-size: 13px; font-weight: 550; margin: 25px 0 7px; letter-spacing: -.1px; }
.settings-body h3:first-child { margin-top: 0; }
.settings-body .muted { font-size: 12px; margin: 5px 0 16px; }
.theme-options { display: flex; gap: 12px; margin: 18px 0 27px; }
.theme-options > button { flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--secondary); font-size: 12px; }
.theme-options > button.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--accent-strong); }
.theme-thumbnail { display: flex; height: 65px; width: 100%; border: 1px solid #00000008; border-radius: 7px; margin-bottom: 9px; overflow: hidden; background: #fefcf8; }
.theme-thumbnail i { width: 25%; background: #eae6de; border-right: 1px solid #00000006; }
.theme-thumbnail b { margin: 13px 10px; width: 47%; height: 8px; border-radius: 4px; background: #e2c895; }
.dark-thumb { background: #282a2d; }
.dark-thumb i { background: #1b1d20; border-right-color: #ffffff08; }
.dark-thumb b { background: #756448; }
.system-thumb { background: linear-gradient(125deg, #fefcf8 50%, #282a2d 50%); }
.color-presets { display: flex; gap: 11px; margin: 18px 0; }
.color-swatch { width: 29px; height: 29px; border-radius: 10px; border: 3px solid var(--glass-heavy); box-shadow: 0 0 0 1px var(--line); }
.color-swatch.active { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.color-control { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--input); font-size: 12px; margin: 10px 0; }
.color-control label { display: flex; align-items: center; gap: 8px; flex: 1; }
#accent-value { font-family: monospace; color: var(--muted); font-size: 11px; }
#density { width: 100%; font-size: 12px; }
.reset-button { display: block; padding: 0; margin-top: 20px; font-size: 11px; }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 20px 28px; }
.settings-footer > span { font-size: 11px; color: var(--muted); }
#signature { width: 100%; min-height: 135px; resize: vertical; font-size: 13px; line-height: 1.7; }
.info-card { display: flex; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--secondary); padding: 17px; margin: 22px 0; }
.info-card > svg { width: 18px; height: 18px; }
.info-card p { font-size: 12px; line-height: 1.7; margin: 0; }
.profile-card { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.profile-card h3 { margin: 0; }
.profile-card p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.server-info { font-size: 12px; line-height: 1.7; }
.server-info dt { color: var(--muted); margin-top: 16px; }
.server-info dd { margin: 4px 0 0; }
kbd { border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--secondary); }
.small-dialog { width: 385px; }
.small-dialog .dialog-header { padding: 21px; }
.small-dialog h2 { font-size: 18px; }
.move-folders { display: flex; flex-direction: column; gap: 4px; padding: 12px; max-height: 380px; overflow-y: auto; }
#prompt-form > p { margin: 18px 22px; }
#prompt-form > input { width: calc(100% - 44px); margin: 0 22px; }
.prompt-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 22px; }
.toast { position: fixed; z-index: 1000; bottom: 25px; left: 50%; transform: translate(-50%,10px); opacity: 0; pointer-events: none; border-radius: 13px; color: var(--text); background: var(--glass-heavy); padding: 14px 20px; font-size: 12px; width: max-content; max-width: calc(100% - 30px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.mobile-menu, .mobile-settings, .mobile-compose-fab, .sidebar-overlay { display: none; }
:root[data-density=compact] .message { padding-top: 12px; padding-bottom: 12px; min-height: 90px; }
@keyframes breathe { from { opacity: .4; } to { opacity: 1; } }
@media (hover: none) { .message-selection { position: static; width: 17px; min-width: 17px; height: 38px; opacity: 1; background: transparent; } .message .avatar { width: 32px; height: 32px; border-radius: 11px; } }
@media (min-width: 1600px) { .app { padding: 22px; gap: 26px; } .sidebar { width: 244px; } .mail-panel { width: 415px; } .read-head { padding: 38px 46px 25px; } .reader-body { padding-left: 46px; padding-right: 46px; } }
@media (max-width: 1200px) { .app { gap: 15px; padding: 14px; } .sidebar { width: 211px; padding-left: 12px; padding-right: 12px; } .mail-panel { width: 335px; } .today { display: none; } .topbar { padding-left: 4px; } .read-head, .reader-body { padding-left: 25px; padding-right: 25px; } .filter-tab { padding: 6px 8px; } }
@media (max-width: 1020px) and (min-width: 761px) { .mail-workspace { position: relative; } .mail-panel { width: 100%; } .reader { display: none; position: absolute; inset: 0; z-index: 5; background: var(--glass-heavy); } .reader.open { display: flex; } .reader-back { display: inline-flex; } .reading .mail-panel { visibility: hidden; } }
@media (max-width: 760px) {
  .login-shell { padding: 95px 20px 80px; }
  .login-story .brand { left: 24px; top: 26px; }
  .login-theme { right: 24px; top: 27px; }
  .story-footer { bottom: 24px; left: 25px; font-size: 11px; }
  .login-card { padding: 29px; border-radius: 23px; }
  .login-card h1 { font-size: 30px; }
  .app { padding: 0 12px 12px; gap: 0; }
  .sidebar { position: fixed; z-index: 40; top: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: min(285px, calc(100vw - 55px)); padding-top: 26px; background: var(--glass-heavy); visibility: hidden; transform: translateX(calc(-100% - 24px)); transition: transform .22s ease, visibility .22s; border-radius: 22px; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .sidebar-overlay:not(.hidden) { display: block; position: fixed; inset: 0; z-index: 39; border: 0; background: #17191538; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .topbar { min-height: 119px; padding: 19px 2px 17px; align-items: center; gap: 5px; }
  .heading-group { gap: 7px; min-width: 0; flex: 1; }
  .heading-group > div { min-width: 0; }
  .workspace-label { display: none; }
  .topbar h1 { font-size: 22px; letter-spacing: -.8px; gap: 7px; white-space: nowrap; }
  .folder-subtitle { font-size: 10px; margin-top: 7px; }
  .title-count { font-size: 10px; min-width: 24px; border-radius: 6px; padding: 3px 5px; }
  .topbar-actions { gap: 0; flex-shrink: 0; }
  .utility-group { padding: 2px; border-radius: 12px; }
  .utility-group .icon-button { width: 29px; height: 33px; }
  .utility-divider { display: none; }
  .utility-group .icon-button svg { width: 17px; height: 17px; }
  .mobile-menu, .mobile-settings { display: inline-flex; }
  .mobile-menu { width: 28px; }
  .mail-workspace { position: relative; gap: 0; min-width: 0; }
  .mail-panel { width: 100%; border-radius: 21px; }
  .list-heading { padding: 17px 18px 6px; }
  .list-heading h2 { font-size: 15px; }
  .list-search { margin-left: 17px; margin-right: 17px; min-height: 41px; }
  .list-toolbar { padding: 1px 20px 12px; gap: 15px; }
  .filter-tab { padding: 6px 9px; font-size: 11px; }
  .messages { padding-left: 7px; padding-right: 7px; }
  .message { gap: 10px; padding: 15px 11px; }
  .message-selection { left: 10px; top: 16px; }
  .message-top strong { font-size: 12px; }
  .message-subject { font-size: 13px; }
  .message-top time { font-size: 10px; }
  .message .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
  .message-detail { font-size: 10px; }
  .list-footer { padding-right: 18px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .reader { display: none; position: absolute; inset: 0; z-index: 10; background: var(--glass-heavy); border-radius: 21px; }
  .reader.open { display: flex; }
  .reading .mail-panel { visibility: hidden; }
  .reader-back { display: inline-flex; }
  .reader-toolbar { padding: 12px 9px; gap: 2px; min-height: 59px; }
  .reader-toolbar .icon-button { width: 32px; height: 32px; border-radius: 9px; }
  .reader-toolbar .toolbar-separator { margin: 0 3px; }
  .read-head { padding: 25px 21px 23px; }
  .read-head h2 { font-size: 23px; line-height: 1.3; margin-bottom: 25px; }
  .sender-line { flex-wrap: wrap; gap: 10px; }
  .sender-details strong { font-size: 12px; }
  .sender-details small { font-size: 10px; }
  .read-date { width: 100%; margin-left: 48px; }
  .recipient-details { margin-left: 48px; font-size: 10px; }
  .reader-body { padding: 0 21px 25px; }
  .html-controls { flex-wrap: wrap; gap: 3px; font-size: 9px; }
  .html-controls .text-button { padding: 3px 0; }
  .read-content { font-size: 14px; }
  .mail-html { min-height: 350px; }
  .mobile-compose-fab { display: flex; align-items: center; justify-content: center; gap: 9px; position: fixed; bottom: max(78px, calc(env(safe-area-inset-bottom) + 68px)); right: 27px; height: 47px; padding: 0 17px; border: 1px solid rgba(var(--accent-rgb), .2); background: var(--accent); color: var(--accent-ink); border-radius: 15px; box-shadow: 0 7px 20px -8px #8b621e55, inset 0 1px 0 #ffffff40; font-size: 12px; font-weight: 550; z-index: 5; }
  .mobile-compose-fab svg { width: 18px; height: 18px; }
  .reading .mobile-compose-fab { display: none; }
  dialog { max-height: calc(100dvh - 22px); max-width: calc(100% - 20px); border-radius: 22px; }
  .compose-dialog { width: calc(100% - 16px); max-width: none; }
  .compose-dialog form { max-height: calc(100dvh - 26px); }
  .dialog-header { padding: 20px; }
  .dialog-header h2 { font-size: 18px; }
  .dialog-symbol { width: 36px; height: 36px; border-radius: 11px; }
  .compose-from { padding: 14px 20px 0; font-size: 11px; }
  .compose-fields { padding: 0 20px; }
  .compose-line { gap: 8px; }
  .compose-line > label, .compose-from > span:first-child { width: 38px; }
  .compose-line > input { font-size: 16px; }
  .compose-line > button { font-size: 10px; }
  #body { padding: 20px; min-height: 210px; font-size: 16px; }
  .compose-attachments { padding-left: 20px; padding-right: 20px; }
  .compose-footer { padding: 14px; gap: 3px; }
  .compose-footer-left, .compose-footer-right { gap: 3px; }
  .compose-footer .text-button { font-size: 11px; }
  .compose-footer .button { min-height: 40px; padding: 10px 14px; font-size: 12px; }
  #draft-status { display: none; }
  .settings-dialog { width: calc(100% - 20px); }
  .settings-tabs { margin: 16px 19px 0; }
  .settings-tabs button { font-size: 11px; padding: 9px 3px; }
  .settings-body { padding: 21px 20px; max-height: calc(100dvh - 277px); }
  .settings-footer { padding: 17px 20px; }
  .settings-footer .button { font-size: 12px; }
  .settings-footer > span { font-size: 10px; }
  .theme-options { gap: 9px; }
  .theme-thumbnail { height: 57px; }
  .color-presets { gap: 12px; }
  .color-control { padding: 9px 10px; font-size: 11px; }
  input:not([type=checkbox]):not([type=color]), textarea, select { font-size: 16px; }
  .small-dialog .dialog-header { padding: 20px; }
}
@media (max-width: 380px) { .topbar h1 { font-size: 20px; } .title-count { display: none; } .filter-tab { padding-left: 7px; padding-right: 7px; } .message-selection { display: none; } .has-selection .message-selection { display: grid; } .utility-group .icon-button { width: 28px; } }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
