:root {
  --ink: #172235;
  --muted: #6b778b;
  --line: #e7ebf1;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --navy: #0c1729;
  --navy-soft: #18263d;
  --teal: #16b6a8;
  --teal-ink: #007e77;
  --teal-wash: #e4f8f5;
  --amber: #f1b93d;
  --shadow: 0 18px 46px rgba(22, 37, 59, .11);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; min-height: 100vh; background: var(--wash); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.app-shell { display: flex; height: 100vh; min-height: 640px; overflow: hidden; }
.product-rail { width: 68px; flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; background: var(--navy); color: #d7e3f3; padding: 17px 0 14px; }
.brand { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: linear-gradient(135deg, #22c9b9, #0c9b9a); border-radius: 13px; box-shadow: 0 7px 18px rgba(13, 189, 175, .29); }
.brand svg { width: 22px; stroke-width: 2.2; }
.rail-nav { display: grid; gap: 10px; margin-top: 39px; }
.rail-link, .icon-button { display: grid; place-items: center; border: 0; color: inherit; background: transparent; border-radius: 10px; }
.rail-link { width: 40px; height: 40px; opacity: .68; transition: .18s ease; }
.rail-link:hover, .rail-link.is-active { opacity: 1; background: var(--navy-soft); color: #fff; }
.rail-link.is-active { position: relative; color: #55e3d5; }
.rail-link.is-active::before { position: absolute; left: -14px; width: 3px; height: 19px; content: ""; border-radius: 0 3px 3px 0; background: #55e3d5; }
.rail-footer { display: grid; gap: 13px; margin-top: auto; }
.user-avatar { width: 33px; height: 33px; border: 2px solid rgba(255,255,255,.8); color: #22334d; font-weight: 750; font-size: 10px; background: #d7e3f3; border-radius: 50%; }
.folder-panel { width: 255px; flex: 0 0 255px; display: flex; flex-direction: column; padding: 20px 14px 14px; border-right: 1px solid var(--line); background: #f8fafc; }
.workspace-name { display: flex; align-items: center; height: 30px; padding: 0 5px; color: #25344a; font-weight: 760; font-size: 14px; letter-spacing: -.01em; }
.status-dot { width: 8px; height: 8px; margin-right: 9px; border-radius: 99px; background: var(--teal); box-shadow: 0 0 0 4px #ddf6f2; }
.workspace-name .icon-button { width: 24px; height: 24px; margin-left: auto; color: var(--muted); }
.workspace-name svg { width: 15px; }
.compose-button { display: flex; align-items: center; width: 100%; height: 44px; gap: 10px; margin: 24px 0 22px; padding: 0 13px; border: 0; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 750; text-align: left; background: var(--teal-ink); box-shadow: 0 7px 13px rgba(0, 126, 119, .16); transition: .18s ease; }
.compose-button:hover { background: #006f69; transform: translateY(-1px); }
.compose-button svg { width: 17px; }
kbd { border: 1px solid currentColor; border-radius: 4px; color: inherit; font: 600 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0 4px; opacity: .58; }
.compose-button kbd { margin-left: auto; }
.mailbox-label { display: flex; align-items: center; padding: 0 9px 8px; color: #8893a4; font-size: 10px; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; }
.tiny-button { width: 20px; height: 20px; margin-left: auto; border: 0; border-radius: 5px; color: #758297; background: transparent; font-size: 18px; line-height: 1; }
.tiny-button:hover { color: var(--ink); background: #edf1f6; }
.folder-list { display: grid; gap: 2px; }
.folder-link { position: relative; display: flex; align-items: center; min-width: 0; height: 36px; gap: 10px; padding: 0 10px; border: 0; border-radius: 8px; color: #5c6a7e; font-size: 13px; text-align: left; background: transparent; }
.folder-link:hover { color: var(--ink); background: #eef2f7; }
.folder-link.is-active { color: #166d69; font-weight: 700; background: var(--teal-wash); }
.folder-link svg { width: 17px; }
.folder-link .count { margin-left: auto; color: inherit; font-size: 11px; font-weight: 750; }
.folder-link .count.is-alert { color: var(--teal-ink); }
.folder-spacer { flex: 1; }
.storage-card { margin: 10px 1px 0; padding: 12px 11px 10px; border: 1px solid #e6ebf0; border-radius: 10px; background: #fff; }
.storage-heading { display: flex; justify-content: space-between; color: #536178; font-size: 11px; font-weight: 700; }
.storage-heading strong { color: var(--ink); }
.storage-card p { margin: 8px 0 0; color: #99a4b3; font-size: 10px; }
.progress { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: #e9edf2; }
.progress i { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--teal); }
.mail-area { min-width: 0; flex: 1; display: flex; background: var(--paper); }
.message-panel { width: min(385px, 38vw); min-width: 300px; flex: 0 0 min(385px, 38vw); display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fff; }
.message-header { display: flex; align-items: center; gap: 9px; padding: 18px 18px 0; }
.search-control { min-width: 0; flex: 1; display: flex; align-items: center; height: 37px; padding: 0 9px; gap: 7px; border: 1px solid #e3e9f0; border-radius: 9px; color: #8390a3; background: #f8fafc; transition: .18s ease; }
.search-control:focus-within { border-color: #78cfc6; box-shadow: 0 0 0 3px #e5f8f5; background: #fff; }
.search-control svg { width: 16px; }
.search-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 12px; background: transparent; }
.search-control input::placeholder { color: #99a5b4; }
.search-control kbd { color: #8b98a9; }
.icon-button { width: 32px; height: 32px; color: #778498; }
.icon-button:hover { color: var(--ink); background: #f0f3f7; }
.icon-button svg { width: 18px; }
.mailbox-title-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 12px; }
.mailbox-title-row h1 { margin: 0; color: #172335; font-size: 22px; line-height: 1.08; letter-spacing: -.045em; }
.mailbox-title-row p { margin: 4px 0 0; color: #8793a4; font-size: 11px; }
.tabs { display: flex; gap: 20px; height: 35px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.tab { position: relative; padding: 0; border: 0; color: #8a96a8; font-size: 12px; font-weight: 700; background: transparent; }
.tab.is-active { color: #1f2d41; }
.tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; border-radius: 2px 2px 0 0; background: var(--teal); }
.list-toolbar { display: flex; align-items: center; height: 38px; padding: 0 15px 0 19px; border-bottom: 1px solid #f0f2f5; }
.check-control { display: grid; place-items: center; width: 20px; height: 20px; cursor: pointer; }
.check-control input { position: absolute; opacity: 0; pointer-events: none; }
.check-control span { width: 14px; height: 14px; border: 1.5px solid #b6c0cc; border-radius: 4px; background: #fff; }
.check-control input:checked + span { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 0; border-radius: 6px; color: #778498; font-size: 11px; font-weight: 700; background: transparent; }
.text-button:hover { color: var(--ink); background: #f2f4f7; }
.text-button svg { width: 14px; }
.list-toolbar .text-button { margin-left: auto; }
.icon-button.compact { width: 27px; height: 27px; margin-left: 4px; }
.message-list { min-height: 0; overflow: auto; }
.message-row { position: relative; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; grid-template-rows: auto auto auto; column-gap: 10px; min-height: 88px; padding: 13px 15px 11px 18px; border: 0; border-bottom: 1px solid #eff2f5; color: inherit; text-align: left; background: #fff; transition: .13s ease; }
.message-row:hover { background: #f8fafc; }
.message-row.is-selected { background: #ecf8f7; }
.message-row.is-unread .sender, .message-row.is-unread .subject { color: #202d40; font-weight: 780; }
.message-row.is-unread::before { position: absolute; top: 20px; left: 7px; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--teal); }
.message-row .avatar { grid-row: 1 / 4; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 10px; font-weight: 800; }
.message-row .sender { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5d697a; font-size: 12px; font-weight: 650; }
.message-row .time { color: #8a96a8; font-size: 10px; font-weight: 650; }
.message-row .subject { grid-column: 2 / 4; overflow: hidden; margin-top: 3px; color: #536075; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.message-row .preview { grid-column: 2 / 4; overflow: hidden; margin-top: 3px; color: #9aa5b4; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.reading-panel { min-width: 0; flex: 1; overflow: auto; background: #fff; }
.empty-reading { display: grid; min-height: 100%; place-content: center; justify-items: center; padding: 40px; color: #8793a4; text-align: center; }
.empty-orb { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 15px; border-radius: 17px; color: var(--teal-ink); background: var(--teal-wash); }
.empty-orb svg { width: 26px; }
.empty-reading h2 { margin: 0 0 6px; color: #3a4759; font-size: 15px; }
.empty-reading p { margin: 0; font-size: 12px; }
.reading-content { min-height: 100%; display: flex; flex-direction: column; }
.reading-toolbar { display: flex; align-items: center; min-height: 68px; padding: 0 30px; border-bottom: 1px solid var(--line); }
.reading-actions { display: flex; gap: 2px; }
.reading-actions .icon-button { width: 35px; height: 35px; }
.reading-actions .icon-button.is-favorited { color: var(--amber); }
.reading-meta { margin-left: auto; color: #8692a4; font-size: 11px; }
.message-body { width: min(760px, 100%); padding: 39px clamp(24px, 4vw, 61px) 50px; }
.message-subject { margin: 0; color: #182538; font-size: clamp(21px, 2.3vw, 29px); line-height: 1.15; letter-spacing: -.045em; }
.sender-row { display: flex; align-items: center; margin: 30px 0 32px; }
.sender-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; margin-right: 11px; border-radius: 12px; font-size: 12px; font-weight: 800; }
.sender-details { min-width: 0; }
.sender-details strong { display: block; overflow: hidden; color: #2a384b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.sender-details span { display: block; overflow: hidden; margin-top: 3px; color: #8b97a7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.message-date { margin-left: auto; color: #8b97a7; font-size: 11px; text-align: right; }
.message-copy { color: #3e4b5e; font-size: 14px; line-height: 1.8; }
.message-copy p { margin: 0 0 18px; }
.message-copy a { color: var(--teal-ink); font-weight: 680; text-decoration: none; }
.attachment { display: flex; align-items: center; width: min(100%, 330px); margin: 30px 0; padding: 11px 12px; border: 1px solid #dfe6eb; border-radius: 10px; background: #fbfcfd; }
.file-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-right: 10px; border-radius: 8px; color: #6a61bd; background: #eeebff; font-size: 10px; font-weight: 850; }
.file-info { min-width: 0; flex: 1; }
.file-info strong, .file-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info strong { color: #445267; font-size: 11px; }
.file-info span { margin-top: 3px; color: #9aa5b4; font-size: 10px; }
.attachment .icon-button { width: 28px; height: 28px; }
.reply-box { display: flex; align-items: center; gap: 12px; margin-top: 37px; padding: 12px 14px; border: 1px solid #e1e7ed; border-radius: 10px; color: #8894a4; font-size: 12px; background: #fbfcfd; }
.reply-box .user-avatar { flex: 0 0 31px; width: 31px; height: 31px; border-color: #fff; }
.reply-box button { margin-left: auto; }
.compose-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(7, 16, 30, .35); opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.compose-modal.is-open { opacity: 1; pointer-events: auto; }
.compose-card { width: min(648px, 100%); min-height: 490px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.6); border-radius: 15px; background: #fff; box-shadow: 0 27px 70px rgba(9, 25, 48, .27); transform: translateY(8px) scale(.985); transition: transform .18s ease; }
.compose-modal.is-open .compose-card { transform: translateY(0) scale(1); }
.compose-card header { display: flex; align-items: center; justify-content: space-between; padding: 19px 20px 14px; border-bottom: 1px solid #edf0f4; }
.eyebrow { color: var(--teal-ink); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.compose-card h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.03em; }
.compose-fields { padding: 0 20px; }
.compose-fields label { display: flex; align-items: center; min-height: 46px; border-bottom: 1px solid #edf0f4; }
.compose-fields label span { width: 58px; color: #788496; font-size: 12px; font-weight: 700; }
.compose-fields input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 13px; }
.compose-fields input::placeholder, .compose-card textarea::placeholder { color: #adb6c2; }
.compose-card textarea { width: 100%; flex: 1; min-height: 190px; padding: 20px; border: 0; resize: none; outline: 0; color: #2f3c50; font-size: 13px; line-height: 1.7; }
.compose-card footer { display: flex; align-items: center; justify-content: space-between; min-height: 57px; padding: 0 14px 0 17px; border-top: 1px solid #edf0f4; }
.compose-tools, .send-actions { display: flex; align-items: center; gap: 4px; }
.format-button { display: grid; width: 29px; height: 29px; place-items: center; border: 0; border-radius: 6px; color: #778498; background: transparent; }
.format-button:hover { background: #eff3f5; color: #22324a; }
.format-button svg { width: 17px; }
.send-button { display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 13px; border: 0; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 750; background: var(--teal-ink); }
.send-button:hover { background: #00716b; }
.send-button svg { width: 14px; }
.toast { position: fixed; z-index: 20; bottom: 24px; left: 50%; padding: 10px 14px; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 650; background: #203049; box-shadow: 0 10px 24px rgba(16,28,49,.2); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 920px) { .folder-panel { width: 220px; flex-basis: 220px; } .message-panel { width: 340px; flex-basis: 340px; } .reading-toolbar { padding: 0 18px; } }
@media (max-width: 750px) { .app-shell { min-height: 100svh; } .product-rail { width: 55px; flex-basis: 55px; padding-top: 12px; } .brand { width: 34px; height: 34px; } .rail-link { width: 37px; height: 37px; } .rail-link.is-active::before { left: -8px; } .folder-panel { display: none; } .message-panel { width: 100%; flex: 1; min-width: 0; } .reading-panel { display: none; } .mail-area:has(.reading-content) .message-panel { display: none; } .mail-area:has(.reading-content) .reading-panel { display: block; } .mail-area:has(.reading-content) .reading-toolbar::before { content: "←"; margin-right: 8px; color: #647287; font-size: 19px; } .message-body { padding: 28px 22px 40px; } }
@media (max-width: 440px) { .product-rail { display: none; } .message-header { padding: 15px 14px 0; } .mailbox-title-row { padding: 19px 14px 11px; } .tabs { padding: 0 14px; } .message-row { padding-left: 16px; } .compose-modal { padding: 0; align-items: end; } .compose-card { min-height: 530px; border-radius: 15px 15px 0 0; } }
