.studio-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 22px; }
.studio-tab { display: flex; gap: 13px; align-items: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--muted); text-align: left; min-height: 84px; }
.studio-tab > .icon { width: 24px; height: 24px; }
.studio-tab > span { display: flex; flex-direction: column; gap: 4px; }
.studio-tab strong { font-size: 15px; font-weight: 600; color: var(--text); }
.studio-tab small { font-size: 12px; }
.studio-tab:hover { border-color: var(--accent-border); }
.studio-tab.active { border-color: var(--accent); background: var(--surface-selected); color: var(--accent); }
.studio-tab.active strong { color: var(--accent); }
.finder-panel { border: 1px solid var(--line); border-radius: 12px; padding: 21px; background: var(--panel); margin-bottom: 22px; }
.finder-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.finder-title h2 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.finder-title p { margin: 0; color: var(--muted); font-size: 13px; }
.finder-scope { display: flex; gap: 8px; margin-bottom: 20px; }
.finder-scope button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--input); color: var(--muted); font-size: 13px; }
.finder-scope button small { font-size: 12px; }
.finder-scope button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-border); }
.finder-controls { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: 18px; align-items: start; }
.finder-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; }
.finder-field input, .finder-field select { min-width: 0; width: 100%; border: 1px solid var(--line-strong); background: var(--input); color: var(--text); border-radius: 7px; padding: 10px 12px; min-height: 44px; }
.finder-money { display: flex; gap: 8px; align-items: center; }
.finder-money input { font: 23px var(--number); letter-spacing: .3px; padding: 7px 12px; }
.finder-money > span { flex: none; color: var(--muted); font-size: 12px; }
.finder-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.finder-presets button { min-height: 32px; padding: 4px 10px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.finder-presets button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-border); }
.finder-reserve { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 13px; background: var(--surface-tint); border-radius: 8px; color: var(--muted); font-size: 12px; }
.finder-reserve p { margin: 0; }
.finder-reserve strong { color: var(--text); font-weight: 500; }
.finder-reserve .btn { flex: none; }
.finder-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 15px; }
.finder-result-heading h2 { margin: 0; font-size: 17px; font-weight: 600; }
.finder-result-heading h2 strong { color: var(--accent); font: 25px var(--number); margin-right: 7px; }
.finder-result-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.finder-result-heading select { min-height: 44px; }
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.match-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.match-cover { position: relative; height: 145px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, var(--accent-guide), transparent 75%), var(--input); border-bottom: 1px solid var(--line); padding: 20px; }
.match-cover > img { width: 100%; height: 100%; object-fit: contain; }
.match-cover > .badge { position: absolute; left: 13px; top: 12px; }
.match-cover .match-preview-label { position: absolute; bottom: 8px; right: 12px; color: var(--muted); font-size: 11px; }
.match-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.match-body h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.match-author { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.match-body .code-freshness { margin-top: 0; }
.match-price { display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; padding: 13px 0 12px; margin-top: 6px; border-bottom: 1px solid var(--soft-line); }
.match-price > div { display: flex; flex-direction: column; gap: 2px; }
.match-price span { font-size: 12px; color: var(--muted); }
.match-price strong { font: 29px var(--number); color: var(--accent); }
.match-price small { font-size: 12px; font-family: var(--font); font-weight: 400; }
.match-price .match-balance { color: var(--accent); font-size: 13px; font-weight: 500; text-align: right; }
.match-price.over .match-balance, .match-price.incomplete .match-balance { color: var(--orange); }
.match-breakdown { font-size: 12px; color: var(--muted); padding-top: 9px; }
.match-breakdown p { margin: 0 0 5px; }
.match-restore { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 8px 0 15px; color: var(--muted); }
.match-restore.complete { color: var(--accent); }
.match-card .match-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.match-actions .btn { flex: 1; min-height: 44px; font-size: 13px; padding-left: 10px; padding-right: 10px; }
.finder-empty { border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--surface-tint); padding: 30px 22px; text-align: center; margin-bottom: 16px; }
.finder-empty > .icon { width: 30px; height: 30px; color: var(--accent); }
.finder-empty h3 { margin: 9px 0 8px; font-size: 18px; }
.finder-empty p { font-size: 13px; color: var(--muted); margin: 0 auto 16px; max-width: 590px; }
.finder-empty-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.match-secondary { border: 1px solid var(--line); border-radius: 10px; padding: 0 17px; background: var(--panel); margin-top: 18px; }
.match-secondary > summary { min-height: 54px; cursor: pointer; padding: 15px 0; font-size: 13px; color: var(--muted); }
.match-secondary[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.match-secondary .match-grid { margin-bottom: 17px; }
.match-secondary .match-cover { height: 115px; }
.finder-data-note { margin-top: 18px; display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.finder-data-note .icon { flex: none; }
.match-review { border: 1px solid var(--line); border-radius: 9px; background: var(--surface-tint); padding: 15px; margin: 15px 0; }
.match-review h3 { font-size: 14px; margin: 0 0 10px; }
.match-review dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 13px; margin: 0; }
.match-review dt { color: var(--muted); }
.match-review dd { margin: 0; text-align: right; font-family: var(--number); }
.match-review dd strong { color: var(--accent); font-size: 20px; }
.match-cost-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 13px 0; }
.match-cost-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 15px; padding: 10px 12px; border-bottom: 1px solid var(--soft-line); font-size: 13px; }
.match-cost-row:last-child { border: 0; }
.match-cost-row span small { display: block; color: var(--muted); font-size: 12px; }
.match-cost-row > strong { align-self: center; text-align: right; font-family: var(--number); font-weight: 500; }
.finder-part-warning { color: var(--orange); background: var(--warning-bg); border: 1px solid var(--warning-line); border-radius: 8px; padding: 12px; font-size: 13px; }
.modal-footer:has(.match-load-status) { flex-wrap: wrap; }
.match-load-status { flex-basis: 100%; font-size: 12px; color: var(--orange); margin: 0 0 3px; }
.match-load-status[hidden] { display: none; }
.custom-origin-note { font-size: 12px; color: var(--muted); margin: -8px 0 17px; }
.custom-origin-note button { color: var(--accent); padding: 0; background: none; text-decoration: underline; }

@media (min-width: 1550px) { .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .finder-controls { grid-template-columns: 1fr 1fr; } .finder-controls > :last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .app-shell:not(.has-mobile-budget) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .studio-tabs { gap: 8px; margin-bottom: 16px; }
  .studio-tab { padding: 12px; gap: 7px; min-height: 92px; align-items: flex-start; flex-direction: column; }
  .studio-tab > .icon { width: 18px; height: 18px; }
  .studio-tab strong { font-size: 14px; }
  .studio-tab small { font-size: 11px; line-height: 1.5; }
  .finder-panel { padding: 15px; margin-bottom: 18px; }
  .finder-title { flex-direction: column; gap: 9px; margin-bottom: 14px; }
  .finder-title h2 { font-size: 17px; }
  .finder-title p { font-size: 12px; }
  .finder-scope { gap: 7px; }
  .finder-scope button { flex: 1; flex-direction: column; align-items: flex-start; padding: 10px; gap: 3px; font-size: 13px; }
  .finder-scope button small { font-size: 11px; }
  .finder-controls { grid-template-columns: 1fr; gap: 15px; }
  .finder-controls > :last-child { grid-column: auto; }
  .finder-presets button { min-height: 44px; flex: 1; }
  .finder-reserve { align-items: flex-start; flex-direction: column; gap: 10px; }
  .finder-result-heading { flex-wrap: wrap; gap: 10px; }
  .finder-result-heading h2 { font-size: 16px; }
  .finder-result-heading select { font-size: 12px; }
  .match-grid { grid-template-columns: 1fr; gap: 14px; }
  .match-body { padding: 16px; }
  .match-cover { height: 145px; }
  .match-price strong { font-size: 27px; }
  .match-card .match-actions { gap: 7px; }
  .match-actions .btn { font-size: 12px; }
  .finder-empty { padding: 24px 15px; }
  .finder-empty .btn { white-space: normal; }
  .match-secondary { padding: 0 12px; }
  .match-cost-row { font-size: 12px; gap: 6px 10px; }
  .custom-origin-note { font-size: 12px; }
}
