
/* 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}}

.health-heading{display:flex;justify-content:space-between;align-items:end;gap:16px}.health-controls,.health-statusline,.health-nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.health-statusline{margin-bottom:18px}.health-badge{background:var(--accent-soft);color:var(--accent-ink);padding:5px 10px;border-radius:6px}.health-nav{margin-bottom:18px}.health-nav a{padding:8px 12px;background:var(--surface);text-decoration:none;border-radius:7px}.health-surface{background:var(--surface);padding:24px;border-radius:12px;margin-bottom:14px}.health-section-head{display:flex;justify-content:space-between;gap:12px}.health-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.health-fact,.health-resource{background:var(--surface-2);padding:14px;border-radius:8px}.health-resource{margin:10px 0}.health-resource-label{display:flex;justify-content:space-between}.health-meter,.health-context-meter{background:var(--line);border-radius:9px;overflow:hidden;height:8px}.health-meter>*,.health-context-meter>*{background:var(--accent-ink);height:100%}.health-context-total{font-size:28px}@media(max-width:760px){.health-heading{align-items:flex-start;flex-wrap:wrap}.health-surface{padding:18px}.health-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.health-fact{margin:0}.health-fact dt{color:var(--ink-2);font-size:12px}.health-fact dd{margin:5px 0 0;font-weight:650}.health-fact small,.health-resource-reading small{display:block;color:var(--ink-2);font-size:12px;font-weight:400}.health-resource-label,.health-resource-reading{display:block}.health-meter{margin:8px 0}.health-meter>span,.health-context-meter>span{display:block}.health-meter[data-level=high]>span{background:var(--accent)}

/* 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}}
