:root {
  color-scheme: light;

  /* Neutrals */
  --bg: #eef2f4;
  --bg-tint: #e7eef0;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --surface-3: #eff4f5;
  --ink: #15202b;
  --ink-2: #2c3a45;
  --muted: #5d6a76;
  --muted-2: #7b8893;
  --line: #dde5e8;
  --line-2: #c5d1d6;

  /* Brand (teal) */
  --brand: #0c7d72;
  --brand-d: #075f59;
  --brand-l: #16978a;
  --brand-tint: #e4f4f0;
  --brand-tint-2: #d2ece6;

  /* Accents */
  --navy: #15222f;
  --navy-2: #1d2d3c;
  --blue: #245a8f;
  --blue-soft: #e7f0f8;
  --amber: #b76b00;
  --amber-ink: #7b4b00;
  --amber-soft: #fdf1d6;
  --red: #b3261e;
  --red-soft: #fdeceb;
  --green: #1f8a55;
  --green-soft: #e4f5ec;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 40, 50, 0.06), 0 2px 6px rgba(20, 40, 50, 0.05);
  --shadow: 0 10px 30px rgba(22, 44, 56, 0.10);
  --shadow-lg: 0 22px 60px rgba(22, 44, 56, 0.16);
  --ring: 0 0 0 3px rgba(12, 125, 114, 0.22);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --content: min(1320px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 82% -10%, rgba(12, 125, 114, 0.10), transparent 60%),
    radial-gradient(900px 480px at 8% 0%, rgba(36, 90, 143, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family:
    "Pretendard Variable", "Pretendard",
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, sans-serif;
  font-feature-settings: "tnum" 1;
  line-height: 1.5;
  letter-spacing: -0.003em;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--brand-d);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 10px max(20px, calc((100vw - 1320px) / 2 + 20px));
  border-bottom: 1px solid rgba(197, 209, 214, 0.8);
  background: rgba(247, 250, 251, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--brand-l), var(--brand-d));
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px rgba(12, 125, 114, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Buttons / controls ---------- */
.text-link,
.text-button,
.plain-button,
.segmented-button,
.main-link,
.icon-button {
  min-height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.12s ease;
}

.text-link,
.text-button,
.plain-button,
.segmented-button,
.main-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.main-link {
  border-color: transparent;
  background: linear-gradient(165deg, var(--brand-l), var(--brand-d));
  color: #fff;
  box-shadow: 0 10px 22px rgba(12, 125, 114, 0.26);
}

.main-link::before {
  content: "←";
  font-weight: 900;
}

.icon-button {
  display: grid;
  width: 40px;
  place-items: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

.text-link:hover,
.text-button:hover,
.plain-button:hover,
.segmented-button:hover,
.icon-button:hover {
  border-color: var(--brand-l);
  background: var(--brand-tint);
  color: var(--brand-d);
}

.text-button:active,
.plain-button:active,
.segmented-button:active,
.main-link:active {
  transform: translateY(1px);
}

.main-link:hover {
  box-shadow: 0 12px 26px rgba(7, 95, 89, 0.34);
  color: #fff;
}

.text-link:focus-visible,
.text-button:focus-visible,
.plain-button:focus-visible,
.segmented-button:focus-visible,
.main-link:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible,
.office-bar:focus-visible,
.result-row:focus-visible,
.standard-pill[data-standard]:focus-visible,
.filter-chip:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--brand);
}

.result-row:focus-visible {
  position: relative;
  z-index: 2;
}

main {
  width: 100%;
}

/* ---------- Hero ---------- */
.workspace-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.08fr);
  gap: 32px;
  width: var(--content);
  margin: 0 auto;
  padding: 44px 0 26px;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--brand-tint-2);
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 125, 114, 0.18);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 850;
  word-break: keep-all;
}

h2 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.hero-note {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
}

.credit-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.credit-panel span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}

.credit-panel strong {
  color: var(--brand-d);
  font-weight: 800;
}

/* ---------- Search panel ---------- */
.search-panel {
  position: relative;
  display: grid;
  align-self: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #fbfdfd);
  box-shadow: var(--shadow);
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-l) 55%, #4bb3a4);
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.search-field {
  position: relative;
}

.search-field input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.search-field input {
  min-height: 56px;
  padding: 0 96px 0 48px;
  font-size: 17px;
  font-weight: 700;
}

.search-field input::placeholder {
  color: var(--muted-2);
  font-weight: 600;
}

.search-field::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 18px;
  width: 19px;
  height: 19px;
  background: var(--muted);
  -webkit-mask: var(--icon-search) center / contain no-repeat;
  mask: var(--icon-search) center / contain no-repeat;
}

.search-kbd {
  position: absolute;
  right: 14px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

select {
  min-height: 46px;
  padding: 0 38px 0 13px;
  font-weight: 600;
  appearance: none;
  background-image: var(--icon-chevron);
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
  cursor: pointer;
}

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

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-button {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
}

.segmented-button.is-active {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-tint), var(--brand-tint-2));
  color: var(--brand-d);
  box-shadow: inset 0 0 0 1px rgba(12, 125, 114, 0.35);
}

/* ---------- Notice band ---------- */
.notice-band {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  width: var(--content);
  margin: 0 auto 22px;
  padding: 18px 22px;
  border: 1px solid var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffdf7, #fef8ea);
}

.notice-band::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.notice-band h2 {
  margin-bottom: 5px;
  color: var(--amber-ink);
  font-size: 15px;
}

.notice-band p {
  margin: 0;
  color: #6a5526;
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Content grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  width: var(--content);
  margin: 0 auto;
  padding-bottom: 56px;
}

.insight-panel,
.results-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.insight-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}

.section-heading,
.results-toolbar,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.results-toolbar h2,
.dialog-head h2 {
  margin: 0;
}

.section-heading h2 {
  font-size: 15px;
}

.plain-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

/* ---------- Office facet bars ---------- */
.office-bars {
  display: grid;
  gap: 3px;
}

.office-bar {
  display: grid;
  grid-template-columns: 20px minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.office-bar:hover {
  background: var(--surface-3);
  border-color: var(--line);
}

.office-bar.is-active {
  background: var(--brand-tint);
  border-color: var(--brand-tint-2);
}

.office-bar-rank {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.office-bar.is-active .office-bar-rank {
  color: var(--brand);
}

.office-bar-name {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-bar.is-active .office-bar-name {
  color: var(--brand-d);
}

.office-bar-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.office-bar-track {
  grid-column: 2 / -1;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
}

.office-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-l));
  transition: width 0.3s ease;
}

.office-bar.is-dim {
  opacity: 0.45;
}

.office-bar.is-dim .office-bar-fill {
  background: var(--line-2);
}

/* ---------- Results ---------- */
.results-panel {
  min-width: 0;
  padding: 20px;
}

.results-toolbar {
  flex-wrap: wrap;
}

.results-toolbar h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.results-toolbar h2 #resultCount {
  color: var(--brand-d);
}

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

.active-filters {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.active-filters:not(:empty) {
  margin: 14px 0 2px;
}

.filter-chip,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.filter-chip {
  gap: 6px;
  min-height: 30px;
  padding: 5px 7px 5px 12px;
  border: 1px solid var(--brand-tint-2);
  background: var(--brand-tint);
  color: var(--brand-d);
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--brand-l);
  background: var(--brand-tint-2);
}

.filter-chip::after {
  content: "×";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(7, 95, 89, 0.14);
  color: var(--brand-d);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.filter-chip:hover::after {
  background: rgba(7, 95, 89, 0.26);
}

.badge {
  padding: 4px 9px;
  background: var(--surface-3);
  color: var(--muted);
  width: fit-content;
}

.badge.is-note {
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.badge.is-warning {
  background: var(--red-soft);
  color: var(--red);
}

.result-table {
  margin-top: 14px;
  /* No overflow:hidden — it would trap position:sticky inside this box and
     stop the header from pinning to the viewport. Corners are rounded
     explicitly on the header (top) and last row (bottom) instead. */
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-head,
.result-row {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.85fr) minmax(160px, 1.15fr)
    minmax(160px, 1.1fr) minmax(230px, 1.35fr);
  gap: 0;
}

.result-head {
  position: sticky;
  top: 70px;
  z-index: 5;
  border-bottom: 1px solid var(--line-2);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background: linear-gradient(180deg, #f3f7f8, #eaf1f2);
  color: #36434e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.result-head span:first-child {
  border-top-left-radius: var(--radius);
}

.result-head span:last-child {
  border-top-right-radius: var(--radius);
}

#resultBody .result-row:last-child {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.result-head span,
.result-cell {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.result-head span:last-child,
.result-cell:last-child {
  border-right: 0;
}

.result-row {
  width: 100%;
  scroll-margin-top: 140px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.result-row:nth-child(even) {
  background: var(--surface-2);
}

.result-row:last-child {
  border-bottom: 0;
}

.result-row:hover {
  background: var(--brand-tint);
}

.result-cell {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.result-cell strong {
  font-weight: 750;
  overflow-wrap: anywhere;
}

.cell-office {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 750;
  font-size: 13.5px;
}

.cell-office::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--office-dot, var(--brand));
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.standard-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.standard-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--brand-tint-2);
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-d);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.standard-pill[data-standard] {
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}

.standard-pill[data-standard]:hover {
  border-color: var(--brand);
  background: var(--brand-tint-2);
  transform: translateY(-1px);
}

.standard-pill[data-standard]::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: var(--icon-filter) center / contain no-repeat;
  mask: var(--icon-filter) center / contain no-repeat;
}

mark {
  border-radius: 3px;
  padding: 0 2px;
  background: #ffe89a;
  color: inherit;
  font-weight: 800;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 56px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink-2);
  font-size: 16px;
}

.load-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
}

.load-row .text-button {
  min-width: 180px;
  min-height: 44px;
}

.load-note {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.load-row[hidden],
.is-hidden {
  display: none !important;
}

/* ---------- Detail dialog ---------- */
.detail-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(80vh, 760px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.detail-dialog::backdrop {
  background: rgba(15, 28, 38, 0.5);
  backdrop-filter: blur(2px);
}

.dialog-head {
  position: sticky;
  top: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.detail-body {
  display: grid;
  gap: 16px;
  padding: 20px 22px 24px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.detail-grid dt {
  background: var(--surface-3);
  color: #43505d;
  font-size: 13px;
  font-weight: 850;
}

.detail-grid dd {
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.detail-grid dt:nth-last-of-type(1),
.detail-grid dd:nth-last-of-type(1) {
  border-bottom: 0;
}

.detail-grid dd .standard-stack {
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 10px;
  background: var(--navy);
  color: #c4ccd6;
}

.footer-wrap {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0;
}

.footer-src {
  color: #e9eef4;
  font-size: 13.5px;
  font-weight: 700;
}

.footer-made {
  margin-top: 8px;
  font-size: 13px;
}

.footer-disc {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b96a4;
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- Icons (mask data-uris) ---------- */
:root {
  --icon-search: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>');
  --icon-chevron: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%235d6a76" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  --icon-filter: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5h18M6 12h12M10 19h4"/></svg>');
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .workspace-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  :root {
    --content: min(100vw - 24px, 760px);
  }

  .topbar {
    min-height: 62px;
    padding: 8px 16px;
  }

  .workspace-hero {
    padding-top: 28px;
    gap: 24px;
  }

  h1 {
    font-size: 33px;
  }

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

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-actions {
    justify-content: flex-start;
  }

  .result-head {
    display: none;
  }

  .result-table {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .result-row,
  .result-row:nth-child(even) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .result-row:hover {
    background: var(--surface);
  }

  .result-cell {
    min-height: auto;
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-cell:last-child {
    border-bottom: 0;
  }

  .result-cell::before {
    content: attr(data-label);
    margin-bottom: 3px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;
  }

  .result-cell.cell-office-wrap {
    background: var(--surface-2);
  }
}

@media (max-width: 560px) {
  :root {
    --content: calc(100vw - 20px);
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy span {
    font-size: 11px;
  }

  .search-field input {
    min-height: 52px;
    padding-right: 16px;
    font-size: 16px;
  }

  .search-kbd {
    display: none;
  }

  h1 {
    font-size: 29px;
  }

  .hero-note {
    font-size: 15px;
  }

  .quick-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented-button {
    white-space: normal;
  }

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

  .detail-grid dt {
    border-bottom: 0;
    padding-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  body {
    background: #fff;
  }

  .topbar,
  .search-panel,
  .insight-panel,
  .results-actions,
  .active-filters,
  .load-row,
  .skip-link {
    display: none !important;
  }

  .workspace-hero,
  .notice-band,
  .content-grid {
    width: 100%;
    margin: 0;
    padding: 0 0 14px;
  }

  .content-grid {
    display: block;
  }

  .results-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .result-row {
    break-inside: avoid;
  }
}
