:root {
  --surface: #111113;
  --border: #29292d;
  --ws-hover: #1a1a1e;
  --ws-muted: #a6a5ac;
  --ws-ease: cubic-bezier(.22,1,.36,1);
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 20px; border-radius: 8px; background: var(--ember); color: #160a03; font-size: 14px; }
.skip-link:focus { top: 12px; }
.workspace-icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.small { font-size: 12px; line-height: 1.6; }
.muted { color: var(--ws-muted); }
.full { width: 100%; justify-content: center; }
.row-between,.card-heading,.page-heading,.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.button-row,.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.inline-form input { flex: 1; min-width: 140px; }
.button-row { margin-top: 24px; }
.workspace .btn,dialog .btn { min-height: 40px; padding: 10px 14px; border-radius: 8px; font: 500 13px/20px var(--sans); justify-content: center; transition: background .25s var(--ws-ease), color .25s var(--ws-ease), transform .25s var(--ws-ease), border-color .25s var(--ws-ease); }
.workspace .btn .workspace-icon,dialog .btn .workspace-icon { width: 18px; height: 18px; }
.workspace .btn-accent,dialog .btn-accent { background: var(--ember); color: #160a03; box-shadow: inset 0 1px 0 #ffffff24,0 2px 3px #0003; }
.workspace .btn-accent:hover,dialog .btn-accent:hover { background: var(--glow); }
.workspace .btn-ghost,dialog .btn-ghost { background: #19191c; border-color: #343438; color: #e1dfe3; }
.workspace .btn-ghost:hover,dialog .btn-ghost:hover { background: #252528; border-color: #505055; }
.workspace button:active:not(:disabled),dialog button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
.text-button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; background: none; border: 0; color: var(--glow); font: 500 12px/20px var(--sans); cursor: pointer; }
.text-button:hover { color: #ffceb6; }
.text-button .workspace-icon { width: 14px; height: 14px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; flex: none; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #b7b5bf; cursor: pointer; transition: background .25s var(--ws-ease),color .25s var(--ws-ease); }
.icon-button:hover { background: var(--ws-hover); color: var(--fg); }
input:not([type=checkbox]):not([type=radio]),select,textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #3b3b42; border-radius: 8px; background: #0c0c0f; color: var(--fg); font: 14px/22px var(--sans); }
input::placeholder,textarea::placeholder { color: #94919c; opacity: 1; }
input:focus,select:focus,textarea:focus { border-color: var(--ember); }
label { display: block; margin-bottom: 8px; color: #d0cdd5; font-size: 12px; line-height: 20px; }
input[type=checkbox],input[type=radio] { accent-color: var(--ember); width: 16px; height: 16px; }
progress { display: block; appearance: none; width: 100%; height: 4px; border: 0; border-radius: 4px; background: #2b2b30; overflow: hidden; accent-color: var(--ember); }
progress::-webkit-progress-bar { background: #2b2b30; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--ember); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--ember); }
progress:not([value]) { background: #754c37; animation: progress-pulse 1.5s var(--ws-ease) infinite alternate; }

.workspace { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100dvh; background: var(--ink-2); }
.workspace-sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; min-height: 0; padding: 0 16px; border-right: 1px solid var(--border); background: #101012; z-index: 80; overflow-y: auto; scrollbar-width: thin; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; flex: none; height: 72px; padding: 0 8px; }
.workspace-logo { display: flex; align-items: center; min-height: 44px; }
.workspace-logo img { width: 148px; height: auto; }
.sidebar-close { display: none; }
.workspace-identity { display: flex; align-items: center; gap: 12px; padding: 12px 8px 24px; }
.workspace-identity>div { min-width: 0; }
.identity-mark,.account-avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; border: 1px solid #584234; border-radius: 8px; background: #241d18; }
.user-avatar { display: block; width: 100%; height: 100%; }
.workspace-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.workspace-identity small { display: block; margin-top: 4px; color: #a6a5ac; font-size: 11px; }
.workspace-nav { position: relative; display: flex; flex-direction: column; gap: 4px; }
.nav-caption { padding: 8px 12px; margin-top: 20px; color: #97949f; font-size: 11px; font-weight: 500; letter-spacing: .035em; }
.workspace-nav>.nav-caption:nth-child(2) { margin-top: 0; }
.workspace-nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: #b5b2bc; font-size: 13px; font-weight: 400; transition: color .25s var(--ws-ease), background .25s var(--ws-ease); }
.workspace-nav a>span { min-width: 0; }
.workspace-nav a .workspace-icon { width: 19px; height: 19px; color: #98959f; }
.workspace-nav a:hover { color: #efedef; background: #ffffff04; }
.workspace-nav a.active { color: #f4b797; font-weight: 500; }
.workspace-nav a.active .workspace-icon { color: var(--ember); }
.workspace-nav a small { margin-left: auto; padding: 0 6px; border-radius: 4px; background: #ffffff08; font: 11px/20px var(--mono); color: #bcb8c2; }
.nav-marker { position: absolute; top: 0; left: 0; right: 0; height: 44px; border: 1px solid #674632; border-radius: 8px; background: #2a201b; pointer-events: none; opacity: 0; transition: transform .45s var(--ws-ease), opacity .2s var(--ws-ease); }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar-plan { display: flex; align-items: center; gap: 8px; min-height: 72px; padding: 12px; margin-bottom: 16px; border: 1px solid #303034; border-radius: 8px; background: #171719; transition: border-color .3s var(--ws-ease), background .3s var(--ws-ease); }
.sidebar-plan:hover { border-color: #654b3b; background: #1c1a18; }
.plan-symbol { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid #4d392a; border-radius: 8px; background: #2a211b; color: #e6a076; }
.plan-symbol .workspace-icon { width: 18px; height: 18px; }
.sidebar-plan-copy { flex: 1; min-width: 0; }
.sidebar-plan-copy strong { display: block; color: #eee6df; font: 500 14px/20px var(--sans); }
.sidebar-plan-copy small { display: block; margin-top: 4px; color: #aaa39e; font: 400 12px/16px var(--sans); }
.sidebar-plan>.workspace-icon { width: 12px; height: 12px; color: #a49a91; transition: transform .3s var(--ws-ease), color .3s var(--ws-ease); }
.sidebar-plan:hover>.workspace-icon { color: var(--glow); transform: translateX(2px); }
.account-menu { position: relative; border-top: 1px solid var(--border); }
.account-menu>summary { display: flex; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.account-menu>summary::-webkit-details-marker { display: none; }
.account-menu>summary>span:nth-child(2) { flex: 1; min-width: 0; }
.account-menu strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 500; }
.account-menu small { display: block; margin-top: 4px; color: #aaa6b0; font-size: 11px; }
.account-menu>summary>.workspace-icon { width: 16px; height: 16px; color: #9b97a4; }
.account-popover { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; padding: 8px; border: 1px solid #3b3b40; border-radius: 10px; background: #202023; box-shadow: 0 12px 36px #0008; }
.account-popover p { padding: 4px 8px; color: #b4afbd; overflow-wrap: anywhere; font-size: 11px; }
.account-popover a,.account-popover button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px; border: 0; border-radius: 6px; background: none; color: #e0dbe5; font: 12px var(--sans); cursor: pointer; }
.account-popover a:hover,.account-popover button:hover { background: #ffffff08; }

.workspace-main { min-width: 0; }
.workspace-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; padding: 0 32px; border-bottom: 1px solid var(--border); background: #0c0c0ef5; backdrop-filter: blur(16px); }
.workspace-breadcrumb { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 12px; color: #a8a4af; }
.workspace-breadcrumb .workspace-icon { width: 12px; height: 12px; color: #726e7a; }
.workspace-breadcrumb strong { color: #ded9e3; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.search-trigger { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: #aaa6b1; font: 12px var(--sans); cursor: pointer; }
.search-trigger:hover { color: var(--fg); }
.search-trigger .workspace-icon { width: 18px; height: 18px; }
.search-trigger kbd { margin-left: 12px; padding: 2px 5px; border: 1px solid #35353b; border-radius: 4px; color: #aaa6b1; font: 11px/18px var(--sans); }
.topbar-divider { width: 1px; height: 20px; background: var(--border); }
.credit-trigger { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: #e5dfe8; font: 12px var(--sans); cursor: pointer; }
.credit-trigger .workspace-icon { width: 16px; height: 16px; color: var(--ember); }
.mobile-menu { display: none; }
.workspace-content { max-width: 1552px; min-width: 0; min-height: calc(100dvh - 72px); margin: 0 auto; padding: 32px; }
.workspace-content:focus { outline: none; }
.page-heading { align-items: center; margin-bottom: 28px; }
.page-heading h1 { display: flex; align-items: center; gap: 12px; margin: 0; color: #f0edf0; font: 500 28px/36px var(--sans); letter-spacing: -.035em; }
.page-heading p { margin: 8px 0 0; font-size: 13px; line-height: 22px; }
.page-heading>.btn,.page-heading>.plan-badge { flex: none; }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; border: 1px solid #3a3531; border-radius: 6px; background: #1c1916; color: #e9c3aa; font-size: 11px; white-space: nowrap; }
a.plan-badge { min-height: 36px; }
.plan-badge>.workspace-icon { width: 12px; height: 12px; color: #bda595; }
.plan-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.heading-count { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid #343138; border-radius: 5px; background: #1d1b20; color: #bdb7c5; font: 11px/18px var(--mono); }
.workspace-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.workspace-card h2 { margin: 0; font: 500 15px/24px var(--sans); letter-spacing: -.015em; }
.workspace-card p { font-size: 13px; line-height: 1.75; }
.card-heading { margin-bottom: 20px; }
.card-heading>div { min-width: 0; }
.card-heading p { margin: 4px 0 0; color: var(--ws-muted); font-size: 12px; line-height: 20px; }
.card-heading>.workspace-icon { color: #b0a6a1; }
.subtle-link,.developer-shortcut>a,.api-quickstart>a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: #d4c4ba; font-size: 12px; white-space: nowrap; }
.subtle-link:hover,.developer-shortcut>a:hover,.api-quickstart>a:hover { color: var(--glow); }
.subtle-link .workspace-icon,.developer-shortcut>a .workspace-icon,.api-quickstart>a .workspace-icon { width: 16px; height: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.stat-card { display: flex; flex-direction: column; min-width: 0; padding: 20px 24px; }
.stat-card+.stat-card { border-left: 1px solid var(--border); }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #aba7b2; font-size: 12px; line-height: 20px; }
.stat-label .workspace-icon { width: 16px; height: 16px; color: #9a929c; }
.stat-card>strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 12px 0; font: 500 30px/36px var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-card>strong small { color: #a6a0ad; font: 400 12px/20px var(--sans); letter-spacing: 0; }
.stat-card>.credit-value { color: #f1b392; }
.stat-card>a,.stat-card>.text-button { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 28px; padding: 4px 0; color: #d4b19d; font-size: 11px; }
.stat-card>a .workspace-icon { width: 14px; height: 14px; }
.stat-card>small { margin-top: 8px; color: #a4a0aa; font-size: 11px; line-height: 20px; }
.stat-card>progress { margin-top: 4px; max-width: 180px; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1fr) 304px; align-items: start; gap: 24px; }
.overview-rail { display: flex; flex-direction: column; gap: 20px; }
.files-panel { padding: 0; overflow: hidden; }
.files-panel>.card-heading { padding: 20px 24px 16px; margin: 0; }
.artifact-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 20px; }
.files-panel>.artifact-toolbar:first-child { padding-top: 20px; }
.artifact-filters { position: relative; display: flex; align-items: center; flex: none; padding: 3px; border: 1px solid #2b2b30; border-radius: 8px; background: #0c0c0f; }
.artifact-filters button { position: relative; z-index: 1; min-height: 30px; padding: 4px 12px; border: 0; border-radius: 5px; background: none; color: #a39fab; font: 500 11px/20px var(--sans); cursor: pointer; white-space: nowrap; }
.artifact-filters button[aria-pressed=true] { color: #e9e4ec; }
.filter-marker { position: absolute; top: 3px; left: 0; height: 30px; width: 1px; transform-origin: left; border-radius: 5px; background: #2b282e; box-shadow: 0 1px 3px #0006; pointer-events: none; transition: transform .4s var(--ws-ease); }
.table-order { color: #a8a2af; font-size: 11px; white-space: nowrap; }
.artifact-search-field { display: flex; align-items: center; gap: 8px; width: 240px; min-width: 0; padding-left: 10px; margin: 0; border: 1px solid #343139; border-radius: 7px; background: #0c0c0f; color: #99929f; }
.artifact-search-field input { min-height: 36px; padding: 6px 8px 6px 0; border: 0; background: none; font-size: 12px; }
.artifact-search-field .workspace-icon { width: 16px; height: 16px; }
.table-scroll { max-width: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: #4c4854 #151318; }
.artifact-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; }
.artifact-table th { height: 36px; padding: 8px 8px; border-top: 1px solid #242329; border-bottom: 1px solid #242329; background: #141316; color: #a9a3af; text-align: left; font-size: 11px; font-weight: 400; }
.artifact-table th:first-child { width: 45%; padding-left: 24px; }
.artifact-table th:nth-child(2) { width: 26%; }
.artifact-table th.date-cell { width: 22%; }
.artifact-table th.open-cell { width: 7%; }
.artifact-table td { height: 76px; padding: 12px 8px; border-bottom: 1px solid #232127; vertical-align: middle; }
.artifact-table td:first-child { padding-left: 24px; }
.artifact-table td:last-child { padding-right: 12px; }
.artifact-row { transition: background .2s var(--ws-ease); }
.artifact-row:hover { background: #ffffff03; }
.artifact-row:last-child td { border-bottom: 0; }
.artifact-link { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; }
.file-icon { display: grid; place-items: center; flex: none; width: 36px; height: 40px; border: 1px solid #42352e; border-radius: 8px; background: #251d19; color: #dda481; }
.file-icon .workspace-icon { width: 21px; height: 21px; }
.binary-icon { color: #b6b2c1; border-color: #3b3743; background: #211f27; }
.file-cell { min-width: 0; }
.file-cell strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: #e5dfe8; }
.artifact-link:hover strong { color: var(--glow); }
.file-cell small { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: #aaa3b0; font-size: 11px; white-space: nowrap; }
.date-cell time { display: block; color: #bab3c1; font-size: 11px; white-space: nowrap; }
.date-cell small { display: block; margin-top: 4px; color: #98909f; font-size: 10px; }
.row-open { width: 28px; height: 32px; opacity: .6; }
.row-open .workspace-icon { width: 16px; height: 16px; }
.artifact-row:hover .row-open,.row-open:focus-visible { opacity: 1; color: var(--glow); }
.status-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 7px; border: 1px solid #414048; border-radius: 5px; background: #211e26; color: #c5bdce; font-size: 10px; line-height: 16px; white-space: nowrap; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.status-completed { color: #9fceae; background: #18231c; border-color: #2b4434; }
.status-queued,.status-processing,.status-partial { color: #e5c897; background: #282115; border-color: #51432b; }
.status-failed { color: #efaaa5; background: #2b1c1d; border-color: #573331; }
.status-uploaded { color: #b3c4e6; background: #1b2130; border-color: #323f59; }
.status-dot.uploaded { color: #b3c4e6; }
.table-footer { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid #27242c; color: #a69eae; font-size: 10px; }
.empty-state,.artifact-no-results { padding: 64px 24px; text-align: center; }
.empty-state h2,.artifact-no-results h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 500; }
.empty-state p,.artifact-no-results p { margin: 0 auto 24px; color: #aca5b5; font-size: 13px; line-height: 1.8; }
.empty-file-stack,.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border: 1px solid #46382f; border-radius: 16px; background: #211b17; color: #daa17d; }
.empty-file-stack>.workspace-icon,.empty-icon>.workspace-icon { width: 32px; height: 32px; }
.empty-hint { display: block; max-width: 290px; margin: 16px auto 0; color: #a99fac; font-size: 11px; line-height: 1.8; }
.artifact-no-results { padding: 40px 20px; }
.upload-panel { padding: 20px; }
.upload-panel>.card-heading { margin-bottom: 16px; gap: 8px; }
.upload-panel .small { font-size: 10px; white-space: nowrap; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 244px; padding: 24px 16px; border: 1px dashed #584231; border-radius: 8px; background: #171310; color: var(--fg); cursor: pointer; transition: background .25s var(--ws-ease),border-color .25s var(--ws-ease); }
.dropzone:hover,.dropzone.dragging { border-color: var(--ember); background: #231a14; }
.dropzone strong { margin-top: 16px; font: 500 14px/22px var(--sans); }
.dropzone>span:not(.upload-art) { margin-top: 4px; color: #b4a59b; font: 12px/20px var(--sans); }
.upload-browse { color: var(--glow); }
.dropzone small { margin-top: 16px; color: #b0a096; font: 11px/20px var(--sans); }
.upload-art { position: relative; display: block; width: 88px; height: 64px; }
.upload-file { position: absolute; display: grid; place-items: center; width: 42px; height: 52px; border: 1px solid #604530; border-radius: 7px; background: #281e17; color: #d1a182; transition: transform .4s var(--ws-ease); }
.upload-file.back { top: 0; left: 8px; background: #1c1816; color: #9f8472; }
.upload-file.front { top: 10px; left: 32px; color: #f1b18a; }
.upload-file>.workspace-icon { width: 26px; height: 26px; }
.upload-plus { position: absolute; right: 0; top: 40px; display: grid; place-items: center; width: 24px; height: 24px; border: 3px solid #171310; border-radius: 50%; background: #d3885f; color: #1b100a; }
.upload-plus .workspace-icon { width: 13px; height: 13px; }
.dropzone:hover .upload-file.front,.dropzone.dragging .upload-file.front { transform: translateY(-4px); }
.upload-footnote { display: flex; gap: 8px; margin: 14px 0 0; color: #aaa09b; font-size: 11px !important; line-height: 1.65 !important; }
.upload-footnote>.workspace-icon { width: 15px; height: 15px; margin-top: 2px; color: #bda186; }
.developer-shortcut { padding: 20px; }
.shortcut-icon { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: #c0b4cc; }
.shortcut-icon>.workspace-icon { width: 24px; height: 24px; }
.developer-shortcut h2 { font-size: 14px; }
.developer-shortcut p { margin: 8px 0 12px; color: #aaa2b1; font-size: 12px; }
.developer-shortcut>a { color: #dfb89e; }
.engine-note { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 20px; border: 1px solid #38302a; border-radius: 10px; background: #181410; }
.engine-note>.workspace-icon { color: #d49b72; }
.engine-note p { flex: 1; margin: 0; font-size: 11px; line-height: 20px; }
.engine-note strong { display: block; color: #e6bfa3; font-weight: 500; }
.engine-note p>span { color: #b4a69e; }
.engine-note>a { display: flex; align-items: center; gap: 8px; flex: none; min-height: 32px; color: #e2b79b; font-size: 11px; }
.engine-note>a .workspace-icon { width: 16px; height: 16px; }
.section-footnote { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; color: #b3aab9; font-size: 12px; line-height: 1.7; }
.section-footnote>.workspace-icon { width: 16px; height: 16px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 16px 0 0; border-top: 1px solid #232126; color: #9c94a3; font-size: 10px; }
.workspace-footer>span { font: 500 11px var(--sans); }
.workspace-footer>div { display: flex; align-items: center; gap: 20px; }
.workspace-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.workspace-footer a:hover { color: #ebc1a5; }

.billing-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 24px; }
.workspace-card .eyebrow { color: #b4a7a1; font: 500 10px/20px var(--sans); letter-spacing: .08em; }
.subscription-name { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 24px; }
.subscription-name h2 { font-size: 28px; line-height: 36px; }
.subscription-name>span { font: 500 24px var(--sans); letter-spacing: -.03em; }
.subscription-name small { margin-left: 4px; color: #aca2b3; font: 12px var(--sans); letter-spacing: 0; }
#subscription-status { color: #a99eaf; font-size: 12px; }
#subscription-status strong { font-weight: 400; color: #d2c6da; }
.plan-usage { display: grid; gap: 20px; margin: 28px 0; }
.plan-usage .row-between { margin-bottom: 10px; color: #c9bfce; font-size: 12px; }
.plan-usage progress { height: 5px; }
.subscription-benefits { display: grid; gap: 12px; margin: 24px 0; }
.subscription-benefits>span { display: flex; align-items: center; gap: 8px; color: #c6bdcf; font-size: 12px; }
.subscription-benefits .workspace-icon { width: 16px; height: 16px; color: var(--ember); }
.credit-card { border-color: #514032; background: #181410; }
.credit-card>.card-heading>.workspace-icon { color: #d4a27e; }
.balance-number { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 20px; color: #f3b38b; font: 500 40px/48px var(--sans) !important; letter-spacing: -.04em; }
.balance-number small { color: #beaca0; font: 12px/20px var(--sans); letter-spacing: 0; }
.credit-card>p.muted { color: #bdada2; }
.credit-rate { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.credit-rate strong { color: #ebd0bb; font-size: 16px; font-weight: 500; }
.credit-rate>span { color: #b6a294; font-size: 11px; }
.pricing-reference { margin-top: 24px; padding-bottom: 0; }
.run-prices { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 -24px; border-top: 1px solid var(--border); }
.run-prices>div { padding: 24px; }
.run-prices>div+div { border-left: 1px solid var(--border); }
.run-prices .workspace-icon { color: #c79a7d; }
.run-prices h3 { margin: 16px 0 4px; font: 500 14px/20px var(--sans); }
.run-prices p { margin: 0 0 20px; color: #b0a3bb; font-size: 12px; }
.run-prices strong { display: block; font: 500 24px/32px var(--sans); }
.run-prices strong small { color: #aa9fb2; font-size: 12px; font-weight: 400; }
.run-prices>div>span { display: block; margin-top: 8px; color: #afa2b6; font-size: 11px; line-height: 20px; }
.redeem-card { margin-top: 24px; }
.redeem-card summary { display: flex; align-items: center; justify-content: space-between; min-height: 24px; list-style: none; cursor: pointer; font-size: 13px; color: #d6cbdc; }
.redeem-card summary::-webkit-details-marker { display: none; }
.redeem-card summary>.workspace-icon { width: 16px; height: 16px; transition: transform .25s var(--ws-ease); }
.redeem-card[open] summary>.workspace-icon { transform: rotate(45deg); }
.redeem-card .inline-form { max-width: 620px; margin-top: 16px; }
.developer-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; }
.key-form { display: grid; grid-template-columns: minmax(0,1fr) 128px; align-items: end; gap: 16px; margin-top: 24px; }
.key-form>button { grid-column: 1/-1; justify-self: start; }
.key-form label { color: #c4b7cf; }
.expiry-picker { position: relative; }
.expiry-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #3b3b42; border-radius: 8px; background: #0c0c0f; color: var(--fg); font: 400 14px/20px var(--sans); cursor: pointer; transition: border-color .3s var(--ws-ease), background .3s var(--ws-ease); }
.expiry-trigger:hover { border-color: #776355; background: #151313; }
.expiry-trigger[aria-expanded=true] { border-color: var(--ember); }
.expiry-trigger>.workspace-icon { width: 14px; height: 14px; color: #b8ada5; transform: rotate(90deg); transition: transform .3s var(--ws-ease); }
.expiry-trigger[aria-expanded=true]>.workspace-icon { transform: rotate(270deg); }
.expiry-options { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; display: grid; gap: 4px; padding: 4px; max-height: 180px; overflow-y: auto; border: 1px solid #4b3c31; border-radius: 12px; background: #1c1917; box-shadow: 0 12px 24px #0006; transform-origin: top center; }
.expiry-options[data-side=top] { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.expiry-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px; border-radius: 8px; color: #d6ccc4; font: 400 14px/20px var(--sans); cursor: pointer; }
.expiry-option[aria-selected=true] { background: #34271e; color: #f4c7a7; }
.expiry-option>.workspace-icon { width: 16px; height: 16px; color: var(--glow); opacity: 0; }
.expiry-option[data-current=true]>.workspace-icon { opacity: 1; }
.api-quickstart { display: flex; flex-direction: column; }
.api-quickstart>.card-heading { gap: 8px; margin-bottom: 0; }
.api-version { color: #aea0ba; font: 10px var(--mono); white-space: nowrap; }
.api-quickstart>p { color: #afa3bb; font-size: 12px; }
.api-quickstart>a { align-self: flex-start; margin-top: auto; padding-top: 16px; }
.terminal-preview { border: 1px solid #322c3b; border-radius: 8px; background: #0b0a0d; overflow: hidden; }
.terminal-preview>div { display: flex; align-items: center; gap: 5px; padding: 12px; border-bottom: 1px solid #27222e; }
.terminal-preview>div>span { width: 5px; height: 5px; border-radius: 50%; background: #685773; }
.terminal-preview small { margin-left: auto; color: #a794b5; font: 10px var(--mono); }
.terminal-preview pre { overflow: auto; margin: 0; padding: 16px; color: #cab9d7; font: 11px/22px var(--mono); }
.terminal-preview code>span { color: #edaf86; }
.terminal-preview em { color: #b9cda8; font-style: normal; }
.keys-panel { margin-top: 24px; }
.keys-panel h2 { display: flex; align-items: center; gap: 8px; }
#key-list { color: #b4a5c1; font-size: 12px; }
.key-row { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.key-row:last-child { padding-bottom: 0; }
.key-row>div { flex: 1; min-width: 0; }
.key-row strong { color: #e2d8ea; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.key-row p { margin: 6px 0 0; color: #b4a6c2; font-size: 11px; line-height: 18px; }
.key-row button { flex: none; }
.key-row>.key-symbol { display: grid; place-items: center; flex: none; width: 36px; height: 40px; border: 1px solid #3c3346; border-radius: 8px; background: #201b27; color: #bfaccf; }
.key-empty { padding: 32px 16px; border: 1px dashed #39303f; border-radius: 8px; text-align: center; line-height: 1.8; }
.new-key { margin-top: 24px !important; margin-bottom: 0 !important; }
.new-key input { font: 12px var(--mono); }
.new-key .text-button { margin-top: 12px; }
.notice { padding: 16px; margin: 0 0 20px; border: 1px solid #58412f; border-radius: 8px; background: #221b15; color: #eed2b8; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.notice a { text-decoration: underline; }
.inline-message { margin-top: 16px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; color: #d9c1af; }
.inline-message:empty { display: none; }
.error { color: #ffb2ad; }

.api-docs { max-width: 100%; min-width: 0; }
.api-docs article { margin-bottom: 20px; }
.api-docs h2 { margin-bottom: 16px; }
.api-docs h3 { margin-top: 24px; font-size: 14px; font-weight: 500; }
.api-docs code { overflow-wrap: anywhere; color: #f1c8ad; font: 12px var(--mono); }
.api-docs pre { max-width: 100%; overflow: auto; padding: 20px; border: 1px solid #34343d; border-radius: 8px; background: #09090c; white-space: pre; line-height: 1.8; tab-size: 2; }
.api-docs pre code { color: #d5d0db; line-height: 1.8; }
.api-docs table { border-collapse: collapse; width: 100%; font-size: 13px; }
.api-docs td,.api-docs th { padding: 12px; text-align: left; border-bottom: 1px solid #34343d; }
.api-docs th { color: #ccc5d1; }
.api-docs p,.api-docs li { color: #c1bdc7; font-size: 14px; line-height: 1.8; }
.docs-page { padding-top: 52px; padding-bottom: 64px; }
.docs-page h1 { font: 42px var(--serif); }
dialog { width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #45404a; border-radius: 14px; background: #151518; color: var(--fg); box-shadow: 0 24px 100px #000b; overflow: auto; }
dialog::backdrop { background: #050407bb; backdrop-filter: blur(5px); }
dialog[open] { animation: workspace-enter .3s var(--ws-ease) both; }
dialog h2 { margin: 0; font: 500 20px/28px var(--sans); letter-spacing: -.02em; }
dialog p { font-size: 13px; line-height: 1.75; }
.dialog-heading { align-items: flex-start; margin-bottom: 20px; }
.dialog-heading .icon-button { margin-top: -4px; }
.file-name { overflow-wrap: anywhere; color: var(--glow); font-family: var(--mono); }
.upload-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.upload-steps li { flex: 1; padding: 8px 0; border-bottom: 2px solid #44414a; color: #bbb7c1; font-size: 11px; }
.upload-steps li.active { color: #ffc6a8; border-color: var(--ember); }
#upload-progress { height: 6px; }
#upload-progress-label { font-size: 12px; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-option { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; margin: 0; border: 1px solid #4a4144; border-radius: 10px; color: #c2bdc7; cursor: pointer; font-size: 12px; line-height: 1.8; }
.plan-option:has(input:checked) { border-color: var(--ember); background: #2d211b; }
.plan-option input { position: absolute; top: 16px; right: 12px; }
.plan-option>strong { color: #f5f0ec; font-size: 16px; }
.plan-price { color: var(--glow); font-size: 28px; line-height: 1.2; }
.plan-price small { color: #c2bdc7; font-size: 11px; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.credit-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.credit-options .btn { flex: 1; padding: 10px; font-size: 12px; }
#credits-total,#plan-summary { margin-top: 20px; }
.search-result { display: flex; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.search-result>span { min-width: 0; overflow-wrap: anywhere; }
.search-result small { flex: none; color: #b7a7c3; font-size: 11px; }
.sidebar-shade { position: fixed; inset: 0; z-index: 70; border: 0; background: #030205b3; backdrop-filter: blur(3px); }
.workspace-view.is-entering { animation: workspace-enter .35s var(--ws-ease) both; }
@keyframes workspace-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress-pulse { to { opacity: .4; } }
@media(min-width:861px) { .sidebar-shade { display: none !important; } }
@media(max-width:1280px) {
  .workspace { grid-template-columns: 216px minmax(0,1fr); }
  .workspace-sidebar { padding: 0 12px; }
  .workspace-content { padding: 28px 24px; }
  .workspace-topbar { padding: 0 24px; }
  .topbar-actions { gap: 12px; }
  .credit-trigger,.topbar-divider { display: none; }
  .overview-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }
  .stat-card { padding: 20px 16px; }
  .stat-label .workspace-icon { display: none; }
  #dash-overview .date-cell,#dash-overview .open-cell { display: none; }
  #dash-overview .artifact-table th:first-child { width: 65%; }
  #dash-overview .artifact-table th:nth-child(2) { width: 35%; }
  .developer-grid { grid-template-columns: 1fr; }
  .api-quickstart { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 24px; }
  .api-quickstart .terminal-preview { grid-column: 2; grid-row: 1/4; }
}
@media(max-width:1100px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-rail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .dropzone { min-height: 220px; }
  .workspace-breadcrumb>span,.workspace-breadcrumb>.workspace-icon { display: none; }
  .billing-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .subscription-name { display: block; }
  .subscription-name>span { display: block; margin-top: 8px; }
  .engine-note { align-items: flex-start; }
  .engine-note>a { margin-top: 4px; }
}
@media(max-width:860px) {
  .workspace { display: block; }
  .workspace-sidebar { position: fixed; top: 0; left: 0; width: min(290px,calc(100% - 48px)); height: 100dvh; padding: 0 16px; transform: translateX(-100%); visibility: hidden; transition: transform .4s var(--ws-ease),visibility .4s; }
  .workspace-sidebar.open { transform: translateX(0); visibility: visible; }
  .sidebar-close,.mobile-menu { display: inline-grid; }
  .sidebar-brand { padding-right: 0; }
  .sidebar-bottom { padding-bottom: env(safe-area-inset-bottom); }
  .workspace-topbar { height: 64px; padding: 0 20px; gap: 12px; }
  .workspace-breadcrumb { margin-right: auto; }
  .workspace-content { padding: 28px 24px; min-height: calc(100dvh - 64px); }
  .icon-button { width: 44px; height: 44px; }
  .workspace .btn,dialog .btn { min-height: 44px; }
  .page-heading h1 { font-size: 28px; }
  .search-trigger { min-width: 44px; min-height: 44px; justify-content: center; }
  .search-trigger kbd,.search-trigger>span { display: none; }
  .stat-card>a,.stat-card>.text-button { min-height: 36px; }
  .artifact-filters button { min-height: 38px; }
  .filter-marker { height: 38px; }
  .table-order { display: none; }
  .row-open { width: 32px; }
  input:not([type=checkbox]):not([type=radio]),select,textarea { font-size: 16px; }
  .workspace-footer a { min-height: 44px; }
}
@media(max-width:680px) {
  .workspace-breadcrumb { display: none; }
  .topbar-actions { margin-left: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(3) { border-left: 0; }
  .stat-card:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat-label .workspace-icon { display: block; }
  .overview-grid { display: flex; flex-direction: column; gap: 20px; }
  .overview-grid>.files-panel { width: 100%; }
  .overview-rail { display: contents; }
  .upload-panel { order: -1; width: 100%; }
  .developer-shortcut { width: 100%; }
  .dropzone { display: grid; grid-template-columns: 88px 1fr; align-content: center; justify-items: start; min-height: 144px; padding: 20px; text-align: left; column-gap: 20px; }
  .dropzone .upload-art { grid-row: 1/4; }
  .dropzone strong { margin: 0; }
  .dropzone small { margin-top: 8px; }
  .dropzone>span:not(.upload-art) { margin: 0; }
  .upload-footnote { font-size: 12px !important; }
  .engine-note { flex-wrap: wrap; }
  .engine-note p { flex-basis: calc(100% - 40px); }
  .engine-note>a { margin-left: 36px; min-height: 40px; }
  .billing-grid { grid-template-columns: 1fr; }
  .subscription-name { display: flex; }
  .subscription-name>span { margin: 0; }
  .api-quickstart { display: flex; }
  .key-form { grid-template-columns: 1fr 140px; }
  .artifact-toolbar { flex-wrap: wrap; }
  .artifact-search-field { width: 100%; }
  .artifact-search-field input { min-height: 44px; }
  .run-prices { grid-template-columns: 1fr; }
  .run-prices>div+div { border-left: 0; border-top: 1px solid var(--border); }
  .run-prices>div { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 4px 12px; }
  .run-prices .workspace-icon { grid-column: 1; grid-row: 1/3; }
  .run-prices h3 { margin: 0; }
  .run-prices p { grid-column: 2; margin: 0; }
  .run-prices strong { grid-column: 3; grid-row: 1/3; font-size: 22px; line-height: 26px; }
  .run-prices strong small { display: block; text-align: right; font-size: 11px; }
  .run-prices>div>span { grid-column: 2/4; margin-top: 4px; }
}
@media(max-width:540px) {
  .workspace-content { padding: 24px 16px; }
  .workspace-topbar { padding: 0 12px; }
  .topbar-actions { gap: 8px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 26px; line-height: 32px; }
  .page-heading p { font-size: 12px; line-height: 20px; }
  .page-heading>.plan-badge { min-height: 32px; padding: 6px 8px; }
  #dash-overview>.page-heading>div { width: calc(100% - 106px); }
  #dash-overview>.page-heading>.plan-badge { max-width: 106px; }
  #dash-overview>.page-heading>.plan-badge>.workspace-icon { display: none; }
  .stat-card { padding: 16px; }
  .stat-label { font-size: 11px; line-height: 18px; }
  .stat-label .workspace-icon { display: none; }
  .stat-card>strong { font-size: 28px; line-height: 32px; gap: 6px; }
  .stat-card>strong small { font-size: 11px; }
  .stat-card>small { font-size: 10px; }
  .stat-card>progress { margin-top: 4px; }
  .workspace-card { padding: 20px; }
  .files-panel { padding: 0; }
  .files-panel>.card-heading { padding: 20px 16px 8px; }
  .card-heading { gap: 8px; }
  .card-heading h2 { font-size: 14px; }
  .card-heading p { font-size: 11px; }
  .subtle-link { font-size: 11px; min-height: 44px; }
  .artifact-toolbar { padding: 12px 16px 16px; }
  .artifact-filters { width: 100%; }
  .artifact-filters button { flex: 1; min-height: 40px; padding: 6px 8px; font-size: 12px; }
  .filter-marker { height: 40px; }
  .artifact-table .date-cell,.artifact-table .open-cell { display: none; }
  .artifact-table th:first-child,#dash-overview .artifact-table th:first-child { width: 58%; padding-left: 16px; }
  .artifact-table th:nth-child(2),#dash-overview .artifact-table th:nth-child(2) { width: 42%; }
  .artifact-table td:first-child { padding-left: 16px; padding-right: 4px; }
  .artifact-table td:nth-child(2) { padding: 12px 12px 12px 4px; }
  .artifact-link { gap: 8px; }
  .file-icon { width: 28px; height: 34px; border-radius: 6px; }
  .file-icon .workspace-icon { width: 18px; height: 18px; }
  .file-cell strong { font-size: 12px; }
  .file-cell small { flex-wrap: wrap; gap: 4px; font-size: 10px; }
  .status-tag { gap: 5px; max-width: 100%; padding: 4px 6px; font-size: 10px; white-space: normal; }
  .table-footer { padding: 12px 16px; font-size: 10px; }
  .table-footer>span:last-child { display: none; }
  .dropzone { grid-template-columns: 68px 1fr; min-height: 144px; padding: 16px 12px; column-gap: 12px; }
  .dropzone .upload-art { transform: scale(.8); transform-origin: left center; }
  .dropzone strong { font-size: 13px; }
  .dropzone small { font-size: 10px; line-height: 18px; }
  .upload-panel { padding: 16px; }
  .upload-footnote { font-size: 11px !important; }
  .engine-note { padding: 16px; gap: 12px; }
  .engine-note>a { margin-left: 32px; }
  .workspace-footer { align-items: flex-start; flex-wrap: wrap; margin-top: 28px; }
  .workspace-footer>span { padding-top: 14px; }
  .workspace-footer>div { gap: 16px; }
  .workspace-footer>div>span { display: none; }
  .empty-state { padding: 40px 20px; }
  .empty-state p { font-size: 12px; }
  .key-form { grid-template-columns: 1fr; }
  .key-form>button { justify-self: stretch; }
  .key-row { align-items: flex-start; gap: 12px; }
  .key-row>.key-symbol { display: none; }
  .key-row p { font-size: 10px; }
  .key-row button { padding: 8px; font-size: 11px; }
  .api-quickstart .card-heading { align-items: flex-start; flex-wrap: wrap; }
  .terminal-preview pre { font-size: 10px; padding: 12px; }
  .pricing-reference { padding-bottom: 0; }
  .run-prices { margin: 0 -20px; }
  .run-prices>div { padding: 20px; }
  .subscription-name { display: block; }
  .subscription-name>span { display: block; margin-top: 8px; }
  .section-footnote { align-items: flex-start; font-size: 11px; }
  .section-footnote>.workspace-icon,.section-footnote>.status-dot { margin-top: 5px; }
  dialog { padding: 24px 20px; }
  .dialog-heading h2 { font-size: 18px; }
  .dialog-heading .icon-button { margin-top: -8px; margin-right: -8px; }
  .plan-option { padding: 16px 12px; font-size: 11px; }
  .plan-option input { top: 12px; right: 8px; }
  .plan-price { font-size: 24px; }
  .plan-price small { display: block; margin-top: 4px; }
  .upload-steps { gap: 6px; }
  .upload-steps li { font-size: 10px; }
  .inline-form { align-items: stretch; }
  .api-docs td,.api-docs th { padding: 10px 6px; font-size: 12px; }
  .api-docs pre { padding: 14px; }
  .docs-page { padding-top: 32px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .dropzone:hover .upload-file.front,.dropzone.dragging .upload-file.front { transform: none; }
}
