/* C2 production layer: design tokens, shell, shared components, module and responsive rules. */
:root {
  --sidebar-width: 208px;
  --workspace-max: 1560px;
  --workspace-gutter: clamp(20px, 2.2vw, 40px);
  --reading-max: 1180px;
  --form-max: 1120px;
  --v2-bg: #f5f4f1;
  --v2-surface: #fff;
  --v2-surface-soft: #faf9f7;
  --v2-ink: #282b2d;
  --v2-muted: #646b70;
  --v2-border: #e5e2dd;
  --v2-primary: #d95039;
  --v2-primary-dark: #b94130;
  --v2-primary-soft: #fff0eb;
  --v2-success: #26724d;
  --v2-warning: #895912;
  --v2-danger: #a52f2b;
  --v2-disabled: #70767a;
  --v2-radius-sm: 8px;
  --v2-radius-md: 12px;
  --v2-radius-lg: 18px;
  --v2-shadow: 0 8px 24px rgba(40, 43, 45, .045);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  color: var(--v2-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
html, body { min-height: 100%; background: var(--v2-bg); color: var(--v2-ink); font-family: inherit; font-size: 15px; }
body { line-height: 1.55; }
body.theme-dark { background: var(--v2-bg) !important; color: var(--v2-ink) !important; }
.v2-shell { min-height: 100vh; background: var(--v2-bg); }
.v2-sidebar { width: var(--sidebar-width); padding: 20px 12px 16px; background: #292c2e; border: 0; color: #f4f3f1; }
.v2-brand-slot { min-height: 78px; display: block; margin: 0 0 8px; padding: 4px 8px 17px; border-bottom: 1px solid #434749; }
.v2-brand-slot .v2-c2-brand { display: flex; align-items: center; gap: 9px; color: #f4f3f1; text-decoration: none; }
.v2-brand-slot .v2-c2-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; font-size: 18px; }
.v2-brand-slot .v2-c2-brand strong { font-size: 14px; }
.v2-brand-slot .v2-c2-brand small { color: #c7cbca; font-size: 10px; }
.v2-workspace-label { padding: 15px 12px 10px; color: #b8bdbe; font-size: 12px; letter-spacing: .02em; text-transform: none; }
.v2-nav { gap: 5px; }
.v2-nav-item { min-height: 46px; gap: 12px; padding: 9px 12px; border-radius: 8px; color: #d2d5d4; font-size: 15px; font-weight: 550; }
.v2-nav-item:hover { background: #393d3f; color: #fff; }
.v2-nav-item.is-active { color: #fff; background: #414446; box-shadow: inset 3px 0 var(--v2-primary); }
.v2-nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.v2-nav-mark { display: none; }
.v2-nav-count { color: #f2c4bb; font-size: 13px; }
.v2-sidebar-bottom { padding: 12px 4px 0; border-top: 1px solid #434749; }
.v2-side-note { padding: 8px 8px 4px; color: #c7cbca; font-size: 12px; }
.v2-status-dot { background: #70bd8e; box-shadow: 0 0 0 3px rgba(112,189,142,.14); }
.v2-main-column { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); }
.v2-topbar { position: sticky; top: 0; z-index: 21; height: 72px; padding: 0 clamp(20px, 2.2vw, 32px); background: rgba(255,255,255,.97); border-color: var(--v2-border); backdrop-filter: blur(12px); }
.v2-header-context, .v2-c2-brand { display: flex; align-items: center; }
.v2-header-context { min-width: 0; gap: 17px; }
.v2-header-context > .v2-c2-brand { display: none; }
.v2-header-divider { display: none; }
.v2-c2-brand { min-width: max-content; gap: 10px; color: var(--v2-ink); text-decoration: none; }
.v2-c2-brand > span:last-child { display: grid; line-height: 1.2; }
.v2-c2-brand strong { font-size: 16px; font-weight: 760; letter-spacing: -.025em; }
.v2-c2-brand small { margin-top: 3px; color: var(--v2-muted); font-size: 12px; }
.v2-c2-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--v2-primary); color: #fff; font-size: 19px; font-weight: 760; }
.v2-header-divider { width: 1px; height: 25px; background: var(--v2-border); }
.v2-breadcrumb { overflow: hidden; color: var(--v2-muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.v2-account-area { position: relative; flex: 0 0 auto; }
.v2-account-trigger { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--v2-ink); text-align: left; cursor: pointer; }
.v2-account-trigger:hover, .v2-account-trigger[aria-expanded="true"] { border-color: var(--v2-border); background: #faf9f7; }
.v2-account-trigger > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.v2-account-trigger > svg[hidden] { display: none; }
.v2-account-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f7e1dc; color: var(--v2-primary-dark); font-size: 15px; font-weight: 720; }
.v2-account-identity { display: grid; max-width: 220px; }
.v2-account-identity strong { overflow: hidden; font-size: 13px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.v2-account-identity small { overflow: hidden; color: var(--v2-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v2-account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(320px, calc(100vw - 20px)); padding: 8px; border: 1px solid var(--v2-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(30,32,34,.16); }
.v2-account-menu[hidden] { display: none !important; }
.v2-account-menu-identity { display: grid; gap: 2px; padding: 10px 10px 12px; border-bottom: 1px solid var(--v2-border); }
.v2-account-menu-identity strong { font-size: 14px; }
.v2-account-menu-identity span { overflow-wrap: anywhere; color: var(--v2-muted); font-size: 13px; }
.v2-account-menu-quota { padding: 10px; color: #454a4d; font-size: 13px; line-height: 1.55; }
.v2-account-menu a, .v2-account-menu button { width: 100%; min-height: 42px; display: flex; align-items: center; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--v2-ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.v2-account-menu a:hover, .v2-account-menu button:hover { background: var(--v2-primary-soft); color: var(--v2-primary-dark); }
.v2-account-menu #v2Logout { color: var(--v2-danger); }
.v2-main-content { width: min(var(--workspace-max), 100%); min-height: calc(100vh - 128px); margin-inline: auto; padding: 27px var(--workspace-gutter) 64px; }
.v2-page { animation: none; }
.v2-page-heading { margin-bottom: 20px; }
.v2-page-heading h1, .v2-wizard-heading h1 { margin: 0 0 5px; font-size: clamp(28px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 730; }
.v2-wizard-heading { align-items: end; margin: 15px 0 17px; }
.v2-eyebrow { margin: 0 0 5px; color: #73797c; font-size: 12px; line-height: 1.3; font-weight: 650; letter-spacing: .045em; }
.v2-lead, .v2-page-heading .v2-lead, .v2-wizard-heading .v2-lead { color: #596064; font-size: 15px; line-height: 1.55; }
.v2-product-status, .v2-state-pill, .v2-disabled-badge, .v2-live-badge, .v2-flow-tag { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.v2-task-grid { display: none; }
.v2-home-primary { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 28px 30px; border: 1px solid #e9d7d1; border-radius: 14px; background: linear-gradient(112deg,#fff 0%,#fff 73%,#fff4f0 100%); }
.v2-home-primary h2 { margin: 0; font-size: 25px; line-height: 1.28; }
.v2-home-primary p:last-child { margin: 7px 0 0; color: var(--v2-muted); font-size: 15px; }
.v2-primary-button, .v2-outline-button { min-height: 44px; padding: 9px 15px; border-radius: 8px; font-size: 14px; font-weight: 650; }
.v2-primary-button { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }
.v2-primary-button:hover { border-color: var(--v2-primary-dark); background: var(--v2-primary-dark); }
.v2-primary-button:disabled, .v2-outline-button:disabled, button:disabled { opacity: .56; cursor: not-allowed; filter: saturate(.55); }
.v2-home-lower { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-top: 0; }
.v2-recent-card, .v2-quick-quota { min-height: 180px; padding: 20px 22px; }
.v2-section-heading h2, .v2-brand-layout h2, .v2-batch-config h2 { font-size: 18px; }
.v2-link-button, .v2-back-link { min-height: 36px; font-size: 14px; }
.v2-muted { color: #596064; font-size: 14px; }
.v2-footnote { color: #646b70; font-size: 13px; }
.v2-recent-projects { display: grid; margin-top: 8px; }
.v2-recent-project { width: 100%; min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px; border: 0; border-top: 1px solid var(--v2-border); background: transparent; color: var(--v2-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.v2-recent-project:hover { background: #faf9f7; }
.v2-recent-project strong { min-width: 0; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.v2-recent-project small { max-width: 48%; flex: 0 1 auto; overflow: hidden; color: var(--v2-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v2-stepper { min-height: 60px; gap: 6px; margin-bottom: 18px; padding: 8px 14px; border: 1px solid var(--v2-border); border-radius: 11px; background: #fff; }
.v2-step { min-height: 42px; gap: 8px; padding: 5px 8px; color: #535b5f; font-size: 14px; }
.v2-step-number { width: 28px; height: 28px; border-color: #d9ddd9; color: #50575a; font-size: 13px; }
.v2-step.is-active { color: var(--v2-primary-dark); }
.v2-step.is-active .v2-step-number { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }
.v2-step.is-complete .v2-step-number { border-color: #dbb2a9; color: var(--v2-primary-dark); }
.v2-step-join { min-width: 12px; height: 1px; background: #dedbd6; }
.v2-step-panel.is-active { padding: 21px 22px; border: 1px solid var(--v2-border); border-radius: 14px; background: #fff; box-shadow: var(--v2-shadow); }
.v2-panel-intro { min-height: auto; margin-bottom: 12px; }
.v2-panel-intro h2 { margin: 0; font-size: 19px; }
.v2-panel-intro p { margin: 4px 0 0; color: #596064; font-size: 14px; }
.v2-import-disclosure { margin: 12px 0; padding: 9px 12px; border: 1px solid var(--v2-border); border-radius: 9px; background: #fbfaf8; }
.v2-import-disclosure summary { color: #4f5659; font-size: 14px; font-weight: 630; cursor: pointer; }
.v2-import-modes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.v2-mode-card { min-height: 70px; padding: 10px 12px; border-radius: 8px; }
.v2-mode-card strong { font-size: 14px; }
.v2-mode-card small { font-size: 12px; }
.v2-platform-status { display: flex; align-items: center; gap: 8px; margin: 11px 0; }
.v2-platform-status .v2-live-badge, .v2-platform-status .v2-disabled-badge { min-height: 32px; font-size: 13px; }
.v2-search-slot { margin: 10px 0 0; }
.search-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.search-input-wrap { min-height: 50px; border: 1px solid #d9d7d2; border-radius: 9px; background: #fff; }
.search-input-wrap:focus-within { border-color: var(--v2-primary); box-shadow: 0 0 0 3px rgba(217,80,57,.15); }
.search-input-wrap input { min-height: 48px; color: var(--v2-ink); font-size: 16px; }
.search-btn { min-width: 112px; min-height: 50px; border-radius: 9px; background: var(--v2-primary); font-size: 15px; font-weight: 680; }
.search-btn:hover { background: var(--v2-primary-dark); }
.search-btn:disabled { opacity: .62; cursor: wait; }
.v2-search-filters { margin: 12px 0 0; }
.v2-search-filters[hidden] { display: none !important; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 10px 12px; border: 1px solid var(--v2-border); border-radius: 9px; background: #fff; box-shadow: none; }
.filter-label { color: #586064; font-size: 13px; }
.filter-chip { min-height: 36px; padding: 6px 11px; border-color: #dedbd6; color: #454b4e; font-size: 13px; }
.filter-chip:hover { border-color: var(--v2-primary); color: var(--v2-primary-dark); }
.filter-chip.active { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }
.v2-hotwords-slot { margin-top: 9px; }
.hot-words { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #596064; font-size: 13px; }
.hot-label { font-size: 13px; }
.hot-word, .clear-history { min-height: 32px; padding: 5px 10px; border-radius: 999px; background: #fff; color: #596064; font-size: 13px; }
.hot-word:hover, .clear-history:hover { border-color: #e7b7ad; color: var(--v2-primary-dark); }
.v2-search-state { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 12px 0; padding: 10px 13px; border: 1px solid #d7e6dc; border-radius: 9px; background: #f3f8f4; color: #285f43; font-size: 14px; }
.v2-search-state[hidden] { display: none !important; }
.v2-search-state.is-loading { border-color: #ead2cc; background: #fff8f6; color: #64372f; }
.v2-search-state.is-error { border-color: #ebc7c3; background: #fff7f6; color: #852c28; }
.v2-search-state.is-not-ready { border-color: #e8dcc1; background: #fffaf0; color: #725317; }
.v2-search-state-copy { flex: 1; min-width: 200px; }
.v2-search-state-copy strong { display: block; font-weight: 700; }
.v2-search-state-copy small { display: block; margin-top: 2px; color: inherit; font-size: 13px; }
.v2-search-elapsed { font-variant-numeric: tabular-nums; white-space: nowrap; }
#loading { min-height: 26px; display: flex; align-items: center; gap: 9px; margin: 0; padding: 0; background: transparent; color: inherit; }
#loading.hidden { display: none !important; }
#loading .spinner { width: 17px; height: 17px; border-width: 2px; border-top-color: var(--v2-primary); }
#loading p { margin: 0; font-size: 14px; }
.v2-search-state .v2-outline-button { min-height: 38px; border-color: #e2aaa0; color: #9d392c; background: #fff; }
.v2-results-slot { margin-top: 13px; }
#resultArea { margin: 0; padding: 0; }
#resultArea.hidden { display: none !important; }
.result-head { align-items: center; margin-bottom: 10px; }
.result-head h2 { margin: 0; color: var(--v2-ink); font-size: 20px; }
.result-sub { margin: 3px 0 0; color: var(--v2-muted); font-size: 13px; }
.data-badge { background: #fff0eb; border-color: #efc3b9; color: #9e3b2d; font-size: 12px; }
.export-btn { min-height: 38px; border-color: var(--v2-primary); color: var(--v2-primary-dark); font-size: 13px; }
.export-btn:hover { color: #fff; background: var(--v2-primary); }
.v2-results-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,300px); gap: 22px; align-items: start; }
.v2-compact-results { min-width: 0; }
.notes-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.note-card { min-width: 0; min-height: 112px; display: grid; grid-template-columns: 78px minmax(0,1fr); overflow: hidden; border: 0; border-bottom: 1px solid var(--v2-border); border-radius: 0; background: #fff; box-shadow: none; cursor: default; transition: background-color .14s ease; }
.note-card:hover { transform: none; border-color: var(--v2-border); background: #fcfbfa; box-shadow: none; }
.note-cover { width: 78px; min-height: 96px; aspect-ratio: auto; align-self: center; border-radius: 7px; background: #f6e8e4; }
.note-cover .cover-bg { color: var(--v2-primary-dark); font-size: 23px; }
.note-cover .cover-img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.note-type { top: 5px; left: 5px; font-size: 11px; }
.note-rank { top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 5px; background: #303437; font-size: 11px; }
.note-body { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "title title" "scores scores" "match match" "author action"; align-content: center; align-items: center; gap: 3px 12px; padding: 9px 10px 9px 13px; }
.note-title { grid-area: title; margin: 0; color: var(--v2-ink); font-size: 15px; line-height: 1.35; font-weight: 680; }
.score-tags { grid-area: scores; display: flex; flex-wrap: wrap; gap: 5px; margin: 1px 0; }
.score-tags span { padding: 2px 7px; border-radius: 99px; font-size: 12px; }
.match-chip { grid-area: match; overflow: hidden; color: #60676a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.note-author { grid-area: author; min-width: 0; overflow: hidden; color: #535a5e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.note-author img { width: 22px; height: 22px; flex: 0 0 22px; }
.note-author .fans { color: #8f4c3f; }
.note-foot { grid-area: action; display: flex; justify-content: end; gap: 8px; margin: 0; padding: 0; border: 0; }
.note-stats { color: #51585b; font-size: 12px; }
.note-stats .sub { margin-left: 5px; color: #646b70; }
.dissect-btn { min-height: 40px; padding: 7px 10px; border: 1px solid #e7b8af; border-radius: 7px; background: #fff; color: #a44032; font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.dissect-btn:hover { background: var(--v2-primary-soft); }
.v2-search-insight { position: sticky; top: 88px; min-width: 0; padding: 13px 14px; border-left: 1px solid var(--v2-border); }
.analytics { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 0; }
.analytic-card { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.analytic-card h3 { margin: 0 0 8px; color: #454b4e; font-size: 14px; }
.bars { gap: 7px; }
.bar-row { color: #4b5255; font-size: 12px; }
.bar-row .bar-label { color: #4b5255; }
.bar-row .bar-label b { color: var(--v2-ink); }
.bar-track { height: 5px; background: #eeeae6; }
.bar-fill { background: var(--v2-primary); transition: width .3s ease; }
.bar-fill.alt { background: #77879c; }
.related-row, .expanded-row { margin: 9px 0; }
.related-word { min-height: 32px; border-color: var(--v2-border); color: var(--v2-primary-dark); font-size: 13px; }
.search-empty-state { margin: 10px 0; padding: 20px; border: 1px dashed #d7d3cd; border-radius: 9px; background: #faf9f7; color: #50575a; font-size: 14px; }
.few-tip { margin: 8px 0; padding: 8px 11px; border-radius: 7px; background: #fff9ee; color: #765116; font-size: 13px; }
.v2-search-selection { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 14px; padding: 12px; border-color: #ead3cd; box-shadow: none; }
.v2-search-selection[hidden], .v2-search-selection .hidden { display: none !important; }
.v2-search-selection > img { width: 64px; height: 76px; border-radius: 6px; object-fit: cover; background: #f2e7e4; }
.v2-search-selection > div > strong { display: block; font-size: 16px; line-height: 1.4; }
.v2-search-selection .v2-eyebrow { color: var(--v2-primary-dark); }
.v2-search-selection .v2-footnote { margin-top: 4px; }
.v2-analysis-note { margin: 0 0 13px; padding: 12px 14px; border: 1px solid var(--v2-border); border-radius: 9px; background: #faf9f7; }
.v2-analysis-note p { margin: 6px 0 0; color: #4f575a; font-size: 14px; line-height: 1.55; }
.v2-analysis-note, .v2-content-analysis { width: 100%; max-width: var(--reading-max); margin-right: auto; margin-left: auto; }
.v2-content-analysis { margin-top: 0; margin-bottom: 15px; padding: 19px; box-shadow: none; }
.v2-content-analysis h2 { font-size: 20px; }
.v2-analysis-result { gap: 13px 20px; }
.v2-analysis-field h3 { margin-bottom: 5px; font-size: 15px; }
.v2-analysis-field p, .v2-analysis-field ul { color: #454c4f; font-size: 14px; line-height: 1.65; }
.v2-analysis-actions { gap: 10px; margin-top: 15px; }
.v2-analysis-actions #v2RunAnalysis { min-width: 130px; }
.v2-step-panel[data-step-panel="3"], .v2-step-panel[data-step-panel="4"], .v2-step-panel[data-step-panel="5"] { --workflow-accent: var(--v2-primary); --workflow-soft: var(--v2-primary-soft); }
#v2-page-wizard[data-target-platform="xiaohongshu"] { --workflow-accent: #cf5148; --workflow-soft: #fff0ed; }
#v2-page-wizard[data-target-platform="douyin"] { --workflow-accent: #252a30; --workflow-soft: #f1f3f4; }
#v2-page-wizard[data-target-platform="wechat_channels"] { --workflow-accent: #348c65; --workflow-soft: #eaf5ef; }
#v2-page-wizard[data-target-platform] #v2CreationPlatform { border-color: var(--workflow-accent); box-shadow: 0 0 0 2px var(--workflow-soft); }
#v2-page-wizard[data-target-platform] #v2NextStep:not(:disabled) { border-color: var(--workflow-accent); background: var(--workflow-accent); }
#v2-page-wizard[data-target-platform] #v2NextStep:not(:disabled):hover { filter: brightness(.91); }
.v2-platform-label, .v2-platform-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--workflow-soft,#e5e2dd); border-radius: 99px; background: var(--workflow-soft,#faf9f7); color: var(--workflow-accent,var(--v2-muted)); font-size: 13px; }
.v2-page-heading .v2-eyebrow, .v2-wizard-heading .v2-eyebrow { color: #73797c; }
.v2-project-card { display: grid; grid-template-columns: minmax(180px,1.1fr) minmax(240px,1.1fr) minmax(250px,1.4fr) auto; align-items: center; gap: 14px; margin: 0; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--v2-border); border-radius: 0; box-shadow: none; }
.v2-project-card h2 { margin: 0; font-size: 16px; }
.v2-project-card .v2-footnote { margin: 0; }
.v2-project-actions { gap: 7px; }
.v2-project-actions .v2-primary-button, .v2-project-actions .v2-outline-button { min-height: 38px; padding: 7px 10px; }
.v2-brand-layout, .v2-batch-layout { gap: 20px; }
.v2-brand-layout .v2-card, .v2-batch-config { padding: 21px; }
.v2-field-grid label, .v2-batch-config label { color: #454c4f; font-size: 14px; }
.v2-field-grid input, .v2-field-grid textarea, .v2-field-grid select, .v2-batch-config input, .v2-batch-config select { min-height: 42px; border-color: #d9d7d2; color: var(--v2-ink); font-size: 14px; }
.v2-material-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,.8fr) minmax(0,1.5fr) auto; align-items: start; gap: 15px; padding: 16px; border-radius: 0; box-shadow: none; }
.v2-material-row h2 { margin: 0; font-size: 16px; }
.v2-material-row p { margin: 0; color: #4e5558; font-size: 14px; }
.v2-material-row .v2-material-preview { overflow: hidden; max-height: 4.6em; }
.v2-batch-result, .v2-batch-config { border-radius: 10px; box-shadow: none; }
.v2-batch-result { margin: 0 0 12px; padding: 16px 18px; }
.v2-batch-item { min-height: 50px; padding: 9px 0; border-bottom: 1px solid var(--v2-border); }
.v2-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.v2-account-card { min-width: 0; padding: 20px; box-shadow: none; }
.v2-account-card h2 { margin: 0 0 13px; font-size: 18px; }
.v2-account-details { margin-bottom: 16px; color: #454c4f; overflow-wrap: anywhere; }
.v2-account-quotas, .v2-account-keys { display: grid; gap: 8px; }
.v2-account-quota-row, .v2-account-key-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 7px; background: #faf9f7; color: #454c4f; font-size: 14px; }
.v2-account-quota-row strong, .v2-account-key-row strong { color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.v2-account-card > .v2-primary-button { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.v2-mobile-nav { display: none; }
.v2-footer-slot, .site-footer { color: #73797c; font-size: 13px; }
.v2-import-form-card { margin-top: 18px; padding: 18px 20px; box-shadow: none; }
.v2-import-form-card input, .v2-import-form-card textarea, .v2-import-form-card select { min-height: 42px; border-color: #d9d7d2; font: inherit; font-size: 14px; }
.v2-creation-strategy { width: 100%; max-width: var(--form-max); margin-inline: auto; gap: 14px 18px; }
.v2-creation-strategy label { color: #454c4f; font-size: 14px; }
.v2-creation-strategy select { min-height: 42px; border-color: #d9d7d2; font: inherit; font-size: 14px; }
.v2-wizard-footer { min-height: 62px; margin-top: 15px; padding: 9px 12px; border-radius: 10px; }
.v2-wizard-footer span { color: #555d60; font-size: 13px; }
.v2-project-picker select { min-height: 42px; font-size: 14px; }
.v2-page :focus-visible, .v2-shell :focus-visible, .v2-mobile-nav :focus-visible { outline: 3px solid #ba4836; outline-offset: 3px; }
.v2-account-menu a:focus-visible, .v2-account-menu button:focus-visible { outline-offset: -2px; }
.v2-nav-item:focus-visible { outline-color: #fff; }
.v2-search-state button, .filter-chip, .v2-step, .v2-mobile-nav button { touch-action: manipulation; }
@media (max-width: 1120px) {
  .v2-main-content { padding-right: 22px; padding-left: 22px; }
  .v2-results-columns { grid-template-columns: minmax(0,1fr) 215px; gap: 14px; }
  .v2-project-card { grid-template-columns: minmax(150px,1fr) minmax(210px,1fr) auto; }
  .v2-project-card .v2-footnote:nth-of-type(2) { grid-column: 1 / 3; }
}
@media (max-width: 820px) and (min-width: 681px) {
  :root { --sidebar-width: 190px; }
  .v2-sidebar { width: var(--sidebar-width); }
  .v2-main-column { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); }
  .v2-topbar { padding: 0 16px; }
  .v2-c2-brand small { display: none; }
  .v2-main-content { padding: 22px 16px 56px; }
  .v2-results-columns { grid-template-columns: 1fr; }
  .v2-search-insight { position: static; padding: 15px 0 0; border-top: 1px solid var(--v2-border); border-left: 0; }
  .analytics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .v2-project-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .v2-stepper { gap: 2px; padding: 8px; }
  .v2-step { gap: 5px; padding-right: 2px; padding-left: 2px; }
  .v2-step-join { min-width: 6px; margin-right: 3px; margin-left: 3px; }
}
@media (max-width: 680px) {
  .v2-sidebar { display: none; }
  .v2-main-column { width: 100%; min-height: 100vh; margin-left: 0; }
  .v2-topbar { height: 60px; padding: 0 11px; }
  .v2-header-context { gap: 0; }
  .v2-header-context > .v2-c2-brand { display: flex; }
  .v2-c2-brand { gap: 7px; }
  .v2-c2-mark { width: 31px; height: 31px; border-radius: 8px; font-size: 17px; }
  .v2-c2-brand strong { font-size: 14px; }
  .v2-c2-brand small { display: none; }
  .v2-header-divider, .v2-breadcrumb { display: none; }
  .v2-account-trigger { min-height: 44px; gap: 6px; padding: 3px 5px; }
  .v2-account-avatar { width: 32px; height: 32px; }
  .v2-account-identity { display: none; }
  .v2-account-trigger > svg { width: 14px; }
  .v2-main-content { width: 100%; min-height: calc(100vh - 60px); padding: 19px 12px 97px; }
  .v2-page-heading { align-items: flex-start; margin-bottom: 16px; }
  .v2-page-heading h1, .v2-wizard-heading h1 { font-size: 27px; }
  .v2-page-heading .v2-lead, .v2-wizard-heading .v2-lead { font-size: 14px; }
  .v2-home-primary { min-height: 158px; align-items: flex-start; flex-direction: column; gap: 13px; padding: 19px; }
  .v2-home-primary h2 { font-size: 21px; }
  .v2-home-primary p:last-child { font-size: 14px; }
  .v2-home-lower { grid-template-columns: 1fr; gap: 12px; }
  .v2-recent-card, .v2-quick-quota { min-height: 120px; padding: 15px; }
  .v2-wizard-top { margin-bottom: 10px; }
  .v2-wizard-heading { margin: 12px 0; }
  .v2-stepper { min-height: 55px; gap: 1px; margin-bottom: 13px; padding: 6px; }
  .v2-step { min-width: 0; min-height: 40px; gap: 4px; padding: 4px 3px; font-size: 12px; }
  .v2-step-number { width: 25px; height: 25px; flex: 0 0 25px; font-size: 12px; }
  .v2-step-join { min-width: 5px; }
  .v2-step-panel.is-active { padding: 15px 12px; }
  .v2-import-disclosure { padding: 8px 10px; }
  .v2-import-modes { grid-template-columns: 1fr 1fr; }
  .v2-mode-card { min-height: 72px; }
  .v2-platform-status { flex-wrap: wrap; gap: 6px; }
  .search-bar { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .search-input-wrap { min-width: 0; min-height: 46px; }
  .search-input-wrap input { min-width: 0; min-height: 44px; padding: 8px 9px; font-size: 15px; }
  .search-btn { min-width: 82px; min-height: 46px; padding: 7px 10px; font-size: 14px; }
  .hot-words { gap: 5px; }
  .hot-word, .clear-history { min-height: 34px; padding: 5px 8px; }
  .v2-search-state { align-items: flex-start; gap: 7px; padding: 10px; }
  .v2-search-state-copy { min-width: 100%; }
  .v2-results-columns { grid-template-columns: 1fr; }
  .result-head { align-items: flex-start; }
  .result-head-right { align-items: flex-start; }
  .v2-search-insight { position: static; padding: 14px 0 0; border-top: 1px solid var(--v2-border); border-left: 0; }
  .analytics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .analytic-card:last-child { grid-column: 1 / -1; }
  .filter-bar { align-items: flex-start; flex-direction: column; gap: 9px; padding: 9px; }
  .filter-group { gap: 6px; }
  .filter-chip { min-height: 36px; padding: 6px 9px; }
  .note-card { min-height: 103px; grid-template-columns: 66px minmax(0,1fr); }
  .note-cover { width: 66px; min-height: 82px; }
  .note-body { gap: 2px 7px; padding: 7px 5px 7px 9px; }
  .note-title { font-size: 14px; }
  .score-tags span { padding: 1px 5px; font-size: 11px; }
  .note-author { gap: 5px; font-size: 12px; }
  .note-author img { width: 19px; height: 19px; flex-basis: 19px; }
  .note-stats { display: none; }
  .dissect-btn { min-height: 38px; padding: 6px 8px; font-size: 12px; }
  .v2-search-selection { grid-template-columns: 48px minmax(0,1fr); gap: 9px; padding: 10px; }
  .v2-search-selection > img { width: 48px; height: 60px; grid-row: span 2; }
  .v2-search-selection > button { grid-column: 2; justify-self: start; }
  .v2-analysis-result { grid-template-columns: 1fr; }
  .v2-analysis-field:first-child { grid-column: auto; }
  .v2-analysis-actions { align-items: stretch; flex-direction: column; }
  .v2-analysis-actions #v2RunAnalysis { width: 100%; }
  .v2-project-card { grid-template-columns: 1fr; gap: 7px; padding: 14px 4px; }
  .v2-project-card .v2-footnote:nth-of-type(2) { grid-column: auto; }
  .v2-project-actions { flex-wrap: wrap; }
  .v2-material-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 4px; }
  .v2-brand-layout, .v2-batch-layout { grid-template-columns: 1fr; }
  .v2-field-grid { grid-template-columns: 1fr; }
  .v2-account-grid { grid-template-columns: 1fr; }
  .v2-mobile-nav { position: fixed; inset: auto 0 0; z-index: 24; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 6px 5px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--v2-border); background: rgba(255,255,255,.98); }
  .v2-mobile-nav button { min-width: 0; min-height: 48px; display: grid; justify-items: center; align-content: center; gap: 1px; padding: 3px 1px; border: 0; border-radius: 7px; background: transparent; color: #5b6265; font: inherit; font-size: 11px; }
  .v2-mobile-nav button > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .v2-mobile-nav button.is-active { color: var(--v2-primary-dark); background: var(--v2-primary-soft); font-weight: 700; }
  .v2-footer-slot { padding-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Saved text assets have no thumbnail: do not reserve an empty grid column. */
.v2-search-selection:has(> img[hidden]) { grid-template-columns: minmax(0,1fr) auto; }
.v2-search-selection > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width:600px) {
 .v2-search-selection:has(> img[hidden]) { grid-template-columns: minmax(0,1fr); }
 .v2-search-selection:has(> img[hidden]) > button { grid-column: 1; }
}
