/* vzMail layout and components. Tokens: tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.modal-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font: 600 12px/20px var(--mono);
  text-align: center;
}
:focus-visible { outline: none; box-shadow: var(--focus); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- icons ---------- */
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- signed out / loading ---------- */
#app { height: 100%; }
.center { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: 40px 32px 36px;
  text-align: center;
}
.card > * + * { margin-top: 16px; }
.brand { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; }
.brand span { color: var(--accent); }
.brand.small { font-size: 21px; }
.notice {
  padding: 10px 12px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--text);
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 120ms ease, background-color 120ms ease;
}
.button:hover { filter: brightness(1.07); }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button.secondary:hover { background: var(--surface-2); filter: none; }
.button.danger { background: var(--danger); color: var(--danger-text); }
.button:disabled { opacity: 0.55; cursor: default; filter: none; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.icon-button:hover { background: var(--surface-2); color: var(--text); }
.icon-button:disabled { opacity: 0.4; cursor: default; background: transparent; }
.icon-button.small { width: 30px; height: 30px; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.link-button:hover { color: var(--accent-ink); text-decoration: underline; }

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 14px 12px 12px;
  background: var(--bg);
}
.brand-row { display: flex; align-items: center; height: 36px; padding: 0 12px; }
.compose {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  height: 52px;
  margin: 6px 0 10px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: var(--shadow-1);
  cursor: pointer;
}
.compose:hover { box-shadow: var(--shadow-2); }
.compose:disabled { opacity: 0.6; cursor: default; box-shadow: var(--shadow-1); }
.nav { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.nav-item .icon { color: var(--muted); }
.nav-item:hover { background: var(--surface-3); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.nav-item.active .icon { color: var(--accent-ink); }
.nav-item.depth-1 { padding-left: 34px; }
.nav-item.depth-2 { padding-left: 54px; }
.nav-item.depth-3 { padding-left: 74px; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 0 12px;
  border-top: 1px solid var(--border);
}
.account { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.scrim { display: none; }

.main { display: grid; grid-template-rows: var(--topbar) minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); min-width: 0; padding: 0 12px 12px 0; }
.topbar { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 720px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.search:focus-within { background: var(--surface); box-shadow: var(--shadow-2); }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-input:focus-visible { box-shadow: none; }
.search-input::-webkit-search-cancel-button { display: none; }

.panes {
  display: grid;
  grid-template-columns: minmax(320px, var(--list)) minmax(0, 1fr);
  /* One row the height of the screen: the panes scroll, not the page. */
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}
.list-pane { container: list / inline-size; }
.list-pane, .reader-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

/* ---------- list ---------- */
.list-toolbar, .reader-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 10px 6px 14px;
  border-bottom: 1px solid var(--border);
}
.toolbar-group { display: flex; align-items: center; gap: 2px; }
.toolbar-spacer { flex: 1; }
.list-count, .selection-count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.check { width: 16px; height: 16px; margin: 0 8px 0 2px; accent-color: var(--accent); cursor: pointer; }

.rows { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 4px 6px 12px; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 26px 30px minmax(0, 1fr);
  align-items: center;
  margin-top: var(--row-gap);
  padding-left: 8px;
  border-radius: var(--radius);
  transition: background-color 100ms ease;
}
.row:hover { background: var(--surface-2); }
.row.selected { background: var(--accent-soft); }
.row.open { background: var(--accent-soft); }
.row.cursor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.row .check { margin: 0; }
.row .star { width: 30px; height: 30px; }
.star { color: var(--faint); }
.star:hover { color: var(--star); }
.star[aria-pressed="true"] { color: var(--star); }
.star[aria-pressed="true"] .icon { fill: currentColor; }
.row-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "avatar who meta" "avatar text text";
  column-gap: 12px;
  row-gap: 1px;
  align-items: center;
  min-width: 0;
  padding: var(--row-pad) 12px var(--row-pad) 4px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.row-main > .avatar { grid-area: avatar; }
.row-who { grid-area: who; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.row-count { color: var(--faint); font-size: 12px; font-weight: 500; }
.row-text { grid-area: text; display: flex; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.row-subject { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.row-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--faint); }
.row-preview::before { content: "– "; }
.row-preview:empty::before { content: none; }
.row-meta { grid-area: meta; display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.unread .row-who { color: var(--text); font-weight: 700; }
.row.unread .row-subject { font-weight: 650; }
.row.unread .row-meta { color: var(--accent-ink); font-weight: 650; }

/* Compact: no avatars, tighter rows; one line per conversation when the
   list itself is wide enough (container query), two lines otherwise. */
:root[data-density="compact"] .row-main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who meta" "text text"; }
:root[data-density="compact"] .row-main > .avatar { display: none; }
@container list (min-width: 640px) {
  :root[data-density="compact"] .row-main {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto;
    grid-template-areas: "who text meta";
  }
}

.row.ghost { height: 72px; margin: 6px 4px; padding: 0; grid-template-columns: 40px 1fr; gap: 12px; }
.row.ghost span { display: block; height: 12px; border-radius: 6px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
.row.ghost span:first-child { width: 40px; height: 40px; border-radius: 50%; grid-row: span 2; }
.row.ghost span:nth-child(3) { width: 70%; }
@keyframes pulse { 50% { opacity: 0.45; } }
.list-end { height: 1px; }
.list-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.list-empty, .reader-empty, .reader-status {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  flex: 1;
  padding: 48px 24px;
  color: var(--faint);
  text-align: center;
}
.empty-title { color: var(--text); font-size: 17px; font-weight: 650; }

/* ---------- avatars ---------- */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-weight: 650;
  letter-spacing: 0.02em;
  user-select: none;
  background: light-dark(hsl(var(--h, 225) 60% 88%), hsl(var(--h, 225) 60% 26%));
  color: light-dark(hsl(var(--h, 225) 55% 32%), hsl(var(--h, 225) 55% 82%));
}
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 42px; height: 42px; font-size: 15px; }
.avatar[data-hue="0"] { --h: 0; }
.avatar[data-hue="1"] { --h: 30; }
.avatar[data-hue="2"] { --h: 60; }
.avatar[data-hue="3"] { --h: 90; }
.avatar[data-hue="4"] { --h: 120; }
.avatar[data-hue="5"] { --h: 150; }
.avatar[data-hue="6"] { --h: 180; }
.avatar[data-hue="7"] { --h: 210; }
.avatar[data-hue="8"] { --h: 240; }
.avatar[data-hue="9"] { --h: 270; }
.avatar[data-hue="10"] { --h: 300; }
.avatar[data-hue="11"] { --h: 330; }

/* ---------- reader ---------- */
.reader-toolbar .back { display: none; }
.reader-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.conversation { max-width: 880px; padding: 22px 28px 40px; }
.subject { margin: 4px 0 18px 4px; font-size: 23px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; overflow-wrap: anywhere; }
.message { border-top: 1px solid var(--border); }
.message:first-of-type { border-top: 0; }
.message-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 6px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.message-head:hover { background: var(--surface-2); }
.message-who { display: grid; min-width: 0; }
.message-from { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.message-address { color: var(--faint); font-weight: 400; font-size: 13px; }
.message-to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.message-date { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; white-space: nowrap; }
.message.unread .message-from::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--unread-dot); vertical-align: middle; }
.message-body { padding: 0 6px 22px 62px; }
.details { margin: -6px 0 14px; }
.detail-list { display: grid; gap: 2px; margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 13px; }
.detail { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.body { display: grid; gap: 10px; }
/* The sanitized message (/api/html), sized by reader.js to its content. */
.body-frame { display: block; width: 100%; min-height: 48px; border: 0; border-radius: var(--radius-s); background: transparent; }
.images-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13.5px;
}
.images-bar .link-button { color: var(--accent-ink); font-weight: 600; }
.attachments { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.attachment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon name action" "icon size action";
  align-items: center;
  column-gap: 10px;
  width: 240px;
  padding: 10px 6px 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.attachment > .icon, .attachment > .thumb { grid-area: icon; }
.attachment > a { grid-area: action; }
.attachment-name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13.5px; font-weight: 550; }
.attachment-size { grid-area: size; font-size: 12px; }
.thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }

.reply-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 4px 62px; }
.reply-bar .button { gap: 8px; }

/* ---------- dialogs ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--scrim);
  animation: fade 120ms ease;
}
.dialog {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(720px, calc(100dvh - 32px));
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  animation: rise 160ms ease;
}
.dialog.wide { width: min(640px, 100%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 24px; }
.dialog-head h2 { font-size: 18px; font-weight: 650; }
.dialog-body { min-height: 0; overflow-y: auto; padding: 4px 24px 22px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.confirm-text { color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

.settings h3, .help h3 { margin: 20px 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.settings h3:first-child, .help section > h3 { margin-top: 6px; }
.setting { margin: 0 0 14px; padding: 0; border: 0; }
.setting legend, .toggle-label { display: block; margin-bottom: 6px; font-weight: 600; }
.setting > .muted { margin: -2px 0 8px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.segment { position: relative; padding: 6px 14px; border-radius: 9px; color: var(--muted); font-size: 14px; cursor: pointer; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment:has(input:focus-visible) { box-shadow: var(--focus); }
.segment:has(input:checked) { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.toggle > span { display: grid; }
.toggle .toggle-label { margin: 0; }
.toggle input {
  appearance: none;
  flex: none;
  position: relative;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: var(--surface-3);
  cursor: pointer;
  transition: background-color 150ms ease;
}
.toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 150ms ease;
}
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(16px); }
.range { display: grid; gap: 2px; }
.range input { width: 100%; margin-top: 8px; accent-color: var(--accent); }

.help { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.help dl { margin: 0; }
.help-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.help-row dt { display: flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.help-row .then { color: var(--faint); font-size: 12px; padding: 0 2px; }
.help-row dd { margin: 0; text-align: right; }

.field { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.field:focus-visible { border-color: var(--accent); }
.move-list { max-height: 360px; overflow-y: auto; margin: 10px -8px 0; padding: 0; list-style: none; }
.move-choice { width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.move-choice:hover, .move-choice:focus-visible { background: var(--surface-2); }
.move-choice.depth-1 { padding-left: 30px; }
.move-choice.depth-2 { padding-left: 48px; }
.move-choice.depth-3 { padding-left: 66px; }
.snooze-list { margin: 6px -8px 0; padding: 0; list-style: none; }
.snooze-choice { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.snooze-choice:hover, .snooze-choice:focus-visible { background: var(--surface-2); }
.snooze-choice .muted { font-size: 13px; font-variant-numeric: tabular-nums; }
.snooze-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.snooze-custom-label { display: grid; flex: 1 1 220px; gap: 6px; font-size: 13px; color: var(--muted); }
.row-wake { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: grid; gap: 8px; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-width: min(520px, calc(100vw - 48px));
  padding: 6px 6px 6px 18px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-text);
  box-shadow: var(--shadow-3);
  animation: rise 160ms ease;
}
.toast .icon-button { color: var(--toast-muted); }
.toast .icon-button:hover { background: rgb(255 255 255 / 10%); color: var(--toast-text); }
.toast-action { padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--toast-action); font-weight: 650; cursor: pointer; }
.toast-action:hover { background: rgb(255 255 255 / 10%); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  :root { --list: 360px; --sidebar: 224px; }
}
@media (max-width: 899px) {
  .panes { grid-template-columns: minmax(0, 1fr); }
  .shell:not(.reading) .reader-pane { display: none; }
  .shell.reading .list-pane { display: none; }
  .reader-toolbar .back { display: inline-grid; }
}
/* Small phones: no avatars in the list; the subject gets the room. */
@media (max-width: 480px) {
  .row-main { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who meta" "text text"; column-gap: 8px; }
  .row-main > .avatar { display: none; }
}
@media (max-width: 719px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(300px, 86vw);
    background: var(--surface);
    box-shadow: var(--shadow-3);
    transform: translateX(-105%);
    /* Closed, it is out of reach of Tab and screen readers too. */
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
  }
  .sidebar.open { transform: none; visibility: visible; transition: transform 200ms ease; }
  .scrim.on { display: block; position: fixed; inset: 0; z-index: 30; background: var(--scrim); }
  .menu-button { display: inline-grid; }
  .main { padding: 0 8px 8px; }
  .search { height: 44px; }
  .conversation { padding: 16px 14px 32px; }
  .message-body { padding-left: 6px; }
  .reply-bar { padding-left: 6px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
}
/* Touch screens: 44px targets (WCAG 2.5.5), 16px inputs (no iOS zoom). */
@media (pointer: coarse) {
  .icon-button { width: 44px; height: 44px; }
  .icon-button.small { width: 40px; height: 40px; }
  .nav-item { height: 44px; }
  .check { width: 24px; height: 24px; font-size: 16px; }
  .row-main { min-height: 48px; }
  .row { grid-template-columns: 34px 44px minmax(0, 1fr); }
  .row .star { width: 44px; height: 44px; }
  .search-input, .field { font-size: 16px; }
  .link-button { padding: 12px 0; }
  .details { margin: -12px 0 6px; }
  .images-bar .link-button { padding: 12px 0; }
  .move-choice, .snooze-choice { padding: 12px; }
  .segment { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
