
/* Workspace page foundation */
body{margin:0;font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;line-height:1.6}
[hidden]{display:none!important}
main{min-width:0} h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.2;letter-spacing:-.035em;margin-bottom:12px}h2{font-size:20px;line-height:1.35}p{overflow-wrap:anywhere}a{color:var(--accent-ink)}button,input,select,textarea{font:inherit}input,select,textarea{box-sizing:border-box;max-width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:10px 12px}button{cursor:pointer}button:disabled{cursor:not-allowed}
:is([class$="-eyebrow"],.health-note,.settings-note,.models-muted,.credits-muted,.memes-fine,.deploy-footnote){color:var(--ink-2);font-size:13px}
:is([class$="-eyebrow"]){color:var(--accent-ink);font-weight:650;letter-spacing:.03em;margin-bottom:10px}
:is([class$="-heading"]){margin-bottom:30px}:is([class$="-heading"])>p:last-child{color:var(--ink-2)}
:is([role=alert],.models-error,.credits-error,.memes-error,.health-error,.settings-message.is-error){color:var(--ink);background:var(--accent-soft);padding:12px 14px;border-radius:8px}
dialog{border:0;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.16);padding:24px;max-width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto}dialog::backdrop{background:rgba(0,0,0,.48)}
table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th,td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--ink-2);font-weight:600}details summary{cursor:pointer}
@media(max-width:760px){h1{font-size:32px} :is([class$="-heading"]){margin-bottom:24px}dialog{padding:18px}}

.deploy-heading{max-width:720px}.deploy-heading h1 span{display:block;font-size:.65em;color:var(--ink-2);margin-top:8px}.deploy-notice{display:flex;gap:12px;padding:16px 18px;border-left:3px solid var(--accent-ink);background:var(--accent-soft);border-radius:0 8px 8px 0;margin-bottom:24px}.deploy-notice p{margin:3px 0 0;font-size:13px}.deploy-steps{display:flex;gap:12px;list-style:none;padding:0;margin:0 0 18px}.deploy-steps li{flex:1;background:var(--surface-2);padding:12px;border-radius:8px;color:var(--ink-2)}.deploy-steps [aria-current=step]{background:var(--accent-ink);color:var(--surface)}.deploy-steps span{margin-right:8px}.deploy-step,.deploy-finish{background:var(--surface);border-radius:12px;padding:26px}.deploy-section-title{display:flex;justify-content:space-between;gap:12px}.deploy-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.deploy-plan{display:flex;flex-direction:column;gap:12px;text-align:left;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.deploy-plan:has(input:checked){border-color:var(--accent-ink);background:var(--accent-soft)}.deploy-plan strong{font-size:28px}.deploy-plan strong span,.deploy-plan-desc,.deploy-plan-bottom{font-size:13px}.deploy-plan-top,.deploy-plan-bottom{display:flex;justify-content:space-between;gap:8px}.deploy-pill{color:var(--accent-ink);font-size:12px}.deploy-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.deploy-field{display:flex;flex-direction:column;gap:6px;margin:14px 0}.deploy-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}@media(max-width:760px){.deploy-steps{gap:5px;font-size:12px}.deploy-step,.deploy-finish{padding:18px}.deploy-plans,.deploy-review{grid-template-columns:1fr}.deploy-section-title{flex-wrap:wrap}}

.deploy-plan input[type=radio]{align-self:flex-start;width:18px;height:18px;margin:0;accent-color:var(--accent-ink)}.deploy-review{margin:18px 0}.deploy-review dt{color:var(--ink-2);font-size:12px}.deploy-review dd{margin:4px 0 0;overflow-wrap:anywhere}.deploy-field input,.deploy-field select{width:100%}

/* Quiet bordered surfaces preserve structure against the white canvas. */
body[data-workspace] :is(.models-price-note,.models-favorites,.models-item,.credits-overview,.credits-topup,.credits-details,.memes-plugin,.memes-preview,.memes-catalog,.health-surface,.settings-form,.deploy-step,.deploy-finish){border:1px solid var(--line)}

/* Console reading scale and accessible controls. */
body{font-size:14px} :is([class$="-eyebrow"],.health-note,.settings-note,.models-muted,.credits-muted,.memes-fine,.deploy-footnote){font-size:13px} button,.btn{min-height:44px} @media(max-width:760px){body{font-size:14px}}
