:root {
  color-scheme: light;
  --ink: #193546;
  --ink-soft: #4e6572;
  --muted: #748792;
  --navy: #102d42;
  --navy-2: #173c53;
  --teal: #10877d;
  --teal-bright: #70dbc7;
  --line: #dfe8ec;
  --canvas: #f1f5f7;
  --surface: #fff;
  --control-height: 44px;
  --control-radius: 10px;
  --control-border: #cfdee4;
  --focus-ring: 0 0 0 3px #37bba630;
  --success: #18734f;
  --warning: #94610c;
  --danger: #b53e43;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 14px; }
header {
  position: sticky; top: 0; z-index: 15; min-height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; padding: 0 max(24px, calc((100vw - 1450px) / 2));
  background: var(--navy); color: white; box-shadow: 0 5px 22px #102d4224;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark, .sidebar-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: #1f736f; color: #aaf2e4; font-size: 17px; font-weight: 800; }
.brand strong { color: #8de0d0; font-size: 12px; letter-spacing: .16em; white-space: nowrap; }
.brand > span:last-child { color: #d6e4e9; font-size: 13px; white-space: nowrap; }
header nav { display: flex; align-items: center; gap: 8px; }
header .header-button, .mobile-nav-toggle { padding: 8px 12px; border: 1px solid #ffffff50; background: transparent; color: #e8f3f6; font-size: 12px; }
header .header-button:hover, .mobile-nav-toggle:hover { background: #ffffff12; }
.mobile-nav-toggle { display: none; }
main { width: min(1530px, 100%); margin: 0 auto; padding: 34px 36px 70px; }
button { display: inline-flex; min-height: var(--control-height); align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--control-radius); padding: 0 17px; background: var(--teal); color: white; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease; }
button:hover { background: #0d706a; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .58; }
button.secondary { border-color: #cfdee4; background: #f5f8f9; color: #315666; }
button.secondary:hover { border-color: #b8d0d5; background: #eaf2f3; }
button.danger { background: var(--danger); }
button.danger:hover { background: #982f36; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
button:disabled:focus-visible { box-shadow: none; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-width: 0; min-height: var(--control-height); border: 1px solid var(--control-border); border-radius: var(--control-radius); padding: 9px 13px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.4; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: #aebfc7; }
input:not([type="checkbox"]):not([type="radio"]):focus-visible, select:focus-visible, textarea:focus-visible { border-color: #158d82; outline: none; box-shadow: var(--focus-ring); }
input::placeholder { color: #99a8b0; }
input:disabled, select:disabled, textarea:disabled { border-color: #e0e7ea; background: #f3f6f7; color: #82929a; cursor: not-allowed; }
input[readonly] { background: #f5f8f9; color: #526a76; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c84b51; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--teal); cursor: pointer; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: var(--focus-ring); }
input::placeholder, textarea::placeholder { color: #91a2aa; opacity: 1; }
textarea { min-height: 110px; padding-top: 11px; resize: vertical; }
select {
  height: var(--control-height);
  min-height: var(--control-height);
  appearance: none;
  -webkit-appearance: none;
  padding: 0 38px 0 13px;
  line-height: normal;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23536a76' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  cursor: pointer;
}
input[type="search"] { appearance: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="number"]:focus, input[type="search"]:focus { outline: none; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #c84b51; }
label { display: grid; gap: 7px; color: #536a76; font-size: 13px; font-weight: 650; }
form { display: grid; gap: 15px; }
#login.panel { width: min(470px, 100%); margin: 0; padding: 38px; border-color: #e2ebee; border-radius: 18px; box-shadow: 0 24px 70px #16374a12; }
body:has(#login:not([hidden])) { background-color: var(--canvas); background-image: radial-gradient(ellipse at 50% 42%, #dcefeb 0, #f1f5f7 55%); }
body:has(#login:not([hidden])) main { display: grid; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); place-items: center; padding: 34px 24px 54px; }
.auth-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; }
.auth-mark { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border: 1px solid #cce7e1; border-radius: 14px; background: #e9f6f2; color: #12877d; font-size: 23px; font-weight: 850; }
.auth-eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
#login h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
#login form { gap: 18px; }
#login form > button { min-height: 48px; margin-top: 3px; }
.auth-switch { display: inline-flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 9px; border: 0; padding: 8px 10px; background: transparent; color: #147e75; font-size: 13px; font-weight: 700; }
.auth-switch:hover { background: #edf7f5; color: #0c6c64; }
.auth-switch:focus-visible { outline: none; box-shadow: var(--focus-ring); }
#register-form.invite { margin-top: 10px; padding-top: 19px; }
#login-error:empty { display: none; }
body:has(#login:not([hidden])) #login-error:not(:empty) { margin-top: 14px; }
.panel { min-width: 0; margin-bottom: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 8px 26px #16374a0b; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #163246; font-size: 32px; letter-spacing: -.035em; line-height: 1.15; }
h2 { margin-bottom: 0; color: #213d4e; font-size: 20px; letter-spacing: -.018em; }
h3 { margin-bottom: 7px; color: #264456; font-size: 16px; }
h4 { margin: 18px 0 8px; color: #60747e; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
p { line-height: 1.6; }
.muted { color: #647985; font-size: 13px; }
#login > .muted { margin: 12px 0 22px; font-size: 13px; }
.invite { margin-top: 20px; padding-top: 19px; border-top: 1px solid #e7eef0; }
.error { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 12px; }
.workspace-shell { position: relative; display: grid; grid-template-columns: 246px minmax(0, 1fr); align-items: start; gap: 30px; }
.sidebar { position: sticky; top: 91px; display: flex; min-height: min(690px, calc(100vh - 118px)); flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--navy); color: #edf5f7; box-shadow: 0 12px 28px #102d421a; }
.sidebar-identity { display: flex; align-items: center; gap: 11px; padding: 20px 18px 17px; border-bottom: 1px solid #ffffff18; }
.sidebar-identity > div { display: grid; gap: 3px; }
.sidebar-identity b { font-size: 13px; }
.sidebar-identity small { color: #9db4be; font-size: 11px; }
.sidebar-mark { background: #1b625f; }
.side-nav { display: grid; gap: 5px; padding: 18px 10px; }
.nav-caption { margin: 0 9px 5px; color: #81a0ad; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; border: 0; border-radius: 8px; padding: 8px 10px; background: transparent; color: #d4e1e6; text-align: left; font-size: 14px; font-weight: 600; }
.nav-item:hover { background: #ffffff0d; color: white; }
.nav-item.active { background: #1d4a5d; color: white; }
.nav-item.active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 3px; background: var(--teal-bright); content: ""; }
.nav-icon { display: grid; width: 22px; place-items: center; color: #8fdccc; }
.nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: auto; border-radius: 99px; background: #c37f2a; color: white; font-size: 10px; font-weight: 800; }
.sidebar-foot { display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 5px 8px; margin: auto 14px 15px; padding: 13px 10px; border-top: 1px solid #ffffff18; color: #c6d7de; font-size: 11px; }
.sidebar-foot small { grid-column: 2; color: #89a5b0; font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #64d6ac; box-shadow: 0 0 0 4px #64d6ac22; }
.console-main { min-width: 0; }
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 94px; margin: 0 0 16px; }
.welcome .eyebrow { margin-bottom: 6px; }
.welcome h1 { font-size: 31px; }
.welcome #view-description { margin: 0; }
.welcome-meta { display: flex; align-items: center; gap: 10px; color: #607681; font-size: 13px; }
.badge { display: inline-flex; align-items: center; min-height: 27px; border-radius: 30px; padding: 5px 11px; background: #e3f3ef; color: #117b70; font-size: 11px; font-weight: 750; }
.notice { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #cae8dc; border-radius: 9px; background: #eaf7f0; color: #176846; font-size: 12px; overflow-wrap: anywhere; }
.notice.warning { border-color: #f0ddb5; background: #fff7e8; color: #835a17; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.metric { position: relative; display: grid; min-height: 100px; align-content: space-between; gap: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 17px 18px; background: white; }
.metric::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #9eb7c2; content: ""; }
.metric.submitted::before, .metric.pending::before { background: #d7953c; }
.metric.running::before { background: #158c82; }
.metric.ready::before { background: #5689ac; }
.metric.valid::before, .metric.complete::before { background: #38a978; }
.metric span { color: #647985; font-size: 13px; }
.metric strong { color: #193a4d; font-size: 29px; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; }
.admin-overview-grid .panel { margin-bottom: 16px; }
.section-heading, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading { margin: 4px 0 17px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p, .section-title p.muted { margin: 5px 0 0; }
.section-title { margin-bottom: 15px; }
.section-title > div { min-width: 0; }
.cards { display: grid; gap: 10px; margin-top: 14px; }
.card { min-width: 0; border: 1px solid #e1e9ec; border-radius: 10px; padding: 15px; background: white; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card p { margin: 5px 0; color: #647985; font-size: 13px; overflow-wrap: anywhere; }
.card code, code { color: #177c75; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; overflow-wrap: anywhere; }
.card .settings { margin-top: 10px; }
.status { display: inline-flex; flex: none; align-items: center; border-radius: 20px; padding: 5px 9px; background: #edf2f4; color: #5d7079; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status.ready, .status.complete, .status.succeeded, .status.approved { background: #e5f5ec; color: #19734f; }
.status.rejected, .status.failed, .status.build_failed { background: #fbeaec; color: #ad3c43; }
.status.submitted, .status.awaiting_connector, .status.connecting, .status.cancel_requested { background: #fff4df; color: #875e17; }
.status.running { background: #e4f3f2; color: #11786f; }
.actions, .form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.actions button { min-height: 38px; padding: 0 13px; font-size: 12px; }
.form-actions { justify-content: space-between; margin-top: 3px; padding-top: 13px; border-top: 1px solid #e9eef0; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toolbar { display: grid; grid-template-columns: minmax(170px, .35fr) minmax(230px, 1fr); align-items: end; gap: 12px; margin: 15px 0 6px; }
.audit-search { max-width: 480px; margin: 12px 0; }
.inline-check { display: flex; align-items: center; gap: 9px; }
.inline-check input, .option-field input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--teal); }
.option-tools { display: grid; grid-template-columns: minmax(230px, 1fr) auto; align-items: end; gap: 10px 16px; margin: 17px 0; }
.option-tools > p { grid-column: 1 / -1; margin: 0; }
.option-groups { display: grid; gap: 9px; margin: 14px 0; }
.option-group { overflow: hidden; padding: 0; border: 1px solid #e0e9ec; border-radius: 9px; background: #fff; }
.option-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; color: #27485a; cursor: pointer; font-size: 12px; font-weight: 750; }
.option-group > summary span { color: #81919a; font-size: 10px; font-weight: 500; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 2px 12px 13px; }
.option-field { display: grid; align-content: start; min-width: 0; gap: 8px; padding: 10px; border: 1px solid #edf1f2; border-radius: 8px; background: #fafcfc; }
.option-field > span { display: grid; gap: 3px; color: #334f5c; font-size: 11px; }
.option-field code { color: #89979e; font-size: 9px; font-weight: 400; }
.option-field:has(input[type="checkbox"]) { grid-template-columns: 1fr auto; align-items: center; }
.option-field:has(input[type="checkbox"]) > span { grid-column: 1; grid-row: 1; }
.option-field:has(input[type="checkbox"]) > input { grid-column: 2; grid-row: 1; }
.option-field:has(input[type="checkbox"]) > .muted, .option-field:has(input[type="checkbox"]) > .field-warning { grid-column: 1 / -1; }
.field-warning { color: #94610c; font-size: 10px; line-height: 1.5; }
.advanced-option { background: #f6f8f9; }
.setting-details { margin-top: 9px; border: 0; }
.setting-details summary { color: #60747d; font-size: 10px; cursor: pointer; }
.settings { display: flex; gap: 8px; flex-wrap: wrap; }
.setting { display: grid; gap: 4px; min-width: 100px; border-radius: 7px; padding: 8px 10px; background: #f3f7f8; color: #385362; font-size: 10px; }
.setting b { color: #82929a; font-size: 9px; }
.limits { margin-top: 9px; }
.reason { border-left: 3px solid #d9a34c; padding: 7px 10px; background: #fff8eb; color: #785820 !important; }
.next-step-panel { border-left: 3px solid #23a28e; }
.next-step-content { min-height: 67px; }
.next-step { display: flex; align-items: center; gap: 14px; }
.next-step > div { min-width: 0; flex: 1; }
.next-step b { color: #294958; font-size: 13px; }
.next-step p { margin: 4px 0; }
.next-step small { color: #82929a; font-size: 10px; }
.next-symbol { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border: 1px solid #cce9df; border-radius: 11px; background: #eef8f4; color: #188877; font-size: 18px; font-weight: 800; }
.recent-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; border: 0; border-top: 1px solid #edf1f2; border-radius: 0; padding: 8px 2px; background: white; color: var(--ink); text-align: left; }
.recent-row:hover { background: #f8fbfb; }
.recent-profile { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 9px; background: #edf5f5; color: #17877d; font-size: 12px; font-weight: 800; }
.recent-info { display: grid; min-width: 0; flex: 1; gap: 4px; }
.recent-info b { font-size: 11px; }
.recent-info small { color: #809099; font-size: 10px; overflow-wrap: anywhere; }
.recent-chevron { color: #91a1a8; font-size: 19px; }
.attention-row, .live-job-row { display: flex; align-items: center; gap: 11px; min-height: 55px; border-top: 1px solid #edf1f2; padding: 8px 0; }
.attention-mark { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 50%; background: #fff3df; color: #a56a15; font-size: 12px; font-weight: 800; }
.attention-info, .live-job-row > div { display: grid; min-width: 0; flex: 1; gap: 4px; }
.attention-info b, .live-job-row b { color: #314d5b; font-size: 11px; }
.attention-info small, .live-job-row small { color: #84939a; font-size: 9px; overflow-wrap: anywhere; }
.attention-row button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.live-indicator { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #daa346; }
.live-indicator.running { background: #16a28f; box-shadow: 0 0 0 4px #16a28f20; }
.live-indicator.cancel_requested { background: #d18a39; }
.live-job-row .status { font-size: 9px; }
.overview-note { padding: 14px 18px; background: #f8fbfb; box-shadow: none; }
.overview-note > div { display: flex; align-items: flex-start; gap: 12px; }
.overview-note b { color: #385666; font-size: 11px; }
.overview-note p { margin: 3px 0 0; }
.admin-overview-grid .section-title button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.compact-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.compact-card > div { display: grid; min-width: 0; gap: 4px; }
.compact-card b { font-size: 12px; }
.compact-card span, .compact-card small { color: #7c8e97; font-size: 10px; overflow-wrap: anywhere; }
.compact-card button { min-height: 36px; padding: 0 11px; font-size: 11px; }
.audit { display: grid; margin-top: 10px; }
.audit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid #eaf0f1; padding: 11px 3px; color: #526a76; font-size: 11px; }
.audit-row > span { display: grid; gap: 4px; }
.audit-row code { color: #197d74; font-size: 10px; }
.audit-row small, .audit-row time { color: #84939a; font-size: 10px; }
.online-jobs { margin-top: 15px; padding: 14px; border: 1px solid #dcebe9; border-radius: 9px; background: #f8fbfb; }
.online-jobs h4 { margin-top: 0; }
.online-jobs .actions select { width: min(240px, 100%); }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e5eeee; padding: 9px 0; color: #52646d; font-size: 10px; }
.task-row button { flex: none; min-height: 36px; padding: 0 11px; font-size: 11px; }
.connector-code .notice { display: grid; gap: 9px; margin: 8px 0; }
.connector-code input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.connector-code p { margin: 2px 0; }
.modal { width: min(560px, calc(100% - 24px)); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 13px; padding: 24px; box-shadow: 0 25px 85px #0c263b40; }
.modal::backdrop { background: #0c263b82; backdrop-filter: blur(3px); }
.modal h2 { margin-bottom: 8px; }
.modal .actions { justify-content: flex-end; }
.approval-modal { width: min(1040px, calc(100% - 28px)); max-height: 92vh; }
.approval-options { max-height: 46vh; overflow: auto; padding-right: 4px; }
.approval-modal .actions { position: sticky; bottom: -25px; z-index: 1; background: white; padding: 12px 0 2px; }
.account-panel { max-width: 700px; }
.account-panel .muted { max-width: 580px; margin: 12px 0 18px; }

@media (max-width: 1050px) {
  main { padding-right: 20px; padding-left: 20px; }
  .workspace-shell { grid-template-columns: 205px minmax(0, 1fr); gap: 18px; }
  .admin-overview-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  header { min-height: 62px; padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand strong { font-size: 10px; letter-spacing: .12em; }
  .brand > span:last-child { display: none; }
  header nav { gap: 5px; }
  header .header-button { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .mobile-nav-toggle:not([hidden]) { display: inline-flex; min-height: 36px; align-items: center; margin-left: auto; padding: 0 11px; font-size: 11px; }
  main { padding: 19px 14px 44px; }
  body:has(#login:not([hidden])) main { min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); padding: 24px 14px 34px; }
  #login.panel { width: min(470px, 100%); padding: 28px 24px; }
  .auth-heading { gap: 12px; margin-bottom: 23px; }
  .auth-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
  #login h1 { font-size: 23px; }
  .workspace-shell { display: block; }
  .sidebar { display: none; }
  .sidebar.open { position: absolute; top: 0; left: 0; z-index: 12; display: flex; width: min(290px, calc(100vw - 28px)); min-height: 0; max-height: calc(100vh - 90px); overflow-y: auto; box-shadow: 0 20px 50px #102d4240; }
  .sidebar.open .sidebar-foot { margin-top: 20px; }
  .welcome { min-height: 82px; align-items: flex-start; margin-bottom: 13px; }
  .welcome h1 { font-size: 22px; }
  .welcome-meta { align-items: flex-end; flex-direction: column; gap: 5px; font-size: 10px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { min-height: 77px; padding: 12px; }
  .metric strong { font-size: 22px; }
  .panel { margin-bottom: 12px; padding: 16px; }
  .section-title, .section-heading { align-items: flex-start; }
  .section-title { gap: 10px; }
  .section-title > button { flex: none; }
  .section-heading { flex-wrap: wrap; }
  .form-grid, .compact-grid, .option-grid { grid-template-columns: 1fr; }
  .toolbar, .option-tools { grid-template-columns: 1fr; }
  .option-tools > p { grid-column: auto; }
  .inline-check { align-items: flex-start; white-space: normal; }
  .option-group > summary { align-items: flex-start; }
  .option-group > summary span { text-align: right; }
  .next-step { align-items: flex-start; flex-wrap: wrap; }
  .next-step > div { flex-basis: calc(100% - 58px); }
  .next-step > button { margin-left: 52px; }
  .attention-row { flex-wrap: wrap; }
  .attention-info { flex-basis: calc(100% - 48px); }
  .attention-row button { margin-left: 38px; }
  .card-head { gap: 9px; }
  .task-row { align-items: flex-start; flex-direction: column; }
  .online-jobs .actions { align-items: stretch; flex-direction: column; }
  .online-jobs .actions select { width: 100%; }
  .audit-row { grid-template-columns: 1fr; gap: 5px; }
  .audit-row time { justify-self: start; }
  .recent-row { gap: 8px; }
  .recent-row .status { font-size: 9px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; }
  .section-title > button, .actions button, .attention-row button, .compact-card button, .task-row button { min-height: 40px; }
  .approval-options { max-height: 55vh; }
  .approval-modal { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
