:root {
  color-scheme: dark;
  --accent: #df6348;
  --canvas: #0d0f0e;
  --glass: rgba(18, 20, 21, .74);
  --text: #fffdfa;
  --muted: #c3c6c4;
  --line: rgba(255, 255, 255, .16);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--canvas); color: var(--text); }
body { -webkit-tap-highlight-color: transparent; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #ff9a7c; outline-offset: 2px; }
[hidden] { display: none !important; }
.app-shell { width: 100%; min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); }
.demo-ribbon { min-height: 24px; padding: 4px max(14px, calc((100vw - 520px) / 2)); display: flex; align-items: center; justify-content: center; gap: 8px; background: #281a16; color: #f3c0b2; font-size: 10px; letter-spacing: .02em; }
.demo-ribbon span:first-child { color: #fff; border: 1px solid #e78066; border-radius: 999px; padding: 1px 6px; }
.topbar { min-height: 58px; width: min(100%, 520px); margin: 0 auto; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 16px; font-weight: 720; letter-spacing: .01em; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13px; transform: rotate(-5deg); }
.top-controls { display: flex; align-items: center; gap: 6px; }
.top-controls select, .top-controls input { max-width: 116px; height: 31px; border: 1px solid var(--line); border-radius: 9px; padding: 0 7px; background: #1b1e1d; color: #f6f4ef; font-size: 10px; }
.top-controls input { width: 115px; color-scheme: dark; }
.style-selector { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.07); }
.style-selector button { min-height: 29px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.76); font-size: 11px; white-space: nowrap; }
.style-selector button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.main-content { flex: 1; min-height: 0; width: min(100%, 520px); margin: 0 auto; padding: 0 12px 10px; display: flex; flex-direction: column; }
.batch-heading { min-height: 66px; display: flex; justify-content: space-between; align-items: center; padding: 1px 2px 7px; gap: 8px; }
.batch-title { min-width: 0; }
.batch-composition { display: inline-block; margin-top: 3px; color: #f1b9a8; font-size: 9px; font-variant-numeric: tabular-nums; }
.batch-toolbar { display: flex; align-items: center; gap: 7px; margin: 0 2px 8px; }
.batch-toolbar select, .batch-toolbar input { height: 29px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #1b1e1d; color: #f6f4ef; font-size: 10px; }
.batch-toolbar select { max-width: 128px; }
.batch-toolbar input { width: 124px; color-scheme: dark; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
h1 { margin: 0; font-size: 17px; letter-spacing: .01em; font-weight: 690; }
.batch-progress { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 3px; text-align: right; color: #dbdfdc; font-size: 10px; }
.batch-progress strong { color: var(--accent); font-size: 21px; font-variant-numeric: tabular-nums; }
.batch-progress small { grid-column: 1 / -1; color: #b4bab7; font-size: 9px; }
.stage { position: relative; isolation: isolate; flex: 1; min-height: 460px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: #252826; touch-action: none; }
#candidate-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; background: #292e2b; }
.video-vignette { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, transparent 19%, transparent 47%, rgba(0,0,0,.15) 65%, rgba(0,0,0,.74) 100%); pointer-events: none; }
.video-toggle { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; border: 0; background: transparent; }
.play-mark { width: 0; height: 0; margin-left: 7px; border-top: 24px solid transparent; border-bottom: 24px solid transparent; border-left: 37px solid rgba(255,255,255,.72); filter: drop-shadow(0 2px 8px rgba(0,0,0,.32)); opacity: 0; transform: scale(.95); transition: opacity .18s, transform .18s; }
.video-toggle.is-paused .play-mark { opacity: .84; transform: scale(1); }
.video-topline { position: absolute; z-index: 4; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.mute-toggle { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(14,16,15,.48); backdrop-filter: blur(12px); font-size: 10px; }
.mute-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.source-badge { padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(14,16,15,.48); backdrop-filter: blur(12px); font-size: 9px; color: #fff; }
.source-badge.synthetic { border-color: rgba(245, 194, 130, .55); color: #ffddb6; }
.candidate-copy { position: absolute; z-index: 3; left: 15px; right: 74px; bottom: 180px; text-align: left; transition: opacity .22s, transform .22s; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.42); }
.candidate-subtitle { width: fit-content; max-width: 100%; margin: 0 auto 9px; padding: 6px 10px; border-radius: 8px; background: rgba(15,17,17,.59); backdrop-filter: blur(8px); text-align: center; font-size: 12px; line-height: 1.45; }
.candidate-copy h2 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: .01em; }
.candidate-role { margin: 4px 0 0; color: rgba(255,255,255,.87); font-size: 11px; }
.candidate-source-data { max-width: 100%; overflow: hidden; margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.actions { position: absolute; z-index: 5; right: 12px; bottom: 133px; display: flex; flex-direction: column; align-items: center; gap: 11px; transition: opacity .22s, transform .22s; }
.action-button, .avatar-action { position: relative; display: grid; place-items: center; width: 43px; min-height: 42px; padding: 0; border: 0; background: transparent; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); }
.action-button { grid-template-rows: 34px 12px; gap: 1px; }
.action-button svg { width: 31px; height: 31px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s, fill .16s, color .16s; }
.heart-action[aria-pressed="true"] svg { fill: #f44755; stroke: #f44755; transform: scale(1.08); }
.action-count { min-height: 11px; color: #fff; font-size: 9px; line-height: 1; font-variant-numeric: tabular-nums; }
.avatar-action { width: 40px; height: 40px; min-height: 40px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.92); border-radius: 50%; background: rgba(20,22,20,.55); }
.avatar-action img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-action span { font-size: 14px; font-weight: 650; }
.info-toggle { position: absolute; z-index: 5; left: 15px; bottom: 139px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; background: rgba(14,16,15,.52); color: #fff; font-size: 9px; backdrop-filter: blur(10px); }
.info-card { position: absolute; z-index: 4; left: 12px; right: 67px; bottom: 20px; padding: 10px 11px 8px; border: 1px solid rgba(255,255,255,.23); border-radius: 13px; background: rgba(20,22,24,.73); backdrop-filter: blur(18px); box-shadow: 0 6px 22px rgba(0,0,0,.2); transition: opacity .28s, transform .32s; }
.fact-grid { display: grid; grid-template-columns: .76fr 1.2fr .9fr; row-gap: 9px; }
.fact { display: flex; flex-direction: column; min-width: 0; padding-right: 5px; }
.fact + .fact:not(.fact-wide) { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.22); }
.fact-wide { grid-column: span 2; padding-left: 0; }
.fact-label { margin-bottom: 3px; color: #d0d4d1; font-size: 9px; }
.fact strong { overflow: hidden; color: #fff; font-size: 11px; line-height: 1.35; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.info-collapsed .info-card { opacity: 0; transform: translateY(22px); pointer-events: none; }
.info-collapsed .candidate-copy { opacity: .94; }
.info-collapsed .info-toggle { content-visibility: visible; }
.video-progress { position: absolute; z-index: 6; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.2); }
.video-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .12s linear; }
.video-error { position: absolute; z-index: 8; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 9px 12px; border-radius: 9px; background: rgba(15,17,16,.78); font-size: 11px; }
.profile-drawer { position: absolute; z-index: 9; inset: auto 0 0; max-height: 78%; overflow-y: auto; padding: 17px 16px calc(17px + env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,.17); border-bottom: 0; border-radius: 18px 18px 0 0; background: rgba(23,25,25,.96); backdrop-filter: blur(24px); transform: translateY(105%); transition: transform .28s ease; }
.profile-drawer[aria-hidden="false"] { transform: translateY(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.drawer-header h3 { margin: 0; font-size: 19px; font-weight: 640; }
.close-button { width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; font-size: 21px; line-height: 1; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-field { min-width: 0; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.045); }
.profile-field dt { margin-bottom: 6px; color: #bfc5c1; font-size: 9px; }
.profile-field dd { margin: 0; font-size: 12px; line-height: 1.4; }
.field-provenance { display: inline-block; margin-top: 6px; color: #e8ad9e; font-size: 8px; }
.drawer-note { margin: 12px 0 0; color: #9fa5a1; font-size: 9px; line-height: 1.5; }
.complete-overlay { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; background: rgba(13,15,14,.91); backdrop-filter: blur(16px); }
.complete-overlay h3 { margin: 5px 0; font-size: 22px; }
.complete-overlay p:not(.eyebrow) { color: #c5c9c6; font-size: 12px; line-height: 1.6; }
.primary-button { margin-top: 10px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; }
.screen-footer { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #858b87; font-size: 9px; }
.screen-footer a { color: #e3a491; text-decoration: none; }
.channels-mode .actions { display: contents; }
.channels-mode #avatar { position: absolute; left: 16px; bottom: 15px; }
.channels-mode #want { position: absolute; right: 12px; bottom: 142px; }
.channels-mode #share { position: absolute; right: 12px; bottom: 84px; }
.channels-mode #pass { position: absolute; right: 12px; bottom: 26px; }
.channels-mode .info-card { left: 11px; right: 65px; bottom: 68px; }
.channels-mode .info-toggle { left: 15px; bottom: 181px; }
.channels-mode .candidate-copy { bottom: 219px; }
.channels-mode .action-button svg { stroke-width: 1.65; }
.channels-mode .share-action { order: 2; }
.channels-mode .pass-action { order: 3; }
.channels-mode .heart-action { order: 1; }
.channels-mode .avatar-action { order: 0; }
.candidate-changing .candidate-copy, .candidate-changing .actions, .candidate-changing .info-card { opacity: 0; transform: translateY(8px); }
.ops-body { color-scheme: light; min-height: 100vh; background: #f4f2ef; color: #292724; }
.ops-shell { min-height: 100vh; display: grid; grid-template-columns: 218px minmax(0, 1fr); background: #f4f2ef; color: #292724; }
.ops-rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 25px 17px; border-right: 1px solid #e7e2dc; background: #fbfaf8; }
.ops-rail .brand { color: #292724; font-size: 16px; }
.ops-nav { display: grid; gap: 5px; margin-top: 48px; }
.ops-nav a, .ops-store-link { padding: 11px 12px; border-radius: 9px; color: #77716c; text-decoration: none; font-size: 13px; }
.ops-nav a.selected { background: #f4e7e1; color: #a84934; font-weight: 620; }
.ops-store-link { margin-top: auto; border-top: 1px solid #ebe5df; border-radius: 0; padding-top: 18px; }
.ops-main { min-width: 0; width: 100%; max-width: 1600px; margin: 0 auto; padding: 34px clamp(24px, 3vw, 52px) 30px; }
.ops-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.ops-header h1 { margin-top: 10px; color: #292724; font-size: 28px; font-weight: 650; }
.shared-write-notice { display: inline-block; color: #a34e3b; font-size: 11px; line-height: 1.4; }
.date-filter { display: flex; align-items: center; gap: 11px; color: #77716c; font-size: 12px; }
.date-filter input { height: 38px; padding: 0 11px; border: 1px solid #ded8d1; border-radius: 9px; background: #fff; color: #35312e; }
.ops-summary { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: 13px; margin-bottom: 33px; }
.summary-card { min-width: 0; min-height: 115px; padding: 17px 18px; border: 1px solid #e7e1db; border-radius: 13px; background: #fff; box-shadow: 0 3px 14px rgba(61,41,30,.035); }
.summary-card > span { display: block; color: #716d69; font-size: 12px; }
.summary-card > strong { display: block; margin-top: 10px; color: #302d29; font-size: 30px; font-weight: 620; font-variant-numeric: tabular-nums; }
.accent-card { border-color: #e9c6ba; background: #fff9f6; }
.accent-card > strong { color: var(--accent); }
.composition { display: flex; gap: 12px; margin-top: 6px; color: #77716c; font-size: 11px; }
.composition b { margin-left: 3px; color: #38322e; font-weight: 620; }
.ops-section { margin: 0 0 31px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-heading h2 { margin: 0; color: #302d29; font-size: 17px; font-weight: 640; }
.count-chip { color: #766c66; font-size: 11px; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid #e7e1db; border-radius: 12px; background: #fff; box-shadow: 0 2px 11px rgba(54,38,27,.025); }
.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.table-wrap th { padding: 12px 13px; border-bottom: 1px solid #e9e4de; background: #faf9f7; color: #807a74; font-size: 11px; font-weight: 570; white-space: nowrap; }
.table-wrap td { padding: 12px 13px; border-bottom: 1px solid #f0ede9; color: #383430; font-size: 12px; vertical-align: middle; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td strong { font-weight: 620; }
.table-wrap .candidate-row.inactive { opacity: .54; }
.row-sub { display: block; margin-top: 4px; color: #8d8781; font-size: 11px; }
.field-source { display: block; margin-top: 4px; color: #997447; font-size: 9px; font-weight: 500; white-space: nowrap; }
.sample-source { color: #aa5743; }
.synthetic-source { color: #92733f; }
.demo-tag { display: inline-block; padding: 4px 7px; border-radius: 999px; background: #f7ebe6; color: #a5503c; font-size: 10px; white-space: nowrap; }
.demo-tag.synthetic { background: #f6f0e6; color: #92733f; }
.table-wrap select { min-width: 126px; height: 34px; padding: 0 9px; border: 1px solid #e2dbd4; border-radius: 8px; background: #fff; color: #36322e; font-size: 11px; }
.muted-cell { color: #89837d !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.decision-kind { font-size: 12px; white-space: nowrap; }
.decision-kind.want { color: #c94a45; }
.decision-kind.pass { color: #77716c; }
.position-cell { color: #9a928b !important; font-variant-numeric: tabular-nums; }
.active-state { white-space: nowrap; }
.active-state.on { color: #65804f; }
.active-state.off { color: #978a7e; }
.small-action { min-height: 31px; padding: 0 10px; border: 1px solid #ded7d0; border-radius: 8px; background: #fff; color: #716962; font-size: 11px; white-space: nowrap; }
.empty-state { padding: 24px; color: #817a74; text-align: center; font-size: 12px; }
.ops-error { position: sticky; bottom: 16px; padding: 12px 14px; border: 1px solid #dfaba0; border-radius: 9px; background: #fff4f1; color: #a34234; font-size: 12px; }
.ops-footer { display: flex; gap: 22px; padding: 17px 0 3px; border-top: 1px solid #e4ddd7; color: #918982; font-size: 11px; }
@media (max-width: 900px) {
  .ops-shell { grid-template-columns: 176px minmax(0, 1fr); }
  .ops-main { padding: 26px 20px; }
  .ops-summary { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .ops-shell { display: block; }
  .ops-rail { position: static; width: 100%; height: auto; padding: 12px 14px 8px; border-right: 0; border-bottom: 1px solid #e7e2dc; }
  .ops-nav { display: flex; gap: 4px; margin-top: 11px; overflow: auto; }
  .ops-nav a { padding: 8px 9px; font-size: 11px; white-space: nowrap; }
  .ops-store-link { display: none; }
  .ops-main { padding: 19px 12px 25px; }
  .ops-header { align-items: flex-start; margin-bottom: 17px; }
  .ops-header h1 { font-size: 22px; }
  .date-filter { align-items: flex-end; flex-direction: column; gap: 5px; font-size: 10px; }
  .date-filter input { width: 142px; height: 34px; font-size: 11px; }
  .ops-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 25px; }
  .summary-card { min-height: 91px; padding: 12px; }
  .summary-card > strong { font-size: 24px; }
  .composition { gap: 8px; font-size: 10px; }
  .ops-section { margin-bottom: 24px; }
  .table-wrap table { min-width: 740px; }
  #candidate-list table { min-width: 1100px; }
  .ops-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 360px) {
  .demo-ribbon { gap: 5px; font-size: 8px; }
}
@media (min-width: 560px) {
  body { background: #080a09; }
  .app-shell { max-width: 520px; min-height: 100dvh; margin: 0 auto; border-right: 1px solid #242725; border-left: 1px solid #242725; }
  .main-content { padding-left: 14px; padding-right: 14px; }
  .stage { border-radius: 19px; }
}
@media (max-height: 700px) {
  .topbar { min-height: 50px; padding-top: 5px; padding-bottom: 5px; }
  .batch-heading { min-height: 48px; }
  .stage { min-height: 390px; }
  .actions { bottom: 122px; gap: 7px; }
  .action-button, .avatar-action { width: 38px; }
  .avatar-action { height: 38px; min-height: 38px; }
  .info-card { bottom: 14px; padding: 8px; }
  .candidate-copy { bottom: 164px; }
}
