/* Local system fonts only. No external assets, tracking, or rendering libraries. */
:root {
  --ink: #172338;
  --muted: #708096;
  --subtle: #8692a4;
  --line: #e5eaf1;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --nav: #132038;
  --nav-muted: #91a0b8;
  --accent: #4d61d6;
  --accent-hover: #3f51bf;
  --accent-pale: #edf0ff;
  --amber: #966119;
  --amber-bg: #fff8e9;
  --green: #257455;
  --green-bg: #eaf6ef;
  --red: #b44d4d;
  --red-bg: #fbeeee;
  --radius: 13px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.65; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #aab5ff; outline-offset: 3px; }
input:focus, select:focus { outline: none; border-color: #8b9aeb; box-shadow: 0 0 0 3px #edf0ff; }
svg { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(24px, 2.15vw, 31px); line-height: 1.42; font-weight: 650; letter-spacing: -.8px; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 650; letter-spacing: -.2px; }
.muted { color: var(--muted); font-size: 13px; }
.subtle { color: var(--subtle); font-size: 12px; }
.numeric { font-variant-numeric: tabular-nums; }
.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: -80px; padding: 10px 18px; background: white; border-radius: 8px; z-index: 100; box-shadow: 0 3px 15px #0002; }
.skip-link:focus { top: 12px; }
.brand-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 37px; height: 37px; border: 1px solid #b5c1f73a; border-radius: 11px; color: #fff; background: #6075ec; font: 600 30px/1 "Segoe UI", sans-serif; letter-spacing: -2px; padding: 0 3px 4px 0; }
.boot-screen, .boot-error { min-height: 100vh; display: flex; flex-direction: column; gap: 18px; justify-content: center; align-items: center; padding: 32px; text-align: center; }
.boot-screen p { color: var(--muted); }
.boot-error h1 { font-size: 25px; }
.spinner { display: inline-block; width: 27px; height: 27px; border: 2px solid #dbe1f8; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; }
.spinner-small { width: 15px; height: 15px; border-color: #ffffff60; border-top-color: white; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .16s, border-color .16s, box-shadow .16s; line-height: 1.5; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 3px 6px #3042b319; }
.btn-primary:hover { background: var(--accent-hover); color: white; box-shadow: 0 4px 9px #3042b326; }
.btn-secondary { background: white; border-color: #dce3ed; color: #586880; }
.btn-secondary:hover { border-color: #bdc9df; background: #fafbfe; color: var(--ink); }
.btn-small { min-height: 36px; padding: 7px 13px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-danger-outline { background: white; border-color: #e9caca; color: var(--red); }
.btn-danger-outline:hover { background: var(--red-bg); border-color: #dca8a8; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; color: #607198; background: transparent; border: 0; padding: 6px 0; font-size: 12px; font-weight: 500; min-height: 32px; }
.text-button:hover { color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: none; color: currentColor; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.badge .status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .78; }
.badge-blue { color: #5369be; background: #eef1ff; }
.badge-amber { color: var(--amber); background: #fff4dc; }
.badge-green { color: var(--green); background: var(--green-bg); }
.badge-red { color: var(--red); background: var(--red-bg); }
.badge-neutral { color: #7b8798; background: #eff2f6; }
.notice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #dfe7f5; border-radius: 8px; background: #f4f7fd; color: #617394; padding: 13px 15px; font-size: 12px; line-height: 1.8; }
.notice svg { margin-top: 2px; }
.notice-amber { background: var(--amber-bg); border-color: #f3e4c5; color: #8e6c36; }
.notice-error { background: var(--red-bg); border-color: #f1d5d5; color: var(--red); }
.field { min-width: 0; }
.field-label { display: block; margin-bottom: 9px; font-size: 13px; color: #334258; font-weight: 600; }
.input { width: 100%; height: 44px; padding: 10px 13px; border: 1px solid #dce3ed; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: #a0abbb; font-weight: 400; }
.input[aria-invalid="true"] { border-color: #cc7e7e; }
.field-help { color: #8b98aa; font-size: 11px; margin-top: 7px; line-height: 1.7; }
.field-help:empty, .field-error:empty, .form-error:empty { display: none; }
.field-error { margin-top: 5px; color: var(--red); font-size: 12px; }
.form-error { color: var(--red); background: var(--red-bg); padding: 10px 13px; border-radius: 7px; font-size: 12px; }
.toast-region { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50; width: max-content; max-width: min(640px, calc(100vw - 32px)); }
.toast { background: #25354b; color: #fff; border: 1px solid #ffffff14; padding: 12px 20px; font-size: 13px; border-radius: 9px; box-shadow: 0 6px 25px #1420392b; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Account entry */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 43%) 1fr; }
.auth-intro { background: #142039; padding: 40px 11% 27px; color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-intro::before { content: ''; width: 500px; height: 500px; border: 1px solid #a9b7f10c; border-radius: 50%; position: absolute; right: -320px; top: 24%; box-shadow: 0 0 0 70px #a9b7f106, 0 0 0 140px #a9b7f103; pointer-events: none; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .1px; }
.auth-story { margin: auto 0; padding: 70px 0 60px; max-width: 390px; z-index: 1; }
.eyebrow { color: #8491a7; letter-spacing: 2px; font: 600 10px/1.6 "Segoe UI", sans-serif; margin-bottom: 12px; }
.eyebrow-light { color: #90a0c8; letter-spacing: 1.8px; }
.auth-story h1 { white-space: pre-line; font-size: clamp(35px, 3.2vw, 48px); font-weight: 600; line-height: 1.5; letter-spacing: 1px; margin: 17px 0 17px; }
.auth-description { color: #abb8ce; font-size: 13px; line-height: 2; max-width: 305px; }
.auth-graphic { margin-top: 39px; border-top: 1px solid #ffffff12; }
.auth-flow-row { display: flex; align-items: center; gap: 17px; padding: 19px 0; border-bottom: 1px solid #ffffff12; }
.auth-step-number { color: #7f90bc; font: 12px/1 "Segoe UI", sans-serif; letter-spacing: 1px; }
.auth-flow-row > div { flex: 1; }
.auth-flow-row strong { display: block; font-size: 13px; font-weight: 500; }
.auth-flow-row div span { color: #8191ad; font-size: 11px; }
.auth-flow-row svg { color: #7586b3; }
.auth-footnote { color: #657694; font-size: 10px; letter-spacing: 1px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 60px 35px; background: #fafbfe; }
.auth-card { width: 100%; max-width: 365px; }
.auth-card > .badge { margin-bottom: 23px; }
.auth-card h2 { font-size: 27px; font-weight: 650; letter-spacing: -.7px; }
.auth-subtitle { font-size: 12px; color: var(--muted); margin: 12px 0 32px; line-height: 1.9; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form .btn-primary { min-height: 46px; margin-top: 4px; }
.auth-note { color: #9aa6b7; font-size: 10px; line-height: 1.9; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.noscript { margin: 20px; }

/* Shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 223px; background: var(--nav); color: #d5deed; padding: 28px 17px 18px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: #f5f7fc; padding: 0 12px; }
.brand:hover { color: #fff; }
.brand .brand-mark { width: 35px; height: 35px; border-radius: 10px; font-size: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.45; }
.brand-text strong { font-size: 21px; letter-spacing: -.7px; font-weight: 600; }
.brand-text > span { color: #8c9bb8; font-size: 9px; letter-spacing: 1.6px; }
.workspace-label { margin: 33px 5px 23px; display: flex; align-items: center; gap: 9px; padding: 11px 9px; border: 1px solid #ffffff0d; border-radius: 7px; color: #a1afc6; background: #ffffff04; font-size: 11px; }
.workspace-dot { display: block; margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #6f81b7; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-label { font-size: 10px; color: #667893; padding: 0 14px; margin-bottom: 7px; }
.nav-label-admin { margin-top: 30px; }
.nav-item { display: flex; gap: 12px; align-items: center; padding: 11px 14px; min-height: 44px; color: #94a3bd; border-radius: 7px; font-size: 12px; transition: background-color .15s, color .15s; }
.nav-item:hover { background: #ffffff06; color: #dbe3f4; }
.nav-item.active { background: #677aee22; color: #c4ceff; }
.nav-item.active svg { color: #a3b3ff; }
.nav-category { min-width: 0; }
.nav-category-summary { list-style: none; cursor: pointer; }
.nav-category-summary::-webkit-details-marker { display: none; }
.nav-category-summary > span { flex: 1; min-width: 0; }
.nav-category-summary > svg { flex-shrink: 0; }
.nav-category-summary > svg:last-child { transition: transform .15s; }
.nav-category[open] > summary > svg:last-child { transform: rotate(90deg); }
.nav-category-summary.category-selected { color: #d5deff; }
.nav-children { border-left: 1px solid #8597ba35; margin: 0 0 5px 23px; padding-left: 7px; }
.nav-child { padding: 9px 8px; font-size: 11px; gap: 7px; align-items: flex-start; }
.nav-child svg { margin-top: 2px; flex-shrink: 0; }
.nav-child span { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
.sidebar-footer { margin-top: auto; padding-top: 30px; }
.sidebar-preview { display: flex; gap: 10px; align-items: center; margin: 0 9px 23px; color: #647693; }
.sidebar-preview strong { display: block; color: #8395b1; font-size: 10px; font-weight: 500; }
.sidebar-preview div span { display: block; color: #62758f; font-size: 9px; margin-top: 2px; }
.account { display: flex; gap: 10px; align-items: center; border-top: 1px solid #ffffff0d; padding: 19px 8px 0; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #b8c7ef; font-size: 12px; background: #283955; flex: 0 0 auto; }
.account-text { min-width: 0; flex: 1; line-height: 1.5; }
.account-text strong { display: block; font-size: 11px; font-weight: 500; color: #b6c3d9; max-width: 105px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-text span { font-size: 9px; color: #667b9b; }
.logout-button { color: #687d9d; width: 26px; }
.logout-button:hover { background: #ffffff08; color: #c1cfee; }
.main-frame { display: flex; flex-direction: column; min-width: 0; flex: 1; margin-left: 223px; }
.topbar { height: 71px; border-bottom: 1px solid var(--line); background: #ffffffc4; display: flex; align-items: center; justify-content: space-between; padding: 0 39px; }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 11px; color: #98a3b4; }
.breadcrumb svg { color: #bcc5d2; }
.breadcrumb-current { color: #66768d; }
.breadcrumb-generator { color: #66768d; overflow-wrap: anywhere; }
.topbar > .badge { font-size: 10px; min-height: 23px; }
.content { width: 100%; max-width: 1460px; margin: 0 auto; padding: 35px 39px 30px; flex: 1; }
.main-footer { padding: 22px 39px; color: #a7b2c1; font-size: 9px; letter-spacing: .3px; text-align: right; }
.page-heading { margin-bottom: 21px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-description { font-size: 12px; color: #8490a4; line-height: 1.85; margin-top: 10px; }
.workflow-meta { display: flex; gap: 12px; align-items: center; margin: 0 0 26px; }
.workflow-meta > .badge { min-height: 24px; padding: 2px 8px; font-size: 10px; }
.workflow-meta .subtle { font-size: 10px; }
.meta-divider { width: 1px; height: 11px; background: #dde3ec; margin: 0 1px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 8px #28365302; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 26px; border-bottom: 1px solid #eef1f6; }
.panel-heading .muted { margin-top: 5px; font-size: 11px; }
.panel-heading.compact { padding-top: 18px; padding-bottom: 18px; }
.panel-heading.compact h2 { font-size: 14px; }
.panel-icon { color: #c8cfde; font: 16px/1 "Segoe UI", sans-serif; letter-spacing: 1px; }
.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 23px; align-items: start; }
.task-form { padding: 25px 26px 24px; display: flex; flex-direction: column; gap: 21px; }
.count-row { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; }
.count-row .field-help { width: 300px; max-width: calc(100vw - 330px); }
.count-note { display: flex; gap: 10px; color: #94a1b5; padding-top: 30px; align-items: center; }
.count-note p { font-size: 10px; white-space: pre-line; line-height: 1.9; }
.task-form .notice { margin-top: 6px; padding: 11px 13px; font-size: 11px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 5px; }
.form-footnote { color: #9ba6b6; font-size: 10px; max-width: 225px; line-height: 1.8; }
.output-card { padding: 25px 23px 23px; }
.output-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #f0f3ff; color: #7384ce; margin-bottom: 17px; }
.output-card h2 { font-size: 15px; }
.output-card > .muted { font-size: 11px; line-height: 1.9; margin-top: 9px; }
.output-list { padding: 17px 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.output-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 10px; color: #728096; }
.output-list svg { color: #8b9cc4; flex-shrink: 0; margin-top: 2px; }
.output-list li span, .output-tree span { min-width: 0; overflow-wrap: anywhere; }
.output-delivery-note { color: #65738b; font-size: 11px; line-height: 1.9; margin-top: 14px; overflow-wrap: anywhere; }
.output-tree { margin-top: 5px; padding: 14px 12px; border: 1px solid #e9edf5; border-radius: 7px; background: #f8fafd; display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.6; color: #627088; font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif; }
.output-tree .tree-root { font-size: 12px; font-weight: 600; color: #52627d; margin-bottom: 4px; }
.workflow-note { display: flex; gap: 10px; margin: 17px 7px 0; color: #a1adbf; }
.workflow-note p { font-size: 10px; line-height: 1.9; }
.workflow-note svg { margin-top: 3px; }
.recent-section { margin-top: 27px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-heading h2 { font-size: 14px; }
.section-heading .text-button { font-size: 10px; }
.recent-empty { border: 1px dashed #dce3ed; border-radius: 10px; display: flex; gap: 16px; align-items: center; padding: 20px 22px; color: #a1aec2; background: #ffffff50; }
.recent-empty strong { font-size: 12px; font-weight: 500; color: #8493a9; }
.recent-empty p { color: #a2aec0; font-size: 10px; margin-top: 3px; }
.recent-section .table-wrap { border: 1px solid var(--line); border-radius: 10px; background: white; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; white-space: nowrap; }
.data-table th { background: #fbfcfe; color: #929eb0; font-size: 10px; font-weight: 500; padding: 12px 22px; border-bottom: 1px solid #edf0f5; }
.data-table td { padding: 17px 22px; border-bottom: 1px solid #eff2f7; color: #66778f; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fafbff; }
.task-name { color: #42516a; font-size: 12px; font-weight: 600; display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.task-name:hover { color: var(--accent); }
.table-secondary { display: block; font-size: 9px; color: #9ba7ba; margin-top: 4px; }
.table-time { font-size: 10px; color: #8c99ac !important; font-variant-numeric: tabular-nums; }
.table-action { display: inline-flex; gap: 5px; align-items: center; color: #778bac; font-size: 10px; }
.data-table .badge { font-size: 10px; min-height: 23px; }
.loading-panel { display: flex; min-height: 350px; gap: 14px; align-items: center; justify-content: center; flex-direction: column; color: var(--muted); font-size: 12px; }
.error-panel { margin: 35px auto; padding: 50px 25px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 13px; max-width: 660px; }
.error-panel > svg { color: #a3b0cb; }
.task-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.tabs { display: flex; gap: 5px; padding: 4px; background: #e9edf5; border-radius: 8px; }
.tab { border: 0; border-radius: 5px; background: transparent; color: #8290a5; padding: 7px 16px; font-size: 12px; }
.tab.selected { background: white; box-shadow: 0 1px 4px #1c335510; color: #5266ba; }
.tasks-panel { overflow: hidden; }
.task-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) auto; align-items: end; gap: 18px; padding: 20px 22px; margin-bottom: 25px; }
.task-filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 44px; }
.task-category-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; }
.task-category-section, .task-generator-panel { min-width: 0; }
.task-category-heading { margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.task-category-heading h2 { font-size: 15px; }
.task-generator-panel + .task-generator-panel { margin-top: 16px; }
.task-generator-panel .panel-heading h3 { font-size: 13px; overflow-wrap: anywhere; }
.task-generator-panel .panel-heading { gap: 14px; }
.empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 25px; text-align: center; gap: 12px; }
.empty-state .muted { max-width: 390px; }
.empty-state .btn { margin-top: 11px; }
.empty-icon { width: 65px; height: 65px; display: grid; place-items: center; background: #f1f4fc; color: #a1afd2; border-radius: 18px; margin-bottom: 5px; }

/* Detail, administration */
.back-link { margin: -8px 0 21px; font-size: 11px; }
.detail-heading { display: flex; gap: 25px; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.detail-heading h1 { overflow-wrap: anywhere; }
.detail-heading > .badge { align-self: center; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; margin-top: 23px; align-items: start; }
.detail-list { margin: 0; padding: 24px 26px; }
.detail-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 15px; font-size: 12px; margin-bottom: 18px; }
.detail-item:last-child { margin-bottom: 0; }
.detail-item dt { color: #92a0b2; }
.detail-item dd { margin: 0; color: #596b85; overflow-wrap: anywhere; }
.detail-link { color: #7285b8; }
.detail-output { padding: 26px; }
.detail-output .muted { font-size: 11px; margin: 10px 0 18px; overflow-wrap: anywhere; }
.detail-output .btn { margin-top: 15px; width: 100%; }
.detail-output .subtle { margin-top: -9px; }
.download-unavailable { border: 1px dashed #dfe5ef; color: #a1adbe; background: #fafbfd; font-size: 11px; padding: 12px; text-align: center; border-radius: 7px; }
.output-privacy { color: #9ba8b9; font-size: 10px; margin-top: 15px; }
.activity-panel { margin-top: 23px; }
/* Shot-level review is separate from the immutable original task package. */
.review-panel { margin-top: 23px; }
.review-content { padding: 23px 26px 26px; min-width: 0; }
.review-note { color: #66778e; font-size: 12px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.review-empty { margin-top: 18px; padding: 20px; color: #7889a0; font-size: 12px; line-height: 1.9; border: 1px dashed #dce4ef; border-radius: 8px; background: #fafbfd; }
.review-version-field { max-width: 360px; margin: 19px 0 15px; }
.review-blocked, .review-error, .review-success { margin: 13px 0; padding: 12px 14px; border-radius: 7px; font-size: 12px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.review-blocked { background: #fff9ec; border: 1px solid #f1e3c2; color: #8b6e3d; }
.review-error { background: #fff4f4; border: 1px solid #edcfcf; color: #a24c4c; }
.review-success { background: #f1f8f5; border: 1px solid #cee6da; color: #497864; }
.review-shots { display: grid; gap: 12px; margin-top: 17px; }
.review-shot { min-width: 0; border: 1px solid #e2e8f1; border-radius: 8px; overflow: clip; }
.review-shot-summary { display: grid; grid-template-columns: 65px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 17px 19px; background: #fafbfd; list-style: none; }
.review-shot-summary::-webkit-details-marker { display: none; }
.review-shot-summary::marker { content: ''; }
.review-shot[open] > .review-shot-summary { border-bottom: 1px solid #e5ebf3; }
.review-shot-code { color: #6177bb; font-size: 12px; font-weight: 650; }
.review-shot-title { min-width: 0; }
.review-shot-title strong { display: block; color: #485b76; font-size: 13px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.review-shot-title .subtle { display: block; margin-top: 4px; font-size: 11px; line-height: 1.7; }
.review-revision { color: #7b8a9f; background: #edf1f8; border-radius: 5px; padding: 4px 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.review-shot-body { padding: 20px; min-width: 0; }
.review-shot-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 15px; margin-bottom: 15px; }
.review-shot-toolbar .review-note, .review-shot-toolbar .text-button { font-size: 11px; }
.review-script { margin: 17px 0; display: grid; gap: 12px; }
.review-script > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; color: #5d6f88; font-size: 12px; line-height: 1.85; }
.review-script dt { color: #8996a9; }
.review-script dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-prompt, .review-history { border: 1px solid #e6ebf3; border-radius: 7px; background: #fcfdff; margin-top: 15px; min-width: 0; }
.review-prompt > summary, .review-history > summary { padding: 12px 14px; font-size: 12px; color: #637893; line-height: 1.8; }
.review-prompt pre { margin: 0; border-top: 1px solid #e8edf4; padding: 15px; max-height: 360px; overflow: auto; color: #54667f; font: 11px/1.9 Consolas, 'Microsoft YaHei UI', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-assets { list-style: none; margin: 18px 0 23px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 13px; }
.review-asset { min-width: 0; display: flex; flex-direction: column; gap: 11px; border: 1px solid #e4eaf3; border-radius: 7px; padding: 14px; }
.review-file-heading { min-width: 0; }
.review-file-heading strong { display: block; color: #61728c; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; line-height: 1.8; }
.review-file-heading .subtle { display: block; font-size: 10px; margin-top: 5px; }
.review-file-link { color: #5c74b5; font-size: 11px; width: fit-content; text-decoration: underline; text-underline-offset: 3px; margin-top: auto; }
.review-picture { display: grid; place-items: center; min-width: 0; min-height: 70px; border: 1px solid #e8edf4; border-radius: 5px; background: #f5f7fb; overflow: hidden; }
.review-picture img { display: block; width: 100%; max-height: 250px; object-fit: contain; }
.review-picture .review-note { padding: 12px; font-size: 11px; }
.review-media { min-width: 0; }
.review-media audio, .review-media video { display: block; width: 100%; min-width: 0; max-height: 320px; border-radius: 5px; }
.review-media video { background: #18212e; }
.review-feedback-form { margin-top: 20px; border-top: 1px solid #e8edf4; padding-top: 20px; }
.review-textarea { height: auto; min-height: 120px; resize: vertical; font: inherit; font-size: 12px; line-height: 1.9; }
.review-textarea:focus-visible { outline: 3px solid #aab5ff; outline-offset: 3px; }
.review-textarea[aria-invalid='true'] { border-color: #cc7e7e; }
.review-textarea:disabled { background: #f8fafc; color: #7f8da1; }
.review-feedback-form > .review-note { margin-top: 8px; font-size: 11px; }
.review-evidence { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; margin: 15px 0; }
.review-evidence-item { width: min(160px, 100%); min-width: 0; }
.review-evidence-item .review-picture { height: 100px; }
.review-evidence-item .review-picture img { max-height: 100px; }
.review-evidence-item .subtle { overflow-wrap: anywhere; font-size: 10px; margin-top: 7px; line-height: 1.8; }
.review-evidence > .review-picture { width: min(150px, 100%); max-height: 130px; }
.review-file-input { display: block; max-width: 100%; width: 100%; min-width: 0; color: #72829a; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.review-file-input::file-selector-button { font: inherit; padding: 7px 11px; border: 1px solid #dbe3ee; border-radius: 5px; color: #627593; background: #f9fbff; margin-right: 10px; cursor: pointer; }
.review-feedback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.review-feedback-actions .btn { font-size: 12px; }
.review-repairs { display: grid; gap: 12px; margin-top: 25px; }
.review-repairs h4 { font-size: 13px; color: #596e8a; font-weight: 600; }
.review-repair { padding: 15px; border: 1px solid #e3e9f3; border-radius: 7px; }
.review-repair-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 13px; margin-bottom: 9px; }
.review-repair-heading strong { color: #647894; font-size: 12px; font-weight: 600; }
.review-repair-heading .subtle { font-size: 10px; }
.review-repair > .review-note { margin-top: 7px; font-size: 11px; }
.review-repair .btn { margin-top: 14px; font-size: 11px; white-space: normal; text-align: center; }
.review-changed { padding-left: 18px; margin: 8px 0; color: #687c98; font-size: 11px; line-height: 1.9; }
.review-changed li { overflow-wrap: anywhere; }
.review-feedback-history { padding: 15px; border-top: 1px solid #e8edf4; }
.review-feedback-history strong { color: #6a7c96; font-size: 12px; font-weight: 550; }
.review-feedback-history > .subtle { font-size: 10px; margin-top: 6px; }
.review-feedback-history > .review-note { margin-top: 7px; }
.review-revision-list { padding: 12px 15px 15px 32px; margin: 0; color: #8290a4; font-size: 11px; line-height: 1.9; border-top: 1px solid #e8edf4; }
.review-revision-list li { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .review-content { padding: 18px 16px; }
  .review-shot-summary { grid-template-columns: 57px minmax(0, 1fr) auto; gap: 9px; padding: 14px 12px; }
  .review-shot-body { padding: 16px 12px; }
  .review-shot-title strong { font-size: 12px; }
  .review-shot-title .subtle { font-size: 10px; }
  .review-script > div { grid-template-columns: 57px minmax(0, 1fr); gap: 9px; }
  .review-feedback-actions { flex-direction: column; }
  .review-feedback-actions .btn { width: 100%; }
  .review-repair { padding: 12px; }
}
.timeline { list-style: none; padding: 22px 26px 24px; margin: 0; }
.timeline li { display: flex; gap: 15px; position: relative; padding: 0 0 22px; }
.timeline li:not(:last-child)::before { content: ''; width: 1px; position: absolute; background: #e6ebf5; left: 4px; top: 14px; bottom: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { margin-top: 6px; width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid #b0bde7; border-radius: 50%; background: #fff; }
.timeline p { font-size: 12px; color: #61738e; }
.timeline .subtle { font-size: 10px; margin-top: 4px; display: inline-block; }
.detail-actions { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.detail-actions .muted { font-size: 11px; }
.users-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 23px; margin-top: 25px; margin-bottom: 24px; align-items: start; }
.user-create { padding: 25px; }
.user-create > .muted { font-size: 11px; margin: 8px 0 22px; line-height: 1.9; }
.user-form { display: flex; flex-direction: column; gap: 17px; }
.member-name { font-size: 12px; font-weight: 500; color: #495c77; }
.danger-text { color: #bd7272; }
.danger-text:hover { color: var(--red); }
.service-list { display: flex; flex-direction: column; gap: 15px; margin: 25px 0; }
.service-card { display: flex; align-items: center; justify-content: space-between; padding: 24px; gap: 25px; }
.service-description { display: flex; gap: 17px; align-items: center; }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #e8edf6; border-radius: 11px; color: #8d9ec2; background: #f9faff; }
.service-description h2 { font-size: 14px; }
.service-description .muted { margin-top: 6px; font-size: 11px; }

/* Generator definition: compact native disclosures, not execution progress cards. */
summary { cursor: pointer; touch-action: manipulation; }
summary:focus-visible { outline: 3px solid #aab5ff; outline-offset: 3px; border-radius: 5px; }
.services-heading { margin-bottom: 18px; }
.generator-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 15px 24px; padding: 19px 24px 16px; margin-bottom: 20px; }
.generator-selection { width: min(100%, 470px); min-width: 0; }
.generator-selection .field-label { font-size: 11px; margin-bottom: 8px; }
.generator-control-actions { display: flex; align-items: center; gap: 15px; flex: 0 0 auto; padding-bottom: 1px; }
.generator-control-actions .btn { font-size: 11px; min-height: 40px; }
.workflow-definition { display: flex; flex-direction: column; gap: 19px; }
.content > .notice:has(+ .workflow-definition) { margin-bottom: 18px; }
.generator-context { grid-column: 1 / -1; min-width: 0; border-top: 1px solid #edf0f6; padding-top: 13px; }
.definition-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 17px; color: #7c899c; font-size: 11px; font-variant-numeric: tabular-nums; }
.definition-meta .badge { font-size: 10px; }
.definition-meta .badge:last-child { margin-left: auto; }
.generator-guardrail { color: #8b98aa; font-size: 11px; line-height: 1.8; margin-top: 10px; }
.generator-explanation { margin-top: 5px; }
.generator-explanation > summary { width: fit-content; color: #7688a6; font-size: 11px; padding: 2px 0; }
.generator-explanation > div { padding-top: 9px; color: #7d8da4; font-size: 11px; line-height: 1.85; }
.generator-explanation p + p { margin-top: 7px; }
.flow-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.flow-toolbar h2 { font-size: 15px; }
.flow-toolbar .muted { font-size: 11px; margin-top: 4px; }
.flow-toolbar-actions { display: flex; gap: 19px; flex: 0 0 auto; }
.flow-toolbar-actions .text-button { font-size: 11px; }
.workflow-step-list { display: flex; flex-direction: column; gap: 10px; }
.workflow-step { scroll-margin-top: 20px; overflow: clip; }
.workflow-step-summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 17px 21px; min-height: 82px; }
.workflow-step-summary::-webkit-details-marker { display: none; }
.workflow-step-summary::marker { content: ''; }
.workflow-step-summary:hover { background: #fafbfe; }
.flow-step-number { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; color: #7e8db5; background: #f2f4fa; border-radius: 8px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.flow-step-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.flow-step-title strong { font-size: 13px; line-height: 1.7; font-weight: 600; color: #485972; overflow-wrap: anywhere; }
.flow-step-current { color: #8a97aa; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.workflow-step-summary > .badge { font-size: 10px; }
.workflow-step-summary > svg { color: #9aa6bd; transition: transform .15s; }
.workflow-step[open] > .workflow-step-summary { border-bottom: 1px solid #edf0f6; background: #fcfdff; }
.workflow-step[open] > .workflow-step-summary > svg { transform: rotate(90deg); }
.workflow-step-body { padding: 22px 25px 25px 68px; }
.step-description { color: #65758c; font-size: 12px; line-height: 1.9; white-space: pre-line; }
.step-io { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 19px; }
.workflow-step-body h3 { margin: 0; font-size: 11px; font-weight: 650; color: #4e5f78; line-height: 1.7; }
.step-bullet-list { padding: 0 0 0 16px; margin: 8px 0 0; color: #7a879b; font-size: 11px; line-height: 1.85; }
.step-bullet-list li { padding-left: 2px; margin-bottom: 5px; overflow-wrap: anywhere; }
.step-support { padding: 17px 0 19px; margin: 13px 0 0; display: flex; flex-direction: column; gap: 13px; border-top: 1px solid #edf0f6; }
.step-support > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 12px; align-items: start; }
.step-support dt { font-size: 11px; color: #8b97aa; padding-top: 3px; }
.step-support dd { margin: 0; min-width: 0; }
.step-tags, .step-dependencies { display: flex; flex-wrap: wrap; gap: 6px; }
.step-tag { font-size: 10px; color: #71819e; background: #f4f6fb; border: 1px solid #e8edf6; padding: 3px 8px; border-radius: 4px; overflow-wrap: anywhere; max-width: 100%; }
.step-support .muted { font-size: 11px; padding-top: 3px; }
.dependency-link { border: 0; padding: 3px 8px; border-radius: 4px; color: #6b7eb1; background: #f3f5fd; font-size: 10px; text-align: left; }
.dependency-link:hover { background: #e9edfc; color: var(--accent); }
.step-api { padding: 19px 20px; background: #f9fafd; border: 1px solid #e7ecf4; border-radius: 8px; }
.step-api-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-api-heading .badge { font-size: 9px; min-height: 23px; }
.api-capability { font-size: 10px; color: #8b97aa; margin-top: 9px; overflow-wrap: anywhere; }
.api-note { color: #7b889c; font-size: 11px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; margin-top: 8px; }
.api-current { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin: 15px 0 12px; padding-bottom: 11px; border-bottom: 1px solid #e8ecf4; font-size: 11px; }
.api-current > span { color: #8a97ac; }
.api-current > strong { color: #5e6e8a; font-weight: 550; overflow-wrap: anywhere; }
.api-empty { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px dashed #dce3ef; border-radius: 6px; color: #8a9cbe; background: #ffffffa8; }
.api-empty > svg { margin-top: 2px; }
.api-empty strong { font-size: 11px; color: #71819a; font-weight: 500; }
.api-empty p { color: #97a3b5; font-size: 10px; margin-top: 3px; line-height: 1.8; }
.api-registry { list-style: none; padding: 0; margin: 0; border: 1px solid #e4e9f3; border-radius: 7px; background: white; }
.api-registry-row { padding: 13px 15px; border-bottom: 1px solid #edf0f6; }
.api-registry-row:last-child { border-bottom: 0; }
.api-registry-description strong { font-size: 12px; color: #556883; font-weight: 600; }
.api-identity { display: block; font-size: 10px; color: #8795aa; overflow-wrap: anywhere; margin-top: 2px; }
.api-registry-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.api-registry-flags .badge { font-size: 9px; min-height: 21px; }
.api-reason, .api-unavailable { font-size: 10px; line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; }
.api-reason { color: #8491a5; }
.api-unavailable { color: #a07b44; }
.api-verified-at { display: block; font-size: 9px; color: #9aa6b9; margin-top: 6px; }
.api-selection-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px 12px; margin-top: 17px; }
.api-selection-form .field-label { font-size: 10px; margin-bottom: 7px; color: #7b89a0; }
.api-selection-form select { height: 39px; font-size: 11px; background-color: #fff; }
.api-selection-form select:disabled { background: #f1f3f8; color: #9ba5b5; cursor: not-allowed; }
.api-selection-form .btn { min-height: 39px; font-size: 11px; padding: 8px 14px; }
.api-selection-form button:disabled { cursor: not-allowed; }
.api-selection-field { min-width: 0; }
.api-selection-help { grid-column: 1 / -1; font-size: 10px; color: #95a0b2; line-height: 1.85; }
.api-read-only { color: #8e9aaf; font-size: 10px; margin-top: 13px; }
.workflow-history > summary { display: flex; gap: 20px; justify-content: space-between; padding: 19px 23px; color: #657791; font-size: 12px; }
.workflow-history summary .subtle { font-size: 10px; }
.workflow-releases { padding: 0 25px 23px; }
.workflow-release { padding-top: 18px; border-top: 1px solid #edf0f6; margin-top: 15px; }
.workflow-release:first-child { margin-top: 0; }
.workflow-release h3 { margin: 0; display: flex; align-items: baseline; gap: 14px; color: #627394; font-size: 12px; font-weight: 600; }
.workflow-release h3 .subtle { font-size: 10px; font-weight: 400; }
.workflow-release > p, .workflow-release ul { color: #8693a7; font-size: 11px; line-height: 1.9; margin-top: 8px; }
.workflow-release ul { padding-left: 18px; margin-bottom: 0; }
.task-snapshot { margin-top: 23px; }
.snapshot-body { padding: 21px 26px; }
.snapshot-meta { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 0; }
.snapshot-meta dt { color: #929fb2; font-size: 10px; }
.snapshot-meta dd { margin: 5px 0 0; color: #5d718e; font-size: 12px; }
.snapshot-note { font-size: 10px; line-height: 1.85; color: #97a3b6; margin-top: 16px; }
.snapshot-selections { margin-top: 20px; border-top: 1px solid #edf0f6; padding-top: 13px; }
.snapshot-selections > summary { font-size: 11px; color: #7385a9; padding: 3px 0; }
.snapshot-api-list { list-style: none; margin: 10px 0 0; padding: 0; }
.snapshot-api-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 8px 0; border-bottom: 1px solid #f0f3f7; font-size: 10px; }
.snapshot-api-list li:last-child { border: 0; }
.snapshot-api-list strong { color: #79899f; font-weight: 500; overflow-wrap: anywhere; }
.snapshot-api-list li > span { color: #8f9bb0; overflow-wrap: anywhere; }

@media (min-width: 1650px) {
  .content { padding-top: 44px; }
  .create-grid { grid-template-columns: minmax(0, 1fr) 325px; gap: 28px; }
  .output-card { padding: 28px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 195px; padding-left: 12px; padding-right: 12px; }
  .main-frame { margin-left: 195px; }
  .topbar { padding: 0 26px; }
  .content { padding: 28px 26px; }
  .create-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
  .task-form { padding: 22px; }
  .panel-heading { padding: 21px 22px; }
  .output-card { padding: 22px 18px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { margin-left: auto; }
  .count-note { display: none; }
  .count-row { display: block; }
  .count-row .input { max-width: 132px; }
  .count-row .field-help { width: auto; max-width: none; }
  .users-grid { grid-template-columns: minmax(0, 1fr) 275px; }
  .user-create { padding: 22px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
  .detail-output { padding: 22px; }
  .data-table td, .data-table th { padding-left: 17px; padding-right: 17px; }
}
@media (max-width: 950px) {
  .auth-layout { grid-template-columns: 38% 1fr; }
  .auth-intro { padding: 31px 30px 24px; }
  .auth-brand { font-size: 11px; }
  .auth-brand .brand-mark { width: 31px; height: 31px; font-size: 25px; }
  .auth-story h1 { font-size: 32px; }
  .auth-story .eyebrow { font-size: 8px; }
  .auth-description { font-size: 11px; }
  .auth-flow-row { gap: 10px; }
  .auth-flow-row > svg { display: none; }
  .create-grid, .detail-grid, .users-grid { grid-template-columns: minmax(0, 1fr); }
  .output-aside { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: start; }
  .output-card .output-icon { float: left; width: 36px; height: 36px; margin: 0 12px 12px 0; border-radius: 9px; }
  .output-card > h2 { padding-top: 4px; }
  .output-card > .muted { clear: both; }
  .output-list { gap: 10px; }
  .output-tree { display: flex; }
  .workflow-note { margin-top: 15px; }
  .detail-output { display: block; }
  .detail-output .btn { width: auto; min-width: 200px; }
  .detail-output .output-icon { float: left; margin: 0 18px 20px 0; }
  .download-unavailable { clear: both; }
  .user-create .user-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .user-form > .form-error, .user-form > button { grid-column: 1 / -1; }
  .generator-controls { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .generator-selection { width: 100%; }
  .generator-control-actions { justify-content: space-between; }
  .workflow-step-body { padding-left: 25px; }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; padding: 15px 18px 0; gap: 13px; }
  .brand { padding: 0; }
  .brand .brand-mark { width: 30px; height: 30px; font-size: 26px; border-radius: 8px; }
  .brand-text { flex-direction: row; gap: 8px; align-items: baseline; }
  .brand-text strong { font-size: 20px; }
  .brand-text > span { font-size: 10px; letter-spacing: .4px; }
  .workspace-label, .nav-label, .sidebar-preview { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 2px; margin-left: -6px; margin-right: -6px; padding: 0 0 9px; }
  .nav-category { flex: 1 0 100%; }
  .nav-children { margin-left: 22px; }
  .nav-child { white-space: normal; }
  .nav-item { gap: 6px; padding: 9px 10px; min-height: 36px; font-size: 11px; white-space: nowrap; }
  .nav-item svg { width: 15px; height: 15px; }
  .sidebar-footer { position: absolute; right: 18px; top: 12px; padding: 0; }
  .account { padding: 0; border: 0; gap: 6px; }
  .account-text { display: none; }
  .account .avatar { width: 27px; height: 27px; border-radius: 8px; font-size: 10px; }
  .logout-button { width: 25px; }
  .main-frame { margin-left: 0; }
  .topbar { min-height: 49px; height: auto; gap: 12px; padding: 10px 20px; }
  .breadcrumb { flex-wrap: wrap; gap: 5px 8px; font-size: 10px; min-width: 0; }
  .breadcrumb-generator { flex-basis: 100%; }
  .topbar > .badge { flex-shrink: 0; }
  .task-filters { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 18px; }
  .task-filter-summary { min-height: 30px; }
  .content { padding: 25px 18px; }
  h1 { font-size: 23px; letter-spacing: -.5px; }
  .page-description { font-size: 11px; }
  .workflow-meta { flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
  .create-grid { gap: 19px; }
  .panel-heading { padding: 20px; }
  .task-form { padding: 21px 20px; }
  .count-row { display: grid; grid-template-columns: 110px 1fr; gap: 15px; }
  .count-note { display: flex; }
  .count-note p { font-size: 9px; }
  .count-note svg { display: none; }
  .count-row .field-help { width: calc(100vw - 84px); }
  .form-actions { display: flex; flex-direction: column; align-items: stretch; }
  .form-footnote { max-width: none; font-size: 9px; }
  .form-actions .btn { width: 100%; margin: 0; }
  .output-aside { display: block; }
  .output-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
  .output-list li { font-size: 9px; }
  .output-card { padding: 21px 20px 17px; }
  .output-card .output-list { padding-bottom: 0; }
  .workflow-note { margin: 13px 4px 0; }
  .workflow-note p { font-size: 9px; }
  .data-table th, .data-table td { padding-left: 15px; padding-right: 15px; }
  .task-name { max-width: 190px; }
  .main-footer { padding: 18px; font-size: 8px; }
  .recent-empty { padding: 18px; }
  .detail-heading { align-items: flex-start; gap: 16px; }
  .detail-heading > .badge { margin-top: 25px; }
  .detail-item { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; font-size: 11px; }
  .detail-list { padding: 21px; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .btn { align-self: flex-end; }
  .detail-output .output-icon { float: none; margin: 0 0 15px; }
  .timeline { padding: 21px; }
  .timeline p { font-size: 11px; }
  .service-card { padding: 19px; align-items: flex-start; }
  .service-description { gap: 12px; }
  .service-description .muted { font-size: 10px; }
  .service-icon { width: 34px; height: 34px; border-radius: 9px; }
  .service-card > .badge { font-size: 9px; }
  .services-heading { margin-bottom: 16px; }
  .generator-controls { padding: 18px; margin-bottom: 17px; }
  .generator-control-actions { gap: 10px; }
  .generator-control-actions > .badge { font-size: 9px; }
  .workflow-definition { gap: 16px; }
  .definition-meta { gap: 7px 13px; font-size: 10px; }
  .definition-meta .badge:last-child { margin-left: 0; }
  .flow-toolbar { align-items: flex-start; gap: 12px; }
  .flow-toolbar .muted { font-size: 10px; }
  .flow-toolbar-actions { gap: 12px; }
  .flow-toolbar-actions .text-button { font-size: 10px; white-space: nowrap; }
  .workflow-step-summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; gap: 6px 11px; padding: 15px; min-height: 0; }
  .flow-step-number { grid-column: 1; grid-row: 1 / 3; width: 26px; height: 29px; align-self: start; font-size: 10px; }
  .flow-step-title { grid-column: 2; }
  .flow-step-title strong { font-size: 12px; }
  .flow-step-current { font-size: 9px; }
  .workflow-step-summary > .badge { grid-column: 2; justify-self: start; font-size: 9px; min-height: 21px; }
  .workflow-step-summary > svg { grid-column: 3; grid-row: 1 / 3; width: 14px; }
  .workflow-step-body { padding: 18px 16px; }
  .step-description { font-size: 11px; }
  .step-io { grid-template-columns: 1fr; gap: 15px; margin-top: 16px; }
  .step-support > div { grid-template-columns: 56px minmax(0, 1fr); gap: 9px; }
  .step-api { padding: 15px 13px; }
  .step-api-heading { align-items: flex-start; gap: 8px; }
  .api-note { font-size: 10px; }
  .api-current { font-size: 10px; }
  .api-empty { padding: 11px; gap: 9px; }
  .api-empty svg { width: 16px; }
  .api-selection-form { grid-template-columns: minmax(0, 1fr); }
  .api-selection-form .btn { justify-self: end; }
  .workflow-history > summary { padding: 17px 19px; font-size: 11px; gap: 10px; }
  .workflow-releases { padding: 0 19px 19px; }
  .workflow-release > p, .workflow-release ul { font-size: 10px; }
  .snapshot-body { padding: 20px 21px; }
  .snapshot-meta { gap: 15px 25px; }
  .snapshot-api-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .user-create .user-form { display: flex; }
  .auth-layout { display: block; }
  .auth-intro { padding: 22px 26px; }
  .auth-story, .auth-footnote { display: none; }
  .auth-brand { font-size: 13px; }
  .auth-main { min-height: calc(100vh - 75px); padding: 35px 27px; }
  .auth-card h2 { font-size: 24px; }
  .auth-card > .badge { margin-bottom: 18px; }
  .auth-subtitle { margin-bottom: 26px; }
  .auth-note { font-size: 10px; }
  .toast-region { bottom: 15px; }
  .toast { font-size: 11px; padding: 11px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
/* Drive delivery uses the existing panels; media remain lazy-loaded per shot. */
.drive-storage { margin-bottom: 24px; padding: 24px 26px; }
.drive-storage h2 { margin-bottom: 10px; font-size: 16px; }
.drive-storage p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.drive-storage p + p { margin-top: 6px; }
.drive-storage p, .drive-binding, .drive-file-row { overflow-wrap: anywhere; }
.drive-binding { min-width: 200px; max-width: 360px; }
.drive-binding .user-form { margin-top: 16px; }
.drive-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.drive-files { text-align: left; width: 100%; margin-top: 20px; }
.drive-file-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border, #e2e7ef); }
.drive-delivery-note { font-size: 13px; }
@media (max-width: 640px) { .drive-storage { padding: 19px 20px; } }
.text-job-body { padding: 20px 26px; display: grid; gap: 10px; }
.text-job-body p { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.text-job-body .btn { justify-self: start; }
@media (max-width: 640px) { .text-job-body { padding: 18px 20px; } }
