@charset "UTF-8";

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --ink: #202236;
  --muted: #8b8e9f;
  --muted-dark: #666a7d;
  --line: #ececf3;
  --purple: #7763ee;
  --purple-dark: #6551df;
  --purple-soft: #f0edff;
  --green: #36b788;
  --orange: #ed9b49;
  --sidebar: #191b2f;
  --shadow: 0 8px 30px rgba(34, 37, 65, .055);
  --radius: 16px;
  font-family: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; background: var(--bg); font-size: 14px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b8adff; outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.app-shell { min-height: 100vh; }
.sidebar { width: 238px; position: fixed; inset: 0 auto 0 0; background: var(--sidebar); color: #c6c7d6; display: flex; flex-direction: column; padding: 28px 18px 18px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; color: white; font-size: 25px; font-weight: 750; letter-spacing: -.8px; padding: 0 9px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(140deg, #9a85ff, #6550df); box-shadow: 0 5px 15px #6c54ee42; }
.brand-mark svg { width: 30px; height: 30px; }
.brand-dot { color: #a794ff; }
.workspace-switch { margin: 30px 3px 27px; padding: 11px 10px; border: 1px solid #ffffff0c; background: #ffffff05; border-radius: 11px; display: flex; align-items: center; gap: 10px; }
.workspace-avatar { width: 32px; height: 32px; border-radius: 9px; background: #ffffff0d; color: #c8bcff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.workspace-switch strong, .workspace-switch small { display: block; }
.workspace-switch strong { font-size: 12px; color: #eeeef5; font-weight: 550; }
.workspace-switch small { color: #797c92; font-size: 10px; margin-top: 4px; }
.workspace-switch .icon { width: 14px; margin-left: auto; color: #85889c; }
.main-nav { flex: 1; }
.nav-label { margin: 0 12px 11px; font-size: 10px; color: #676a80; letter-spacing: 1.4px; }
.nav-label-second { margin-top: 30px; }
.nav-item { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 13px; margin: 3px 0; border-radius: 9px; color: #9a9cb0; font-size: 13px; text-align: left; transition: .2s ease; }
.nav-item:hover { background: #ffffff08; color: #dedee8; }
.nav-item.active { background: linear-gradient(100deg, #7864ee2e, #7864ee12); color: #c6baff; }
.nav-item.active .icon { color: #ae9cff; }
.nav-active-dot { width: 5px; height: 5px; border-radius: 50%; background: #a18cff; margin-left: auto; box-shadow: 0 0 8px #a18cff; }
.nav-count { margin-left: auto; background: #ffffff0d; border-radius: 5px; padding: 2px 7px; font-size: 10px; color: #a7a9bb; }
.sidebar-bottom { margin-top: 20px; }
.pro-card { position: relative; overflow: hidden; background: linear-gradient(145deg, #302c4c, #24243c); border: 1px solid #ffffff08; border-radius: 13px; padding: 17px 15px 14px; margin: 0 3px 19px; }
.pro-card::after { content: ""; width: 100px; height: 100px; border-radius: 50%; position: absolute; right: -52px; top: -55px; background: #8a70ef1c; }
.pro-icon { width: 30px; height: 30px; border-radius: 9px; background: #8b72f326; color: #ab96ff; display: grid; place-items: center; margin-bottom: 11px; }
.pro-icon .icon { width: 17px; }
.pro-card strong { color: #e4e2ef; font-size: 12px; display: block; font-weight: 550; }
.pro-card p { font-size: 10px; line-height: 1.75; color: #8b8ba2; margin: 7px 0 11px; }
.pro-card button { border: 0; padding: 0; background: none; color: #b8a8ff; font-size: 10px; display: flex; align-items: center; gap: 6px; }
.pro-card button .icon { width: 13px; height: 13px; }
.user-profile { width: 100%; border: 0; border-top: 1px solid #ffffff08; padding: 18px 5px 1px; background: none; display: flex; align-items: center; gap: 10px; text-align: left; }
.avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 650; flex-shrink: 0; }
.avatar-user { width: 35px; height: 35px; background: linear-gradient(145deg, #e7d8c9, #c9b9ad); color: #594b46; font-size: 11px; border: 2px solid #ffffff45; }
.user-profile strong, .user-profile small { display: block; }
.user-profile strong { color: #e5e5ed; font-size: 11px; font-weight: 550; }
.user-profile small { color: #73768c; font-size: 9px; margin-top: 4px; }
.user-profile > .icon { width: 15px; margin-left: auto; color: #74778d; }
.sidebar-scrim { display: none; }

.main-shell { margin-left: 238px; min-height: 100vh; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 35px; background: rgba(255, 255, 255, .8); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: #9a9cab; font-size: 12px; }
.breadcrumb .icon { width: 12px; height: 12px; color: #b9bbc7; }
.breadcrumb strong { color: #56596c; font-weight: 500; }
.topbar-actions { gap: 16px; }
.global-search { width: 245px; height: 35px; display: flex; align-items: center; gap: 9px; padding: 0 11px; background: #f6f7fa; border: 1px solid #eeeeF3; border-radius: 9px; color: #a0a2b1; }
.global-search .icon { width: 15px; height: 15px; }
.global-search input { border: 0; outline: 0; background: none; min-width: 0; width: 100%; font-size: 11px; color: var(--ink); }
.global-search input::placeholder { color: #a4a6b4; }
.global-search kbd { font-family: inherit; white-space: nowrap; font-size: 9px; color: #a7a8b5; background: white; border: 1px solid #e9eaf0; border-radius: 4px; padding: 2px 5px; }
.icon-button { border: 0; background: transparent; width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; color: #85889a; transition: .18s ease; }
.icon-button:hover { background: #f0eef9; color: var(--purple); }
.notification-button { position: relative; }
.notification-button > span { width: 5px; height: 5px; background: #f1847c; border: 1.5px solid white; border-radius: 50%; position: absolute; top: 7px; right: 8px; }
.topbar-divider { width: 1px; height: 23px; background: var(--line); }
.topbar-actions > .avatar { width: 32px; height: 32px; border: 0; font-size: 10px; }
.menu-button { display: none; }

.content { padding: 33px 35px 20px; max-width: 1570px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #a09cac; font-size: 8px; letter-spacing: 1.6px; font-weight: 600; margin-bottom: 8px; }
.eyebrow > span { width: 14px; height: 2px; background: #9683f7; border-radius: 2px; }
h1 { font-size: 29px; line-height: 1.25; letter-spacing: -.8px; margin: 0; font-weight: 700; }
.title-wave { display: inline-block; color: #b6a7ff; font-size: 24px; margin-left: 4px; transform: rotate(10deg); }
.page-heading p { color: var(--muted); font-size: 12px; margin: 9px 0 0; }
.heading-actions { display: flex; gap: 10px; padding-top: 8px; }
.button { height: 39px; padding: 0 16px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: white; background: linear-gradient(135deg, #826ff3, #6b55df); box-shadow: 0 5px 13px #7863ea2b; }
.button-primary:hover { box-shadow: 0 7px 18px #7863ea3d; background: linear-gradient(135deg, #8b78f6, #705ce4); }
.button-secondary { background: white; border-color: #e7e7ef; color: #676a7d; box-shadow: 0 2px 4px #24233d02; }
.button-secondary:hover { border-color: #d8d2f3; color: var(--purple); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 19px 15px; min-height: 154px; box-shadow: var(--shadow); overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.purple { background: #f0edff; color: #806ae9; }
.stat-icon.blue { background: #edf4ff; color: #6796e5; }
.stat-icon.green { background: #eaf9f2; color: #51af8d; }
.stat-icon.glass { background: #ffffff16; color: #e2daff; border: 1px solid #ffffff12; }
.stat-trend { display: flex; align-items: center; gap: 3px; color: #999cab; font-size: 9px; }
.stat-trend .icon { width: 11px; height: 11px; transform: rotate(-45deg); }
.stat-trend.positive { color: #42ae89; background: #edf9f3; border-radius: 5px; padding: 4px 6px; }
.stat-card > p { color: #8e91a0; font-size: 11px; margin: 14px 0 4px; }
.stat-value { font-size: 29px; font-weight: 700; line-height: 1.15; letter-spacing: -.7px; }
.stat-value small { font-size: 11px; color: #9a9cab; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.stat-value.value-time { font-size: 25px; line-height: 1.35; }
.stat-foot { border-top: 1px solid #f1f1f5; margin-top: 13px; padding-top: 10px; display: flex; align-items: center; gap: 7px; color: #a0a2af; font-size: 9px; min-height: 24px; }
.stat-foot .icon { width: 12px; height: 12px; }
.mini-providers { display: flex; padding-left: 2px; }
.mini-providers i { font-size: 8px; font-style: normal; margin-left: -2px; -webkit-text-stroke: 2px white; }
.icloud { color: #5c9fea; }.outlook { color: #4e91e9; }.gmx { color: #e4a234; }
.tiny-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; flex-shrink: 0; }
.tiny-dot.orange { background: #efa153; }.tiny-dot.green { background: var(--green); }
.status-pill { font-size: 9px; color: #45aa87; display: flex; align-items: center; gap: 5px; background: #eff9f4; padding: 4px 7px; border-radius: 5px; }
.status-pill > span, .sync-status > span { width: 5px; height: 5px; background: #43b68b; border-radius: 50%; box-shadow: 0 0 0 3px #43b68b13; }
.sync-status.pending { color: #9b91bc; }
.sync-status.pending > span { background: #a79acb; box-shadow: 0 0 0 3px #a79acb13; }
.sync-status.error { color: #d47878; }
.sync-status.error > span { background: #d47878; box-shadow: 0 0 0 3px #d4787813; }
.stat-card-accent { color: white; background: linear-gradient(135deg, #2c2948 0%, #393159 60%, #493b70 100%); border: 0; }
.stat-card-accent > p { color: #b8b2ce; }
.stat-card-accent .stat-value small { color: #c0b9d6; }
.stat-card-accent .stat-foot { color: #aba3c4; border-color: #ffffff10; }
.stat-card-accent .stat-trend.light { color: #d3c8ff; background: #ffffff0c; padding: 4px 7px; border-radius: 5px; }
.stat-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { width: 130px; height: 130px; right: -48px; top: -66px; background: #a88bff1c; }
.orb-two { width: 80px; height: 80px; right: -16px; bottom: -54px; border: 14px solid #a88bff0b; }

.provider-strip { background: white; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; padding: 14px 19px; margin-bottom: 29px; box-shadow: 0 4px 18px #30304c03; gap: 20px; }
.provider-strip-title { display: flex; align-items: center; gap: 12px; flex: 1; }
.provider-strip-icon { width: 36px; height: 36px; background: #f7f5ff; color: #8c79e7; border-radius: 10px; display: grid; place-items: center; }
.provider-strip-icon .icon { width: 17px; }
.provider-strip-title strong, .provider-strip-title small { display: block; }
.provider-strip-title strong { font-size: 11px; font-weight: 600; }
.provider-strip-title small { font-size: 9px; color: #9da0ae; margin-top: 5px; }
.provider-logos { display: flex; align-items: center; gap: 24px; }
.provider-logos > span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #707386; font-weight: 550; }
.provider-logo { width: 25px; height: 25px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 17px; font-weight: 700; font-style: normal; }
.icloud-logo { color: white; background: linear-gradient(145deg, #68b5f4, #4286dd); font-family: Arial, sans-serif; }
.outlook-logo { color: white; background: linear-gradient(145deg, #54a2ee, #2871cf); font-family: Arial, sans-serif; font-size: 15px; box-shadow: inset 0 0 0 1px #ffffff25; }
.gmx-logo { color: white; background: linear-gradient(145deg, #f4bd4c, #e5991c); font-family: Arial, sans-serif; font-size: 14px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: #806ce3; font-size: 11px; padding: 6px 0 6px 8px; white-space: nowrap; }
.text-button .icon { width: 13px; height: 13px; }
.text-button:hover { color: #5740cc; }
.text-button.muted { color: #8f92a1; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-header h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.section-header h2 > span { font-size: 10px; color: #8b7fe1; background: #ede9fc; padding: 3px 7px; border-radius: 6px; font-weight: 550; }
.section-header p { font-size: 10px; color: #a2a4b1; margin: 6px 0 0; }
.account-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 17px; }
.filter-tabs { display: flex; align-items: center; gap: 3px; background: #eceef4; padding: 4px; border-radius: 9px; }
.filter-tab { border: 0; background: transparent; height: 29px; padding: 0 12px; border-radius: 7px; font-size: 10px; color: #8c8f9f; display: flex; align-items: center; gap: 5px; transition: .18s; }
.filter-tab span { font-size: 9px; color: #a5a7b5; }
.filter-tab.active { background: white; color: #5f536f; box-shadow: 0 2px 7px #2b2c4310; }
.filter-tab.active span { color: #8c7bdf; }
.filter-dot { width: 6px; height: 6px; border-radius: 50%; }
.icloud-dot { background: #63a6ec; }.outlook-dot { background: #5d87d7; }.gmx-dot { background: #e8b14c; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.account-search { width: 175px; height: 33px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e8e9f0; background: white; border-radius: 8px; color: #a0a2b0; }
.account-search .icon { width: 14px; height: 14px; }
.account-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 10px; color: var(--ink); }
.account-search input::placeholder { color: #aaacb8; }
.sort-button { border: 0; background: none; font-size: 10px; color: #888b9c; display: flex; align-items: center; gap: 5px; padding: 5px; }
.sort-button .icon { width: 12px; height: 12px; }
.view-toggle { display: flex; border: 1px solid #e6e7ee; border-radius: 8px; padding: 2px; background: white; }
.view-toggle button { width: 27px; height: 26px; border: 0; background: transparent; border-radius: 5px; display: grid; place-items: center; color: #aaaeba; }
.view-toggle button.active { color: #806de2; background: #f1eefb; }
.view-toggle .icon { width: 14px; height: 14px; }

.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-card { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 15px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; min-width: 0; }
.account-card::before { content: ""; position: absolute; width: 65px; height: 65px; border-radius: 50%; right: -32px; top: -31px; background: var(--account-tint); opacity: .09; }
.account-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #39335512; border-color: #dcd7ef; }
.account-card.is-paused { opacity: .68; }
.account-card-top { display: flex; align-items: center; gap: 11px; }
.account-card .provider-logo { width: 39px; height: 39px; border-radius: 12px; font-size: 23px; flex-shrink: 0; box-shadow: 0 4px 9px #5687c514; }
.account-card .outlook-logo { font-size: 20px; }
.account-card .gmx-logo { font-size: 18px; }
.account-identity { min-width: 0; flex: 1; }
.account-identity h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity p { margin: 0; color: #9699a9; font-size: 10px; display: flex; align-items: center; gap: 5px; }
.account-identity p > span { width: 4px; height: 4px; background: #c5c7d0; border-radius: 50%; }
.account-card-menu { position: relative; }
.account-menu-button { border: 0; background: transparent; color: #a3a5b3; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; }
.account-menu-button:hover { color: var(--purple); background: var(--purple-soft); }
.account-menu-button .icon { width: 17px; }
.account-menu { display: none; position: absolute; top: 28px; right: 0; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 9px 30px #24233c18; padding: 5px; z-index: 10; width: 116px; }
.account-menu.open { display: block; }
.account-menu button { width: 100%; border: 0; background: none; padding: 8px 9px; border-radius: 5px; text-align: left; color: #747789; font-size: 10px; }
.account-menu button:hover { background: #f7f6fb; color: var(--purple); }
.account-menu button.danger { color: #d47878; }
.account-latest { margin: 17px 0 13px; background: #f8f9fc; border-radius: 9px; padding: 10px 11px; min-width: 0; }
.account-latest small { color: #a0a3b0; font-size: 8px; display: flex; align-items: center; justify-content: space-between; }
.account-latest strong { display: block; font-size: 10px; font-weight: 500; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #66697a; }
.account-latest .unread-label { color: #8370e7; }
.account-stats { display: flex; align-items: center; gap: 8px; color: #9497a7; font-size: 9px; }
.account-stats strong { color: #535669; font-weight: 600; font-size: 10px; }
.account-stats .stat-separator { width: 1px; height: 10px; background: #e8e9ef; margin: 0 2px; }
.account-stats .synced { margin-left: auto; color: #65ab8e; display: flex; align-items: center; gap: 4px; }
.account-stats .synced > span { width: 4px; height: 4px; border-radius: 50%; background: #55b38d; }
.account-stats .synced.paused { color: #b1a078; }
.account-stats .synced.paused > span { background: #c8aa6b; }
.account-stats .synced.pending { color: #9b91bc; }
.account-stats .synced.pending > span { background: #a79acb; }
.account-stats .synced.error { color: #d47878; }
.account-stats .synced.error > span { background: #d47878; }
.account-card-footer { border-top: 1px solid #f0f1f5; margin-top: 13px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.account-sync-time { font-size: 9px; color: #a3a5b2; display: flex; align-items: center; gap: 5px; }
.account-sync-time .icon { width: 11px; height: 11px; }
.open-mailbox { border: 0; padding: 0; background: none; color: #8070d5; font-size: 10px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.open-mailbox .icon { width: 13px; height: 13px; transition: transform .2s; }
.open-mailbox:hover .icon { transform: translateX(3px); }
.unread-badge { background: #ede9fd; color: #7a66dd; font-size: 8px; border-radius: 5px; padding: 2px 5px; margin-left: 2px; }
.add-account-card { min-height: 225px; border: 1.5px dashed #dcd9e9; border-radius: var(--radius); background: #f8f7fc88; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9892ab; transition: .2s; }
.add-account-card:hover { border-color: #a898ee; background: #f4f1ff; color: #7d6bd5; }
.add-account-icon { width: 42px; height: 42px; border-radius: 13px; background: #eeebf8; color: #9a8cdb; display: grid; place-items: center; margin-bottom: 12px; }
.add-account-icon .icon { width: 20px; }
.add-account-card strong { font-size: 11px; font-weight: 550; }
.add-account-card small { font-size: 9px; color: #aaa6b7; margin-top: 6px; }
.account-grid.list-view { grid-template-columns: 1fr; gap: 9px; }
.list-view .account-card { min-height: auto; display: grid; grid-template-columns: minmax(190px, 1.1fr) minmax(150px, 1fr) minmax(120px, .7fr) minmax(135px, .8fr); align-items: center; gap: 18px; padding: 13px 17px; }
.list-view .account-latest { margin: 0; background: none; padding: 0 15px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; }
.list-view .account-card-footer { margin: 0; padding: 0; border: 0; }
.list-view .add-account-card { min-height: 88px; flex-direction: row; gap: 12px; }
.list-view .add-account-icon { margin: 0; width: 33px; height: 33px; border-radius: 10px; }
.list-view .add-account-card small { margin: 0; }
.empty-state { text-align: center; padding: 55px 20px; color: #8e91a1; }
.empty-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #ece9f9; color: #9b8adf; }
.empty-state h3 { color: #55596c; font-size: 15px; margin: 15px 0 7px; }
.empty-state p { font-size: 11px; margin: 0 0 18px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e9eaf0; color: #aaaeba; font-size: 9px; }
.page-footer > span:first-child { display: flex; align-items: center; gap: 6px; }

/* Mailbox */
.mailbox-view { padding: 20px 25px 25px; max-width: 1600px; margin: 0 auto; animation: pageIn .25s ease; }
.mailbox-header { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.back-button { height: 35px; font-size: 11px; padding: 0 12px; }
.mailbox-account-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mailbox-account-title .provider-logo { width: 32px; height: 32px; border-radius: 10px; font-size: 20px; }
.mailbox-account-title strong, .mailbox-account-title small { display: block; }
.mailbox-account-title strong { font-size: 13px; font-weight: 600; }
.mailbox-account-title small { font-size: 9px; color: #a1a3b1; margin-top: 4px; }
.mailbox-header-actions { display: flex; align-items: center; gap: 7px; }
.sync-status { font-size: 10px; color: #6ca88f; display: flex; align-items: center; gap: 6px; margin-right: 8px; }
.mailbox-layout { display: grid; grid-template-columns: 178px minmax(285px, .85fr) minmax(330px, 1.15fr); gap: 14px; height: calc(100vh - 155px); min-height: 550px; }
.folder-panel, .message-list-panel, .message-detail { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.folder-panel { padding: 15px 11px; display: flex; flex-direction: column; }
.compose-button { width: 100%; height: 37px; border: 0; border-radius: 9px; background: linear-gradient(135deg, #826ff3, #6b55df); color: white; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; box-shadow: 0 5px 12px #7863ea26; margin-bottom: 18px; }
.compose-button .icon { width: 15px; }
.folder-nav { display: flex; flex-direction: column; gap: 3px; }
.folder-item { border: 0; background: transparent; border-radius: 8px; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 9px; font-size: 11px; color: #858899; text-align: left; }
.folder-item .icon { width: 15px; height: 15px; }
.folder-item > span:last-child { margin-left: auto; font-size: 9px; color: #aaaeba; }
.folder-item:hover { background: #f7f6fb; }
.folder-item.active { background: #f0edfd; color: #7865dc; font-weight: 550; }
.folder-item.active > span:last-child { color: #8d7ce4; }
.storage-card { border-top: 1px solid var(--line); margin-top: auto; padding: 17px 7px 3px; }
.storage-card > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: #9a9cab; }
.storage-card strong { font-size: 8px; font-weight: 500; color: #7b7e90; }
.storage-track { height: 4px; border-radius: 3px; background: #efeff5; margin: 10px 0 8px; overflow: hidden; }
.storage-track span { display: block; height: 100%; width: 70%; background: linear-gradient(90deg, #9884ee, #7460df); border-radius: inherit; }
.storage-card small { color: #b0b2bf; font-size: 8px; }
.message-list-panel { display: flex; flex-direction: column; }
.message-list-toolbar { padding: 19px 17px 12px; display: flex; align-items: center; justify-content: space-between; }
.message-list-toolbar h2 { font-size: 16px; margin: 0; font-weight: 650; }
.message-list-toolbar span { color: #a0a3b1; font-size: 9px; display: block; margin-top: 4px; }
.message-list-toolbar .icon-button { width: 29px; height: 29px; background: #f7f6fb; color: #9184cf; }
.message-list-toolbar .icon-button .icon { width: 15px; }
.mail-search { margin: 0 13px 11px; display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; background: #f7f8fb; border: 1px solid #eeeeF4; border-radius: 8px; color: #a2a5b3; }
.mail-search .icon { width: 13px; height: 13px; }
.mail-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; color: var(--ink); }
.mail-search input::placeholder { color: #a7a9b7; }
.message-list { overflow-y: auto; flex: 1; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: #e0ddeb transparent; }
.message-item { padding: 13px 10px; border-radius: 9px; display: grid; grid-template-columns: 31px 1fr 16px; gap: 9px; cursor: pointer; border: 1px solid transparent; transition: .16s; position: relative; }
.message-item:hover { background: #f8f7fc; }
.message-item.active { background: #f1eefc; border-color: #eae5fb; }
.message-item.active::before { content: ""; position: absolute; left: -1px; top: 15px; bottom: 15px; width: 3px; border-radius: 2px; background: #8874e7; }
.sender-avatar { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 650; background: var(--sender-bg, #ece8fb); color: var(--sender-color, #7967cb); }
.message-preview { min-width: 0; }
.message-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.message-preview-top strong { font-size: 10px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-preview-top time { font-size: 8px; color: #a4a6b3; white-space: nowrap; }
.message-preview h4 { font-size: 10px; margin: 5px 0 4px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-preview p { margin: 0; font-size: 9px; color: #a2a5b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.message-item.unread .message-preview-top strong, .message-item.unread .message-preview h4 { font-weight: 700; color: #3b3d50; }
.message-item.unread .message-preview-top strong::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8a74e8; margin-left: 5px; vertical-align: 1px; }
.star-button { border: 0; background: none; padding: 1px; color: #c6c7d2; align-self: start; }
.star-button .icon { width: 14px; height: 14px; }
.star-button.starred { color: #e8b14c; }
.star-button.starred .icon { fill: #f8d47f; }
.message-detail { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e0ddeb transparent; }
.detail-toolbar { height: 55px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 19px; position: sticky; top: 0; background: #ffffffee; backdrop-filter: blur(8px); z-index: 2; }
.detail-toolbar-actions { display: flex; align-items: center; gap: 4px; }
.detail-toolbar .icon-button { width: 29px; height: 29px; }
.detail-toolbar .icon { width: 15px; height: 15px; }
.detail-content { padding: 25px 28px; }
.detail-content h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.3px; margin: 0 0 23px; font-weight: 650; }
.sender-info { display: flex; align-items: center; gap: 11px; }
.sender-info .sender-avatar { width: 38px; height: 38px; border-radius: 12px; font-size: 12px; }
.sender-info strong { display: block; font-size: 11px; font-weight: 600; }
.sender-info small { display: block; color: #9da0ae; font-size: 9px; margin-top: 4px; }
.sender-info .detail-date { margin-left: auto; color: #a3a5b2; font-size: 9px; }
.detail-body { color: #707386; font-size: 12px; line-height: 1.95; margin: 24px 0; white-space: pre-wrap; }
.detail-body p { margin: 0 0 15px; }
.detail-body strong { color: #55596c; }
.attachment-card { display: flex; align-items: center; gap: 11px; padding: 12px; background: #f8f9fc; border: 1px solid #edeef3; border-radius: 9px; margin-top: 14px; max-width: 340px; }
.attachment-card > .icon { width: 25px; height: 25px; color: #9483df; }
.attachment-card strong, .attachment-card small { display: block; }
.attachment-card strong { font-size: 10px; font-weight: 550; color: #686b7d; }
.attachment-card small { color: #a5a7b4; font-size: 8px; margin-top: 3px; }
.attachment-card .icon-button { margin-left: auto; }
.reply-actions { border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 9px; }
.reply-actions .button { height: 35px; font-size: 10px; }
.empty-mail { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: #9da0af; padding: 25px; }
.empty-mail .empty-icon { margin-bottom: 15px; }
.empty-mail h3 { color: #686b7d; font-size: 13px; margin: 0 0 7px; }
.empty-mail p { font-size: 10px; margin: 0; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: #17172b70; backdrop-filter: blur(5px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 25px; animation: fadeIn .18s ease; }
.modal { width: min(580px, 100%); background: white; border-radius: 19px; box-shadow: 0 24px 80px #16162d35; max-height: calc(100vh - 50px); overflow: auto; animation: modalIn .22s ease; }
.modal-header { padding: 24px 26px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.modal-icon { width: 42px; height: 42px; background: #f0edff; color: #816de6; border-radius: 12px; display: grid; place-items: center; }
.modal-header h2 { font-size: 18px; margin: 0 0 6px; font-weight: 650; letter-spacing: -.3px; }
.modal-header p { color: #989baa; font-size: 10px; margin: 0; }
.modal-close { width: 30px; height: 30px; background: #f7f8fa; }
.modal-close .icon { width: 15px; }
.import-steps { display: flex; align-items: center; padding: 0 27px 20px; border-bottom: 1px solid var(--line); }
.import-steps > span:not(.step-line) { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #a4a6b4; white-space: nowrap; }
.import-steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-style: normal; background: #f0f1f5; color: #9c9fac; }
.import-steps .active { color: #7764d7 !important; }
.import-steps .active i { background: #ece7ff; color: #806ce4; }
.step-line { height: 1px; background: #ececf2; flex: 1; margin: 0 12px; }
.modal-body { padding: 21px 26px 23px; }
.field-label { display: block; font-size: 11px; color: #5f6274; font-weight: 550; margin-bottom: 10px; }
.provider-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 21px; }
.provider-option { border: 1px solid #e9e9f0; border-radius: 11px; background: white; padding: 13px 10px; position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; transition: .16s; }
.provider-option:hover { border-color: #c7bced; background: #fbfaff; }
.provider-option.active { border-color: #9c88eb; background: #f7f4ff; box-shadow: 0 0 0 2px #8b75e80a; }
.provider-option .provider-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 21px; margin-bottom: 9px; }
.provider-option .outlook-logo { font-size: 18px; }.provider-option .gmx-logo { font-size: 16px; }
.provider-option strong { font-size: 11px; font-weight: 600; }
.provider-option small { font-size: 8px; color: #a1a4b2; margin-top: 4px; }
.option-check { position: absolute; right: 7px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: #8874e5; color: white; display: none; place-items: center; }
.option-check .icon { width: 10px; height: 10px; stroke-width: 2.5; }
.provider-option.active .option-check { display: grid; }
.field-heading { display: flex; justify-content: space-between; align-items: center; }
.field-heading > span { font-size: 9px; color: #a4a6b3; margin-bottom: 10px; }
.textarea-wrap { position: relative; }
.textarea-wrap textarea { width: 100%; height: 116px; resize: vertical; min-height: 90px; border: 1px solid #e4e5ed; border-radius: 10px; padding: 12px 13px 27px; font-size: 10px; line-height: 1.9; color: #5b5e70; outline: 0; font-family: "SFMono-Regular", Consolas, monospace; background: #fcfcfe; transition: border .16s; }
.textarea-wrap textarea:focus { border-color: #9e8be7; box-shadow: 0 0 0 3px #9782e810; }
.textarea-wrap textarea::placeholder { color: #b0b2bf; }
.input-count { position: absolute; right: 11px; bottom: 8px; font-size: 8px; color: #a1a4b1; }
.import-hint { display: flex; align-items: flex-start; gap: 6px; color: #9699a8; font-size: 8px; line-height: 1.65; margin: 9px 2px 15px; }
.import-hint .icon { width: 12px; height: 12px; color: #75af95; margin-top: 1px; }
.file-drop { width: 100%; border: 1px dashed #dcd9e8; background: #faf9fd; border-radius: 10px; min-height: 60px; padding: 10px 14px; display: flex; align-items: center; gap: 11px; color: #9a90b2; text-align: left; transition: .16s; }
.file-drop:hover { border-color: #9f8ce4; background: #f6f3ff; }
.file-drop > .icon { width: 24px; height: 24px; color: #9786d9; }
.file-drop strong, .file-drop small { display: block; }
.file-drop strong { font-size: 10px; color: #7a7290; font-weight: 550; }
.file-drop small { font-size: 8px; color: #aaa5b5; margin-top: 4px; }
.file-arrow { margin-left: auto; width: 16px !important; }
.form-error { color: #d47474; font-size: 10px; background: #fff3f3; padding: 9px 11px; border-radius: 7px; margin: 12px 0 0; line-height: 1.5; }
.modal-footer { border-top: 1px solid var(--line); padding: 16px 26px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; background: #fcfcfe; border-radius: 0 0 19px 19px; }
.modal-footer .button { min-width: 83px; }
.compose-modal { width: min(620px, 100%); }
.compose-modal .modal-body { padding-top: 5px; }
.compose-field { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); height: 46px; color: #8d90a0; font-size: 11px; }
.compose-field input { flex: 1; min-width: 0; border: 0; outline: 0; color: #585b6e; font-size: 11px; }
.compose-modal textarea { width: 100%; height: 210px; resize: vertical; border: 0; outline: 0; padding: 18px 0; font-size: 12px; line-height: 1.8; color: #5f6274; }
.compose-modal textarea::placeholder, .compose-field input::placeholder { color: #b0b2bf; }
.compose-local-note { margin-right: auto; color: #a7a9b6; font-size: 9px; }

.toast-container { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { background: #24253a; color: #f2f1f8; border: 1px solid #ffffff10; box-shadow: 0 10px 30px #1d1d3225; border-radius: 11px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; font-size: 11px; animation: toastIn .25s ease; max-width: 360px; }
.toast .icon { width: 16px; height: 16px; color: #a9e0c8; }
.toast.error .icon { color: #f1a2a2; }
.toast.removing { opacity: 0; transform: translateY(5px); transition: .2s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinning .icon { animation: spin .8s linear infinite; }

@media (min-width: 1500px) {
  .content { padding-top: 39px; }
  .account-card { padding: 21px 21px 18px; }
  .account-latest { margin-top: 20px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 210px; padding-left: 13px; padding-right: 13px; }
  .main-shell { margin-left: 210px; }
  .content { padding: 28px 25px 20px; }
  .topbar { padding: 0 25px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 16px 15px 13px; }
  .provider-logos { gap: 16px; }
  .account-toolbar { flex-wrap: wrap; }
  .toolbar-right { margin-left: auto; }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-view .account-card { grid-template-columns: 1.2fr 1fr .8fr; }
  .list-view .account-stats { display: none; }
  .mailbox-layout { grid-template-columns: 150px minmax(260px, .85fr) minmax(300px, 1.15fr); gap: 10px; }
  .mailbox-view { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 950px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-strip { flex-wrap: wrap; }
  .provider-strip-title { min-width: 250px; }
  .provider-logos { order: 3; width: 100%; padding-left: 48px; }
  .mailbox-layout { grid-template-columns: 155px minmax(270px, 1fr); }
  .message-detail { position: fixed; z-index: 50; inset: 90px 20px 20px 195px; box-shadow: 0 20px 70px #25243d30; transition: .2s; }
  .message-detail:not(.mobile-open) { display: none; }
  .detail-mobile-back { display: grid !important; }
  .mailbox-header { margin-bottom: 13px; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 238px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.open { display: block; position: fixed; inset: 0; z-index: 35; background: #18182d66; backdrop-filter: blur(2px); }
  .main-shell { margin-left: 0; }
  .menu-button { display: grid; margin-right: 10px; }
  .topbar { height: 62px; padding: 0 18px; }
  .breadcrumb { gap: 8px; }
  .global-search { width: 185px; }
  .global-search kbd { display: none; }
  .content { padding: 25px 20px 18px; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 26px; }
  .heading-actions { flex-direction: column-reverse; align-items: flex-end; }
  .heading-actions .button { height: 35px; font-size: 10px; }
  .account-toolbar { align-items: stretch; }
  .filter-tabs { overflow-x: auto; max-width: 100%; }
  .toolbar-right { width: 100%; margin: 0; }
  .account-search { flex: 1; }
  .account-grid { gap: 12px; }
  .provider-strip { padding: 13px 15px; }
  .mailbox-view { padding: 14px; }
  .mailbox-header { gap: 8px; }
  .mailbox-account-title { justify-content: center; }
  .mailbox-account-title .provider-logo { display: none; }
  .sync-status { display: none; }
  .mailbox-layout { height: calc(100vh - 132px); min-height: 450px; grid-template-columns: 125px minmax(220px, 1fr); gap: 8px; }
  .folder-panel { padding: 10px 7px; }
  .folder-item { padding: 0 7px; font-size: 10px; gap: 6px; }
  .folder-item .icon { width: 13px; }
  .message-detail { inset: 76px 10px 10px 139px; }
  .detail-content { padding: 20px; }
  .detail-content h2 { font-size: 17px; }
  .list-view .account-card { grid-template-columns: 1fr 1fr; gap: 10px; }
  .list-view .account-latest { display: none; }
  .list-view .account-card-footer { flex-direction: column; align-items: flex-end; gap: 5px; }
}
@media (max-width: 520px) {
  body { min-width: 360px; }
  .topbar { padding: 0 13px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > .icon, .breadcrumb > strong { display: none; }
  .topbar-actions { gap: 6px; }
  .global-search { width: 150px; height: 32px; }
  .global-search input { font-size: 10px; }
  .topbar-divider, .topbar-actions > .avatar { display: none; }
  .content { padding: 22px 14px 16px; }
  .page-heading { flex-direction: column; gap: 17px; margin-bottom: 22px; }
  .heading-actions { flex-direction: row; width: 100%; padding: 0; }
  .heading-actions .button { flex: 1; }
  .eyebrow { font-size: 7px; }
  h1 { font-size: 25px; }
  .page-heading p { font-size: 10px; line-height: 1.6; }
  .stats-grid { gap: 9px; margin-bottom: 13px; }
  .stat-card { padding: 13px 12px 11px; min-height: 143px; border-radius: 13px; }
  .stat-icon { width: 30px; height: 30px; border-radius: 9px; }
  .stat-icon .icon { width: 16px; }
  .stat-trend.positive { font-size: 8px; padding: 3px 4px; }
  .stat-card > p { font-size: 9px; margin-top: 11px; }
  .stat-value { font-size: 25px; }
  .stat-value.value-time { font-size: 22px; }
  .stat-foot { font-size: 8px; gap: 5px; padding-top: 8px; margin-top: 10px; }
  .provider-strip { margin-bottom: 24px; gap: 12px; }
  .provider-strip-title { min-width: 200px; gap: 9px; }
  .provider-strip-title strong { font-size: 10px; }
  .provider-strip-title small { font-size: 8px; }
  .provider-strip-icon { width: 31px; height: 31px; }
  .provider-strip > .text-button { margin-left: auto; font-size: 9px; }
  .provider-logos { padding-left: 0; justify-content: space-between; gap: 8px; }
  .provider-logos > span { font-size: 10px; gap: 5px; }
  .provider-logo { width: 21px; height: 21px; border-radius: 7px; font-size: 14px; }
  .section-header h2 { font-size: 16px; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; justify-content: center; padding: 0 7px; }
  .toolbar-right { gap: 7px; }
  .sort-button { font-size: 9px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-card { padding: 17px; }
  .list-view .account-card { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .list-view .account-card-top { flex: 1; min-width: 220px; }
  .list-view .account-card-footer { flex-direction: row; width: 100%; margin-top: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
  .list-view .add-account-card { min-height: 90px; }
  .page-footer { font-size: 8px; }
  .page-footer > span:last-child { display: none; }
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { max-height: calc(100vh - 24px); border-radius: 17px; }
  .modal-header { padding: 20px 18px 16px; }
  .modal-title-wrap { gap: 9px; }
  .modal-icon { width: 36px; height: 36px; border-radius: 10px; }
  .modal-header h2 { font-size: 16px; }
  .import-steps { padding: 0 19px 16px; }
  .import-steps > span:not(.step-line) { font-size: 9px; gap: 5px; }
  .step-line { margin: 0 8px; }
  .modal-body { padding: 18px; }
  .provider-options { gap: 7px; }
  .provider-option { padding: 11px 5px; }
  .provider-option .provider-logo { width: 30px; height: 30px; font-size: 18px; }
  .provider-option strong { font-size: 10px; }
  .provider-option small { font-size: 7px; }
  .modal-footer { padding: 13px 18px; }
  .compose-local-note { display: none; }
  .toast-container { left: 14px; right: 14px; bottom: 14px; }
  .toast { max-width: none; }
  .mailbox-view { padding: 10px; }
  .mailbox-header { height: 50px; margin-bottom: 9px; }
  .back-button { width: 33px; height: 33px; padding: 0; font-size: 0; gap: 0; }
  .mailbox-account-title { flex: 1; }
  .mailbox-account-title strong { font-size: 10px; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mailbox-header-actions { gap: 1px; }
  .mailbox-layout { grid-template-columns: 1fr; height: calc(100vh - 112px); }
  .folder-panel { flex-direction: row; padding: 7px; gap: 5px; align-items: center; overflow-x: auto; grid-column: 1; }
  .compose-button { width: 34px; height: 32px; margin: 0; font-size: 0; gap: 0; flex-shrink: 0; }
  .folder-nav { flex-direction: row; gap: 3px; }
  .folder-item { width: 34px; height: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; flex-shrink: 0; }
  .folder-item > span:last-child { display: none; }
  .storage-card { display: none; }
  .message-list-panel { grid-row: 2; }
  .message-list-toolbar { padding: 13px 13px 9px; }
  .message-list-toolbar h2 { font-size: 14px; }
  .mail-search { margin: 0 10px 8px; }
  .message-item { padding: 11px 9px; }
  .message-detail { position: fixed; inset: 10px; z-index: 60; }
  .detail-content { padding: 18px; }
  .detail-content h2 { font-size: 17px; }
  .sender-info { flex-wrap: wrap; }
  .sender-info .detail-date { width: 100%; margin: 4px 0 0 49px; }
  .detail-body { font-size: 11px; }
}

.detail-mobile-back { display: none; }

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