html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 0;
  font-variant-numeric: tabular-nums;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  color: var(--text-muted);
  font: 500 10.5px/1 var(--font-mono);
}

.app {
  --list-width: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
  background: var(--bg);
}

.side,
.splitter {
  display: none;
}

.list-pane,
.reader {
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
  min-height: 0;
}

.app[data-view="reader"] .list-pane,
.app[data-view="list"] .reader {
  visibility: hidden;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--target-min);
  height: var(--target-min);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-button:active {
  background: var(--surface-3);
}

.icon-button.is-flagged {
  color: var(--primary-text);
}

.icon-button.is-flagged .icon {
  fill: currentColor;
  fill-opacity: 0.25;
}

.list-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.list-head {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.list-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--bar);
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--line);
}

.list-title {
  min-width: 0;
  overflow: hidden;
  font: 600 17px/1 var(--font-display);
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-count {
  flex: 1;
  color: var(--text-muted);
  font: 500 13px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 12px;
  padding: 3px;
  border-radius: var(--r-lg);
  background: var(--recessed);
  box-shadow: var(--ring-soft);
}

.search-icon {
  position: absolute;
  left: 13px;
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: var(--control);
  height: 30px;
  padding: 0 32px 0 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.search-input::placeholder {
  color: var(--text-faint);
}

.search-input:hover {
  border-color: var(--line-strong);
}

.search-input:focus-visible {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 38%, transparent);
}

.search-input::-webkit-search-cancel-button {
  filter: grayscale(1);
}

.search-hint {
  position: absolute;
  right: 12px;
  pointer-events: none;
}

.search-input:focus ~ .search-hint,
.search-input:not(:placeholder-shown) ~ .search-hint {
  display: none;
}

.list-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.message-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.message-list:focus-visible {
  outline-offset: -2px;
}

.row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  grid-template-areas:
    "dot from meta"
    ". text text"
    ". snippet snippet";
  column-gap: 10px;
  row-gap: 2px;
  align-content: center;
  min-height: var(--row-comfortable);
  padding: 11px 16px 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur-fast) var(--ease);
  animation: row-in 300ms var(--ease-out) both;
}

.row:nth-child(2) {
  animation-delay: 30ms;
}

.row:nth-child(3) {
  animation-delay: 60ms;
}

.row:nth-child(4) {
  animation-delay: 90ms;
}

.row:nth-child(5) {
  animation-delay: 120ms;
}

.row:nth-child(n + 6) {
  animation-delay: 150ms;
}

@keyframes row-in {
  from {
    opacity: 0.01;
    translate: 0 4px;
  }
}

.row:hover {
  background: var(--surface-1);
}

.row[aria-selected="true"] {
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-text) 28%, transparent);
}

.row:focus-visible {
  outline-offset: -2px;
  border-radius: 0;
}

.row-dot {
  grid-area: dot;
  align-self: start;
  justify-self: center;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
}

.is-unread .row-dot {
  background: var(--primary-text);
}

.row-from {
  grid-area: from;
  overflow: hidden;
  color: var(--text);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-from .mono {
  font-size: 0.95em;
}

.row-to {
  color: var(--text-faint);
}

.is-unread .row-from,
.is-unread .row-subject {
  font-weight: 600;
}

.row-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-faint);
  font: 400 11.5px/1.6 var(--font-mono);
}

.row-flag {
  color: var(--primary-text);
}

.row-flag .icon {
  fill: currentColor;
  fill-opacity: 0.25;
}

.row-time {
  white-space: nowrap;
}

.row-text {
  grid-area: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-subject {
  color: var(--text);
}

.row-snippet {
  grid-area: snippet;
  overflow: hidden;
  color: var(--text-faint);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-folder {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  vertical-align: 1px;
}

.row-skeleton {
  grid-template-areas: none;
  grid-template-columns: 1fr;
  row-gap: var(--sp-3);
  cursor: default;
}

.bone {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 0.05) 50%, transparent 100%) 0 0 / 200% 100%, var(--surface-2);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% 0, 0 0;
  }

  to {
    background-position: -200% 0, 0 0;
  }
}

.bone-a {
  width: 45%;
}

.bone-b {
  width: 85%;
  opacity: 0.6;
}

@keyframes pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bone,
  .upload.is-uploading .upload-size {
    animation: none;
  }
}

.list-empty {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-10) var(--sp-7);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
  text-wrap: pretty;
}

.list-empty-title {
  color: var(--text);
  font: 600 16px/1.3 var(--font-display);
}

.list-foot {
  padding: var(--sp-5);
  color: var(--text-faint);
  font-size: var(--fs-xs);
  text-align: center;
}

.list-foot:empty {
  padding: var(--sp-1);
}

.reader {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.reader:focus {
  outline: none;
}

.reader-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-8);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.reader-empty[hidden] {
  display: none;
}

.reader-empty-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
  color: var(--line-strong);
  stroke-width: 1.2;
}

.reader-empty-title {
  color: var(--text);
  font: 600 16px/1.3 var(--font-display);
}

.message {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.message[hidden] {
  display: none;
}

.message-head {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: var(--bar);
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}

.message-head > .toolbar {
  margin: 0 -16px 6px;
}

.toolbar-gap {
  flex: 1;
}

.message-subject {
  font: 600 22px/1.2 var(--font-display);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.message-from {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
}

.message-date {
  color: var(--text-faint);
  font: 400 11.5px/1 var(--font-mono);
}

.person {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  min-width: 0;
  max-width: 100%;
}

.person-name {
  font-weight: 600;
}

.recipients {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-4);
  margin: 0;
  font-size: var(--fs-sm);
}

.recipients:empty {
  display: none;
}

.recipients-row {
  display: contents;
}

.recipients dt {
  align-self: center;
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

.recipients dd {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  min-width: 0;
}

.recipients .person-name {
  color: var(--text-muted);
  font-weight: 500;
}

.message-warning {
  align-items: center;
}

.message-warning .icon {
  color: var(--danger);
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-1);
  color: var(--text);
  font: 400 12px/1 var(--font-mono);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.attachment:hover {
  background: var(--surface-2);
}

.attachment .icon {
  color: var(--text-muted);
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  color: var(--text-faint);
  font: 400 11.5px/1 var(--font-sans);
}

.attachment-get {
  opacity: 0.6;
  transition: opacity var(--dur-fast) var(--ease);
}

.attachment:hover .attachment-get {
  opacity: 1;
}

.remote-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 16px 12px;
  padding: 5px 6px 5px 12px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: var(--ring-soft);
  color: var(--text);
  font-size: 13px;
}

.remote-bar p {
  flex: 1 1 16rem;
}

.remote-bar .icon {
  color: var(--text-muted);
}

.remote-actions {
  display: flex;
  gap: var(--sp-2);
}

.remote-actions .btn-quiet {
  color: var(--primary-text);
}

.message-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  padding: 0 16px 16px;
}

.message-body.is-html {
  flex: 1 0 min(70vh, 640px);
}

.html-body {
  flex: 1;
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--r-lg);
  background: #ffffff;
  color-scheme: light;
}

.text-body {
  max-width: 72ch;
  padding: 20px 22px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: var(--ring-soft);
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-loading {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-5);
}

.bone-title {
  width: 60%;
  height: 18px;
}

.bone-sheet {
  height: 280px;
  margin-top: var(--sp-5);
  opacity: 0.35;
}

.menu {
  position: fixed;
  inset: auto;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-float);
}

.menu:popover-open:not(.is-placed) {
  visibility: hidden;
}

.menu.is-sheet {
  inset: auto 8px 8px;
  max-width: none;
  border-radius: var(--r-lg);
}

.menu-folders {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.menu-item > span:first-of-type {
  flex: 1;
}

.menu-item .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.menu-item:hover:not(:disabled) {
  background: var(--surface-3);
}

.menu-item:disabled {
  color: var(--text-faint);
  cursor: default;
}

.menu-item[aria-current="page"],
.menu-item[aria-current="page"] .icon {
  color: var(--primary-text);
}

.menu-count {
  color: var(--text-faint);
  font: 500 11.5px/1 var(--font-mono);
}

.menu-label {
  padding: 6px 10px 6px;
  color: var(--text-faint);
  font: 500 11px/1 var(--font-sans);
  letter-spacing: 0.02em;
}

.menu-rule {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line-2);
}

.account-name {
  padding: var(--sp-2) var(--sp-4) 0;
  font-weight: 600;
}

.account-login {
  padding: 0 var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}

.quota {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) 0;
}

.quota[hidden] {
  display: none;
}

.quota-bar {
  height: 4px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: var(--surface-1);
}

.quota-bar span {
  display: block;
  height: 100%;
  background: var(--primary-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}

.quota-bar.is-full span {
  background: var(--danger);
}

.quota-text {
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

.dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow-float);
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.7);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: calc(var(--sp-3) * -1) calc(var(--sp-3) * -1) var(--sp-4) 0;
}

.dialog h2 {
  font: 600 17px/1.25 var(--font-display);
  letter-spacing: -0.015em;
}

.shortcuts {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  font-size: var(--fs-sm);
}

.shortcuts div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: var(--sp-4);
  align-items: baseline;
}

.shortcuts dt {
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

.shortcuts dd {
  color: var(--text-muted);
}

.confirm-text {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  min-height: 40px;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--surface-3);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  box-shadow: var(--shadow-float);
  transform: translateX(-50%);
  animation: toast-in var(--dur-base) var(--ease);
}

.toast:has(.toast-action:not([hidden])) {
  padding-right: var(--sp-2);
}

.toast[hidden],
.toast-action[hidden] {
  display: none;
}

.toast-action {
  flex: none;
  min-height: 32px;
  padding: 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--primary-text);
  font-weight: 600;
  cursor: pointer;
}

.toast-action:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

@media (min-width: 640px) {
  .message-head,
  .message-body {
    padding-inline: 28px;
  }

  .message-head > .toolbar {
    margin-inline: -28px;
    padding-inline: 16px;
  }

  .remote-bar {
    margin-inline: 28px;
  }
}

@media (min-width: 900px) {
  .app {
    grid-template-columns: var(--list-width) 0 minmax(0, 1fr);
  }

  .app[data-view] .list-pane,
  .app[data-view] .reader {
    visibility: visible;
  }

  .list-pane {
    grid-column: 1;
    border-right: 1px solid var(--line);
  }

  .app {
    --list-width: 400px;
  }

  .splitter {
    grid-column: 2;
  }

  .reader {
    grid-column: 3;
  }

  .back-button {
    display: none;
  }

  .splitter {
    position: relative;
    z-index: 5;
    display: block;
    width: 0;
    cursor: col-resize;
    touch-action: none;
  }

  .splitter::before {
    content: "";
    position: absolute;
    inset: 0 -4px;
  }

  .splitter::after {
    content: "";
    position: absolute;
    inset: 0 -1px;
    background: var(--primary-text);
    opacity: 0;
    transition: opacity var(--dur-fast) var(--ease);
  }

  .splitter:hover::after,
  .splitter:focus-visible::after {
    opacity: 1;
  }

  .splitter:focus-visible {
    outline: none;
  }

  .message-head {
    padding-top: 0;
  }
}

@media (min-width: 1200px) {
  .app {
    grid-template-columns: var(--side-width) var(--list-width) 0 minmax(0, 1fr);
  }

  .list-pane {
    grid-column: 2;
  }

  .splitter {
    grid-column: 3;
  }

  .reader {
    grid-column: 4;
  }

  .folder-toggle,
  .account-toggle,
  .compose-button {
    display: none;
  }

  .side {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--line);
    background: var(--bg);
  }
}

.side-brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--bar);
  padding: 0 18px;
}

.side-brand .mark {
  width: 24px;
  height: 24px;
}

.side-tag {
  padding: 3px 7px;
  border-radius: var(--r-sm);
  box-shadow: var(--ring);
  color: var(--text-muted);
  font: 500 11px/1 var(--font-mono);
}

.side-write {
  flex: none;
  padding: 6px 12px 0;
}

.side-compose {
  justify-content: space-between;
  width: 100%;
  height: 36px;
  font-size: 14px;
}

.side-compose-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.side-compose kbd {
  border-color: transparent;
  background: rgb(255 255 255 / 0.16);
  color: var(--on-primary-soft);
}

.side-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 12px 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.side-label {
  display: block;
  margin: 18px 0 8px;
  padding: 0 10px;
  color: var(--text-muted);
  font: 500 13px/1 var(--font-sans);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text);
  font: 500 13px/1 var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.side-item .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.side-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.side-item[aria-current] {
  background: var(--surface-2);
  box-shadow: var(--ring-soft);
}

.side-item[aria-current] .icon {
  color: var(--text);
}

.side-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-count {
  margin-left: auto;
  color: var(--text-muted);
  font: 500 12px/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.side-count.is-strong {
  color: var(--text);
  font-weight: 600;
}

.side-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 5px;
  border-radius: 50%;
}

.side-dot.is-mailbox {
  background: var(--primary-text);
}

.side-dot.is-alias {
  box-shadow: inset 0 0 0 1.5px var(--text-faint);
}

.side-dot.is-temp {
  background: var(--brass);
}

.side-addr {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-time {
  margin-left: auto;
  color: var(--brass);
  font: 500 11.5px/1 var(--font-mono);
}

.side-time.is-urgent {
  color: var(--danger);
}

.side-item[aria-current] .side-time {
  color: var(--brass);
}

.side-foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0 6px;
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: var(--ring);
  font: 600 12px/1 var(--font-display);
}

.me-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.me-login {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-role {
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1;
}

.me-menu {
  width: 28px;
  height: 28px;
}

.compose-button {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-size: 14px;
  box-shadow: var(--shadow-float);
}

.compose-button .icon {
  width: 18px;
  height: 18px;
}

.reader.is-composing > .message,
.reader.is-composing > .reader-empty {
  display: none;
}

.composer {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.composer[hidden] {
  display: none;
}

.compose-head {
  padding: 0;
}

.compose-title {
  margin-left: 4px;
  font: 600 15px/1 var(--font-display);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.compose-status {
  min-width: 0;
  margin-left: var(--sp-3);
  overflow: hidden;
  color: var(--text-faint);
  font-size: var(--fs-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-button {
  margin-left: var(--sp-2);
  padding-inline: var(--sp-5);
}

.compose-error {
  align-items: center;
  margin: 12px 16px 0;
}

.compose-error[hidden] {
  display: none;
}

.envelope {
  margin: 0;
  border-top: 0;
}

.envelope-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 16px;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.envelope-line[hidden] {
  display: none;
}

.envelope-line:focus-within {
  box-shadow: inset 0 -2px 0 var(--focus);
}

.envelope-label {
  color: var(--text-faint);
  font-size: 12.5px;
}

.envelope-extra {
  display: flex;
  gap: var(--sp-1);
}

.envelope-extra .btn-quiet {
  min-height: 32px;
  padding-inline: var(--sp-3);
}

.recipients-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  min-height: 36px;
  cursor: text;
}

.recipient-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 26px;
  padding: 0 2px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface-1);
  font-size: 12.5px;
  cursor: default;
}

.recipient-name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.recipient-address {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.93em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient.is-invalid {
  border-color: color-mix(in srgb, var(--danger) 70%, transparent);
}

.recipient.is-invalid .recipient-address {
  color: var(--danger);
  text-decoration: underline wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.recipient-remove {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.recipient-remove:hover {
  background: var(--surface-3);
  color: var(--text);
}

.recipient-entry,
.subject-input {
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.recipient-entry {
  flex: 1 1 10rem;
  font-family: var(--font-mono);
  font-size: 13px;
}

.subject-input {
  grid-column: 2 / -1;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
}

.recipient-entry:focus-visible,
.subject-input:focus-visible,
.compose-body:focus-visible {
  outline: none;
}

.from-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  grid-column: 2 / -1;
  min-width: 0;
}

.from-option {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  cursor: pointer;
}

.from-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.from-option .address-chip {
  height: 28px;
  color: var(--text-muted);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.from-option:hover .address-chip {
  border-color: var(--line-strong);
  color: var(--text);
}

.from-radio:checked + .address-chip {
  border-color: var(--primary-edge);
  background: var(--primary-tint);
  color: var(--text);
}

.from-radio:focus-visible + .address-chip {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.from-none {
  grid-column: 2 / -1;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.uploads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 16px 0;
  padding: 0;
  list-style: none;
}

.uploads[hidden] {
  display: none;
}

.upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 32px;
  padding: 0 2px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-1);
  font: 400 12px/1 var(--font-mono);
}

.upload .icon {
  color: var(--text-muted);
}

.upload-name {
  min-width: 0;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-size {
  padding-right: var(--sp-2);
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

.upload.is-uploading {
  border-style: dashed;
}

.upload.is-uploading .upload-size {
  animation: pulse 1.4s var(--ease) infinite;
}

.compose-sheet {
  display: flex;
  flex: 1 0 auto;
  padding: 0;
}

.compose-body {
  flex: 1;
  width: 100%;
  max-width: none;
  min-height: 280px;
  padding: 20px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
  font-size: 14.5px;
  line-height: 1.65;
  resize: none;
}

.compose-body:focus-visible {
  box-shadow: inset 2px 0 0 var(--focus);
}

.composer.is-dropping .compose-body {
  border-color: var(--primary-text);
  background: var(--primary-tint);
}

.reply-tool {
  display: none;
}

.reply-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 32px;
}

.reply-bar .icon {
  color: var(--text-muted);
}

.send-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.send-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: currentColor;
}

.send-status-label {
  font-weight: 500;
}

.send-status-detail {
  flex-basis: 100%;
  padding-left: calc(8px + var(--sp-3));
  color: var(--text-muted);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}

.send-status.is-queued,
.send-status.is-sending {
  color: var(--text-faint);
}

.send-status.is-delivered {
  color: var(--success);
}

.send-status.is-bounced,
.send-status.is-complained,
.send-status.is-failed {
  color: var(--danger);
}

.row-status {
  color: var(--text-faint);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
}

.row-status.is-bounced,
.row-status.is-complained,
.row-status.is-failed {
  color: var(--danger);
}

@media (min-width: 640px) {
  .reply-tool {
    display: inline-grid;
  }

  .envelope-line,
  .compose-body {
    padding-inline: 28px;
  }

  .compose-head .toolbar,
  .manage-head .toolbar {
    padding-inline: 16px;
  }

  .reply-bar {
    padding-inline: 28px;
  }

  .format-area {
    padding-inline: 22px;
  }

  .uploads,
  .compose-error {
    margin-inline: 28px;
  }
}

@media (min-width: 900px) {
  .compose-button {
    position: static;
    height: 28px;
    padding: 0 10px;
    border-radius: var(--r-md);
    font-size: 12.5px;
    box-shadow: none;
  }

  .compose-button .icon {
    width: 14px;
    height: 14px;
  }

  .compose-head {
    padding-top: 0;
  }
}

.reader.is-managing > .message,
.reader.is-managing > .reader-empty {
  display: none;
}

.manage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.manage[hidden] {
  display: none;
}

.manage-head {
  padding: 0;
}

.manage-title {
  margin-left: 4px;
  font: 600 15px/1 var(--font-display);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.manage-title:focus {
  outline: none;
}

.manage-meta {
  margin-left: 12px;
  color: var(--text-faint);
  font: 400 11.5px/1 var(--font-mono);
  white-space: nowrap;
}

.manage-close {
  display: none;
}

.manage-body {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 860px;
  padding: 20px 16px 56px;
}

.manage-body[aria-busy="true"] {
  gap: var(--sp-4);
}

.manage-lede {
  max-width: 72ch;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13.5px;
  text-wrap: pretty;
}

.manage-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
}

.manage-form .field-error[hidden] {
  display: none;
}

.manage-empty {
  padding: 16px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 13px;
}

.address-input {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.address-input .input {
  flex: 1 1 10rem;
  min-width: 0;
}

.address-domain {
  flex: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.address-input .address-select {
  flex: 0 1 14rem;
}

.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: var(--sp-3);
  padding: 0;
}

.choices {
  display: inline-flex;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}

.choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.choice-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border-right: 1px solid var(--line-2);
  color: var(--text-muted);
  font: 500 12.5px/1 var(--font-mono);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.choice:last-child .choice-pill {
  border-right: 0;
}

.choice:hover .choice-pill {
  background: var(--surface-2);
  color: var(--text);
}

.choice-radio:checked + .choice-pill {
  background: var(--primary);
  color: var(--on-primary);
}

.choice-radio:focus-visible + .choice-pill {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.choice-group:disabled .choice {
  cursor: not-allowed;
  opacity: 0.5;
}

.address-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.address-row {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.address-row:last-child {
  border-bottom: 0;
}

.address-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}

.address-row-main .address-chip {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13.5px;
}

.address-row.is-off .address-chip {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
}

.address-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.address-row-actions .btn-small {
  height: 28px;
}

.row-delete {
  margin-left: auto;
}

.row-delete:hover {
  color: var(--danger);
}

.label-input {
  width: 100%;
  min-height: 36px;
  margin-left: calc(var(--sp-3) * -1);
  padding: 0 var(--sp-3);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-sm);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.label-input::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

.label-input:hover {
  background: var(--surface-2);
}

.label-input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.address-label {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.countdown {
  height: 24px;
  padding: 0 10px;
  font-size: 12.5px;
}

.countdown.is-urgent {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 12px 10px;
}

.filter-bar[hidden] {
  display: none;
}

.filter-label {
  color: var(--text-faint);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.filter-bar .address-chip {
  flex: 0 1 auto;
  min-width: 0;
}

.filter-bar .countdown,
.filter-label {
  flex: none;
}

.filter-clear {
  width: 32px;
  height: 32px;
  margin-left: auto;
}

.menu-item.address-option > .address-chip {
  flex: 0 1 auto;
  min-width: 0;
}

.address-option[aria-current="true"] .address-chip {
  border-color: var(--primary-text);
  background: var(--primary-tint);
}

.address-menu {
  min-width: 260px;
}

@media (min-width: 640px) {
  .manage-head {
    padding-top: 0;
  }

  .manage-body {
    padding-inline: 28px;
  }

  .address-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--sp-5);
  }

  .address-row .label-input,
  .address-row .address-label {
    grid-row: 2;
    grid-column: 1;
  }

  .address-row-actions {
    grid-row: 1 / span 2;
    grid-column: 2;
    margin-left: 0;
  }

  .row-delete {
    margin-left: 0;
  }
}

@media (min-width: 900px) {
  .manage-head {
    padding-top: 0;
  }

  .manage-close {
    display: inline-grid;
  }
}


.list-head.is-bulk .list-title-row,
.list-head.is-bulk .search {
  display: none;
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 0 8px;
}

.bulk-bar[hidden] {
  display: none;
}

.bulk-count {
  padding-inline: var(--sp-2) var(--sp-3);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.bulk-bar .btn-quiet {
  color: var(--primary-text);
}

.maintenance-bar {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 12px 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-1);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.maintenance-bar[hidden] {
  display: none;
}

.maintenance-bar .icon {
  flex: none;
  margin-top: 1px;
  color: var(--text);
}

.row-dot {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.row-dot::before {
  content: "";
  position: absolute;
  inset: -14px -10px;
}

.row-check {
  display: none;
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.message-list.is-selecting .row {
  grid-template-columns: 16px minmax(0, 1fr) auto;
}

.message-list.is-selecting .row-dot {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
}

.message-list.is-selecting .row:hover .row-dot {
  border-color: var(--text-muted);
}

.message-list.is-selecting .row.is-checked .row-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.message-list.is-selecting .row.is-checked .row-check {
  display: block;
}

.row.is-checked {
  background: var(--primary-tint);
}

@media (hover: hover) {
  .message-list:not(.is-selecting) .row:hover .row-dot:hover {
    outline: 1.5px solid var(--line-strong);
    outline-offset: 3px;
    border-radius: 3px;
  }
}

.app[data-density="compact"] .row {
  grid-template-columns: 8px minmax(0, 12rem) minmax(0, 1fr) auto;
  grid-template-areas: "dot from text meta";
  min-height: var(--row-compact);
  padding-block: var(--sp-2);
}

.app[data-density="compact"] .message-list.is-selecting .row {
  grid-template-columns: 16px minmax(0, 12rem) minmax(0, 1fr) auto;
}

.app[data-density="compact"] .row-text {
  align-self: center;
}

.thread {
  margin: 0 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1);
}

.thread-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--target-min);
  padding: 0 var(--sp-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.thread-summary::-webkit-details-marker {
  display: none;
}

.thread-summary:hover {
  color: var(--text);
}

.thread-chevron {
  transition: transform var(--dur-fast) var(--ease);
}

.thread[open] .thread-chevron {
  transform: rotate(180deg);
}

.thread-list {
  margin: 0;
  padding: 0 0 var(--sp-2);
  list-style: none;
  border-top: 1px solid var(--line);
}

.thread-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--sp-4);
  width: 100%;
  min-height: var(--target-min);
  padding: var(--sp-3) var(--sp-5);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.thread-item:hover:not(:disabled) {
  background: var(--surface-2);
}

.thread-item:focus-visible {
  outline-offset: -2px;
}

.thread-item[aria-current="true"] {
  box-shadow: inset 3px 0 0 var(--primary);
  background: var(--primary-tint);
  cursor: default;
}

.thread-who {
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-item.is-unread .thread-who {
  font-weight: 600;
}

.thread-time {
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

.thread-snippet {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-status-action {
  margin-left: var(--sp-2);
}

.format-area {
  display: grid;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}

.format-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  max-width: 72ch;
}

.format-button {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.format-button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--primary-text);
}

.link-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  max-width: 72ch;
}

.link-field[hidden] {
  display: none;
}

.link-input {
  flex: 1 1 16rem;
  min-height: 36px;
}

div.compose-body {
  overflow-wrap: anywhere;
  cursor: text;
}

div.compose-body:focus {
  outline: none;
  border-color: var(--line-strong);
}

.compose-body blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--text-faint);
}

.compose-body ul,
.compose-body ol {
  margin: var(--sp-2) 0;
  padding-left: var(--sp-7);
}

.compose-body p {
  margin: 0 0 var(--sp-4);
}

.compose-body a {
  color: var(--primary-text);
}

.compose-body table {
  max-width: 100%;
  border-collapse: collapse;
}

.compose-body pre {
  white-space: pre-wrap;
}

.settings-section {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.settings-section + .settings-section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.settings-title {
  font: 600 14px/1.2 var(--font-display);
  letter-spacing: -0.01em;
}

.block-form {
  padding: 0;
  border: 0;
}

.inline-field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.inline-field .input {
  flex: 1 1 16rem;
}

.inline-field .btn {
  gap: var(--sp-3);
}

.choice-group.is-plain .choice-radio:checked + .choice-pill {
  background: var(--primary);
  color: var(--on-primary);
}

.bulk-bar {
  flex-wrap: wrap;
}

.bulk-bar .toolbar-gap {
  flex: 1 0 100%;
  height: 0;
}

.bulk-bar .btn-quiet {
  white-space: nowrap;
}

@media (min-width: 900px) {
  .icon-button {
    width: var(--control);
    height: var(--control);
  }

  .icon-button .icon {
    width: 16px;
    height: 16px;
  }

  .app:has(.reader.is-managing) {
    grid-template-columns: 0 0 minmax(0, 1fr);
  }

  .app:has(.reader.is-managing) .list-pane {
    visibility: hidden;
  }
}

@media (min-width: 1200px) {
  .app:has(.reader.is-managing) {
    grid-template-columns: var(--side-width) 0 0 minmax(0, 1fr);
  }
}

.app[data-density="compact"] .row-snippet {
  display: none;
}

.settings-section .manage-lede {
  padding-bottom: 0;
  border-bottom: 0;
}

.compose-foot {
  position: sticky;
  bottom: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-faint);
  font-size: var(--fs-xs);
}

.compose-foot[hidden] {
  display: none;
}

.compose-foot strong {
  color: var(--text-muted);
  font-weight: 500;
}

.usage {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.usage-note {
  color: var(--text-faint);
  font-size: 12px;
}

.usage-meter {
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.usage-meter::-webkit-meter-bar {
  height: 4px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.usage-meter::-webkit-meter-optimum-value {
  border-radius: var(--r-sm);
  background: var(--primary-text);
}

.usage-meter::-moz-meter-bar {
  border-radius: var(--r-sm);
  background: var(--primary-text);
}

.settings-section .shortcuts {
  max-width: 560px;
}
