:root {
  color-scheme: light;
  --page: #f8f7fc;
  --paper: #fff;
  --ink: #201b32;
  --muted: #655e76;
  --line: #e8e4ef;
  --accent: #5737a6;
  --accent-strong: #432480;
  --soft: #eee7fc;
  --danger: #a42544;
  --shadow: 0 12px 42px #31215012;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; color: var(--ink); background: var(--page); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #9b77ee; outline-offset: 2px;
}
button, input, select, textarea { border: 1px solid var(--line); border-radius: 11px; }
button { background: var(--paper); color: var(--ink); min-height: 41px; padding: 8px 15px; font-weight: 650; }
button:hover:not(:disabled) { border-color: #bfb0dd; background: #f9f5ff; }
button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: var(--accent-strong); }
button.soft { color: var(--accent-strong); background: var(--soft); border-color: transparent; }
button.danger { color: var(--danger); }
button.bare { border-color: transparent; background: transparent; }
a { color: var(--accent-strong); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: 1.3rem; letter-spacing: -.03em; }
h3 { font-size: 1.04rem; }
input:not([type=checkbox]), textarea, select {
  background: #fdfcff; color: var(--ink); padding: 11px 12px; width: 100%; min-height: 43px;
}
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { min-height: 150px; resize: vertical; }
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 650; }
label.check { display: flex; gap: 9px; align-items: center; }
label small { font-weight: normal; color: var(--muted); }
form { display: grid; gap: 15px; }
.loading { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.muted { color: var(--muted); }
.micro { font-size: .81rem; }
.mono { font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.error { color: var(--danger); font-size: .9rem; }
.error:empty { display: none; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: inherit; font-weight: 800; letter-spacing: -.035em; font-size: 1.26rem; }
.logo {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  color: #fff; background: var(--accent); border-radius: 11px; flex: none;
}
.envelope { display: block; width: 19px; height: 13px; border: 1.6px solid currentColor; border-radius: 3px; position: relative; overflow: hidden; }
.envelope::before { content: ""; width: 12px; height: 12px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); position: absolute; left: 2px; top: -8px; }
.login-page {
  max-width: 1220px; min-height: 100dvh; margin: auto; padding: clamp(14px, 4vw, 52px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center;
}
.intro {
  color: #fff; background: radial-gradient(ellipse at 92% 12%, #593a92, transparent 56%), #231638;
  padding: clamp(24px, 4vw, 48px); border-radius: 28px; min-height: min(670px, 89dvh);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden;
}
.intro .logo { background: #fff2; }
.intro h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 7ch; }
.intro p { color: #e1d4f9; line-height: 1.55; max-width: 35ch; margin-top: 14px; }
.demo-mail {
  width: 100%; background: #fff1; border: 1px solid #fff3; border-radius: 17px; padding: 16px;
  display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere;
}
.demo-mail small { display: block; margin-bottom: 3px; color: #e1d4f9; }
.entry { width: 100%; max-width: 440px; margin: auto; }
.entry form { margin: 25px 0 16px; }
.entry p { line-height: 1.5; margin-top: 9px; }
.entry > button { width: 100%; }
.entry footer { margin-top: 26px; font-size: .82rem; color: var(--muted); }
.topbar {
  min-height: 69px; padding: 12px clamp(14px, 3vw, 34px); display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr; gap: 12px; border-bottom: 1px solid var(--line); background: #fcfbff;
}
.topbar .account { justify-content: flex-end; text-align: right; }
.tabs { display: inline-flex; background: #eeeaf5; border: 1px solid #e4ddee; padding: 3px; border-radius: 13px; gap: 2px; }
.tabs button { min-height: 34px; padding: 5px 17px; border: 0; background: transparent; color: var(--muted); }
.tabs button[aria-pressed=true] { background: white; box-shadow: 0 1px 4px #26184418; color: var(--accent-strong); }
.shell { max-width: 1720px; margin: auto; padding: 23px clamp(12px, 2.7vw, 36px); display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 19px; }
.sidebar { align-self: start; display: grid; gap: 8px; min-width: 0; }
.sidebar h2 { margin: 12px 7px 2px; font-size: .79rem; text-transform: uppercase; letter-spacing: .065em; color: var(--muted); }
.nav {
  border-color: transparent; background: transparent; text-align: left; padding-left: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;
}
.nav[aria-current=true] { background: var(--soft); color: var(--accent-strong); }
.sidebar > .primary { min-height: 47px; text-align: left; }
.main { min-width: 0; display: grid; gap: 16px; align-content: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); min-width: 0; }
.inbox-top { padding: 18px 20px; }
.inbox-top p { margin-top: 6px; overflow-wrap: anywhere; }
.guest-top { padding: clamp(16px, 3vw, 26px); background: linear-gradient(120deg, #fff, #f4edff); }
.guest-top .actions { margin-top: 15px; }
.address { font-size: clamp(1rem, 2.7vw, 1.55rem); font-weight: 780; overflow-wrap: anywhere; }
.countdown { color: var(--accent-strong); background: var(--soft); padding: 5px 9px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 54dvh; }
.split.reading { grid-template-columns: minmax(230px, .75fr) minmax(0, 1.4fr); }
.messages { min-width: 0; align-self: start; }
.messages > header, .reader > header { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.message-list { display: grid; }
.message-row {
  width: 100%; text-align: left; display: grid; grid-template-columns: minmax(80px, .52fr) minmax(0, 1fr) auto;
  gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 16px; font-weight: 500; min-height: 50px;
}
.message-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-row.unread { font-weight: 750; }
.message-row[aria-current=true] { background: var(--soft); }
.reading .message-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
.reading .message-row .subject { grid-row: 2; }
.reading .message-row .date { grid-column: 2; grid-row: 1; }
.reader { min-width: 0; border-left: 1px solid var(--line); }
.reader header .muted { margin-top: 8px; overflow-wrap: anywhere; }
.reader iframe { width: 100%; height: max(420px, 56dvh); display: block; border: 0; }
.reader pre { padding: 18px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.58; }
.attachments { padding: 15px 18px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.empty { text-align: center; padding: 68px 20px; display: grid; justify-items: center; gap: 9px; }
.empty .logo { color: var(--accent); background: var(--soft); margin-bottom: 5px; }
.foot-action { margin: 13px 16px; }
.manage-panel { padding: clamp(14px, 2.5vw, 26px); }
.manage-panel .section-head { margin-bottom: 18px; }
.manage-panel .section-head p { margin-top: 7px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .77rem; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
td button { min-height: 35px; padding: 5px 11px; white-space: nowrap; }
.service { border-top: 1px solid var(--line); padding: 16px 0; }
.service p { margin-top: 4px; }
.group-head { margin-top: 21px; padding-bottom: 6px; color: var(--muted); }
dialog {
  color: var(--ink); border: 1px solid var(--line); border-radius: 18px; background: #fff;
  padding: 24px; width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 20px 100px #23163855;
}
dialog::backdrop { background: #22193580; }
dialog > header { margin-bottom: 16px; }
dialog .actions { margin-top: 4px; }
#notice { position: fixed; z-index: 2; right: 16px; bottom: 16px; pointer-events: none; }
#notice:not(:empty) { padding: 12px 16px; border-radius: 11px; color: #fff; background: #282039; box-shadow: var(--shadow); max-width: min(410px, calc(100% - 32px)); }
@media (max-width: 1050px) {
  .shell { grid-template-columns: 185px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  .sidebar h2 { width: 100%; margin: 0 0 2px; }
  .sidebar .nav { width: auto; max-width: 100%; }
  .sidebar > .primary { min-height: 41px; }
}
@media (max-width: 620px) {
  .login-page { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 12px 12px 26px; align-content: start; }
  .intro { min-height: 0; gap: 18px; padding: 19px; border-radius: 20px; }
  .intro h1 { max-width: none; font-size: 2.36rem; }
  .intro .demo-mail { display: none; }
  .entry { padding: 0 9px; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .topbar .tabs { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .topbar .account { grid-column: 2; grid-row: 1; }
  .split.reading { grid-template-columns: minmax(0, 1fr); }
  .split.reading > .messages { display: none; }
  .reader { border-left: 0; }
  .message-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
  .message-row .subject { grid-row: 2; }
  .message-row .date { grid-column: 2; grid-row: 1; }
}
