:root {
  color-scheme: dark;
  --bg: #11110f;
  --bg-raised: #181816;
  --bg-soft: #1f1f1c;
  --bg-hover: #282824;
  --line: #30302b;
  --line-strong: #474740;
  --text: #f1f0e8;
  --muted: #a3a299;
  --dim: #72716a;
  --accent: #d9ff43;
  --accent-ink: #11110f;
  --danger: #ff7b67;
  --warning: #ffc85c;
  --success: #7be2a7;
  --radius-sm: 8px;
  --radius: 13px;
  --radius-lg: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --sidebar: 248px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% -20%, rgba(217, 255, 67, 0.035), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 22px 14px 14px;
  border-right: 1px solid var(--line);
  background: rgba(16, 16, 14, 0.97);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 25px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--accent);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  content: "";
  background: var(--accent-ink);
}

.brand-mark::before {
  width: 19px;
  height: 13px;
  border: 2px solid var(--accent-ink);
  background: transparent;
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.brand-mark i {
  width: 2px;
  height: 13px;
  transform: rotate(28deg);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand span {
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 3px;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: 140ms ease;
}

.nav-item:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-item.is-active {
  border-color: rgba(217, 255, 67, 0.12);
  background: rgba(217, 255, 67, 0.09);
  color: var(--text);
}

.nav-item.is-active .nav-icon {
  color: var(--accent);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  font-size: 17px;
}

kbd {
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.nav-count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 20px;
  background: var(--bg-hover);
  color: var(--dim);
  font-size: 10px;
  text-align: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.025);
}

.status-dot--warning {
  background: var(--warning);
}

.status-dot--success {
  background: var(--success);
}

.sidebar-section {
  padding: 24px 4px 0;
}

.sidebar-section--grow {
  flex: 1;
  min-height: 100px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 8px 9px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quick-boards {
  display: grid;
  gap: 2px;
}

.quick-board {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.quick-board:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.quick-board::before {
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  content: "";
}

.quick-board span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-board small {
  color: var(--dim);
  font-size: 10px;
}

.workspace-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-raised);
}

.workspace-card strong,
.workspace-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card strong {
  font-size: 11px;
}

.workspace-card > div:nth-child(2) > span {
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid var(--bg-raised);
  border-radius: 50%;
  background: #4f6453;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.avatar-stack span + span {
  margin-left: -7px;
  background: var(--bg-hover);
  color: var(--muted);
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.88);
  backdrop-filter: blur(22px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.breadcrumbs b {
  color: var(--line-strong);
}

.breadcrumbs strong {
  color: var(--text);
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.ghost-button,
.outline-button,
.primary-button,
.secondary-button,
.text-button,
.filter-mobile-button {
  border: 0;
  background: transparent;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
}

.icon-button--small {
  width: 25px;
  height: 25px;
  border: 0;
  font-size: 12px;
}

.ghost-button {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--dim);
  font-size: 11px;
}

.ghost-button:hover {
  color: var(--text);
}

.avatar-button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #657c68;
  border-radius: 50%;
  background: #405146;
  color: #eff5e7;
  font-size: 10px;
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.search-stage {
  padding: 54px clamp(24px, 4vw, 60px) 28px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(217, 255, 67, 0.025), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255,255,255,0.011) 80px),
    var(--bg);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.eyebrow span {
  width: 19px;
  height: 1px;
  background: var(--accent);
}

.search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.search-heading h1 {
  max-width: 800px;
  margin-bottom: 8px;
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.search-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.outline-button,
.primary-button,
.secondary-button,
.filter-mobile-button {
  min-height: 43px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: 140ms ease;
}

.outline-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.outline-button:hover {
  border-color: var(--muted);
  background: var(--bg-soft);
}

.primary-button {
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button:hover {
  background: #e5ff7a;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.secondary-button,
.filter-mobile-button {
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--text);
}

.secondary-button:hover,
.filter-mobile-button:hover {
  border-color: var(--muted);
  background: var(--bg-soft);
}

.text-button {
  padding: 0;
  color: var(--muted);
  font-size: inherit;
}

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

.search-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 9px;
  max-width: 1120px;
  margin-top: 30px;
}

.search-box {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.search-box input {
  width: 100%;
  height: 53px;
  padding: 0 48px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: #1b1b18;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  transition: 150ms ease;
}

.search-box input::placeholder {
  color: #77766f;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.08);
}

.search-box-icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  color: var(--accent);
  font-size: 21px;
}

.search-shortcut {
  position: absolute;
  right: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}

.search-assist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-height: 40px;
  color: var(--dim);
  font-size: 10px;
}

.search-assist > span {
  padding-right: 13px;
  border-right: 1px solid var(--line);
  color: var(--success);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.search-assist .text-button {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.source-toggle {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.018);
  color: var(--muted);
  font-size: 10px;
}

.source-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.source-toggle.is-enabled {
  border-color: rgba(255, 255, 255, 0.13);
  background: var(--bg-soft);
  color: var(--text);
}

.source-toggle-mark,
.provider-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--provider, var(--muted));
  color: #111;
  font-family: var(--mono);
  font-weight: 900;
}

.source-toggle-mark {
  width: 19px;
  height: 19px;
  font-size: 7px;
}

.source-toggle:not(.is-enabled) .source-toggle-mark {
  filter: grayscale(1);
  opacity: 0.45;
}

[data-provider="shotdeck"] { --provider: #f1ce45; }
[data-provider="frameset"] { --provider: #7ab9ff; }
[data-provider="flim"] { --provider: #e69cff; }
[data-provider="genery"] { --provider: #81edb1; }
[data-provider="eyecandy"] { --provider: #ff8c71; }
[data-provider="source"] { --provider: #ffb35c; }

.browse-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
}

.filters {
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 60px);
  overflow: auto;
  padding: 25px 19px 60px 24px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.filters-header,
.results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.filters-header {
  padding: 0 3px 16px;
}

.filters-header h2,
.results-toolbar h2 {
  margin-bottom: 3px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.filters-header span,
.results-toolbar p {
  margin: 0;
  color: var(--dim);
  font-size: 10px;
}

.filters-header .text-button {
  font-size: 10px;
}

.filter-group {
  border-top: 1px solid var(--line);
}

.filter-group > button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 690;
  text-align: left;
}

.filter-group > button span:last-child {
  color: var(--dim);
  font-size: 13px;
  transition: 140ms ease;
}

.filter-group.is-collapsed > button span:last-child {
  transform: rotate(-90deg);
}

.filter-options {
  display: grid;
  gap: 3px;
  padding: 0 1px 14px;
}

.filter-group.is-collapsed .filter-options {
  display: none;
}

.check-option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}

.check-option:hover {
  color: var(--text);
}

.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--bg-raised);
}

.check-option input:checked + .check-box {
  border-color: var(--accent);
  background: var(--accent);
}

.check-option input:checked + .check-box::after {
  width: 6px;
  height: 3px;
  border: solid var(--accent-ink);
  border-width: 0 0 2px 2px;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.check-option small {
  color: var(--dim);
  font-size: 9px;
}

.colour-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 17px;
}

.colour-option {
  position: relative;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--swatch, #777);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.colour-option:hover,
.colour-option.is-selected {
  box-shadow: 0 0 0 2px var(--accent);
}

.colour-option.is-selected::after {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  content: "";
}

.swatch-black { --swatch: #111; }
.swatch-white { --swatch: #eee; }
.swatch-grey { --swatch: #7e8588; }
.swatch-neutral { --swatch: #c2bcae; }
.swatch-brown { --swatch: #785642; }
.swatch-red { --swatch: #bd3e38; }
.swatch-orange { --swatch: #db793d; }
.swatch-amber { --swatch: #d89f4f; }
.swatch-yellow { --swatch: #e3cf4a; }
.swatch-green { --swatch: #579367; }
.swatch-cyan { --swatch: #4cb4b4; }
.swatch-blue { --swatch: #4c74b8; }
.swatch-purple { --swatch: #815eaf; }
.swatch-magenta { --swatch: #b74c91; }

.year-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 0 0 17px;
  color: var(--dim);
}

.year-inputs input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--bg-raised);
  color: var(--text);
  font-size: 10px;
  text-align: center;
}

.year-inputs input:focus {
  border-color: var(--accent);
}

.results-panel {
  min-width: 0;
  padding: 25px clamp(18px, 3vw, 38px) 110px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.select-label select {
  height: 35px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--bg-raised);
  color: var(--muted);
  font-size: 10px;
}

.segmented {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-raised);
}

.segmented button {
  width: 29px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--dim);
  font-size: 12px;
}

.segmented button.is-active {
  background: var(--bg-hover);
  color: var(--text);
}

.filter-mobile-button {
  display: none;
  min-height: 35px;
  padding: 0 10px;
  font-size: 10px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin: 16px 0 12px;
}

.filter-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 7px;
  padding: 0 8px 0 9px;
  border: 1px solid rgba(217, 255, 67, 0.19);
  border-radius: 20px;
  background: rgba(217, 255, 67, 0.055);
  color: #dfeaba;
  font-size: 9px;
}

.filter-chip button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 13px;
}

.filter-chip button:hover {
  color: var(--text);
}

.selection-bar {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 18px;
  margin: 8px 0 13px;
  padding: 0 14px;
  border: 1px solid rgba(217, 255, 67, 0.18);
  border-radius: 9px;
  background: rgba(217, 255, 67, 0.06);
  font-size: 10px;
}

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

.selection-bar strong {
  margin-right: auto;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 13px;
}

.result-grid.is-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
}

.reference-card {
  min-width: 0;
}

.card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: #282827;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  cursor: pointer;
  isolation: isolate;
}

.card-visual::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.card-visual:hover .art-scene {
  transform: scale(1.025);
}

.card-visual:hover .card-actions,
.card-visual:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-visual:hover .frame-index {
  opacity: 0;
}

.art-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 550ms cubic-bezier(.2,.8,.2,1);
}

.art-scene::before,
.art-scene::after {
  position: absolute;
  content: "";
}

.art-alley { background: linear-gradient(100deg,#090a0a 0 54%,#382012 72%,#ad612c); }
.art-alley::before { right: 17%; bottom: 0; width: 7%; height: 50%; border-radius: 50% 50% 0 0; background:#0a0a09; box-shadow: 0 -32px 30px 5px rgba(236,161,74,.28); }
.art-alley::after { left: 9%; bottom: 0; width: 50%; height: 9%; background: linear-gradient(90deg,transparent,#5f321c); transform: skewX(-35deg); }

.art-diner { background: linear-gradient(#26100e 0 30%,#a24335 31% 35%,#45211b 36% 69%,#d39b59 70% 73%,#1b1512 74%); }
.art-diner::before { left: 42%; bottom: 18%; width: 38%; height: 16%; border-radius: 50%; background:#d6a272; transform: rotate(-8deg); box-shadow:-65px 6px 0 -5px #7b3a2c; }
.art-diner::after { left: 0; right: 0; top: 15%; height: 7%; background: repeating-linear-gradient(90deg,#e9c47b 0 12%,transparent 12% 22%); opacity:.4; }

.art-window { background: linear-gradient(120deg,#cbd5cf 0 31%,#78929c 32% 56%,#394a54 57%); }
.art-window::before { right: 25%; top: 20%; width: 23%; height: 60%; border-radius: 48% 48% 42% 42%; background: linear-gradient(90deg,#6d5145,#b7957b 48%,#273840 50%); filter: blur(.6px); }
.art-window::after { inset: 0; background: repeating-linear-gradient(100deg,transparent 0 17%,rgba(240,250,246,.22) 17.5% 18%); }

.art-crowd { background: linear-gradient(145deg,#0d2a25,#739181 58%,#d5c5a6); }
.art-crowd::before { inset: 24% -5% 0; background: radial-gradient(circle at 10% 35%,#182b28 0 5%,transparent 5.5%),radial-gradient(circle at 27% 50%,#2e403b 0 7%,transparent 7.5%),radial-gradient(circle at 47% 26%,#142d27 0 6%,transparent 6.5%),radial-gradient(circle at 67% 48%,#273a33 0 8%,transparent 8.5%),radial-gradient(circle at 86% 30%,#18342c 0 6%,transparent 6.5%); }
.art-crowd::after { left: 47%; top: 16%; width: 8%; height: 66%; border-radius:50% 50% 30% 30%; background:#d1b693; box-shadow: 0 0 35px 8px rgba(239,218,175,.28); }

.art-orbit { background: linear-gradient(135deg,#e8c84a 0 45%,#1c6683 46% 77%,#e1e8e4 78%); }
.art-orbit::before { left: 43%; bottom: 7%; width: 12%; height: 69%; border-radius:45% 45% 15% 15%; background:#15272d; }
.art-orbit::after { inset: 12%; border:2px solid rgba(255,255,255,.45); border-radius:50%; transform:rotate(-12deg); }

.art-desert { background: linear-gradient(#4e788b 0 48%,#e3bb7f 49% 70%,#a55431 71%); }
.art-desert::before { left: 39%; bottom: 22%; width: 22%; height: 8%; border-radius: 50% 50% 2px 2px; background:#1b2424; box-shadow: 0 5px 12px rgba(0,0,0,.35); }
.art-desert::after { left:-15%; right:-15%; bottom:23%; height:2px; background:rgba(56,44,31,.65); transform:rotate(-3deg); }

.art-doorway { background: linear-gradient(90deg,#18100e 0 22%,#72533d 23% 32%,#201716 33% 68%,#b58755 69% 78%,#18100e 79%); }
.art-doorway::before { left:19%; bottom:0; width:9%; height:52%; border-radius:50% 50% 0 0; background:#090909; box-shadow: 160px -5px 0 -1px #111; }
.art-doorway::after { inset:12% 30%; border:1px solid rgba(237,191,121,.35); }

.art-corridor { background: linear-gradient(110deg,#071d23,#225963 51%,#dceae3 52% 55%,#0c313b 56%); }
.art-corridor::before { left:45%; bottom:0; width:10%; height:61%; border-radius:48% 48% 0 0; background:#0c181b; transform:skewX(-5deg); }
.art-corridor::after { inset:0; background:repeating-linear-gradient(90deg,transparent 0 16%,rgba(191,248,246,.25) 16.5% 17.3%); }

.art-rain { background:linear-gradient(120deg,#2b373d,#829197 45%,#c3c5bd); }
.art-rain::before { left:47%; bottom:5%; width:22%; height:72%; border-radius:50% 48% 30% 25%; background:linear-gradient(90deg,#26343a,#9a826d); filter:blur(.4px); }
.art-rain::after { inset:-10%; background:repeating-linear-gradient(78deg,transparent 0 9px,rgba(230,241,242,.28) 10px 11px); }

.art-eclipse { background:radial-gradient(circle at 52% 49%,#050505 0 12%,#d6933e 13% 15%,#4a2454 18%,#050506 43%); }
.art-eclipse::before { left:8%; top:41%; width:26%; height:18%; border-radius:50%; background:#7d4b3d; box-shadow:100px 0 0 #7d4b3d; opacity:.55; }

.art-split { background:linear-gradient(90deg,#9b8068 0 48%,#29363c 49%); }
.art-split::before { left:17%; top:22%; width:19%; height:63%; border-radius:49% 49% 31% 31%; background:#3b2921; }
.art-split::after { right:13%; top:8%; width:25%; height:83%; border-radius:49% 49% 31% 31%; background:#b9a083; filter:blur(.35px); }

.art-void { background:radial-gradient(circle at 50% 50%,#a91820,#37070a 53%,#120204); }
.art-void::before { left:42%; top:29%; width:16%; height:38%; border-radius:35%; background:linear-gradient(145deg,#ff9c72,#6d1018); box-shadow:0 18px 40px rgba(0,0,0,.55); transform:rotate(18deg); }
.art-void::after { left:31%; right:31%; bottom:15%; height:4%; border-radius:50%; background:#050000; filter:blur(9px); }

.art-tunnel { background:radial-gradient(ellipse at 64% 46%,#eee6d1 0 12%,#777873 13% 24%,#121313 25% 57%,#030303 58%); }
.art-tunnel::before { left:61%; bottom:30%; width:3%; height:18%; border-radius:50% 50% 0 0; background:#070707; }

.art-dance { background:radial-gradient(circle at 50% 40%,#527fd0,#142b60 61%,#09122b); }
.art-dance::before { inset:18%; background:radial-gradient(circle at 15% 50%,#df6c88 0 5%,transparent 5.5%),radial-gradient(circle at 35% 33%,#e4a68e 0 5%,transparent 5.5%),radial-gradient(circle at 55% 58%,#db6f99 0 5%,transparent 5.5%),radial-gradient(circle at 75% 35%,#f0b27e 0 5%,transparent 5.5%),radial-gradient(circle at 92% 58%,#dc6e88 0 5%,transparent 5.5%); }
.art-dance::after { inset:0; background:conic-gradient(from 20deg at 50% 50%,transparent,rgba(255,255,255,.13),transparent 20%); }

.art-mirror { background:linear-gradient(115deg,#1e0c35,#8e3e79 48%,#337f93 49%,#151224); }
.art-mirror::before { left:27%; bottom:3%; width:16%; height:70%; border-radius:48% 48% 20% 20%; background:#16111d; box-shadow:95px 0 0 #16111d; }
.art-mirror::after { left:49.5%; top:0; width:1px; height:100%; background:rgba(232,228,255,.5); }

.art-staircase { background:linear-gradient(145deg,#192a23,#7d9568 60%,#d9c5a3); }
.art-staircase::before { right:-3%; bottom:0; width:82%; height:68%; background:repeating-linear-gradient(0deg,#1f2a23 0 7%,#9da986 7.5% 15%); clip-path:polygon(100% 0,100% 100%,0 100%); }
.art-staircase::after { left:52%; top:17%; width:8%; height:53%; border-radius:50% 50% 15% 15%; background:#15201c; transform:rotate(24deg); }

.art-feedback { background:repeating-radial-gradient(ellipse at 50% 50%,#2b0a4d 0 6%,#8241ce 7% 12%,#2fc8ad 13% 15%,#14062e 16% 23%); }
.art-feedback::before { left:39%; top:12%; width:23%; height:76%; border-radius:47%; background:rgba(245,175,157,.6); mix-blend-mode:hard-light; filter:blur(3px); }

.art-table { background:linear-gradient(#26150f 0 56%,#8a4d2d 57% 74%,#1e1712 75%); }
.art-table::before { left:7%; right:7%; bottom:17%; height:27%; border-radius:50%; background:#814929; box-shadow:0 -12px 35px rgba(238,170,92,.32); }
.art-table::after { inset:18% 9% 33%; background:radial-gradient(circle at 9% 60%,#19100d 0 6%,transparent 6.5%),radial-gradient(circle at 25% 38%,#29150e 0 7%,transparent 7.5%),radial-gradient(circle at 43% 58%,#160d0a 0 6%,transparent 6.5%),radial-gradient(circle at 61% 35%,#2c1810 0 7%,transparent 7.5%),radial-gradient(circle at 79% 58%,#160e0b 0 6%,transparent 6.5%),radial-gradient(circle at 94% 38%,#2a160f 0 7%,transparent 7.5%); }

.art-generic { background:linear-gradient(135deg,#323640,#696f77 49%,#202228); }
.art-generic::before { left:43%; top:20%; width:14%; height:60%; border-radius:48% 48% 20% 20%; background:#15171b; }

.card-topline {
  position: absolute;
  z-index: 12;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.provider-badge,
.sample-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 20px;
  background: rgba(12,12,11,.72);
  color: #f4f4ee;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.provider-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--provider);
}

.sample-badge {
  margin-left: auto;
  color: rgba(255,255,255,.65);
}

.select-card {
  position: absolute;
  z-index: 15;
  bottom: 8px;
  left: 8px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  background: rgba(10,10,9,.68);
  opacity: 0;
  transition: 140ms ease;
}

.reference-card.is-selected .select-card,
.card-visual:hover .select-card {
  opacity: 1;
}

.reference-card.is-selected .select-card {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.reference-card.is-selected .select-card::after {
  width: 8px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  content:"";
  transform:translateY(-1px) rotate(-45deg);
}

.reference-card.is-selected .card-visual {
  border-color: var(--accent);
  box-shadow:0 0 0 2px rgba(217,255,67,.18);
}

.frame-index {
  position:absolute;
  z-index:10;
  right:8px;
  bottom:7px;
  color:rgba(255,255,255,.65);
  font-family:var(--mono);
  font-size:7px;
  letter-spacing:.08em;
  text-shadow:0 1px 3px #000;
  transition:opacity 130ms ease;
}

.card-actions {
  position:absolute;
  z-index:15;
  right:8px;
  bottom:8px;
  display:flex;
  gap:5px;
  opacity:0;
  transform:translateY(4px);
  transition:150ms ease;
}

.card-action {
  display:grid;
  width:29px;
  height:29px;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:7px;
  background:rgba(10,10,9,.79);
  color:#fff;
  font-size:12px;
  backdrop-filter:blur(8px);
}

.card-action:hover,
.card-action.is-active {
  border-color:var(--accent);
  color:var(--accent);
}

.card-info {
  padding:10px 2px 0;
}

.card-title-row {
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.card-title-row > div {
  min-width:0;
  flex:1;
}

.card-info h3 {
  overflow:hidden;
  margin-bottom:3px;
  font-size:11px;
  font-weight:680;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.card-info p {
  overflow:hidden;
  margin-bottom:0;
  color:var(--dim);
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.card-colours {
  display:flex;
  padding-top:3px;
}

.card-colours i {
  width:9px;
  height:9px;
  margin-left:-2px;
  border:1px solid var(--bg);
  border-radius:50%;
  background:var(--swatch,#aaa);
}

.card-meta {
  display:flex;
  flex-wrap:wrap;
  gap:4px 9px;
  margin-top:8px;
  color:var(--muted);
  font-size:8px;
}

.card-meta span::before {
  margin-right:4px;
  color:var(--line-strong);
  content:"•";
}

.card-meta span:first-child::before {
  display:none;
}

.result-grid.is-compact .card-info h3 { font-size:10px; }
.result-grid.is-compact .card-meta { display:none; }
.result-grid.is-compact .provider-badge { transform:scale(.9); transform-origin:left top; }

.empty-state {
  display:grid;
  min-height:420px;
  place-items:center;
  align-content:center;
  padding:40px;
  text-align:center;
}

.empty-state[hidden] { display:none; }
.empty-state h3 { margin:18px 0 7px; font-size:17px; }
.empty-state p { max-width:440px; color:var(--muted); font-size:11px; line-height:1.6; }
.empty-state > div:last-child { display:flex; gap:8px; margin-top:10px; }
.empty-orbit { position:relative; width:68px; height:68px; border:1px solid var(--line-strong); border-radius:50%; }
.empty-orbit::before { position:absolute; inset:15px; border:1px solid var(--line); border-radius:50%; content:""; }
.empty-orbit span { position:absolute; top:8px; left:30px; width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 16px rgba(217,255,67,.4); }

.page-view {
  padding:45px clamp(24px,4vw,60px) 100px;
}

.page-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}

.page-heading h1 { margin-bottom:7px; font-size:34px; letter-spacing:-.045em; }
.page-heading p { margin:0; color:var(--muted); font-size:12px; }

.board-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.board-card {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--bg-raised);
  transition:150ms ease;
}

.board-card:hover { border-color:var(--line-strong); transform:translateY(-2px); box-shadow:0 17px 35px rgba(0,0,0,.18); }

.board-preview {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  aspect-ratio:16/7;
  gap:2px;
  padding:2px;
  background:var(--line);
}

.board-preview .art-scene { position:relative; }
.board-preview-empty { display:grid; grid-column:1/-1; place-items:center; background:var(--bg-soft); color:var(--dim); font-size:10px; }
.board-body { padding:15px; }
.board-body h3 { margin-bottom:5px; font-size:13px; }
.board-body p { min-height:30px; margin-bottom:12px; color:var(--muted); font-size:10px; line-height:1.5; }
.board-footer { display:flex; align-items:center; justify-content:space-between; color:var(--dim); font-size:9px; }
.board-footer button { padding:0; border:0; background:transparent; color:var(--text); font-size:9px; }

.saved-list {
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.saved-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:18px;
  min-height:66px;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  background:var(--bg-raised);
}

.saved-row:last-child { border-bottom:0; }
.saved-row h3 { margin:0 0 4px; font-size:11px; }
.saved-row p { margin:0; color:var(--dim); font-size:9px; }
.saved-row time { color:var(--dim); font-size:9px; }

.connections-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.connection-card {
  padding:17px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--bg-raised);
}

.connection-head {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
}

.provider-mark { width:34px; height:34px; font-size:9px; }
.connection-head h3 { margin:0 0 3px; font-size:12px; }
.connection-head p { margin:0; color:var(--dim); font-size:9px; }
.access-pill { padding:5px 7px; border-radius:12px; background:rgba(255,200,92,.09); color:var(--warning); font-size:8px; font-weight:700; text-transform:uppercase; }
.access-pill.is-guided { background:rgba(123,226,167,.09); color:#a9d9b8; }
.access-pill.is-direct { background:rgba(255,140,113,.1); color:#ffb09c; }
.connection-note { margin:15px 0 12px; color:var(--muted); font-size:10px; line-height:1.55; }
.capability-list { display:flex; flex-wrap:wrap; gap:5px; }
.capability { padding:4px 7px; border:1px solid var(--line); border-radius:12px; color:var(--dim); font-size:8px; }
.capability.is-supported { border-color:rgba(123,226,167,.16); background:rgba(123,226,167,.05); color:#a9d9b8; }
.connection-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.connection-action { display:inline-flex; min-height:34px; align-items:center; padding:0 11px; border:1px solid var(--line-strong); border-radius:7px; background:transparent; color:var(--text); font-size:9px; font-weight:650; text-decoration:none; }
.connection-action:hover { border-color:var(--muted); background:var(--bg-soft); }
.connection-action.is-primary { border-color:rgba(241,206,69,.34); background:rgba(241,206,69,.08); color:#f5dc74; }

.permission-banner {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:13px;
  margin-bottom:20px;
  padding:15px;
  border:1px solid rgba(255,200,92,.18);
  border-radius:var(--radius);
  background:rgba(255,200,92,.045);
}

.permission-banner strong { display:block; margin-bottom:4px; font-size:11px; }
.permission-banner p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.permission-icon { color:var(--warning); font-size:18px; }

.compare-tray {
  position:fixed;
  z-index:35;
  right:24px;
  bottom:20px;
  left:calc(var(--sidebar) + 24px);
  display:grid;
  grid-template-columns:minmax(150px,1fr) auto auto auto;
  align-items:center;
  gap:14px;
  max-width:780px;
  min-height:64px;
  margin:auto;
  padding:9px 10px 9px 16px;
  border:1px solid var(--line-strong);
  border-radius:14px;
  background:rgba(28,28,25,.94);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}

.compare-tray[hidden] { display:none; }
.compare-tray strong,.compare-tray span { display:block; }
.compare-tray strong { margin-bottom:2px; font-size:11px; }
.compare-tray span { color:var(--dim); font-size:9px; }
.compare-thumbnails { display:flex; }
.compare-thumb { position:relative; width:51px; height:34px; overflow:hidden; margin-left:-6px; border:2px solid var(--bg-raised); border-radius:5px; background:var(--bg-hover); }
.compare-thumb:first-child { margin-left:0; }
.compare-thumb .art-scene { position:absolute; }

.modal-root:empty { display:none; }

.modal-backdrop {
  position:fixed;
  z-index:100;
  inset:0;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(5,5,4,.78);
  backdrop-filter:blur(8px);
  animation:fade-in 130ms ease;
}

.modal {
  width:min(680px,100%);
  max-height:min(820px,calc(100vh - 44px));
  overflow:auto;
  border:1px solid var(--line-strong);
  border-radius:17px;
  background:#191917;
  box-shadow:var(--shadow);
  animation:modal-in 170ms ease;
}

.modal--wide { width:min(1040px,100%); }
.modal--narrow { width:min(480px,100%); }

.modal-header {
  position:sticky;
  z-index:3;
  top:0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:19px 20px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(25,25,23,.96);
  backdrop-filter:blur(10px);
}

.modal-header h2 { margin-bottom:5px; font-size:16px; }
.modal-header p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.modal-body { padding:20px; }
.modal-footer { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:15px 20px; border-top:1px solid var(--line); }

.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-field { display:grid; gap:6px; }
.form-field--full { grid-column:1/-1; }
.form-field label { color:var(--muted); font-size:9px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.form-field input,.form-field select,.form-field textarea {
  width:100%;
  min-height:41px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  outline:0;
  background:#121210;
  color:var(--text);
  font-size:11px;
}
.form-field textarea { min-height:84px; resize:vertical; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color:var(--accent); }
.form-hint { color:var(--dim); font-size:8px; line-height:1.45; }

.source-launch-list { display:grid; gap:8px; }
.source-launch-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:11px; border:1px solid var(--line); border-radius:9px; background:#151513; }
.source-launch-row h3 { margin:0 0 3px; font-size:11px; }
.source-launch-row p { margin:0; color:var(--dim); font-size:8px; }
.source-launch-row .provider-mark { width:30px; height:30px; }
.launch-query { margin-bottom:14px; padding:11px; border:1px solid rgba(217,255,67,.14); border-radius:9px; background:rgba(217,255,67,.045); color:#dbe5ba; font-family:var(--mono); font-size:9px; line-height:1.55; }
.unsupported-note { color:var(--warning); }

.provider-handoff { display:grid; gap:16px; }
.handoff-status { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px; border:1px solid rgba(123,226,167,.15); border-radius:10px; background:rgba(123,226,167,.04); }
.handoff-status strong,.handoff-status p { display:block; margin:0; }
.handoff-status strong { margin-bottom:3px; font-size:11px; }
.handoff-status p { color:var(--muted); font-size:9px; line-height:1.45; }
.handoff-status > span:last-child { color:#a9d9b8; font-family:var(--mono); font-size:8px; font-weight:800; letter-spacing:.08em; }
.provider-query-card { display:grid; grid-template-columns:minmax(145px,.55fr) minmax(240px,1.4fr) auto; align-items:center; gap:13px; padding:15px; border:1px solid rgba(241,206,69,.2); border-radius:11px; background:rgba(241,206,69,.045); }
.provider-query-card p { margin:4px 0 0; color:var(--dim); font-size:8px; }
.provider-query-card code { overflow-wrap:anywhere; color:#f5e7a9; font-family:var(--mono); font-size:10px; line-height:1.55; }
.field-kicker { color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.handoff-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.handoff-columns > section { padding:15px; border:1px solid var(--line); border-radius:10px; background:#151513; }
.handoff-columns h3 { margin:0 0 12px; font-size:11px; }
.handoff-filter-list { display:grid; margin:0; }
.handoff-filter-list > div { display:grid; grid-template-columns:105px minmax(0,1fr); gap:12px; padding:7px 0; border-top:1px solid var(--line); font-size:9px; }
.handoff-filter-list dt { color:var(--dim); }
.handoff-filter-list dd { margin:0; color:var(--text); }
.handoff-empty { margin:0; color:var(--dim); font-size:9px; line-height:1.55; }
.keyword-fallback { margin-top:12px; padding:10px; border:1px solid rgba(255,200,92,.14); border-radius:8px; background:rgba(255,200,92,.04); }
.keyword-fallback strong,.keyword-fallback p { display:block; margin:0; font-size:8px; }
.keyword-fallback strong { margin-bottom:4px; color:var(--warning); text-transform:uppercase; }
.keyword-fallback p { color:var(--muted); }
.keyword-fallback p + p { margin-top:7px; }
.keyword-fallback small { display:block; margin-top:3px; color:var(--dim); font-size:7px; line-height:1.45; }
.handoff-unmatched { margin:10px 0 0; color:var(--dim); font-size:8px; line-height:1.5; }
.handoff-unmatched strong { color:var(--warning); }
.technique-link-list { display:grid; gap:7px; }
.technique-link {
  display:flex;
  min-height:52px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,140,113,.025);
  color:var(--text);
  text-decoration:none;
  transition:140ms ease;
}
.technique-link:hover { border-color:rgba(255,140,113,.38); background:rgba(255,140,113,.06); transform:translateY(-1px); }
.technique-link span,.technique-link strong,.technique-link small { display:block; }
.technique-link strong { margin-bottom:4px; font-size:10px; }
.technique-link small { color:var(--dim); font-size:7px; line-height:1.4; }
.technique-link b { color:#ffb09c; font-size:8px; white-space:nowrap; }
.handoff-steps { display:grid; gap:9px; margin:0; padding-left:19px; color:var(--muted); font-size:9px; line-height:1.5; }
.handoff-steps li::marker { color:#f1ce45; font-weight:800; }
.handoff-boundary { margin:0; padding:11px 13px; border-left:2px solid var(--line-strong); color:var(--dim); font-size:8px; line-height:1.55; }
.import-workflow { display:flex; gap:10px; align-items:baseline; padding:11px 12px; border:1px solid rgba(241,206,69,.16); border-radius:8px; background:rgba(241,206,69,.04); }
.import-workflow strong { color:#f5dc74; font-size:9px; white-space:nowrap; }
.import-workflow span { color:var(--muted); font-size:9px; line-height:1.45; }

.detail-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(250px,.8fr); gap:19px; }
.detail-frame { position:relative; overflow:hidden; aspect-ratio:16/9; border-radius:10px; background:#222; }
.detail-frame .art-scene { position:absolute; }
.detail-title { margin:17px 0 4px; font-size:20px; letter-spacing:-.025em; }
.detail-subtitle { color:var(--muted); font-size:10px; }
.detail-side { padding:4px 0; }
.metadata-table { display:grid; margin-top:15px; border-top:1px solid var(--line); }
.metadata-row { display:grid; grid-template-columns:105px minmax(0,1fr); gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:9px; }
.metadata-row dt { color:var(--dim); }
.metadata-row dd { margin:0; color:var(--text); }
.detail-actions { display:grid; gap:7px; margin-top:15px; }
.detail-actions a,.detail-actions button { display:flex; min-height:39px; align-items:center; justify-content:center; border:1px solid var(--line-strong); border-radius:8px; background:transparent; color:var(--text); font-size:10px; font-weight:700; text-decoration:none; }

.compare-table { min-width:760px; overflow:auto; }
.compare-columns { display:grid; grid-template-columns:120px repeat(var(--compare-count),minmax(145px,1fr)); }
.compare-columns--2 { grid-template-columns:120px repeat(2,minmax(145px,1fr)); }
.compare-columns--3 { grid-template-columns:120px repeat(3,minmax(145px,1fr)); }
.compare-columns--4 { grid-template-columns:120px repeat(4,minmax(145px,1fr)); }
.compare-cell { min-width:0; padding:10px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); font-size:9px; }
.compare-label-cell { color:var(--dim); }
.compare-art { position:relative; overflow:hidden; aspect-ratio:16/9; border-radius:6px; }

.board-picker { display:grid; gap:7px; }
.board-pick { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; width:100%; padding:11px; border:1px solid var(--line); border-radius:8px; background:#141412; color:var(--text); text-align:left; }
.board-pick:hover { border-color:var(--accent); }
.board-pick strong,.board-pick span { display:block; }
.board-pick strong { margin-bottom:3px; font-size:10px; }
.board-pick span { color:var(--dim); font-size:8px; }

.command-search { width:100%; height:50px; padding:0 16px; border:0; border-bottom:1px solid var(--line); outline:0; background:transparent; color:var(--text); font-size:13px; }
.command-list { display:grid; gap:3px; padding:8px; }
.command-item { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; min-height:43px; padding:0 10px; border:0; border-radius:8px; background:transparent; color:var(--muted); text-align:left; }
.command-item:hover,.command-item.is-active { background:var(--bg-hover); color:var(--text); }
.command-item > span:first-child { display:grid; width:25px; height:25px; place-items:center; border:1px solid var(--line); border-radius:6px; }

.toast-region { position:fixed; z-index:200; right:18px; bottom:18px; display:grid; width:min(360px,calc(100vw - 36px)); gap:8px; pointer-events:none; }
.toast { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px 13px; border:1px solid var(--line-strong); border-radius:10px; background:#21211e; box-shadow:0 15px 40px rgba(0,0,0,.33); color:var(--text); font-size:10px; animation:toast-in 180ms ease; }
.toast::before { width:7px; height:7px; border-radius:50%; background:var(--success); content:""; }
.toast.is-warning::before { background:var(--warning); }
.toast button { border:0; background:transparent; color:var(--accent); font-size:9px; pointer-events:auto; }

.mobile-filter-backdrop { display:none; }
.browse-layout.filters-hidden { grid-template-columns:1fr; }
.browse-layout.filters-hidden .filters { display:none; }
.noscript { position:fixed; z-index:500; inset:20px; display:grid; place-items:center; border-radius:15px; background:#222; }

@keyframes fade-in { from { opacity:0; } }
@keyframes modal-in { from { opacity:0; transform:translateY(10px) scale(.985); } }
@keyframes toast-in { from { opacity:0; transform:translateX(12px); } }

@media (max-width: 1180px) {
  .result-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .result-grid.is-compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .board-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar: 226px; }
  .search-form { grid-template-columns:minmax(220px,1fr) auto; }
  .search-form .secondary-button { grid-column:2; }
  .search-form .primary-button { display:none; }
  .browse-layout { grid-template-columns:1fr; }
  .filters { position:fixed; z-index:70; top:0; bottom:0; left:0; width:min(330px,88vw); max-height:none; padding-top:25px; background:#151513; box-shadow:25px 0 80px rgba(0,0,0,.45); transform:translateX(-105%); transition:180ms ease; }
  .filters.is-mobile-open { transform:translateX(0); }
  .mobile-filter-backdrop.is-open { position:fixed; z-index:65; inset:0; display:block; border:0; background:rgba(0,0,0,.63); }
  .filter-mobile-button { display:inline-flex; align-items:center; }
  .connections-grid { grid-template-columns:1fr; }
}

@media (max-width: 720px) {
  :root { --sidebar: 248px; }
  .app-shell { grid-template-columns:1fr; }
  .sidebar { transform:translateX(-105%); box-shadow:25px 0 80px rgba(0,0,0,.45); transition:180ms ease; }
  .sidebar.is-mobile-open { transform:translateX(0); }
  .workspace { grid-column:1; }
  .mobile-menu { display:inline-grid; }
  .topbar { padding:0 15px; }
  .breadcrumbs span,.breadcrumbs b { display:none; }
  .ghost-button { display:none; }
  .search-stage { padding:38px 17px 24px; }
  .search-heading { align-items:flex-start; flex-direction:column; }
  .search-heading .outline-button { min-height:36px; }
  .search-form { grid-template-columns:1fr; }
  .search-form .secondary-button { grid-column:1; }
  .search-box input { height:49px; font-size:12px; }
  .search-assist { display:none; }
  .source-strip { margin-top:18px; }
  .results-panel { padding:20px 13px 100px; }
  .results-toolbar { align-items:flex-end; }
  .select-label { display:none; }
  .result-grid,.result-grid.is-compact { grid-template-columns:1fr 1fr; gap:17px 8px; }
  .card-meta { display:none; }
  .card-info h3 { font-size:10px; }
  .provider-badge { transform:scale(.86); transform-origin:left top; }
  .board-grid { grid-template-columns:1fr; }
  .page-view { padding:30px 16px 90px; }
  .page-heading { align-items:flex-start; flex-direction:column; }
  .compare-tray { left:10px; right:10px; bottom:10px; grid-template-columns:minmax(90px,1fr) auto auto; }
  .compare-thumbnails { display:none; }
  .form-grid,.detail-grid { grid-template-columns:1fr; }
  .provider-query-card,.handoff-columns { grid-template-columns:1fr; }
  .provider-query-card .outline-button { justify-self:start; }
  .import-workflow { align-items:flex-start; flex-direction:column; }
  .modal-backdrop { padding:8px; }
  .modal { max-height:calc(100vh - 16px); border-radius:13px; }
  .selection-bar { gap:12px; overflow:auto; }
}

@media (max-width: 470px) {
  .result-grid,.result-grid.is-compact { grid-template-columns:1fr; }
  .card-meta { display:flex; }
  .search-heading h1 { font-size:34px; }
  .toolbar-actions .segmented { display:none; }
  .source-toggle { padding-right:8px; }
  .source-toggle span:last-child { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
