:root { --ink: #16181d; --sub: #646b78; --line: #e6e4de; --bg: #f6f5f1; --card: #fff; --acc: #2f5bea; --acc-soft: #eaf0ff; --ok: #15803d; --bad: #c2410c; --r: 12px; font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); font-size: 14px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

.bar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; } .brand b { color: var(--acc); } .brand span { font-weight: 400; color: var(--sub); margin-left: 8px; }
.crumb { color: var(--sub); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.budget { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.link { border: 0; background: none; color: var(--ink); padding: 4px 2px; font-weight: 500; }
.link:hover { color: var(--acc); }

.screen { flex: 1; min-height: 0; }
#start { overflow: auto; }
.hero { max-width: 780px; margin: 9vh auto 40px; padding: 0 20px; text-align: center; }
.hero h1 { font-size: 40px; letter-spacing: -.02em; margin: 0 0 10px; }
.hero > p { color: var(--sub); margin: 0 0 28px; line-height: 1.6; }
.ask { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: left; box-shadow: 0 10px 34px rgba(0,0,0,.05); }
.ask textarea { width: 100%; border: 0; resize: none; font-size: 16px; line-height: 1.6; outline: 0; min-height: 76px; }
.ask .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; }
.chip:hover { border-color: #c9c6bd; }
.chip.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.chip.soon { color: #a4a7ae; }
.chip .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.go { margin-left: auto; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; font-weight: 600; }
.go:disabled { opacity: .5; cursor: wait; }
.ideas { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.recent { margin-top: 44px; text-align: left; } .recent h2 { font-size: 15px; margin: 0 0 12px; color: var(--sub); font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pcard { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.pcard:hover { border-color: var(--acc); box-shadow: 0 4px 16px rgba(47,91,234,.08); }
.pcard b { font-size: 15px; } .pcard small { color: var(--sub); line-height: 1.5; }

.split { display: grid; grid-template-columns: 400px 1fr; min-height: 0; }
/* ===== 三窗口工作台 + 智能体流程带 (V1.0) ===== */
.work3 { display: flex; flex-direction: column; min-height: 0; }
.split3 { display: grid; grid-template-columns: 340px minmax(0,1fr) 300px; flex: 1; min-height: 0; }
.wb-modes { display: flex; gap: 4px; padding: 10px 12px 0; }
.wb-modes button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 8px; font-size: 12px; color: var(--sub); }
.wb-modes button.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); font-weight: 600; }
.delivery { display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; gap: 12px; }
.dv-head { display: flex; align-items: center; justify-content: space-between; }
.dv-head b { font-size: 14px; }
.dv-state { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: #fff7ed; color: var(--bad); border: 1px solid #fed7aa; white-space: nowrap; }
.dv-state.ok { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }
.dv-summary { font-size: 12px; color: var(--sub); line-height: 1.5; }
.dv-sec h4 { margin: 0 0 6px; font-size: 12px; color: var(--sub); font-weight: 600; }
.dv-accept { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.dv-accept .ac { display: flex; gap: 6px; align-items: center; }
.dv-accept .ac.ok { color: var(--ok); } .dv-accept .ac.bad { color: var(--bad); }
.dv-cost { font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.dv-cost b { font-size: 16px; }
.dv-vers { display: flex; flex-direction: column; gap: 4px; }
.dv-vers .ver { min-width: 0; max-width: none; width: 100%; }
.dv-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 10px; }
.dv-actions .btn { justify-content: center; width: 100%; padding: 9px 12px; }
.flowband { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); background: #fff; padding: 8px 16px; flex: none; }
.fb-label { font-size: 11px; color: var(--sub); white-space: nowrap; font-weight: 600; }
.fb-steps { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.fb-step { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sub); white-space: nowrap; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); }
.fb-step.now { color: var(--acc); border-color: var(--acc); background: var(--acc-soft); }
.fb-step.done { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.fb-cost { font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-cost b { color: var(--ink); }
.stage.pro .viewport { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
@media (max-width:1100px){ .split3 { grid-template-columns: 300px minmax(0,1fr) 260px; } }
@media (max-width:900px){
  .split3 { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; }
  .chat { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .delivery { border-left: 0; border-top: 1px solid var(--line); max-height: 38vh; }
  .stage { min-height: 60vh; }
  .stage.pro .viewport { grid-template-columns: 1fr; }
  .flowband { flex-wrap: wrap; gap: 8px; }
}
.chat { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.m { max-width: 94%; line-height: 1.6; word-break: break-word; }
.m.u { align-self: flex-end; background: var(--ink); color: #fff; padding: 9px 13px; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.m.a { background: var(--bg); padding: 12px 14px; border-radius: 14px 14px 14px 4px; }
.m.a.err { background: #fff4ed; color: #9a3412; }
.m .q { font-weight: 600; margin-bottom: 8px; }
.m .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.m .opt { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 11px; font-size: 13px; text-align: left; }
.m .opt small { display: block; color: var(--sub); font-size: 11px; }
.m .opt.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.m .opt:disabled { cursor: default; }
.m .actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.m .hint { color: var(--sub); font-size: 12px; margin-top: 6px; }
.m input.free { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; width: 100%; margin-top: 8px; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 12px; font-size: 13px; text-decoration: none; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.btn:hover { border-color: #c9c6bd; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

.steps { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; }
.step { display: flex; gap: 8px; align-items: flex-start; color: var(--sub); }
.step i { font-style: normal; width: 16px; text-align: center; flex: none; }
.step.now { color: var(--acc); } .step.done { color: var(--ink); } .step.done i { color: var(--ok); }
.pages { display: grid; gap: 4px; margin: 6px 0 0 24px; font-size: 12px; font-family: ui-monospace, Consolas, monospace; color: var(--sub); }
.pages .done { color: var(--ok); } .pages .writing { color: var(--acc); } .pages .fallback { color: var(--bad); } .pages .fixed { color: #7c3aed; }
.think { margin-top: 8px; font-size: 12px; color: var(--sub); background: #fff; border-radius: 8px; padding: 8px 10px; max-height: 72px; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 35%); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 4px; }
.sum div { background: #fff; border-radius: 8px; padding: 8px; text-align: center; } .sum b { display: block; font-size: 18px; } .sum span { font-size: 11px; color: var(--sub); }

.say { border-top: 1px solid var(--line); padding: 12px; }
.say-row { display: flex; gap: 8px; align-items: flex-end; }
.say textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: none; outline: 0; line-height: 1.5; }
.say textarea:focus { border-color: var(--acc); }
.say button { border: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 16px; }
.say button:disabled { opacity: .5; cursor: wait; }
.picked { margin-bottom: 8px; padding: 8px 10px; border-radius: 8px; background: var(--acc-soft); color: var(--acc); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.picked span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked button { border: 0; background: none; color: var(--acc); }

.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 16px 16px; gap: 10px; }
.stage-top { display: flex; flex-direction: column; gap: 8px; }
.timeline { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.ver { flex: none; min-width: 120px; max-width: 200px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12px; }
.ver b { display: block; } .ver span { color: var(--sub); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 6px 12px; font-size: 12px; color: var(--sub); }
.seg button.on { background: var(--ink); color: #fff; }
#pages { border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px; background: #fff; font-size: 12px; }
.pstatus { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.pstatus.ok { color: var(--ok); } .pstatus.bad { color: var(--bad); }
.tool-right { margin-left: auto; display: flex; gap: 8px; }
.viewport { flex: 1; min-height: 0; position: relative; display: flex; justify-content: center; }
.device { width: 100%; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: width .25s; }
.device.mob { width: 390px; border-radius: 26px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.device iframe { width: 100%; height: 100%; border: 0; display: block; }
.device.picking { outline: 2px dashed var(--acc); outline-offset: 3px; }
.code { position: absolute; inset: 0; display: grid; grid-template-columns: 200px 1fr; background: #282c34; border-radius: 14px; overflow: hidden; }
.tree { background: #fff; overflow: auto; padding: 8px 0; border-right: 1px solid var(--line); }
.tree button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 14px; font: 12px ui-monospace, Consolas, monospace; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree button.on { background: var(--acc-soft); color: var(--acc); }
.editor { min-width: 0; min-height: 0; overflow: hidden; } .editor .cm-editor { height: 100%; font-size: 13px; }
.dataview { position: absolute; inset: 0; display: grid; grid-template-columns: 200px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dataview .tree button small { color: var(--sub); margin-left: 4px; }
.dmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dbar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dbar input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; width: 220px; }
.dgrid { flex: 1; overflow: auto; }
.dgrid table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.dgrid th { position: sticky; top: 0; background: #f7f7f5; text-align: left; font-weight: 500; color: var(--sub); padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.dgrid td { border-bottom: 1px solid #f0efea; border-right: 1px solid #f6f5f1; padding: 0; white-space: nowrap; max-width: 260px; }
.dgrid td .cell { display: block; padding: 6px 10px; min-height: 30px; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.dgrid td .cell:hover { background: var(--acc-soft); }
.dgrid td.ro .cell { color: var(--sub); cursor: default; } .dgrid td.ro .cell:hover { background: none; }
.dgrid td input, .dgrid td select { width: 100%; border: 2px solid var(--acc); padding: 4px 8px; font-size: 13px; outline: 0; background: #fff; }
.dgrid td.err { box-shadow: inset 0 0 0 2px var(--bad); }
.dgrid .del { border: 0; background: none; color: #b0b3ba; padding: 6px 10px; } .dgrid .del:hover { color: var(--bad); }
.dgrid .more { padding: 10px; text-align: center; }
.overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; padding: 16px; }
.overlay > div { background: rgba(22,24,29,.88); color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13px; }

dialog { border: 0; border-radius: 16px; padding: 20px; width: min(760px, 92vw); box-shadow: 0 20px 60px rgba(0,0,0,.2); }
dialog::backdrop { background: rgba(22,24,29,.35); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .dlg-head h2 { margin: 0; font-size: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1100px) { .split { grid-template-columns: 340px 1fr; } }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .chat { max-height: 46vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage { min-height: 70vh; padding: 10px; }
  .hero h1 { font-size: 30px; }
  .brand span { display: none; }
  .budget { display: inline; font-size: 12px; }
  .code, .dataview { grid-template-columns: 1fr; grid-template-rows: 110px 1fr; }
}

.refs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 13px; color: var(--sub); }
.ref-btn { border: 1px dashed #c9c6bd; background: #fff; border-radius: 10px; padding: 6px 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
.ref-btn:hover { border-color: var(--acc); color: var(--acc); }
.ref-chip { margin: 12px auto 0; max-width: 560px; display: flex; align-items: center; gap: 10px; background: var(--acc-soft); color: var(--acc); border-radius: 10px; padding: 8px 12px; font-size: 13px; text-align: left; }
.ref-chip img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.ref-chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-chip button { border: 0; background: none; color: var(--acc); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sub); }
.form input, .form select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 14px; color: var(--ink); }
.form input:focus, .form select:focus { outline: 0; border-color: var(--acc); }
.form small { font-size: 12px; color: #9a9ea8; }
.dlg-actions { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dlg-actions .btn.primary { margin-left: auto; }
.pub-status { font-size: 13px; color: var(--sub); line-height: 1.6; margin: 0; word-break: break-all; }
.pub-status a { color: var(--acc); }
#login { width: min(400px, 92vw); } #publish { width: min(520px, 92vw); }
.budget b { color: var(--ink); }

/* ---- embed mode (homepage iframe): no top bar, natural height on start, full-height workbench ---- */
html.embed .bar { display: none; }
html.embed body { height: auto; min-height: 0; }
html.embed #work { height: 100vh; }
html.embed .hero { padding-top: 20px; }

/* ---- wallet dialog (P0-1) ---- */
#wallet { width: min(480px, 92vw); }
.w-bal { display: flex; align-items: baseline; gap: 10px; padding: 6px 0 10px; }
.w-bal b { font-size: 30px; }
.w-bal i { font-style: normal; color: #8a8171; font-size: 12px; }
.w-warn { background: #fdf3d7; border: 1px solid #e8d9a0; padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.w-prices { display: grid; gap: 6px; margin: 8px 0; }
.w-price { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 10px; background: #faf7ef; border-radius: 8px; }
.w-topup { display: block; text-align: center; background: #c8452c; color: #fff; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 600; margin: 10px 0 6px; }
.w-hist { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.w-hist th, .w-hist td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #eee5d2; }
.w-hist .plus { color: #2e7d32; } .w-hist .minus { color: #b3402a; }
/* embed account chip */
.hero { position: relative; }
#embedAcct { position: absolute; top: 10px; right: 12px; z-index: 5; }
.ea-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; color: #332d1e; }
.ea-btn:hover { border-color: #c8452c; color: #c8452c; }
@media (max-width: 820px) {
  #embedAcct { position: static; display: flex; justify-content: flex-end; margin: 0 0 6px; }
  html.embed .hero { padding-top: 12px; }
}

/* ---- language picker + RTL ---- */
.lang { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 6px; font-size: 12px; color: var(--sub); }
.lang:hover { border-color: #c9c6bd; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .chat { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .go { margin-left: 0; margin-right: auto; }
[dir="rtl"] .brand span { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .chip .dot { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .m.u { border-radius: 14px 14px 14px 4px; }
[dir="rtl"] .m.a { border-radius: 14px 14px 4px 14px; }
[dir="rtl"] .lang { direction: ltr; }
.recent, .pcard { text-align: start; }
.m .actions { flex-wrap: wrap; }
.m .actions .btn { white-space: normal; text-align: start; }
[dir="rtl"] .toast { direction: rtl; }
@media (max-width: 560px) {
  .bar { gap: 10px; padding: 10px 12px; }
  .bar-right { gap: 8px; }
  .brand span { display: none; }
  .budget, #my { white-space: nowrap; }
  .lang { max-width: 96px; }
}

/* ===== home variant A: centered direct-through layout (input console wired into the template platform) ===== */
.home-a { max-inline-size: 1400px; margin: 0 auto; padding: 30px 40px 26px; position: relative; }
.home-a .a-hero { text-align: center; padding: 4px 0 0; }
.home-a .a-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; letter-spacing: -.02em; max-inline-size: 900px; margin: 0 auto 12px; }
.home-a .a-hero .lead { color: var(--sub); max-inline-size: 720px; margin: 0 auto; font-size: 15px; line-height: 1.65; }
.home-a .a-kpis { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--sub); }
.home-a .a-kpi b { color: var(--acc); font-size: 18px; margin-right: 6px; font-weight: 800; font-variant-numeric: tabular-nums; }
.home-a .a-sep { color: #cfcbc1; }
.home-a .a-console { max-inline-size: 1000px; margin: 26px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 44px rgba(22,24,29,.07); overflow: hidden; }
.home-a .a-ask { padding: 18px 20px 4px; text-align: left; }
.home-a .a-ask .ask { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.home-a .a-ask textarea { min-height: 72px; font-size: 15.5px; padding: 4px 2px; resize: vertical; }
.home-a .a-pbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 0 0; }
.home-a .a-pbar .chips { flex: 1 1 auto; }
.home-a .a-ask .refs { justify-content: flex-start; margin-top: 12px; padding: 0; }
.home-a .a-link { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; color: var(--acc); font-size: 13px; font-weight: 600; }
.home-a .a-link::before, .home-a .a-link::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.home-a .a-link span { text-align: center; }
.home-a .a-platform { padding: 16px 20px 20px; background: #faf9f5; border-top: 1px solid var(--line); margin-top: 14px; text-align: left; }
.home-a .a-ph { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.home-a .a-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.home-a .a-psub { color: var(--sub); font-size: 12.5px; margin: 0 0 14px; }
.home-a .a-tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.home-a .tpl { display: flex; flex-direction: column; gap: 3px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px 11px; transition: .18s; min-width: 0; }
.home-a .tpl:hover, .home-a .tpl:focus-visible { border-color: var(--acc); box-shadow: 0 6px 18px rgba(47,91,234,.09); transform: translateY(-1px); outline: 0; }
.home-a .tpl-n { font: 10px/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: #aca79b; }
.home-a .tpl b { font-size: 14px; line-height: 1.35; }
.home-a .tpl small { color: var(--sub); font-size: 12.5px; line-height: 1.5; min-height: 36px; }
.home-a .tpl .tpl-go { font-size: 11.5px; color: var(--acc); font-weight: 600; opacity: 0; transition: .18s; }
.home-a .tpl:hover .tpl-go, .home-a .tpl:focus-visible .tpl-go { opacity: 1; }
.home-a .a-caps { max-inline-size: 1000px; margin: 36px auto 0; }
.home-a .a-caps-h { font-size: 19px; margin: 0 0 14px; text-align: center; letter-spacing: -.01em; }
.home-a .a-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-a .a-feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; text-align: left; }
.home-a .a-feat i { font-style: normal; font-size: 18px; line-height: 1; }
.home-a .a-feat b { display: block; font-size: 14px; margin: 8px 0 4px; }
.home-a .a-feat p { margin: 0; color: var(--sub); font-size: 12.5px; line-height: 1.6; }
.home-a .a-recent { max-inline-size: 1000px; margin: 34px auto 0; text-align: left; }
html.embed .home-a #embedAcct { position: static; display: flex; justify-content: center; margin: 0 0 10px; }

/* embed: full-width, the homepage owns navigation and the page frame */
html.embed, html.embed body { height: auto; min-height: 0; background: transparent; }
html.embed .home-a { max-inline-size: 1400px; padding: 30px 40px 24px; }
html.embed .home-a .a-console, html.embed .home-a .a-caps, html.embed .home-a .a-recent { max-inline-size: none; }
html.embed .home-a .a-tpls { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  html.embed .home-a { padding: 22px 22px 18px; }
  .home-a .a-tpls, html.embed .home-a .a-tpls { grid-template-columns: repeat(2, 1fr); }
  .home-a .a-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  html.embed .home-a { padding: 18px 14px 16px; }
  .home-a .a-tpls, html.embed .home-a .a-tpls { grid-template-columns: repeat(2, 1fr); }
  .home-a .tpl small { min-height: 0; }
  .home-a .a-feats { grid-template-columns: 1fr; }
  html.embed .home-a #embedAcct { position: static; display: flex; justify-content: center; margin: 0 0 6px; }
}
@media (max-width: 520px) {
  .home-a .a-hero h1 { font-size: 27px; }
  .home-a .a-kpis { font-size: 12px; gap: 8px; }
  .home-a .a-tpls, html.embed .home-a .a-tpls { grid-template-columns: 1fr; }
  .home-a .a-pbar { flex-direction: column; align-items: stretch; }
  .home-a .a-pbar .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .home-a .a-pbar .chip { text-align: center; }
  .home-a .go { width: 100%; margin-left: 0; }
  .home-a .a-console { border-radius: 16px; }
}
