:root {
  --paper: #f4f1e8;
  --paper-deep: #e8e2d5;
  --panel: rgba(255, 253, 247, 0.88);
  --ink: #122925;
  --ink-soft: #52625e;
  --line: rgba(18, 41, 37, 0.13);
  --line-strong: rgba(18, 41, 37, 0.25);
  --acid: #bee24d;
  --acid-soft: #e5f2b5;
  --orange: #ef7048;
  --orange-soft: #fde2d7;
  --blue: #287e82;
  --blue-soft: #d9efec;
  --red: #c94b39;
  --shadow: 0 24px 80px rgba(35, 49, 45, 0.13);
  --display: "Bahnschrift", "DIN Alternate", sans-serif;
  --body: "Aptos", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(rgba(18, 41, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 41, 37, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  overflow-x: hidden;
}

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

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  width: 540px;
  height: 540px;
  left: -260px;
  top: 210px;
  background: radial-gradient(circle, rgba(190, 226, 77, 0.29), transparent 68%);
}

.ambient-two {
  width: 660px;
  height: 660px;
  right: -300px;
  top: -220px;
  background: radial-gradient(circle, rgba(239, 112, 72, 0.17), transparent 69%);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1780px, 100%);
  margin: 0 auto;
  padding: 0 28px 36px;
}

.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--acid);
  transform: rotate(-3deg);
}

.brand-mark svg { width: 26px; fill: currentColor; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1rem/1 var(--display); letter-spacing: 0.15em; }
.brand small { margin-top: 4px; font-size: 0.71rem; color: var(--ink-soft); letter-spacing: 0.07em; }

.snapshot-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 6px;
}

.snapshot-state strong, .snapshot-state small { display: block; }
.snapshot-state strong { font: 650 0.78rem/1.15 var(--display); }
.snapshot-state small { margin-top: 3px; color: var(--ink-soft); font-size: 0.67rem; }

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #73a700;
  box-shadow: 0 0 0 5px rgba(115, 167, 0, 0.12);
}
.pulse-dot.loading { background: var(--orange); box-shadow: 0 0 0 5px rgba(239, 112, 72, 0.12); animation: statusPulse 1.4s ease-in-out infinite; }
.pulse-dot.error { background: var(--red); box-shadow: 0 0 0 5px rgba(201, 75, 57, 0.12); }

.export-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 13px 0 15px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 41, 37, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.export-trigger:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 41, 37, 0.2); }
.export-trigger svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 20px;
  padding: 1px 6px;
  border: 1px solid rgba(18, 41, 37, 0.18);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font: 650 0.66rem/1 var(--display);
}

.export-trigger kbd { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.75); }

.search-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(620px, 1.55fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  padding: 58px 0 38px;
}

.stage-copy { min-width: 0; animation: reveal 460ms ease both; }
.eyebrow, .section-label {
  color: var(--ink-soft);
  font: 700 0.69rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow b {
  display: inline-block;
  margin-left: 7px;
  padding: 5px 7px 4px;
  border-radius: 5px;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

h1 {
  margin: 14px 0 12px;
  font: 760 clamp(2.6rem, 4.3vw, 5.2rem)/0.89 var(--display);
  letter-spacing: -0.055em;
}

h1 em { color: var(--orange); font-style: normal; }
.stage-copy p { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }

.search-console {
  min-width: 0;
  animation: reveal 520ms 70ms ease both;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 16px 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 254, 249, 0.94);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 28px 90px rgba(35, 65, 59, 0.18), 0 0 0 4px rgba(40, 126, 130, 0.09);
  transform: translateY(-1px);
}

.search-box > svg { width: 25px; flex: 0 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 610 clamp(1rem, 1.35vw, 1.28rem)/1 var(--display);
}
.search-box input::placeholder { color: #8a938f; font-weight: 470; }

.clear-search {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.clear-search.visible { opacity: 1; pointer-events: auto; }
.clear-search:hover { transform: scale(1.08); }
.search-box > kbd { margin-left: 10px; }

.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.6);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; }
.chip-dot.green { background: #83ac14; }
.chip-dot.orange { background: var(--orange); }
.chip-dot.red { background: var(--red); }
.chip-dot.blue { background: var(--blue); }

.search-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; color: var(--ink-soft); font-size: 0.71rem; }
.search-foot kbd { min-width: 19px; min-height: 18px; padding: 0 4px; font-size: 0.59rem; }

.workspace {
  display: grid;
  grid-template-columns: minmax(670px, 1.55fr) minmax(390px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.results-panel, .detail-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(39, 52, 48, 0.08);
  backdrop-filter: blur(16px);
  animation: reveal 520ms 130ms ease both;
}

.results-panel { min-height: 560px; overflow: hidden; }
.detail-panel { position: sticky; top: 18px; min-height: 560px; max-height: calc(100vh - 36px); padding: 24px; overflow-y: auto; scrollbar-color: rgba(18, 41, 37, 0.24) transparent; animation-delay: 190ms; }

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 22px 24px 16px;
}
.panel-heading h2, .drawer-head h2 { margin: 6px 0 0; font: 730 1.43rem/1 var(--display); letter-spacing: -0.03em; }
.view-tools { display: flex; align-items: center; gap: 10px; }
.view-tools span { color: var(--ink-soft); font: 650 0.67rem/1 var(--display); }
.view-tools button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.result-columns, .result-row {
  display: grid;
  grid-template-columns: minmax(245px, 1.65fr) minmax(160px, 0.95fr) 70px 76px 76px;
  gap: 14px;
  align-items: center;
}

.result-columns {
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 41, 37, 0.035);
  color: var(--ink-soft);
  font: 700 0.62rem/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.numeric { text-align: right; }
.result-list { max-height: min(68vh, 880px); padding: 4px 0 8px; overflow-y: auto; scrollbar-color: rgba(18, 41, 37, 0.24) transparent; }
.result-row {
  position: relative;
  width: 100%;
  min-height: 69px;
  padding: 10px 24px;
  border: 0;
  border-bottom: 1px solid rgba(18, 41, 37, 0.075);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.result-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 4px;
  border-radius: 0 5px 5px 0;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform 130ms ease;
}
.result-row:hover { background: rgba(190, 226, 77, 0.08); }
.result-row.selected { background: rgba(190, 226, 77, 0.17); }
.result-row.selected::before { transform: scaleY(1); }
.result-row:last-child { border-bottom: 0; }

.article-main, .identifier-stack { min-width: 0; }
.article-code { font: 735 0.9rem/1.15 var(--display); letter-spacing: 0.025em; }
.article-name, .identifier-stack small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identifier-stack strong { display: block; overflow: hidden; font: 700 0.77rem/1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.identifier-stack small { margin-top: 5px; font-size: 0.66rem; }
.stock-cell, .price-cell { text-align: right; font: 680 0.78rem/1 var(--display); }
.stock-cell strong { display: inline-block; min-width: 35px; padding: 5px 7px; border-radius: 7px; background: var(--acid-soft); text-align: center; }
.stock-cell strong.zero { background: #eee8df; color: #867c70; }
.price-cell small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 0.57rem; }
mark { padding: 0 2px; border-radius: 3px; background: #ffe283; color: inherit; }

.empty-state { padding: 75px 20px; text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--paper-deep); font: 750 1.2rem/1 var(--display); transform: rotate(-5deg); }
.empty-state h3 { margin: 17px 0 7px; font: 720 1.16rem/1 var(--display); }
.empty-state p { margin: 0 auto 18px; max-width: 340px; color: var(--ink-soft); font-size: 0.82rem; }
.empty-state button { padding: 9px 13px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.empty-state.compact { padding: 90px 20px; }

.loading-row, .detail-loading {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 360px;
  padding: 40px;
  color: var(--ink-soft);
  text-align: center;
}
.loading-row span, .detail-loading > span {
  width: 28px;
  height: 28px;
  border: 3px solid var(--paper-deep);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.detail-loading h3 { margin: 4px 0 0; color: var(--ink); font: 720 1rem/1 var(--display); }
.detail-loading p { max-width: 330px; margin: 0; font-size: .76rem; line-height: 1.5; }

.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.detail-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; background: var(--blue-soft); color: #165e61; font: 720 0.61rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.detail-status.review { background: var(--orange-soft); color: #9f351c; }
.detail-status.confirmed { background: var(--acid-soft); color: #4e6900; }
.detail-status.outside { background: #e7e4dc; color: #69635a; }
.confidence { color: var(--ink-soft); font: 680 0.68rem/1 var(--display); }

.detail-title { margin: 18px 0 4px; font: 760 clamp(1.55rem, 2vw, 2.15rem)/1 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.detail-description { margin: 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }

.stock-price-band {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--line);
}
.metric-box { min-width: 0; padding: 13px 11px; background: rgba(255, 253, 247, 0.9); }
.metric-box.primary { background: var(--acid-soft); }
.metric-box span, .metric-box strong { display: block; }
.metric-box span { color: var(--ink-soft); font: 700 0.57rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.metric-box strong { margin-top: 7px; font: 730 0.93rem/1 var(--display); white-space: nowrap; }

.detail-section { padding: 17px 0; border-top: 1px solid var(--line); }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.detail-section h3 { margin: 0; font: 720 0.76rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 18px; }
.data-field { min-width: 0; }
.data-field label, .data-field span { display: block; }
.data-field label { margin-bottom: 4px; color: var(--ink-soft); font-size: 0.62rem; }
.data-field span { overflow: hidden; font: 680 0.76rem/1.3 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.copy-button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink-soft); font-size: 0.61rem; font-weight: 700; cursor: pointer; }
.copy-button:hover { border-color: var(--ink); color: var(--ink); }
.section-state { color: var(--ink-soft); font: 680 .61rem/1 var(--display); }
.section-state.loading::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--orange); animation: statusPulse 1.4s ease-in-out infinite; }
.source-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.source-tag { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.55); color: var(--ink-soft); font-size: 0.62rem; font-weight: 700; }
.source-empty { margin: 12px 0 0; color: var(--ink-soft); font-size: .7rem; }

.observation-list { display: grid; gap: 7px; margin-top: 13px; }
.observation-row { padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .5); }
.observation-row header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.observation-row header strong { font: 720 .68rem/1 var(--display); }
.observation-status { padding: 3px 5px; border-radius: 4px; background: var(--blue-soft); color: #165e61; font: 700 .52rem/1 var(--display); text-transform: uppercase; }
.observation-status.confirmed { background: var(--acid-soft); color: #4e6900; }
.observation-row p { margin: 7px 0; color: var(--ink); font-size: .68rem; line-height: 1.35; }
.observation-row > div { display: grid; grid-template-columns: 1fr 1fr .65fr; gap: 7px; color: var(--ink-soft); font: 650 .59rem/1.2 var(--display); }
.observation-row > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.observation-row > small { display: block; margin-top: 7px; color: #7b837f; font-size: .55rem; line-height: 1.3; }

.raw-details { margin-top: 5px; border-top: 1px solid var(--line); }
.raw-details summary { padding: 16px 0; color: var(--ink-soft); font: 700 .67rem/1 var(--display); cursor: pointer; }
.raw-block { margin-bottom: 15px; }
.raw-block h4 { margin: 0 0 8px; font: 720 .68rem/1 var(--display); text-transform: uppercase; }
.raw-row { display: grid; grid-template-columns: .9fr 1.4fr .8fr; gap: 7px; padding: 7px 0; border-bottom: 1px solid rgba(18, 41, 37, .07); font-size: .59rem; }
.raw-row strong, .raw-row span, .raw-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raw-row small { color: var(--ink-soft); text-align: right; }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; }
.primary-action, .secondary-action { min-height: 41px; border-radius: 10px; font-weight: 750; cursor: pointer; }
.primary-action { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.secondary-action { padding: 0 13px; border: 1px solid var(--line-strong); background: transparent; }

.drawer-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(18, 31, 28, 0.36); backdrop-filter: blur(3px); }
.export-drawer {
  position: fixed;
  z-index: 21;
  top: 0;
  right: 0;
  width: min(580px, 100%);
  height: 100vh;
  padding: 28px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #f7f4eb;
  box-shadow: -24px 0 70px rgba(20, 36, 32, 0.21);
  transform: translateX(104%);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}
.export-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head p { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.77rem; line-height: 1.45; }
.icon-button { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: transparent; font-size: 1.45rem; cursor: pointer; }

.selection-export { margin: 20px 0; padding: 17px; border-radius: 14px; background: var(--ink); color: #fff; }
.selection-export small, .selection-export strong { display: block; }
.selection-export small { color: rgba(255,255,255,.6); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.selection-export strong { margin-top: 6px; font: 720 1rem/1.2 var(--display); }
.selection-export button { width: 100%; margin-top: 13px; padding: 10px; border: 0; border-radius: 9px; background: var(--acid); color: var(--ink); font-weight: 760; cursor: pointer; }
.drawer-section-head { display: flex; justify-content: space-between; align-items: end; margin: 25px 0 12px; }
.drawer-section-head h3 { margin: 0; font: 740 .9rem/1 var(--display); }
.drawer-section-head span { color: var(--ink-soft); font-size: .65rem; }
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-card { position: relative; min-height: 146px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.63); text-align: left; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
.export-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: #fff; }
.export-card .export-kind { display: inline-block; padding: 4px 6px; border-radius: 5px; background: var(--blue-soft); color: #175f62; font: 700 .56rem/1 var(--display); text-transform: uppercase; letter-spacing: .07em; }
.export-card h4 { margin: 13px 0 6px; font: 720 .83rem/1.15 var(--display); }
.export-card p { margin: 0; color: var(--ink-soft); font-size: .66rem; line-height: 1.4; }
.export-card .arrow { position: absolute; right: 13px; bottom: 12px; font-size: 1.1rem; }
.export-card.future { border-style: dashed; background: transparent; }
.export-card.source-card { cursor: default; }
.export-card.source-card:hover { transform: none; border-color: var(--line); background: rgba(255,255,255,.63); }
.source-readonly { position: absolute; right: 12px; bottom: 11px; color: var(--ink-soft); font: 700 .55rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.source-error { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--red); font-size: .72rem; }
.drawer-note { margin-top: 20px; padding: 15px; border-left: 4px solid var(--orange); background: var(--orange-soft); }
.drawer-note strong { font: 720 .75rem/1 var(--display); }
.drawer-note p { margin: 5px 0 0; color: #7d4538; font-size: .68rem; line-height: 1.45; }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 28px);
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 44px rgba(18, 41, 37, 0.28);
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes statusPulse { 50% { opacity: .45; transform: scale(.82); } }

@media (max-width: 1180px) {
  .search-stage { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .stage-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
  .stage-copy .eyebrow { grid-column: 1 / -1; }
  h1 { margin: 0; }
  .workspace { grid-template-columns: 1fr; }
  .detail-panel { position: static; min-height: 0; max-height: none; overflow: visible; }
  .result-list { max-height: 70vh; }
}

@media (max-width: 820px) {
  .app-shell { padding: 0 14px 24px; }
  .topbar { height: 68px; }
  .snapshot-state { display: none; }
  .export-trigger { padding: 0 11px; }
  .export-trigger kbd { display: none; }
  .search-stage { padding: 36px 0 26px; }
  .stage-copy { display: block; }
  .stage-copy p { margin-top: 11px; }
  .search-box { height: 62px; padding-left: 16px; }
  .search-box > kbd { display: none; }
  .search-foot span:last-child { display: none; }
  .result-columns { display: none; }
  .result-row { grid-template-columns: minmax(180px, 1.5fr) 78px 74px; gap: 9px; padding: 12px 16px; }
  .identifier-stack { display: none; }
  .stock-cell { grid-column: 2; }
  .price-cell:last-child { display: none; }
  .panel-heading { padding: 18px 16px 14px; }
  .detail-panel { padding: 18px; }
  .export-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .export-trigger { font-size: 0; }
  .export-trigger svg { width: 21px; }
  h1 { font-size: 2.7rem; }
  .search-box input { font-size: 0.9rem; }
  .quick-filters { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-chip { flex: 0 0 auto; }
  .view-tools span { display: none; }
  .result-row { grid-template-columns: 1fr 62px; }
  .stock-cell { grid-column: 2; }
  .price-cell { display: none; }
  .stock-price-band { grid-template-columns: 1fr 1fr; }
  .metric-box:nth-child(3) { border-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .observation-row > div { grid-template-columns: 1fr; }
  .raw-row { grid-template-columns: 1fr; }
  .raw-row small { text-align: left; }
  .export-drawer { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
