@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/ibm-plex-sans.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/fraunces-var.woff2') format('woff2'); }
:root {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  --heading-font: 'Fraunces', Georgia, serif;
  color-scheme: light; --bg: #FAF9F6; --panel: #fff; --sidebar: #FAF9F6; --text: #2B2B2B;
  --muted: #6E6A63; --line: #E7E2D9; --brand: #B45F00; --accent: #8F4C00; --accent-soft: #F8EEE5;
  --hover: #F4F1EC; --selected: #F8EEE5; --shadow: 0 1px 2px #2b2b2b0d;
  font-size: 16px; font-synthesis: none; -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  color-scheme: dark; --bg: #1D1D1D; --panel: #2B2B2B; --sidebar: #1D1D1D; --text: #FAF9F6;
  --muted: #C7C1B8; --line: #45413C; --accent: #E0A265; --accent-soft: #3D3024;
  --hover: #35322F; --selected: #3D3024; --shadow: 0 1px 2px #0002;
} }
:root[data-theme="dark"] { color-scheme: dark; --bg: #1D1D1D; --panel: #2B2B2B; --sidebar: #1D1D1D; --text: #FAF9F6; --muted: #C7C1B8; --line: #45413C; --accent: #E0A265; --accent-soft: #3D3024; --hover: #35322F; --selected: #3D3024; --shadow: 0 1px 2px #0002; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; color: inherit; }
button, .button { cursor: pointer; border: 0; background: transparent; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 14px; }
button:hover, .button:hover { background: var(--hover); }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--accent); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.app { display: grid; grid-template: 76px minmax(0, 1fr) / clamp(170px, var(--sidebar-size, 17%), calc(100% - 542px)) 16px minmax(0, 1fr); height: 100dvh; min-height: 0; margin: 0 auto; padding: 0 24px 24px; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; position: relative; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 0; border-radius: 0; }
.brand img { width: 120px; height: auto; }
.brand-product { font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 15px; }
.brand:hover { background: transparent; }
.view-switch { display: flex; background: var(--hover); padding: 5px; border-radius: 99px; gap: 4px; }
.view-switch button { min-width: 82px; min-height: 44px; border-radius: 99px; font-size: 14px; color: var(--muted); padding: 8px 18px; }
.view-switch button.active { background: var(--brand); color: #fff; font-weight: 600; }
.topbar > .view-switch { position: absolute; left: 50%; transform: translateX(-50%); }
.topbar > .view-switch .icon { display: none; }
.settings-link { color: var(--muted); font-size: 14px; border-radius: 99px; }
.settings-link.active { background: var(--hover); color: var(--text); }
.top-end { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.sidebar { background: var(--sidebar); padding: 8px 0 16px; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
.primary { background: var(--brand); color: #fff; font-weight: 600; border-radius: 99px; box-shadow: var(--shadow); }
.primary:hover { background: #8F4C00; }
.compose-button { width: 100%; min-height: 47px; margin-bottom: 30px; }
.section-label { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 650; color: var(--muted); margin: 0 13px 11px; }
.accounts { margin-bottom: 27px; }
.account { display: flex; width: 100%; justify-content: flex-start; padding: 11px 12px; margin-bottom: 4px; min-height: 47px; }
.account { border-radius: 16px; background: var(--panel); margin-bottom: 7px; box-shadow: var(--shadow); }
.account.active { background: var(--accent-soft); }
.provider { display: grid; place-items: center; font-size: 13px; width: 25px; height: 25px; border-radius: 7px; font-weight: 700; }
.provider.outlook { color: #3071ce; background: #e0ebfa; }
.provider.gmail { color: #b3574e; background: #f5e8e4; }
.provider.hostinger { color: #7a58aa; background: #eee6f8; }
.counter { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; min-width: 20px; }
.account.active .counter { color: var(--accent); }
.folder { width: 100%; justify-content: flex-start; padding: 9px 13px; margin: 2px 0; color: var(--muted); font-size: 14px; }
.folder.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.calendar-colors { margin-top: 30px; }
.calendar-color-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; }
.calendar-color-row span { display: flex; flex-direction: column; gap: 3px; }
.calendar-color-row small { color: var(--muted); font-size: 11px; }
input[type="color"] { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; width: 22px; height: 26px; cursor: pointer; flex-shrink: 0; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 5px 3px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-bottom button { justify-content: flex-start; color: var(--muted); font-size: 13px; width: 100%; }
.local-status { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); padding: 13px 14px 0; }
.local-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #79a58b; }
.workspace { grid-row: 2; grid-column: 3; min-width: 0; min-height: 0; overflow: hidden; display: flex; }
.app[data-page="mail"] .workspace { display: grid; grid-template-columns: clamp(230px, var(--list-size, 34%), calc(100% - 296px)) 16px minmax(0, 1fr); }
.panel-divider { display: flex; align-items: center; justify-content: center; width: 16px; min-width: 0; cursor: col-resize; touch-action: none; border-radius: 8px; }
.panel-divider::after { content: ''; width: 3px; height: 42px; border-radius: 3px; background: var(--line); }
.panel-divider:hover, .panel-divider:focus-visible { background: var(--accent-soft); outline-offset: -3px; }
.panel-divider:hover::after, .panel-divider:focus-visible::after { background: var(--accent); }
.app > .panel-divider { grid-row: 2; grid-column: 2; }
.resizing-panels, .resizing-panels * { cursor: col-resize !important; user-select: none !important; }
.mail-list-panel { min-width: 0; min-height: 0; background: var(--panel); border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.list-heading { padding: 29px 25px 18px; }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.heading-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1 { font-family: var(--heading-font); font-size: 52px; letter-spacing: -1.3px; line-height: 1.12; font-weight: 500; }
.list-heading h1 { font-family: inherit; font-size: 27px; letter-spacing: -.6px; font-weight: 600; }
.unread-summary { color: var(--muted); margin-top: 7px; font-size: 12px; }
.search { display: flex; align-items: center; gap: 9px; background: var(--bg); border-radius: 10px; margin: 1px 23px 18px; padding: 0 12px; color: var(--muted); }
.search input { min-width: 0; width: 100%; border: 0; background: transparent; outline: none; height: 42px; font-size: 13px; }
.search:focus-within { outline: 2px solid var(--accent); }
.list-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 23px 18px; }
.list-filters button { font-size: 12px; min-height: 30px; border-radius: 8px; padding: 5px 11px; color: var(--muted); }
.list-filters button.active { color: var(--text); background: var(--hover); font-weight: 600; }
.messages { overflow-y: auto; padding: 0 11px 18px; flex: 1; }
.list-date { font-size: 10px; font-weight: 650; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; padding: 9px 14px 12px; }
.message-row { position: relative; display: block; text-align: left; width: 100%; padding: 17px 15px 17px 30px; border-radius: 12px; margin-bottom: 4px; }
.message-row::after { content: ''; height: 1px; position: absolute; bottom: -2px; left: 30px; right: 15px; background: var(--line); }
.message-row.active { background: var(--selected); }
.message-row.unread::before { content: ''; position: absolute; left: 13px; top: 24px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.message-meta { display: flex; align-items: center; gap: 10px; }
.message-sender { font-size: 14px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-time { margin-left: auto; color: var(--muted); font-size: 10px; white-space: nowrap; }
.message-subject { font-size: 14px; font-weight: 550; margin-top: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-preview { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.message-attachment { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; color: var(--muted); margin-top: 10px; }
.message-attachment .icon { width: 12px; height: 12px; }
.message-reader { flex: 1; min-width: 0; background: var(--panel); overflow-y: auto; display: flex; flex-direction: column; border-radius: 24px; box-shadow: var(--shadow); }
.reader-toolbar { flex-wrap: wrap; padding: 18px clamp(12px, 2vw, 27px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; min-height: 78px; }
.icon-button { min-width: 40px; padding: 9px; color: var(--muted); }
.toolbar-divider { height: 19px; width: 1px; background: var(--line); margin: 0 9px; }
.toolbar-end { margin-left: auto; font-size: 11px; color: var(--muted); }
.is-starred { color: #b68939; }
.is-starred .icon { fill: #b6893925; }
.reader-content { max-width: 830px; width: 100%; padding: 41px 46px 28px; margin: 0 auto; }
.message-tag { display: inline-flex; padding: 5px 8px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: 10px; margin-bottom: 17px; }
.reader-title { font-family: var(--heading-font); font-weight: 500; font-size: 32px; letter-spacing: -.7px; line-height: 1.15; margin-bottom: 28px; overflow-wrap: anywhere; }
.sender-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 33px; }
.avatar { width: 43px; height: 43px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #efe9df; color: #7e6c4c; font-size: 13px; font-weight: 600; }
.sender-name { font-size: 13px; font-weight: 600; }
.sender-address { font-size: 11px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.sender-date { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; align-self: flex-start; padding-top: 6px; }
.mail-body { font-size: 16px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.attachments { margin-top: 31px; padding-top: 23px; border-top: 1px solid var(--line); }
.attachments h3 { font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 13px; }
.attachment-card { display: inline-flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--bg); max-width: 100%; }
.attachment-card > .icon { color: #ae7367; width: 27px; height: 27px; }
.attachment-card strong { font-size: 12px; display: block; font-weight: 550; overflow-wrap: anywhere; }
.attachment-card small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.attachment-card .download-icon { margin-left: 16px; color: var(--muted); width: 16px; }
.reply-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.secondary { border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 14px; font-weight: 500; padding: 11px 17px; }
.reader-bottom { margin: auto 35px 0; padding: 23px 0; font-size: 10px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; }
.reader-bottom .icon { width: 13px; height: 13px; }
.empty { padding: 50px 25px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; margin: auto; }
.empty .icon { width: 38px; height: 38px; margin-bottom: 15px; color: var(--accent); }
.empty h2 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.mobile-only, .drawer-scrim { display: none; }
/* Agenda */
.calendar-page { width: 100%; display: flex; flex-direction: column; min-width: 0; background: var(--panel); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.calendar-header { padding: 28px 34px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.calendar-heading { flex: 1; }
.calendar-heading h1 { text-transform: capitalize; font-family: inherit; font-weight: 600; font-size: 27px; letter-spacing: -.7px; }
.calendar-subtitle { color: var(--muted); font-size: 12px; margin-top: 8px; }
.calendar-navigation { display: flex; align-items: center; gap: 4px; }
.today-button { border: 1px solid var(--line); font-size: 12px; margin-right: 10px; }
.calendar-header .primary { font-size: 12px; }
.calendar-options { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 0 34px 18px; }
.calendar-options .view-switch button { min-width: 76px; }
.month-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-weekdays { position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1px solid var(--line); }
.month-weekdays span { padding: 13px; text-align: center; color: var(--muted); font-size: 12px; }
.month-day { min-height: 122px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day:nth-child(7n), .month-day:nth-child(7n - 1), .outside-month { background: var(--bg); }
.month-day.selected-day { background: var(--selected); box-shadow: inset 0 0 0 1px var(--accent); }
.month-date { padding: 0; min-height: 34px; width: 34px; font-size: 13px; margin-bottom: 5px; }
.outside-month .month-date { color: var(--muted); }
.month-date.today > span:first-child { background: var(--accent); color: var(--panel); border-radius: 50%; min-width: 30px; height: 30px; display: grid; place-items: center; }
.month-dots { display: none; }
.month-event { min-height: 28px; padding: 5px 6px; gap: 6px; justify-content: flex-start; text-align: left; border-radius: 5px; width: 100%; margin-bottom: 4px; background: color-mix(in srgb, var(--event-color) 12%, var(--panel)); border-left: 3px solid var(--event-color); font-size: 11px; }
.month-event time { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.month-event > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-more { font-size: 11px; min-height: 28px; color: var(--muted); padding: 4px 7px; }
.month-day-detail { padding: 22px 30px; }
.month-day-detail h2 { font-size: 17px; text-transform: capitalize; font-weight: 600; }
.month-day-detail .free-day { color: var(--muted); font-size: 13px; padding: 15px 0; }
.month-detail-event { width: 100%; justify-content: flex-start; text-align: left; gap: 12px; padding: 13px 0; }
.month-detail-event strong { font-size: 14px; font-weight: 550; }
.month-detail-event small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.week-scroll { overflow: auto; flex: 1; }
.week { min-width: 700px; }
.week-header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 58px repeat(7, 1fr); background: var(--panel); border-bottom: 1px solid var(--line); }
.day-heading { text-align: center; padding: 16px 4px; font-size: 11px; color: var(--muted); }
.day-heading span { display: grid; place-items: center; font-size: 22px; width: 37px; height: 37px; margin: 8px auto 0; color: var(--text); border-radius: 50%; }
.day-heading.today span { background: var(--accent); color: var(--panel); }
.week-body { display: grid; grid-template-columns: 58px repeat(7, 1fr); height: 792px; position: relative; }
.hour-labels { position: relative; }
.hour-label { position: absolute; right: 12px; color: var(--muted); font-size: 10px; transform: translateY(-50%); }
.day-column { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 65px, var(--line) 65px, var(--line) 66px); }
.day-column.weekend { background-color: var(--bg); }
.calendar-event { position: absolute; left: 5px; right: 5px; display: block; text-align: left; overflow: hidden; padding: 9px 9px; min-height: 25px; border-radius: 7px; background: color-mix(in srgb, var(--event-color) 13%, var(--panel)); border-left: 3px solid var(--event-color); color: var(--text); }
.calendar-event:hover { background: color-mix(in srgb, var(--event-color) 24%, var(--panel)); }
.calendar-event { min-height: 0; }
.calendar-event strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; }
.calendar-event small { display: block; font-size: 11px; margin-top: 5px; color: var(--muted); }
.calendar-footer { padding: 14px 30px; border-top: 1px solid var(--line); display: flex; gap: 20px; font-size: 11px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--event-color); }
.mini-month { padding: 5px 11px 0; }
.mini-month h3 { font-size: 13px; font-weight: 600; text-transform: capitalize; margin-bottom: 18px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 6px 0; font-size: 10px; }
.mini-grid span { padding: 5px 0; min-height: 22px; }
.mini-grid .mini-label { color: var(--muted); font-size: 9px; }
.mini-grid .today { background: var(--accent); color: var(--panel); border-radius: 7px; }
.sidebar-note { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 25px 13px 0; }
.agenda-list { display: none; }
/* Dialogs */
dialog { padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 25px 100px #0003; width: 620px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: #25282188; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 19px 25px 12px; }
.dialog-header h2 { font-family: var(--heading-font); font-size: 30px; font-weight: 500; letter-spacing: -.5px; }
.demo-note { color: var(--muted); font-size: 11px; line-height: 1.7; padding: 0 26px 17px; }
.compose-line { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); margin: 0 26px; min-height: 54px; }
.compose-line span { font-size: 12px; color: var(--muted); min-width: 73px; }
.compose-line input, .compose-line select { width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 14px; }
textarea { resize: vertical; width: calc(100% - 52px); margin: 5px 26px; padding: 20px 0; min-height: 230px; background: transparent; border: 0; border-top: 1px solid var(--line); line-height: 1.8; }
.dialog-footer { border-top: 1px solid var(--line); padding: 18px 25px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-footer button, .dialog-footer .button { font-size: 13px; }
.attach-label { position: relative; overflow: hidden; }
.attach-label:focus-within { outline: 2px solid var(--accent); }
.attach-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.compose-files { padding: 0 26px 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.file-chip { font-size: 11px; padding: 6px 9px; background: var(--hover); border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow-wrap: anywhere; }
.file-chip button { min-height: 26px; padding: 2px; }
.file-chip .icon { width: 14px; }
.event-fields { padding: 0 26px 15px; }
.event-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 17px; }
.event-fields input, .event-fields select { border: 1px solid var(--line); padding: 12px; border-radius: 9px; background: var(--bg); font-size: 14px; color: var(--text); min-width: 0; }
.time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error, .danger-text { color: #b65353; font-size: 12px; }
.settings-content { padding: 0 26px 20px; }
.settings-content > p:first-child { font-size: 13px; color: var(--muted); margin-bottom: 25px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 14px; }
.setting-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.setting-row select { padding: 9px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; font-size: 12px; }
.settings-content .demo-note { padding: 20px 0 0; border-top: 1px solid var(--line); }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); z-index: 10; opacity: 0; pointer-events: none; background: var(--text); color: var(--panel); border-radius: 12px; padding: 13px 22px; font-size: 13px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.sidebar { grid-row: 2; }
.app[data-page="settings"] { grid-template-columns: minmax(0, 1fr); }
.app[data-page="settings"] .workspace { grid-column: 1 / -1; overflow-y: auto; }
.settings-page { width: min(100%, 704px); margin: 0 auto; padding: 0 0 32px; }
.settings-card { background: var(--panel); border-radius: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.settings-card summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 25px; list-style: none; cursor: pointer; border-radius: 18px; }
.settings-card summary::-webkit-details-marker { display: none; }
.settings-card summary strong { display: block; font-size: 20px; line-height: 1.25; font-weight: 600; }
.settings-card summary small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.settings-card summary .icon { color: var(--muted); width: 18px; }
.settings-card[open] summary .icon { transform: rotate(180deg); }
.settings-card summary:hover { background: var(--hover); }
.settings-card-body { padding: 0 25px 22px; font-size: 14px; line-height: 1.7; }
.settings-card-body p { color: var(--muted); margin-top: 12px; }
.settings-account-list { padding: 14px 0; }
.settings-account-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.settings-account-list small { color: var(--muted); }

@media (max-width: 1200px) { .reader-content { padding: 32px 28px; } .sender-date { display: none; } .reader-title { font-size: 25px; } .calendar-header { padding-inline: 22px; gap: 10px; } }
@media (max-width: 1000px) and (min-width: 761px) { .reader-content { padding-inline: 23px; } .brand { width: auto; } .demo-badge { display: none; } .calendar-header .primary { font-size: 0; gap: 0; } .calendar-header .primary .icon { width: 20px; } }
@media (max-width: 760px) {
  :root { font-size: 16px; }
  .app { grid-template: 65px minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; padding: 0 12px calc(90px + env(safe-area-inset-bottom)); }
  .topbar { padding: 0; gap: 12px; }
  .topbar > .view-switch { position: fixed; z-index: 3; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; min-height: 66px; background: var(--panel); box-shadow: 0 8px 30px #2b2b2b26; padding: 6px; }
  .topbar > .view-switch button { flex: 1; flex-direction: column; gap: 3px; font-size: 12px; }
  .topbar > .view-switch .icon { display: block; width: 20px; height: 20px; }
  .settings-link > span { display: none; }
  .settings-link { min-width: 44px; }
  .settings-card summary { padding: 18px 20px; }
  .settings-card summary strong { font-size: 18px; }
  .settings-card-body { padding-inline: 20px; }
  .brand { width: auto; gap: 7px; }
  .brand-product { display: none; }
  .top-end { gap: 0; }
  .view-switch button { min-width: 64px; padding: 6px 9px; font-size: 12px; gap: 6px; }
  .view-switch .icon { width: 16px; }
  .sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); padding: 25px 18px; visibility: hidden; }
  .sidebar-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-open .drawer-scrim { display: block; position: fixed; inset: 0; z-index: 4; background: #11182750; border-radius: 0; }
  .mobile-only { display: inline-flex; }
  .sidebar-close { display: flex; justify-content: flex-end; margin: -10px -3px 12px; }
  .workspace { grid-column: 1; gap: 0; }
  .app[data-page="mail"] .workspace { display: flex; }
  .panel-divider { display: none; }
  .mail-list-panel { width: 100%; border: 0; }
  .message-reader { display: none; }
  .reading .mail-list-panel { display: none; }
  .reading .message-reader { display: flex; }
  .list-heading { padding: 23px 23px 19px; }
  .list-heading .eyebrow { display: flex; align-items: center; gap: 6px; }
  .list-heading .eyebrow button { font-size: 12px; min-height: 36px; padding: 0; justify-content: flex-start; }
  .list-heading .heading-line h1 { font-size: 31px; }
  .heading-line .icon-button { background: var(--accent-soft); color: var(--accent); }
  .message-row { padding-block: 20px; }
  .message-sender, .message-subject { font-size: 15px; }
  .message-preview { font-size: 13px; }
  .message-time { font-size: 11px; }
  .message-row.unread::before { top: 28px; }
  .list-filters button { min-height: 37px; font-size: 13px; }
  .reader-toolbar { padding: 11px 16px; min-height: 66px; }
  .reader-content { padding: 28px 25px; }
  .reader-title { font-size: 30px; }
  .mail-body { font-size: 15px; }
  .sender-detail { margin-bottom: 27px; }
  .sender-name { font-size: 14px; }
  .reader-bottom { margin-inline: 15px; }
  .calendar-header { flex-wrap: wrap; padding: 21px 18px; gap: 12px; }
  .calendar-heading { flex-basis: calc(100% - 70px); }
  .calendar-heading h1 { font-size: 27px; }
  .calendar-heading .eyebrow { margin-bottom: 4px; }
  .calendar-navigation { flex: 1; }
  .calendar-header > .primary { padding-inline: 15px; font-size: 13px; }
  .calendar-header > .mobile-only { order: -1; }
  .week-scroll { display: none; }
  .calendar-options { padding: 0 18px 16px; gap: 12px; }
  .calendar-options .view-switch button { min-width: 64px; min-height: 38px; }
  .month-weekdays span { padding: 12px 0; }
  .month-day { min-height: 65px; padding: 2px; }
  .month-date { width: 100%; min-height: 60px; margin: 0; flex-direction: column; gap: 6px; }
  .month-date > span:first-child { display: grid; place-items: center; height: 30px; }
  .month-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 6px; }
  .month-dots .dot { width: 5px; height: 5px; }
  .month-events { display: none; }
  .month-day-detail { padding: 16px 20px; }
  .agenda-list { display: block; overflow-y: auto; flex: 1; padding: 0 18px 20px; }
  .agenda-day { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 20px 0; border-top: 1px solid var(--line); }
  .agenda-date { font-size: 11px; color: var(--muted); text-align: center; text-transform: uppercase; }
  .agenda-date strong { display: block; font-size: 25px; color: var(--text); margin-top: 5px; }
  .agenda-date.today strong { color: var(--accent); }
  .agenda-event { display: flex; text-align: left; width: 100%; justify-content: flex-start; border-left: 3px solid var(--event-color); background: color-mix(in srgb, var(--event-color) 10%, var(--panel)); margin-bottom: 8px; padding: 15px 13px; border-radius: 8px; }
  .agenda-event strong { display: block; font-size: 14px; font-weight: 550; }
  .agenda-event small { color: var(--muted); font-size: 12px; display: block; margin-top: 7px; }
  .free-day { color: var(--muted); font-size: 12px; padding: 16px 12px; }
  .calendar-footer { padding: 17px 22px; padding-bottom: max(17px, env(safe-area-inset-bottom)); }
  dialog { border-radius: 17px; max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .dialog-header { padding-inline: 20px; }
  .compose-line { margin-inline: 20px; }
  .compose-line span { min-width: 67px; }
  .dialog-footer { padding: 14px 17px; }
  .dialog-footer .primary { font-size: 12px; }
  textarea { min-height: 180px; }
  .setting-row { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Live accounts, readable status and forms extend the approved layout. */
[hidden] { display: none !important; }
button:disabled { opacity: .45; cursor: not-allowed; }
fieldset { border: 0; min-width: 0; margin: 0; }
.account > span:last-child { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.account small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.folder > span:not(.counter) { overflow-wrap: anywhere; }
.folder-heading { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.muted, .filter-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.filter-note { margin: -4px 24px 12px; }
.inline-error, .inline-action { margin: 12px 26px; line-height: 1.65; }
.load-more { margin: 15px auto; display: flex; }
.html-mail { border: 0; width: 100%; min-height: 280px; background: var(--panel); border-radius: 8px; }
.plain-alternative { margin-top: 16px; font-size: 12px; }
.plain-alternative summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
.invitation { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.invitation p { font-size: 12px; line-height: 1.6; margin-top: 9px; overflow-wrap: anywhere; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px; background: var(--bg); }
.login-card { width: min(420px, 100%); background: var(--panel); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 34px; margin: 28px 0 12px; }
.login-card > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-card label { display: block; margin-top: 22px; font-size: 13px; }
.login-card input { display: block; width: 100%; margin-top: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 13px; border-radius: 9px; }
.login-card button { margin-top: 24px; width: 100%; }
.connection-status { position: fixed; top: 0; left: 0; right: 0; z-index: 8; padding: 5px 14px; background: var(--accent); color: white; text-align: center; font-size: 12px; }
.offline .topbar { padding-top: 16px; }
.all-day-row { display: grid; grid-template-columns: 58px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.all-day-row > span { color: var(--muted); font-size: 10px; padding: 12px 6px; }
.all-day-row > div { min-height: 38px; min-width: 0; border-left: 1px solid var(--line); padding: 3px; }
.all-day-event { display: block; width: 100%; text-align: left; padding: 5px; margin-bottom: 3px; background: color-mix(in srgb, var(--event-color) 14%, var(--panel)); border-left: 3px solid var(--event-color); font-size: 11px; }
.all-day-event small { display: none; }
.month-event strong { font-weight: 500; font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; }
.month-event small { font-size: 10px; color: var(--muted); display: block; }
.calendar-footer { flex-wrap: wrap; }
.event-fields .checkbox-label { flex-direction: row; align-items: center; }
.event-fields textarea { border: 1px solid var(--line); border-radius: 9px; width: 100%; margin: 0; min-height: 100px; padding: 12px; }
.event-responses { margin: 0 26px 18px; font-size: 13px; }
.event-fields:disabled { opacity: .7; }
.settings-account-list > div { align-items: center; overflow-wrap: anywhere; }
.settings-account-list strong, .settings-account-list small { display: block; }
@media (max-width:760px) { .login-card { padding: 25px; } .connection-status { font-size: 11px; } .html-mail { min-height: 380px; } .calendar-footer { gap: 10px; } }
