:root {
  --bg: #0e1014;
  --panel: #16191f;
  --panel-2: #1d2129;
  --line: #2a2f3a;
  --text: #e7e9ee;
  --muted: #8a92a2;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --danger: #ff5a52;
  --ok: #35c46a;
  --blue: #4c9dff;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.app { min-height: 100dvh; display: flex; flex-direction: column; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.icon { flex: none; display: block; }

/* ---------- 按钮、输入框 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; white-space: nowrap;
  background: var(--panel-2); border: 1px solid var(--line); transition: background .15s, border-color .15s;
}
.btn:hover:not(:disabled) { background: #262b35; border-color: #3a4150; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #1a0d02; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; height: 40px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--text);
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }
.icon-btn.on { background: var(--accent); color: #1a0d02; }
.link-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border: 0; background: none;
  color: var(--muted); font-size: 12px; border-radius: 4px;
}
.link-btn:hover { color: var(--text); }
.link-btn.danger:hover { color: var(--danger); }
.input {
  width: 100%; height: 36px; padding: 0 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); outline: none;
}
textarea.input { height: auto; padding: 8px 10px; resize: none; line-height: 1.5; }
.input:focus { border-color: var(--accent); }
.input::placeholder { color: #626a79; }
select.input { padding-right: 6px; }
.field { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.field .input { margin-top: 6px; color: var(--text); font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.error-text { color: var(--danger); font-size: 13px; margin: 0 0 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; height: 19px; border-radius: 5px;
  font-size: 11px; background: var(--panel-2); color: var(--muted); white-space: nowrap;
}
.tag-client { background: rgba(255, 122, 26, .16); color: #ffa15c; }
.tag-team { background: rgba(76, 157, 255, .14); color: #7db6ff; }
.tag-draw { background: rgba(255, 204, 0, .13); color: #ffd84d; }
.tag-done { background: rgba(53, 196, 106, .14); color: var(--ok); }
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; white-space: nowrap; }
.st-reviewing { background: rgba(76, 157, 255, .16); color: #7db6ff; }
.st-revising { background: rgba(255, 190, 60, .16); color: #ffc65c; }
.st-awaiting { background: rgba(178, 120, 255, .17); color: #c9a2ff; }
.st-closed { background: rgba(53, 196, 106, .15); color: var(--ok); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--panel-2); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.seg button.on { background: #333a47; color: var(--text); }
.scroll-x { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }

.spinner {
  width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.spinner-sm { width: 14px; height: 14px; border-width: 2px; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px; flex: none;
  background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; margin-right: 14px; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.nav a.on { color: var(--text); background: var(--panel-2); }
.user-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; max-width: 130px; overflow: hidden; white-space: nowrap; }
.user-btn:hover { background: rgba(255, 255, 255, .09); }
.bell { position: relative; }
.dot {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
}
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; padding: 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
}
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 8px; color: var(--muted); font-size: 12px; }
.menu-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; text-align: left; white-space: nowrap; }
.menu-item:hover { background: rgba(255, 255, 255, .08); }
.menu-item.danger { color: var(--danger); }
.notif-menu { width: min(340px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.notif { display: block; width: 100%; padding: 9px 10px 9px 18px; border: 0; border-radius: 7px; background: none; text-align: left; position: relative; }
.notif:hover { background: rgba(255, 255, 255, .06); }
.notif.unread::before { content: ""; position: absolute; left: 7px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notif-title { font-weight: 500; }
.notif:not(.unread) .notif-title { color: var(--muted); font-weight: 400; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------- 弹窗、提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .62); overflow-y: auto;
}
.modal {
  width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 17px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 130px; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.form-grid .input { margin-top: 6px; color: var(--text); font-size: 14px; }
.sub-title { margin: 20px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.share-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.share-row.invalid { opacity: .5; }
.share-info { flex: 1; min-width: 0; font-size: 12px; }
.share-link { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toasts { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 9px 16px; border-radius: 10px; background: #2c323e; border: 1px solid #3c4352; box-shadow: 0 8px 28px rgba(0, 0, 0, .45); animation: toast-in .2s ease-out; }
.toast-ok { border-color: rgba(53, 196, 106, .6); }
.toast-error { border-color: rgba(255, 90, 82, .7); color: #ffd9d6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px; margin-bottom: 12px;
  border: 1.5px dashed #3a4150; border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: rgba(255, 122, 26, .06); }
.dropzone.picked { border-style: solid; }
.file-name { font-weight: 600; word-break: break-all; }
.progress-box { margin-top: 14px; }
.progress { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width .3s; }
.progress-text { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 7px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 登录、分享入口 ---------- */
.center-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; padding: 28px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.brand-big { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand-big h1 { font-size: 20px; }
.share-title { margin: 6px 0 20px; font-size: 20px; }
.auth-card .hint.center { margin: 14px 0 0; }

/* ---------- 列表页 ---------- */
.page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 18px 16px 40px; }
.page.narrow { max-width: 820px; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { font-size: 18px; }
.search { width: 190px; }
.page-msg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: var(--muted); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: block; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: #414a5b; }
.card-cover { position: relative; aspect-ratio: 16 / 9; background: #000; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: #3d4452; }
.cover-tag, .cover-badge { position: absolute; bottom: 8px; padding: 1px 7px; border-radius: 5px; font-size: 12px; }
.cover-tag { left: 8px; background: rgba(0, 0, 0, .72); font-variant-numeric: tabular-nums; }
.cover-badge { right: 8px; background: var(--accent); color: #1a0d02; font-weight: 600; }
.card-body { padding: 11px 13px 13px; }
.card-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.row { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.row + .row { border-top: 1px solid var(--line); }
.row.off .row-main { opacity: .5; }
.row-main { flex: 1; min-width: 160px; }
.row-title { font-weight: 600; }
.role-select { width: 108px; height: 28px; font-size: 13px; }

/* ---------- 审片页 ---------- */
.page-review { height: 100dvh; overflow: hidden; }
.review { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.review-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; flex: none; background: var(--panel); border-bottom: 1px solid var(--line); }
.review-title { min-width: 0; flex: 0 1 auto; }
.review-title h1 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-title .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-select { width: auto; max-width: 150px; height: 34px; }
.actions { display: flex; align-items: center; gap: 6px; }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; flex: none; font-size: 13px; background: #1b2230; border-bottom: 1px solid var(--line); color: #b9c6dc; }
.banner-warn { background: #2b2314; color: #ffd68a; }
.banner-ok { background: #15261c; color: #9fe0b7; }
.review-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; }
.review-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.version-note { padding: 7px 14px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); }

/* 播放器 */
.player { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #000; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; cursor: pointer; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.draw-layer { position: absolute; pointer-events: none; }
.draw-layer.active { pointer-events: auto; cursor: crosshair; touch-action: none; outline: 2px solid var(--accent); outline-offset: -2px; }
.big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; padding-left: 5px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none;
}
.stage-msg, .stage-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.stage-wait { pointer-events: none; }
.hd-ready { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 10px; background: rgba(24, 28, 36, .94); border: 1px solid var(--line); white-space: nowrap; cursor: default; }
.draw-bar { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 12px; background: rgba(24, 28, 36, .94); border: 1px solid var(--line); cursor: default; max-width: calc(100% - 16px); }
.draw-bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; flex: none; }
.color-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid transparent; padding: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.color-dot.on { border-color: #fff; transform: scale(1.15); }
.controls { flex: none; padding: 0 10px 6px; background: #0a0b0e; }
.timeline { position: relative; height: 22px; cursor: pointer; touch-action: none; }
.track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: #333946; overflow: hidden; }
.fill { height: 100%; background: var(--accent); }
.thumb { position: absolute; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.marker { position: absolute; top: 0; width: 9px; height: 9px; margin-left: -4.5px; padding: 0; border-radius: 50%; border: 1.5px solid #0a0b0e; background: var(--blue); }
.marker.client { background: var(--accent); }
.marker.resolved { background: #5d6675; }
.marker.on { transform: scale(1.45); border-color: #fff; z-index: 1; }
.control-row { display: flex; align-items: center; gap: 2px; }
.timecode { margin-left: 8px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-select { height: 28px; padding: 0 4px; border-radius: 7px; background: transparent; border: 1px solid var(--line); font-size: 13px; margin: 0 3px; }
.player.fullscreen { width: 100vw; height: 100vh; }

/* 意见列表 */
.comment-list { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; flex: none; border-bottom: 1px solid var(--line); }
.list-body { flex: 1; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.comment { padding: 9px 10px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
.comment:hover { background: rgba(255, 255, 255, .035); }
.comment.active { background: rgba(255, 122, 26, .09); border-color: rgba(255, 122, 26, .5); }
.comment.resolved .c-text, .comment.resolved .c-transcript { color: var(--muted); }
.c-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.tc-chip { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 6px; border: 0; background: rgba(255, 122, 26, .16); color: #ffa15c; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.tc-chip.tc-none, .tc-chip.off { background: var(--panel-2); color: var(--muted); font-family: inherit; }
.resolve { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.resolve input { accent-color: var(--ok); width: 15px; height: 15px; margin: 0; }
.c-main { display: flex; gap: 9px; }
.c-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.c-content { flex: 1; min-width: 0; }
.c-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-name { font-weight: 600; font-size: 13px; }
.c-date { font-size: 11px; }
.c-text { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.c-extras { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.c-transcript { margin-top: 5px; padding-left: 8px; border-left: 2px solid var(--line); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.c-actions { display: flex; gap: 8px; margin-top: 4px; margin-left: -4px; }
.replies { margin: 8px 0 0 37px; padding-left: 10px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.reply-box { display: flex; gap: 6px; align-items: center; margin: 8px 0 0 37px; }
.reply-box .input { height: 30px; font-size: 13px; }

/* 语音气泡 */
.voice { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 0; border-radius: 15px; background: #2f8f4e; color: #fff; }
.voice:hover { background: #37a35a; }
.voice-wave { display: inline-flex; align-items: center; gap: 2.5px; flex: 1; }
.voice-wave i { width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .9); }
.voice-wave i:nth-child(1) { height: 6px; } .voice-wave i:nth-child(2) { height: 12px; }
.voice-wave i:nth-child(3) { height: 8px; } .voice-wave i:nth-child(4) { height: 14px; }
.voice.playing .voice-wave i { animation: wave .7s ease-in-out infinite alternate; }
.voice.playing .voice-wave i:nth-child(2) { animation-delay: .15s; }
.voice.playing .voice-wave i:nth-child(3) { animation-delay: .3s; }
.voice.playing .voice-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.voice-len { font-size: 12px; font-variant-numeric: tabular-nums; }

/* 写意见 */
.composer { flex: none; padding: 9px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.composer-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.tc-toggle { cursor: pointer; }
.voice-draft { display: inline-flex; align-items: center; gap: 4px; }
.x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--text); }
.x:hover { background: var(--danger); }
.composer-row { display: flex; flex-direction: column; gap: 7px; }
.composer-btns { display: flex; align-items: center; gap: 4px; }
.composer-btns .icon-btn { border: 1px solid var(--line); }
.composer-btns .send { margin-left: auto; }
.recording { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .review-body { display: flex; flex-direction: column; }
  .review-main { flex: none; }
  .player { flex: none; }
  .stage { flex: none; aspect-ratio: 16 / 9; }
  .player.fullscreen .stage { flex: 1; aspect-ratio: auto; }
  .review-side { flex: 1; border-left: 0; border-top: 1px solid var(--line); }
  .version-note { display: none; }
  .review-bar { flex-wrap: wrap; gap: 6px 8px; padding: 6px 8px; }
  .review-title { flex: 1 1 0; }
  .review-bar > .grow { display: none; }
  .actions { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .actions::-webkit-scrollbar { display: none; }
  .actions .btn { height: 30px; padding: 0 10px; font-size: 13px; }
  .version-select { height: 30px; }
  .timecode .muted { display: none; }
  .controls { padding: 0 6px 4px; }
  .control-row .icon-btn { width: 29px; }
  .timecode { margin-left: 4px; font-size: 12px; }
  .mini-select { margin: 0 1px; padding: 0 1px; font-size: 12px; max-width: 62px; }
  .brand span { display: none; }
  .search { width: 100%; order: 3; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .draw-bar { gap: 1px; padding: 4px; }
  .draw-bar .icon-btn { width: 30px; height: 30px; }
  .menu-wrap .menu { position: fixed; right: 8px; top: auto; }
}

/* ---------- 写意见：当前画面 / 整体意见 ---------- */
.seg.scope button { height: 24px; font-size: 12px; }
.seg.scope button.on { background: rgba(255, 122, 26, .2); color: #ffa15c; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ---------- 分享 ---------- */
.link-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; margin-bottom: 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.link-box .share-link { flex: 1; min-width: 0; font-size: 14px; user-select: all; }
.share-opts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.share-opts .check { margin: 0; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.inline-field .input { width: auto; height: 30px; color: var(--text); }

/* ---------- 统计 ---------- */
.stats-total { margin: 0 0 16px; color: var(--muted); }
.stats-total b { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.stats-card { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.stats-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; }
.stats-title { font-weight: 600; font-size: 15px; }
.stats-title:hover { color: var(--accent); }
.stats-empty { padding: 0 14px 14px; font-size: 13px; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.data-table th { padding: 8px 14px; text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; background: rgba(255, 255, 255, .02); }
.data-table td { padding: 9px 14px; border-top: 1px solid var(--line); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .strong { font-weight: 600; }
