/* 똑디 퍼블리싱 가이드의 Light 토큰과 데모 전용 색상 */
:root {
  --surface: var(--canvas);
  --subtle: var(--surface-subtle);
  --paper: #f8f8f7;
  --muted: var(--ink-muted);
  --faint: #626a74;
  --charcoal: var(--ink);
  --gold: #e7d28f;
  --hero-paper: #f1f2f6;
  --studio-width: 1280px;
  --studio-workspace: #f1f3f6;
  --studio-preview: #e4e8ef;
  --studio-panel-radius: 14px;
  --gutter: clamp(12px, 1.6vw, 24px);
  --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%234b515a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--studio-workspace);
  color: var(--ink);
  font-family: "Pretendard Variable", "Apple SD Gothic Neo", var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 8px 14px; background: #fff; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ----- 버튼·입력 ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control); padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer;
  background: var(--surface);
}
.btn:disabled { cursor: not-allowed; background: var(--subtle); color: var(--ink-disabled); border-color: var(--line); }
.btn-primary { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.btn-primary:hover:not(:disabled) { background: var(--yellow-soft); }
.btn-outline { background: #fff; border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { background: var(--subtle); }
.btn-text { background: transparent; color: var(--muted); }
.btn-text:hover:not(:disabled) { background: var(--subtle); }
.btn-text:disabled { background: transparent; border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.danger { color: var(--danger); }
.input {
  display: block; width: 100%; min-width: 0; min-height: var(--control);
  padding: 8px 12px; border: 1px solid #dce1e8; border-radius: var(--radius-sm);
  background: var(--surface); font-size: 14px; line-height: 1.5;
}
textarea.input { resize: vertical; min-height: 84px; }
select.input:not([multiple]) {
  appearance: none; -webkit-appearance: none;
  padding-inline-end: 36px;
  background-image: var(--chevron-down);
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
  cursor: pointer;
}
@media (forced-colors: active) {
  select.input:not([multiple]) { appearance: auto; background-image: none; }
}
.field { display: grid; gap: 5px; min-width: 0; margin-bottom: 14px; border: 0; padding: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field em, .field legend em { margin-left: 6px; color: #866400; font-size: 12px; font-style: normal; }
.field small { color: var(--faint); font-size: 12px; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.field-inline .input { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; cursor: pointer; }
.check input, .switch input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.check-lg { margin-top: 6px; font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; background: var(--subtle); color: var(--muted); font-size: 12px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { margin-top: 8px; color: var(--faint); font-size: 12px; }
.panel { padding: clamp(16px, 2.2vw, 24px); border: 1px solid var(--line); border-radius: var(--studio-panel-radius); background: var(--surface); }
.sub { margin: 18px 0 8px; font-size: 15px; }
.sub:first-child { margin-top: 0; }
.empty { padding: 32px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; color: var(--muted); text-align: center; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-actions.center { justify-content: center; }
.plain { margin: 0; padding-left: 18px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.toast:not(:empty) {
  position: fixed; z-index: 300; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 8px; background: var(--charcoal); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px #0003;
}

/* ----- 대화상자 ----- */
.dlg { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 16px 48px #0003; overscroll-behavior: contain; }
.dlg-wide { width: min(920px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(9, 11, 14, .45); }
html:has(.dlg[open]) { overflow: hidden; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.dlg-head h2 { font-size: 21px; letter-spacing: -.03em; }
.dlg-close { flex: 0 0 40px; height: 40px; border: 0; border-radius: 6px; background: var(--subtle); font-size: 22px; cursor: pointer; }
.dlg p { font-size: 14px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.check-list { margin: 12px 0 0; padding: 14px 16px; list-style: none; border-radius: var(--radius-md); background: var(--subtle); font-size: 14px; }
.check-list li::before { content: "✓ "; font-weight: 700; }
.error-box { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--danger-soft); color: #9c0f22; font-size: 14px; }
.error-box ul { margin: 4px 0 0; padding-left: 18px; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ed-col .field:last-child { margin-bottom: 0; }
.img-slot { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.img-actions { display: grid; gap: 6px; justify-items: start; }
.img-actions label { cursor: pointer; }
.imp-sum { margin: 12px 0; padding: 0; list-style: none; }
.imp-errs { font-size: 13px; }
.imp-errs ul { margin: 6px 0 0; padding-left: 18px; max-height: 220px; overflow: auto; }

/* ----- 표 ----- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { padding: 8px 12px; background: var(--subtle); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); font-size: 12px; }
.tbl .col-img { width: 72px; }
.tbl .col-act { white-space: nowrap; text-align: right; }
.tbl tr.is-hidden td { color: var(--faint); background: #fcfcfd; }
.tbl-opts td { vertical-align: middle; }
.tbl-opts .input { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.rule { display: inline-block; padding-top: 7px; font-size: 13px; line-height: 1.6; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.toolbar-left { display: flex; flex-wrap: wrap; gap: 6px; }
.search { position: relative; width: min(260px, 100%); }
.search .input { padding-inline-end: 38px; }
.search::before, .search::after { content: ''; position: absolute; color: var(--muted); pointer-events: none; }
.search::before { top: calc(50% - 7px); right: 16px; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.search::after { top: calc(50% + 3px); right: 12px; width: 6px; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.admin-list-panel, .candidate-catalog {
  min-width: 0; border: 1px solid var(--line);
  border-radius: var(--studio-panel-radius); background: var(--surface);
}
.admin-list-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 16px 20px;
}
.admin-list-filters .search, .admin-list-filters .inq-search { flex: 1 1 220px; max-width: none; }
.admin-list-filters .search .input { padding-inline: 36px 12px; }
.admin-list-filters .search::before { inset-inline: 13px auto; }
.admin-list-filters .search::after { inset-inline: 21px auto; }
.admin-list-summary {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding: 14px 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.admin-list-summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.admin-list-panel > .empty { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.admin-table-scroll { overflow-x: auto; }
.product-search-group {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  flex: 1 1 360px; min-width: 0;
}
.product-search-group .product-search-by { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.product-search-group .search { width: 100%; min-width: 0; }
.product-search-group .search .input { border-inline-start: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.product-search-group :focus-visible { position: relative; z-index: 1; }
.product-filter-toggle[aria-expanded="true"] { background: var(--subtle); }
.product-filter-icon { display: inline-flex; flex: none; }
.product-filter-icon svg { width: 16px; height: 16px; }
.product-list-toolbar:has(+ .product-filter-fields:not([hidden])) { padding-block-end: 8px; }
.product-filter-fields {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 6px 12px; margin: 0 20px 12px; padding: 6px 10px;
  border-radius: var(--radius-md); background: var(--studio-workspace);
}
.product-filter-title { font-size: 13px; font-weight: 700; white-space: nowrap; }
.product-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
select.input.product-filter-chip {
  width: auto; max-width: 100%; min-height: 32px; padding: 4px 28px 4px 11px;
  border: 0; border-radius: 999px; background-color: var(--neutral-soft); background-position: right 9px center;
  background-size: 14px 14px; font-size: 13px;
}
.input.product-filter-chip.is-active { background-color: var(--yellow-soft); }
.product-filter-actions { display: flex; align-items: center; gap: 2px; justify-self: end; }
.product-filter-actions .btn { min-height: 32px; padding: 2px 6px; white-space: nowrap; font-size: 13px; }
.product-filter-actions .btn:disabled { border-color: transparent; background: transparent; }
.product-filter-actions .product-filter-close { width: 32px; padding: 0; font-size: 19px; line-height: 1; }
.product-selection-count { margin: 0; padding: 6px 20px; color: var(--muted); font-size: 13px; background: var(--yellow-soft); }
.product-selection-count:empty { padding: 0; }
.product-list-footer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 10px 14px; padding: 12px 20px; border-top: 1px solid var(--line);
}
.product-list-range { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.product-pagination { display: flex; justify-content: center; gap: 4px; }
.product-pagination .page-button { width: 36px; min-height: 36px; padding: 0; }
.product-pagination .page-button:hover:not(:disabled, [aria-current]) { background: var(--subtle); }
.product-pagination .page-button[aria-current] { background: var(--ink); color: var(--surface); }
.product-pagination .page-button:disabled { border-color: transparent; background: none; }
.product-page-size { display: flex; justify-self: end; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.product-page-size .input { width: 90px; }
.tbl-products tbody td { height: 60px; }
.tbl-products .product-name { min-width: 180px; }
.product-name > div { display: flex; align-items: center; gap: 10px; }
.tbl-products .product-code { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-products .product-pick-cell { width: 54px; padding: 0 4px; text-align: center; }
.product-pick-target { display: inline-grid; width: 40px; height: 40px; place-items: center; cursor: pointer; }
.product-pick-target .admin-check { width: 17px; height: 17px; margin: 0; accent-color: var(--yellow); cursor: pointer; }
.tbl-products tr:has([data-product-pick]:checked) { background: var(--yellow-soft); }
.tbl-products thead th:last-child { width: 132px; padding-inline-end: 46px; text-align: right; }
.tbl-products .col-act .btn, .inq-detail-actions .btn-row-delete { min-height: 28px; padding: 0 8px; font-size: 12px; }
.tbl-products .btn-row-delete { margin-inline-start: 4px; }
.btn-row-delete { color: var(--ink-muted); }
.product-visibility-cell { width: 112px; }
.input.product-visibility {
  width: 88px; min-height: 36px; padding-block: 4px; border-color: transparent;
  border-radius: 999px; background-color: var(--neutral-soft); color: var(--muted); font-size: 13px; font-weight: 650;
}
.product-visibility.is-public { background-color: var(--success-soft); color: #176735; }
.csv-menu { position: relative; flex: none; }
.csv-menu summary { list-style: none; }
.csv-menu summary::-webkit-details-marker { display: none; }
.csv-menu summary::after, .q-editor > summary::after, .inq-chevron {
  content: ''; flex: 0 0 16px; width: 16px; height: 16px;
  background: var(--chevron-down) no-repeat center / 16px 16px;
}
.csv-menu[open] summary::after, .q-editor[open] > summary::after, .inq-row[open] .inq-chevron { transform: rotate(180deg); }
.csv-menu-actions {
  position: absolute; z-index: 2; inset-block-start: calc(100% + 4px); inset-inline-end: 0;
  display: grid; width: max-content; padding: 4px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 4px 12px #161a1c12;
}
.csv-menu-actions .btn { justify-content: flex-start; color: var(--ink); }

/* ----- 질문 설정 ----- */
.q-card { margin-bottom: 12px; padding: 12px 20px 0; border: 1px solid var(--line); border-radius: var(--studio-panel-radius); background: var(--surface); }
.q-card.is-hidden { background: var(--paper); }
.q-card.is-hidden .q-fields, .q-card.is-hidden .tbl-wrap { opacity: .55; }
.q-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.q-card-head h2 { font-size: 16px; font-weight: 700; }
.q-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--subtle); font-size: 13px; font-weight: 700; }
.q-card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.q-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.q-card .admin-check { width: 18px; height: 18px; margin: 0; accent-color: var(--yellow); cursor: pointer; }
.tbl-opts .q-option-visibility { width: 76px; text-align: center; vertical-align: middle; }
.q-check-target { display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
.q-editor { border-top: 1px solid var(--line); }
.q-editor[open] { padding-bottom: 16px; }
.q-editor > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600;
}
.q-editor > summary::-webkit-details-marker { display: none; }
.q-editor > summary span { margin-inline-start: auto; font-weight: 400; }

/* ----- 받은 문의 ----- */
.admin-status-tabs { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-inline: 20px; border-bottom: 1px solid var(--line); }
.admin-status-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: 14px; font-weight: 650; cursor: pointer; }
.admin-status-filter:hover, .admin-status-filter[aria-pressed="true"] { color: var(--ink); }
.admin-status-filter[aria-pressed="true"] { border-bottom-color: var(--yellow); }
.admin-status-count { min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-status-filter[aria-pressed="true"] .admin-status-count { background: var(--yellow-soft); }
.inq-search { flex: 1 1 205px; max-width: 265px; }
.inq-period { flex: 0 0 160px; width: 160px; }
.inq-count { color: var(--muted); font-size: 13px; }
.inq-list { border-top: 1px solid var(--line); }
.inq-list-head, .inq-row-summary {
  display: grid; grid-template-columns: 85px minmax(0, 1fr) 88px 145px 16px;
  align-items: center; gap: 9px 13px; padding-inline: 20px;
}
.inq-list-head { padding-block: 8px; background: var(--subtle); color: var(--muted); font-size: 12px; }
.inq-list > .empty { border: 0; }
.inq-row + .inq-row { border-top: 1px solid var(--line); }
.inq-row-summary { min-height: 58px; padding-block: 8px; list-style: none; cursor: pointer; }
.inq-row-summary::-webkit-details-marker { display: none; }
.inq-row-summary:hover, .inq-row[open] > .inq-row-summary { background: #f8f9fb; }
.inq-row-summary:focus-visible { outline-offset: -3px; }
.inq-status { justify-self: start; padding: 2px 7px; border-radius: 999px; background: var(--neutral-soft); color: var(--neutral); font-size: 12px; font-weight: 650; white-space: nowrap; }
.inq-status-new { background: var(--yellow-soft); color: var(--ink); }
.inq-status-in_progress { background: var(--info-soft); color: #084fa8; }
.inq-status-contracted { background: var(--success-soft); color: #176735; }
.inq-row-title { min-width: 0; font-size: 14px; }
.inq-customer { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; }
.inq-customer strong { font-weight: 650; }
.inq-subject { display: block; }
.inq-customer + .inq-subject { margin-top: 2px; color: var(--muted); font-size: 13px; }
.inq-kind, .inq-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.inq-chevron { justify-self: end; }
.inq-row-detail { border-top: 1px solid var(--line); background: var(--studio-workspace); }
.inq-detail-content { display: grid; gap: 12px; padding: 16px 20px; }
.inq-reference { color: var(--muted); font-size: 12px; }
.inq-reference strong { margin-inline-start: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.inq-request-card, .inq-detail-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.inq-contact-values {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 8px 16px; margin: 0;
}
.inq-contact-values dt { color: var(--muted); font-size: 12px; }
.inq-contact-values dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.inq-contact-values a { text-underline-offset: 2px; }
.inq-request-card { border-inline-start: 3px solid var(--yellow); }
.inq-request-card h2, .inq-detail-card h2, .inq-check-card h3 {
  margin: 0 0 8px; font-size: 14px; line-height: 1.4; font-weight: 700;
}
.inq-request { white-space: pre-wrap; font-size: 14px; }
.inq-card-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 12px; }
.inq-detail-card:only-child { grid-column: 1 / -1; }
.inq-conditions { display: grid; margin: 0; }
.inq-conditions > div {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.inq-conditions > div:last-child { padding-bottom: 0; }
.inq-conditions dt { color: var(--muted); }
.inq-conditions dd { min-width: 0; margin: 0; font-weight: 650; }
.inq-item-list, .inq-check-list { list-style: none; padding: 0; margin: 0; }
.inq-item-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.inq-item-list li:last-child { padding-bottom: 0; }
.inq-item-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.inq-item-heading strong { font-size: 14px; }
.inq-item-list .small { margin-top: 2px; }
.inq-check-card { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--subtle); }
.inq-check-list { display: grid; gap: 10px; font-size: 13px; }
.inq-check-list li { display: grid; gap: 3px; }
.inq-check-origin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.inq-check-list .tag { flex: none; background: var(--surface); }
.inq-memo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.inq-memo-head h2 { margin: 0; }
.inq-memo-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.inq-detail-actions {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 7px 15px; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--surface);
}

.settings-layout { display: grid; gap: 16px; max-width: 1040px; }
.settings-panel-title { margin-bottom: 14px; font-size: 18px; font-weight: 700; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.settings-fields .field { margin: 0; align-content: start; }
.settings-fields .settings-copy { grid-column: 1 / -1; }
.danger-zone { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.empty-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.empty-box.center { border-color: var(--line); text-align: center; display: grid; gap: 10px; justify-items: center; padding: 40px 24px; }
.empty-box h4 { font-size: 18px; }
.empty-box > p { margin-top: 6px; color: var(--muted); }

/* 견적 문의 */
.inq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.sent { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-align: center; }
.sent p { max-width: 52ch; color: var(--muted); }
.sent-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); font-size: 26px; font-weight: 700; }


/* 체험 헤더와 관리자 메뉴 */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 40px; padding: 8px clamp(14px, 2vw, 24px); background: #1c1e21; color: #fff; font-size: 13px; }
.demo-banner p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.demo-banner strong { padding: 1px 8px; border-radius: var(--radius-xs); background: var(--yellow); color: var(--ink); font-size: 12px; }
.demo-banner a { margin-inline-start: auto; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.demo-toolbar {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.demo-title { font-size: clamp(14px, 2vw, 24px); font-weight: 750; line-height: 1.25; letter-spacing: -.035em; }
.app-shell { width: min(var(--studio-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.mode-switch { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--subtle); }
.mode-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.mode-switch a:hover { color: var(--ink); }
.mode-switch a[aria-current] { background: var(--ink); color: var(--surface); }
.app-shell { margin-top: var(--gutter); min-height: calc(100svh - 225px); }
.app-shell.is-admin {
  display: grid; grid-template-columns: 204px minmax(0, 1fr);
  width: 100%; margin-top: 0; min-height: calc(100svh - 100px);
  background: var(--surface);
}
.is-admin .app-main { padding: var(--gutter) var(--gutter) 44px; background: var(--studio-workspace); }
.is-admin [data-view], .is-admin .view-head { max-width: var(--studio-width); margin-inline: auto; }
.app-main { min-width: 0; padding-bottom: 44px; }
.app-main:focus { outline: none; }
.side-nav { min-width: 0; padding: 16px; background: var(--surface); }
.side-menu { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.side-link { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; }
.side-link:hover, .side-link[aria-current] { background: var(--subtle); color: var(--ink); }
.side-link[aria-current] { font-weight: 750; }
.side-link[aria-current]::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: var(--yellow); }
.side-ico { display: flex; flex: none; }
.side-ico svg { width: 17px; height: 17px; }
.side-badge { min-width: 17px; padding: 0 4px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 11px; line-height: 17px; text-align: center; }
.side-link .side-badge { margin-left: auto; }
.view-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px; margin-bottom: 16px;
}
.view-title { font-size: clamp(18px, 2vw, 24px); font-weight: 750; line-height: 1.25; letter-spacing: -.035em; }
.view-desc { margin-top: 5px; color: var(--muted); }
/* 구매자 대시보드 */
.app-shell:not(.is-admin) {
  --buyer-gap: var(--gutter);
  --buyer-pad: clamp(16px, 1.8vw, 24px);
}
.buyer-intro, .buyer-panel, [data-customer-view="inquiry"] {
  min-width: 0;
  padding: var(--buyer-pad);
  border: 1px solid var(--line);
  border-radius: var(--studio-panel-radius);
  background: var(--surface);
}
.buyer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.buyer-intro h1 { font-size: clamp(20px, 2vw, 24px); font-weight: 750; letter-spacing: -.035em; line-height: 1.25; }
.buyer-intro-text { margin-top: 8px; color: var(--muted); font-size: 14px; }
.case-note {
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--subtle);
}
.case-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 14px; line-height: 1.4; }
.demo-label { padding: 2px 6px; border-radius: var(--radius-xs); background: var(--yellow-soft); color: var(--ink); font-size: 11px; font-weight: 500; }
.case-copy { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.cu-steps {
  margin-block: var(--buyer-gap);
  padding-inline: 20px;
  border: 1px solid var(--line);
  border-radius: var(--studio-panel-radius);
  background: var(--surface);
}
.cu-steps ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), max-content));
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cu-steps li { min-width: 0; }
.cu-steps li > * {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}
.cu-steps li > button { cursor: pointer; }
.cu-steps li > button:hover { color: var(--ink); }
.cu-steps .is-current > * { border-bottom-color: var(--yellow); color: var(--ink); }
.st-no {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.is-current .st-no, .is-done .st-no { background: var(--yellow-soft); color: var(--ink); }

.buyer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--buyer-gap);
  align-items: start;
}
.cu-q-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cu-q-header h2, .combined-question-title, .r-head h2, .sent h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.5;
}
.cu-optional, .cu-q-help { color: var(--muted); font-size: 14px; }
.cu-q-help { margin-top: 6px; }
.question-groups.is-combined { display: grid; gap: 24px; margin-top: 16px; }
.is-combined .cu-q-header h3 { font-size: 17px; font-weight: 700; }
.buyer-choices { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.is-combined .buyer-choices { margin-top: 10px; }
.buyer-choice-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.buyer-choice-table th, .buyer-choice-table td { padding: 12px; vertical-align: middle; }
.buyer-choice-table thead th {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.buyer-choice-table tbody tr { position: relative; }
.buyer-choice-table tbody :is(th, td) { height: 52px; border-bottom: 1px solid var(--line); }
.buyer-choice-table tbody tr:hover { background: var(--subtle); }
.buyer-choice-table tbody tr:has(input:checked) { background: var(--yellow-soft); }
.buyer-choice-table tbody tr:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.buyer-choice-table .choice-control { width: 46px; padding-inline: 0; text-align: center; }
.buyer-choice-table input { position: relative; z-index: 1; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); vertical-align: middle; cursor: pointer; }
.buyer-choice-table tbody th { font-size: 14px; font-weight: 600; }
.buyer-choice-table label { cursor: pointer; }
.buyer-choice-table label::after { position: absolute; inset: 0; content: ""; }
.choice-description { color: var(--muted); font-size: 13px; }

.buyer-inspector { padding: 0; }
.buyer-inspector > header { padding: 12px 16px; }
.buyer-inspector h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; }
.buyer-photo { margin: 0; }
.buyer-photo-stage { padding: 12px 16px; background: var(--studio-preview); }
.buyer-photo img {
  width: 100%;
  height: auto;
  max-height: 240px;
  margin-inline: auto;
  object-fit: contain;
}
.buyer-photo-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 8px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.buyer-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.buyer-photo-playback { padding-inline: 6px; font-size: 12px; }
.buyer-photo-controls { display: flex; flex: none; align-items: center; gap: 8px; }
.buyer-photo-controls .btn { min-width: 36px; min-height: 36px; padding: 0; font-size: 20px; line-height: 1; }
.buyer-photo-count { min-width: 32px; text-align: center; font-variant-numeric: tabular-nums; }
.buyer-preview-details { padding-inline: 16px; }
.buyer-preview-details:has(.buyer-conditions) { padding-bottom: 16px; }
.buyer-conditions { margin: 0; }
.buyer-conditions > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 5px 12px;
  min-height: 36px;
  border-top: 1px solid var(--line);
}
.buyer-conditions dt { color: var(--muted); font-size: 13px; }
.buyer-conditions dd { margin: 0; font-size: 14px; font-weight: 650; text-align: right; }
.buyer-conditions button {
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.match-count {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--subtle);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.match-count:empty { margin: 0; padding: 0; }
.cu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cu-nav .btn-primary { min-width: 96px; margin-inline-start: auto; }

/* 모델 검토 */
[data-customer-view="results"] { display: grid; gap: 16px; }
.results-head h2 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; letter-spacing: -.035em; }
.r-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 20px; }
.r-head p { margin-top: 6px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--subtle); font-size: 13px; font-weight: 650; cursor: pointer; text-align: left; }
.chip small { color: var(--muted); font-size: inherit; font-weight: 500; }
.chip i { color: var(--muted); font-style: normal; }
.chip:hover { border-color: var(--line-strong); }
.candidate-table-wrap { overflow-x: auto; border-radius: var(--studio-panel-radius) var(--studio-panel-radius) 0 0; }
.candidate-table th, .candidate-table td { padding-inline: 16px; }
.candidate-table tbody :is(th, td) { padding-block: 16px; }
.candidate-table .candidate-pick { width: 52px; padding-inline: 8px; text-align: center; }
.candidate-row:has(input:checked) { background: var(--yellow-soft); }
.candidate-model { width: 37%; font-weight: 400; }
.candidate-product { display: flex; align-items: flex-start; gap: 12px; }
.model-code { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
.candidate-model h3 { margin: 2px 0 4px; font-size: 17px; line-height: 1.3; letter-spacing: -.025em; }
.candidate-composition { margin-top: 4px; color: var(--muted); font-size: 13px; }
.candidate-fit { width: 23%; }
.candidate-fit strong { font-weight: 650; }
.candidate-scale {
  display: inline-block; margin-inline-start: 6px; padding: 1px 6px; border-radius: 999px;
  background: var(--subtle); color: var(--muted); font-size: 11px; white-space: nowrap;
}
.candidate-scale.is-exact { background: var(--success-soft); color: #176735; }
.candidate-review { color: var(--muted); font-size: 13px; }
.candidate-actions .btn { white-space: nowrap; }
.compare-choice { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; min-height: 40px; color: var(--muted); font-size: 13px; cursor: pointer; }
.compare-choice input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.candidate-pick-label, .candidate-cell-label { display: none; }
.inq-configurations { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.inq-configurations li { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 14px; }
.inq-configurations .fine { margin-top: 5px; }
.inq-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.inq-contact-fields .field { margin: 0; align-content: start; }
.contact-field-name { grid-column: 1 / -1; }
.inq-contact-fields .contact-error { color: var(--danger); }
.inq-contact-fields .input[aria-invalid="true"] { border-color: var(--danger); }
.inquiry-submit { display: grid; gap: 12px; margin-top: 16px; }
.inquiry-submit .fine { margin-top: 0; }
.cmp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.compare { padding: 16px; border: 1px solid var(--line); border-radius: var(--studio-panel-radius); background: var(--surface); scroll-margin-top: 20px; }
.compare h3, .empty-box h3 { margin: 0 0 8px; font-size: 19px; }
.compare .model-code { display: inline; }
.compare .tbl { min-width: 510px; }
.compare .tbl tbody th { color: var(--muted); }
.compare .tbl tr.is-diff td { background: var(--yellow-soft); }
.review-note { margin-block: 0 14px; padding: 12px 15px; border-left: 3px solid var(--yellow); background: var(--yellow-soft); font-size: 14px; }
.panel .review-note { margin-block: 14px; }
.review-note ul { margin-top: 3px; }
.relax { display: grid; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.relax > li { display: grid; gap: 7px; padding: 10px 13px; border-radius: var(--radius-md); background: var(--paper); font-size: 14px; }
.relax-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-box > .btn { margin-top: 10px; }
.disclaimer { padding-inline: 2px; color: var(--muted); font-size: 13px; }

/* 사진과 규격 편집 */
.p-img, .p-thumb { display: grid; place-items: center; overflow: hidden; background: var(--hero-paper); color: var(--muted); text-align: center; }
.p-img { aspect-ratio: 3 / 2; }
.p-img img, .p-thumb img { width: 100%; height: 100%; object-fit: contain; }
.p-img-sm { flex: 0 0 120px; width: 120px; border-radius: var(--radius-sm); }
.p-thumb { width: 56px; height: 42px; flex: none; border-radius: var(--radius-xs); }
.p-thumb > span { font-size: 10px; line-height: 1.2; }
.rule-list { display: grid; gap: 3px; }
.rule .input { display: inline-block; width: 66px; }
.tbl-opts td:nth-child(3) { min-width: 225px; }

@media (max-width: 768px) {
  :root { --control: 44px; }
  .btn-sm, .chip, .compare-choice { min-height: 44px; }
  .inq-grid, .ed-grid, .q-fields { grid-template-columns: minmax(0, 1fr); }
  .settings-fields { grid-template-columns: minmax(0, 1fr); }
  .input.product-visibility, .q-check-target { min-height: 44px; }
  .q-check-target { min-width: 44px; }
  .product-filter-fields { grid-template-columns: minmax(0, 1fr) auto; }
  .product-filter-chips { grid-row: 2; grid-column: 1 / -1; }
  select.input.product-filter-chip, .product-filter-actions .btn { min-height: 44px; }
  .product-filter-actions .product-filter-close { width: 44px; }
  .product-pagination .page-button { min-width: 44px; min-height: 44px; }
  .inq-card-body { grid-template-columns: minmax(0, 1fr); }
  .app-shell.is-admin { grid-template-columns: minmax(0, 1fr); }
  .side-nav { padding: 8px 12px; }
  .side-menu { display: flex; flex-wrap: wrap; }
  .side-link[aria-current]::before { top: auto; right: 12px; bottom: 0; left: 12px; width: auto; height: 2px; }
  .candidate-table thead { display: none; }
  .candidate-table, .candidate-table tbody { display: block; }
  .candidate-table .candidate-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "model pick" "fit fit" "review review" "action action";
    gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  }
  .candidate-table tr:last-child { border-bottom: 0; }
  .candidate-table tbody :is(td, th) { width: auto; padding: 0; border: 0; }
  .candidate-table .candidate-pick { grid-area: pick; width: auto; padding: 0; }
  .candidate-model { grid-area: model; }
  .candidate-fit { grid-area: fit; }
  .candidate-review { grid-area: review; }
  .candidate-actions { grid-area: action; }
  .candidate-pick-label { display: inline; }
  .candidate-cell-label { display: block; color: var(--muted); font-size: 12px; }
  .candidate-actions .btn { min-height: 44px; }
  .buyer-intro, .buyer-workspace { grid-template-columns: minmax(0, 1fr); }
  .buyer-intro { gap: 13px; }
  .buyer-photo-controls .btn { min-width: 44px; min-height: 44px; }
  .buyer-conditions button { min-height: 44px; }
}
@media (max-width: 600px) {
  .demo-toolbar { padding-block: 5px; }
  .demo-title { font-size: 12px; line-height: 1.25; }
  .mode-switch a { min-height: 44px; padding-inline: 6px; font-size: 12px; }
  .app-shell { margin-top: 14px; }
  .side-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-link { padding: 5px 8px; font-size: 13px; }
  .buyer-intro-text, .cu-q-help { font-size: 14px; }
  .cu-steps { padding-inline: 8px; }
  .cu-steps ol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 68px), 1fr)); gap: 2px; }
  .cu-steps li > * { gap: 4px; padding-inline: 3px; font-size: 12px; }
  .st-no { flex-basis: 16px; height: 16px; font-size: 10px; }
  .buyer-choice-table th, .buyer-choice-table td { padding-inline: 6px; }
  .buyer-choice-table .choice-control { width: 30px; }
  .buyer-choice-table tbody th { font-size: 14px; }
  .choice-description { font-size: 12px; }
  .buyer-inspector > header, .buyer-photo-stage, .buyer-photo-footer, .buyer-preview-details { padding-inline: 12px; }
  .candidate-actions .btn { width: 100%; }
  .cmp-bar .row-actions { width: 100%; }
  .cmp-bar .row-actions .btn { flex: 1 1 auto; }
  .admin-list-filters, .admin-list-summary, .admin-status-tabs, .product-list-footer { padding-inline: 12px; }
  .product-filter-fields { margin-inline: 12px; }
  .product-filter-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  select.input.product-filter-chip { width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .product-search-group { grid-template-columns: 108px minmax(0, 1fr); }
  .product-list-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .product-pagination { grid-row: 2; grid-column: 1 / -1; }
  .product-list-toolbar .product-search-group { flex-basis: 100%; }
  .inq-list-head { display: none; }
  .buyer-photo-actions { justify-content: flex-end; }
  .buyer-photo-playback { min-height: 44px; }
  .inq-list-filters .inq-search { flex-basis: 100%; max-width: none; }
  .inq-period { flex: 1 1 100%; width: 100%; }
  .admin-status-filter { min-height: 44px; }
  .inq-row-summary { grid-template-columns: 62px minmax(0, 1fr) 16px; gap: 4px 8px; min-height: 64px; padding: 8px 10px; }
  .inq-row-title { grid-column: 2; grid-row: 1; }
  .inq-kind { grid-column: 1; grid-row: 2; }
  .inq-time { grid-column: 2; grid-row: 2; }
  .inq-chevron { grid-column: 3; grid-row: 1 / 3; }
  .inq-detail-content, .inq-detail-actions { padding-inline: 12px; }
  .inq-contact-values, .inq-contact-fields { grid-template-columns: minmax(0, 1fr); }
  .dlg-close { min-height: 44px; }
  .q-card { padding-inline: 12px; }
  .q-card-tools { margin-left: 0; }
  .tbl-products thead, .tbl-opts thead { display: none; }
  .tbl-products, .tbl-products tbody, .tbl-products tr, .tbl-products td,
  .tbl-opts, .tbl-opts tbody, .tbl-opts tr, .tbl-opts td { display: block; width: 100%; }
  .tbl-products tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; padding: 12px; border-bottom: 1px solid var(--line); }
  .tbl-products tbody td { height: auto; padding: 0; border: 0; }
  .tbl-products .product-pick-cell { justify-self: end; grid-column: 2; grid-row: 1; padding: 0; }
  .tbl-products .product-pick-target { width: 44px; height: 44px; }
  .tbl-products .product-code { grid-column: 1; grid-row: 1; align-self: center; }
  .tbl-products .product-name, .tbl-products .col-act { grid-column: 1 / -1; width: 100%; min-width: 0; text-align: left; }
  .tbl-products .product-name { margin-bottom: 3px; font-size: 15px; }
  .tbl-products td[data-label]:not(.product-name)::before { content: attr(data-label) " · "; color: var(--faint); font-size: 12px; }
  .tbl-products .product-visibility-cell::before { display: block; }
  .tbl-opts tr { padding: 10px; border-bottom: 1px solid var(--line); }
  .tbl-opts td { padding: 3px 0; border: 0; }
  .tbl-opts td:nth-child(3) { min-width: 0; }
  .tbl-opts td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; }
  .tbl-opts .q-option-visibility { display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
