/* 雲盟出貨管理系統 — 介面樣式 */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e6ec;
  --text: #1c2430;
  --text-soft: #5b6675;
  --text-faint: #8b95a5;
  --primary: #1f5eff;
  --primary-soft: #e8efff;
  --primary-dark: #1448cc;
  --green: #14843c;
  --green-soft: #e3f4e9;
  --orange: #b25e09;
  --orange-soft: #fdf0de;
  --red: #c0392b;
  --red-soft: #fdeae7;
  --purple: #6b3fa0;
  --purple-soft: #f0e9f9;
  --gray-soft: #eef0f4;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 30, 50, 0.07);
  --sidebar-w: 208px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.hidden { display: none !important; }

/* ----- 登入（分割式：左品牌漸層 + 右表單） ----- */
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.login-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 72px 64px;
  color: #fff;
  background: linear-gradient(155deg, #0b1f4d 0%, #143a8f 45%, #1f5eff 100%);
}
/* 柔和光暈，營造層次但不雜亂 */
.login-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 78% 12%, rgba(120, 180, 255, 0.35), transparent 60%),
              radial-gradient(70% 60% at 12% 100%, rgba(20, 30, 90, 0.45), transparent 60%);
}
.login-aside-inner { position: relative; z-index: 1; max-width: 460px; }
.login-brand-name {
  margin: 0 0 18px;
  font-family: "LXGW WenKai TC", "Kaiti TC", "BiauKai", "DFKai-SB", "標楷體", serif;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 2px;
}
.login-aside-inner > p { margin: 0 0 34px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.80); }
.login-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.login-feats li { position: relative; padding-left: 28px; font-size: 14.5px; color: rgba(255, 255, 255, 0.92); }
.login-feats li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.login-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.login-card { width: 100%; max-width: 372px; }
.login-card-head { margin-bottom: 24px; }
.login-card-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--text); }
.login-card-head p { margin: 7px 0 0; font-size: 13.5px; color: var(--text-faint); }
.login-card label {
  display: block; margin: 16px 0 6px; font-weight: 600; color: var(--text-soft); font-size: 13px;
}
.login-card input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 15px; background: #fff; color: var(--text); box-sizing: border-box;
}
.login-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.login-card .btn-block { margin-top: 26px; padding: 12px; border-radius: 9px; font-size: 15px; }
.login-card .form-error { color: var(--red); margin: 14px 0 0; text-align: center; font-size: 13px; }
@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
}

/* ----- 版面 ----- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #16264a;
  color: #cdd6e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.brand-name { display: block; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 6px; }
.brand-sub { display: block; font-size: 12px; color: #8fa1c4; letter-spacing: 2px; margin-top: 2px; }
.sidebar-nav { flex: 1; padding: 14px 10px; }
.sidebar-nav a {
  display: block;
  padding: 10px 14px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: #cdd6e6;
  text-decoration: none;
  font-size: 14.5px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-nav a.active { background: var(--primary); color: #fff; font-weight: 600; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.operator-info { margin-bottom: 8px; font-size: 13px; }
.operator-label { display: block; color: #8fa1c4; font-size: 11px; }
#operator-name { color: #fff; font-weight: 600; }

.main { flex: 1; padding: 20px 26px 40px; min-width: 0; }

.banner-template {
  background: #fff8e6;
  border: 1px solid #f0dba8;
  color: #7a5b12;
  border-radius: var(--radius);
  padding: 9px 14px;
  font-size: 12.5px;
  margin-bottom: 18px;
}

/* ----- 通用元件 ----- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.page-title { font-size: 21px; font-weight: 700; margin: 0; }
.page-desc { color: var(--text-soft); font-size: 13px; margin: 2px 0 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.settings-sec { margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gray-soft);
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s ease, filter 0.12s ease;
}
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.btn:hover { filter: brightness(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); filter: none; }
.btn-outline { background: #fff; border-color: var(--border); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-ghost { background: transparent; color: #9fb0d0; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

.form-error { color: var(--red); font-size: 13px; margin: 10px 0 0; }

/* ----- 統計卡 ----- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20, 30, 50, 0.1); }
.stat-label { font-size: 12.5px; color: var(--text-soft); }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat-value small { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.stat-hint { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.stat-accent .stat-value { color: var(--primary); }
.stat-warn .stat-value { color: var(--orange); }
.stat-good .stat-value { color: var(--green); }
/* 卡片上緣色條，分類一眼可辨 */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--border); }
.stat-accent::before { background: var(--primary); }
.stat-warn::before { background: var(--orange); }
.stat-good::before { background: var(--green); }

/* ----- 篩選列 ----- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input[type="search"], .toolbar input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.toolbar input[type="search"] { width: 240px; }
.seg {
  display: inline-flex;
  background: var(--gray-soft);
  border-radius: 8px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 500;
}
.seg button.active { background: #fff; color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.toolbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--text-soft); font-size: 13px; }
.toolbar-right input[type="date"] {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
}

/* ----- 表格 ----- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13.5px;
}
table.data th {
  text-align: left;
  padding: 10px 14px;
  background: #f8fafc;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #eef1f5; vertical-align: top; }
table.data tr.row-click { cursor: pointer; }
table.data tr.row-click:hover { background: #f4f8ff; }
table.data td .sub { display: block; color: var(--text-faint); font-size: 12px; margin-top: 1px; }
.num { font-variant-numeric: tabular-nums; }
.empty-row td { text-align: center; color: var(--text-faint); padding: 36px 0; }

/* ----- 標籤 ----- */
.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-blue { background: var(--primary-soft); color: var(--primary-dark); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-orange { background: var(--orange-soft); color: var(--orange); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.tag-teal { background: #d9f2ef; color: #0f766e; }
.muted { color: var(--text-faint); }
.tag-gray { background: var(--gray-soft); color: var(--text-soft); }

/* ----- 批量操作 ----- */
.sel-cell { width: 36px; text-align: center; }
.sel-cell input { width: 16px; height: 16px; cursor: pointer; }
.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #16264a; color: #fff;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.bulk-count { font-size: 14px; }
.bulk-count strong { font-size: 16px; }
.bulk-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.2); }
.bulk-bar select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; background: #fff; color: var(--text); }
.btn-ghost-sm { background: transparent; color: #9fb0d0; border: 1px solid rgba(255,255,255,0.25); padding: 5px 10px; font-size: 12.5px; border-radius: 8px; cursor: pointer; }
.btn-ghost-sm:hover { color: #fff; }

/* 批量列印：每張面單一頁 */
.batch-labels { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ----- 分頁 ----- */
.pagination { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; flex-wrap: wrap; }
.pager-info { color: var(--text-soft); font-size: 13px; }
.pager-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.pager-btn { min-width: 34px; height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.pager-btn:hover:not(:disabled):not(.active) { background: var(--bg-soft, #f3f4f6); border-color: var(--text-faint); }
.pager-btn.active { background: var(--accent, #6b8afd); border-color: var(--accent, #6b8afd); color: #fff; cursor: default; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-edge { font-weight: 700; }
.pager-gap { color: var(--text-faint); padding: 0 2px; font-size: 13px; user-select: none; }

/* ----- 抽屜（訂單詳情） ----- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 40, 0.45);
  z-index: 40;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(560px, 94vw);
  background: var(--surface);
  z-index: 50;
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  overflow-y: auto;
  padding: 22px 24px 40px;
}
.drawer { padding: 0; background: var(--bg); }
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 22px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
.drawer-title { font-size: 22px; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.drawer-meta { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.drawer-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.drawer-head-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.drawer-back {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}
.drawer-back:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.drawer-close { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--text-faint); line-height: 1; padding: 4px; }
.drawer-close:hover { color: var(--text); }

.kv { display: grid; grid-template-columns: 76px 1fr; gap: 7px 12px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; word-break: break-all; }
.kv dd .sub { color: var(--text-faint); font-size: 12px; margin-left: 6px; }

/* 動作區：建單/列印 + 訂單狀態，集中於頂部一張卡 */
.dz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin: 14px 16px 0; padding: 14px; }
.dz-meta { font-size: 12.5px; color: var(--text-soft); margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dz-warn { background: var(--orange-soft); border: 1px solid #ecd3a8; color: var(--orange); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.dz-status { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.dz-status-label { font-weight: 700; font-size: 13px; color: var(--text-soft); flex-shrink: 0; }
.dz-status select { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; }
.dz-hint { font-size: 11.5px; color: var(--text-faint); margin: 6px 0 0; }
.manual-store { display: flex; flex-direction: column; gap: 10px; }
.manual-store .dz-warn { margin-bottom: 2px; }
.ms-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-soft); }
.ms-field .req { color: var(--orange); }
.ms-input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); background: #fff; }
.ms-input:focus { outline: none; border-color: var(--accent, #6b8afd); }
.ms-note { background: var(--bg-soft, #f6f7f9); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.ms-note-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-faint); margin-bottom: 4px; }
.ms-note pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.5; color: var(--text-soft); font-family: inherit; }
.btn-lg { padding: 11px 22px; font-size: 15px; }

/* 分組資訊卡 */
.dcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 16px 0; padding: 12px 14px; }
.dcard:last-child { margin-bottom: 30px; }
.dcard-t { font-size: 12px; font-weight: 700; color: var(--text-faint); letter-spacing: 1px; margin: 0 0 10px; }
.dcard-note { font-size: 13.5px; margin: 0; line-height: 1.6; }

/* 收件人醒目 */
.recip { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.recip-name { font-size: 18px; font-weight: 800; }
.recip-phone { font-size: 15px; color: var(--primary); text-decoration: none; font-weight: 600; }
.copy-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.copy-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-height: 30px;
}
.copy-label { color: var(--text-faint); font-size: 13.5px; }
.copy-value { min-width: 0; word-break: break-all; font-size: 13.5px; }
.copy-value.recip-name { font-size: 18px; font-weight: 800; color: var(--text); }
.recip-email { color: var(--primary); text-decoration: none; font-weight: 600; }
.recip-store { font-weight: 600; }
.copy-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text-soft);
  cursor: pointer;
}
.copy-btn:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.copy-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.copy-btn svg { width: 15px; height: 15px; display: block; }
.customer-details { display: block; }
.customer-details summary { list-style: none; }
.customer-details summary::-webkit-details-marker { display: none; }
.customer-summary-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
}
.customer-summary-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-toggle { color: var(--text-faint); font-size: 12px; }
.customer-details[open] .customer-toggle::before { content: "收合"; font-size: 12px; }
.customer-details[open] .customer-toggle { font-size: 0; }
.customer-summary { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.customer-sync { color: var(--text-faint); font-size: 12.5px; }
.customer-sync.warn { color: var(--orange); }
.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.customer-stats > div {
  background: #f6f8fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 9px;
  min-width: 0;
}
.customer-stats span { display: block; color: var(--text-faint); font-size: 11.5px; margin-bottom: 2px; }
.customer-stats strong { display: block; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.customer-kv { margin-top: 0; }
.customer-kv dd .sub { display: block; margin-left: 0; margin-top: 1px; }
.customer-orders { display: flex; flex-direction: column; border-top: 1px dashed var(--border); }
.customer-order {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 84px auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed #eef1f5;
  color: var(--text-soft);
  font-size: 12.5px;
}
.customer-order .tag { justify-self: end; }
.customer-empty { color: var(--text-faint); font-size: 13px; padding-top: 2px; }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.link-btn:hover { text-decoration: underline; }

/* 代收金額醒目 */
.cod-amt { font-size: 18px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }

.section-label { font-size: 13px; font-weight: 700; color: var(--text-soft); margin: 20px 0 8px; letter-spacing: 1px; }
.item-meta { color: var(--text-faint); font-size: 12px; display: block; }
.drawer-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.history-line { font-size: 12.5px; color: var(--text-soft); padding: 5px 0; border-bottom: 1px dashed #eef1f5; }
.history-line time { color: var(--text-faint); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* 商品明細：依系列分組，口味為主角，後勤撿貨一眼可核對 */
.item-list { display: flex; flex-direction: column; gap: 10px; }
.pg { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pg-name {
  background: #f3f5f8; color: var(--text-soft);
  font-size: 12px; font-weight: 600; line-height: 1.4;
  padding: 6px 10px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.pg-count { flex-shrink: 0; color: var(--text-faint); font-size: 11.5px; font-weight: 700; }
.pv {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-top: 1px solid #eef1f5;
}
.pg .pv:first-of-type { border-top: 0; }
.pv-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.pv-sku { display: block; font-size: 11px; color: var(--text-faint); font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 1px; }
.pv-qty {
  flex-shrink: 0;
  min-width: 40px; text-align: center;
  font-weight: 800; font-size: 16px;
  background: var(--gray-soft); color: var(--text);
  border-radius: 6px; padding: 3px 8px;
  font-variant-numeric: tabular-nums;
}
.pv-qty.multi { background: var(--red); color: #fff; }

/* 出貨回報批次 */
.batch-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #eef1f5;
  font-size: 13.5px;
}
.batch-line .sub { display: block; color: var(--text-faint); font-size: 12px; }
.export-advanced { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--text-faint); font-size: 12.5px; flex-wrap: wrap; }
.export-advanced input[type="date"] { padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; }

/* ----- 貨態看板 ----- */
.track-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: start; }
.track-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 120px; box-shadow: var(--shadow); }
.track-col h3 { margin: 0 0 10px; font-size: 13.5px; display: flex; justify-content: space-between; }
.track-col h3 .count { color: var(--text-faint); font-weight: 500; }
/* 色彩化欄頭 */
.tc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: -12px -12px 10px; padding: 9px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px; font-weight: 700;
}
.tc-head .count { font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0.85; }
.tc-body { display: flex; flex-direction: column; gap: 8px; }
.track-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-size: 12.5px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
.track-item:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(31,94,255,0.12); }
.track-item .t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.track-item .t-no { font-weight: 800; font-size: 13px; }
.track-item .t-cod { font-size: 12px; font-weight: 700; color: var(--orange); }
.track-item .t-cod.done { color: var(--green); }
.track-item .t-sub { color: var(--text-faint); margin-top: 1px; }
.track-empty { color: var(--text-faint); font-size: 12px; text-align: center; padding: 14px 0; }
.track-query-input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; width: 180px; }

/* ----- 報表 ----- */
.bar-row { display: grid; grid-template-columns: 96px 1fr 92px; align-items: center; gap: 12px; margin-bottom: 9px; font-size: 13px; }
.bar-label { color: var(--text-soft); }
.bar-sub { color: var(--text-faint); font-size: 11px; margin-left: 6px; }
.bar-val { text-align: right; color: var(--text); font-weight: 600; }
.bar-track { background: var(--gray-soft); border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #3d72ff, #1f5eff); border-radius: 6px; min-width: 3px; transition: width 0.3s ease; }
.bar-fill.alt { background: linear-gradient(90deg, #9466d6, #7c4dbc); }
.report-note { color: var(--text-faint); font-size: 12.5px; margin-top: 12px; }
.future-list { margin: 8px 0 0; padding-left: 20px; color: var(--text-soft); font-size: 13px; }
.future-list li { margin-bottom: 4px; }

/* ----- 設定表單 ----- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-grid label { display: block; font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 5px; }
.form-grid input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.switch-row { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch-row input { width: 18px; height: 18px; cursor: pointer; }

/* ----- Toast ----- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1c2430;
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.error { background: var(--red); }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-faint); padding: 60px 0; font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-icon { padding: 8px 11px; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon svg { width: 18px; height: 18px; display: block; }
.btn-icon.is-loading { opacity: .85; cursor: default; }
.btn-icon.is-loading svg { animation: spin 0.8s linear infinite; }
.refresh-pill { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1200;
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border: none; border-radius: 999px;
  background: var(--primary, #2f6df6); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); animation: pill-in .2s ease; }
.refresh-pill:hover { filter: brightness(1.06); }
.refresh-pill svg { width: 16px; height: 16px; }
.refresh-pill.hidden { display: none; }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ----- 面單列印 ----- */
.label-sheet {
  width: 105mm;
  background: #fff;
  border: 1px solid #000;
  margin: 20px auto;
  padding: 6mm;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #000;
}
.label-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #000; padding-bottom: 3mm; margin-bottom: 3mm; gap: 4mm; }
.label-logo { font-size: 18px; font-weight: 800; letter-spacing: 3px; }
.label-service { font-size: 12px; text-align: right; }
.label-sort { font-size: 30px; font-weight: 900; border: 2.5px solid #000; padding: 0.5mm 2.5mm; line-height: 1.2; white-space: nowrap; }
.label-store { font-size: 16px; font-weight: 700; margin-bottom: 1mm; }
.label-route { font-size: 14px; font-weight: 700; border: 1.5px solid #000; padding: 0 1.5mm; margin-left: 3mm; }
.label-store-code { font-size: 13px; }
.label-row { display: flex; justify-content: space-between; font-size: 13px; margin: 1.5mm 0; gap: 8px; }
.label-row .lab { color: #444; flex-shrink: 0; }
.label-cod { font-size: 17px; font-weight: 800; border: 2px solid #000; padding: 1.5mm 3mm; text-align: center; margin: 2.5mm 0; }
.label-barcode { text-align: center; margin: 3mm 0 1mm; }
.label-barcode svg { width: 100%; max-width: 88mm; height: auto; }
.label-no { text-align: center; font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.label-foot { border-top: 1px dashed #000; margin-top: 3mm; padding-top: 2mm; font-size: 11px; color: #333; }
.print-actions { text-align: center; margin: 18px 0; }

/* ----- 7-11 取貨面單（HPRT SL42 熱感印表機，100×150mm 標籤紙） ----- */
/* 熱感列印只有黑白、線條要粗、字要大，後勤一眼可讀。整張填滿 100×150mm。 */
.label-b2c {
  width: 100mm;
  height: 150mm;
  box-sizing: border-box;
  background: #fff;
  border: 0.8mm solid #000;
  margin: 16px auto 0;
  padding: 4mm 4mm 3mm;
  display: flex;
  flex-direction: column;
  color: #000;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.3;
  text-align: center;
}
.lb-type {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  border: 0.6mm solid #000;
  border-radius: 1.5mm;
  padding: 1mm 0;
  margin-bottom: 2.5mm;
}
.lb-picker {
  font-family: "Kaiti TC", "BiauKai", "DFKai-SB", "KaiTi", "標楷體", sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.15;
  margin-top: 1mm;
}
.lb-strong { font-size: 25px; font-weight: 800; margin-top: 1.5mm; letter-spacing: 1px; }
.lb-barcode { margin: 3.5mm 0 0; }
.lb-barcode svg { height: 22mm; max-width: 94mm; width: 100%; }
.lb-barcode-text { font-size: 19px; font-weight: 700; letter-spacing: 3px; font-variant-numeric: tabular-nums; margin-top: 0.5mm; }
/* 下方資訊區：照範例圖置中、逐行 label: value */
.lb-dates { margin-top: 4mm; }
.lb-line { font-size: 19px; font-weight: 700; margin-top: 1mm; letter-spacing: 0.5px; }

@media print {
  /* HPRT SL42 標籤紙 100×150mm，整張即一頁，無邊界 */
  @page { size: 100mm 150mm; margin: 0; }
  body { background: #fff; }
  .sidebar, .banner-template, .print-actions, .page-header, .toast { display: none !important; }
  .main { padding: 0; }
  .label-sheet { margin: 0; border: 1px solid #000; page-break-after: always; }
  .label-b2c {
    width: 100mm;
    height: 150mm;
    margin: 0;
    border: none; /* 標籤紙本身即邊界，省墨並避免裁切到框線 */
    page-break-after: always;
  }
  .batch-labels { display: block; gap: 0; }
  .batch-labels .label-b2c:last-child { page-break-after: auto; }
}

@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .sidebar-nav { display: flex; flex-wrap: wrap; }
  .sidebar-nav a { flex: 1 0 auto; text-align: center; }
}

@media (max-width: 480px) {
  .login-card { padding: 28px 22px; }
}

/* ---------- 貨態追蹤抽屜 ---------- */
.track-hero { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.track-hero .tag { font-size: 13px; padding: 5px 13px; }
.track-sub { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.track-sub .num { color: var(--text-soft); }

.track-returned { background: var(--red-soft); color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; }

.cod-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.track-steps { display: flex; margin: 6px 4px 4px; }
.track-step { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--text-faint); }
.track-step .sdot { width: 13px; height: 13px; border-radius: 50%; background: var(--border); margin: 0 auto 7px; position: relative; z-index: 1; }
.track-step::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-step.done .sdot { background: var(--primary); }
.track-step.done::before { background: var(--primary); }
.track-step.active .sdot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.track-step.active::before { background: var(--primary); }
.track-step.active { color: var(--primary-dark); font-weight: 700; }
.track-step.done { color: var(--text-soft); }

.track-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; background: var(--bg); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.track-facts .k { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.track-facts .v { font-size: 14px; color: var(--text); font-weight: 600; word-break: break-all; }

.track-sect { font-size: 12px; font-weight: 700; color: var(--text-soft); letter-spacing: 0.04em; margin: 0 0 12px; }

.track-timeline { list-style: none; margin: 2px 0 0; padding: 0; }
.track-timeline li:last-child { padding-bottom: 0; }
.track-timeline li { position: relative; padding: 0 0 16px 22px; }
.track-timeline li::before { content: ""; position: absolute; left: 5px; top: 13px; bottom: -3px; width: 2px; background: var(--border); }
.track-timeline li:last-child::before { display: none; }
.track-timeline .dot { position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--surface); }
.track-timeline li.is-current .dot { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.track-timeline .t-state { font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.track-timeline li.is-current .t-state { color: var(--text); font-weight: 600; }
.track-timeline time { font-size: 11px; color: var(--text-faint); }

.track-more { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.track-more summary { cursor: pointer; font-size: 13px; color: var(--text-soft); user-select: none; list-style: none; }
.track-more summary::-webkit-details-marker { display: none; }
.track-more summary::before { content: "▸ "; color: var(--text-faint); }
.track-more[open] summary::before { content: "▾ "; }

/* ---------- 營運報表 ---------- */
.rpt-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.rpt-range input[type="date"] { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; color: var(--text); }
.rpt-tilde { color: var(--text-faint); }

.kpi-delta { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.kpi-delta.up { color: var(--green); background: var(--green-soft); }
.kpi-delta.down { color: var(--red); background: var(--red-soft); }

.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rc-head .card-title { margin: 0; }
.rc-sub { font-size: 12px; color: var(--text-faint); }
.rc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media (max-width: 760px) { .rc-grid2 { grid-template-columns: 1fr; } }

.rc-line { width: 100%; height: auto; display: block; margin-top: 6px; }
.rc-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 3; }
.rc-ylab { fill: var(--text-faint); font-size: 11px; text-anchor: end; }
.rc-xlab { fill: var(--text-faint); font-size: 11px; text-anchor: middle; }
.rc-dot { fill: var(--primary); stroke: #fff; stroke-width: 1.5; transition: r 0.1s; }
.rc-dot:hover { r: 5; }

.rc-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rc-donut { width: 132px; height: 132px; flex-shrink: 0; }
.rc-legend { display: flex; flex-direction: column; gap: 8px; }
.rc-leg { font-size: 13px; color: var(--text-soft); display: flex; align-items: center; gap: 7px; }
.rc-leg b { color: var(--text); margin-left: 4px; }
.rc-dotc { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.rk-list { display: flex; flex-direction: column; gap: 10px; }
.rk-row { display: flex; align-items: center; gap: 10px; }
.rk-no { width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--gray-soft); color: var(--text-soft); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rk-no.top { background: var(--primary); color: #fff; }
.rk-main { flex: 1; min-width: 0; }
.rk-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.rk-bar { height: 7px; background: var(--gray-soft); border-radius: 4px; overflow: hidden; }
.rk-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); border-radius: 4px; }
.rk-val { font-size: 13px; font-weight: 700; color: var(--text); flex-shrink: 0; min-width: 64px; text-align: right; }

.fn-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fn-lab { width: 56px; flex-shrink: 0; font-size: 13px; color: var(--text-soft); }
.fn-bar { flex: 1; height: 22px; background: var(--gray-soft); border-radius: 6px; overflow: hidden; }
.fn-fill { height: 100%; background: linear-gradient(90deg, var(--primary-soft), var(--primary)); border-radius: 6px; }
.fn-fill.warn { background: linear-gradient(90deg, var(--red-soft), var(--red)); }
.rc-grid2.rc-eq { align-items: stretch; }
.rc-grid2.rc-eq > .card { height: 100%; display: flex; flex-direction: column; }
.fin-list { flex: 1; }

/* 代收金流：金額靠右對齊，筆數置於下方一行 */
.fin-list { display: flex; flex-direction: column; }
.fin-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.fin-row:last-child { border-bottom: none; }
.fin-lab { font-size: 13.5px; color: var(--text-soft); }
.fin-amt { text-align: right; font-size: 17px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.fin-amt small { display: block; font-size: 11px; font-weight: 500; color: var(--text-faint); margin-top: 2px; }
.fin-amt.good { color: var(--green); }
.fin-amt.warn { color: var(--red); }

/* 帳號管理 */
.tag-super { background: #fdecc8; color: #8a5a00; }
.u-cell { display: flex; align-items: center; gap: 10px; }
.u-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.audit-act { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--gray-soft); color: var(--text-soft); }
.audit-act.ok { background: var(--green-soft); color: var(--green); }
.audit-act.bad { background: var(--red-soft); color: var(--red); }

/* 出貨設定 */
.settings-wrap { max-width: 840px; }
.settings-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.settings-hero > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.sh-label { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 5px; }
.sh-value { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.sh-value small { font-size: 13px; font-weight: 500; color: var(--text-faint); }
.sh-sub { display: block; font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.settings-card { margin-bottom: 14px; }
.card-sub { font-size: 13px; color: var(--text-faint); margin: 0 0 16px; line-height: 1.55; }
.field-hint { display: block; font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.settings-save { position: sticky; bottom: 0; padding: 14px 0 6px; display: flex; justify-content: flex-end; background: linear-gradient(transparent, var(--bg) 35%); }
@media (max-width: 640px) { .settings-hero { grid-template-columns: 1fr; } }

/* 開關 toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.toggle-title { font-size: 14px; font-weight: 600; color: var(--text); }
.toggle-desc { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; line-height: 1.5; }
.toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch { width: 46px; height: 26px; border-radius: 999px; background: var(--border); position: relative; flex-shrink: 0; transition: background 0.15s; }
.toggle-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 30, 50, 0.25); transition: left 0.15s; }
.toggle-input:checked + .toggle-switch { background: var(--primary); }
.toggle-input:checked + .toggle-switch::after { left: 23px; }
.toggle-input:focus-visible + .toggle-switch { box-shadow: 0 0 0 3px var(--primary-soft); }

/* 帳號編輯抽屜 */
.form-stack label { display: block; font-size: 13px; color: var(--text-soft); margin: 12px 0 5px; font-weight: 600; }
.form-stack label:first-child { margin-top: 0; }
.form-stack > input, .form-stack > select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; color: var(--text); box-sizing: border-box; }
.form-stack > input:focus, .form-stack > select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.perm-presets { font-size: 13px; color: var(--text-faint); margin: 0 0 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.perm-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-faint); margin: 16px 0 8px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perm-item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--text); user-select: none; transition: border-color 0.12s, background 0.12s; }
.perm-item input { accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
.perm-item:hover { border-color: var(--text-faint); }
.perm-item:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
@media (max-width: 520px) { .perm-grid { grid-template-columns: 1fr; } }
.fn-val { font-size: 13px; font-weight: 700; color: var(--text); width: 40px; text-align: right; flex-shrink: 0; }

.kv-wide { grid-template-columns: 80px 1fr; }
.kv dd.good { color: var(--green); font-weight: 700; }
.kv dd.warn { color: var(--red); font-weight: 700; }

/* 折線圖 hover 提示 */
.rc-line { cursor: crosshair; }
.rc-guide { stroke: var(--primary); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.5; }
.rc-hl { fill: var(--primary); stroke: #fff; stroke-width: 2; }
.rc-tip { position: absolute; z-index: 60; transform: translate(-50%, calc(-100% - 12px)); background: var(--text); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(20, 30, 50, 0.22); display: none; }
.rc-tip b { display: block; font-weight: 500; font-size: 11px; opacity: 0.72; margin-bottom: 1px; }
.rc-head .card-title .rc-sub { font-weight: 400; }

/* 商品熱賣（縮圖 + 雙指標） */
.pk-row { gap: 10px; }
.pk-img { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: var(--gray-soft) center / cover no-repeat; border: 1px solid var(--border); }
.pk-vals { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; min-width: 84px; }
.pk-sub { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
