/* ==========================================================================
   比对台 · 紧凑版界面（在 app.css 之后加载）
   - 收紧留白与卡片高度
   - 圆角整体调小
   - 说明、提示、辅助文字放大
   - 页脚同步 BN1000.COM 备案与官网入口
   ========================================================================== */

:root {
  --radius: 12px;
  --shadow: 0 1px 2px rgba(24, 33, 29, .04), 0 10px 26px -18px rgba(24, 33, 29, .22);
  --shadow-sm: 0 1px 2px rgba(24, 33, 29, .04), 0 6px 16px -12px rgba(24, 33, 29, .18);
}

.wrap { width: min(1180px, calc(100% - 40px)); }

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.site-header { height: 58px; }
.brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { font-size: 17px; gap: 8px; }
.brand-text small { font-size: 8.5px; letter-spacing: .14em; }
.privacy-pill { height: 30px; padding: 0 10px; font-size: 11.5px; gap: 6px; }
.privacy-pill svg { width: 15px; height: 15px; }
.skin-toggle {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, .55);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.skin-toggle:hover { border-color: var(--jade); color: var(--jade); background: var(--surface); }
.skin-icon { width: 13px; height: 13px; flex: 0 0 13px; display: inline-grid; place-items: center; color: var(--jade); }
.skin-icon svg { width: 13px; height: 13px; }
.skin-label { line-height: 1; }
.btn { min-height: 36px; padding: 0 13px; border-radius: 8px; font-size: 13.5px; }
.btn-sm { min-height: 31px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { min-height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 9px; }
.icon-btn { width: 30px; height: 30px; border-radius: 7px; font-size: 20px; }
.text-btn { font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: 46px 0 26px; }
.hero h1 { margin: 12px 0 14px; font-size: clamp(42px, 6.4vw, 76px); }
.hero-sub { font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.75; }
.hero-chips { margin-top: 18px; gap: 7px; }
.hero-chips span { padding: 5px 10px; font-size: 12.5px; }
.eyebrow { font-size: 11px; }

/* --------------------------------------------------------------------------
   步骤条
   -------------------------------------------------------------------------- */

.stepper { gap: 12px; padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; }
.step { gap: 8px; }
.step-num { width: 25px; height: 25px; flex-basis: 25px; font-size: 9.5px; }
.step-copy strong { font-size: 13px; }
.step-copy small { font-size: 11.5px; }

/* --------------------------------------------------------------------------
   上传卡片
   -------------------------------------------------------------------------- */

.upload-grid { gap: 16px; }
.upload-card { min-height: 260px; padding: 16px 18px 14px; border-radius: 12px; }
.card-head { margin-bottom: 10px; }
.side-label { font-size: 13px; }
.side-hint { font-size: 12px; }

.dropzone { min-height: 185px; padding: 18px 14px; border-radius: 10px; gap: 7px; }
.drop-icon { width: 44px; height: 44px; margin-bottom: 0; border-radius: 10px; }
.drop-icon svg { width: 23px; height: 23px; }
.drop-title { font-size: 15px; }
.drop-sub { font-size: 13px; }
.drop-formats span { font-size: 10px; padding: 2px 6px; }

.upload-foot { padding-top: 10px; font-size: 12px; }
.file-badge { width: 40px; height: 46px; flex-basis: 40px; font-size: 9.5px; border-radius: 8px; }
.file-name { font-size: 15px; }
.file-meta { font-size: 12.5px; }
.file-tag { margin-top: 6px; padding: 2px 6px; font-size: 11px; }
.file-stats { margin-top: 10px; border-radius: 8px; }
.file-stats > div { padding: 6px 8px; }
.file-stats span { font-size: 10.5px; }
.file-stats strong { font-size: 13px; }
.file-controls { margin-top: 10px; gap: 8px; }
.field > span { font-size: 11.5px; }
.field select, .field input { height: 34px; font-size: 12.5px; }
.preview { margin-top: 10px; padding-top: 8px; }
.preview summary { font-size: 12.5px; }
.mini-table { font-size: 11px; }
.mini-table th, .mini-table td { padding: 4px 7px; }

.privacy-strip { margin-top: 14px; padding: 11px 14px; border-radius: 9px; gap: 11px; }
.privacy-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
.privacy-icon svg { width: 18px; height: 18px; }
.privacy-strip p { font-size: 13.5px; }
.card-error { padding: 9px 11px; font-size: 13px; border-radius: 8px; }

/* --------------------------------------------------------------------------
   配置面板
   -------------------------------------------------------------------------- */

.config-panel { margin-top: 18px; padding: 24px; border-radius: 14px; }
.config-head { margin-bottom: 18px; gap: 18px; }
.config-head h2 { margin: 8px 0 4px; font-size: clamp(23px, 2.5vw, 28px); }
.config-head p { font-size: 14px; }
.config-top { gap: 12px; }

.config-mode {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: -2px 0 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}
.mode-title { color: var(--muted); font-size: 12px; font-weight: 650; }
.mode-hint { color: var(--muted-2); font-size: 12.5px; }
.config-mode .segmented button { height: 26px; padding: 0 9px; font-size: 11.5px; }

.row-mode-note {
  padding: 13px 14px;
  border: 1px dashed rgba(15, 107, 89, .3);
  border-radius: 9px;
  background: var(--jade-soft);
}
.row-mode-note strong { display: block; color: var(--jade); font-size: 13.5px; }
.row-mode-note p { margin: 5px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.65; }
.row-mode-note p.muted { color: var(--muted); }

.panel { padding: 14px 15px; border-radius: 10px; }
.panel-head { gap: 8px; margin-bottom: 10px; }
.panel-head h3 { font-size: 14.5px; }
.panel-head .hint { font-size: 12.5px; }

.key-rows { gap: 6px; }
.key-row { grid-template-columns: 22px minmax(0, 1fr) 20px minmax(0, 1fr) 26px; gap: 5px; }
.key-row select { height: 36px; font-size: 12.5px; }
.key-index { font-size: 9.5px; }
.key-link { font-size: 12px; }
.key-row .icon-btn { width: 26px; height: 26px; }
.key-actions { margin-top: 9px; gap: 8px; }
.key-note { font-size: 12px; }
.key-help { margin-top: 9px; color: var(--muted-2); font-size: 12.5px; line-height: 1.65; }
.key-empty { padding: 12px; font-size: 12.5px; }

.option-grid { gap: 6px; }
.option-toggle { padding: 7px 8px; border-radius: 7px; gap: 8px; }
.option-toggle .tick { width: 14px; height: 14px; flex-basis: 14px; font-size: 9px; }
.option-toggle span:last-child { font-size: 12.5px; }
.options-panel .fineprint { margin-top: 8px; }

.mapping-panel { margin-top: 12px; }
.mapping-head { padding: 0 8px 5px; font-size: 11px; }
.mapping-rows { max-height: 260px; border-radius: 8px; }
.map-row { padding: 5px 8px; gap: 6px; }
.map-a { gap: 6px; font-size: 13px; }
.map-row select { height: 32px; font-size: 12px; }
.map-empty { padding: 16px; font-size: 12.5px; }
.mapping-panel .fineprint { margin-top: 8px; }

.run-bar { margin-top: 16px; padding: 15px 18px; border-radius: 12px; gap: 18px; }
.run-summary { font-size: 14.5px; }
.run-sub { margin-top: 2px; font-size: 12.5px; }
.run-bar .btn { min-height: 44px; font-size: 14.5px; border-radius: 9px; }

.fineprint { font-size: 13px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   结果页
   -------------------------------------------------------------------------- */

body.is-result .workspace { padding-top: 18px; }
.result-head { padding: 2px 0 14px; gap: 18px; }
.result-head h2 { margin: 6px 0 4px; font-size: clamp(25px, 2.9vw, 34px); }
.result-head p { font-size: 13.5px; }
.result-actions { gap: 8px; }

.stat-grid { gap: 10px; margin-bottom: 14px; }
.stat-card { padding: 12px 14px 10px; border-radius: 10px; }
.stat-card .stat-label { font-size: 12px; }
.stat-card .stat-value { margin: 3px 0 0; font-size: clamp(23px, 2.4vw, 29px); }
.stat-card .stat-sub { font-size: 12px; }

.result-tabs { margin-bottom: 10px; gap: 1px; }
.tab { padding: 9px 12px 11px; font-size: 13px; gap: 6px; }
.tab .count { min-width: 19px; padding: 1px 5px; font-size: 10.5px; }

/* 概览 ------------------------------------------------------------------ */

.overview-grid { gap: 12px; }
.ov-main, .ov-side { gap: 12px; }
.ov-card { padding: 15px 16px; border-radius: 10px; }
.ov-card-head { margin-bottom: 10px; gap: 10px; }
.ov-card-head h3 { font-size: 14.5px; }
.ov-card-head .sub { font-size: 12px; }

.venn-card { padding-bottom: 12px; }
.venn-wrap { gap: 14px; }
.venn-legend { gap: 6px; min-width: 140px; }
.venn-legend span { font-size: 12px; }
.venn-legend b { font-size: 12px; }
.rate-block { gap: 12px; margin-top: 10px; padding-top: 10px; }
.rate-title { font-size: 11.5px; }

.quality-list { gap: 7px; }
.quality-item { padding: 8px 10px; border-radius: 8px; font-size: 12.5px; }
.quality-item .q-icon { width: 16px; height: 16px; flex-basis: 16px; font-size: 9px; }

.column-bars { gap: 9px; }
.col-bar-name { font-size: 12.5px; }
.col-bar-count { font-size: 12px; }
.col-empty { font-size: 12.5px; }

.export-list { gap: 1px; }
.export-row { padding: 7px 0; gap: 9px; }
.export-row .e-label { font-size: 13px; }
.export-row .e-count { font-size: 11.5px; }

.recap { gap: 7px; }
.recap-row { font-size: 12.5px; gap: 10px; }
.recap-row > span:first-child { width: 66px; flex-basis: 66px; }
.recap-chips span { font-size: 11px; padding: 2px 5px; }

/* 数据表 ------------------------------------------------------------------ */

.table-toolbar { padding: 9px 11px; border-radius: 10px 10px 0 0; gap: 9px; }
.toolbar-left, .toolbar-right { gap: 8px; }
.search-box { min-width: 200px; max-width: 310px; }
.search-box input { height: 34px; font-size: 12.5px; }
.segmented { padding: 2px; gap: 1px; border-radius: 7px; }
.segmented button { height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 5px; }
.select-sm { height: 30px; font-size: 11.5px; }
.toolbar-note { font-size: 12px; }
.toolbar-right .btn { min-height: 32px; font-size: 12.5px; }

.result-note { padding: 7px 11px; font-size: 12.5px; gap: 7px; }
.table-wrap { max-height: 60vh; }
.result-table { font-size: 12.5px; }
.result-table th { padding: 8px 9px; font-size: 12.5px; }
.result-table td { padding: 6px 9px; }
.result-table th:first-child, .result-table td:first-child { padding-left: 12px; }
.result-table .num-cell, .result-table .row-idx { font-size: inherit; color: var(--ink-2); }
.result-table .row-idx { font-family: var(--mono); }
.result-table th .th-label { vertical-align: middle; }

.filter-btn {
  width: auto;
  height: 21px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  vertical-align: middle;
}
.filter-btn svg { width: 11px; height: 11px; }
.filter-btn-text { font-family: var(--sans); font-size: 10px; line-height: 1; }
.filter-btn:hover { background: var(--jade-soft); border-color: rgba(15, 107, 89, .3); color: var(--jade); }
.filter-btn.is-active { background: var(--jade-soft); border-color: rgba(15, 107, 89, .35); color: var(--jade); }

.filter-popover {
  position: fixed;
  z-index: 260;
  width: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 45px -18px rgba(24, 33, 29, .45);
  overflow: hidden;
}
.filter-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.filter-popover-head strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-popover-body { display: flex; flex-direction: column; gap: 9px; padding: 12px; }
.filter-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.filter-field select { flex: 1; height: 32px; font-size: 12px; }
#filter-value { width: 100%; height: 34px; font-size: 13px; }
.filter-fuzzy { font-size: 12px; line-height: 1.5; }
.filter-popover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.filter-popover-actions { display: flex; gap: 6px; }

.filter-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 11px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(231, 242, 238, .6);
}
.filter-summary-label { color: var(--muted); font-size: 11.5px; }
.filter-chip {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border: 1px solid rgba(15, 107, 89, .25);
  border-radius: 5px;
  background: var(--surface);
  color: var(--jade);
  font-size: 11px;
}
.filter-chip:hover { border-color: var(--jade); }
.filter-clear-all { margin-left: auto; white-space: nowrap; font-size: 11.5px; }
.cell-truncate { max-width: 260px; }
.key-text .cell-truncate { max-width: 210px; }
.tag { padding: 2px 6px; font-size: 11px; }
.diff-chip { padding: 2px 5px; font-size: 10.5px; }
.diff-more { font-size: 10.5px; }
.row-action { font-size: 12px; }

.pagination { padding: 8px 11px; border-radius: 0 0 10px 10px; gap: 10px; }
.page-info { font-size: 12px; }
.page-btn { min-width: 27px; height: 27px; padding: 0 6px; font-size: 11px; }
.page-size { font-size: 11.5px; }
.page-size select { height: 27px; font-size: 11px; }

/* --------------------------------------------------------------------------
   粘贴数据
   -------------------------------------------------------------------------- */

.foot-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.foot-sep { color: var(--line-strong); font-size: 10px; }
.upload-foot .foot-actions .text-btn { white-space: nowrap; }

.paste-modal { width: min(840px, calc(100vw - 32px)); }
.paste-help { margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
#paste-textarea {
  display: block;
  width: 100%;
  min-height: 240px;
  max-height: 46vh;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
}
#paste-textarea:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15, 107, 89, .12); }
#paste-textarea::placeholder { color: var(--muted-2); }
.paste-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 10px 0; }
.paste-delimiter { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.paste-delimiter select { height: 30px; font-size: 12px; }
.paste-meta { margin-left: auto; color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; }
.paste-preview { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.paste-preview:empty { display: none; }
.paste-error { padding: 14px; color: var(--red); font-size: 12.5px; }
.paste-foot { align-items: center; }
.paste-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.paste-actions .btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   弹窗 / Toast / Loading
   -------------------------------------------------------------------------- */

dialog.modal { border-radius: 14px; }
.dialog-head { padding: 16px 18px 13px; }
.dialog-head h3 { font-size: 18px; }
.dialog-body { padding: 16px 18px; }
.dialog-foot { padding: 12px 18px; }
.prose { font-size: 14px; line-height: 1.75; }
.prose summary { font-size: 13.5px; }
.prose details p { font-size: 13px; }
.detail-key { padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; }
.detail-key strong { font-size: 14px; }
.detail-meta { margin-bottom: 12px; font-size: 12.5px; gap: 5px 14px; }
.detail-table { font-size: 12.5px; }
.detail-table th, .detail-table td { padding: 7px 9px; }
.detail-table th { font-size: 11px; }
.detail-extra { padding: 9px 10px; font-size: 12px; border-radius: 8px; }
.dup-table { font-size: 12.5px; }
.dup-table th, .dup-table td { padding: 7px 8px; }

.toast { padding: 9px 13px; border-radius: 8px; font-size: 13px; }
.loading-card { min-width: 250px; padding: 22px 26px; border-radius: 12px; }
.loading-card strong { font-size: 15px; }
.loading-card span { font-size: 12.5px; }

/* --------------------------------------------------------------------------
   说明区 / 页脚
   -------------------------------------------------------------------------- */

.how { padding: 56px 0 50px; }
.how-head { margin-bottom: 22px; }
.how-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.how-grid article { padding: 20px; }
.how-grid h3 { margin: 8px 0 5px; font-size: 15px; }
.how-grid p { font-size: 13px; }
.feature-strip { margin-top: 14px; padding: 12px 15px; gap: 8px 22px; border-radius: 10px; }
.feature-strip span { font-size: 12px; }

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, .42);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0 24px;
  color: var(--muted-2);
  font-size: 12.5px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; color: var(--ink); }
.footer-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.footer-logo strong { display: block; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; }
.footer-logo small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.footer-logo:hover strong { color: var(--jade); }
.footer-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-note span { margin-left: 10px; color: var(--muted-2); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.footer-links { display: flex; justify-content: flex-end; gap: 13px; margin-bottom: 3px; }
.footer-links a { color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta p { margin: 0; font-size: 12.5px; line-height: 1.65; }
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta .footer-version { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   响应式：覆盖 app.css 中较早的间距
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .overview-grid { gap: 10px; }
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 32px, 720px); }
  .hero { padding: 34px 0 20px; }
  .hero h1 { font-size: clamp(40px, 9vw, 58px); }
  .venn-svg .v-label { font-size: 14px; }
  .venn-svg .v-count { font-size: 24px; }
  .venn-svg .v-count-main { font-size: 27px; }
}

@media (max-width: 700px) {
  .hero { padding: 28px 0 18px; }
  .stepper { gap: 7px; padding: 9px 10px; margin-bottom: 12px; }
  .step-copy strong { font-size: 11.5px; }
  .step-num { width: 23px; height: 23px; flex-basis: 23px; }
  .config-panel { padding: 16px 12px; border-radius: 12px; }
  .config-head { gap: 8px; margin-bottom: 14px; }
  .run-bar { padding: 14px; border-radius: 10px; }
  .privacy-strip { gap: 8px 10px; padding: 10px 11px; }
  .privacy-strip p { font-size: 13px; }
  .table-toolbar { padding: 8px; }
  .result-note { padding: 7px 9px; font-size: 12px; }
  .result-head h2 { font-size: 25px; }
  .tab { padding: 8px 9px 10px; font-size: 12px; }
  .ov-card { padding: 14px 13px; }
  .footer-inner { flex-direction: column; gap: 14px; padding: 18px 0 20px; }
  .footer-meta { align-items: flex-start; text-align: left; }
  .footer-links { justify-content: flex-start; }
  .footer-note span { display: block; margin-left: 0; }
  .paste-modal { width: calc(100vw - 20px); }
  #paste-textarea { min-height: 180px; max-height: 40vh; }
  .paste-meta { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 24px); }
  .site-header { height: 54px; }
  .header-actions { gap: 6px; }
  .brand-mark { width: 29px; height: 29px; flex-basis: 29px; }
  .brand-text { font-size: 16px; }
  .skin-toggle { width: 28px; height: 28px; padding: 0; justify-content: center; }
  .skin-label { display: none; }
  .hero { padding: 24px 0 16px; }
  .hero h1 { font-size: clamp(36px, 11.5vw, 48px); }
  .hero-sub { font-size: 14px; line-height: 1.7; }
  .hero-chips span { font-size: 11px; }
  .upload-card { min-height: 0; padding: 14px 13px 12px; }
  .dropzone { min-height: 185px; }
  .drop-title { font-size: 14.5px; }
  .drop-sub { font-size: 12.5px; }
  .config-panel { padding: 14px 10px; }
  .tab { padding: 8px 7px 10px; font-size: 11.5px; gap: 4px; }
  .tab .count { min-width: 17px; padding: 1px 4px; font-size: 9.5px; }
  .stat-card { padding: 11px 11px 10px; }
  .stat-card .stat-value { font-size: 22px; }
  .stat-card .stat-sub { font-size: 11.5px; }
  .result-table th, .result-table td { padding: 6px 7px; }
  .footer-inner { padding: 16px 0 18px; }
  .footer-links a { font-size: 12.5px; }
  .footer-logo strong { font-size: 13.5px; }
  .footer-note { font-size: 12px; }
  .paste-foot { flex-direction: column; align-items: stretch; gap: 9px; }
  .paste-actions { width: 100%; }
  .paste-actions .btn { flex: 1; }
  #paste-textarea { min-height: 160px; }
  .filter-popover {
    left: 10px !important;
    right: 10px;
    top: auto !important;
    bottom: 10px;
    width: auto;
    max-height: 70vh;
    overflow: auto;
  }
  .filter-summary { padding: 6px 8px; gap: 5px; }
  .filter-chip { max-width: 210px; }
}

@media (max-width: 360px) {
  .header-actions { gap: 5px; }
  .header-actions .btn-sm { padding: 0 8px; font-size: 12px; }
  .skin-toggle { width: 26px; height: 26px; }
  .stepper { padding: 8px 8px; gap: 5px; }
  .step { gap: 5px; }
  .step-num { width: 21px; height: 21px; flex-basis: 21px; font-size: 8.5px; }
  .step-copy strong { font-size: 10.5px; }
  .step-line { min-width: 8px; }
  .tab { padding: 8px 8px 10px; }
  .footer-links { gap: 10px; }
  .footer-links a { font-size: 12px; }
}
