:root {
  color-scheme: dark;
  --ink: #0b0d14;
  --panel: #131722;
  --paper: #f2f5fa;
  --muted: #8f98aa;
  --cel: #7e9dff;
  --line: #242b39;
  --tile-gap: 2px;
  --topbar-height: 54px;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-high-contrast="true"] {
  --panel: #0e1420;
  --paper: #ffffff;
  --muted: #d2d9e7;
  --cel: #a9bdff;
  --line: #59667c;
}

:root[data-large-controls="true"] {
  --topbar-height: 50px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
  overscroll-behavior-y: none;
  scrollbar-color: var(--line) var(--ink);
}

body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.shell {
  width: min(100%, 1680px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--ink);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: calc(var(--topbar-height) + env(safe-area-inset-top));
  align-items: flex-end;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 12px 8px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(11 13 20 / 91%);
  backdrop-filter: blur(14px) saturate(135%);
}

.top-search {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  margin-right: 10px;
}

.top-search-field {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  background: #070a10;
}

.top-search-field svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.top-search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: 12px ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.top-search-field input::placeholder {
  color: var(--muted);
}

.search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  display: grid;
  max-height: min(65dvh, 520px);
  gap: 10px;
  padding: 11px;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 11px;
  background: rgb(8 11 18 / 98%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 58%);
}

.search-results[hidden] {
  display: none;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.feed-status,
.viewer-meta,
.video-badge {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}


.feed-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.settings-button {
  display: grid;
  width: 30px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 7px;
  background: rgb(255 255 255 / 4%);
  color: var(--muted);
  cursor: pointer;
}

.settings-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.settings-button:active {
  background: rgb(126 157 255 / 13%);
  color: var(--paper);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cel);
  box-shadow: 0 0 0 3px rgb(126 157 255 / 13%);
}

.status-dot[data-state="error"] {
  background: #ff806e;
  box-shadow: 0 0 0 3px rgb(255 128 110 / 14%);
}

.aperture-rule {
  display: grid;
  height: 3px;
  grid-template-columns: repeat(var(--grid-columns, 4), minmax(0, 1fr));
  gap: var(--tile-gap);
  background: var(--ink);
}

.aperture-rule span {
  background: var(--cel);
  opacity: 0.7;
}

.feed {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(var(--grid-columns, 4), minmax(0, 1fr));
  gap: var(--tile-gap);
}

.shell[data-columns="1"] main {
  width: min(100%, 900px);
  margin-inline: auto;
}

.tile-shell {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  aspect-ratio: 1;
  background: var(--panel);
  contain: layout paint style;
  cursor: zoom-in;
}

.tile::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(126 157 255 / 7%), transparent 58%),
    var(--panel);
  content: "";
}

.tile-media {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease-out;
}

.tile-media.is-ready {
  opacity: 1;
}

[data-tile-fit="contain"] .tile-media {
  object-fit: contain;
}

[data-columns="1"][data-tile-fit="contain"] .tile {
  aspect-ratio: var(--media-aspect, 1);
}

.post-actions {
  display: grid;
  min-width: 0;
  height: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #07090e;
}

.post-action {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 7%);
  background: transparent;
  color: #aab4c8;
  cursor: pointer;
}

.post-action:last-child {
  border-right: 0;
}

.post-action:active,
.post-action[data-state="sent"] {
  background: rgb(126 157 255 / 13%);
  color: var(--paper);
}

.post-action[aria-pressed="true"] {
  color: var(--cel);
}

.post-action[aria-pressed="true"] .action-icon {
  fill: currentcolor;
}

.post-action:disabled {
  cursor: wait;
  opacity: 0.6;
}

.action-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.tags-label,
.tags-chevron {
  display: none;
}

.tags-short {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

[data-columns="1"] .post-actions {
  height: 43px;
  grid-template-columns: 46px 46px minmax(90px, 1fr);
}

[data-columns="1"] .post-action--tags {
  justify-content: flex-end;
  padding: 0 13px;
}

[data-columns="1"] .tags-short {
  display: none;
}

[data-columns="1"] .tags-label,
[data-columns="1"] .tags-chevron {
  display: block;
}

.tags-label {
  color: var(--muted);
  font-size: 11px;
}

.tags-chevron {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.video-badge {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 5px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(5 7 11 / 76%);
  color: var(--paper);
  letter-spacing: 0.06em;
  backdrop-filter: blur(7px);
}

.video-badge::before {
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid var(--cel);
  content: "";
}

.tile:focus-visible,
.post-action:focus-visible,
.retry:focus-visible,
.search-more:focus-visible,
.viewer-close:focus-visible,
.top-search-field:has(input:focus-visible),
.tag-suggestion:focus-visible,
.selected-tag:focus-visible,
.clear-search:focus-visible,
.settings-button:focus-visible,
.settings-close:focus-visible,
.settings-reset:focus-visible,
.tags-close:focus-visible,
.column-choice:has(input:focus-visible),
.blacklist-field textarea:focus-visible,
.setting-option:has(input:focus-visible),
.rating-options label:has(input:focus-visible) {
  outline: 2px solid var(--paper);
  outline-offset: -3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-tags:empty {
  display: none;
}

.selected-tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid rgb(126 157 255 / 55%);
  border-radius: 999px;
  background: rgb(126 157 255 / 12%);
  color: #c9d4ff;
  cursor: pointer;
  font: 11px ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.search-message {
  min-height: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.tag-suggestions {
  display: grid;
  gap: 6px;
}

.tag-suggestion {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(255 255 255 / 2%);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
}

.tag-suggestion:active {
  border-color: rgb(126 157 255 / 55%);
  background: rgb(126 157 255 / 9%);
}

.tag-suggestion .tag-chip {
  min-width: 0;
  max-width: calc(100% - 82px);
  flex: 0 1 auto;
}

.tag-suggestion-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.clear-search {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.clear-search[hidden] {
  display: none;
}

.tags-dialog {
  inset: auto 0 0;
  width: min(100%, 820px);
  max-width: none;
  max-height: min(78dvh, 760px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 15%);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #05070b;
  color: var(--paper);
  box-shadow: 0 -20px 70px rgb(0 0 0 / 68%);
}

.tags-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(3px);
}

.tags-sheet {
  max-height: min(78dvh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tags-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--line);
  background: rgb(5 7 11 / 94%);
  backdrop-filter: blur(14px);
}

.tags-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tags-header h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tags-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 3%);
  color: var(--paper);
  cursor: pointer;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.tags-body {
  min-height: 150px;
  padding: 15px 14px calc(18px + env(safe-area-inset-bottom));
}

.tags-message {
  margin: 24px 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  text-align: center;
}

.tags-message[hidden] {
  display: none;
}

.tags-groups {
  display: grid;
  gap: 19px;
}

.tag-group h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #343a46;
  border-radius: 999px;
  background: #090c12;
  color: #aeb7c8;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tag-group--artists .tag-chip,
.tag-chip--artists {
  border-color: #008ab5;
  background: #003548;
  color: #49cfff;
}

.tag-group--characters .tag-chip,
.tag-chip--characters {
  border-color: #007f67;
  background: #003d32;
  color: #38d8ad;
}

.tag-group--series .tag-chip,
.tag-chip--series {
  border-color: #b83c4b;
  background: #48151c;
  color: #ff7f87;
}

.tag-group--meta .tag-chip,
.tag-chip--meta {
  border-color: #4d5b88;
  background: #141a2b;
  color: #b8c5f5;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  width: fit-content;
  max-width: min(420px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 13px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 9px;
  background: rgb(20 25 36 / 96%);
  color: var(--paper);
  box-shadow: 0 12px 32px rgb(0 0 0 / 42%);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.toast[hidden] {
  display: none;
}

.sentinel {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.loader {
  width: 26px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.loader::after {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--cel);
  content: "";
  animation: scan 850ms ease-in-out infinite alternate;
}

.sentinel[hidden],
.retry[hidden],
.search-more[hidden] {
  display: none;
}

.retry,
.search-more {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgb(6 7 11 / 98%);
  color: var(--paper);
}

.viewer::backdrop {
  background: rgb(6 7 11 / 94%);
}

.viewer-frame {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: max(48px, calc(env(safe-area-inset-top) + 40px)) 8px max(10px, env(safe-area-inset-bottom));
}

.viewer-stage {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.viewer-stage img,
.viewer-stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewer-stage video {
  width: 100%;
  height: 100%;
  background: #000;
}

.viewer-close {
  position: fixed;
  z-index: 2;
  top: max(6px, env(safe-area-inset-top));
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  background: rgb(18 21 30 / 75%);
  color: var(--paper);
  cursor: pointer;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.viewer-meta {
  display: flex;
  min-height: 32px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 4px 0;
  color: var(--muted);
}

.settings {
  inset: auto 8px max(8px, env(safe-area-inset-bottom));
  width: auto;
  max-width: none;
  max-height: min(760px, calc(100dvh - 24px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 17px 17px 5px 5px;
  background: var(--panel);
  color: var(--paper);
  box-shadow: 0 -18px 60px rgb(0 0 0 / 52%);
}

.settings::backdrop {
  background: rgb(4 6 10 / 72%);
  backdrop-filter: blur(3px);
}

.settings-sheet {
  max-height: min(760px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line) transparent;
}

.settings-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(19 23 34 / 94%);
  backdrop-filter: blur(14px);
}

.settings-kicker,
.settings-footer,
.settings-caption,
.settings-hint,
.blacklist-field small,
.setting-option small {
  color: var(--muted);
}

.settings-kicker {
  display: block;
  margin-bottom: 5px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-header h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 24px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.settings-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 3%);
  color: var(--paper);
  cursor: pointer;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.settings-form,
.settings-section {
  min-width: 0;
}

.settings-section {
  margin: 0;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.settings-section legend {
  width: 100%;
  padding: 0;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.settings-caption {
  margin: 6px 0 12px;
  font-size: 11px;
  line-height: 1.4;
}

.settings-subgroup {
  margin-top: 13px;
}

.settings-subgroup + .settings-subgroup,
.blacklist-field {
  margin-top: 17px;
}

.settings-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.settings-hint {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  line-height: 1.4;
}

.column-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.column-choice {
  position: relative;
  display: grid;
  min-width: 0;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgb(7 10 16 / 35%);
  cursor: pointer;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.column-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.column-choice:has(input:checked) {
  border-color: var(--cel);
  background: var(--cel);
  color: var(--ink);
}

.option-stack {
  display: grid;
  gap: 6px;
}

.setting-option {
  display: flex;
  min-height: 53px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgb(7 10 16 / 35%);
  cursor: pointer;
}

.setting-option:has(input:checked) {
  border-color: rgb(126 157 255 / 58%);
  background: rgb(126 157 255 / 8%);
}

.setting-option input,
.rating-options input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--cel);
}

.setting-option span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.setting-option strong {
  font-size: 12px;
  font-weight: 700;
}

.setting-option small {
  font-size: 10px;
  line-height: 1.35;
}

.compact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.compact-options--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setting-option--compact {
  min-height: 48px;
}

.setting-option--single {
  margin-top: 10px;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.rating-options label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(7 10 16 / 35%);
  cursor: pointer;
  font-size: 11px;
}

.rating-options label:has(input:checked) {
  border-color: rgb(126 157 255 / 40%);
}

.blacklist-field {
  display: grid;
  gap: 7px;
}

.blacklist-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgb(7 10 16 / 45%);
  color: var(--paper);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.4;
}

.blacklist-field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.blacklist-field small {
  font-size: 9px;
}

.settings-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-reset {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

:root[data-large-controls="true"] .settings-button {
  width: 38px;
  height: 34px;
}

:root[data-large-controls="true"] .viewer-close,
:root[data-large-controls="true"] .settings-close,
:root[data-large-controls="true"] .tags-close {
  width: 44px;
  height: 44px;
}

:root[data-large-controls="true"] .setting-option {
  min-height: 61px;
}

:root[data-large-controls="true"] .column-choice,
:root[data-large-controls="true"] .rating-options label {
  min-height: 48px;
}

:root[data-large-controls="true"] .post-actions {
  height: 38px;
}

@keyframes scan {
  from { transform: translateX(-10%); }
  to { transform: translateX(135%); }
}

@media (min-width: 900px) {
  :root {
    --tile-gap: 3px;
    --topbar-height: 58px;
  }

  .topbar {
    padding-right: 15px;
    padding-bottom: 10px;
    padding-left: 15px;
  }

  .top-search {
    max-width: 680px;
  }

  .viewer-frame {
    padding-right: 18px;
    padding-left: 18px;
  }

  .settings {
    inset: 16px 16px 16px auto;
    width: min(420px, calc(100% - 32px));
    max-height: none;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
    border-radius: 14px;
    box-shadow: -18px 0 60px rgb(0 0 0 / 45%);
  }

  .settings-sheet {
    max-height: calc(100dvh - 32px);
  }

  .tags-dialog {
    bottom: 16px;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader::after {
    animation: none;
    transform: translateX(65%);
  }

  .tile-media {
    transition: none;
  }
}

:root[data-reduce-motion="true"] .loader::after {
  animation: none;
  transform: translateX(65%);
}

:root[data-reduce-motion="true"] .tile-media {
  transition: none;
}
