* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1e293b; background: #eef3f9; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[v-cloak] { display: none !important; }
.boot { padding: 48px; text-align: center; }
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; background: #f8fafc; }
.login-hero { color: #fff; padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; background: #0f172a center/cover no-repeat; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.login-brand i { width: 36px; height: 36px; border-radius: 10px; background: #2f6fed; display: grid; place-items: center; }
.login-brand svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; }
.login-hero h2 { margin: 18px 0 8px; font-size: 40px; }
.login-hero ul { margin: 20px 0 0; padding: 0; list-style: none; }
.login-hero li { margin: 10px 0; padding-left: 16px; position: relative; }
.login-hero li:before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.login-panel { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 32px 28px; border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, .12); }
.login-card h1 { margin: 0 0 8px; }
.mail-split { display: flex; align-items: stretch; height: 40px; border: 1px solid #dcdfe6; border-radius: 8px; overflow: hidden; background: #fff; }
.mail-split:focus-within { border-color: #2f6fed; }
.mail-split input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; background: #f7f9fc; }
.mail-split select { border: 0; border-left: 1px solid #e4e7ed; background: #fff; padding: 0 8px 0 10px; color: #606266; max-width: 58%; }
.setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.setting-grid section { background: #fff; border: 1px solid #e8eef6; border-radius: 14px; padding: 14px 16px; }
.setting-grid h3 { margin: 0 0 8px; font-size: 15px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.set-row + .set-row { border-top: 1px solid #f1f5f9; }
.set-row small, .set-field small { display: block; color: #94a3b8; font-size: 12px; font-weight: 400; }
.set-field { display: grid; gap: 6px; margin-top: 10px; font-size: 13px; color: #475569; }
.setting-grid .toggle { position: relative; display: block; width: 44px; height: 26px; flex: none; }
.setting-grid .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.setting-grid .toggle i { display: block; width: 44px; height: 26px; background: #cbd5e1; border-radius: 99px; position: relative; }
.setting-grid .toggle i:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.setting-grid .toggle input:checked + i { background: #2f6fed; }
.setting-grid .toggle input:checked + i:before { transform: translateX(18px); }
.savebar { margin: 16px 0; }
.muted { color: #64748b; }
.full { width: 100%; }
.link { margin-top: 16px; background: none; border: 0; color: #2563eb; padding: 0; }

.desk { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.nav { background: #fff; border-right: 1px solid #e6edf5; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; padding: 4px 8px 14px; }
.logo i, .ico { width: 18px; height: 18px; display: inline-grid; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: #2f6fed; color: #fff; place-items: center; font-style: normal; }
.logo i svg, .ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.logo i svg { width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.row { cursor: pointer; }
.row input { margin: 0; }
.compose { margin: 6px 0 12px; height: 44px; border: 0; border-radius: 12px; background: #2f6fed; color: #fff; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-btn, .label-btn { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #334155; border-radius: 10px; padding: 9px 10px; text-align: left; }
.nav-btn.active, .label-btn.active { background: #e8f1ff; color: #1d4ed8; font-weight: 650; }
.nav-btn .count, .label-btn .count { margin-left: auto; background: #2f6fed; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; display: grid; place-items: center; }
.nav-btn .count.soft { background: #e2e8f0; color: #475569; }
.group { margin: 14px 10px 4px; color: #94a3b8; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.storage, .tg { margin-top: auto; background: #f8fafc; border-radius: 14px; padding: 12px; }
.tg { margin-top: 10px; border: 0; text-align: left; display: flex; gap: 8px; align-items: center; }
.bar { height: 6px; background: #e2e8f0; border-radius: 99px; margin-top: 8px; }
.bar span { display: block; height: 100%; background: #60a5fa; border-radius: 99px; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.search { flex: 1; background: #fff; border-radius: 999px; display: flex; align-items: center; padding: 0 14px; height: 40px; color: #94a3b8; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; color: #1e293b; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; position: relative; }
.badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; }
.who { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; border: 0; }
.avatar, .mail-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.panes { display: grid; grid-template-columns: 420px 1fr; gap: 14px; padding: 0 16px 16px; min-height: 0; flex: 1; }
.list, .reader, .panel-page { background: #fff; border-radius: 18px; min-height: 0; }
.list { display: flex; flex-direction: column; overflow: hidden; }
.list-head, .reader-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
.list-head strong, .reader-head strong { font-size: 16px; }
.spacer { flex: 1; }
.tiny { border: 0; background: #f8fafc; border-radius: 8px; padding: 6px 8px; color: #475569; }
.rows { overflow: auto; }
.row { width: 100%; border: 0; background: #fff; display: grid; grid-template-columns: 18px 40px 1fr auto; gap: 10px; padding: 14px 16px; text-align: left; border-bottom: 1px solid #f8fafc; }
.row.active { background: #eef5ff; }
.row .sub { color: #64748b; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .top { display: flex; justify-content: space-between; gap: 8px; }
.unread { font-weight: 750; }
.when { color: #94a3b8; font-size: 12px; }
.star { color: #f5b942; background: none; border: 0; font-size: 16px; }
.reader { display: flex; flex-direction: column; overflow: hidden; }
.reader-body { padding: 8px 22px 22px; overflow: auto; }
.sender { display: flex; gap: 12px; align-items: center; margin: 8px 0 16px; }
.sender small { color: #64748b; }
.welcome { background: linear-gradient(180deg, #f3f8ff, #fff); border-radius: 16px; padding: 22px; }
.welcome h2 { text-align: center; margin: 8px 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.feature { background: #fff; border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.preview { width: 100%; min-height: 180px; border: 0; background: transparent; }
.text-body { white-space: pre-wrap; }
.empty { color: #94a3b8; padding: 48px 16px; text-align: center; }
.reader-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #f1f5f9; }
.panel-page { margin: 0 16px 16px; padding: 18px; overflow: auto; }
.panel-page h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.cards div { background: #f8fafc; border-radius: 12px; padding: 16px; }
.cards strong { font-size: 28px; display: block; }
.chart { height: 320px; }
.files { padding-left: 18px; }
.composer { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); display: grid; place-items: center; padding: 24px; z-index: 20; }
.composer form { width: min(720px, 100%); background: #fff; border-radius: 16px; padding: 18px; display: grid; gap: 8px; }
.composer input, .composer textarea, .panel-page input, .panel-page textarea, .panel-page select { width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.composer .row-actions, .toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.primary { background: #2f6fed; color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; }
.ghost { background: #f1f5f9; border: 0; border-radius: 10px; padding: 8px 14px; }
.danger { background: none; border: 0; color: #dc2626; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
td input, .setting-grid input, .setting-grid select { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; box-sizing: border-box; }
td input[type="checkbox"], .setting-grid input[type="checkbox"], .setting-grid input[type="file"] { width: auto; padding: 0; border: 0; flex: none; }
.setting-grid .check { white-space: nowrap; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .desk { grid-template-columns: 1fr; }
  .nav { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 260px; transform: translateX(-105%); transition: .2s; }
  .nav.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .panes { grid-template-columns: 1fr; }
  .reader { display: none; }
  .reader.show { display: flex; position: fixed; inset: 0; z-index: 25; border-radius: 0; }
  .cards, .feature-grid, .login-screen, .setting-grid { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 24px; }
}
