@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-devanagari-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-ext-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-devanagari-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-ext-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-devanagari-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range:
    U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0,
    U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-ext-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #20231f;
  --page: #f3f3ef;
  --surface: #fafaf7;
  --hover: #e8eae3;
  --secondary: #60665c;
  --line: #dedfd7;
  --soft: #eaece5;
  --muted: #777;
  --page-width: 1600px;
  --radius: 16px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  font-family: "Poppins", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid #222;
}
input,
textarea {
  caret-color: #161616;
}
::selection {
  background: #ffe3cf;
  color: #131313;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 160;
  border-radius: 12px;
  padding: 12px 18px;
  background: #131313;
  color: #fff;
}
.skip-link:focus {
  top: 12px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.16s,
    color 0.16s;
}
.button:hover {
  background: #efefed;
}
.button-dark,
.button-primary {
  background: #131313;
  color: #fff;
}
.button-dark:hover,
.button-primary:hover {
  background: #343434;
}
.button-dark .icon,
.button-primary .icon {
  filter: invert(1);
}
.button-outline {
  border: 1px solid var(--line);
  background: var(--surface);
}
.button-quiet {
  color: #454545;
}
.icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.icon-button:hover {
  background: #f0f0ed;
}
.text-secondary {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 400;
}
.app {
  padding-top: 20px;
}
.topbar {
  position: sticky;
  top: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 64px));
  height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 20px;
  border-radius: 36px;
  background: var(--surface);
  box-shadow:
    0 3px 22px #1313130d,
    0 0 0 1px #ededeb;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.035em;
  flex-shrink: 0;
}
.wordmark > img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.top-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 15px;
  color: #646464;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover {
  background: #f5f5f3;
  color: #131313;
}
.nav-link.active {
  background: #f2f2ef;
  color: #131313;
}
.nav-count {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #676767;
  background: #e5e5e1;
  padding: 1px 5px;
  border-radius: 10px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.desktop-agents {
  font-size: 13px;
  padding: 9px 10px;
}
.desktop-agents .icon {
  opacity: 0.75;
}
.shortcut-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 24px 0 20px;
  font-size: 12px;
}
.shortcut-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}
.shortcut-list dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  flex-shrink: 0;
}
.shortcut-list kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid #deded9;
  border-radius: 7px;
  background: var(--soft);
  font:
    500 12px "Poppins",
    sans-serif;
  box-shadow: 0 2px 0 #e9e9e4;
}
.shortcut-list small {
  width: 100%;
  color: var(--secondary);
  font-size: 10px;
  text-align: right;
}
.shortcut-preference {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  min-height: 44px;
  font-size: 12px;
}
.shortcut-preference input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.shortcut-note {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
}
.project-notes {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.project-notes p {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
}
.project-notes strong,
.project-credits a {
  color: var(--ink);
  font-weight: 500;
}
.project-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.project-credits a {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .top-actions .desktop-agents {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .shortcut-list {
    grid-template-columns: 1fr;
    font-size: 12px;
  }
}
.add-button {
  min-height: 44px;
  gap: 6px;
  padding-left: 17px;
  padding-right: 19px;
}
.mobile-add {
  display: none;
}
main,
.footer {
  width: min(var(--page-width), calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
}
.collection-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 0 32px;
  text-align: center;
}
h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.collection-heading p {
  margin: 9px 0 0;
  color: var(--secondary);
  font-size: 13px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  width: min(540px, 100%);
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--soft);
}
.search-box:focus-within {
  outline: 1px solid #b7b7b4;
}
.search-box > img {
  width: 19px;
  height: 19px;
  opacity: 0.6;
  flex: none;
}
.search-box input {
  min-width: 0;
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}
.search-box input::placeholder {
  color: #737373;
  opacity: 1;
}
.search-box kbd {
  border: 1px solid #dededb;
  border-radius: 5px;
  padding: 1px 6px;
  font:
    11px/1.5 "Poppins",
    sans-serif;
  color: #737373;
}
.category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}
.category-tab {
  flex: none;
  padding: 11px 17px;
  min-height: 42px;
  border: 1px solid #e8e8e5;
  border-radius: 999px;
  background: var(--surface);
  color: #4b4b4b;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.category-tab:hover {
  background: #f6f6f3;
  border-color: #dededa;
}
.category-tab[aria-pressed="true"] {
  background: #181818;
  border-color: #181818;
  color: #fff;
}
.all-categories {
  flex: none;
  font-size: 12px;
  min-height: 42px;
  padding: 10px 15px;
}
.all-categories .icon {
  width: 16px;
  height: 16px;
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}
.toolbar-start {
  display: flex;
  align-items: center;
  gap: 23px;
  min-width: 0;
}
.result-count {
  margin: 0;
  color: #626262;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.result-count strong {
  color: #222;
  font-weight: 500;
}
.media-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.media-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #666;
  padding: 8px 10px;
  font-size: 12px;
}
.media-tabs button:hover {
  color: #131313;
}
.media-tabs button[aria-pressed="true"] {
  color: #131313;
  background: #f2f2ef;
}
.media-tabs button span {
  font-size: 10px;
  margin-left: 5px;
  color: #6e6e6e;
}
.view-options {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sort-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sort-control select {
  width: 108px;
  padding: 9px 20px 9px 7px;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.sort-control .icon {
  position: absolute;
  right: 0;
  width: 13px;
  height: 13px;
  pointer-events: none;
  opacity: 0.6;
}
.button-filter {
  background: #f3f3f1;
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
  gap: 7px;
  border-radius: 9px;
}
.button-filter .icon {
  width: 16px;
  height: 16px;
}
.filter-count {
  display: inline-block;
  min-width: 16px;
  border-radius: 4px;
  background: #242424;
  color: white;
  padding: 1px 4px;
  font-size: 10px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 0;
  border-radius: 7px;
  background: #f2f2ef;
  font-size: 11px;
}
.active-filter .icon {
  width: 12px;
  height: 12px;
}
.wall {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 240px;
}
.wall[aria-busy="true"] {
  min-height: 80vh;
}
.wall-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 0;
  min-width: 0;
}
.tile {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto var(--tile-height, 300px);
}
.tile-visual {
  position: relative;
  border-radius: var(--radius);
  isolation: isolate;
  overflow: hidden;
  background: #f4f4f2;
}
.tile-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  aspect-ratio: var(--ratio, 1.33);
}
.tile-open > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.tile:hover .tile-open::after,
.tile:focus-within .tile-open::after {
  opacity: 0.08;
}
.tile-open:focus-visible {
  outline-offset: -4px;
}
.tile-save {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #161616;
  background: #fffffff5;
  padding: 9px;
  opacity: 0;
  transition: opacity 0.16s;
}
.tile-save img {
  width: 17px;
  height: 17px;
}
.tile-save:hover {
  background: var(--surface);
}
.tile:hover .tile-save,
.tile:focus-within .tile-save,
.tile-save[aria-pressed="true"] {
  opacity: 1;
}
.tile-save[aria-pressed="true"] {
  background: #171717;
  color: #fff;
}
.tile-save[aria-pressed="true"] img {
  filter: invert(1);
}
.tile-action {
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 11px;
  right: 11px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.16s;
  pointer-events: none;
}
.tile-action .icon {
  width: 15px;
  height: 15px;
}
.tile:hover .tile-action,
.tile:focus-within .tile-action {
  opacity: 1;
}
.video-label {
  position: absolute;
  left: 11px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: #202020cc;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10px;
  pointer-events: none;
}
.video-label .icon {
  width: 11px;
  height: 11px;
  filter: invert(1);
}
.tile-caption {
  padding: 11px 2px 0;
}
.tile-caption h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.tile-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tile-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tile-byline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 21px;
  color: #666;
  font-size: 11px;
}
.tile-creator {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile-byline .icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  margin-left: auto;
}
.source-label {
  font-size: 10px;
  color: #676767;
  flex-shrink: 0;
}
.tile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  padding: 20px;
  font-size: 11px;
  color: #666;
  text-align: center;
}
.reference-context {
  min-height: 250px;
}
.reference-context p {
  max-width: 34ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.tile-empty .icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 75px 20px;
  text-align: center;
}
.empty-state > img {
  opacity: 0.45;
  margin-bottom: 20px;
}
.empty-state h2 {
  font-family: "Poppins", sans-serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}
.empty-state p {
  color: #626262;
  margin: 12px 0 22px;
}
.load-more {
  display: flex;
  justify-content: center;
  padding: 48px 0 15px;
}
.load-more .button {
  font-size: 12px;
  gap: 16px;
}
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 25px 0 30px;
  color: #6a6a6a;
  font-size: 11px;
}
.footer-brand {
  font-family: "Poppins", sans-serif;
  color: #272727;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.footer p {
  margin: 0;
}
.footer > div {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.footer a,
.footer button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.footer button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.footer img {
  opacity: 0.6;
}

dialog {
  border: 0;
  color: #191919;
  background: var(--surface);
  max-height: 90dvh;
  max-width: calc(100vw - 32px);
  box-shadow: 0 20px 80px #00000025;
}
dialog::backdrop {
  background: #11111150;
}
.dialog {
  padding: 32px;
  width: 550px;
  border-radius: 24px;
}
.dialog-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}
.dialog-heading > div {
  grid-column: 2;
  text-align: center;
}
.dialog h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
}
.dialog-heading .icon-button {
  grid-column: 3;
  margin: -6px -8px 0 0;
}
.dialog-description {
  text-align: center;
  font-size: 13px;
  color: #626262;
  line-height: 1.65;
  margin: 0 0 24px;
}
.help-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--secondary);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.help-steps strong {
  color: var(--ink);
  font-weight: 500;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}
.duplicate-reference {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.field input,
.field select,
.field textarea {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dcdcd9;
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 400;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #777;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #737373;
}
.field select {
  width: 100%;
  min-height: 46px;
}
.field textarea {
  resize: vertical;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
}
.import-dialog .dialog-actions {
  justify-content: center;
}
.url-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid #dcdcd9;
  border-radius: 14px;
}
.url-field > img {
  flex: none;
  opacity: 0.5;
  margin-left: 8px;
}
.url-field input {
  flex: 1;
  width: 100%;
  border: 0;
  padding: 6px 0;
  background: transparent;
  outline: none;
}
.url-field .button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 11px;
  padding: 9px 12px;
}
.import-status {
  text-align: center;
  color: #555;
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
}
.import-status:empty {
  display: none;
}
.import-status.error {
  color: #a53726;
}
.import-sharing-note {
  color: var(--secondary);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0 20px;
}
.import-metadata {
  text-align: center;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.import-provider {
  display: block;
  color: var(--secondary);
  font-size: 12px;
  margin-bottom: 8px;
}
.import-metadata h3 {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}
.import-metadata p {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0 0;
  max-height: 8.5em;
  overflow: auto;
  scrollbar-width: thin;
}
.import-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 150px;
  max-height: 260px;
  border-radius: 14px;
  background: #f5f5f2;
  margin-top: 20px;
}
.import-preview > img {
  width: 100%;
  object-fit: contain;
  max-height: 260px;
}
#importImageEmpty {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #666;
  font-size: 12px;
  padding: 25px;
}
#importImageEmpty img {
  opacity: 0.4;
}
.agent-prompt {
  color: #555;
  font-size: 13px;
  line-height: 1.75;
}
.agent-prompt ol {
  display: grid;
  gap: 16px;
  padding-left: 23px;
  overflow-wrap: anywhere;
  margin: 0;
}
.agent-prompt li {
  padding-left: 7px;
}
.agent-prompt li::marker {
  color: var(--secondary);
  font-weight: 500;
}
.detail-dialog {
  width: min(1200px, calc(100vw - 64px));
  padding: 0;
  border-radius: 22px;
  overflow: auto;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
  min-height: 44px;
}
.detail-navigation {
  display: flex;
  gap: 3px;
}
.detail-navigation .icon-button {
  width: 44px;
  height: 44px;
  padding: 12px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr);
  min-height: 560px;
}
.detail-media {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: #f5f5f2;
}
.detail-media > img,
.detail-media > video {
  width: 100%;
  max-height: 66dvh;
  object-fit: contain;
  border-radius: 12px;
}
.detail-media > video {
  background: #181818;
}
.detail-info {
  min-width: 0;
  padding: 30px;
}
.detail-category {
  color: #656565;
  font-size: 12px;
  margin: 0 0 13px;
}
.detail-info h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  margin: 0;
}
.detail-creator {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #626262;
  font-size: 12px;
  margin: 17px 0 23px;
}
.creator-initial {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  background: #f0f0ec;
  color: #5d5d5d;
  border-radius: 50%;
  font-size: 11px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.detail-actions .button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 12px;
}
.detail-actions .icon {
  width: 15px;
  height: 15px;
}
.detail-save[aria-pressed="true"] {
  background: #ededeb;
}
.detail-section {
  margin-top: 23px;
}
.detail-section h3 {
  font-size: 12px;
  font-weight: 500;
  color: #656565;
  margin: 0 0 8px;
}
.detail-section p {
  margin: 0;
  color: #454545;
  font-size: 12px;
  line-height: 1.75;
}
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 9px;
  background: #f0f0ec;
  color: #474747;
  font-size: 11px;
  margin-bottom: 10px;
}
.access-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.detail-facts {
  margin: 0;
}
.detail-facts > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  font-size: 11px;
}
.detail-facts dt {
  color: #666;
}
.detail-facts dd {
  margin: 0;
  color: #4d4d4d;
  overflow-wrap: anywhere;
}
.detail-facts dd a {
  text-decoration: underline;
}
.detail-code {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.detail-code summary {
  cursor: pointer;
  font-size: 12px;
  min-height: 44px;
  padding-block: 12px;
}
.detail-source-content {
  padding-top: 10px;
}
.detail-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.detail-source-links .button {
  font-size: 11px;
}
.detail-code select {
  width: 100%;
  padding: 8px;
  border: 1px solid #dededa;
  border-radius: 7px;
  font-size: 11px;
  margin-top: 14px;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 6px;
  gap: 8px;
  flex-wrap: wrap;
}
.code-bar span {
  font-size: 10px;
  color: #666;
}
.code-bar .button {
  min-height: 44px;
  font-size: 11px;
  padding: 8px;
}
.detail-code pre {
  max-height: 300px;
  overflow: auto;
  white-space: pre;
  background: #f5f5f2;
  color: #404040;
  border-radius: 10px;
  font:
    11px/1.65 "Poppins",
    sans-serif;
  margin: 0;
  padding: 14px;
}
.detail-agent {
  width: 100%;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 24px;
}
.detail-code code {
  font: inherit;
}
.detail-agent > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-agent .icon {
  width: 15px;
  height: 15px;
}
.drop-overlay {
  position: fixed;
  inset: 14px;
  z-index: 100;
  display: grid;
  place-items: center;
  border: 2px dashed #525252;
  border-radius: 24px;
  background: #ffffffed;
  pointer-events: none;
}
.drop-overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.drop-overlay img {
  opacity: 0.65;
}
.drop-overlay h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
}
.drop-overlay p {
  color: #626262;
}
.toast {
  position: fixed;
  top: auto;
  right: auto;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  margin: 0;
  border: 0;
  max-width: calc(100vw - 32px);
  background: #202020;
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 12px;
  text-align: center;
  z-index: 160;
  box-shadow: 0 4px 18px #0000001a;
}
.loading-state {
  position: fixed;
  top: 50dvh;
  left: 50vw;
  transform: translate(-50%, -50%);
  z-index: 170;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  width: max-content;
  margin: 0;
  padding: 15px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: #333;
  box-shadow: 0 8px 36px #00000020;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}
.loading-indicator {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid #dfdfdb;
  border-top-color: #333;
  border-radius: 50%;
  animation: loading-turn 0.8s linear infinite;
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1800px) {
  .topbar {
    width: 1180px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    width: calc(100% - 48px);
    gap: 20px;
  }
  main,
  .footer {
    width: calc(100% - 48px);
  }
  .top-actions {
    gap: 4px;
  }
  .top-navigation {
    gap: 0;
  }
  .nav-link {
    padding-left: 12px;
    padding-right: 12px;
  }
  .desktop-agents {
    padding-left: 8px;
    padding-right: 8px;
  }
  .collection-heading {
    padding-top: 35px;
  }
  h1 {
    font-size: 30px;
  }
  .collection-heading p {
    font-size: 12px;
  }
  .category-row {
    gap: 12px;
  }
  .category-tab {
    padding: 10px 14px;
    font-size: 11px;
  }
  .category-tabs {
    gap: 7px;
  }
  .wall {
    gap: 16px;
  }
  .wall-column {
    gap: 22px;
  }
}
@media (max-width: 850px) {
  .topbar {
    gap: 16px;
  }
  .desktop-agents span {
    display: none;
  }
  .desktop-agents {
    width: 42px;
    height: 42px;
    padding: 11px;
  }
  .nav-link {
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .top-navigation {
    margin-right: 0;
    margin-left: auto;
  }
  .wordmark {
    font-size: 23px;
    gap: 7px;
  }
  .wordmark > img {
    width: 29px;
    height: 29px;
  }
  .add-button {
    font-size: 12px;
    padding-left: 13px;
    padding-right: 14px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-media {
    max-height: 61dvh;
    padding: 25px;
  }
  .detail-media > img,
  .detail-media > video {
    max-height: 49dvh;
  }
  .detail-info {
    padding: 28px;
  }
  .detail-info h2 {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  html {
    scrollbar-gutter: auto;
    scroll-padding-top: 100px;
  }
  .app {
    padding-top: 12px;
  }
  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    height: 60px;
    padding: 8px 8px 8px 15px;
    gap: 8px;
  }
  .wordmark {
    gap: 7px;
    font-size: 24px;
  }
  .wordmark > img {
    width: 29px;
    height: 29px;
  }
  .top-navigation {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    gap: 3px;
  }
  .desktop-add {
    display: none;
  }
  .mobile-add {
    display: inline;
  }
  .add-button {
    min-height: 40px;
    min-width: 73px;
    padding: 10px 13px;
    font-size: 12px;
  }
  .add-button .icon {
    width: 16px;
    height: 16px;
  }
  main,
  .footer {
    width: calc(100% - 32px);
  }
  .collection-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 48px 0 28px;
  }
  h1 {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }
  .collection-heading p {
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    line-height: 1.6;
  }
  .search-box {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding-left: 15px;
  }
  .search-box input {
    font-size: 16px;
    height: 46px;
  }
  .search-box > img {
    width: 18px;
    height: 18px;
  }
  .search-box kbd {
    display: none;
  }
  .category-row {
    gap: 10px;
  }
  .category-tabs {
    gap: 7px;
  }
  .category-tab {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 11px;
  }
  .all-categories {
    min-height: 40px;
    width: 40px;
    padding: 11px;
  }
  .all-categories span {
    display: none;
  }
  .all-categories .icon {
    width: 17px;
    height: 17px;
  }
  .collection-toolbar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "media controls" "count count";
    gap: 10px 12px;
    padding: 16px 0;
  }
  .toolbar-start {
    display: contents;
  }
  .result-count {
    grid-area: count;
    font-size: 11px;
    white-space: normal;
  }
  .media-tabs {
    grid-area: media;
    border: 0;
    padding: 0;
    flex: none;
  }
  .media-tabs button {
    min-height: 32px;
    padding: 7px 8px;
    font-size: 11px;
  }
  .media-tabs button span {
    font-size: 9px;
    margin-left: 4px;
  }
  .view-options {
    grid-area: controls;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }
  .sort-control select {
    width: 93px;
    padding-left: 0;
    font-size: 11px;
  }
  .button-filter {
    position: relative;
    min-height: 33px;
    font-size: 11px;
    padding: 7px 11px;
  }
  .filter-count {
    position: absolute;
    top: -4px;
    right: -4px;
    border-radius: 50%;
    min-width: 17px;
    height: 17px;
    padding: 1px 4px;
  }
  .wall {
    gap: 12px;
  }
  .wall-column {
    gap: 20px;
  }
  .tile-caption {
    padding: 9px 1px 0;
  }
  .tile-caption h2 {
    font-size: 12px;
    line-height: 1.5;
  }
  .tile-byline {
    font-size: 10px;
    min-height: 20px;
  }
  .tile-byline .source-label,
  .tile-byline > .icon {
    display: none;
  }
  .tile-save {
    opacity: 1;
    top: 7px;
    right: 7px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 7px;
  }
  .tile-save::before {
    content: "";
    position: absolute;
    inset: -7px;
  }
  .tile-save img {
    width: 15px;
    height: 15px;
  }
  .tile-action {
    display: none;
  }
  .video-label {
    left: 7px;
    bottom: 7px;
    padding: 3px 6px;
    font-size: 9px;
  }
  .video-label .icon {
    width: 10px;
    height: 10px;
  }
  .active-filters {
    margin-bottom: 16px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 40px;
    padding: 23px 0 26px;
    font-size: 10px;
  }
  .footer p {
    font-size: 10px;
  }
  .footer > div {
    margin-left: 0;
    width: 100%;
    gap: 20px;
    padding-top: 6px;
  }
  .load-more {
    padding: 34px 0 10px;
  }
  dialog {
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  .dialog {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .dialog h2 {
    font-size: 25px;
  }
  .dialog-description {
    font-size: 12px;
  }
  .dialog-heading {
    gap: 6px;
  }
  .field input,
  .field select,
  .field textarea,
  .url-field input {
    font-size: 16px;
  }
  .url-field {
    gap: 5px;
  }
  .url-field > img {
    display: none;
  }
  .url-field input {
    padding-left: 8px;
  }
  .url-field .button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions > .text-secondary {
    font-size: 10px;
  }
  .dialog-actions .button {
    font-size: 11px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .detail-dialog {
    max-width: 100vw;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .detail-top {
    padding: 11px 14px;
  }
  .detail-back {
    font-size: 11px;
    gap: 5px;
  }
  .detail-navigation {
    gap: 0;
  }
  .detail-navigation .icon-button {
    width: 44px;
    height: 44px;
  }
  .detail-media {
    padding: 22px 18px;
  }
  .detail-info {
    padding: 28px 20px 40px;
  }
  .detail-info h2 {
    font-size: 26px;
  }
  .detail-section p {
    font-size: 13px;
  }
  .toast {
    font-size: 11px;
    bottom: 18px;
  }
}
@media (max-width: 360px) {
  .desktop-agents {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .wordmark {
    font-size: 23px;
  }
  .result-count {
    max-width: 116px;
  }
  .media-tabs button {
    font-size: 10px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .collection-toolbar {
    column-gap: 8px;
  }
  .view-options {
    gap: 6px;
  }
  .sort-control select {
    width: 80px;
  }
  .button-filter {
    width: 44px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .button-filter > span:not(.filter-count) {
    display: none;
  }
}
@media (pointer: coarse) {
  .button,
  .top-actions .button,
  .button-filter,
  .media-tabs button,
  .icon-button {
    min-height: 44px;
  }
  .icon-button,
  .tile-save {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog::backdrop {
    transition: background-color 140ms ease-out;
  }
  @starting-style {
    dialog[open]::backdrop {
      background-color: transparent;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding-inline: 15px;
}
.top-navigation {
  justify-self: center;
  margin: 0;
}
.top-actions {
  justify-self: end;
}
.agent-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.agent-prompt {
  padding: 0;
}
.connection-note {
  color: var(--secondary);
  font-size: 12px;
}
.dialog {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-heading {
  position: sticky;
  top: -32px;
  z-index: 3;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--surface);
}
@media (max-width: 1100px) {
  .desktop-agents span {
    display: none;
  }
  .desktop-agents {
    padding: 10px;
  }
}
@media (max-width: 900px) {
  html {
    scroll-padding-top: 144px;
  }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 40px;
    height: auto;
    column-gap: 8px;
    row-gap: 8px;
    padding: 8px 12px 10px;
    border-radius: 26px;
    width: calc(100% - 24px);
    top: 12px;
  }
  .wordmark {
    grid-column: 1;
    grid-row: 1;
  }
  .top-actions {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    gap: 2px;
  }
  .top-actions .desktop-agents {
    display: inline-flex;
    padding: 10px;
  }
  .top-actions .desktop-agents span {
    display: none;
  }
  .desktop-add {
    display: none;
  }
  .mobile-add {
    display: inline;
  }
  .add-button {
    min-width: 64px;
    padding: 10px 12px;
  }
  .top-navigation {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    justify-self: stretch;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 5px;
  }
  .nav-link {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 12px;
  }
  .collection-heading {
    padding-top: 48px;
  }
  .dialog {
    width: calc(100vw - 24px);
    max-width: 550px;
    max-height: calc(100dvh - 32px);
    padding: 24px;
    border-radius: 20px;
  }
  .dialog-heading {
    top: -24px;
  }
  .dialog h2 {
    font-size: 24px;
  }
  .agent-dialog .agent-prompt {
    text-align: left;
  }
}
@media (max-width: 360px) {
  .wordmark {
    font-size: 22px;
    gap: 5px;
  }
  .wordmark > img {
    width: 26px;
    height: 26px;
  }
  .topbar {
    padding-inline: 9px;
  }
  .nav-link {
    padding-inline: 12px;
  }
}

.topbar {
  transition:
    transform 200ms var(--easing),
    opacity 160ms ease;
  will-change: transform;
}
.topbar.is-hidden {
  transform: translateY(calc(-100% - 30px));
  opacity: 0;
  pointer-events: none;
}
[data-input-mode="keyboard"] .topbar:focus-within {
  transition-duration: 0ms;
}
[data-input-mode="pointer"]
  :is(
    .tile-open,
    .tile-title,
    .icon-button,
    .rail-link,
    .select-trigger
  ):focus {
  outline: none;
}
.nav-link.active {
  background: #e8eae3;
  color: var(--ink);
}
.category-tab[aria-pressed="true"] {
  background: #e5e8de;
  color: var(--ink);
  border-color: #d4d9cb;
  font-weight: 600;
}
.side-nav {
  display: none;
}
@media (min-width: 1180px) {
  .app {
    padding-left: 72px;
  }
  .side-nav {
    position: fixed;
    z-index: 44;
    left: 16px;
    top: 126px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    width: 48px;
  }
}
.rail-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
}
.rail-link > img {
  width: 18px;
  height: 18px;
  opacity: 0.62;
}
.rail-link:hover {
  background: var(--hover);
}
.rail-link[aria-current="page"] > img {
  opacity: 1;
}
.rail-link[aria-current="page"]::before {
  position: absolute;
  left: 0;
  top: 20px;
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}
.rail-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  padding: 7px 11px;
  white-space: nowrap;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 4px 15px #22221a12;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.rail-link:hover .rail-tooltip,
.rail-link:focus-visible .rail-tooltip {
  opacity: 1;
}
.rail-separator {
  height: 1px;
  width: 18px;
  background: var(--line);
  margin: 5px 0;
}
.field select.select-native,
.sort-control select.select-native {
  position: absolute;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sort-control > img {
  display: none;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.select-trigger:hover,
.select-trigger[aria-expanded="true"] {
  border-color: #b7bdae;
}
.select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.6;
}
.sort-control .select-trigger {
  width: auto;
  max-width: 155px;
  min-height: 38px;
  margin: 0;
  padding: 7px 10px;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
}
.select-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px #20231f18;
  background: var(--surface);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.select-list {
  display: grid;
  gap: 2px;
}
.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  cursor: pointer;
}
.select-option[aria-selected="true"] {
  font-weight: 500;
}
.select-option.is-active {
  background: var(--hover);
}
.select-option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}
.select-check {
  width: 14px;
  height: 14px;
  opacity: 0;
  flex: none;
}
.select-option[aria-selected="true"] .select-check {
  opacity: 0.8;
}
@media (max-width: 640px) {
  .sort-control .select-trigger {
    padding: 6px 4px;
    gap: 5px;
    max-width: 114px;
    font-size: 11px;
  }
  .select-option {
    min-height: 44px;
  }
}
