:root {
  --bg: #f6f5f0;
  --panel: #fffefa;
  --sidebar: #eeeee6;
  --surface: #f2f3ec;
  --text: #283b33;
  --muted: #69736a;
  --accent: #255c46;
  --accent-hover: #194834;
  --accent-soft: #e8eee3;
  --border: #dedfd4;
  --error: #a13e32;
  --warning: #7a591d;
  --radius: 14px;
  --sidebar-width: 218px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #809c63; outline-offset: 4px; }
::selection { background: #dce7cd; color: #203b2b; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 10px 17px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fffefa; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.45; transition: background .16s, border-color .16s; }
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }
button:disabled, fieldset:disabled button { cursor: not-allowed; opacity: .5; }
.secondary { background: transparent; border-color: #ccd3c5; color: var(--accent); }
.secondary:hover { background: var(--accent-soft); border-color: #a9b7a0; color: var(--accent); }
.danger { background: #fbf0eb; border-color: #e6c7bc; color: var(--error); }
.danger:hover { background: #f4ded5; border-color: #c99585; color: #852e24; }
.small-button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; border-radius: 0; min-height: auto; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { background: transparent; color: var(--accent-hover); text-decoration: underline; }
.button-full { width: 100%; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.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; top: -90px; left: 20px; z-index: 20; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: white; }
.skip-link:focus { top: 15px; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 30px 18px 22px; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--text); font-size: 21px; font-weight: 750; letter-spacing: -.7px; text-decoration: none; white-space: nowrap; }
.brand-light { font-weight: 450; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 38px; background: var(--accent); color: #fffefa; border-radius: 9px 9px 3px 9px; }
.brand-mark .icon { width: 22px; height: 22px; }
.nav-caption { margin: 49px 12px 13px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 1.25px; }
.primary-nav { display: grid; gap: 6px; }
.primary-nav a { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 11px 12px; border-radius: 8px; color: #687267; text-decoration: none; font-size: 13px; font-weight: 500; }
.primary-nav a:hover { background: #e5e8dc; color: var(--accent); }
.primary-nav a.selected { background: #dfe7d7; color: #28503b; font-weight: 650; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { margin: 20px 12px 24px; padding-top: 22px; border-top: 1px solid #d7dbcd; }
.sidebar-note .eyebrow { font-size: 9px; }
.sidebar-note p { font-size: 12px; color: #6a7468; line-height: 1.9; margin: 10px 0 0; }
.logout-button { display: flex; justify-content: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--muted); font-weight: 500; }
.logout-button:hover { background: #e5e8dc; color: var(--accent); }
.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.topbar { height: 70px; padding: 0 42px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.topbar > span:first-child { display: flex; align-items: center; min-width: 0; }
.topbar a { text-decoration: none; white-space: nowrap; }
.breadcrumb-divider { padding: 0 12px; color: #a5ada0; }
.breadcrumb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-label { font-size: 9px; letter-spacing: 1.7px; white-space: nowrap; }
.main-content { width: 100%; max-width: 1380px; margin: 0 auto; padding: 38px 42px 48px; flex: 1; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 42px; padding: 21px 0; border-top: 1px solid var(--border); font-size: 11px; color: #798071; }
.page-footer > :first-child { font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(29px, 3.2vw, 43px); line-height: 1.23; font-weight: 550; letter-spacing: -1.5px; overflow-wrap: anywhere; }
h2 { margin-bottom: 10px; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.5px; }
h3 { margin-bottom: 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
p { margin-bottom: 16px; }
.eyebrow { display: block; color: #707a68; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; line-height: 1.6; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-accent { color: var(--accent); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading > div { min-width: 0; }
.page-heading > .button { flex-shrink: 0; }
.card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); margin: 0 0 24px; }
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.card-heading .eyebrow { font-size: 9px; margin-bottom: 4px; }
.card-heading h2 { margin: 0; }
.step-number { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border: 1px solid #d4ddc9; border-radius: 50%; color: var(--accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.heading-link { margin-left: auto; }
.section-icon, .stat-icon, .artifact-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent); border-radius: 10px; }
.count-pill { display: inline-block; padding: 2px 9px; margin-left: 5px; border: 1px solid #d7ddcd; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: block; margin: 15px 0 7px; font-size: 12px; font-weight: 550; color: #455346; }
input, textarea, select { width: 100%; min-width: 0; padding: 10px 12px; background: #fcfcf7; color: var(--text); border: 1px solid #d9ded0; border-radius: 7px; font-size: 13px; line-height: 1.55; transition: border-color .16s; }
input, select { min-height: 42px; }
input:hover, textarea:hover, select:hover { border-color: #b7c3aa; }
input:focus, textarea:focus, select:focus { border-color: #759465; outline: 2px solid #dce6d0; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #8a9083; opacity: 1; }
textarea { display: block; resize: vertical; }
textarea[spellcheck="false"], code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; }
input[type="file"] { font-size: 12px; padding: 8px; background: var(--surface); border-style: dashed; cursor: pointer; }
input[type="file"]::file-selector-button { padding: 7px 10px; margin-right: 10px; border: 1px solid #d1d9c6; border-radius: 5px; background: var(--panel); color: var(--accent); font: inherit; cursor: pointer; }
input:disabled, select:disabled, textarea:disabled { background: #eeefe9; color: #7d8277; cursor: not-allowed; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.field-help { margin: 7px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; }
.form-footer .field-help { margin: 0; max-width: 55%; }
.form-footer button { flex-shrink: 0; }
.input-action { display: flex; gap: 10px; }
.input-action input { flex: 1; min-width: 0; }
.input-action button { white-space: nowrap; }
.form-subheading { display: flex; gap: 9px; align-items: center; margin: 22px 0 0; font-size: 13px; }
.form-subheading .icon { width: 17px; height: 17px; color: var(--accent); }
.divided { border-top: 1px solid var(--border); padding-top: 21px; }
.flash { margin: 0 0 22px; padding: 14px 17px; border: 1px solid #d8dfca; border-radius: 9px; background: #edf2e5; color: #3e5435; font-size: 13px; overflow-wrap: anywhere; }
.flash.error { background: #fbefeb; color: #933b2e; border-color: #ebd0c5; }
.flash.notice, .flash.warning { background: #faf3e3; color: var(--warning); border-color: #e8d9b3; }
.flash.ok, .flash.success { background: #eaf1e5; color: #355c36; border-color: #cfdcbe; }
.inline-note { margin: 18px 0; padding: 12px 14px; border-left: 2px solid #b7c6a0; background: #f0f3e9; color: #59684f; font-size: 12px; line-height: 1.75; }
.refresh-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.refresh-notice .button { flex-shrink: 0; }
.empty-state { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 46px 24px; }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; background: var(--surface); color: #7b8c6a; border: 1px solid var(--border); border-radius: 15px; }
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { margin-bottom: 9px; font-size: 16px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 400px; margin-bottom: 18px; }
.empty-state.compact { padding: 22px 4px; }
.empty-state.compact h3 { font-size: 14px; }
.empty-state.compact p { font-size: 12px; margin-bottom: 0; }
/* Landing and library */
.landing-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .95fr); gap: 60px; align-items: center; min-height: calc(100vh - 240px); padding: 28px 0 50px; }
.landing-intro h1 { font-size: clamp(34px, 4vw, 55px); font-weight: 500; letter-spacing: -2px; margin: 20px 0 21px; }
.landing-intro .lead { max-width: 465px; line-height: 1.9; }
.landing-steps { list-style: none; margin: 36px 0 0; padding: 0; }
.landing-steps li { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 20px; }
.landing-steps .step-number { width: 31px; height: 31px; background: #ecf0e4; border-color: transparent; }
.landing-steps h2 { font-size: 13px; margin: 0 0 3px; letter-spacing: 0; }
.landing-steps p { font-size: 12px; color: var(--muted); margin: 0; }
.login-card { padding: 34px 30px; border-radius: 16px; box-shadow: 0 10px 40px #283b3306; }
.login-card .section-icon { margin-bottom: 24px; }
.login-card > .eyebrow { font-size: 9px; }
.login-card h2 { font-size: 23px; line-height: 1.35; }
.login-card > p { font-size: 13px; }
.login-card form { margin-top: 28px; }
.login-card .button-full { margin-top: 18px; justify-content: space-between; }
.login-note { display: flex; gap: 10px; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px !important; line-height: 1.7; }
.login-note .icon { width: 16px; height: 16px; margin-top: 3px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 25px; }
.stat-card { display: flex; align-items: center; gap: 18px; padding: 21px 25px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); }
.stat-icon { width: 43px; height: 43px; background: var(--surface); }
.stat-card strong { display: block; font-size: 29px; font-weight: 500; line-height: 1.15; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.stat-card div > span { color: var(--muted); font-size: 11px; }
.create-project { display: grid; align-items: center; grid-template-columns: 1fr 1.25fr; gap: 30px; background: #eef1e6; border-color: #dbe1cf; }
.create-project h2 { font-size: 20px; margin-bottom: 5px; }
.create-project .eyebrow { font-size: 9px; margin-bottom: 6px; }
.create-project p { margin: 0; font-size: 12px; }
.create-project label { margin-top: 0; }
.create-project input { background: #fffefa; }
.project-library { margin-top: 36px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 23px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .16s, box-shadow .16s; }
.project-card:hover { color: var(--text); border-color: #aab89a; box-shadow: 0 5px 15px #283b3306; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-open { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 10px; }
.project-open .icon { width: 15px; height: 15px; }
.project-card h3 { margin-bottom: 0; font-size: 17px; letter-spacing: -.3px; overflow-wrap: anywhere; }
.project-card-meta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 16px; border-top: 1px solid #e9ebdf; color: var(--muted); font-size: 11px; margin-top: auto; }
.project-card-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.project-card-meta .icon { width: 14px; height: 14px; }
/* Project workspace */
.project-heading { margin-bottom: 22px; }
.project-heading h1 { font-size: 34px; }
.project-status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 27px; color: var(--muted); font-size: 11px; }
.project-status-strip > span { display: inline-flex; gap: 8px; align-items: center; }
.project-status-strip > span:last-child { margin-left: auto; }
.dot-separator { padding: 0 3px; color: #bcc2b2; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid #dfe3d8; border-radius: 5px; background: #f1f2eb; color: #707867; font-size: 10px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.running, .badge.queued, .badge.partial { background: #fbf3de; color: #87621c; border-color: #ecdfb9; }
.badge.done, .badge.completed { background: #eaf1e2; color: #42623a; border-color: #d3dfc8; }
.badge.error, .badge.stopped { background: #fbefeb; color: #a35140; border-color: #e8cfc3; }
.workflow-nav { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 25px; border-bottom: 1px solid var(--border); }
.workflow-nav a { display: flex; align-items: center; gap: 9px; padding: 14px 0; color: #5e7057; font-size: 12px; text-decoration: none; }
.workflow-nav a:hover { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.workflow-nav a > span { color: #8c9b7c; font-size: 10px; font-variant-numeric: tabular-nums; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); gap: 22px; align-items: start; }
.studio-grid .card { padding: 24px; }
.editor-tabs { display: flex; gap: 3px; padding: 4px; margin: 0 0 21px; border: 1px solid #e0e4d6; border-radius: 8px; background: #f0f2e9; }
.editor-tabs button { flex: 1; gap: 6px; background: none; color: var(--muted); border: 1px solid transparent; min-height: 39px; padding: 9px 6px; border-radius: 5px; font-size: 12px; font-weight: 550; }
.editor-tabs button[aria-selected="true"] { border-color: #d9e0cd; color: var(--accent); background: var(--panel); box-shadow: 0 1px 3px #283b3308; }
.editor-tabs button:hover { color: var(--accent); }
.editor-tabs button > span { font-size: 10px; font-weight: 400; }
.editor-tabs .icon { width: 16px; height: 16px; }
.panel-title { font-size: 14px; margin: 0 0 7px; }
[data-tab-panel] + [data-tab-panel] { margin-top: 24px; }
.editor-tabs:not([hidden]) ~ [data-tab-panel] { margin-top: 0; }
.editor-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 17px; }
.editor-label label { margin: 0 0 8px; }
.editor-tag { margin-bottom: 8px; color: #8b947e; font-size: 8px; letter-spacing: .9px; }
.text-editor { min-height: 252px; background: #fffefa; padding: 16px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; font-size: 13px; line-height: 1.85; }
.editor-footer { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid #d9ded0; border-top: 0; border-radius: 0 0 7px 7px; background: #f5f6ef; color: #7b836f; font-size: 10px; font-variant-numeric: tabular-nums; }
.file-label { margin-top: 20px; }
.advanced { margin-top: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
summary { position: relative; cursor: pointer; font-size: 12px; font-weight: 550; color: var(--accent); padding: 14px 22px 14px 0; }
.advanced > summary { list-style: none; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 15px; font-weight: 400; }
.advanced[open] > summary::after { content: "−"; }
summary .icon { width: 17px; height: 17px; margin-right: 8px; }
.details-content { padding-bottom: 19px; }
.details-content > label:first-child { margin-top: 0; }
.model-helper { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; }
.model-helper select { min-width: 0; font-size: 11px; }
.model-helper button { flex-shrink: 0; }
.pdf-import { border-bottom: 0; margin-bottom: -9px; }
.source-info { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.key-summary { display: flex; align-items: center; gap: 8px; margin: 22px -24px -24px; padding: 14px 24px; background: #f2f4eb; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); color: #778169; font-size: 10px; }
.key-summary .icon { width: 15px; height: 15px; }
.key-summary a { margin-left: auto; white-space: nowrap; }
.job-forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.job-forms-grid > form { padding: 21px; border: 1px solid #dfe3d5; border-radius: 10px; background: #f8f9f2; }
.job-forms-grid fieldset { height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.job-forms-grid h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.job-forms-grid h3 .icon { width: 18px; height: 18px; }
.job-forms-grid fieldset > button { margin-top: auto; }
.job-forms-grid label { margin-top: 7px; }
.redo-options { width: 100%; margin: 10px 0 20px; }
.redo-options summary { padding: 10px 0; color: var(--muted); font-size: 11px; }
.redo-options .grid2 { margin-top: 7px; }
.table-scroll { overflow-x: auto; width: 100%; }
.jobs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.jobs-table th { background: #f4f5ee; color: #7a846d; font-size: 10px; font-weight: 550; padding: 11px 13px; }
.jobs-table td { border-bottom: 1px solid #e8eadf; padding: 15px 13px; vertical-align: top; }
.jobs-table th:first-child { border-radius: 6px 0 0 6px; }
.jobs-table th:last-child { border-radius: 0 6px 6px 0; }
.jobs-table tr:last-child td { border-bottom: 0; }
.jobs-table .job-name { display: block; font-weight: 600; }
.job-message { margin-top: 5px; max-width: 390px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; white-space: pre-wrap; }
.progress-wrap { display: flex; align-items: center; gap: 9px; min-width: 125px; font-size: 10px; color: var(--muted); }
progress { appearance: none; width: 112px; height: 5px; border: 0; border-radius: 5px; overflow: hidden; background: #e7ebdc; color: #6e8b55; accent-color: #6e8b55; }
progress::-webkit-progress-bar { background: #e7ebdc; border-radius: 5px; }
progress::-webkit-progress-value { background: #6e8b55; border-radius: 5px; }
progress::-moz-progress-bar { background: #6e8b55; border-radius: 5px; }
.button-row, .job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.job-actions { min-width: 147px; }
.log-panel { margin-top: 20px; padding: 0 17px; background: #f0f2e9; border: 1px solid #d9dfce; border-radius: 9px; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.log-head h3 { margin: 0; font-size: 12px; }
#job-log-feedback { margin-top: 10px; }
#job-log-body { min-height: 65px; max-height: 340px; margin: 10px 0 18px; overflow: auto; font: 11px/1.8 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.is-error { color: var(--error) !important; }
.download-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.download-toolbar > span { margin-right: 7px; }
.download-toolbar .icon { width: 14px; height: 14px; }
.artifact-list { display: grid; gap: 13px; }
.artifact-card { padding: 18px; border: 1px solid #e0e4d6; border-radius: 9px; background: #fafbf5; min-width: 0; }
.artifact-header { display: flex; align-items: center; gap: 13px; }
.artifact-description { flex: 1; min-width: 0; }
.artifact-description h3 { margin-bottom: 1px; font-size: 13px; overflow-wrap: anywhere; }
.artifact-description .field-help { margin: 0; font-size: 10px; }
.artifact-header .button { flex-shrink: 0; }
.artifact-header .button .icon { width: 15px; height: 15px; }
.artifact-icon { width: 36px; height: 39px; border-radius: 6px; background: #eef1e5; }
audio { display: block; width: 100%; max-height: 42px; margin-top: 17px; }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 17px 0 0; }
.preview-actions .text-link { font-size: 12px; }
.preview-actions a { font-size: 11px; color: var(--muted); }
.summary-preview { max-height: 410px; margin: 15px 0 0; padding: 19px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.9 system-ui, sans-serif; }
/* Credentials */
.credentials-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); align-items: start; gap: 24px; }
.secret-input { -webkit-text-security: disc; }
.secret-input.is-visible { -webkit-text-security: none; }
.masked-keys { list-style: none; padding: 0; margin: 0; }
.masked-keys li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.masked-keys .icon { width: 16px; height: 16px; color: #81906e; }
.masked-keys code { overflow-wrap: anywhere; min-width: 0; }
.security-note { display: flex; gap: 12px; padding: 18px; background: #f1f4e9; border-radius: 8px; margin-top: 20px; color: #617151; }
.security-note > .icon { width: 17px; height: 17px; margin-top: 3px; }
.security-note strong { font-size: 12px; font-weight: 550; }
.security-note p { font-size: 11px; margin: 5px 0 0; line-height: 1.8; }
.danger-zone { border-color: #e4d6c8; }
.danger-zone h2 { font-size: 16px; }
.error-card { max-width: 620px; margin: 45px auto; padding: 40px; }
.error-card .button { margin-top: 28px; }
@media (min-width: 1600px) { .main-content { padding-top: 48px; } }
@media (max-width: 1250px) {
  :root { --sidebar-width: 192px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .main-content { padding: 30px; }
  .topbar { padding: 0 30px; }
  .page-footer { margin: 0 30px; }
  .studio-grid { grid-template-columns: minmax(0, 1.15fr) minmax(310px, 1fr); gap: 18px; }
  .studio-grid .card { padding: 20px; }
  .key-summary { margin: 22px -20px -20px; padding: 14px 20px; }
  .editor-tabs button > span { display: none; }
  .landing-layout { gap: 30px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 18px; gap: 13px; }
  .create-project { grid-template-columns: 1fr; gap: 18px; }
  .credentials-grid { grid-template-columns: minmax(0, 1.2fr) minmax(270px, 1fr); }
}
@media (max-width: 1050px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-grid .card { padding: 24px; }
  .key-summary { margin: 22px -24px -24px; padding: 14px 24px; }
  .settings-card > form > fieldset > .grid2 { gap: 20px; }
  .editor-tabs button > span { display: inline; }
  .landing-layout { grid-template-columns: minmax(0, 1fr); max-width: 650px; margin: 0 auto; padding-top: 10px; }
  .landing-intro h1 { font-size: 45px; }
  .landing-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .landing-steps li { display: block; margin: 0; }
  .landing-steps .step-number { margin-bottom: 10px; }
  .login-card { max-width: 100%; width: 100%; }
  .credentials-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  .page-heading > .button { margin-top: 23px; }
  .project-status-strip > span:last-child { width: 100%; margin-left: 0; }
  .job-forms-grid { gap: 15px; }
  .job-forms-grid > form { padding: 17px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 145px; }
  .sidebar { position: sticky; top: 0; width: 100%; padding: 14px 20px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 11px 15px; border-right: 0; border-bottom: 1px solid #d9ddce; }
  .brand { font-size: 20px; padding: 0; }
  .brand-mark { width: 31px; height: 33px; border-radius: 7px 7px 3px 7px; }
  .nav-caption, .sidebar-note { display: none; }
  .sidebar-bottom { grid-column: 2; grid-row: 1; margin: 0; }
  .logout-button { min-height: 35px; padding: 7px; font-size: 11px; gap: 6px; }
  .logout-button .icon { width: 16px; height: 16px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 21px; }
  .primary-nav a { border-radius: 0; min-height: 42px; padding: 8px 0 12px; gap: 7px; font-size: 12px; }
  .primary-nav a.selected { background: none; box-shadow: inset 0 -2px var(--accent); }
  .primary-nav a:hover { background: none; }
  .primary-nav .icon { width: 16px; height: 16px; }
  .app-shell { margin-left: 0; min-height: calc(100vh - 112px); }
  .topbar { height: 49px; padding: 0 22px; font-size: 11px; }
  .topbar-label { font-size: 8px; letter-spacing: 1px; }
  .main-content { padding: 27px 22px 35px; }
  .page-footer { margin: 0 22px; padding: 19px 0; font-size: 10px; }
  h1 { font-size: 32px; letter-spacing: -1px; }
  .page-heading { flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
  .page-heading > .button { margin-top: 0; }
  .page-heading .lead { font-size: 13px; }
  .project-heading h1 { font-size: 30px; }
  .card { padding: 22px; }
  .stats-grid { gap: 10px; }
  .stat-card { display: block; padding: 17px 14px; }
  .stat-icon { width: 32px; height: 32px; margin-bottom: 13px; border-radius: 8px; }
  .stat-icon .icon { width: 17px; height: 17px; }
  .stat-card strong { font-size: 25px; }
  .stat-card div > span { font-size: 10px; }
  .landing-layout { padding: 0; gap: 30px; }
  .landing-intro h1 { font-size: 43px; }
  .login-card { padding: 27px; }
  .project-card { padding: 18px; }
  .project-open { font-size: 9px; }
  .job-forms-grid { grid-template-columns: 1fr; }
  .job-forms-grid > form { padding: 20px; }
  .workflow-nav a { font-size: 11px; gap: 7px; }
  .jobs-table { min-width: 590px; }
  .jobs-table td { padding-left: 10px; padding-right: 10px; }
  .refresh-notice { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .main-content { padding: 24px 16px 30px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .topbar { padding: 0 16px; }
  .topbar-label { display: none; }
  .page-footer { margin: 0 16px; flex-wrap: wrap; gap: 5px 20px; }
  .card, .studio-grid .card { padding: 19px; border-radius: 11px; }
  .card-heading { gap: 11px; }
  .card-heading h2 { font-size: 18px; }
  .card-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .step-number { width: 32px; height: 32px; font-size: 10px; }
  .key-summary { margin: 22px -19px -19px; padding: 13px 19px; }
  .projects-grid { grid-template-columns: 1fr; }
  .input-action { flex-direction: column; }
  .grid2 { gap: 11px; }
  .form-footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .form-footer .field-help { max-width: 100%; }
  .form-footer button { width: 100%; }
  .project-status-strip { gap: 10px; }
  .project-status-strip > span { font-size: 10px; }
  .card-heading > .heading-link { font-size: 10px; max-width: 75px; text-align: right; }
  .card-heading > .heading-link .icon { display: none; }
  .workflow-nav a { font-size: 10px; gap: 5px; }
  .workflow-nav a > span { font-size: 9px; }
  .editor-tabs button { font-size: 11px; }
  .editor-tabs button > span { display: none; }
  .landing-intro h1 { font-size: 39px; }
  .landing-intro > .eyebrow { font-size: 9px; }
  .landing-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 25px; }
  .landing-steps li { display: flex; }
  .landing-steps .step-number { margin-bottom: 0; }
  .login-card { padding: 25px; }
  .artifact-header { gap: 10px; flex-wrap: wrap; }
  .artifact-header > .button { margin-left: 46px; }
  .artifact-description { flex-basis: calc(100% - 46px); }
  .artifact-card { padding: 15px; }
  .section-heading > .small { display: none; }
  .editor-footer { font-size: 9px; padding: 9px; }
  .editor-tag { font-size: 7px; }
  .log-head { flex-wrap: wrap; }
  .error-card { padding: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .sidebar, .topbar, .page-footer, button, .workflow-nav, #jobs { display: none !important; }
  .app-shell { margin-left: 0; }
  .main-content { padding: 0; }
  .card { break-inside: avoid; box-shadow: none; }
}
