/* 素材库：沿用工作台 hy 设计令牌，只写本页组件（全部 ml- 前缀，避免和工作台样式冲突） */
.ml-page {
  --ml-brand: var(--hy-brand, #e54d2e);
  --ml-brand-hover: var(--hy-brand-hover, #cf3f21);
  --ml-brand-soft: var(--hy-brand-soft, #fff2ee);
  --ml-brand-ring: var(--hy-brand-ring, rgba(229, 77, 46, .16));
  --ml-surface: var(--hy-surface, #fff);
  --ml-subtle: var(--hy-subtle, #fafafa);
  --ml-muted-bg: var(--hy-muted-bg, #f3f3f5);
  --ml-hover: var(--hy-hover, #f0f0f2);
  --ml-border: var(--hy-border, #e6e6ea);
  --ml-border-strong: var(--hy-border-strong, #d4d4da);
  --ml-text: var(--hy-text, #18181b);
  --ml-text-2: var(--hy-text-2, #3f3f46);
  --ml-muted: var(--hy-muted, #71717a);
  --ml-faint: var(--hy-faint, #a1a1aa);
  --ml-ok: var(--hy-success, #16a34a);
  --ml-ok-soft: var(--hy-success-soft, #effbf3);
  --ml-warn: var(--hy-warn, #d97706);
  --ml-warn-soft: var(--hy-warn-soft, #fff8eb);
  --ml-danger: var(--hy-danger, #dc2626);
  --ml-danger-soft: var(--hy-danger-soft, #fef2f2);
  --ml-radius: var(--hy-radius, 8px);
  --ml-radius-lg: var(--hy-radius-lg, 12px);
  --ml-shadow: var(--hy-shadow, 0 4px 12px rgba(24, 24, 27, .06));
  --ml-shadow-lg: var(--hy-shadow-lg, 0 16px 48px rgba(24, 24, 27, .16));
}
.ml-page, .ml-modal, .ml-toast { font-family: var(--hy-font, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif); }
.ml-hidden { display: none !important; }
.ml-muted { color: var(--ml-muted); }
.ml-small { font-size: 12px; }
.ml-error { color: var(--ml-danger); min-height: 1.5em; margin: 0; }
.ml-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ml-between { justify-content: space-between; }
.ml-grow { flex: 1; }

.ml-page input, .ml-page select, .ml-page textarea, .ml-modal input, .ml-modal select, .ml-modal textarea {
  font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--ml-border); border-radius: var(--ml-radius);
  background: var(--ml-surface); color: var(--ml-text); min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.ml-page input:focus, .ml-page select:focus, .ml-page textarea:focus,
.ml-modal input:focus, .ml-modal select:focus, .ml-modal textarea:focus {
  outline: none; border-color: var(--ml-brand); box-shadow: 0 0 0 3px var(--ml-brand-ring);
}
.ml-modal textarea { width: 100%; resize: vertical; }

.ml-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: var(--ml-radius);
  border: 1px solid var(--ml-border); background: var(--ml-surface); color: var(--ml-text-2); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.ml-btn:hover { background: var(--ml-hover); border-color: var(--ml-border-strong); }
.ml-btn:disabled { opacity: .5; cursor: not-allowed; }
.ml-btn--primary { background: var(--ml-brand); border-color: var(--ml-brand); color: #fff; }
.ml-btn--primary:hover { background: var(--ml-brand-hover); border-color: var(--ml-brand-hover); }
.ml-btn--ok { color: var(--ml-ok); }
.ml-btn--warn { color: var(--ml-warn); }
.ml-btn--danger { color: var(--ml-danger); }
.ml-btn--sm { padding: 3px 9px; font-size: 12px; }
.ml-link { border: 0; background: none; color: var(--ml-brand); cursor: pointer; font: inherit; font-size: 13px; padding: 4px 6px; }
.ml-link:hover { color: var(--ml-brand-hover); text-decoration: underline; }

.ml-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--ml-muted-bg); color: var(--ml-text-2); }
.ml-pill.pending { background: var(--ml-warn-soft); color: var(--ml-warn); }
.ml-pill.approved { background: var(--ml-ok-soft); color: var(--ml-ok); }
.ml-pill.rejected { background: var(--ml-danger-soft); color: var(--ml-danger); }

/* hero 右侧统计 */
.ml-hero { align-items: stretch; }
.ml-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 300px; align-content: center; }
.ml-stat { background: var(--ml-subtle); border: 1px solid var(--ml-border); border-radius: var(--ml-radius);
  padding: 10px 12px; cursor: pointer; transition: border-color .15s; }
.ml-stat:hover { border-color: var(--ml-brand); }
.ml-stat b { display: block; font-size: 20px; line-height: 1.2; color: var(--ml-text); }
.ml-stat span { color: var(--ml-muted); font-size: 12px; }

/* 页签 */
.ml-tabs { display: flex; gap: 4px; margin: 16px 0 12px; border-bottom: 1px solid var(--ml-border); overflow-x: auto; }
.ml-tabs a { padding: 9px 14px; color: var(--ml-muted); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; font-weight: 500; text-decoration: none; }
.ml-tabs a:hover { color: var(--ml-text); }
.ml-tabs a.is-active { color: var(--ml-brand); border-bottom-color: var(--ml-brand); }
.ml-view > .panel + .panel { margin-top: 12px; }

/* 登录 */
.ml-login { max-width: 380px; margin: 24px auto; }
.ml-login-form { display: grid; gap: 12px; }
.ml-login-form h2 { margin: 0; font-size: 18px; }
.ml-login-form p { margin: 0; }

/* 筛选 */
.ml-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ml-filters .ml-grow { min-width: 220px; }
.ml-check { display: flex; gap: 4px; align-items: center; white-space: nowrap; font-size: 13px; color: var(--ml-text-2); }
.ml-tagbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 16px; max-height: 96px; overflow: auto; }
.ml-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ml-border); background: var(--ml-surface);
  cursor: pointer; font-size: 13px; color: var(--ml-text-2); transition: all .15s; }
.ml-chip:hover { border-color: var(--ml-brand); color: var(--ml-brand); }
.ml-chip.on { background: var(--ml-brand); border-color: var(--ml-brand); color: #fff; }
.ml-chip .n { color: var(--ml-faint); margin-left: 4px; font-size: 12px; }
.ml-chip.on .n { color: rgba(255, 255, 255, .75); }
.ml-chip.pending { border-style: dashed; }

.ml-batchbar { position: sticky; top: calc(var(--hy-topbar-h, 52px) + 8px); z-index: 5; display: flex; gap: 8px;
  align-items: center; flex-wrap: wrap; background: var(--ml-text); color: #fff; padding: 8px 12px;
  border-radius: var(--ml-radius-lg); margin-top: 12px; box-shadow: var(--ml-shadow); }
.ml-batchbar .ml-link { color: #ffb4a3; }

/* 网格 */
.ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.ml-tile { background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: var(--ml-radius-lg);
  overflow: hidden; position: relative; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.ml-tile:hover { box-shadow: var(--ml-shadow); }
.ml-tile.sel { border-color: var(--ml-brand); box-shadow: 0 0 0 2px var(--ml-brand-ring); }
.ml-tile .ml-img { aspect-ratio: 1 / 1; background: var(--ml-muted-bg); overflow: hidden; }
.ml-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ml-tile .ml-meta { padding: 8px 10px 10px; display: grid; gap: 4px; }
.ml-tile .ml-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.ml-tile .ml-tags span { font-size: 12px; background: var(--ml-brand-soft); color: var(--ml-brand); border-radius: 4px; padding: 0 6px; }
.ml-tile .ml-tags span.pending { background: var(--ml-warn-soft); color: var(--ml-warn); }
.ml-tile .ml-tags span.none { background: none; color: var(--ml-faint); padding: 0; }
.ml-tile .ml-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ml-muted); }
.ml-tile .ml-ocr { font-size: 12px; color: var(--ml-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-tile .ml-pick { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--ml-border); display: grid; place-items: center;
  font-size: 13px; color: transparent; }
.ml-tile:hover .ml-pick { color: var(--ml-faint); }
.ml-tile.sel .ml-pick { background: var(--ml-brand); color: #fff; border-color: var(--ml-brand); }
.ml-tile .ml-badge { position: absolute; top: 8px; right: 8px; }
.ml-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--ml-muted);
  background: var(--ml-surface); border: 1px dashed var(--ml-border); border-radius: var(--ml-radius-lg); }
.ml-pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; font-size: 13px; }

/* 上传 */
.ml-drop { border: 1.5px dashed var(--ml-border-strong); border-radius: var(--ml-radius-lg); padding: 36px 16px;
  text-align: center; background: var(--ml-subtle); transition: all .15s; }
.ml-drop.over { border-color: var(--ml-brand); background: var(--ml-brand-soft); }
.ml-drop p { margin: 4px 0; }
.ml-form { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.ml-form label { display: grid; gap: 4px; color: var(--ml-muted); font-size: 13px; }
.ml-span2 { grid-column: 1 / -1; }
.ml-queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.ml-queue:empty { display: none; }
.ml-qitem { position: relative; border-radius: var(--ml-radius); overflow: hidden; background: var(--ml-muted-bg); aspect-ratio: 1; }
.ml-qitem img { width: 100%; height: 100%; object-fit: cover; }
.ml-qitem .ml-st { position: absolute; left: 0; right: 0; bottom: 0; font-size: 12px; padding: 2px 6px;
  background: rgba(24, 24, 27, .65); color: #fff; }
.ml-qitem .ml-st.ok { background: rgba(22, 163, 74, .88); }
.ml-qitem .ml-st.err { background: rgba(220, 38, 38, .88); }
.ml-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* 表格 */
.ml-table-wrap { overflow-x: auto; margin-top: 12px; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ml-table th, .ml-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--ml-border); vertical-align: middle; }
.ml-table th { color: var(--ml-muted); font-weight: 500; background: var(--ml-subtle); }
.ml-table td input { width: 100%; }

/* 详情弹窗 */
.ml-modal { position: fixed; inset: 0; background: rgba(24, 24, 27, .55); z-index: 200; display: grid; place-items: center; padding: 16px; }
.ml-modal-body { position: relative; background: var(--hy-surface, #fff); border-radius: var(--hy-radius-lg, 12px);
  width: min(1200px, 100%); height: min(860px, 100%); display: grid; grid-template-columns: 1fr 400px; overflow: hidden;
  box-shadow: var(--hy-shadow-lg, 0 16px 48px rgba(24, 24, 27, .16)); color: var(--hy-text, #18181b); }
.ml-close { position: absolute; top: 8px; right: 10px; z-index: 2; border: 0; background: none; font-size: 26px; cursor: pointer;
  color: var(--hy-muted, #71717a); line-height: 1; }
.ml-detail-img { background: #18181b; overflow: auto; display: flex; justify-content: center; align-items: flex-start; }
.ml-detail-img img { max-width: 100%; display: block; }
.ml-detail-side { overflow: auto; padding: 20px; display: grid; gap: 18px; align-content: start; font-size: 14px; }
.ml-detail-side h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.ml-kv { display: grid; grid-template-columns: 64px 1fr; gap: 4px 8px; font-size: 13px; }
.ml-kv > span:nth-child(odd) { color: var(--hy-muted, #71717a); }
.ml-kv a, .ml-kv span { word-break: break-all; }
.ml-dtag { border: 1px solid var(--hy-border, #e6e6ea); border-radius: var(--hy-radius, 8px); padding: 8px 10px; display: grid; gap: 6px; }
.ml-dtag .ml-head { display: flex; justify-content: space-between; align-items: center; }
.ml-dtag input { width: 100%; font-size: 13px; }
.ml-review { display: flex; gap: 8px; flex-wrap: wrap; }
.ml-logs { font-size: 12px; color: var(--hy-muted, #71717a); display: grid; gap: 2px; max-height: 160px; overflow: auto; }
.ml-modal .ml-btn--ok, .ml-modal .ml-btn--warn, .ml-modal .ml-btn--danger { background: var(--hy-surface, #fff); }

.ml-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: #18181b; color: #fff;
  padding: 8px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 300; font-size: 14px; }
.ml-toast.show { opacity: 1; }

@media (max-width: 960px) {
  .ml-stats { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ml-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ml-form { grid-template-columns: 1fr; }
  .ml-modal { padding: 0; }
  .ml-modal-body { grid-template-columns: 1fr; grid-template-rows: 45vh 1fr; border-radius: 0; height: 100%; }
}


/* ---------- 看图模式（默认）：只留搜索、关键词、图片 ---------- */
.ml-hero { position: relative; }
.ml-mode { position: absolute; top: 0; right: 0; }
.ml-simple .ml-mode { position: static; align-self: flex-start; }
.ml-simple .ml-hero .eyebrow, .ml-simple .ml-hero p, .ml-simple #stats, .ml-simple #tabs, .ml-simple #batchbar,
.ml-simple .ml-filters > :not(#fQ):not(#fStatus), .ml-simple .ml-tile .ml-pick,
.ml-simple .ml-tile .ml-ocr, .ml-simple .ml-tile .ml-line { display: none !important; }
.ml-simple .ml-hero h1 { font-size: 22px; margin: 0; }
.ml-simple .ml-hero { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; }
.ml-simple .ml-page { max-width: none !important; width: auto !important; margin: 0 !important; padding: 20px 24px 40px !important; }
.ml-simple .ml-filters { flex-wrap: nowrap; }
.ml-simple .ml-filters #fQ { flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; font-size: 15px; padding: 10px 14px; }
.ml-simple .ml-filters #fStatus { flex: 0 0 130px !important; width: 130px !important; padding: 10px 12px; }
.ml-simple .ml-tagbar { padding-top: 0; }
.ml-simple .ml-tagbar { max-height: none; }
.ml-simple .ml-grid { display: block; columns: 220px; column-gap: 14px; }
.ml-simple .ml-tile { display: block; break-inside: avoid; margin-bottom: 14px; cursor: zoom-in; }
.ml-simple .ml-tile .ml-img { aspect-ratio: auto; }
.ml-simple .ml-tile img { height: auto; object-fit: contain; }
.ml-simple .ml-tile .ml-meta { padding: 6px 10px 8px; }
.ml-sd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-sd-tags span { background: var(--ml-brand-soft); color: var(--ml-brand); border-radius: 6px; padding: 3px 10px; font-size: 14px; }
.ml-sd-tags span.none { background: none; color: var(--ml-faint); padding: 0; }
.ml-sd-ocr { white-space: pre-wrap; font-size: 14px; line-height: 1.7; background: var(--ml-muted-bg); border-radius: 8px; padding: 10px 12px; max-height: 320px; overflow: auto; }


/* ---------- 图片 / 评价问答 切换 ---------- */
.ml-area { display: inline-flex; background: var(--ml-muted-bg, #f1f1f3); border-radius: 10px; padding: 3px; gap: 2px; margin-left: auto; margin-right: 10px; }
.ml-area a { padding: 6px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ml-muted, #666); text-decoration: none; }
.ml-area a.on { background: #fff; color: var(--ml-brand, #e8462e); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ml-hero .ml-area { position: absolute; top: 0; right: 80px; }
.ml-simple .ml-hero .ml-area { position: static; }
.ml-in-voc .ml-mode, .ml-in-voc #stats, .ml-in-voc #tabs { display: none !important; }
.ml-voc-products { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ml-voc-filters { flex-wrap: nowrap; }
.ml-voc-filters #vocQ { flex: 1 1 auto !important; width: auto !important; min-width: 0; font-size: 15px; padding: 10px 14px; }
.ml-voc-filters #vocKind { flex: 0 0 140px !important; width: 140px !important; }
.ml-voc-filters a.ml-btn { flex: none; text-decoration: none; display: inline-flex; align-items: center; }
.ml-voc-list { display: grid; gap: 10px; margin-top: 12px; }
.ml-voc-head { font-size: 15px; padding: 2px 4px; }
.ml-voc-card { background: var(--ml-surface, #fff); border: 1px solid var(--ml-border, #eee); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.ml-voc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.ml-voc-item { color: var(--ml-muted, #777); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ml-voc-content { font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.ml-voc-answer { font-size: 14px; line-height: 1.7; white-space: pre-wrap; background: var(--ml-muted-bg, #f6f6f7); border-radius: 8px; padding: 8px 12px; color: #333; }
.ml-voc-sub { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--ml-muted, #777); align-items: center; }
.ml-voc-sub .tag { background: var(--ml-brand-soft, #fff1ee); color: var(--ml-brand, #e8462e); border-radius: 4px; padding: 1px 6px; }
.ml-voc-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-voc-imgs img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; display: block; }
.ml-voc-reply { font-size: 13px; color: #8a5a00; background: #fff8e6; border-radius: 8px; padding: 6px 10px; }
.ml-voc-meta { font-size: 12px; color: var(--ml-faint, #999); }

/* 管理员的「上传素材」按钮：看图模式排在「管理」左边，管理模式放在右上角 */
.ml-upgo { position: absolute; top: 0; right: 84px; }
.ml-simple .ml-upgo { position: static; align-self: flex-start; margin-left: auto; margin-right: 8px; }
.ml-in-voc .ml-upgo { display: none !important; }

/* 打标签按钮 + 标签框 */
.ml-tile .ml-tagbtn { position: absolute; right: 8px; top: 8px; padding: 3px 9px;
  border-radius: 999px; border: 1px solid var(--ml-border); background: rgba(255, 255, 255, .92); color: var(--ml-text);
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; opacity: .85; transition: opacity .15s, border-color .15s, color .15s; }
.ml-tile:hover .ml-tagbtn, .ml-tile.tp-on .ml-tagbtn { opacity: 1; }
.ml-tile .ml-tagbtn:hover, .ml-tile.tp-on .ml-tagbtn { border-color: var(--ml-brand); color: var(--ml-brand); }
.ml-tile.tp-on { border-color: var(--ml-brand); box-shadow: 0 0 0 2px var(--ml-brand-ring); }
.ml-tp { position: fixed; z-index: 60; width: 340px; max-height: min(520px, calc(100vh - 24px)); display: flex; flex-direction: column;
  background: var(--ml-surface); border: 1px solid var(--ml-border); border-radius: var(--ml-radius-lg); box-shadow: var(--ml-shadow-lg); }
.ml-tp-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 8px; }
.ml-tp-head b { font-size: 15px; }
.ml-tp-sub { color: var(--ml-muted); font-size: 12px; flex: 1; }
.ml-tp-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ml-faint); cursor: pointer; padding: 0 2px; }
.ml-tp-x:hover { color: var(--ml-text); }
.ml-tp-search { padding: 0 14px 8px; }
.ml-tp-search input { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid var(--ml-border); border-radius: var(--ml-radius);
  background: var(--ml-surface); color: var(--ml-text); font-size: 13px; outline: none; }
.ml-tp-search input:focus { border-color: var(--ml-brand); box-shadow: 0 0 0 3px var(--ml-brand-ring); }
.ml-tp-label { padding: 4px 14px; font-size: 12px; color: var(--ml-muted); }
.ml-tp-label span { color: var(--ml-faint); margin-left: 4px; }
.ml-tp-picked, .ml-tp-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.ml-tp-picked { min-height: 28px; border-bottom: 1px solid var(--ml-border); padding-bottom: 10px; }
.ml-tp-list { overflow-y: auto; flex: 1; min-height: 60px; align-content: flex-start; }
.ml-tp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--ml-border); background: var(--ml-surface); color: var(--ml-text); cursor: pointer; user-select: none; }
.ml-tp-chip:hover { border-color: var(--ml-brand); color: var(--ml-brand); }
.ml-tp-chip.on { background: var(--ml-brand); border-color: var(--ml-brand); color: #fff; }
.ml-tp-chip.partial { border-style: dashed; border-color: var(--ml-brand); color: var(--ml-brand); background: var(--ml-brand-soft); }
.ml-tp-chip.s-pending:not(.on) { border-style: dashed; }
.ml-tp-chip.add { border-style: dashed; color: var(--ml-brand); }
.ml-tp-chip i { font-style: normal; font-size: 11px; opacity: .8; }
.ml-tp-chip i.new { background: var(--ml-warn-soft); color: var(--ml-warn); border-radius: 4px; padding: 0 4px; opacity: 1; }
.ml-tp-chip .rm { font-weight: normal; margin-left: 2px; opacity: .75; }
.ml-tp-chip .rm:hover { opacity: 1; }
.ml-tp-empty { color: var(--ml-faint); font-size: 12px; padding: 3px 0; }
.ml-tp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--ml-border); }
.ml-tp-hint { flex: 1; font-size: 12px; color: var(--ml-faint); }
.ml-tp.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 75vh; border-radius: var(--ml-radius-lg) var(--ml-radius-lg) 0 0; }
.ml-tp.sheet .ml-tp-hint { visibility: hidden; }
.ml-tp-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 14px 8px; font-size: 12px; color: var(--ml-muted); }
.ml-tp-pager button { border: 1px solid var(--ml-border); background: var(--ml-surface); color: var(--ml-text); border-radius: var(--ml-radius);
  padding: 3px 10px; font-size: 12px; cursor: pointer; }
.ml-tp-pager button:hover:not(:disabled) { border-color: var(--ml-brand); color: var(--ml-brand); }
.ml-tp-pager button:disabled { opacity: .4; cursor: default; }
