/* 云图平台 · 页面样式：登录、工作台、项目卡片、阶段条、文档排版与各页面的专属部件。设计令牌见 app.css。 */

/* ---------- 登录 ---------- */
.login { display: none; min-height: 100vh; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); background: var(--surface); }
body.guest .login { display: grid; }
.login-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px 56px; color: #fff;
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(139, 92, 246, .38), transparent 70%),
    radial-gradient(55% 60% at 8% 95%, rgba(62, 99, 221, .42), transparent 70%),
    linear-gradient(160deg, #0b1020 0%, #121a36 100%);
}
.login-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 40% 45%, #000 20%, transparent 75%);
}
.login-art > * { position: relative; }
.login-art .brand { padding: 0; }
.login-copy { max-width: 520px; }
.login-copy h1 { color: #fff; font-size: 36px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.login-copy > p { margin: 16px 0 34px; color: #b7c0d6; font-size: 15px; line-height: 1.75; }
.login-copy ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.login-copy li {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.login-copy li .ico { width: 20px; height: 20px; margin-top: 2px; color: #a9b8ff; }
.login-copy li b { display: block; color: #fff; font-size: 14px; }
.login-copy li span { color: #98a3bd; font-size: 13px; }
.login-foot { color: #5f6a84; letter-spacing: .06em; }
.login form.panel { align-self: center; justify-self: center; display: grid; gap: 18px; width: min(380px, calc(100% - 48px)); padding: 0; border: 0; box-shadow: none; background: transparent; }
.login-head .logo { display: none; width: 40px; height: 40px; margin-bottom: 18px; }
.login-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.login-head p { margin: 8px 0 6px; }
.login form input { min-height: 44px !important; }
.login form button.primary { height: 44px; font-size: 15px; }
.login-note { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.6; }

/* ---------- 工作台 ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 32px 34px; border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(55% 90% at 100% 0%, rgba(139, 92, 246, .45), transparent 65%),
    radial-gradient(60% 90% at 0% 100%, rgba(62, 99, 221, .55), transparent 70%),
    linear-gradient(135deg, #0d1430 0%, #172356 100%);
  box-shadow: 0 20px 40px -20px rgba(23, 35, 86, .55);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero > * { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #a9b8ff; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #7c93ff; box-shadow: 0 0 0 4px rgba(124, 147, 255, .25); }
.hero h2 { margin: 12px 0 8px; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.hero-main > p { max-width: 560px; margin: 0; color: #c3cbe0; font-size: 14.5px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions button.primary { border-color: rgba(255, 255, 255, .18); background: #fff; color: #1d2a5c; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
.hero-actions button.primary:hover:not(:disabled) { background: #eef2ff; }
button.ghost {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 13.5px; font-weight: 600; transition: background .15s;
}
button.ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-actions .ico { width: 16px; height: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px;
  background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.stat small { color: #aeb8d3; font-size: 12.5px; }
.stat strong { display: block; margin: 4px 0 2px; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: #7f8bab; font-size: 12px; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.flow-step { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -12px; width: 12px; height: 2px; background: var(--line-strong);
}
.flow-ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.flow-ico .ico { width: 19px; height: 19px; }
.flow-step b { display: block; font-size: 14px; }
.flow-step p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.flow-step em { position: absolute; top: 18px; right: 18px; color: var(--text-3); font: 500 11px var(--mono); font-style: normal; }

/* ---------- 项目卡片 ---------- */
.project-card { display: flex; flex-direction: column; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.project-card:hover { transform: translateY(-2px); border-color: #d3d9e4; box-shadow: var(--sh-2); }
.project-card h3 { margin: 14px 0 6px; font-size: 16px; }
.project-card > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 44px; margin: 0; font-size: 13px; line-height: 1.7; }
.progress { margin-top: 18px; }
.progress .bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.progress .bar span { height: 5px; border-radius: 3px; background: var(--surface-3); }
.progress .bar span.done { background: linear-gradient(90deg, #5b7bff, #7a6cf3); }
.progress .bar span.current { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.progress small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12px; }
.project-card .card-foot { margin-top: 16px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.avatars { display: inline-flex; align-items: center; }
.avatars .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar:first-child { margin-left: 0; }
.avatar {
  --h: 225; display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: hsl(var(--h) 75% 93%); color: hsl(var(--h) 45% 36%);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
}
.avatar.more { background: var(--surface-3); color: var(--muted); }
#whoami .avatar { width: 34px; height: 34px; font-size: 13px; background: hsl(var(--h) 60% 30%); color: hsl(var(--h) 90% 88%); }
.open-all { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 项目列表：范围与显示方式切换、列表视图 ---------- */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 16px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--sh-1); }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); background: var(--surface-2); }
.seg button.on { background: var(--accent-soft); color: var(--accent-2); }
.seg button b { font-weight: 650; font-variant-numeric: tabular-nums; }
.seg .ico { width: 15px; height: 15px; }
.project-table tbody tr { cursor: pointer; }
.project-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.project-table td { vertical-align: middle; }
.project-table td.proj { min-width: 200px; }
.proj-in { max-width: 440px; }
.project-table td.proj b { font-size: 14px; }
.project-table td.proj .badge { margin-left: 4px; }
.clamp1 { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }
.mini-progress { display: grid; grid-template-columns: repeat(10, 10px); gap: 2px; margin-bottom: 4px; }
.mini-progress span { height: 5px; border-radius: 3px; background: var(--surface-3); }
.mini-progress span.done { background: linear-gradient(90deg, #5b7bff, #7a6cf3); }
.mini-progress span.current { background: #8b5cf6; }
.project-table small.muted { white-space: nowrap; }
.person { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.person .avatar { width: 24px; height: 24px; font-size: 11px; }

/* ---------- 阶段条（步骤） ---------- */
.stagebar {
  position: relative; display: grid; grid-template-columns: repeat(10, minmax(72px, 1fr)); margin-bottom: 16px; padding: 16px 10px 14px; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1);
}
.stagebar > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; text-align: center; white-space: nowrap; }
.stagebar > div::before { content: ""; position: absolute; top: 12px; left: calc(-50% + 17px); right: calc(50% + 17px); height: 2px; border-radius: 2px; background: var(--line); }
.stagebar > div:first-child::before { display: none; }
.stagebar > div.done::before { background: linear-gradient(90deg, #5b7bff, #6f7cf6); }
.stagebar i {
  position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text-3);
  font-size: 11.5px; font-weight: 650; font-style: normal; font-variant-numeric: tabular-nums;
}
.stagebar i svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stagebar .done i { border-color: transparent; background: linear-gradient(135deg, #5b7bff, #7a6cf3); color: #fff; }
.stagebar .done span { color: var(--text-2); }
.stagebar .current i { border: 2px solid var(--accent); background: var(--surface); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.stagebar .current span { color: var(--accent-2); font-weight: 650; }

/* ---------- Markdown 文档 ---------- */
.document.md {
  max-height: 72vh; padding: 6px 24px 22px; background: var(--surface); border-color: var(--line);
  color: var(--text); font-size: 14px; line-height: 1.8; white-space: normal;
}
.md > :first-child { margin-top: 12px; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 26px 0 10px; line-height: 1.4; }
.md h1 { font-size: 21px; letter-spacing: -.02em; }
.md h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: 17.5px; }
.md h3 { font-size: 15.5px; }
.md h4, .md h5, .md h6 { color: var(--text-2); font-size: 14px; }
.md p { margin: 8px 0; color: var(--text-2); }
.md ul, .md ol { margin: 6px 0 10px; padding-left: 22px; color: var(--text-2); }
.md li { margin: 3px 0; }
.md li::marker { color: var(--text-3); }
.md li > ul, .md li > ol { margin: 4px 0; }
.md strong { color: var(--text); }
.md code { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface-3); color: #b42359; font-size: .88em; word-break: break-word; }
.md pre { margin: 12px 0; padding: 14px 16px; overflow: auto; border-radius: 10px; background: #0d1117; color: #d0d7e2; font-size: 12.5px; line-height: 1.65; }
.md pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; word-break: normal; }
.md blockquote { margin: 12px 0; padding: 6px 16px; border-left: 3px solid var(--accent-line); background: var(--surface-2); border-radius: 0 8px 8px 0; color: var(--text-2); }
.md hr { margin: 22px 0; }
.md .md-table { margin: 12px 0; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.md table { font-size: 13px; }
.md th, .md td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); line-height: 1.6; }
.md th:last-child, .md td:last-child { border-right: 0; }
.md th { position: static; white-space: normal; color: var(--text-2); }
.md tbody tr:last-child td { border-bottom: 0; }

/* ---------- 需求分组 ---------- */
.module-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; font-size: 14.5px; }
.module-head:first-child { margin-top: 4px; }
.module-head small { color: var(--text-3); font-weight: 500; }
.requirement .code b, b.code { color: var(--accent-2); font-weight: 650; }

/* ---------- 原型 ---------- */
.prototype-frame { display: block; width: 100%; height: min(76vh, 860px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1); }

/* ---------- 项目成员 ---------- */
.member-picker { display: grid; gap: 12px; margin-top: 6px; }
.member-group b { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.member-options { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.member-option {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.member-option:hover { border-color: var(--line-strong); }
.member-option:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-2); }

/* ---------- 模型配置 ---------- */
.role-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.role-card h3 { margin: 8px 0; }
.role-card textarea { min-height: 72px; }

/* ---------- 交付：制品冒烟 ---------- */
.smoke { margin-top: 10px; }
.smoke .callout { margin: 8px 0; }
.smoke td.code { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-step::after { display: none; }
}
@media (max-width: 980px) {
  .project-table .hide-sm { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-head .logo { display: block; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero h2 { font-size: 23px; }
  .flow { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr; }
  .stagebar { padding-left: 4px; padding-right: 4px; }
  .document.md { padding: 4px 16px 18px; }
}
@media (max-width: 600px) {
  .project-table .hide-xs { display: none; }
  .project-table td.proj { min-width: 0; }
  .proj-in { max-width: 62vw; }
}
/* 项目终止 */
.show-ended { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
details.terminate > summary { color: var(--red, #b42318); }
details.terminate .form-grid { margin-top: 10px; }
/* 本阶段说明（项目概览右栏顶部） */
details.stage-guide { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); }
details.stage-guide > summary { font-weight: 600; color: var(--accent-2); cursor: pointer; }
details.stage-guide dl { display: grid; grid-template-columns: 4.5em 1fr; gap: 6px 10px; margin: 10px 0 0; font-size: 13px; line-height: 1.65; }
details.stage-guide dt { color: var(--text-3); }
details.stage-guide dd { margin: 0; color: var(--text-2); }
/* 成员与项目内角色：勾选成员后才显示他的角色框 */
.member-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 4px 0; }
.member-pick { display: inline-flex; align-items: center; gap: 6px; min-width: 9em; }
.member-roles { display: none; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--text-2); }
.member-row:has(.member-pick input:checked) .member-roles, .member-roles.inline { display: inline-flex; }
.member-roles label { display: inline-flex; align-items: center; gap: 4px; }
.member-roles .self { color: var(--text-3); }
#my-roles-form { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.member-options:has(.member-row) { flex-direction: column; align-items: stretch; gap: 2px; }
/* 问题的处理安排 */
small.late { color: var(--red); font-weight: 600; }
details.triage > summary { font-size: 12.5px; margin-top: 4px; }
.triage-form { display: grid; gap: 6px; margin-top: 6px; min-width: 200px; }
.triage-form select, .triage-form input { font-size: 13px; padding: 6px 8px; }
.form-group { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
/* 用量统计：四个汇总数字与明细表 */
.usage-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.usage-metrics .metric { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.usage-metrics small { color: var(--muted); font-size: 12.5px; }
.usage-metrics strong { display: block; margin: 4px 0 2px; font-size: 24px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.usage-metrics span { color: var(--muted); font-size: 12px; }
.usage-dims { margin: 4px 0 10px; }
.seg.usage-range { flex: none; white-space: nowrap; }
table.usage .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.usage select { max-width: 320px; }
@media (max-width: 760px) { .usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-boxes { border: 0; padding: 0; margin: 0; min-width: 0; }
.service-boxes > div { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 0 4px; }
.service-boxes label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
/* 项目看板与当前负责人 */
.board-tools { flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.board-tools label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; margin-left: 10px; }
.board-tools > div:last-child { display: flex; align-items: center; flex-wrap: wrap; }
table.board td { vertical-align: top; }
table.board tbody tr { cursor: pointer; }
table.board .num { text-align: right; white-space: nowrap; }
table.board td.late { color: var(--red, #c0362c); font-weight: 600; }
.board-people { display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 360px; }
.board-people > span { white-space: nowrap; }
.board-people small { margin-left: 4px; }
.member-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin-bottom: 12px; }
.member-card { margin: 0; }
.member-card ul { list-style: none; margin: 10px 0 0; padding: 0; }
.member-card li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.member-card li:hover { background: var(--surface-2); }
.handover-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.handover-form select { max-width: 220px; }
.handover-form input { flex: 1 1 200px; min-width: 0; }
details.handovers ul { margin: 6px 0 0; padding-left: 18px; }
details.handovers li { margin: 4px 0; }
@media (max-width: 760px) { .member-board { grid-template-columns: 1fr; } }
[data-project].opening { cursor: progress; opacity: .6; }
.code-panel .section-title .row { gap: 8px; flex-wrap: wrap; }
.code-upload { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 8px 0 12px; }
.code-upload label { display: flex; align-items: baseline; gap: 6px; }
.code-plan details.code-list { margin: 6px 0; }
.code-plan details.code-list ul, .code-check ul { margin: 6px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; }
.code-check { margin: 10px 0; }
.code-check li { margin: 4px 0; }
.version-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.version-banner .form-actions { margin: 0; }
.regen-prd { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.brief-panel h3 { display: flex; align-items: center; gap: 8px; }
.brief-panel textarea#brief-markdown { width: 100%; font-family: inherit; }
.brief-questions { margin: 0; padding-left: 20px; }
.brief-q { margin: 0 0 14px; }
.brief-q p { margin: 0 0 2px; }
.brief-options { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; }
.brief-options label { display: inline-flex; align-items: center; gap: 4px; }
.brief-other { width: 100%; }
.style-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; }
.style-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.style-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.style-preset.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.style-preset .swatches { display: flex; gap: 3px; }
.style-preset .swatches i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); }
.style-form input[type=color] { width: 100%; height: 36px; padding: 2px; }
.style-preview { padding: 0 0 14px; overflow: hidden; border: 1px solid var(--line); }
.style-preview .sp-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; font-size: 13px; }
.style-preview .sp-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.style-preview .sp-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.style-preview .sp-card strong { font-size: 26px; }
.style-preview .sp-chip { align-self: flex-start; padding: 1px 8px; border-radius: 99px; color: #fff; font-size: 12px; }
.style-preview .sp-card button { align-self: flex-start; padding: 4px 12px; color: #fff; border: 0; font-size: 12px; }
.home-phase { margin-bottom: 12px; }
@media (max-width: 900px) { .style-grid { grid-template-columns: 1fr; } }
.substeps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -6px 0 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 13px; }
.substeps > .muted { margin-right: 4px; font-size: 12px; }
.substep { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.substep:hover { background: var(--surface-2); }
.substep i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); font-style: normal; font-size: 11px; }
.substep.done { color: var(--text); }
.substep.done i { border-color: #16a34a; background: #16a34a; color: #fff; }
.substep.current { color: var(--accent-2); font-weight: 600; background: var(--accent-soft); }
.substep.current i { border-color: var(--accent); color: var(--accent); }
.substep small { color: var(--muted); font-weight: 400; }
.substeps .sep { color: var(--line-strong); }
.current-step { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.current-step p { margin: 0; }
.step-focus { outline: 3px solid var(--accent); outline-offset: 3px; transition: outline-color .4s; }
