:root {
  font-family:
    -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  color-scheme: dark;
  --bg: #101116;
  --sidebar: #13141b;
  --panel: #171820;
  --reader: #15161d;
  --raised: #1e202a;
  --hover: #242632;
  --line: #2b2d39;
  --text: #e7e8ef;
  --muted: #9699ac;
  --soft: #85899c;
  --accent: #64a7ff;
  --accent-bg: #18304e;
  --accent-line: #284b76;
  --danger: #ed939e;
  --danger-bg: #35232b;
  --body: #d2d4e0;
  --input: #1c1e27;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f9;
  --sidebar: #f8f8fc;
  --panel: #fff;
  --reader: #fcfcfe;
  --raised: #f0f1f7;
  --hover: #ebeaf4;
  --line: #e0e1eb;
  --text: #242537;
  --muted: #62667a;
  --soft: #72778b;
  --accent: #007aff;
  --accent-bg: #e8f2ff;
  --accent-line: #bedbff;
  --danger: #ac394a;
  --danger-bg: #fceff1;
  --body: #44475c;
  --input: #f5f5fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}
button:hover {
  background: var(--hover);
  border-color: var(--accent-line);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
p {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--sidebar);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}
.logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  border-radius: 11px;
  font-size: 22px;
}
.brand h1 {
  font-size: 17px;
  letter-spacing: -0.45px;
  font-weight: 600;
}
.brand p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.private-pill {
  color: var(--muted);
  font-size: 12px;
}
.private-pill span {
  color: #79bfa4;
  font-size: 8px;
  margin-right: 6px;
}
select {
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 26px 8px 10px;
}
.signout {
  font-size: 12px;
  color: var(--muted);
}
main {
  display: grid;
  grid-template-columns: 220px 390px minmax(0, 1fr);
  height: calc(100dvh - 82px);
  min-height: 520px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 25px 15px 18px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  min-height: 0;
  overflow: auto;
}
.sidebar-label,
.eyebrow,
.domain-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--soft);
}
.sidebar-label {
  padding: 0 11px;
  margin-bottom: 16px;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  margin: 30px 0 13px;
  color: var(--soft);
}
.sidebar-heading h2 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.alias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 11px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.alias-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.alias.selected {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-line);
}
.badge {
  font-size: 12px;
  line-height: 20px;
  padding: 0 6px;
  min-width: 22px;
  text-align: center;
  background: var(--raised);
  color: var(--muted);
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.selected .badge {
  background: var(--accent-line);
  color: var(--text);
}
.sidebar-footer {
  margin-top: auto;
  padding: 35px 8px 0;
}
.domain-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
}
.domain-card strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.quiet {
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  margin-top: 10px;
}
.quiet:hover {
  background: transparent;
}
.note,
.shared-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 13px;
}
.shared-note {
  color: var(--soft);
}
.receive-pill {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 7px;
  margin-top: 17px;
}
.inbox {
  padding: 24px 18px;
  overflow: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  min-height: 0;
}
.inbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 5px 23px;
}
.inbox-heading h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 600;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.icon-button {
  background: transparent;
  font-size: 20px;
  width: 33px;
  height: 33px;
  padding: 0;
  color: var(--muted);
}
form {
  display: grid;
  gap: 10px;
}
.search-label {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  font-size: 23px;
  top: 6px;
  color: var(--soft);
}
input:not([type="checkbox"]) {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 11px 12px;
  border-radius: 8px;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
input::placeholder {
  color: var(--soft);
}
#search {
  padding-left: 35px;
  padding-right: 34px;
}
kbd {
  position: absolute;
  right: 11px;
  color: var(--soft);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
}
.filter-row {
  display: flex;
  gap: 7px;
}
.alias-filter {
  flex: 1;
  min-width: 0;
}
.apply {
  font-size: 12px;
  padding: 9px 12px;
}
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 1px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.check input {
  accent-color: var(--accent);
  margin: 0;
}
.danger {
  color: var(--danger);
  background: var(--danger-bg);
}
.subtle {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 12px;
}
.subtle:hover {
  background: transparent;
  border: 0;
}
#status {
  font-size: 12px;
  color: var(--muted);
  min-height: 25px;
  line-height: 1.5;
  padding: 10px 2px;
}
#status:empty {
  min-height: 15px;
  padding: 0;
}
#status.error {
  color: var(--danger);
}
.message {
  position: relative;
  display: flex;
  width: 100%;
  gap: 11px;
  padding: 16px 10px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  background: transparent;
}
.message:hover {
  background: var(--hover);
  border-color: var(--line);
}
.message.selected {
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  margin: 3px 0;
  padding: 15px 9px;
}
.avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--raised);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 1px;
}
.message-content {
  flex: 1;
  min-width: 0;
}
.message-top {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}
.message-top strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message.unread .message-top strong {
  color: var(--text);
  font-weight: 600;
}
.message time {
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}
.subject {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.unread .subject {
  color: var(--text);
  font-weight: 500;
}
.meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  margin-top: 9px;
}
.recipient-tag {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  max-width: 210px;
  font-size: 12px;
}
.unread-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  top: 22px;
  left: 3px;
}
.unread-dot[hidden] {
  display: none;
}
.load-more {
  display: block;
  width: 100%;
  font-size: 12px;
  margin-top: 18px;
}
.list-empty {
  padding: 45px 18px;
  text-align: center;
  color: var(--muted);
}
.list-empty h3 {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.list-empty p {
  font-size: 12px;
  line-height: 1.6;
}
.reader {
  background: var(--reader);
  overflow: auto;
  padding: 32px 36px;
  min-width: 0;
  min-height: 0;
}
.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 27px;
}
.reader-label {
  font-size: 12px;
  color: var(--soft);
  letter-spacing: 1px;
}
.reader-actions {
  display: flex;
  gap: 8px;
}
.reader-actions button {
  font-size: 12px;
  padding: 7px 10px;
}
.reader h2 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.65px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.reader dl {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 9px;
  margin: 25px 0 0;
  font-size: 12px;
}
.reader dt {
  color: var(--soft);
}
.reader dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.attachment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 11px;
  color: var(--soft);
  font-size: 12px;
}
.raw-link {
  font-size: 12px;
}
.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.attachments a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  max-width: 100%;
}
.attachments a:hover {
  background: var(--hover);
  border-color: var(--accent-line);
  text-decoration: none;
}
.file-icon {
  color: var(--accent);
  font-size: 17px;
}
.file-name {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file-size {
  display: block;
  font-size: 12px;
  color: var(--soft);
  margin-top: 3px;
}
.body {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--body);
  margin: 27px 0 0;
}
.reader-footer {
  font-size: 12px;
  color: var(--soft);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 16px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 300px;
}
.empty-icon {
  color: var(--accent);
  font-size: 28px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
}
.empty h2 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.back-button {
  display: none;
}
@media (min-width: 1500px) {
  main {
    grid-template-columns: 235px 430px minmax(0, 1fr);
  }
  .reader {
    padding: 35px 48px;
  }
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 190px 340px minmax(0, 1fr);
  }
  .reader {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 22px;
  }
  .top-actions {
    gap: 16px;
  }
  .private-pill {
    display: none;
  }
  .reader h2 {
    font-size: 21px;
  }
}
@media (max-width: 900px) {
  main {
    grid-template-columns: 180px minmax(0, 1fr);
    height: auto;
    min-height: calc(100dvh - 82px);
  }
  .sidebar {
    grid-row: 1/3;
  }
  .reader {
    grid-column: 2;
    border-top: 1px solid var(--line);
    min-height: 380px;
  }
  .inbox {
    border-right: 0;
  }
  .empty {
    min-height: 260px;
  }
  .reader-actions {
    flex-wrap: wrap;
  }
  .sidebar-footer {
    margin-top: 35px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 72px;
    padding: 0 16px;
  }
  .brand h1 {
    font-size: 15px;
  }
  .brand p {
    font-size: 12px;
  }
  .logo {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .top-actions {
    gap: 10px;
  }
  .signout {
    font-size: 12px;
  }
  select {
    font-size: 12px;
    padding: 7px 17px 7px 7px;
  }
  main {
    display: block;
    min-height: calc(100dvh - 72px);
  }
  .sidebar {
    padding: 17px 16px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-label,
  .sidebar-heading,
  .sidebar-footer,
  .sidebar #all-count,
  .sidebar #alias-note {
    display: none;
  }
  .sidebar #all {
    display: inline-flex;
    width: auto;
    padding: 7px 10px;
    margin: 0 5px 0 0;
    font-size: 12px;
  }
  .sidebar #aliases {
    display: inline-flex;
    max-width: calc(100% - 118px);
    vertical-align: middle;
    overflow: auto;
    gap: 4px;
  }
  .sidebar #aliases .alias {
    width: auto;
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 10px;
    margin: 0;
  }
  .sidebar .alias-label {
    max-width: 140px;
  }
  .sidebar .badge {
    line-height: 16px;
    min-width: 18px;
    padding: 0 3px;
    font-size: 12px;
  }
  .inbox {
    padding: 23px 16px;
  }
  .inbox-heading {
    margin-bottom: 19px;
  }
  .reader {
    padding: 24px 20px;
    min-height: 400px;
    border-top: 1px solid var(--line);
  }
  .reader h2 {
    font-size: 22px;
  }
  .back-button {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--accent);
    font-size: 12px;
  }
  .reader-label {
    display: none;
  }
  .reader-toolbar {
    gap: 10px;
    padding-bottom: 17px;
  }
  .reader-actions {
    gap: 5px;
  }
  .reader-actions button {
    font-size: 12px;
    padding: 6px 8px;
  }
  body.reading .sidebar,
  body.reading .inbox {
    display: none;
  }
  body.reading .reader {
    border-top: 0;
    min-height: calc(100dvh - 72px);
  }
  body:not(.reading) .reader {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.mailbox-tools {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#saved-mailbox {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.auth-card h1 {
  margin-top: 24px;
}
.auth-card form,
.auth-card label {
  display: grid;
  gap: 10px;
}
.auth-card form {
  gap: 20px;
  margin-top: 24px;
}
.auth-card input,
.account-form input {
  width: 100%;
}
.admin-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 24px;
}
.account-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.account-form label {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}
.account-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.account-row form {
  flex: 1;
  min-width: 240px;
}
.account-row input {
  flex: 1;
  min-width: 170px;
}
[hidden] {
  display: none !important;
}

/* Consistent system typography and toolbar geometry. */
:root {
  --bg: #1c1c1e;
  --sidebar: #202023;
  --panel: #242427;
  --reader: #1c1c1e;
  --raised: #303034;
  --hover: #38383c;
  --line: #38383c;
  --text: #f2f2f7;
  --muted: #b0b0b8;
  --soft: #91919b;
  --input: #303034;
}
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --sidebar: #f0f0f3;
  --panel: #fff;
  --reader: #fff;
  --raised: #f0f0f3;
  --hover: #e8e8ed;
  --line: #dedee3;
  --text: #1d1d1f;
  --muted: #68686f;
  --soft: #797980;
  --input: #f5f5f7;
}
button,
input,
select,
kbd {
  font-family: inherit;
  line-height: 1.35;
  letter-spacing: 0;
}
button {
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
}
.topbar {
  height: 72px;
  padding: 0 24px;
}
.brand {
  gap: 11px;
  min-width: 0;
}
.brand h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.brand p {
  font-size: 12px;
  margin-top: 2px;
}
.top-actions {
  gap: 16px;
  font-size: 13px;
}
.top-actions .quiet {
  margin: 0;
  padding: 6px 0;
  min-height: 32px;
  font-size: 13px;
}
.top-actions select {
  min-height: 32px;
  padding: 6px 24px 6px 10px;
  font-size: 13px;
}
#signed-in-user {
  color: var(--muted);
  font-size: 13px;
}
main {
  height: calc(100dvh - 72px);
  grid-template-columns: 240px 390px minmax(0, 1fr);
}
.sidebar {
  padding: 24px 12px 18px;
}
.sidebar-label,
.eyebrow,
.domain-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.65px;
}
.sidebar-label {
  margin-bottom: 10px;
}
.sidebar-heading {
  margin: 24px 0 8px;
}
.sidebar-heading h2 {
  font-size: 12px;
  font-weight: 600;
}
#saved-mailboxes {
  margin-bottom: 20px;
}
#saved-mailboxes .alias {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.alias {
  padding: 8px 10px;
  font-size: 13px;
  min-height: 36px;
}
.alias.selected {
  border-color: transparent;
  color: var(--text);
}
.badge {
  background: transparent;
  font-size: 12px;
}
.inbox {
  padding: 24px 20px;
}
.inbox-heading {
  margin: 0 0 18px;
}
.inbox-heading h2 {
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.mailbox-tools {
  padding: 0 0 16px;
  gap: 8px;
}
#generate-mailbox {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: transparent;
}
#saved-mailbox:empty {
  display: none;
}
input:not([type="checkbox"]) {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}
.filter-row {
  align-items: center;
}
.apply {
  height: 36px;
  font-size: 13px;
}
.check {
  font-size: 12px;
}
.subtle {
  font-size: 12px;
}
.list-tools {
  min-height: 32px;
}
.message-top strong {
  font-size: 13px;
}
.message time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.subject {
  margin-top: 3px;
  font-size: 13px;
}
.meta {
  margin-top: 6px;
}
.recipient-tag {
  font-size: 11px;
  border: 0;
  padding: 0;
  max-width: 100%;
}
.reader {
  padding: 28px 32px;
}
.reader-toolbar {
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.reader-actions button {
  font-size: 12px;
  min-height: 30px;
}
.reader h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.reader dl {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 13px;
}
.empty {
  max-width: 420px;
  margin: auto;
}
.empty h2 {
  font-size: 20px;
  font-weight: 600;
}
.empty p,
.list-empty p {
  font-size: 13px;
  line-height: 1.6;
}
.list-empty {
  padding: 40px 12px;
}
.list-empty h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  margin-bottom: 18px;
}
.auth-card h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.auth-card p {
  margin-top: 8px;
  color: var(--muted);
}
.auth-card label,
.account-form label {
  font-size: 13px;
}
.admin-page h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.admin-page > p {
  margin-bottom: 24px;
}
.admin-page #status {
  margin: 16px 0;
}
.logo,
.empty-icon,
.search-icon,
.icon-button {
  font-size: 0;
  background-image: url("/icons/mail.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
}
.search-icon {
  background-image: url("/icons/search.svg");
  width: 16px;
  height: 16px;
  background-size: 16px;
  top: 50%;
  transform: translateY(-50%);
  left: 11px;
}
.icon-button {
  background-image: url("/icons/refresh.svg");
  background-size: 18px;
}
@media (min-width: 1500px) {
  main {
    grid-template-columns: 250px 420px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 210px 340px minmax(0, 1fr);
  }
  .top-actions {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  main {
    grid-template-columns: 190px minmax(0, 1fr);
    height: auto;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 76px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .top-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand p {
    display: none;
  }
  #signed-in-user {
    display: none;
  }
  .top-actions .quiet,
  .top-actions select,
  #admin-link {
    font-size: 12px;
  }
  .sidebar {
    padding: 12px 16px;
  }
  #saved-mailboxes {
    display: flex;
    gap: 4px;
    overflow: auto;
    margin: 10px 0 0;
  }
  #saved-mailboxes:empty {
    display: none;
  }
  #saved-mailboxes .alias {
    flex: 0 0 auto;
    width: auto;
    max-width: 220px;
  }
  .inbox {
    padding: 20px 16px;
  }
  .reader {
    padding: 24px 20px;
  }
  .reader-toolbar {
    gap: 8px;
  }
  .reader-actions button {
    font-size: 12px;
  }
}
