:root {
  color-scheme: light;
  --ink: #172033;
  --ink-soft: #536074;
  --muted: #8791a3;
  --line: #e5e8ee;
  --line-strong: #d9dde5;
  --canvas: #f4f6f8;
  --panel: #ffffff;
  --sidebar: #111927;
  --sidebar-soft: #1b2534;
  --accent: #e36f39;
  --accent-deep: #c85225;
  --accent-soft: #fff1e8;
  --green: #26866a;
  --blue: #3f6fbd;
  --purple: #8660a8;
  --shadow: 0 18px 50px rgba(20, 29, 45, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: #f3f5f7; color: var(--ink); }
.auth-gate[hidden] { display: none; }
.auth-brand { position: fixed; left: 28px; top: 24px; display: flex; align-items: center; gap: 10px; color: #101827; }
.auth-brand .brand-mark { background: #101827; }
.auth-panel { width: min(420px, 100%); display: grid; gap: 18px; padding: 32px; border: 1px solid #dfe3e8; border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(16, 24, 39, .1); }
.auth-panel h1 { margin: 5px 0 8px; font-size: 26px; letter-spacing: 0; }
.auth-panel p { margin: 0; color: #697386; font-size: 13px; line-height: 1.6; }
.auth-panel label { display: grid; gap: 7px; color: #344054; font-size: 12px; font-weight: 700; }
.auth-panel input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cfd5dc; border-radius: 6px; background: #fff; color: #101827; font: inherit; }
.auth-panel input:focus { outline: 2px solid rgba(0, 121, 107, .17); border-color: #00796b; }
.auth-panel .auth-error { min-height: 20px; color: #b42318; }
body.auth-required .app-shell, body.auth-required .job-center { display: none; }

.invite-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 8px; }
.invite-row input, .invite-row select { min-width: 0; }
.one-time-output { display: none; margin-top: 10px; padding: 10px; border: 1px solid #d6dce3; border-radius: 6px; background: #f7f8fa; color: #344054; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.one-time-output:not(:empty) { display: block; }
.team-member-list { display: grid; gap: 6px; margin: 12px 0; }
.team-member { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf0f3; }
.team-member span { min-width: 0; }
.team-member b, .team-member small { display: block; overflow: hidden; text-overflow: ellipsis; }
.team-member small { color: #7b8492; font-size: 10px; }
.team-member em { color: #667085; font-size: 10px; font-style: normal; }
.team-member-actions { display: flex; align-items: center; gap: 6px; }
.team-member-actions select { width: 86px; min-width: 86px; height: 32px; padding: 0 7px; border: 1px solid #d6dce3; border-radius: 5px; background: #fff; color: #344054; font-size: 11px; }
.team-member-actions .icon-button { width: 32px; height: 32px; }

@media (max-width: 560px) {
  .auth-brand { position: static; margin-bottom: 20px; }
  .auth-gate { align-content: center; }
  .auth-panel { padding: 24px 20px; }
  .invite-row { grid-template-columns: 1fr 96px; }
  .invite-row button { grid-column: 1 / -1; }
}

html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }

body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
  color: #e8edf5;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0) 22%),
    var(--sidebar);
  border-right: 1px solid rgba(255,255,255,0.04);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand-lockup strong { display: block; font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 15px; letter-spacing: 0; }
.brand-lockup small { display: block; margin-top: 2px; color: #8792a4; font-size: 11px; }
.brand-mark { width: 32px; height: 32px; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 6px; background: #f2f4f7; border-radius: 7px; }
.brand-mark span { display: block; border-radius: 1px; background: var(--sidebar); }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 19px; background: var(--accent); }
.brand-mark span:nth-child(3) { height: 14px; }

.workspace-switcher { display: grid; grid-template-columns: 9px 1fr 18px; align-items: center; gap: 10px; margin-bottom: 22px; padding: 11px 12px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.07); border-radius: 7px; }
.workspace-switcher small, .workspace-switcher b { display: block; }
.workspace-switcher small { color: #7f899a; font-size: 10px; }
.workspace-switcher b { margin-top: 2px; font-size: 12px; font-weight: 600; }
.workspace-switcher svg { width: 15px; color: #788396; }
.workspace-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(227,111,57,.12); }

.primary-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { margin: 0 10px 7px; color: #6d7889; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nav-label-spaced { margin-top: 18px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 10px; min-height: 42px; padding: 0 11px; color: #98a3b4; background: transparent; border-radius: 6px; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #e8edf5; background: rgba(255,255,255,.035); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.075); box-shadow: inset 2px 0 0 var(--accent); }
.nav-item svg { width: 17px; }
.nav-item span { font-size: 12px; font-weight: 500; }
.nav-item em { min-width: 21px; padding: 2px 6px; color: #aab4c2; background: rgba(255,255,255,.06); border-radius: 10px; font-size: 9px; font-style: normal; text-align: center; }
.nav-item .nav-live { color: #53c29f; background: transparent; font-size: 7px; }

.sidebar-footer { margin-top: auto; }
.local-status { display: grid; grid-template-columns: 8px 1fr; gap: 2px 9px; align-items: center; margin: 0 8px 14px; padding: 10px 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.local-status span:not(.status-pulse) { font-size: 11px; color: #c1c9d5; }
.local-status small { grid-column: 2; color: #6f7b8c; font-size: 9px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #4dbb91; box-shadow: 0 0 0 4px rgba(77,187,145,.1); }
.profile-row { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 10px; padding: 7px 8px; color: #e5eaf2; background: transparent; text-align: left; border-radius: 6px; }
.profile-row:hover { background: rgba(255,255,255,.04); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: #30435b; color: #fff; font: 700 13px/1 "Manrope"; }
.profile-copy b, .profile-copy small { display: block; }
.profile-copy b { font-size: 11px; }
.profile-copy small { margin-top: 3px; color: #6f7b8c; font-size: 9px; }
.profile-row svg { width: 15px; color: #748093; }

.main-content { grid-column: 2; min-width: 0; }
.topbar { height: 64px; position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 0 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.breadcrumb svg { width: 13px; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { position: relative; width: 34px; height: 34px; display: grid; place-items: center; flex: none; color: #617086; background: transparent; border-radius: 6px; transition: .17s ease; }
.icon-button:hover { color: var(--ink); background: #f0f2f5; }
.icon-button.bordered { border: 1px solid var(--line); }
.icon-button svg { width: 17px; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; background: var(--accent); border: 1px solid #fff; border-radius: 50%; }
.primary-button, .secondary-button, .ghost-button, .outline-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 6px; font-size: 11px; font-weight: 600; transition: .18s ease; }
.primary-button { color: #fff; background: var(--ink); box-shadow: 0 7px 18px rgba(23,32,51,.16); }
.primary-button:hover { background: #27344a; transform: translateY(-1px); }
.primary-button.compact { min-height: 36px; }
.primary-button svg, .secondary-button svg, .ghost-button svg, .outline-button svg { width: 15px; }
.secondary-button { color: #fff; background: var(--accent); box-shadow: 0 7px 18px rgba(227,111,57,.18); }
.secondary-button:hover { background: var(--accent-deep); }
.ghost-button { color: var(--ink-soft); background: #f3f5f7; }
.ghost-button:hover { color: var(--ink); background: #e8ecf0; }
.outline-button { color: var(--ink); background: #fff; border: 1px solid var(--line-strong); }
.outline-button:hover { border-color: #afb7c3; }
.outline-button.full { width: 100%; }

.page-wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 58px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.eyebrow-line { width: 18px; height: 1px; background: var(--accent); }
.page-heading h1 { margin: 9px 0 6px; font: 800 28px/1.2 "Manrope", "Microsoft YaHei"; letter-spacing: 0; }
.page-heading p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.heading-meta { display: flex; align-items: center; gap: 8px; color: #8b95a6; font-size: 10px; }
.sync-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--green); background: #eaf5f1; border-radius: 50%; }
.sync-icon svg { width: 13px; }
.meta-divider { width: 1px; height: 12px; background: var(--line); }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 38px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20,29,45,.035); border-radius: var(--radius); }
.metric-cell { min-height: 96px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 19px 21px; border-right: 1px solid var(--line); }
.metric-cell:last-child { border-right: 0; }
.metric-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; }
.metric-icon svg { width: 16px; }
.metric-icon.amber { color: #b85e2f; background: #fff0e6; }
.metric-icon.blue { color: #3f6fbd; background: #eaf0fa; }
.metric-icon.green { color: #26866a; background: #e7f4ef; }
.metric-icon.purple { color: #775496; background: #f0eafa; }
.metric-cell small { display: block; color: var(--muted); font-size: 9px; }
.metric-cell strong { display: block; margin-top: 4px; font: 700 21px/1 "Manrope"; }
.metric-cell strong span { font-size: 12px; }
.metric-trend { align-self: end; margin-bottom: 8px; color: #99a2b0; font-size: 8px; }
.metric-trend.up { color: var(--green); }
.cost-cell { grid-template-columns: 38px 1fr; }
.usage-bar { grid-column: 2; width: 100%; height: 3px; overflow: hidden; background: #edf0f4; border-radius: 3px; }
.usage-bar span { display: block; height: 100%; background: var(--purple); }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-heading > div:first-child { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font: 700 15px/1 "Manrope", "Microsoft YaHei"; }
.section-count { color: var(--muted); font-size: 9px; }
.section-actions { display: flex; align-items: center; gap: 7px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px; color: var(--ink-soft); background: transparent; font-size: 10px; }
.text-button:hover { color: var(--accent-deep); }
.text-button svg { width: 13px; }

.project-card { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 285px; overflow: hidden; margin-bottom: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-cover { position: relative; min-height: 285px; overflow: hidden; background: #e6e8e8; }
.project-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,13,22,.42)); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-cover img { transform: scale(1.025); }
.cover-badge { position: absolute; z-index: 2; left: 15px; bottom: 14px; display: flex; align-items: center; gap: 5px; padding: 6px 8px; color: #fff; background: rgba(17,25,39,.78); border: 1px solid rgba(255,255,255,.17); border-radius: 4px; font-size: 8px; backdrop-filter: blur(7px); }
.cover-badge svg { width: 12px; color: #ffb36e; }
.project-main { display: flex; flex-direction: column; padding: 23px 27px 20px; }
.project-title-row { display: flex; justify-content: space-between; gap: 20px; }
.project-kicker { display: flex; align-items: center; gap: 10px; }
.source-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; color: #b4582e; background: var(--accent-soft); border-radius: 3px; font-size: 8px; font-weight: 700; }
.source-chip svg { width: 10px; }
.project-id { color: #9aa3af; font-size: 8px; }
.project-title-row h3 { margin: 10px 0 5px; font: 700 18px/1.35 "Manrope"; }
.project-title-row p { margin: 0; color: var(--ink-soft); font-size: 9px; }
.more-project { margin-top: -5px; }
.project-progress { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 9px; color: #98a1af; font-size: 7px; }
.progress-labels span:first-child, .progress-labels span:nth-child(2) { color: var(--ink); font-weight: 700; }
.progress-track { position: relative; height: 2px; margin: 0 4px; background: #e8ebef; }
.progress-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.progress-dot { position: absolute; top: 50%; width: 8px; height: 8px; background: #fff; border: 2px solid #d7dce3; border-radius: 50%; transform: translate(-50%, -50%); }
.progress-dot.done { border-color: var(--accent); background: var(--accent); }
.progress-dot.active { width: 11px; height: 11px; border: 3px solid #fff; background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.progress-status { display: flex; justify-content: space-between; margin-top: 12px; }
.progress-status b { color: var(--accent-deep); font-size: 9px; }
.progress-status span { color: #8e98a7; font-size: 8px; }
.project-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.project-updated { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #9ba4b1; font-size: 8px; }
.project-updated svg { width: 12px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 25px; }
.recent-section, .recent-info, .insight-panel { min-width: 0; }
.compact-heading { margin-bottom: 10px; }
.recent-list { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.recent-item { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 58px 65px 18px; align-items: center; gap: 12px; min-height: 67px; padding: 9px 14px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); text-align: left; }
.recent-item:last-child { border-bottom: 0; }
.recent-item:hover { background: #fafbfc; }
.recent-thumb { width: 42px; height: 42px; overflow: hidden; background: #edf0f2; border-radius: 5px; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-info b, .recent-info small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-info b { font-size: 10px; }
.recent-info small { margin-top: 4px; color: #929baa; font-size: 8px; }
.recent-status { justify-self: start; padding: 4px 6px; border-radius: 3px; font-size: 7px; font-weight: 700; }
.amber-status { color: #b4582e; background: #fff0e6; }
.blue-status { color: #3f6fbd; background: #eaf0fa; }
.green-status { color: #26765f; background: #e8f4ef; }
.recent-time { color: #9aa3b0; font-size: 8px; }
.recent-item > svg { width: 13px; color: #adb5c0; }
.insight-panel { align-self: start; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius); }
.insight-header { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; padding: 17px 17px 12px; }
.insight-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent-deep); background: var(--accent-soft); border-radius: 6px; }
.insight-icon svg { width: 15px; }
.insight-header h3 { margin: 0; font-size: 11px; }
.insight-header small { display: block; margin-top: 3px; color: #9ba4b2; font-size: 8px; }
.insight-body { padding: 0 17px; }
.insight-line { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.insight-number { color: var(--accent); font: 700 8px/1.5 "Manrope"; }
.insight-line p { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.6; }
.insight-link { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; color: var(--ink); background: #fafbfc; border-top: 1px solid var(--line); font-size: 9px; font-weight: 700; }
.insight-link:hover { color: var(--accent-deep); }
.insight-link svg { width: 13px; }

/* Material review and AI workflow surfaces */
.asset-heading { align-items: end; margin-bottom: 24px; }
.asset-heading-actions { display: flex; align-items: center; gap: 8px; }
.workflow-ribbon { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 22px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ribbon-step { display: flex; align-items: center; gap: 9px; color: #a0a8b4; white-space: nowrap; }
.ribbon-step > span { width: 23px; height: 23px; display: grid; place-items: center; color: #9fa8b5; border: 1px solid #dfe3e8; border-radius: 50%; font: 700 8px/1 "Manrope"; }
.ribbon-step b, .ribbon-step small { display: block; }
.ribbon-step b { font-size: 9px; }
.ribbon-step small { margin-top: 3px; font-size: 7px; }
.ribbon-step.done, .ribbon-step.active { color: var(--ink); }
.ribbon-step.done > span { color: #fff; background: var(--green); border-color: var(--green); }
.ribbon-step.active > span { color: var(--accent-deep); background: var(--accent-soft); border-color: #f5c6aa; }
.ribbon-step i { width: 13px; height: 13px; margin-left: 1px; color: var(--green); }
.ribbon-line { height: 1px; background: var(--line); }
.ribbon-line.active { background: #eaa984; }
.asset-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.asset-library, .material-inspector { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.asset-library { padding: 20px; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.library-toolbar h2 { margin: 0; font: 700 14px/1 "Manrope"; }
.library-toolbar span { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.asset-filters { display: flex; align-items: center; gap: 5px; }
.filter-chip { padding: 6px 8px; color: #8a94a2; background: #f7f8fa; border: 1px solid transparent; border-radius: 4px; font-size: 8px; }
.filter-chip:hover { border-color: var(--line-strong); }
.filter-chip.active { color: var(--ink); background: #fff5ef; border-color: #f1c2a5; font-weight: 700; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.asset-card { overflow: hidden; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; transition: .18s ease; }
.asset-card:hover { border-color: #c6cdd7; box-shadow: 0 7px 20px rgba(20,29,45,.07); }
.asset-card.selected { border-color: #e9a57f; box-shadow: inset 0 0 0 1px #f3c4a8; }
.asset-card.asset-failed, .asset-card.asset-unchecked { cursor: default; }
.asset-card.asset-failed { border-color: #e7c5c5; background: #fffafa; }
.asset-card.asset-unchecked { border-style: dashed; }
.asset-card[aria-disabled="true"]:hover { box-shadow: none; }
.asset-preview { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; padding: 0; background: #eef1f2; cursor: zoom-in; }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.asset-preview:hover img { transform: scale(1.04); }
.asset-zoom { position: absolute; right: 7px; bottom: 7px; width: 26px; height: 26px; display: grid; place-items: center; color: #fff; background: rgba(15,23,36,.72); border-radius: 4px; opacity: 0; transition: .18s ease; }
.asset-preview:hover .asset-zoom { opacity: 1; }
.asset-zoom svg { width: 13px; }
.asset-unavailable-icon { width: 100%; height: 100%; display: grid; place-items: center; color: #929daa; background: #f0f2f4; }
.asset-unavailable-icon svg { width: 28px; height: 28px; }
.asset-card-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px 2px; }
.asset-kind { color: #b45d35; font-size: 7px; font-weight: 700; }
.asset-check { position: relative; width: 17px; height: 17px; display: block; cursor: pointer; }
.asset-check input { position: absolute; opacity: 0; pointer-events: none; }
.asset-check span { width: 17px; height: 17px; display: grid; place-items: center; color: transparent; border: 1px solid #cad1da; border-radius: 4px; }
.asset-check input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); }
.asset-check svg { width: 11px; height: 11px; stroke-width: 3; }
.asset-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 5px 8px 9px; }
.asset-card-bottom b, .asset-card-bottom small { display: block; }
.asset-card-bottom b { overflow: hidden; color: var(--ink); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.asset-card-bottom small { margin-top: 3px; color: #a0a9b5; font-size: 7px; }
.asset-card-bottom .asset-error { max-width: 170px; overflow: hidden; color: #a34b4b; white-space: nowrap; text-overflow: ellipsis; }
.asset-more { width: 23px; height: 23px; }
.asset-more svg { width: 13px; }
.video-section { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.video-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.video-head h2 { margin: 0; font: 700 12px/1 "Manrope"; }
.video-head span { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.outline-button.small { min-height: 29px; padding: 0 9px; font-size: 8px; }
.video-empty { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fafbfc; border: 1px dashed #d6dce3; border-radius: 5px; }
.video-placeholder { width: 31px; height: 31px; display: grid; place-items: center; color: #9ea8b5; background: #eef1f4; border-radius: 5px; }
.video-placeholder svg { width: 15px; }
.video-empty b, .video-empty small { display: block; }
.video-empty b { color: var(--ink-soft); font-size: 9px; }
.video-empty small { margin-top: 3px; color: #a2aab5; font-size: 8px; }
.video-empty .text-button { margin-left: auto; padding: 5px; font-size: 8px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.video-card { overflow: hidden; background: #f8fafb; border: 1px solid var(--line); border-radius: 6px; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111827; object-fit: contain; }
.video-card > div { display: grid; gap: 3px; padding: 10px 12px; }
.video-card b { font-size: 9px; }
.video-card small { color: var(--muted); font-size: 8px; }
.material-empty { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 28px; color: var(--muted); background: #f8fafb; border: 1px dashed #d5dbe2; border-radius: 6px; text-align: center; }
.material-empty svg { width: 28px; height: 28px; margin-bottom: 4px; }
.material-empty b { color: var(--ink); font-size: 11px; }
.material-empty small { max-width: 360px; font-size: 8px; line-height: 1.7; }
.recent-thumb > svg { width: 18px; height: 18px; margin: 12px; color: #a4aebb; }
.material-inspector { padding: 18px; }
.inspector-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.inspector-title > div { display: flex; align-items: center; gap: 9px; }
.score-ring { width: 39px; height: 39px; display: grid; place-items: center; color: var(--green); background: #eaf5f1; border: 3px solid #bee2d5; border-radius: 50%; font: 700 12px/1 "Manrope"; }
.score-ring small { display: none; }
.inspector-title h3 { margin: 0; font-size: 11px; }
.inspector-title p { margin: 4px 0 0; color: #98a1af; font-size: 8px; }
.review-chip { padding: 4px 6px; color: #b45d35; background: var(--accent-soft); border-radius: 3px; font-size: 7px; font-weight: 700; white-space: nowrap; }
.quality-list { padding: 8px 0; border-bottom: 1px solid var(--line); }
.quality-row { display: grid; grid-template-columns: 16px 1fr; gap: 7px; align-items: start; padding: 8px 0; }
.quality-row > svg { width: 14px; color: var(--green); }
.quality-row.warning > svg { color: #d1843b; }
.quality-row b, .quality-row small { display: block; }
.quality-row b { font-size: 9px; }
.quality-row small { margin-top: 3px; color: #98a1af; font-size: 8px; }
.inspector-section { padding-top: 16px; }
.inspector-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.inspector-section-head h4 { margin: 0; font-size: 10px; }
.inspector-section-head span { color: #98a1af; font-size: 8px; }
.inspector-section label { display: block; margin-bottom: 10px; color: #7f8998; font-size: 8px; }
.inspector-section textarea { width: 100%; resize: vertical; margin-top: 5px; padding: 9px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; font-size: 9px; line-height: 1.5; }
.inspector-section textarea:focus { border-color: #8a98aa; box-shadow: 0 0 0 3px rgba(77,97,124,.08); }
.inspector-actions { padding-top: 4px; }
.primary-button.full { width: 100%; }
.inspector-actions small { display: block; margin-top: 9px; color: #9aa3b0; font-size: 8px; text-align: center; }

.analysis-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 17px; align-items: start; }
.analysis-main, .analysis-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.analysis-main { padding: 22px; }
.analysis-state { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 18px; background: #faf9fd; border: 1px solid #ebe3f4; border-radius: 7px; }
.analysis-orbit { width: 54px; height: 54px; display: grid; place-items: center; color: #775496; background: #f0eafa; border: 1px solid #e2d3f0; border-radius: 50%; }
.analysis-orbit svg { width: 23px; }
.analysis-label { color: #775496; font-size: 8px; font-weight: 700; }
.analysis-label.running { animation: pulse-label 1s infinite alternate; }
@keyframes pulse-label { to { opacity: .45; } }
.analysis-state h2 { margin: 6px 0 5px; font: 700 15px/1.3 "Manrope"; }
.analysis-state p { margin: 0; color: #969fad; font-size: 8px; }
.analysis-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 17px; }
.analysis-modules > div { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 14px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; }
.analysis-modules svg { grid-row: span 2; width: 17px; color: var(--accent); }
.analysis-modules b, .analysis-modules small { display: block; }
.analysis-modules b { font-size: 9px; }
.analysis-modules small { margin-top: 3px; color: #9aa3af; font-size: 8px; }
.analysis-side { padding: 18px; }
.analysis-side h3 { margin: 0 0 13px; font-size: 11px; }
.config-line { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.config-line span { color: #919aa8; font-size: 8px; }
.config-line b { font-size: 8px; text-align: right; }
.analysis-side .text-button { width: 100%; justify-content: space-between; margin-top: 9px; padding-inline: 0; }
.demo-analysis-note { margin-top: 12px; padding: 10px; color: #8a623f; background: #fff7ed; border: 1px solid #f3dfc7; border-radius: 5px; font-size: 8px; line-height: 1.6; }
.loading-button svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analysis-results { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.result-heading { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.result-heading span { color: var(--accent); font-size: 7px; font-weight: 800; }
.result-heading h2 { margin: 5px 0 0; font: 700 16px/1.25 "Manrope"; }
.result-heading > div:last-child { display: grid; gap: 5px; text-align: right; }
.result-heading b { font-size: 9px; }
.result-heading small { color: var(--muted); font-size: 8px; }
.visual-warning { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: start; padding: 13px 22px; color: #79512f; background: #fff7ed; border-bottom: 1px solid #f0dcc4; }
.visual-warning svg { width: 18px; color: #a66b37; }
.visual-warning b { display: block; font-size: 9px; }
.visual-warning p { margin: 4px 0 0; font-size: 8px; line-height: 1.55; }
.summary-band { padding: 19px 22px; background: #f7faf8; border-bottom: 1px solid #dfe9e3; }
.summary-band > div { display: flex; align-items: center; gap: 14px; }
.summary-score { flex: 0 0 54px; height: 54px; display: grid; place-items: center; align-content: center; color: var(--green); background: #fff; border: 1px solid #cfe0d7; border-radius: 50%; font: 800 17px/1 "Manrope"; }
.summary-score small { margin-top: 3px; color: #84958c; font: 600 7px/1 "DM Sans"; }
.summary-band h3 { margin: 0; font-size: 12px; line-height: 1.5; }
.summary-band p { margin: 5px 0 0; color: #76847c; font-size: 8px; line-height: 1.6; }
.summary-band > p { margin: 12px 0 0 68px; }
.result-section { padding: 22px; border-bottom: 1px solid var(--line); }
.result-section:last-child { border-bottom: 0; }
.result-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.result-section-head > svg { width: 18px; color: var(--accent); }
.result-section-head h3 { margin: 0; font-size: 12px; }
.result-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.fact-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.fact-columns > div { padding: 13px; background: #fafbfc; border: 1px solid var(--line); border-radius: 6px; }
.fact-columns h4, .compliance-grid h4 { margin: 0 0 10px; color: #657183; font-size: 8px; text-transform: uppercase; }
.analysis-list { display: grid; gap: 8px; }
.analysis-empty { padding: 12px; color: #9ca5b1; background: #f8f9fa; border: 1px dashed #d9dee4; border-radius: 4px; font-size: 8px; text-align: center; }
.fact-line { display: grid; grid-template-columns: 15px 1fr; gap: 7px; padding-bottom: 8px; border-bottom: 1px solid #e9edf1; }
.fact-line:last-child { padding-bottom: 0; border-bottom: 0; }
.fact-line > svg { width: 14px; color: var(--green); }
.fact-line.warning > svg { color: #c07837; }
.fact-line.suggestion > svg { color: #6e7fa1; }
.fact-line b, .fact-line small { display: block; }
.fact-line b { font-size: 8px; line-height: 1.45; }
.fact-line small { margin-top: 4px; color: #929ca8; font-size: 7px; line-height: 1.5; }
.consumer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.consumer-card { padding: 14px; background: #fbfcfd; border-left: 2px solid #73968b; border-radius: 0 5px 5px 0; }
.consumer-card b { font-size: 9px; }
.consumer-card p { margin: 8px 0; font-size: 9px; line-height: 1.5; }
.consumer-card small { color: var(--muted); font-size: 7px; line-height: 1.5; }
.direction-list { display: grid; gap: 9px; }
.direction-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; }
.direction-card.recommended { border-color: #e2b291; box-shadow: inset 3px 0 0 var(--accent); }
.direction-card.chosen { background: #f5faf7; border-color: #9bbcad; box-shadow: inset 3px 0 0 var(--green); }
.direction-index { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #263348; border-radius: 4px; font: 800 12px/1 "Manrope"; }
.direction-title { display: flex; align-items: center; gap: 8px; }
.direction-title h4 { margin: 0; font-size: 10px; }
.direction-title span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px; color: #ad613b; background: var(--accent-soft); border-radius: 3px; font-size: 7px; font-weight: 700; }
.direction-title svg { width: 10px; }
.direction-copy > p { margin: 7px 0 9px; color: #687384; font-size: 8px; line-height: 1.55; }
.direction-copy dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; }
.direction-copy dl > div { min-width: 0; }
.direction-copy dt { color: #9aa2ad; font-size: 7px; }
.direction-copy dd { margin: 3px 0 0; font-size: 8px; line-height: 1.45; }
.direction-next { display: flex; justify-content: flex-end; margin-top: 14px; }
.compliance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.compliance-grid > div { padding: 13px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; }
.risk-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid #e9edf1; }
.risk-line:last-child { border-bottom: 0; }
.risk-line span { font-size: 8px; font-weight: 600; }
.risk-line b { color: #b86242; font-size: 7px; }
.risk-line small { grid-column: 1 / -1; color: var(--muted); font-size: 7px; line-height: 1.45; }
.listing-copy label { display: block; margin-top: 11px; color: #717b89; font-size: 8px; }
.listing-copy textarea { width: 100%; resize: vertical; margin-top: 5px; padding: 10px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 9px; line-height: 1.6; }
.listing-copy ul { margin: 6px 0 0; padding: 12px 12px 12px 27px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 9px; line-height: 1.7; }
.listing-plan { scroll-margin-top: 78px; margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.plan-hero { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 22px; color: #fff; background: #1d2a3d; }
.plan-hero > div:first-child { max-width: 640px; }
.plan-hero > div:first-child > span { color: #f0a779; font-size: 7px; font-weight: 800; }
.plan-hero h2 { margin: 6px 0 7px; font: 700 18px/1.25 "Manrope"; }
.plan-hero p { margin: 0; color: #bcc6d3; font-size: 9px; line-height: 1.6; }
.plan-counts { display: grid; grid-template-columns: repeat(4, 54px); gap: 1px; overflow: hidden; flex: 0 0 auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 5px; }
.plan-counts span { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 3px; color: #aeb9c7; background: #253348; font-size: 7px; }
.plan-counts b { color: #fff; font: 700 15px/1 "Manrope"; }
.visual-system { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; border-bottom: 1px solid var(--line); }
.visual-system > div { min-width: 0; display: grid; align-content: center; gap: 6px; min-height: 65px; padding: 12px 16px; border-right: 1px solid var(--line); }
.visual-system > div:last-child { border-right: 0; }
.visual-system span { color: #929ca8; font-size: 7px; }
.visual-system b { overflow: hidden; font-size: 8px; line-height: 1.45; text-overflow: ellipsis; }
.color-swatches { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.color-swatches i { width: 18px; height: 18px; border: 1px solid rgba(24,34,48,.13); border-radius: 3px; }
.plan-group { padding: 22px; border-bottom: 1px solid var(--line); }
.plan-group-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.plan-group-title > div { display: flex; align-items: center; gap: 10px; }
.plan-group-title > div > span { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 4px; font-size: 8px; font-weight: 800; }
.plan-group-title h3 { margin: 0; font-size: 12px; }
.plan-group-title p { margin: 3px 0 0; color: var(--muted); font-size: 7px; }
.plan-group-title > b { padding: 4px 7px; color: #617083; background: #f1f3f5; border-radius: 3px; font-size: 8px; }
.plan-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.plan-card { min-width: 0; padding: 14px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; }
.plan-card-head { display: flex; align-items: center; gap: 5px; }
.plan-id, .batch-chip, .candidate-chip { padding: 3px 5px; border-radius: 3px; font-size: 7px; font-weight: 700; }
.plan-id { color: #fff; background: #354259; }
.batch-chip { color: #5b6c83; background: #e9edf2; }
.candidate-chip { margin-left: auto; color: #ad613b; background: var(--accent-soft); }
.plan-card h4 { margin: 11px 0 5px; font-size: 10px; }
.plan-objective { min-height: 30px; margin: 0; color: #737e8c; font-size: 8px; line-height: 1.55; }
.plan-spec { display: grid; grid-template-columns: 35px 1fr; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e6eaee; }
.plan-spec span, .overlay-preview > span { color: #929ca8; font-size: 7px; }
.plan-spec p { margin: 0; font-size: 8px; line-height: 1.55; }
.overlay-preview { display: grid; gap: 4px; margin-top: 10px; padding: 10px; background: #f1f4f6; border-left: 2px solid #758aa7; border-radius: 0 4px 4px 0; }
.overlay-preview strong { font: 800 11px/1.3 "Manrope"; }
.overlay-preview small { color: #647185; font-size: 8px; }
.overlay-preview em { margin-top: 3px; color: #8d96a2; font-size: 7px; font-style: normal; line-height: 1.5; }
.plan-meta { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 10px; }
.plan-meta label { color: #8993a0; font-size: 7px; }
.plan-meta select { display: block; min-width: 118px; margin-top: 4px; padding: 6px 24px 6px 7px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 8px; }
.plan-meta > span { color: #8f99a6; font-size: 7px; }
.plan-card details { margin-top: 11px; border-top: 1px solid #e6eaee; }
.plan-card summary { padding-top: 10px; color: #5e6f85; font-size: 8px; font-weight: 600; cursor: pointer; }
.prompt-detail { display: grid; gap: 5px; margin-top: 9px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.prompt-detail b { margin-top: 3px; font-size: 7px; text-transform: uppercase; }
.prompt-detail p { margin: 0 0 4px; color: #6f7a89; font-size: 7px; line-height: 1.6; overflow-wrap: anywhere; }
.plan-approval { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: #f6faf8; }
.plan-approval > div { display: flex; align-items: center; gap: 10px; }
.plan-approval svg { width: 20px; color: var(--green); }
.plan-approval b, .plan-approval small { display: block; }
.plan-approval b { font-size: 10px; }
.plan-approval small { margin-top: 4px; color: #7f8c85; font-size: 8px; }
.generation-review { scroll-margin-top: 78px; margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.generation-heading { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.generation-heading span { color: var(--accent); font-size: 7px; font-weight: 800; }
.generation-heading h2 { margin: 5px 0; font: 700 16px/1.2 "Manrope"; }
.generation-heading p { margin: 0; color: var(--muted); font-size: 8px; }
.generation-heading > b { padding: 6px 8px; color: #55657a; background: #eef1f4; border-radius: 4px; font-size: 8px; }
.candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 18px 22px; }
.candidate-card { overflow: hidden; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; transition: .18s ease; }
.candidate-card.selected { border-color: #7fa08f; box-shadow: 0 0 0 2px rgba(82,126,105,.13); }
.candidate-canvas-wrap { position: relative; width: 100%; display: block; overflow: hidden; background: #e8ecef; border: 0; aspect-ratio: 1; }
.candidate-canvas-wrap canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.candidate-canvas-wrap > span { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: rgba(13,21,33,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 4px; opacity: 0; transition: .18s ease; }
.candidate-canvas-wrap:hover > span { opacity: 1; }
.candidate-canvas-wrap svg { width: 15px; }
.candidate-card.image-error .candidate-canvas-wrap::after { content: "生成图加载失败"; position: absolute; inset: 0; display: grid; place-items: center; color: #8c5a4b; font-size: 9px; }
.candidate-card-body { padding: 13px; }
.candidate-card-body > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.candidate-card-body > div:first-child > b { font-size: 8px; }
.candidate-number { padding: 4px 6px; color: #ad613b; background: var(--accent-soft); border-radius: 3px; font-size: 8px; font-weight: 700; }
.candidate-card-body > p { margin: 10px 0; color: #7e8896; font-size: 8px; line-height: 1.55; }
.candidate-actions { display: flex; justify-content: space-between; gap: 8px; }
.candidate-actions button { flex: 1; }
.generation-errors { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 22px 18px; padding: 10px; color: #a65842; background: #fff4f1; border: 1px solid #f0d0c7; border-radius: 5px; font-size: 8px; }
.generation-errors .outline-button { flex: 0 0 auto; min-height: 32px; background: #fff; }
.main-next { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: #f6faf8; border-top: 1px solid #dfe9e3; }
.main-next > div { display: flex; align-items: center; gap: 10px; }
.main-next svg { width: 19px; color: var(--green); }
.main-next b, .main-next small { display: block; }
.main-next b { font-size: 10px; }
.main-next small { margin-top: 4px; color: #7f8c85; font-size: 8px; }
.generation-progress { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 13px; align-items: center; margin-top: 18px; padding: 16px 18px; background: #f6f8fb; border: 1px solid #dce2e9; border-radius: var(--radius); }
.generation-progress.paused, .generation-progress.failed { background: #fff8f5; border-color: #edd4ca; }
.progress-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #6c7f9b; background: #e8edf4; border-radius: 50%; }
.generation-progress.running .progress-icon svg, .generation-progress.queued .progress-icon svg { animation: spin 1s linear infinite; }
.generation-progress.paused .progress-icon, .generation-progress.failed .progress-icon { color: #b7664a; background: #f6e5df; }
.progress-icon svg { width: 17px; }
.generation-progress-head { display: flex; justify-content: space-between; gap: 10px; }
.generation-progress-head b { font-size: 9px; }
.generation-progress-head span { color: #788698; font-size: 8px; }
.job-progress-track { height: 5px; overflow: hidden; margin: 7px 0; background: #e2e7ed; border-radius: 3px; }
.job-progress-track span { display: block; height: 100%; background: #6f8f80; border-radius: inherit; transition: width .25s ease; }
.generation-progress small { color: #8b96a4; font-size: 7px; }
.set-review { scroll-margin-top: 78px; margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.set-review-heading { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.set-review-heading > div:first-child > span { color: var(--accent); font-size: 7px; font-weight: 800; }
.set-review-heading h2 { margin: 5px 0; font: 700 16px/1.2 "Manrope"; }
.set-review-heading p { margin: 0; color: var(--muted); font-size: 8px; }
.set-review-heading > div:last-child { min-width: 58px; display: grid; place-items: center; gap: 2px; padding: 8px; background: #f1f4f6; border-radius: 5px; }
.set-review-heading > div:last-child b { font: 700 13px/1 "Manrope"; }
.set-review-heading > div:last-child small { color: var(--muted); font-size: 7px; }
.set-review-heading > .set-review-summary-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.set-review-summary-actions .outline-button { margin-top: 8px; white-space: nowrap; }
.set-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 22px; }
.set-review-card { min-width: 0; overflow: hidden; background: #fbfcfd; border: 1px solid var(--line); border-radius: 6px; }
.set-review-card.approved { border-color: #9bbcad; box-shadow: inset 3px 0 0 var(--green); }
.set-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.set-review-head > div:first-child { min-width: 0; }
.set-review-head span { color: #8a95a3; font-size: 7px; font-weight: 700; }
.set-review-head h3 { overflow: hidden; margin: 4px 0 0; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.set-review-tools { display: flex; align-items: center; gap: 8px; }
.set-review-tools > span { display: grid; gap: 3px; text-align: right; }
.set-review-tools b { font-size: 8px; }
.set-review-tools small { color: var(--muted); font-size: 7px; }
.set-candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.set-candidate-grid:has(.set-candidate:only-child) { grid-template-columns: 1fr; }
.set-candidate { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.set-candidate.selected { border-color: #7fa08f; box-shadow: 0 0 0 2px rgba(82,126,105,.11); }
.small-canvas { aspect-ratio: 1; }
.set-candidate-actions { display: flex; gap: 5px; padding: 7px; }
.set-candidate-actions > button:last-child { flex: 1; min-width: 0; }
.set-review-copy { display: grid; gap: 4px; padding: 10px 12px; background: #f3f5f7; border-top: 1px solid var(--line); }
.set-review-copy b { font-size: 8px; }
.set-review-copy span { color: #7e8997; font-size: 7px; line-height: 1.45; }
.set-review-footer { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; background: #f6faf8; border-top: 1px solid #dfe9e3; }
.set-review-footer > div { display: flex; align-items: center; gap: 10px; }
.set-review-footer svg { width: 19px; color: var(--green); }
.set-review-footer b, .set-review-footer small { display: block; }
.set-review-footer b { font-size: 10px; }
.set-review-footer small { margin-top: 4px; color: #7f8c85; font-size: 8px; }
.export-panel { scroll-margin-top: 78px; margin-top: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.export-complete { min-height: 104px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 20px 22px; color: #fff; background: #20352e; }
.export-complete > svg { width: 31px; height: 31px; color: #88c2a8; }
.export-complete span { color: #8fc4aa; font-size: 7px; font-weight: 800; }
.export-complete h2 { margin: 5px 0; font: 700 17px/1.2 "Manrope"; }
.export-complete p { margin: 0; color: #b9c9c1; font-size: 8px; }
.export-complete .primary-button { color: #17231f; background: #fff; }
.export-url-box { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.8fr) auto; align-items: center; gap: 14px; padding: 18px 22px; }
.export-url-box b, .export-url-box small { display: block; }
.export-url-box b { font-size: 9px; }
.export-url-box small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.export-url-box textarea { width: 100%; resize: vertical; padding: 9px; color: #5e6b7d; background: #f8fafb; border: 1px solid var(--line); border-radius: 5px; font: 7px/1.5 Consolas, monospace; }

@media (max-width: 1050px) {
  .asset-workbench { grid-template-columns: 1fr; }
  .material-inspector { order: -1; }
}
@media (max-width: 760px) {
  .asset-heading { display: block; }
  .asset-heading-actions { margin-top: 16px; }
  .workflow-ribbon { overflow-x: auto; grid-template-columns: auto 32px auto 32px auto 32px auto; padding: 12px; }
  .ribbon-line { width: 32px; }
  .asset-library { padding: 13px; }
  .library-toolbar { align-items: start; flex-direction: column; }
  .asset-filters { width: 100%; overflow-x: auto; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .analysis-layout { grid-template-columns: 1fr; }
  .analysis-state { grid-template-columns: 44px 1fr; }
  .analysis-state .secondary-button { grid-column: 1 / -1; width: 100%; }
  .analysis-modules { grid-template-columns: 1fr; }
  .fact-columns, .consumer-grid, .compliance-grid { grid-template-columns: 1fr; }
  .direction-card { grid-template-columns: 30px minmax(0, 1fr); }
  .direction-card .choose-direction { grid-column: 1 / -1; width: 100%; }
  .direction-copy dl { grid-template-columns: 1fr; }
  .plan-hero { align-items: start; flex-direction: column; }
  .plan-counts { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .visual-system, .plan-card-grid { grid-template-columns: 1fr; }
  .visual-system > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-approval { align-items: stretch; flex-direction: column; }
  .plan-approval .primary-button { width: 100%; }
  .candidate-grid { grid-template-columns: 1fr; }
  .candidate-actions, .main-next { align-items: stretch; flex-direction: column; }
  .main-next .primary-button { width: 100%; }
  .generation-progress { grid-template-columns: 36px 1fr; }
  .generation-progress > button { grid-column: 1 / -1; width: 100%; }
  .set-review-grid { grid-template-columns: 1fr; }
  .set-review-footer { align-items: stretch; flex-direction: column; }
  .set-review-footer .primary-button { width: 100%; }
  .export-complete { grid-template-columns: 38px 1fr; }
  .export-complete .primary-button { grid-column: 1 / -1; width: 100%; }
  .export-url-box { grid-template-columns: 1fr; }
  .export-url-box .outline-button { width: 100%; }
}

.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 8px; padding: 11px 14px; color: #fff; background: #182336; border-radius: 6px; box-shadow: 0 16px 38px rgba(10,16,27,.25); font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; color: #6dd0aa; }

.modal-backdrop, .drawer-backdrop { position: fixed; z-index: 80; inset: 0; opacity: 0; pointer-events: none; background: rgba(8,13,22,.78); backdrop-filter: blur(8px); transition: .2s ease; }
.modal-backdrop.open, .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.preview-modal { width: min(1280px, calc(100% - 36px)); height: min(900px, calc(100vh - 28px)); margin: 14px auto; display: grid; grid-template-rows: 72px minmax(0,1fr) 56px; overflow: hidden; color: #fff; background: #101722; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.modal-topbar { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.modal-kicker { color: #8c97a8; font-size: 7px; font-weight: 700; letter-spacing: 1.1px; }
.modal-topbar h2, .drawer-header h2 { margin: 4px 0 0; font-size: 15px; }
.preview-position { margin-left: 8px; color: #8f99a8; font-size: 10px; }
.modal-tools { display: flex; align-items: center; gap: 4px; }
.modal-tools > span { min-width: 42px; color: #aeb6c2; font-size: 9px; text-align: center; }
.icon-button.on-dark { color: #b8c0cc; }
.icon-button.on-dark:hover { color: #fff; background: rgba(255,255,255,.08); }
.preview-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 22px 72px; background: repeating-conic-gradient(#181f2b 0% 25%, #151c27 0% 50%) 50% / 20px 20px; }
.preview-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: center; transition: transform .12s ease; box-shadow: 0 14px 42px rgba(0,0,0,.38); cursor: grab; }
.preview-stage img:active { cursor: grabbing; }
.preview-nav { position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: rgba(10,16,26,.7); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transform: translateY(-50%); }
.preview-nav:hover:not(:disabled) { background: rgba(224,118,63,.9); }
.preview-nav:disabled { opacity: .28; cursor: default; }
.preview-nav-prev { left: 18px; }
.preview-nav-next { right: 18px; }
.modal-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 20px; color: #8f99a8; border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; }
.preview-selection { display: inline-flex; align-items: center; gap: 7px; color: #fff; cursor: pointer; }
.preview-selection input { width: 15px; height: 15px; accent-color: #e0763f; }

.drawer-backdrop { background: rgba(8,13,22,.47); }
.settings-drawer { position: absolute; inset: 0 0 0 auto; width: min(480px, 100%); display: grid; grid-template-rows: 70px minmax(0,1fr) 68px; color: var(--ink); background: #f7f8fa; box-shadow: -20px 0 60px rgba(8,13,22,.2); transform: translateX(25px); transition: .25s ease; }
.drawer-backdrop.open .settings-drawer { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-scroll { overflow-y: auto; padding: 20px 22px 30px; }
.settings-note { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin-bottom: 15px; padding: 12px; color: #426052; background: #edf6f2; border: 1px solid #d8ebe3; border-radius: 6px; }
.settings-note svg { width: 17px; color: var(--green); }
.settings-note p { margin: 1px 0 0; font-size: 9px; line-height: 1.55; }
.form-section { margin-bottom: 14px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.model-routing-section .form-section-title { align-items: center; }
.model-routing-section .form-hint { margin: -5px 0 12px; color: #8b95a3; font-size: 10px; line-height: 1.5; }
.settings-inline-warning { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px; padding: 10px; color: #73512e; background: #fff8eb; border: 1px solid #f1d8ac; border-radius: 6px; font-size: 12px; line-height: 1.5; }
.settings-inline-warning svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
#modelRoutingFields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#modelRoutingFields label { margin: 0; }
#modelRoutingFields select { width: 100%; height: 36px; margin-top: 5px; padding: 0 8px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 11px; }
.form-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.form-section-title h3 { margin: 0; font-size: 12px; }
.config-status { padding: 3px 6px; color: #a55a38; background: #fff0e8; border-radius: 3px; font-size: 7px; font-weight: 700; }
.config-status.connected { color: #26765f; background: #e8f4ef; }
.capability-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 11px; padding: 9px 10px; color: #6e7886; background: #f8f9fb; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; }
.capability-note b { color: #475466; font-size: 8px; }
.capability-note.unavailable { color: #8b5a35; background: #fff7ed; border-color: #eed9c1; }
.green-text { color: #26765f; background: #e8f4ef; }
.form-section label { display: block; margin-bottom: 12px; color: #697588; font-size: 8px; font-weight: 600; }
.form-section input, .form-section select { width: 100%; height: 38px; margin-top: 6px; padding: 0 11px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; font-size: 10px; }
.form-section input:focus, .form-section select:focus { border-color: #8190a5; box-shadow: 0 0 0 3px rgba(77,97,124,.08); }
.secret-input { position: relative; }
.secret-input input { padding-right: 42px; }
.secret-input .icon-button { position: absolute; right: 2px; bottom: 2px; height: 34px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.storage-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 9px; }
.storage-row > span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.storage-row svg { width: 14px; }
.storage-row b { font-size: 8px; }
.storage-meter { height: 4px; overflow: hidden; margin: 5px 0 7px; background: #edf0f3; border-radius: 4px; }
.storage-meter span { display: block; height: 100%; background: var(--green); }
.storage-hint { color: #9aa3af; font-size: 8px; }
.drawer-footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 0 22px; background: #fff; border-top: 1px solid var(--line); }

.feedback-mode-button { min-height: 34px; padding-inline: 11px; }
.feedback-mode-button.active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 20px rgba(227,111,57,.2); }
.feedback-inbox-button { min-height: 34px; gap: 7px; padding: 0 7px 0 11px; color: var(--ink); background: #fff; font-size: 10px; font-weight: 650; }
.feedback-inbox-button:hover { background: #f7f8fa; }
.feedback-inbox-button svg { width: 15px; }
.feedback-inbox-button b { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; color: #fff; background: var(--accent); border-radius: 10px; font-size: 9px; }

.feedback-capture { position: fixed; z-index: 110; inset: 0; display: none; cursor: crosshair; touch-action: none; user-select: none; }
.feedback-capture.active { display: block; background: rgba(26,37,54,.05); }
.feedback-capture-hint { position: fixed; top: 78px; left: 50%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #fff; background: rgba(20,30,47,.94); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; box-shadow: 0 14px 32px rgba(15,23,38,.2); font-size: 10px; transform: translateX(-50%); pointer-events: none; }
.feedback-capture-hint svg { width: 15px; color: #f39a70; }
.feedback-capture-hint kbd { padding: 2px 5px; color: #adb6c4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 3px; font: 8px/1.4 inherit; }
.feedback-selection, .feedback-draft-highlight { position: fixed; display: none; border: 2px solid var(--accent); background: rgba(227,111,57,.12); box-shadow: 0 0 0 9999px rgba(12,20,32,.12), 0 6px 18px rgba(227,111,57,.16); border-radius: 4px; pointer-events: none; }
.feedback-selection.visible, .feedback-draft-highlight.visible { display: block; }
.feedback-draft-highlight { z-index: 111; box-shadow: 0 7px 22px rgba(227,111,57,.18); }
.feedback-draft-highlight span { position: absolute; top: -24px; left: -2px; padding: 4px 7px; color: #fff; background: var(--accent); border-radius: 3px; font-size: 8px; font-weight: 700; white-space: nowrap; }

.feedback-composer { position: fixed; z-index: 120; top: 84px; right: 24px; width: min(370px, calc(100vw - 32px)); display: none; padding: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 24px 70px rgba(12,20,32,.26); }
.feedback-composer.open { display: block; }
.feedback-composer.left-side { right: auto; left: 24px; }
.feedback-composer-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.feedback-composer-head small, .feedback-composer-head strong { display: block; }
.feedback-composer-head small { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.feedback-composer-head strong { margin-top: 4px; font: 700 14px/1.35 "Manrope", "Microsoft YaHei", sans-serif; }
.feedback-composer textarea { width: 100%; min-height: 96px; resize: vertical; padding: 11px; color: var(--ink); background: #fafbfc; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; font-size: 11px; line-height: 1.55; }
.feedback-composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227,111,57,.1); }
.feedback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.feedback-fields label { color: #6f7b8c; font-size: 8px; font-weight: 650; }
.feedback-fields select { width: 100%; height: 34px; margin-top: 5px; padding: 0 8px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; outline: 0; font-size: 9px; }
.feedback-context { margin-top: 10px; padding: 8px 9px; color: #788394; background: #f5f7f9; border-radius: 5px; font-size: 8px; line-height: 1.5; }
.feedback-composer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.feedback-composer-actions button { min-height: 34px; }

.feedback-backdrop { background: rgba(8,13,22,.45); }
.feedback-panel { position: absolute; inset: 0 0 0 auto; width: min(500px, 100%); display: grid; grid-template-rows: 70px auto auto minmax(0,1fr); color: var(--ink); background: #f6f7f9; box-shadow: -20px 0 60px rgba(8,13,22,.2); transform: translateX(25px); transition: .25s ease; }
.feedback-backdrop.open .feedback-panel { transform: translateX(0); }
.feedback-panel-summary { display: grid; grid-template-columns: 64px 1fr; gap: 13px; align-items: center; margin: 18px 20px 10px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.feedback-panel-summary > div { display: grid; place-items: center; min-height: 52px; background: var(--accent-soft); border-radius: 6px; }
.feedback-panel-summary strong { color: var(--accent-deep); font: 800 21px/1 "Manrope", sans-serif; }
.feedback-panel-summary span { color: #a85c3b; font-size: 8px; font-weight: 700; }
.feedback-panel-summary p { margin: 0; color: #687589; font-size: 9px; line-height: 1.6; }
.feedback-panel-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 20px 12px; }
.feedback-panel-toolbar > div { display: flex; gap: 6px; }
.feedback-panel-toolbar a { text-decoration: none; }
.feedback-list { min-height: 0; overflow-y: auto; padding: 0 20px 26px; }
.feedback-empty { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 7px; color: #9aa4b1; background: #fff; border: 1px dashed #d9dee6; border-radius: 7px; text-align: center; }
.feedback-empty svg { width: 24px; height: 24px; color: #b4bdc8; }
.feedback-empty b { color: #687589; font-size: 11px; }
.feedback-empty span { font-size: 8px; }
.feedback-card { margin-bottom: 9px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.feedback-card-main { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 13px; }
.feedback-card-index { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: #2a374c; border-radius: 6px; font: 800 11px/1 "Manrope", sans-serif; }
.feedback-card-copy { min-width: 0; }
.feedback-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: #8b95a3; font-size: 8px; }
.feedback-priority { padding: 2px 5px; color: #a24c2c; background: var(--accent-soft); border-radius: 3px; font-weight: 800; }
.feedback-priority.p0, .feedback-priority.p1 { color: #a53e3e; background: #fdecec; }
.feedback-priority.p3 { color: #687589; background: #eef1f4; }
.feedback-card-copy p { margin: 0; color: #27344a; font-size: 10px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-card-context { margin-top: 7px; color: #8b95a3; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedback-card-preview { width: calc(100% - 26px); max-height: 150px; object-fit: cover; margin: -3px 13px 12px; border: 1px solid var(--line); border-radius: 5px; }
.feedback-card-screenshot-missing { display: flex; align-items: center; gap: 7px; margin: -3px 13px 12px; padding: 9px 10px; color: #8a6570; background: #faf5f6; border: 1px dashed #e2cfd4; border-radius: 5px; font-size: 9px; }
.feedback-card-screenshot-missing svg { width: 15px; }
.feedback-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; background: #fafbfc; border-top: 1px solid var(--line); }
.feedback-card-footer time { color: #9aa3af; font-size: 8px; }
.feedback-status-select { height: 28px; padding: 0 7px; color: #566477; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; font-size: 8px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { width: 78px; padding-inline: 11px; }
  .brand-lockup { justify-content: center; padding-inline: 0; }
  .brand-lockup > div:last-child, .workspace-switcher div, .workspace-switcher > svg, .nav-label, .nav-item span, .nav-item em, .local-status span:not(.status-pulse), .local-status small, .profile-copy, .profile-row > svg { display: none; }
  .workspace-switcher { grid-template-columns: 1fr; justify-items: center; padding: 12px; }
  .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .local-status { grid-template-columns: 1fr; justify-items: center; border-bottom: 0; }
  .profile-row { grid-template-columns: 1fr; justify-items: center; }
  .main-content { grid-column: 2; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2) { border-right: 0; }
  .metric-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .lower-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 80; inset: auto 0 0; width: 100%; height: 64px; display: block; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); background: #111927; }
  .sidebar .brand-lockup, .sidebar .workspace-switcher, .sidebar .sidebar-footer, .sidebar .nav-label { display: none; }
  .primary-nav { height: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 58px; gap: 2px; overflow-x: auto; overflow-y: hidden; padding: 0; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-item { width: 58px; height: 50px; min-height: 50px; display: grid; place-items: center; padding: 0; border-radius: 5px; }
  .nav-item svg { width: 19px; height: 19px; }
  .main-content { grid-column: 1; }
  .main-content { padding-bottom: 68px; }
  .topbar { padding: 0 16px; }
  .breadcrumb span, .breadcrumb svg { display: none; }
  .primary-button.compact span { display: none; }
  .feedback-mode-button span { display: none; }
  .feedback-mode-button { width: 34px; padding: 0; }
  .feedback-inbox-button span { display: none; }
  .feedback-composer, .feedback-composer.left-side { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; }
  .feedback-capture-hint { top: 72px; max-width: calc(100vw - 24px); white-space: nowrap; }
  .page-wrap { width: calc(100% - 28px); padding-top: 24px; }
  .page-heading { align-items: start; }
  .heading-meta { display: none; }
  .page-heading h1 { font-size: 24px; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-cell { grid-template-columns: 32px 1fr; padding: 14px; }
  .metric-trend { display: none; }
  .project-card { grid-template-columns: 1fr; }
  .project-cover { min-height: 245px; }
  .project-title-row h3 { font-size: 16px; }
  .progress-labels { gap: 10px; overflow-x: auto; }
  .project-actions { flex-wrap: wrap; }
  .project-updated { width: 100%; margin: 4px 0 0; }
  .recent-item { grid-template-columns: 44px 1fr 18px; }
  .recent-status, .recent-time { display: none; }
  .preview-modal { width: 100%; height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
}

/* Listing Studio 2.0: readability, evidence workflow and direct-image review */
body { font-size: 14px; }
.primary-button, .secondary-button, .ghost-button, .outline-button { min-height: 42px; font-size: 13px; }
.outline-button.small, .ghost-button.small, .secondary-button.small { min-height: 34px; font-size: 12px; }
.nav-item span { font-size: 14px; }
.breadcrumb, .page-heading p, .heading-meta { font-size: 13px; }
.eyebrow { font-size: 10px; }
.library-toolbar h2, .analysis-state h2 { font-size: 18px; }
.library-toolbar span, .filter-chip, .asset-kind, .asset-card-bottom b, .asset-card-bottom small { font-size: 12px; }
.asset-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.asset-cache-summary { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; }
.asset-cache-summary b { color: #24724a; }
.asset-cache-summary em { color: #a34242; font-style: normal; }
.asset-cache-summary span { margin: 0; color: #6f7a87; font-size: 11px; }
.asset-batch-actions { display: flex; align-items: center; gap: 4px; padding-right: 9px; border-right: 1px solid var(--line); }
.asset-batch-actions .text-button { padding: 6px 7px; font-size: 12px; }
.asset-card { position: relative; cursor: pointer; }
.asset-card:focus-visible { outline: 3px solid rgba(224, 118, 63, .22); outline-offset: 2px; }
.asset-preview { cursor: pointer; }
.asset-preview:hover img { transform: scale(1.025); }
.asset-zoom { border: 0; cursor: zoom-in; opacity: 1; }
.asset-card-top { padding-top: 10px; }
.asset-check, .asset-check span { width: 23px; height: 23px; }
.asset-check svg { width: 14px; height: 14px; }
.inspector-title h3, .inspector-section-head h4 { font-size: 14px; }
.inspector-title p, .quality-row small, .inspector-section-head span, .inspector-section label, .inspector-actions small { font-size: 12px; }
.quality-row b { font-size: 13px; }
.inspector-section textarea { padding: 11px; font-size: 14px; line-height: 1.55; }
.listing-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.listing-settings-grid label { margin: 0; }
.listing-settings-grid input, .listing-settings-grid select { width: 100%; height: 40px; margin-top: 5px; padding: 0 9px; color: var(--ink); background: #fbfcfd; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 13px; }
.variant-map-list { display: grid; gap: 8px; }
.variant-map-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 8px; background: #f8fafb; border: 1px solid var(--line); border-radius: 6px; }
.variant-map-row > span { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; color: var(--muted); background: #eef1f4; border-radius: 5px; }
.variant-map-row img { width: 100%; height: 100%; object-fit: cover; }
.variant-map-row svg { width: 18px; }
.variant-map-row b, .variant-map-row small { display: block; }
.variant-map-row b { font-size: 13px; }
.variant-map-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.workflow-ribbon { grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; }

.analysis-modules { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.analysis-modules > div { grid-template-columns: 28px 1fr; padding: 13px; }
.analysis-label, .analysis-state p, .analysis-modules small, .config-line span, .config-line b, .demo-analysis-note { font-size: 12px; }
.analysis-modules b, .analysis-side h3 { font-size: 13px; }
.result-heading span, .result-heading small, .summary-band p, .result-section-head p, .analysis-empty { font-size: 12px; }
.result-heading b, .visual-warning b, .fact-columns h4, .compliance-grid h4 { font-size: 13px; }
.visual-warning p, .fact-line b, .fact-line small, .consumer-card b, .consumer-card p, .consumer-card small { font-size: 13px; }
.summary-band h3, .result-section-head h3 { font-size: 17px; }
.direction-title h4 { font-size: 15px; }
.direction-copy > p, .direction-copy dt, .direction-copy dd, .risk-line span, .risk-line b, .risk-line small { font-size: 12px; }
.listing-copy label, .listing-copy textarea, .listing-copy ul { font-size: 14px; }

.clarification-section .result-section-head { align-items: center; }
.question-progress { margin-left: auto; padding: 6px 9px; color: #72533e; background: #fff3e9; border-radius: 999px; font-size: 12px; font-weight: 700; }
.clarification-list { display: grid; gap: 11px; }
.clarification-card { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px; background: #fffaf6; border: 1px solid #efd7c7; border-radius: 8px; }
.clarification-card.resolved { background: #f6faf8; border-color: #cfe2d8; }
.clarification-index { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #c77b52; border-radius: 50%; font-size: 12px; font-weight: 800; }
.clarification-card.resolved .clarification-index { background: var(--green); }
.clarification-copy > div:first-child { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.clarification-copy h4 { margin: 0; font-size: 15px; line-height: 1.45; }
.clarification-copy > div:first-child > span { flex: 0 0 auto; padding: 4px 7px; color: #9a5c38; background: #fff0e5; border-radius: 999px; font-size: 11px; font-weight: 700; }
.clarification-copy p { margin: 7px 0 3px; color: #667386; font-size: 13px; }
.clarification-copy small { color: var(--muted); font-size: 12px; }
.clarification-copy textarea { width: 100%; margin-top: 11px; padding: 10px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; }
.clarification-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.clarification-answer { display: flex; gap: 8px; margin-top: 10px; padding: 9px 10px; background: #fff; border-radius: 5px; font-size: 13px; }
.plan-readiness { display: inline-flex; align-items: center; gap: 7px; color: #69778a; font-size: 13px; }
.plan-readiness svg { width: 17px; color: var(--green); }

.plan-hero > div:first-child > span, .plan-hero p, .plan-counts span, .visual-system span, .visual-system b { font-size: 12px; }
.plan-group-title h3 { font-size: 17px; }
.plan-group-title p, .plan-group-title > b { font-size: 12px; }
.plan-card-grid { grid-template-columns: 1fr; }
.plan-card { padding: 16px; }
.plan-id, .batch-chip, .candidate-chip, .risk-chip { padding: 5px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.risk-chip { margin-left: auto; color: #47755f; background: #e9f4ee; }
.risk-chip.warning { color: #a65d39; background: #fff0e6; }
.plan-card-title { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.plan-card-title small { color: var(--accent); font-size: 11px; text-transform: uppercase; }
.plan-card-title h4 { margin: 4px 0 0; font-size: 16px; }
.plan-card-title > span { color: var(--muted); font-size: 12px; }
.buyer-question { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; margin-top: 11px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.buyer-question svg { width: 18px; color: var(--accent); }
.buyer-question span, .plan-spec span, .overlay-preview > span { color: var(--muted); font-size: 11px; }
.buyer-question b { display: block; margin-top: 3px; font-size: 14px; }
.plan-objective, .plan-spec p, .overlay-preview small, .overlay-preview em { min-height: 0; font-size: 13px; }
.overlay-preview strong { font-size: 18px; }
.plan-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.plan-evidence > div { padding: 9px; background: #f4f6f8; border-radius: 5px; }
.plan-evidence span { color: var(--muted); font-size: 11px; }
.plan-evidence p { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; color: #6d7887; font-size: 12px; }
.plan-evidence p b { padding: 3px 5px; background: #fff; border-radius: 3px; font-size: 11px; }
.plan-meta { justify-content: flex-start; gap: 12px; }
.plan-meta label, .plan-meta select, .plan-card summary, .prompt-detail b, .prompt-detail p { font-size: 12px; }
.plan-meta select { min-width: 128px; }
.plan-approval b { font-size: 14px; }
.plan-approval small { font-size: 12px; }

.generation-heading span, .generation-heading p, .generation-heading > b, .candidate-number, .candidate-card-body > div:first-child > b, .candidate-card-body > p, .generation-errors { font-size: 12px; }
.generation-heading h2 { font-size: 20px; }
.candidate-canvas-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qa-status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 10px; padding: 5px 7px; color: #735f4d; background: #f3eee9; border-radius: 4px; font-size: 11px; font-weight: 700; }
.qa-status.passed { color: #38725a; background: #e7f4ed; }
.qa-status.retry { color: #a55a3d; background: #fff0e9; }
.qa-status svg { width: 14px; }
.candidate-card-body details { margin: 8px 0 10px; color: #667487; font-size: 12px; }
.candidate-card-body details small { display: block; margin-top: 5px; line-height: 1.5; }
.correction-box { display: flex; align-items: end; gap: 12px; margin: 0 22px 18px; padding: 13px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 7px; }
.correction-box label { flex: 1; color: #5f6c7e; font-size: 13px; font-weight: 700; }
.correction-box textarea, .inline-correction textarea { width: 100%; margin-top: 7px; padding: 9px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 13px; }
.main-next b, .main-next small, .generation-progress-head b, .generation-progress-head span, .generation-progress small { font-size: 12px; }
.set-review-heading > div:first-child > span, .set-review-heading p, .set-review-heading > div:last-child small, .set-review-head span, .set-review-tools b, .set-review-tools small, .set-review-copy b, .set-review-copy span { font-size: 12px; }
.set-review-heading h2 { font-size: 20px; }
.set-review-head h3 { font-size: 14px; }
.inline-correction { display: flex; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.inline-correction textarea { margin: 0; flex: 1; }
.generation-item-error { display: grid; justify-items: center; gap: 6px; padding: 24px 14px; color: #9b5c43; text-align: center; }
.generation-item-error svg { width: 25px; }
.generation-item-error b { font-size: 14px; }
.generation-item-error span { font-size: 12px; }
.set-review-card.has-error { border-color: #e3c3b7; }
.set-review-card.compliance-blocked { border-color: #e3b5b0; background: #fffafa; }

@media (max-width: 1180px) {
  .analysis-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-ribbon { overflow-x: auto; }
  .ribbon-step { min-width: 150px; }
}

@media (max-width: 760px) {
  .asset-toolbar-actions, .correction-box, .inline-correction { align-items: stretch; flex-direction: column; }
  .asset-batch-actions { padding-right: 0; border-right: 0; }
  .analysis-modules, .plan-evidence { grid-template-columns: 1fr; }
  .clarification-card { grid-template-columns: 1fr; }
  .question-progress { margin-left: 0; }
}
.job-center {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: none;
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 36px rgba(20, 34, 55, 0.16);
  backdrop-filter: blur(12px);
  transition: width .18s ease;
}

.job-center.visible { display: block; }
.job-center.expanded { width: min(520px, calc(100vw - 32px)); }
.job-center-summary { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 9px; padding: 8px 11px; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.job-center-summary:hover { background: #f8fafc; }
.job-center-summary-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #6c7a90; background: #f0f3f7; border-radius: 6px; }
.job-center-summary-icon svg { width: 17px; }
.job-center-summary-icon.running { color: #ed6b36; background: #fff1eb; }
.job-center-summary-icon.running svg { animation: spin 1s linear infinite; }
.job-center-summary-icon.queued { color: #7d68c2; background: #f1eefb; }
.job-center-summary-icon.failed, .job-center-summary-icon.paused, .job-center-summary-icon.cancelled { color: #c94e4e; background: #fff0ef; }
.job-center-summary-copy { min-width: 0; }
.job-center-summary-copy b, .job-center-summary-copy small, .job-center-summary-meta b, .job-center-summary-meta small { display: block; }
.job-center-summary-copy b { overflow: hidden; margin-top: 3px; color: #1d2a3e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.job-center-summary-copy small { overflow: hidden; color: #718096; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.job-center-summary-meta { text-align: right; white-space: nowrap; }
.job-center-summary-meta b { color: #4f5e73; font-size: 10px; }
.job-center-summary-meta small { margin-top: 3px; color: #8a95a5; font-size: 9px; }
.job-center-chevron { width: 16px; color: #718096; }
.job-center-panel { display: none; max-height: min(58vh, 480px); overflow-y: auto; padding: 10px; border-top: 1px solid #e2e7ee; }
.job-center.expanded .job-center-panel { display: block; }
.job-center-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin: 0 2px 8px; }
.job-center-panel-head > b { color: #354258; font-size: 11px; }
.job-center-help { width: 28px; height: 28px; }
.job-center-help svg { width: 15px; }
.job-center-list { display: grid; gap: 8px; }
.job-center-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: start; gap: 9px; padding: 9px 10px; border-radius: 6px; background: #f5f7fb; }
.job-center-item > i { width: 18px; color: #6c7a90; }
.job-center-item.running > i { color: #ed6b36; animation: spin 1s linear infinite; }
.job-center-item.queued > i { color: #7d68c2; }
.job-center-item.completed > i { color: #1f9d70; }
.job-center-item.failed > i,
.job-center-item.paused > i,
.job-center-item.cancelled > i { color: #d05252; }
.job-center-copy { min-width: 0; }
.job-center-copy b { display: block; overflow: hidden; color: #1d2a3e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.job-center-copy small { display: block; overflow: hidden; margin-top: 2px; color: #758196; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.job-center-status { color: #5e6b80; font-size: 11px; font-weight: 700; }
.job-center-cancel { width: 30px; height: 30px; color: #a84444; }
.job-center-more { display: block; margin: 8px 2px 0; color: #7a8798; font-size: 10px; text-align: right; }

.record-page { width: min(1120px, 100%); margin: 0 auto; }
.record-page .page-heading { align-items: end; }
.record-count { color: #657187; font-size: 12px; font-weight: 700; }
.record-loading,
.record-empty { display: grid; min-height: 240px; place-items: center; align-content: center; gap: 8px; color: #6b778a; text-align: center; }
.record-empty svg { width: 28px; color: #8a96a8; }
.record-empty b { color: #243249; font-size: 15px; }
.record-empty span { font-size: 12px; }
.record-list { border-top: 1px solid var(--line); }
.record-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(100px, 140px) minmax(100px, 140px) 38px; align-items: center; gap: 18px; min-height: 72px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.record-row > div { min-width: 0; }
.record-row b,
.record-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-row b { color: #1e2b40; font-size: 14px; }
.record-row small,
.record-row > span { margin-top: 4px; color: #6f7b8e; font-size: 12px; }
.usage-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 28px; }
.usage-metrics > div { min-height: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.usage-metrics span,
.usage-metrics b { display: block; }
.usage-metrics span { color: #6a7688; font-size: 12px; }
.usage-metrics b { margin-top: 10px; color: #1d2a3e; font-size: 24px; letter-spacing: 0; }

.clarification-edit { display: none; margin-top: 10px; }
.clarification-card.editing .clarification-edit { display: block; }
.clarification-card.editing .clarification-edit-button { display: none; }
.clarification-answer-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

.plan-stale-warning,
.plan-compliance-warning,
.plan-count-reason {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7e8;
  color: #7c551b;
  font-size: 13px;
  line-height: 1.6;
}
.plan-compliance-warning { background: #fff0ef; color: #9a3e36; }
.plan-count-reason { background: #f4f7fb; color: #58667a; }
.risk-chip.blocked { background: #ffe8e5; color: #b33f35; }
.model-preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
#modelRoutingFields label > small { display: block; margin-top: 5px; color: #7b8798; font-size: 11px; line-height: 1.45; }
.compliance-section > summary { cursor: pointer; list-style: none; }
.compliance-section > summary::-webkit-details-marker { display: none; }
.compliance-section[open] > summary { margin-bottom: 18px; }

.workflow-heading-actions { display: flex; align-items: center; gap: 10px; }
.workflow-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(88px, 1fr)); padding: 3px; border: 1px solid #dbe2ec; border-radius: 8px; background: #f3f6fa; }
.workflow-mode-switch button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #677489; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.workflow-mode-switch button.active { background: #ffffff; color: #18263b; box-shadow: 0 1px 4px rgba(24, 38, 59, 0.12); }
.workflow-mode-note { display: flex; align-items: center; gap: 9px; margin: -4px 0 16px; padding: 10px 12px; border-left: 3px solid #ef6b35; background: #f6f8fb; color: #5d6a7e; font-size: 12px; line-height: 1.5; }
.workflow-mode-note i { width: 17px; color: #ef6b35; }
.workflow-stage-rail { margin: 0 0 18px; border-top: 1px solid #dfe5ed; border-bottom: 1px solid #dfe5ed; background: #fafbfc; }
.workflow-stage-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; border-bottom: 1px solid #e6eaf0; }
.workflow-stage-rail-head > div { display: flex; align-items: baseline; gap: 9px; }
.workflow-stage-rail-head span { color: #e36131; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.workflow-stage-rail-head b { color: #223047; font-size: 13px; }
.workflow-stage-rail-head small { color: #6f7c8f; font-size: 11px; }
.workflow-stage-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workflow-stage { display: grid; min-width: 0; min-height: 62px; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 12px; border-right: 1px solid #e5e9ef; border-bottom: 1px solid #e5e9ef; }
.workflow-stage:nth-child(4n) { border-right: 0; }
.workflow-stage:nth-last-child(-n + 3) { border-bottom: 0; }
.workflow-stage > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #ccd4df; border-radius: 50%; color: #718096; background: #fff; font-size: 10px; font-weight: 800; }
.workflow-stage > div { min-width: 0; }
.workflow-stage b, .workflow-stage small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-stage b { color: #344156; font-size: 11px; }
.workflow-stage small { margin-top: 3px; color: #8791a0; font-size: 9px; }
.workflow-stage.completed > span { border-color: #82ae9b; color: #287456; background: #ecf6f1; }
.workflow-stage.running > span { border-color: #ef8a62; color: #b64a22; background: #fff1eb; }
.workflow-stage.running b { color: #b64a22; }
.section-stage-label { display: block; margin-bottom: 4px; color: #d75d2f; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.analysis-ai-metrics { display: grid; gap: 8px; padding: 0 0 14px; }
.ai-call-metrics { display: grid; grid-template-columns: minmax(170px, 0.7fr) minmax(0, 2fr); align-items: stretch; gap: 12px; margin: 8px 0 14px; padding: 10px 12px; border-top: 1px solid #dfe5ed; border-bottom: 1px solid #dfe5ed; background: #f8fafc; }
.ai-call-metrics.no-call { grid-template-columns: 1fr; }
.ai-call-metrics.has-failure { border-color: #e9c4bd; background: #fff8f6; }
.ai-metrics-stage { display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 8px; }
.ai-metrics-stage > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: #33445b; font-size: 10px; font-weight: 800; }
.ai-metrics-stage > div { min-width: 0; }
.ai-metrics-stage b, .ai-metrics-stage small { display: block; }
.ai-metrics-stage b { color: #25344b; font-size: 12px; }
.ai-metrics-stage small { margin-top: 2px; color: #748196; font-size: 10px; }
.ai-metrics-values { display: grid; grid-template-columns: 1.35fr 1.2fr repeat(5, minmax(70px, 1fr)); min-width: 0; border-left: 1px solid #e1e6ed; }
.ai-metrics-values > span { min-width: 0; padding: 2px 8px; border-right: 1px solid #e1e6ed; }
.ai-metrics-values > span:last-child { border-right: 0; }
.ai-metrics-values small, .ai-metrics-values b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-metrics-values small { color: #7a8798; font-size: 9px; }
.ai-metrics-values b { margin-top: 4px; color: #29384f; font-size: 10px; }
.ai-call-details { grid-column: 1 / -1; border-top: 1px solid #e1e6ed; }
.ai-call-details > summary { padding-top: 9px; color: #536177; font-size: 10px; font-weight: 700; cursor: pointer; }
.ai-call-detail-row { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(110px, 1.3fr) minmax(110px, 1.2fr) 90px 110px; gap: 9px; padding: 8px 0; border-bottom: 1px solid #e5e9ef; color: #627086; font-size: 10px; }
.ai-call-detail-row small { grid-column: 1 / -1; color: #a5443b; }
.ai-call-metrics.compact { grid-template-columns: 1fr; gap: 7px; margin: 8px 0; padding: 8px; }
.ai-call-metrics.compact .ai-metrics-stage { grid-template-columns: 25px minmax(0, 1fr); }
.ai-call-metrics.compact .ai-metrics-stage > span { width: 25px; height: 25px; font-size: 9px; }
.ai-call-metrics.compact .ai-metrics-stage b { font-size: 10px; }
.ai-call-metrics.compact .ai-metrics-stage small { font-size: 9px; }
.ai-call-metrics.compact .ai-metrics-values { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e1e6ed; border-left: 0; }
.ai-call-metrics.compact .ai-metrics-values > span { padding: 6px 5px 2px; border-right: 0; }
.ai-call-metrics.compact .ai-metrics-values small { font-size: 8px; }
.ai-call-metrics.compact .ai-metrics-values b { font-size: 9px; }
.candidate-card-body > .ai-call-metrics, .set-candidate > .ai-call-metrics { margin-right: 0; margin-left: 0; }
.set-candidate > .ai-call-metrics { width: 100%; }
.job-center-copy > .ai-call-metrics { margin-bottom: 0; }
.job-center-copy > .ai-call-metrics .ai-metrics-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.resolved-question-group { margin-top: 12px; border-top: 1px solid #e4e8ef; }
.resolved-question-group > summary { padding: 13px 2px 2px; color: #536177; font-size: 12px; font-weight: 700; cursor: pointer; }
.resolved-question-group > .clarification-list { margin-top: 10px; }
.feedback-card-resolution { display: grid; gap: 3px; margin: 9px 0; padding: 8px 10px; border-left: 3px solid #2d8f6f; background: #f0f8f5; color: #42675b; font-size: 11px; line-height: 1.5; }
.feedback-card-resolution b { color: #22775b; font-size: 11px; }
.workflow-quick .quick-advanced { display: none; }
.workflow-quick .plan-card .plan-objective,
.workflow-quick .plan-card .plan-evidence,
.workflow-quick .plan-card > details { display: none; }
.workflow-quick .plan-card { min-height: 0; }
.workflow-quick .plan-card-grid { display: none; }
.workflow-quick .quick-plan-list { display: grid; }
.workflow-professional .quick-plan-list { display: none; }
.quick-plan-list { display: none; gap: 7px; }
.quick-plan-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 10px 12px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 7px; }
.quick-plan-row.blocked { background: #fff7f5; border-color: #f0c7c0; }
.quick-plan-index { color: var(--accent); font-size: 12px; font-weight: 800; }
.quick-plan-main { min-width: 0; display: grid; gap: 3px; }
.quick-plan-main b, .quick-plan-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-plan-main b { font-size: 13px; }
.quick-plan-main span { color: var(--muted); font-size: 12px; }
.quick-plan-method, .quick-plan-risk { padding: 4px 7px; color: #647386; background: #f0f3f6; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.quick-plan-risk { color: #3f775c; background: #e9f4ee; }
.quick-plan-row.blocked .quick-plan-risk { color: #a33e35; background: #ffe8e5; }
.quick-plan-actions { display: flex; gap: 4px; }
.quick-plan-actions .icon-button { min-width: 27px; min-height: 27px; padding: 0; font-size: 13px; }
.quick-plan-actions .icon-button.danger { color: #a33e35; }
.quick-plan-editor { display: none; grid-template-columns: 1fr 2fr 1fr auto; gap: 9px; align-items: end; padding: 11px 12px; background: #f4f7fb; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; }
.quick-plan-editor.open { display: grid; }
.quick-plan-editor label { display: grid; gap: 4px; color: #617086; font-size: 11px; font-weight: 700; }
.quick-plan-editor input, .quick-plan-editor select { min-width: 0; padding: 8px 9px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; font: inherit; font-size: 12px; }
.quick-plan-editor > div { display: flex; gap: 6px; }
.plan-group-tools { display: flex; align-items: center; gap: 10px; }
.plan-group-tools .outline-button { min-height: 30px; }
.provider-warning { display: flex; align-items: center; gap: 9px; margin: 12px 22px 0; padding: 11px 13px; color: #8a5a36; background: #fff6e9; border: 1px solid #efd6ac; border-radius: 7px; font-size: 12px; }
.provider-warning svg { width: 17px; flex: 0 0 auto; }
.workflow-quick .analysis-modules { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .job-center, .job-center.expanded { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .workflow-heading-actions { align-items: stretch; flex-direction: column; }
  .workflow-mode-switch { width: 100%; }
  .workflow-quick .analysis-modules { grid-template-columns: 1fr 1fr; }
  .usage-metrics { grid-template-columns: 1fr 1fr; }
  .quick-plan-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .quick-plan-method { display: none; }
  .quick-plan-actions { grid-column: 2 / -1; }
  .quick-plan-editor { grid-template-columns: 1fr; }
  .record-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .record-row > span { grid-column: 1; }
  .record-row > .icon-button { grid-column: 2; grid-row: 1 / span 3; }
  .workflow-stage-rail-head { align-items: flex-start; flex-direction: column; }
  .workflow-stage-list { grid-template-columns: 1fr 1fr; }
  .workflow-stage:nth-child(4n) { border-right: 1px solid #e5e9ef; }
  .workflow-stage:nth-child(2n) { border-right: 0; }
  .workflow-stage:nth-last-child(-n + 3) { border-bottom: 1px solid #e5e9ef; }
  .workflow-stage:last-child { border-bottom: 0; }
  .ai-call-metrics { grid-template-columns: 1fr; }
  .ai-metrics-values { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #e1e6ed; border-left: 0; }
  .ai-metrics-values > span { padding: 7px 5px; border-right: 0; }
  .ai-call-detail-row { grid-template-columns: 1fr 1fr; }
  .job-center-panel { max-height: min(62vh, 430px); }
  .job-center-item { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .job-center-cancel { grid-column: 3; }
}
.quantity-mode-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quantity-mode-control button {
  display: grid;
  gap: 3px;
  padding: 10px 8px;
  border: 1px solid var(--line, #dfe4ea);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}

.quantity-mode-control button.active {
  border-color: #176b51;
  background: #eef8f4;
  box-shadow: inset 0 0 0 1px #176b51;
}

.quantity-mode-control button span,
.platform-limit-note {
  color: #758078;
  font-size: 11px;
}

.platform-limit-note {
  display: block;
  margin-top: 9px;
  line-height: 1.55;
}

.brief-fact-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brief-fact-summary > div {
  display: grid;
  gap: 2px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f8f6;
}

.brief-fact-summary b {
  color: #176b51;
  font-size: 24px;
}

.brief-fact-summary span {
  color: #66736b;
  font-size: 12px;
}

.final-fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e1e7e4;
}

.final-fact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.final-fact-row > svg { width: 16px; flex: 0 0 auto; margin-top: 2px; color: #176b51; }
.final-fact-row > span { display: grid; min-width: 0; gap: 2px; }
.final-fact-row b { overflow-wrap: anywhere; color: #25342d; font-size: 12px; line-height: 1.45; }
.final-fact-row small { color: #748078; font-size: 10px; }

.ai-recommendation {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #d88528;
  background: #fff8ed;
}

.ai-recommendation > span { display: flex; align-items: center; gap: 5px; color: #9a5a16; font-size: 10px; font-weight: 800; }
.ai-recommendation > span svg { width: 14px; }
.ai-recommendation b { color: #3e3326; font-size: 13px; line-height: 1.45; }
.ai-recommendation small { color: #7d6e5b; line-height: 1.45; }
.clarification-head-actions { display: flex; align-items: center; gap: 9px; }

.permission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.permission-summary > div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #dfe5e2;
  border-radius: 6px;
  background: #f8faf9;
}

.permission-summary b { color: #176b51; font-size: 20px; }
.permission-summary span { color: #69766e; font-size: 11px; }
.permission-exceptions { display: grid; gap: 7px; margin-top: 12px; }
.permission-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 11px; border-left: 3px solid #d88528; background: #fff9ef; }
.permission-row.blocked, .permission-row.internal_only { border-color: #b84f46; background: #fff5f3; }
.permission-row > span { color: #9a5a16; font-size: 10px; font-weight: 800; }
.permission-row.blocked > span, .permission-row.internal_only > span { color: #a33e35; }
.permission-row > div { display: grid; min-width: 0; gap: 2px; }
.permission-row b { overflow-wrap: anywhere; font-size: 12px; }
.permission-row small { color: #6c756f; font-size: 11px; line-height: 1.45; }

.listing-blueprint {
  display: grid;
  gap: 16px;
  margin: 18px 22px;
  padding: 18px 0;
  border-top: 1px solid #dfe5ec;
  border-bottom: 1px solid #dfe5ec;
}

.listing-blueprint-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.listing-blueprint-head > div { display: grid; gap: 3px; }
.listing-blueprint-head span { color: #d85b2b; font-size: 10px; font-weight: 800; }
.listing-blueprint-head h3 { margin: 0; font-size: 18px; }
.listing-blueprint-head p { max-width: 560px; margin: 0; color: #657287; font-size: 12px; line-height: 1.5; }
.listing-copy-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 12px 18px; }
.listing-copy-grid label, .listing-bullets { display: grid; gap: 6px; color: #526176; font-size: 11px; font-weight: 700; }
.listing-copy-grid textarea { width: 100%; resize: vertical; padding: 10px 11px; border: 1px solid #d8e0ea; border-radius: 6px; background: #fbfcfd; color: #1d2a3e; font: inherit; font-size: 12px; line-height: 1.5; }
.listing-description { grid-column: 1 / -1; }
.listing-bullets { padding: 10px 12px; border: 1px solid #d8e0ea; border-radius: 6px; background: #fbfcfd; }
.listing-bullets ol { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: #334258; font-weight: 500; line-height: 1.45; }
.blueprint-message-list { display: grid; gap: 7px; margin-top: 10px; }
.blueprint-message { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 8px 10px; background: #f6f8fa; border-radius: 6px; }
.blueprint-message > span { color: #d85b2b; font-size: 10px; font-weight: 800; }
.blueprint-message > div { display: grid; gap: 2px; }
.blueprint-message b { font-size: 12px; }
.blueprint-message small { color: #707d8d; font-size: 10px; }

@media (max-width: 760px) {
  .final-fact-list, .permission-summary, .listing-copy-grid { grid-template-columns: 1fr; }
  .clarification-head-actions, .listing-blueprint-head { align-items: stretch; flex-direction: column; }
  .permission-row { grid-template-columns: 70px minmax(0, 1fr); }
  .listing-blueprint { margin: 14px 12px; }
  .listing-description { grid-column: auto; }
}
