/* ============================================================
 * Bader电荷3D可视化工具 Web版 — Liquid Glass 风格 (macOS 视觉语言)
 * 设计令牌：一套变量统一控制色彩/圆角/分割线，改这里即可全站生效
 * ============================================================ */
:root {
  /* 画布基底：浅灰白 */
  --bg-canvas: #f5f5f7;
  /* 表面：统一白色 */
  --surface: #ffffff;
  --surface-2: #fafafa;          /* 次级悬浮表面 */
  --surface-3: #f0f1f3;          /* 分组底 */
  /* 分割线：hairline 发丝线 */
  --hairline: rgba(0, 0, 0, 0.10);
  --hairline-strong: rgba(0, 0, 0, 0.16);
  /* 文字 */
  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  /* 单一蓝色：仅用于强调 */
  --accent: #185fa5;             /* 强调/激活 */
  --accent-strong: #0c447c;      /* 按下/深 */
  --accent-soft: #378add;        /* 悬停/浅 */
  --accent-bg: #e6f1fb;          /* 强调浅底 */
  --accent-line: rgba(24, 95, 165, 0.22);
  /* 圆角：8 / 12 / 16 */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  /* 悬停上浮 */
  --lift: translateY(-1px);
  --lift-sh: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--text-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-canvas);
}

/* ---------- 顶栏（粘性导航 → 毛玻璃层叠区） ---------- */
#topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
  z-index: 20;
}
@supports not ((backdrop-filter: blur(1px))) {
  #topbar { background: var(--surface); }
  #legend, #atom-info, #sel-info, #log-panel { background: var(--surface); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  button:hover, .top-btn:hover { transform: none; box-shadow: none; }
}
#topbar .title {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.4px;             /* 大标题负字间距 */
}
#topbar .title em { font-style: normal; color: var(--accent); font-size: 13px; margin-left: 4px; }
#topbar .spacer { flex: 1; }
#topbar .btn-group { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-btn {
  padding: 5px 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s, color .2s;
}
.top-btn:hover { border-color: var(--accent-soft); color: var(--accent); transform: var(--lift); box-shadow: var(--lift-sh); }
.top-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.top-btn:disabled:hover { border-color: var(--hairline-strong); color: inherit; }
.undo-redo-btn {
  padding: 5px 8px; font-size: 16px; line-height: 1;
  min-width: 32px; text-align: center;
}

/* ---------- 主区 ---------- */
#main { flex: 1; display: flex; min-height: 0; }

#panel {
  width: 380px; min-width: 380px;
  background: var(--surface-2);
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  overflow: hidden;
}
#tabs { display: flex; background: var(--surface-3); border-bottom: 1px solid var(--hairline); }
.tab {
  flex: 1; padding: 9px 0; border: none; background: transparent;
  font-size: 14px; cursor: pointer; color: var(--text-3);
  transition: color .2s;
}
.tab.active { background: var(--surface-2); color: var(--accent); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }

.tabpage { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; }
.tabpage.hidden { display: none; }

section { margin-bottom: 14px; }
section.grow { flex: 1; display: flex; flex-direction: column; min-height: 180px; }
section h3 {
  margin: 2px 0 8px; font-size: 14px; color: var(--text-1);
  letter-spacing: -0.3px;             /* section 标题负字间距 */
  border-left: 3px solid var(--accent); padding-left: 7px;
}
.panel-group { margin: 0 0 10px; }
.panel-group > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
  padding: 2px 0 8px 10px;
  border-left: 3px solid var(--accent);
  user-select: none;
}
.panel-group > summary::-webkit-details-marker { display: none; }
.panel-group > summary::after {
  content: "⌄";
  float: right;
  color: var(--text-3);
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
}
.panel-group:not([open]) > summary::after { transform: rotate(-90deg); }
.panel-group > section { margin: 0; padding: 0 0 4px 0; }
.panel-group-preview { flex: 1; display: flex; flex-direction: column; min-height: 180px; }
.panel-group-preview[open] > section { flex: 1; min-height: 0; }
.row { display: flex; align-items: center; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
.row.btns button { padding: 5px 10px; }
.lab { min-width: 52px; color: var(--text-2); }
.hint { color: var(--text-3); font-size: 12px; line-height: 1.7; margin: 6px 0 0; }
.mono { font-family: Consolas, monospace; }
.fname { color: var(--text-3); font-size: 12px; word-break: break-all; }

button {
  font-family: inherit;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; font-size: 13px; padding: 4px 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s, color .2s, background .2s;
}
button:hover { border-color: var(--accent-soft); color: var(--accent); transform: var(--lift); box-shadow: var(--lift-sh); }
button:active { transform: translateY(0); box-shadow: none; }
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
.file-btn { flex: 1; min-width: 150px; padding: 7px 10px; }

select, input[type="number"], input[type="text"] {
  font-family: inherit; font-size: 13px;
  border: 1px solid var(--hairline-strong); border-radius: var(--r-md); padding: 4px 6px; background: var(--surface);
}
select:hover, input[type="number"]:hover, input[type="text"]:hover {
  border-color: var(--accent-soft);
}
input.num { width: 78px; }
input[type="color"] {
  width: 42px; height: 26px; padding: 1px; border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md); background: var(--surface); cursor: pointer;
}
input[type="range"] { flex: 1; accent-color: var(--accent); }
.radio, .check { display: block; margin: 5px 0; cursor: pointer; }
.radio input, .check input { accent-color: var(--accent); }

/* ---------- 表格 ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 12px; background: var(--surface); }
table.grid th, table.grid td {
  border: 1px solid var(--hairline); padding: 3px 6px; text-align: center; white-space: nowrap;
}
table.grid thead th { background: var(--surface-3); position: sticky; top: 0; z-index: 1; }
table.grid td input[type="number"] { width: 64px; padding: 2px 4px; font-size: 12px; }
table.grid td input[type="color"] { width: 34px; height: 22px; }
table.grid tbody tr:hover { background: var(--accent-bg); }

/* 选中态：浅蓝高亮（收敛到单色蓝强调） */
table.grid tbody tr.sel { background: var(--accent-bg); }
#preview-wrap {
  flex: 1; overflow: auto; border: 1px solid var(--hairline); border-radius: var(--r-md); min-height: 140px;
}
#preview-wrap table.grid { border: none; }

/* 方向键面板 */
.dirpad {
  display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; margin: 8px 0;
}
.dirpad button { height: 36px; font-size: 16px; }

/* ---------- 3D 视口 ---------- */
#viewport { flex: 1; position: relative; min-width: 0; background: var(--surface); }
#canvas-holder { position: absolute; inset: 0; }
#canvas-holder canvas { display: block; }

#empty-state {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-2);
  pointer-events: none;
}
#empty-state.hidden { display: none !important; }
.empty-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
#empty-state h2 {
  margin: 0;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
#empty-state p {
  max-width: 330px;
  margin: 8px 0 16px;
  font-size: 13px;
  line-height: 1.7;
}
.empty-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.empty-actions button {
  min-width: 126px;
  min-height: 38px;
  border-color: var(--accent-line);
  color: var(--accent);
}
.empty-actions button:first-child {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.empty-hint {
  margin-top: 12px;
  color: var(--text-3);
  font-size: 11px;
}

#busy-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-1);
  font-size: 13px;
  z-index: 12;
}
#busy-state.hidden { display: none !important; }
.busy-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: busy-spin .8s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }

/* 色标条 */
#colorbar {
  position: absolute; right: 14px; top: 12%; bottom: 12%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none;
}
#colorbar .cb-title { font-size: 12px; font-weight: 700; color: var(--text-1); }
.cb-wrap { flex: 1; display: flex; gap: 4px; min-height: 0; }
#cb-bar { flex: 0 0 16px; border: 1px solid var(--hairline-strong); border-radius: 2px; }
#cb-ticks { position: relative; width: 52px; }
.cb-tick {
  position: absolute; left: 0; transform: translateY(-50%);
  font-size: 10px; font-family: Consolas, monospace; color: var(--text-2); white-space: nowrap;
}
.cb-tick::before {
  content: ""; display: inline-block; width: 6px; height: 1px;
  background: var(--text-3); vertical-align: middle; margin-right: 3px;
}

/* 元素图例（毛玻璃层叠区） */
#legend {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 6px 10px;
  font-size: 12px; line-height: 1.9;
}
#legend .chip {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,0.25);
}

/* 原子信息浮层（毛玻璃层叠区） */
#atom-info {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 8px 12px; font-size: 12px; line-height: 1.8;
  box-shadow: var(--lift-sh);
}
#atom-info b { color: var(--accent); }

/* 拖拽提示 */
#drop-hint {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-bg); border: 3px dashed var(--accent-soft); border-radius: var(--r-lg);
  color: var(--accent); font-size: 18px; font-weight: 700; text-align: center;
  pointer-events: none; z-index: 10;
}
#drop-hint.hidden, .hidden { display: none !important; }

/* ---------- 状态栏 ---------- */
#statusbar {
  padding: 5px 14px; background: var(--surface); border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--text-2);
}
#status.warn { color: #b7791f; font-weight: 600; }

/* ---------- V2 ---------- */
.radio.inline, .check.inline { display: inline-block; margin: 0 6px 0 0; }

/* 框选矩形 */
#select-rect {
  position: absolute; border: 1.5px dashed var(--accent-soft);
  background: var(--accent-bg); pointer-events: none; z-index: 5;
}

/* 选中信息条（毛玻璃层叠区） */
#sel-info {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(230,241,251,0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  padding: 5px 16px; font-size: 13px; font-family: Consolas, "Microsoft YaHei", monospace;
  color: var(--accent); z-index: 6; pointer-events: none; white-space: nowrap;
}

/* 框选模式激活的按钮 */
#btn-boxmode.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* 日志面板（浅色透光层叠区，毛玻璃） */
#log-panel {
  position: absolute; right: 0; bottom: 0; left: 0;
  background: rgba(250,250,250,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--text-2);
  border-top: 1px solid var(--hairline);
  font-size: 11px; z-index: 8;
  display: flex; flex-direction: column;
}
#log-panel.collapsed #log-body { display: none; }
#log-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 10px; background: transparent; cursor: pointer;
  font-size: 11px; letter-spacing: 1px; color: var(--text-3);
}
#log-header button {
  background: transparent; border: 1px solid var(--hairline-strong); color: var(--text-3);
  font-size: 10px; padding: 1px 8px;
}
#log-body {
  max-height: 120px; overflow-y: auto; padding: 4px 10px;
  font-family: Consolas, monospace; line-height: 1.7;
}
#log-body .log-info { color: var(--accent); }
#log-body .log-warn { color: #ba7517; }
#log-body .log-error { color: #d0433a; }
#log-body .log-time { color: var(--text-3); margin-right: 8px; }

/* 框选模式光标 */
#viewport.boxmode, #viewport.boxmode canvas { cursor: crosshair; }

/* 预览表：单击高亮行（浅青 → 仍用蓝系，保持单色） */
table.grid tbody tr.hl { background: var(--accent-bg); }
table.grid tbody tr.sel { background: var(--accent-bg); }
table.grid tbody tr.dim { color: #bbb; }

/* 可排序表头 */
#preview-table thead th { cursor: pointer; user-select: none; }
#preview-table thead th:hover { background: var(--accent-bg); }
#preview-table thead th.sort-asc::after { content: " ▲"; font-size: 9px; color: var(--accent); }
#preview-table thead th.sort-desc::after { content: " ▼"; font-size: 9px; color: var(--accent); }

/* det q 统计 */
.stats-line {
  font-size: 12px; color: var(--text-2); line-height: 1.8; margin-bottom: 6px;
  font-family: Consolas, "Microsoft YaHei", monospace;
}
.hint-inline { font-size: 11px; color: var(--text-3); font-weight: normal; }

/* 元素管理卡片（仿桌面版 QFrame 卡片风格） */
.func-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 8px 10px;
  margin-top: 4px;
}
.func-card .row { margin: 4px 0; }
.func-card select { width: 100%; }
.sep {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 8px 0;
}

/* ============================================================
 * 移动端适配（≤768px）—— 画布在上、面板在下
 * 纯 CSS，不依赖面板宽度，JS 均按容器实时尺寸计算，无副作用
 * ============================================================ */
@media (max-width: 768px) {
  /* 允许整页滚动，避免内容被裁 */
  body { overflow: auto; }

  /* ===== 顶栏：单行标准工具栏 —— 标题靠左(可截断)，按钮靠右 ===== */
  #topbar {
    gap: 4px;
    padding: 7px 10px;
    flex-wrap: nowrap;                 /* 强制单行，手机不换行 */
    justify-content: space-between;    /* 标题与按钮组分居两端 */
  }
  #topbar .title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;                    /* 可收缩不强制占满，给右侧按钮留位 */
    min-width: 0;
  }
  #topbar .title em { display: none; }        /* Web 版 V2 小字不显示 */
  #topbar .top-btn { padding: 6px 10px; font-size: 12px; flex-shrink: 0; }
  #topbar .undo-redo-btn { padding: 5px 8px; font-size: 15px; min-width: 30px; }
  #topbar .exit-btn {
    display: none;
  }
  #topbar .btn-group { display: flex; align-items: center; gap: 4px; }
  /* 桌面专属配置按钮和用户文字在手机端隐藏，避免挤压顶部工具栏 */
  #topbar .hide-mobile, #topbar #cur-user { display: none !important; }

  /* ===== 主区：上画布 + 下面板 ===== */
  #main { flex-direction: column; }

  /* 3D 视口在上，提升到约 52vh（原45vh偏矮，模型被压扁） */
  #viewport {
    flex: 0 0 52vh;
    min-height: 300px;
    order: 1;
    border-bottom: 1px solid var(--hairline);
  }

  /* 控制面板在下，占满宽度 */
  #panel {
    width: 100%;
    min-width: 0;
    flex: 1 1 48vh;
    order: 2;
    border-right: none;
    border-top: 1px solid var(--hairline);
  }
  #tabs { position: sticky; top: 0; z-index: 2; }
  .panel-group > summary {
    min-height: 40px;
    padding: 10px 10px 10px 12px;
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--accent);
    border-radius: var(--r-md);
    background: var(--surface);
    line-height: 18px;
  }
  .panel-group > section {
    padding: 8px 10px 2px;
    border: 1px solid var(--hairline);
    border-top: 0;
    border-radius: 0 0 var(--r-md) var(--r-md);
    background: var(--surface);
  }
  .panel-group-preview section.grow { min-height: 180px; }

  /* 预览表：可横滑，简化列内边距提升密度 */
  #preview-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #preview-table { min-width: 560px; }
  #preview-table td, #preview-table th { white-space: normal; padding: 3px 4px; font-size: 11px; }

  /* 文件按钮自适应 */
  .file-btn { min-width: 0; }
  .row { gap: 5px; }

  /* 方向键面板铺满宽度 */
  .dirpad { grid-template-columns: repeat(3, 1fr); }
  .dirpad button { min-height: 40px; }

  /* 移动端触摸目标 ≥40px */
  button { min-height: 40px; }
  .file-btn { min-height: 42px; }
  .top-btn { min-height: 36px; }
  .row.btns button, #tab-export .row button { min-height: 40px; }
  input[type="color"] { width: 46px; height: 32px; }
  input.num { width: 76px; min-height: 34px; }
  #sel-info { font-size: 11px; padding: 4px 10px; }

  /* 日志面板收紧（默认折叠，只露标题条） */
  #log-panel { max-height: 38px; }
  #log-panel.collapsed { max-height: 38px; }
  #log-body { max-height: 90px; }

  /* 选中信息条窄屏字号略减 */
  #sel-info { font-size: 11px; padding: 4px 10px; }

  /* 手机浏览器基本不支持拖放文件，隐藏拖拽提示（改由按钮选择） */
  #drop-hint { display: none !important; }
  #busy-state { font-size: 12px; }
  .busy-spinner { width: 16px; height: 16px; }
  #empty-state { padding: 18px; }
  #empty-state p { max-width: 280px; }
  .empty-actions { flex-direction: column; width: min(260px, 100%); }
  .empty-actions button { width: 100%; }

  /* ===== 色标条：缩小、更贴近右侧，避免单独占宽 ===== */
  #colorbar { right: 8px; top: 14%; bottom: 14%; gap: 2px; }
  #colorbar .cb-title { font-size: 10px; }
  #cb-bar { flex: 0 0 12px; }
  #cb-ticks { width: 40px; }
  .cb-tick { font-size: 9px; }

  /* 手机端保持 3D 视口干净：详情与日志进入控制面板工作流 */
  #atom-info, #sel-info, #log-panel { display: none !important; }
  #legend { left: 8px; top: 8px; max-width: 112px; padding: 4px 8px; font-size: 11px; line-height: 1.7; }
  #colorbar { opacity: .78; }

  /* 数据文件行：按钮与文件名垂直堆叠，避免重叠挤压 */
  #panel section .row .file-btn { width: 100%; flex: 0 0 auto; }
  .fname { display: block; width: 100%; font-size: 11px; margin-top: 2px; line-height: 1.4; }

  /* 演示横幅：移动端单行摘要，避免压缩 3D 视口 */
  #demo-banner {
    min-height: 32px;
    max-height: 34px;
    overflow: hidden;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px !important;
    padding: 7px 10px !important;
    line-height: 18px;
  }
  #demo-banner span { overflow: hidden; text-overflow: ellipsis; }
  #demo-banner a { flex: 0 0 auto; margin-left: 0; font-size: 11px; }
}

/* 备案信息：桌面端完整展示，移动端压缩为一行 */
.beian-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  padding: 12px 8px;
  background: var(--surface-2);
  border-top: 1px solid var(--hairline);
  line-height: 1.8;
}
.beian-footer p { margin: 2px 0; }
.beian-footer a { color: var(--text-2); text-decoration: none; }
.beian-footer a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 768px) {
  .beian-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    height: 26px;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }
  .beian-footer p { display: inline; margin: 0 !important; }
  .beian-footer p + p::before {
    content: " · ";
    color: var(--text-3);
    padding: 0 3px;
  }
  .beian-footer a { color: var(--text-2); }
}

/* 变体选择下拉框 */
.variant-picker {
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  box-shadow: var(--lift-sh);
}
.variant-picker option { padding: 4px 8px; }
