body.oshi-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(216, 58, 52, 0.08), transparent 26%),
    linear-gradient(180deg, #f3f5f7 0%, #e4e8ec 100%);
  color: #161a1f;
}

body.oshi-page::before {
  opacity: 0;
}

.oshi-page button,
.oshi-page input,
.oshi-page select {
  font: inherit;
}

.oshi-shell {
  width: min(1560px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.oshi-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 22px 26px;
  border: 1px solid #c9d0d6;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #151a20 0%, #202832 58%, #f2b33d 58.2%, #f2b33d 59%, #d83a34 59.2%, #d83a34 100%);
  box-shadow: 0 16px 36px rgba(25, 34, 43, 0.14);
  color: #fff;
}

.oshi-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.oshi-kicker,
.oshi-section-label,
.oshi-field-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oshi-kicker {
  color: #f2b33d;
}

.oshi-maker {
  margin: 0;
  color: #dce3e9;
  font-size: 0.98rem;
  font-weight: 700;
}

.oshi-hero h1,
.oshi-result-head h2,
.oshi-catalog-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.oshi-hero h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.oshi-id-field {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.oshi-id-field span {
  color: #dce3e9;
  font-size: 0.95rem;
  font-weight: 700;
}

.oshi-id-field input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #171b20;
  padding: 0 14px;
}

.oshi-id-field input::placeholder {
  color: #7b8791;
}

.oshi-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.oshi-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #f4f7fa;
}

.oshi-hero-stats strong {
  font-size: 1.35rem;
}

.oshi-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.oshi-picker-panel,
.oshi-result-panel {
  border: 1px solid #cbd2d9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(29, 38, 48, 0.1);
}

.oshi-picker-panel {
  min-width: 0;
  padding: 18px;
}

.oshi-result-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.oshi-toolbar {
  display: grid;
  gap: 14px;
}

.oshi-field {
  display: grid;
  gap: 8px;
}

.oshi-field-label,
.oshi-section-label {
  color: #68737d;
}

.oshi-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.oshi-tier-switch,
.oshi-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oshi-tier-button,
.oshi-filter-pill,
.oshi-primary-button,
.oshi-secondary-button,
.oshi-operator-tile,
.oshi-selection-chip {
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  background: #fff;
  color: #1b2026;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.oshi-tier-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
}

.oshi-tier-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef2f5;
  color: #4e5964;
  font-size: 0.92rem;
}

.oshi-tier-button:hover,
.oshi-tier-button.is-active {
  border-color: var(--tier-color);
  background: var(--tier-soft);
  box-shadow: inset 0 -3px 0 var(--tier-color);
}

.oshi-tier-button.is-active strong {
  background: var(--tier-color);
  color: #fff;
}

.oshi-filter-pill {
  min-height: 36px;
  padding: 0 12px;
}

.oshi-filter-pill:hover,
.oshi-filter-pill.is-active {
  border-color: #1d2833;
  background: #1d2833;
  color: #fff;
}

.oshi-catalog-head,
.oshi-result-head,
.oshi-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oshi-catalog-head {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #d9dee3;
}

.oshi-catalog-head h2,
.oshi-result-head h2 {
  font-size: 1.3rem;
}

.oshi-catalog-head p,
.oshi-status,
.oshi-muted {
  color: #68737d;
}

.oshi-catalog-head p,
.oshi-status {
  margin: 0;
}

.oshi-operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.oshi-operator-tile {
  position: relative;
  display: grid;
  grid-template-rows: 72px minmax(34px, auto);
  gap: 7px;
  min-width: 0;
  min-height: 122px;
  padding: 8px 7px 9px;
  overflow: hidden;
}

.oshi-operator-tile:hover {
  transform: translateY(-1px);
  border-color: #6f7b86;
  box-shadow: 0 8px 18px rgba(29, 38, 48, 0.12);
}

.oshi-operator-tile.is-picked {
  border-color: var(--tier-color);
  background: var(--tier-soft);
  box-shadow: inset 0 -4px 0 var(--tier-color);
}

.oshi-avatar-shell {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  justify-self: center;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: #20252b;
}

.oshi-avatar-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f3f6f8;
  font-size: 1.05rem;
  font-weight: 800;
}

.oshi-operator-tile img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  justify-self: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.oshi-operator-tile img.is-loaded {
  opacity: 1;
}

.oshi-avatar-shell:has(img.is-loaded) .oshi-avatar-placeholder {
  opacity: 0;
}

.oshi-operator-tile img.is-missing {
  opacity: 0;
}

.oshi-operator-name {
  display: -webkit-box;
  overflow: hidden;
  color: #161a1f;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.oshi-result-head {
  align-items: start;
}

.oshi-table-wrap {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d4dbe1;
  border-radius: 8px;
  background: #fff;
}

.oshi-selection-table {
  width: 100%;
  border-collapse: collapse;
}

.oshi-selection-table tr + tr {
  border-top: 1px solid #dce2e7;
}

.oshi-selection-table th {
  width: 96px;
  padding: 14px 10px;
  border-right: 1px solid #dce2e7;
  background: var(--tier-soft);
  color: var(--tier-color);
  text-align: left;
  vertical-align: top;
}

.oshi-selection-table th span,
.oshi-selection-table th strong {
  display: block;
}

.oshi-selection-table th strong {
  margin-top: 4px;
  font-size: 1.35rem;
}

.oshi-selection-table td {
  min-height: 86px;
  padding: 12px;
  vertical-align: top;
}

.oshi-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oshi-selection-chip {
  display: inline-grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 40px;
  padding: 4px 7px 4px 4px;
  background: #fbfcfd;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.oshi-selection-chip:hover {
  border-color: var(--tier-color);
  background: var(--tier-soft);
}

.oshi-selection-chip.is-dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.oshi-selection-chip img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.oshi-selection-chip span {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oshi-selection-remove {
  min-width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #76818b;
  cursor: pointer;
}

.oshi-selection-remove:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1b2026;
}

.oshi-action-row {
  margin-top: 14px;
}

.oshi-primary-button,
.oshi-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.oshi-primary-button {
  flex: 1;
  border-color: #d83a34;
  background: #d83a34;
  color: #fff;
  font-weight: 800;
}

.oshi-primary-button:hover {
  background: #bb302c;
}

.oshi-secondary-button {
  background: #fff;
}

.oshi-secondary-button:hover {
  border-color: #1d2833;
}

.oshi-primary-button:disabled,
.oshi-secondary-button:disabled,
.oshi-secondary-button.is-disabled {
  border-color: #d8dee3;
  background: #eef2f5;
  color: #9aa4ad;
  cursor: not-allowed;
}

.oshi-output {
  margin-top: 14px;
}

.oshi-output img {
  display: block;
  width: 100%;
  border: 1px solid #d4dbe1;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  -webkit-touch-callout: default;
  user-select: auto;
}

.oshi-modal-open {
  overflow: hidden;
}

.oshi-image-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.oshi-image-modal[hidden] {
  display: none;
}

.oshi-image-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 14, 18, 0.82);
  cursor: zoom-out;
}

.oshi-image-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: min(92vw, 900px);
  max-height: 92vh;
}

.oshi-image-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 56px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  -webkit-touch-callout: default;
  user-select: auto;
}

.oshi-image-close {
  justify-self: end;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.oshi-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.oshi-empty,
.oshi-fatal {
  padding: 26px;
  border: 1px dashed #bdc6ce;
  border-radius: 8px;
  background: #fff;
  color: #68737d;
}

.oshi-fatal {
  margin: 40px;
  color: #161a1f;
}

@media (max-width: 1080px) {
  .oshi-workspace {
    grid-template-columns: 1fr;
  }

  .oshi-result-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .oshi-shell {
    width: min(100vw - 20px, 680px);
    padding-top: 10px;
  }

  .oshi-hero,
  .oshi-catalog-head,
  .oshi-result-head,
  .oshi-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .oshi-hero {
    padding: 18px;
    background:
      linear-gradient(180deg, #151a20 0%, #202832 74%, #d83a34 74.5%, #d83a34 100%);
  }

  .oshi-hero h1 {
    font-size: 2.25rem;
  }

  .oshi-hero-stats {
    justify-content: flex-start;
  }

  .oshi-filter-row {
    grid-template-columns: 1fr;
  }

  .oshi-picker-panel,
  .oshi-result-panel {
    padding: 12px;
  }

  .oshi-operator-grid {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
  }

  .oshi-operator-tile {
    grid-template-rows: 62px minmax(34px, auto);
    min-height: 108px;
    padding: 7px 5px 8px;
  }

  .oshi-operator-tile img {
    width: 62px;
    height: 62px;
  }

  .oshi-operator-tile span {
    font-size: 0.78rem;
  }

  .oshi-selection-table,
  .oshi-selection-table tbody,
  .oshi-selection-table tr,
  .oshi-selection-table th,
  .oshi-selection-table td {
    display: block;
    width: 100%;
  }

  .oshi-selection-table th {
    border-right: 0;
    border-bottom: 1px solid #dce2e7;
  }
}

:root {
  --bg: #0f1318;
  --panel: rgba(20, 28, 36, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eff4f8;
  --muted: #a7b7c5;
  --accent: #f26d3d;
  --accent-soft: rgba(242, 109, 61, 0.18);
  --accent-strong: #ff8b5e;
  --gold: #e0b15a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-display: "Bahnschrift", "Trebuchet MS", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(242, 109, 61, 0.2), transparent 28%),
    radial-gradient(circle at right 20%, rgba(224, 177, 90, 0.14), transparent 24%),
    linear-gradient(160deg, #0b0f14 0%, #151d25 44%, #0d1117 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  opacity: 0.18;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1600px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.mobile-overview,
.mobile-bottom-nav {
  display: none;
}

.mobile-screen {
  display: contents;
}

.hero,
.control-panel,
.analysis-card,
.catalog-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.02;
  white-space: nowrap;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.8;
}

.metric-card,
.search-box span,
.select-box span,
.filter-title,
.section-head p,
.look-subtitle,
.meta-line,
.tag,
.analysis-row .row-label,
.selection-group-meta {
  color: var(--muted);
}

.metric-card .value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.control-panel {
  margin-top: 22px;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.search-row,
.toggle-row,
.select-grid,
.section-head,
.selection-group-head,
.row-head,
.tag-row,
.selection-chip-row {
  display: flex;
  gap: 12px;
}

.search-row {
  flex-wrap: wrap;
  align-items: end;
}

.search-box,
.select-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-box {
  flex: 1 1 480px;
}

.search-box input,
.select-box select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 10, 13, 0.44);
  color: var(--text);
  padding: 0 14px;
}

.toggle-row,
.filter-groups,
.analysis-list,
.selection-groups {
  margin-top: 12px;
}

.mobile-filter-bar,
.filter-sheet {
  display: none;
}

.toggle-row,
.pill-row,
.selection-chip-row,
.tag-row {
  flex-wrap: wrap;
}

.ghost-button,
.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 160ms ease;
}

.ghost-button {
  min-height: 40px;
  padding: 0 16px;
}

.ghost-button.compact {
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
}

.ghost-button:hover,
.ghost-button.is-active,
.filter-pill:hover,
.filter-pill.is-active {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.filter-groups,
.filter-group,
.looks-grid,
.analysis-row {
  display: grid;
  gap: 12px;
}

.filter-groups {
  grid-template-columns: repeat(auto-fit, minmax(160px, max-content));
  gap: 10px;
  align-items: start;
}

.filter-collapsible {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  min-width: 0;
}

.filter-collapsible[open] {
  border-color: rgba(242, 109, 61, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.filter-collapsible .pill-row {
  padding-top: 8px;
}

.filter-pill {
  padding: 8px 12px;
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.filter-title::-webkit-details-marker {
  display: none;
}

.filter-title::after {
  content: "+";
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
}

.filter-collapsible[open] .filter-title::after {
  content: "−";
}

.content-grid {
  margin-top: 22px;
  display: block;
}

.catalog-panel,
.analysis-card {
  padding: 16px;
  border-radius: var(--radius-xl);
}

.analysis-stack {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.section-head {
  justify-content: space-between;
  align-items: start;
}

.section-head.tight {
  margin-bottom: 8px;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 0.85rem;
}

.section-head h2,
.selection-group-title,
.operator-name,
.look-title,
.analysis-row .row-value {
  margin: 0;
  font-weight: 700;
}

.operator-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.operator-card,
.selection-group,
.analysis-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.operator-card[open] {
  border-color: rgba(242, 109, 61, 0.45);
}

.operator-summary {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

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

.avatar-frame,
.look-thumb {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
}

.avatar-frame {
  width: 78px;
  aspect-ratio: 1;
}

.operator-visual {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.operator-main {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.operator-title-line {
  display: block;
}

.operator-name {
  display: block;
  line-height: 1.2;
  word-break: break-word;
}

.operator-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.meta-divider {
  color: rgba(255, 255, 255, 0.35);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.look-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.rarity-badge,
.selection-chip,
.highlight-tag {
  border-radius: 999px;
  padding: 5px 9px;
}

.rarity-badge {
  background: rgba(224, 177, 90, 0.15);
  color: #ffd58b;
  font-size: 0.76rem;
}

.avatar-rarity {
  min-width: 58px;
  text-align: center;
}

.tag {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 8px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.selected-count {
  min-width: 66px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  padding: 10px 12px;
  text-align: center;
  align-self: start;
}

.selected-count .count {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.selected-count .label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.operator-body {
  padding: 0 14px 14px;
}

.operator-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.operator-links a {
  color: var(--accent-strong);
  text-decoration: none;
}

.look-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.look-card.is-selected {
  border-color: var(--accent-strong);
  background: linear-gradient(90deg, rgba(242, 109, 61, 0.18), rgba(255, 255, 255, 0.04));
}

.look-preview-trigger,
.look-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.look-preview-trigger {
  display: block;
  width: 100%;
}

.look-card-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.look-button {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: 160ms ease;
}

.look-button:hover,
.look-button.is-selected {
  border-color: var(--accent-strong);
  background: rgba(242, 109, 61, 0.12);
}

.look-thumb {
  width: 100%;
}

.look-title {
  display: block;
  line-height: 1.35;
  word-break: break-word;
}

body.preview-open {
  overflow: hidden;
}

.look-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.look-preview-modal[hidden] {
  display: none;
}

.look-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.78);
  backdrop-filter: blur(10px);
}

.look-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100vw - 44px));
  height: min(860px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(20, 28, 36, 0.97);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.look-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.look-preview-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.look-preview-head-copy {
  min-width: 0;
}

.look-preview-eyebrow,
.look-preview-note,
.look-preview-tag-label {
  color: var(--muted);
}

.look-preview-eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.look-preview-title {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
}

.look-preview-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.look-preview-visual,
.look-preview-info-shell {
  min-height: 0;
}

.look-preview-visual {
  padding: 18px;
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(242, 109, 61, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.02);
}

.look-preview-visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.look-preview-info-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 18px;
}

.look-preview-note {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.look-preview-info-head {
  display: grid;
  gap: 6px;
}

.look-preview-feedback-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.look-preview-info {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-content: start;
  overflow: auto;
}

.look-preview-tag {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.look-preview-tag-label {
  font-size: 0.76rem;
  line-height: 1.2;
}

.look-preview-tag-value {
  font-size: 0.9rem;
  line-height: 1.4;
  word-break: break-word;
}

.preview-feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100vw - 44px));
  max-height: min(760px, calc(100vh - 44px));
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(20, 28, 36, 0.97);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.feedback-dialog-body {
  padding: 18px;
  overflow: auto;
}

.preview-feedback-head,
.admin-feedback-head,
.admin-detail-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.preview-feedback-head h3,
.admin-snapshot-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.preview-feedback-head p,
.admin-look-meta,
.admin-feedback-meta {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.85rem;
}

.preview-feedback-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.preview-feedback-option {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.preview-feedback-checkbox {
  margin-top: 2px;
}

.preview-feedback-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.preview-feedback-option-label {
  font-weight: 700;
}

.preview-feedback-option-value,
.preview-feedback-empty,
.preview-feedback-status {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.preview-feedback-empty,
.preview-feedback-status {
  min-height: 1.5em;
}

.preview-feedback-status.is-success {
  color: #9ad59d;
}

.preview-feedback-status.is-warning {
  color: #ffb98f;
}

.analysis-empty,
.catalog-empty,
.summary-text {
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  line-height: 1.55;
}

.analysis-empty,
.catalog-empty {
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

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

.summary-text {
  margin-top: 14px;
  border-left: 3px solid var(--accent-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.analysis-row {
  padding: 10px;
}

.row-head,
.selection-group-head {
  justify-content: space-between;
  align-items: baseline;
}

.tag-cloud {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.highlight-tag {
  border: 1px solid rgba(242, 109, 61, 0.28);
  background: rgba(242, 109, 61, 0.12);
  color: #ffd9cb;
  font-size: 0.78rem;
}

.compact-analysis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.compact-analysis .analysis-row {
  gap: 6px;
  min-height: 84px;
  padding: 9px 10px;
  align-content: start;
  border-color: rgba(242, 109, 61, 0.16);
  background:
    linear-gradient(180deg, rgba(242, 109, 61, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.compact-analysis .row-head {
  display: grid;
  gap: 6px;
  justify-content: start;
}

.compact-analysis .row-label {
  font-size: 0.72rem;
  line-height: 1.25;
}

.compact-analysis .row-value {
  font-size: 0.92rem;
  line-height: 1.22;
  word-break: break-word;
}

.selection-group {
  padding: 10px 12px;
}

.selection-chip {
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.selection-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--text);
}

.selection-remove:hover {
  border-color: var(--accent-strong);
  background: rgba(242, 109, 61, 0.12);
}

.selection-remove-mark {
  color: var(--accent-strong);
  font-weight: 700;
  line-height: 1;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editor-shell {
  width: min(1760px, calc(100vw - 32px));
}

.editor-toolbar {
  display: grid;
  gap: 14px;
}

.editor-action-row {
  align-items: center;
}

.editor-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
}

.editor-summary-text,
.editor-status-text,
.editor-current-path,
.editor-look-tags,
.editor-look-meta,
.editor-operator-meta {
  color: var(--muted);
}

.editor-status-text {
  font-size: 0.92rem;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.editor-panel {
  padding: 18px;
  min-height: 72vh;
}

.editor-operator-list,
.editor-look-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding-right: 4px;
}

.editor-operator-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: start;
}

.editor-operator-button,
.editor-look-button {
  display: grid;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.editor-operator-button {
  grid-template-columns: 1fr;
  align-content: start;
  padding: 10px;
}

.editor-look-button {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  width: auto;
  flex: 0 0 auto;
  min-width: auto;
  padding: 8px 14px;
  border-radius: 999px;
}

.editor-operator-button:hover,
.editor-operator-button.is-active,
.editor-look-button:hover,
.editor-look-button.is-active,
.editor-option-button:hover,
.editor-option-button.is-selected {
  border-color: var(--accent-strong);
  background: rgba(242, 109, 61, 0.12);
}

.editor-operator-button img,
.editor-current-visual img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.editor-operator-button img {
  aspect-ratio: 1.05 / 1;
}

.editor-current-visual img {
  aspect-ratio: 0.75 / 1;
}

.editor-operator-copy,
.editor-look-copy,
.editor-current-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.editor-operator-title,
.editor-look-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}

.editor-look-copy {
  display: block;
}

.editor-look-tags,
.editor-current-path {
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.editor-form-shell {
  display: grid;
  gap: 16px;
}

.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.editor-modal[hidden] {
  display: none;
}

.editor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.7);
  backdrop-filter: blur(10px);
}

.editor-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1600px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(20, 28, 36, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.editor-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.editor-modal-head-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
}

.editor-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.editor-modal-body {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(420px, 1fr);
  min-height: 0;
}

.editor-modal-preview,
.editor-modal-main {
  min-height: 0;
}

.editor-modal-preview {
  padding: 16px;
  border-right: 1px solid var(--line);
  overflow: auto;
}

.editor-modal-main {
  padding: 16px;
  overflow: auto;
}

.editor-look-switcher-panel {
  display: flex;
  min-width: 0;
}

.editor-look-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-preview-shell {
  display: grid;
}

.editor-preview-card {
  margin: 0;
  display: grid;
  gap: 12px;
}

.editor-preview-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 0.75 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.editor-preview-caption {
  display: grid;
  gap: 10px;
}

.editor-preview-meta {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.editor-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.editor-fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
}

.editor-fieldset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.editor-fieldset-title {
  padding: 0;
  color: var(--text);
  font-family: var(--font-display);
}

.editor-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-custom-option-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.editor-custom-input {
  flex: 1 1 220px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 10, 13, 0.44);
  color: var(--text);
  padding: 0 14px;
}

.editor-option-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: 160ms ease;
}

.editor-option-button span {
  pointer-events: none;
}

.editor-fieldset.is-flagged {
  border-color: rgba(242, 109, 61, 0.4);
  background: linear-gradient(180deg, rgba(242, 109, 61, 0.08), rgba(255, 255, 255, 0.03));
}

.editor-fieldset-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-grid {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.admin-feedback-list {
  display: grid;
  gap: 10px;
}

.admin-feedback-button {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.admin-feedback-button:hover,
.admin-feedback-button.is-active {
  border-color: var(--accent-strong);
  background: rgba(242, 109, 61, 0.12);
}

.admin-feedback-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.status-badge.is-pending {
  border-color: rgba(242, 109, 61, 0.4);
  background: rgba(242, 109, 61, 0.14);
  color: #ffd1bf;
}

.status-badge.is-resolved {
  border-color: rgba(105, 182, 120, 0.38);
  background: rgba(105, 182, 120, 0.16);
  color: #c7efcf;
}

.status-badge.is-rejected {
  border-color: rgba(166, 173, 184, 0.34);
  background: rgba(166, 173, 184, 0.12);
  color: #d8dde5;
}

.admin-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
}

.admin-preview-panel,
.admin-form-panel {
  min-width: 0;
}

.admin-preview-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-snapshot-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-snapshot-grid {
  display: grid;
  gap: 16px;
}

.admin-tag-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-tag-summary-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.editor-empty {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.7;
}


@media (max-width: 1180px) {
  .analysis-stack {
    grid-template-columns: 1fr;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-detail-layout {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    min-height: auto;
  }

  .editor-operator-list,
  .editor-look-list {
    max-height: none;
  }

  .editor-operator-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .editor-modal-dialog {
    width: min(100vw - 24px, 100%);
    max-height: calc(100vh - 24px);
  }

  .editor-modal-body {
    grid-template-columns: 1fr;
  }

  .editor-modal-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100vw, calc(100vw - 20px));
    padding: 18px 0 110px;
  }

  .hero {
    align-items: start;
    padding: 18px;
    border-radius: 24px;
  }

  .hero h1 {
    white-space: normal;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero-text {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .mobile-overview {
    display: grid;
    gap: 12px;
    margin-top: 18px;
  }

  .mobile-overview-card,
  .mobile-stat {
    border: 1px solid var(--line);
    background: rgba(20, 28, 36, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }

  .mobile-overview-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .mobile-overview-copy {
    display: grid;
    gap: 8px;
  }

  .mobile-overview-label,
  .mobile-filter-label,
  .mobile-nav-meta,
  .mobile-stat-label {
    color: var(--muted);
  }

  .mobile-overview-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .mobile-overview-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
  }

  .mobile-overview-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
  }

  .mobile-top-action {
    width: 100%;
  }

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

  .mobile-stat {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .mobile-stat-value {
    font-family: var(--font-display);
    font-size: 1.28rem;
    color: var(--accent-strong);
  }

  .mobile-stat-label {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .mobile-screen {
    display: none;
  }

  .mobile-screen.is-active {
    display: block;
  }

  .control-panel,
  .analysis-stack,
  .content-grid {
    margin-top: 18px;
  }

  .control-panel,
  .catalog-panel,
  .analysis-card {
    padding: 16px;
    border-radius: 22px;
  }

  .search-row {
    gap: 10px;
  }

  .search-box,
  .select-box {
    flex: 1 1 100%;
  }

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

  .ghost-button {
    min-height: 42px;
    padding-inline: 14px;
  }

  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-filter-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-filter-label {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-filter-summary {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .filter-sheet {
    display: none;
  }

  .filter-sheet.is-open {
    display: block;
    margin-top: 12px;
  }

  .filter-groups {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-collapsible {
    padding: 10px 12px;
  }

  .analysis-stack {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head {
    gap: 12px;
    flex-wrap: wrap;
  }

  .section-head.tight {
    margin-bottom: 10px;
  }

  .operator-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .operator-summary {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .avatar-frame {
    width: 64px;
  }

  .selected-count {
    min-width: 58px;
    padding: 8px 10px;
  }

  .selected-count .count {
    font-size: 1.15rem;
  }

  .operator-meta-line,
  .tag,
  .selection-group-meta,
  .row-label {
    font-size: 0.78rem;
  }

  .operator-body {
    padding: 0 12px 12px;
  }

  .look-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .look-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .look-thumb {
    width: 100%;
  }

  .look-preview-modal {
    padding: 0;
  }

  .look-preview-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .look-preview-head {
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .look-preview-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .look-preview-head-actions .ghost-button {
    flex: 1 1 0;
  }

  .look-preview-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .look-preview-visual {
    padding: 10px 14px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .look-preview-visual img {
    max-height: 100%;
  }

  .look-preview-info-shell {
    gap: 8px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  }

  .look-preview-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
  }

  .preview-feedback-options {
    grid-template-columns: 1fr;
  }

  .preview-feedback-head,
  .admin-feedback-head,
  .admin-detail-actions {
    flex-wrap: wrap;
  }

  .feedback-modal {
    padding: 0;
  }

  .feedback-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .feedback-dialog-body {
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .look-preview-tag {
    gap: 3px;
    padding: 8px;
    border-radius: 12px;
  }

  .look-preview-tag-label {
    font-size: 0.68rem;
  }

  .look-preview-tag-value {
    font-size: 0.78rem;
    line-height: 1.22;
  }

  .look-preview-eyebrow,
  .look-preview-note {
    font-size: 0.72rem;
  }

  .look-preview-title {
    font-size: 1.1rem;
  }

  .compact-analysis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-look-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-operator-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .editor-modal {
    padding: 10px;
  }

  .editor-modal-head {
    padding: 14px;
  }

  .editor-modal-preview,
  .editor-modal-main {
    padding: 14px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgba(9, 13, 17, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  }

  .mobile-nav-button {
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav-button.is-active {
    border-color: rgba(242, 109, 61, 0.36);
    background: rgba(242, 109, 61, 0.14);
  }

  .mobile-nav-label {
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-nav-meta {
    font-size: 0.76rem;
    line-height: 1.2;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100vw - 16px);
    padding-bottom: 116px;
  }

  .hero,
  .control-panel,
  .catalog-panel,
  .analysis-card,
  .mobile-overview-card {
    border-radius: 20px;
  }

  .toggle-row {
    grid-template-columns: 1fr 1fr;
  }

  .operator-summary {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .operator-visual {
    justify-items: start;
  }

  .selected-count {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 8px 12px;
  }

  .selected-count .label {
    margin-top: 0;
  }

  .compact-analysis {
    grid-template-columns: 1fr;
  }

  .mobile-stat-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .mobile-filter-bar {
    align-items: start;
    flex-direction: column;
  }

  .mobile-filter-bar .ghost-button {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .filter-sheet {
    display: block;
  }
}
