/* GNSW workspace — shared with the sign-in identity. */
:root {
  --ink: #17213d;
  --ink-soft: #374463;
  --muted: #727d96;
  --faint: #98a2b7;
  --line: #e6eaf3;
  --line-strong: #d3daea;
  --canvas: #f3f5fa;
  --panel: #fff;
  --panel-soft: #f8f9fd;
  --field: #fff;
  --nav: #f3f5fa;
  --blue: #3b56c4;
  --blue-soft: #edf1ff;
  --accent: #3248a8;
  --accent-dark: #22348a;
  --workspace-shadow: 0 8px 32px #172b5610;
}
[data-theme="dark"] {
  --ink: #e9eefb;
  --ink-soft: #c4cde2;
  --muted: #9aa8c5;
  --faint: #7e8ba8;
  --line: #24304a;
  --line-strong: #35415f;
  --canvas: #0a1020;
  --panel: #111a2d;
  --panel-soft: #151f35;
  --field: #111a2d;
  --nav: #0d1527;
  --blue: #9bacff;
  --blue-soft: #243358;
  --accent: #536bd1;
  --accent-dark: #435abe;
  --workspace-shadow: 0 8px 32px #0002;
}
.mail-view:not(.hidden) {
  display: grid;
  grid-template-columns: 76px 226px minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.mail-view {
  font-size: 13px;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
.mail-view button:focus-visible,
.compose-modal :focus-visible {
  outline: 3px solid #8b9fee;
  outline-offset: 3px;
}
.suite-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 23px 10px;
  background:
    radial-gradient(ellipse at top, #22377570, transparent 70%), #0a1642;
  border: 0;
  position: relative;
}
.suite-rail::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #e31e24 0 30%,
    #fff 30% 35%,
    #1e2c72 35% 65%,
    #fff 65% 70%,
    #0b6b3a 70%
  );
}
.suite-logo {
  height: 44px;
  margin-bottom: 27px;
  background: transparent;
  border: 0;
}
.suite-logo img {
  width: 46px;
  height: 30px;
  object-fit: contain;
  background: white;
  padding: 3px;
  border-radius: 8px;
}
.suite-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 65px;
  padding: 9px 0;
  border-radius: 12px;
  color: #a4b2da;
  background: transparent;
  border: 0;
}
.suite-button.active {
  color: #fff;
  background: #ffffff17;
  box-shadow: inset 0 0 0 1px #ffffff12;
}
.suite-button:hover {
  color: #fff;
  background: #ffffff12;
}
.suite-button.active::before {
  display: none;
}
.suite-icon,
.suite-button.active .suite-icon {
  width: 25px;
  height: 25px;
  background: transparent;
  box-shadow: none;
}
.suite-copy {
  display: block;
}
.suite-copy strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.suite-copy small {
  display: none;
}
.suite-status {
  margin-top: auto;
  padding-top: 18px;
}
.suite-status span {
  background: #7ee2b8;
  box-shadow: 0 0 12px #7ee2b840;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 27px 16px 16px;
  overflow-y: auto;
  background: var(--nav);
  border: 0;
  gap: 0;
}
.sidebar-brand {
  padding: 0 8px 22px;
  border: 0;
  background: none;
}
.sidebar-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.sidebar-brand .brand-name {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.9px;
  color: var(--ink);
}
.sidebar-brand .brand-domain {
  font-size: 10px;
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.security-strip,
.mailbox-summary,
.mailbox-health,
.dashboard-strip,
.insights-panel,
.right-rail {
  display: none !important;
}
.compose-primary {
  width: 100%;
  min-height: 47px;
  margin: 0 0 25px;
  padding: 12px 16px;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, #344aa8, #22348a);
  color: #fff;
  box-shadow: 0 5px 12px #22348a25;
  font-size: 13px;
  font-weight: 600;
}
.compose-primary:hover {
  background: #3048b1;
  box-shadow: 0 7px 18px #22348a35;
}
.compose-primary .button-icon {
  background: transparent;
}
.sidebar-section {
  padding: 0 12px;
  margin: 0 0 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.sidebar-section strong {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
.folder-list,
.sidebar-extras {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.folder-button {
  min-height: 40px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}
.folder-button small {
  display: none;
}
.folder-label {
  font-size: 12px;
  font-weight: 500;
}
.folder-icon {
  width: 20px;
  height: 20px;
  background: transparent;
  border: 0;
  color: var(--muted);
}
.folder-icon svg {
  width: 18px;
  height: 18px;
}
.folder-button.active,
[data-theme="dark"] .folder-button.active {
  background: var(--blue-soft);
  border-color: transparent;
  box-shadow: none;
  color: var(--blue);
}
.folder-button.active .folder-icon {
  color: var(--blue);
  background: none;
}
.folder-button.active .folder-label {
  font-weight: 700;
}
.folder-button:hover {
  background: var(--panel);
  border-color: var(--line);
}
.folder-count {
  min-width: 22px;
  padding: 2px 5px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
}
.folder-button.active .folder-count {
  background: var(--panel);
  color: var(--blue);
}
.sidebar-extras {
  margin-top: 24px;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 25px;
  display: grid;
  gap: 5px;
  border: 0;
}
.sidebar-footer .ghost-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  font-size: 12px;
  justify-content: flex-start;
  color: var(--muted);
}
.sidebar-footer .ghost-button:hover {
  background: var(--panel);
  color: var(--ink);
}
.workspace {
  grid-template-rows: 98px minmax(0, 1fr);
  padding: 0 22px 22px 0;
  background: var(--canvas);
}
/* Layout lives on the plain selector only. Declaring it again under
   [data-theme="dark"] gave dark mode higher specificity than the phone
   overrides, so dark phones got the desktop layout. Dark sets colour only. */
.app-header {
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 340px) auto;
  gap: 18px;
  padding: 15px 3px;
  border: 0;
  background: transparent;
}
[data-theme="dark"] .app-header {
  border: 0;
  background: transparent;
}
.title-block {
  position: static;
  width: auto;
  height: auto;
  overflow: hidden;
  clip-path: none;
  white-space: normal;
}
.title-block .eyebrow {
  font-size: 9px;
  letter-spacing: 0.13em;
  margin-bottom: 5px;
  color: var(--muted);
}
.title-block h1 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.9px;
  line-height: 1.2;
}
.title-block p {
  display: none;
}
.search-box {
  min-width: 0;
  position: relative;
}
.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 2px 3px #14274f03;
}
.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.header-actions {
  gap: 5px;
}
.sync-status {
  max-width: 110px;
  font-size: 10px;
  margin-right: 8px;
  color: var(--muted);
}
.icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
}
.icon-button:hover {
  background: var(--panel);
  border-color: var(--line);
  color: var(--blue);
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
#header-archive-button,
#header-trash-button {
  display: none;
}
.suite-grid {
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.35fr);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--workspace-shadow);
  background: var(--panel);
  overflow: hidden;
}
.message-list-panel {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.list-toolbar {
  flex: 0 0 auto;
  min-height: 96px;
  padding: 19px 18px 14px;
  gap: 12px;
  background: var(--panel);
  align-content: center;
}
.list-toolbar > div:first-child {
  width: 100%;
  justify-content: space-between;
}
.list-toolbar strong {
  font-size: 12px;
  font-weight: 650;
}
.list-toolbar #selection-status {
  font-size: 10px;
  color: var(--muted);
}
.list-toolbar .filter-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter-chips button {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
}
.filter-chips button.active,
[data-theme="dark"] .filter-chips button.active {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue);
}
.message-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.message-row {
  display: grid;
  grid-template-columns: 16px 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  min-height: 104px;
  padding: 15px 10px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 9px;
  background: var(--panel);
}
[data-theme="dark"] .message-row {
  border-color: transparent;
  border-bottom-color: var(--line);
  background: var(--panel);
}
.message-row::before {
  width: 3px;
  top: 20px;
  bottom: 20px;
  border-radius: 4px;
}
.message-row.unread,
[data-theme="dark"] .message-row.unread {
  background: var(--panel-soft);
}
.message-row.active,
.message-row:hover,
[data-theme="dark"] .message-row.active,
[data-theme="dark"] .message-row:hover {
  background: var(--blue-soft);
}
.message-row.active {
  border-color: var(--line-strong);
}
.message-row.unread::before,
.message-row.active::before {
  background: var(--blue);
}
.message-bulk-check {
  position: static;
  width: 16px;
  height: 26px;
  opacity: 0.35;
  grid-column: 1;
  grid-row: 1;
}
.message-bulk-check:focus-within {
  opacity: 1;
}
.message-bulk-check input {
  accent-color: var(--blue);
}
.message-star {
  grid-column: 4;
  grid-row: 1;
  width: 22px;
  height: 28px;
  font-size: 20px;
  align-self: end;
  margin-bottom: 0;
}
.message-avatar {
  grid-column: 2;
  grid-row: 1;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 11px;
  align-self: start;
  margin-top: 2px;
}
.message-content {
  grid-column: 3;
  grid-row: 1;
  gap: 6px;
}
.message-sender {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-soft);
}
.message-subject {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 450;
}
.message-row.unread .message-sender,
.message-row.unread .message-subject {
  color: var(--ink);
  font-weight: 700;
}
.message-preview {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.message-date {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.status-chip {
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 4px;
}
.reader-panel {
  min-height: 0;
  overflow-y: auto;
  background: var(--panel);
}
[data-theme="dark"] .reader-panel {
  background: var(--panel);
}
.empty-reader {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
  background: radial-gradient(
    ellipse at 50% 45%,
    var(--blue-soft),
    transparent 65%
  );
}
.empty-mark {
  width: 100px;
  height: 100px;
  padding: 12px;
  margin-bottom: 25px;
  border-radius: 29px;
  border: 1px solid var(--line);
  transform: rotate(-7deg);
  background: var(--panel);
  box-shadow: 0 12px 35px #253c7910;
  color: var(--blue);
}
.empty-mark svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-reader h2 {
  max-width: 300px;
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.9px;
  color: var(--ink);
}
.empty-reader p {
  max-width: 245px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 15px 0 22px;
}
.empty-compose {
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--blue);
  background: var(--panel);
  font-size: 12px;
  font-weight: 600;
}
.empty-compose span {
  margin-left: 14px;
}
.empty-hint {
  margin-top: 30px;
  font-size: 10px;
  color: var(--muted);
}
kbd {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-family: var(--mono);
  background: var(--panel);
}
.message-reader {
  padding: 22px clamp(20px, 3vw, 44px) 40px;
}
.reader-actions {
  padding: 0 0 18px;
  margin-bottom: 29px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  overflow: visible;
  gap: 7px;
}
.reader-btn-group {
  gap: 3px;
  flex-wrap: wrap;
}
.reader-btn {
  min-height: 32px;
  border-radius: 7px;
  font-size: 10px;
  padding: 6px 8px;
}
.reader-btn-primary {
  color: var(--blue);
  background: var(--blue-soft);
}
.message-reader h1 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.7px;
  overflow-wrap: anywhere;
}
.reader-meta {
  margin-top: 22px;
  font-size: 12px;
  gap: 12px;
  color: var(--ink-soft);
}
.reader-recipients {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.reader-details {
  margin: 16px 0;
  gap: 5px;
}
.reader-details span {
  font-size: 9px;
  border: 0;
  padding: 4px 7px;
  background: var(--panel-soft);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.reader-body {
  padding-top: 24px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.reader-body-html {
  background: white;
  border-radius: 8px;
}
.attachment-pill {
  border-radius: 9px;
  background: var(--panel-soft);
}
.reader-back {
  display: none;
}
.list-empty {
  min-height: 300px;
  gap: 12px;
  padding: 45px 25px;
}
.list-empty strong {
  color: var(--ink);
  font-size: 17px;
}
.list-empty span {
  font-size: 12px;
  color: var(--muted);
}
.empty-list-icon svg {
  width: 35px;
  height: 35px;
  stroke: var(--blue);
  stroke-width: 1.3;
  fill: none;
}
.bulk-toolbar {
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 10px 14px;
  gap: 7px;
  background: var(--blue-soft);
}
.bulk-toolbar button {
  font-size: 10px;
}
.bulk-toolbar #bulk-count {
  font-size: 10px;
}
.module-panel {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  padding: 26px;
  box-shadow: var(--workspace-shadow);
}
.module-shell {
  gap: 24px;
}
.module-heading {
  padding: 0 0 20px;
  background: none;
  border-bottom: 1px solid var(--line);
}
.module-heading h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  color: var(--ink);
}
.module-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.module-metrics {
  gap: 12px;
}
.module-metric {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: none;
}
.module-metric::before,
.admin-stats div::before {
  display: none;
}
.module-metric strong {
  color: var(--ink);
  font-size: 28px;
}
.module-metric span {
  font-size: 10px;
  color: var(--muted);
}
.module-metric small {
  color: var(--muted);
}
.module-toolbar {
  background: none;
  padding: 0;
  border: 0;
}
.module-form,
.admin-columns section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}
.module-card,
.timeline-item,
.attachment-row,
.admin-stats div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}
.module-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--workspace-shadow);
}
.calendar-day {
  border-radius: 9px;
  background: var(--panel-soft);
}
.calendar-day.today {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.calendar-week {
  overflow-x: auto;
}
.calendar-week section {
  min-width: 120px;
  background: var(--panel-soft);
  border-radius: 9px;
}
.module-panel input,
.module-panel textarea,
.module-panel select,
.compose-panel input,
.compose-panel select {
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.module-panel button[type="submit"] {
  background: var(--accent);
  color: white;
  border-radius: 8px;
}
.compose-panel {
  width: min(780px, 100%);
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  gap: 15px;
  padding: 0 28px 24px;
}
.compose-header {
  background: linear-gradient(120deg, #182b69, #0a1642);
  color: white;
  min-height: 66px;
  margin: 0 -28px 5px;
  padding: 16px 24px;
  border-bottom: 3px solid #536bd1;
}
.compose-header h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.compose-header .icon-button {
  color: #fff;
}
.compose-panel label {
  font-size: 11px;
  color: var(--muted);
}
.compose-panel input,
.compose-panel select {
  min-height: 39px;
  font-size: 13px;
}
.rich-text-toolbar {
  background: var(--panel-soft);
  border-radius: 9px 9px 0 0;
  border-color: var(--line-strong);
  padding: 7px;
}
.compose-body {
  min-height: 210px;
  font-size: 14px;
  padding: 18px;
  line-height: 1.8;
  background: var(--field);
  border-color: var(--line-strong);
  border-radius: 0 0 9px 9px;
}
.compose-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.compose-actions button {
  min-width: 105px;
  border-radius: 9px;
  background: var(--accent);
}
.compose-tools .ghost-button {
  border-radius: 8px;
  font-size: 11px;
}
.toast {
  border-radius: 12px;
  background: #14234c;
  box-shadow: 0 12px 35px #0a164230;
}
.kbd-help-panel {
  border-radius: 18px;
}
.nav-backdrop,
.mobile-menu {
  display: none;
}
[data-density="compact"] .message-row {
  min-height: 76px;
  padding-block: 9px;
}
[data-density="compact"] .message-preview {
  display: none;
}
[data-density="compact"] .folder-button {
  min-height: 34px;
  padding-block: 6px;
}
@media (min-width: 1600px) {
  .suite-grid {
    grid-template-columns: minmax(380px, 0.85fr) minmax(0, 1.6fr);
  }
  .message-row {
    min-height: 110px;
  }
}
@media (max-width: 1250px) {
  .mail-view:not(.hidden) {
    grid-template-columns: 66px 196px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 11px;
  }
  .workspace {
    padding-right: 16px;
    padding-bottom: 16px;
  }
  .app-header {
    gap: 10px;
    grid-template-columns: minmax(110px, 1fr) minmax(150px, 230px) auto;
  }
  .sync-status {
    display: none;
  }
  .suite-grid {
    grid-template-columns: minmax(285px, 0.95fr) minmax(0, 1.1fr);
  }
  .message-avatar {
    display: none;
  }
  .message-row {
    grid-template-columns: 16px minmax(0, 1fr) 22px;
  }
  .message-content {
    grid-column: 2;
  }
  .message-star {
    grid-column: 3;
  }
}
@media (max-width: 1100px) {
  .suite-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reader-panel {
    display: none;
  }
  .suite-grid.reader-open .reader-panel {
    display: block;
  }
  .suite-grid.reader-open .message-list-panel {
    display: none;
  }
  .reader-back {
    display: inline-flex;
    background: var(--panel-soft);
    color: var(--blue);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 13px;
    margin-bottom: 18px;
    font-size: 12px;
  }
  .message-list-panel {
    border: 0;
  }
  .message-row {
    grid-template-columns: 16px 34px minmax(0, 1fr) 24px;
  }
  .message-avatar {
    display: flex;
    grid-column: 2;
  }
  .message-content {
    grid-column: 3;
  }
  .message-star {
    grid-column: 4;
  }
  .module-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-header {
    grid-template-columns: minmax(100px, 1fr) minmax(120px, 200px) auto;
  }
}
@media (max-width: 760px) {
  .mail-view:not(.hidden) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 64px;
  }
  .workspace {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: 112px minmax(0, 1fr);
    padding: 0 12px 10px;
    min-height: 0;
  }
  .suite-rail {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 4px 16px max(5px, env(safe-area-inset-bottom));
    gap: 6px;
    height: auto;
  }
  .suite-logo,
  .suite-status {
    display: none;
  }
  .suite-button {
    flex: 1;
    min-height: 52px;
    padding: 5px;
    gap: 3px;
    border-radius: 9px;
  }
  .suite-icon {
    height: 22px;
  }
  .suite-copy strong {
    font-size: 9px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 64px;
    width: min(300px, 84vw);
    height: auto;
    z-index: 32;
    padding: 25px 20px;
    transform: translateX(-105%);
    visibility: hidden;
    transition:
      transform 220ms ease,
      visibility 220ms;
    box-shadow: 15px 0 60px #02081730;
  }
  .navigation-open .sidebar {
    transform: none;
    visibility: visible;
  }
  .navigation-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 31;
    background: #07112a66;
    backdrop-filter: blur(4px);
  }
  .mobile-menu {
    display: inline-grid;
    place-items: center;
  }
  .app-header {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-rows: 45px 40px;
    gap: 7px 10px;
    padding: 9px 2px 11px;
  }
  .title-block .eyebrow {
    display: none;
  }
  .title-block h1 {
    font-size: 23px;
  }
  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .search-box input {
    height: 37px;
    font-size: 13px;
  }
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 2px;
  }
  #shortcuts-button {
    display: none;
  }
  .suite-grid {
    border-radius: 12px;
  }
  .list-toolbar {
    min-height: 90px;
    padding: 13px 14px;
  }
  .filter-chips button {
    min-height: 30px;
    font-size: 11px;
  }
  .message-row {
    padding: 15px 8px;
    min-height: 106px;
  }
  .message-sender,
  .message-subject {
    font-size: 12px;
  }
  .message-preview {
    font-size: 11px;
  }
  .message-bulk-check {
    opacity: 0.6;
  }
  .message-list {
    padding: 4px;
  }
  .message-reader {
    padding: 16px 18px 30px;
  }
  .reader-actions {
    gap: 8px;
    margin-bottom: 24px;
  }
  .reader-btn {
    min-height: 36px;
    font-size: 11px;
  }
  .reader-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .message-reader h1 {
    font-size: 24px;
  }
  .reader-body {
    font-size: 14px;
  }
  .module-panel {
    padding: 18px;
    border-radius: 12px;
  }
  .module-grid,
  .admin-columns,
  .module-form,
  .module-form.expanded {
    grid-template-columns: minmax(0, 1fr);
  }
  .module-form.expanded > * {
    grid-column: auto !important;
  }
  .module-heading {
    flex-wrap: wrap;
  }
  .module-toolbar {
    flex-wrap: wrap;
  }
  .module-metric {
    padding: 14px;
  }
  .module-metric strong {
    font-size: 25px;
  }
  .calendar-month {
    gap: 4px;
  }
  .calendar-day {
    padding: 6px 3px;
    min-height: 75px;
  }
  .calendar-day span {
    font-size: 8px;
  }
  .module-search {
    min-width: 0;
    width: 100%;
  }
  .compose-modal {
    padding: 0;
  }
  .compose-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 0 18px 22px;
  }
  .compose-header {
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .compose-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .compose-tools {
    display: flex;
    flex-wrap: wrap;
  }
  .compose-body {
    min-height: 200px;
  }
  .toast,
  .undo-toast {
    bottom: 80px;
    max-width: calc(100vw - 28px);
  }
}
@media (max-width: 380px) {
  .message-avatar {
    display: none;
  }
  .message-row {
    grid-template-columns: 16px minmax(0, 1fr) 22px;
  }
  .message-content {
    grid-column: 2;
  }
  .message-star {
    grid-column: 3;
  }
  .workspace {
    padding-inline: 7px;
  }
  .filter-chips button {
    padding-inline: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mail-view *,
  .compose-modal * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Reset legacy stacked layouts at the new navigation breakpoints. */
.workspace {
  display: grid;
}
.message-list {
  max-height: none;
}
.empty-reader {
  gap: 0;
}
.list-toolbar > div:first-child {
  display: flex;
}
.filter-chips button {
  width: auto;
}
.calendar-month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.module-shell {
  padding: 0;
}
@media (min-width: 761px) {
  .sidebar {
    position: relative;
    top: auto;
  }
  .suite-rail {
    position: relative;
    top: auto;
  }
}
@media (max-width: 860px) {
  .sidebar-footer {
    display: grid;
  }
  .sidebar-extras {
    display: flex;
  }
  .folder-count {
    display: block;
  }
}
@media (max-width: 760px) {
  .list-toolbar .filter-chips {
    width: auto;
  }
  .app-header {
    align-items: center;
  }
  .suite-rail {
    position: relative;
    top: auto;
  }
  .module-toolbar {
    display: flex;
  }
}
.sidebar-brand {
  box-shadow: none;
  border-radius: 0;
}
.suite-button {
  align-items: center;
}
.message-avatar {
  display: grid;
  place-items: center;
}
@media (min-width: 1101px) and (max-width: 1250px), (max-width: 380px) {
  .message-avatar {
    display: none;
  }
}
[data-theme="dark"] .suite-rail {
  background:
    radial-gradient(ellipse at top, #22377570, transparent 70%), #0a1642;
}

.module-heading {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-height: 70px;
}
.module-heading h2 {
  font-weight: 650;
}
.module-toolbar {
  box-shadow: none;
}
.module-form {
  box-shadow: none;
}
.module-metric span,
.module-metric small {
  font-weight: 500;
}

.snooze-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 25px 90px #060c2840;
}
.snooze-dialog::backdrop {
  background: #06112c70;
  backdrop-filter: blur(5px);
}
.snooze-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.snooze-heading .eyebrow {
  font-size: 9px;
  color: var(--muted);
}
.snooze-heading h2 {
  margin: 9px 0 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.snooze-dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 15px 0 22px;
}
.snooze-options {
  display: grid;
  gap: 8px;
}
.snooze-options button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--ink);
}
.snooze-options button:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.snooze-options strong {
  font-size: 12px;
  font-weight: 600;
}
.snooze-options span {
  grid-column: 1;
  font-size: 11px;
  color: var(--muted);
}
.snooze-options span:last-child {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
}

.compose-body {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--ink);
}
.compose-body:empty::before {
  font-weight: 400;
  color: var(--muted);
}
.compose-panel label,
.module-panel label {
  font-weight: 550;
  letter-spacing: 0.03em;
}
.module-create summary {
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.module-create summary::-webkit-details-marker {
  display: none;
}
.module-create[open] summary {
  margin-bottom: 14px;
}
.module-create summary:focus-visible {
  outline: 3px solid #8b9fee;
  outline-offset: 3px;
}

.calendar-weekday {
  padding: 8px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.calendar-blank {
  background: transparent;
}
