:root {
  --accent:#24418f;
  --brand-secondary:#f58220;
  --on-accent:#fff;
  --orange-tint:color-mix(in srgb,var(--brand-secondary) 14%,white);
  --ink:#142546;
  --muted:#52617a;
  --line:#dfe5ee;
  --paper:#f3f5f8;
  --navy:#132752;
  --white:#fff;
  --sans:"Inter", "Avenir Next", system-ui, sans-serif;
  --serif:var(--sans);
  --tint:color-mix(in srgb, var(--accent) 9%, #fff);
  --shadow:0 2px 5px #1c3a7205, 0 12px 22px -19px #152e5a52;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  color-scheme:light;
}
* {box-sizing:border-box}
body {margin:0;min-width:300px}
a {color:inherit;text-decoration:none}
button,input,textarea,select {font:inherit}
button,a,input,textarea,select,summary {-webkit-tap-highlight-color:transparent}
:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
button,summary {cursor:pointer}
button:disabled {opacity:.55;cursor:progress}
h1,h2,h3,p {margin:0}
h1 {font-weight:750;letter-spacing:-.045em;font-size:clamp(2rem,3.25vw,3.1rem);line-height:1.06}
h2 {font-size:1.2rem;letter-spacing:-.022em}
h3 {font-size:1.04rem}
p {line-height:1.58;color:var(--muted)}
small {font-size:.8rem;color:var(--muted)}
[hidden] {display:none!important}
.shell {display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100dvh}
.sidebar {min-height:100dvh;height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;background:linear-gradient(160deg,#24418f 0%,#1c3676 47%,var(--navy) 100%);color:#eef4ff;padding:27px 14px 15px;z-index:3}
.brand {display:flex;flex-direction:column;align-items:flex-start;gap:11px;font-weight:680;font-size:.9rem;margin:0 11px;padding:0 2px 20px;min-width:0;overflow-wrap:anywhere;border-bottom:1px solid #ffffff3a}
.brand-logo {display:block;width:100%;height:auto;object-fit:contain}
.brand .brand-logo {width:min(100%,154px)}
.brand:focus-visible,.sidebar button:focus-visible,.sidebar .nav-link:focus-visible,.sidebar .account:focus-visible {outline-color:white}
.sidebar nav {margin-top:4px;overflow:auto;min-height:0;flex:1}
.sidebar nav p {font-size:.7rem;color:#b2c2e4;margin:20px 12px 9px;text-transform:uppercase;letter-spacing:.1em;font-weight:680}
.nav-link {position:relative;display:flex;gap:11px;align-items:center;padding:10px 11px;border-radius:8px;color:#deebff;margin-bottom:3px;min-height:43px;font-size:.9rem;font-weight:550}
.nav-link svg {color:#b8cbed;flex:none}
.nav-link:hover,.nav-link.active {background:#2c4b8c;color:white}
.nav-link.active svg {color:#edf5ff}
.side-footer {padding:13px 4px 0;border-top:1px solid #526da0;display:flex;justify-content:space-between;align-items:center;gap:6px}
.account {display:flex;align-items:center;gap:9px;min-width:0}
.account span:last-child {min-width:0}
.account b,.account small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account small {color:#c1d2f0;margin-top:2px}
.avatar {width:35px;height:35px;display:grid;place-items:center;background:#e6efff;color:#24418f;font-weight:750;border-radius:50%;flex:none;font-size:.78rem}
.main {min-width:0}
.topbar {height:68px;border-bottom:1px solid var(--line);background:#fff;display:flex;gap:14px;align-items:center;padding:0 clamp(18px,3.4vw,46px);color:var(--muted);font-size:.86rem}
.slash {padding:0 7px;color:#8b968b}
.top-account {margin-left:auto;font-weight:650;color:#485349}
.content {max-width:1560px;margin:auto;padding:33px clamp(18px,3.4vw,46px) 58px}
.page-head {display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:25px}
.page-head p {margin-top:9px;font-size:1rem}
.page-actions,.button-row,.form-actions>div {display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.button {border:1px solid #dfe1ee;background:#fff;border-radius:9px;color:var(--ink);padding:10px 14px;min-height:42px;font-size:.875rem;font-weight:680;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;line-height:1.2}
.button:hover {background:#f3f4fa}
.button svg {width:16px;height:16px}
.button.primary {background:var(--accent);border-color:transparent;color:var(--on-accent);box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 18%,transparent)}
.button.primary:hover {box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 35%,white),0 6px 14px color-mix(in srgb,var(--accent) 25%,transparent)}
.button.small {padding:6px 10px;min-height:32px;font-size:.85rem}
.button.subtle {background:transparent;border-color:transparent;color:#555b74}
.button.subtle:hover {background:#eff0f8}
.button.danger {color:#aa382c}
.icon-button {display:inline-grid;place-items:center;padding:4px;min-width:33px;min-height:33px;border:0;border-radius:7px;background:none;color:inherit}
.icon-button:hover {background:#b9c3b435}
.mobile-toggle {display:none}
.announcement,.warning,.error {padding:12px 15px;border-radius:8px;margin:0 0 17px;border:1px solid #eee1b2;background:#fcf5db;color:#684d10}
.announcement {background:var(--tint);border-color:#d3dff5;color:var(--ink);border-left:3px solid var(--brand-secondary)}
.error,.error-toast {background:#fcedea;border-color:#efc6bf;color:#8c301f}
.card {background:white;border:1px solid var(--line);border-radius:15px;min-width:0;box-shadow:var(--shadow)}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.stat {display:grid;gap:5px;padding:17px 19px;min-height:137px}
.stat-icon,.empty-icon {height:34px;width:34px;border-radius:9px;display:grid;place-items:center;background:#edf1e8;color:#45614c;margin-bottom:7px}
.stat:nth-child(2) .stat-icon {background:#f7ede2;color:#8b5c39}
.stat:nth-child(3) .stat-icon {background:#e8f0e9;color:#446452}
.stat:nth-child(4) .stat-icon {background:#f3e9e5;color:#995340}
.stat>span {color:var(--muted);font-size:.83rem;line-height:1.2}
.stat>strong {font-weight:760;letter-spacing:-.055em;font-size:clamp(1.7rem,2.7vw,2.55rem);overflow-wrap:anywhere;line-height:1.15;font-variant-numeric:tabular-nums}
.dashboard-grid {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,1fr);gap:18px;align-items:start}
.card-head {padding:19px 20px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.card-head a {display:flex;align-items:center;gap:4px;font-size:.82rem;color:#506956;font-weight:650;white-space:nowrap}
.card-head a svg {width:14px}
.pipeline {padding-bottom:15px}
.pipeline-row {padding:11px 18px;display:grid;grid-template-columns:113px 1fr 24px;gap:10px;align-items:center;font-size:.8rem}
.pipeline-row strong {text-align:right}
.track {height:7px;background:#ecefe7;overflow:hidden;border-radius:6px}
.track i {display:block;height:100%;border-radius:6px;background:#8b9f90}
.track i.pending {background:#c59042}
.track i.ready {background:#5b8d9b}
.track i.confirmed {background:#588767}
.track i.rejected {background:#b87165}
.table-scroll {overflow-x:auto}
table {width:100%;border-collapse:collapse;text-align:left}
th {font-size:.785rem;letter-spacing:.01em;color:#535b76;background:#f7f8fd;white-space:nowrap}
th,td {padding:12px 14px;border-bottom:1px solid #eceef7;vertical-align:middle}
th:first-child,td:first-child {padding-left:20px}
td {font-size:.88rem}
td small {display:block;margin-top:3px}
tr:last-child td {border-bottom:0}
.record-link {font-weight:650}
.record-link:hover {text-decoration:underline}
.status {display:inline-flex;align-items:center;white-space:nowrap;padding:4px 9px;border-radius:20px;background:#edf0ec;color:#586559;font-size:.75rem;font-weight:650}
.status.pending {background:#f9eed6;color:#785616}
.status.ready {background:#e7f0f4;color:#32657a}
.status.confirmed {background:#e6f2e8;color:#306147}
.status.rejected {background:#f9e9e6;color:#8b4438}
.empty {padding:42px 20px;text-align:center}
.empty-icon {margin:0 auto 12px}
.empty p {margin-top:6px}
.filters {display:flex;gap:12px;padding:15px;flex-wrap:wrap}
.filters select {max-width:220px}
.search {display:flex;align-items:center;gap:8px;padding-left:10px;border:1px solid #d9ded5;border-radius:8px;min-width:min(250px,100%)}
.search svg {color:#667469;flex:none}
.search input {border:0!important}
.field {display:grid;gap:7px;align-content:start;min-width:0;color:var(--ink);font-weight:640;font-size:.885rem}
.field small {line-height:1.4;font-weight:400}
input:not([type="checkbox"]),select,textarea {display:block;color:var(--ink);background:#fff;border:1px solid #d9ddec;border-radius:8px;width:100%;padding:10px 12px;min-height:43px;max-width:100%;font-weight:500}
input[type="color"] {padding:4px 7px!important;min-height:42px}
input[readonly] {background:#f1f3f9}
textarea {resize:vertical;min-height:80px}
.check {display:flex;align-items:center;align-self:center;gap:9px;min-height:30px;font-weight:550}
input[type="checkbox"] {width:16px;height:16px;accent-color:var(--accent);margin:0;flex:none}
.grid {display:grid;gap:15px}
.form-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.wide {grid-column:1/-1}
.form-section {padding:21px;margin-bottom:17px}
.section-title {margin-bottom:15px}
.section-title p {margin-top:4px}
.form-actions {position:sticky;bottom:0;z-index:1;background:#f3f5f8f5;padding:13px 0;border-top:1px solid var(--line)}
.form-actions>div {justify-content:flex-end}
.narrow {max-width:600px}
.narrow>.field {margin:15px 0}
.component,.definition,.module-definition {border:1px solid var(--line);background:#fafbff;border-radius:11px;padding:15px;margin-bottom:12px}
.module-definition>.grid,.module-definition h3 {margin-bottom:12px}
.definition .subtle,.module-definition>.subtle {margin-top:6px}
.row-heading {display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}
details {margin-top:12px;background:#f1f3fa;padding:10px;border-radius:8px}
details>.grid {margin-top:11px}
summary {font-weight:650;color:#4d5274}
.children,.child-row {margin-top:10px}
.child-row {padding:10px;border:1px solid var(--line);border-radius:7px}
.metric-lines {display:grid;gap:7px;margin-top:10px}
.metric-lines>div {display:flex;justify-content:space-between}
.detail-grid {display:grid;grid-template-columns:minmax(0,2.2fr) minmax(215px,1fr);gap:17px;align-items:start}
.data-grid {margin:13px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
dt {color:var(--muted);font-size:.78rem}
dd {margin:2px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.history {margin:0;padding:0;list-style:none}
.history li {padding:10px 0;border-bottom:1px solid var(--line)}
.history li:last-child {border:0}
.history b {display:block;text-transform:capitalize;margin-bottom:4px;font-size:.88rem}
.history p {margin-top:5px;overflow-wrap:anywhere}
.inline-form {display:flex;align-items:end;gap:9px;flex-wrap:wrap}
.inline-form .field {flex:1;min-width:150px}
.inline-form .error {flex-basis:100%}
.inline-form+.error,.form-section .button-row {margin-top:12px}
.document {margin:0 auto 17px;padding:clamp(18px,4vw,42px);max-width:920px}
.document header {display:flex;gap:13px;justify-content:space-between;border-top:4px solid var(--doc-accent);padding-top:14px}
.document header>div:last-child {text-align:right}
.document header h2 {font-family:var(--serif);font-size:1.8rem}
.document h3 {margin-top:17px}
.document p {margin-top:7px}
.document-client {margin:25px 0 17px}
.document-client h3 {margin-top:7px}
.document footer {padding-top:15px;margin-top:20px;border-top:1px solid var(--line);color:var(--muted)}
.doc-logo {width:65px;height:65px;object-fit:contain}
.preserve {white-space:pre-wrap;overflow-wrap:anywhere}
.admin-tabs {display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:18px}
.admin-tabs a {padding:10px 12px 12px;color:#57665a;border-bottom:2px solid transparent;font-weight:650}
.admin-tabs a.selected {color:var(--ink);border-color:var(--accent)}
.version {color:#556558;background:#e9efe7;border-radius:20px;padding:6px 11px;font-size:.8rem;white-space:nowrap}
.check-group {display:flex;flex-wrap:wrap;gap:7px 23px;padding-top:8px}
.tabs {margin-bottom:13px;padding:13px}
.tabs>.field {max-width:320px}
dialog {border:1px solid var(--line);border-radius:12px;padding:22px;width:min(720px,calc(100vw - 26px));color:var(--ink);max-height:90dvh;box-shadow:0 18px 50px #1b292244}
dialog::backdrop {background:#18261f83}
dialog p,dialog .button-row {margin-top:10px}
.close-dialog {font-size:1.5rem}
pre,code {background:#eef0e9;border-radius:4px;padding:5px;overflow:auto}
#toast {position:fixed;bottom:20px;right:20px;z-index:5;background:#263c2f;color:white;box-shadow:0 8px 20px #23292422;padding:11px 15px;border-radius:8px;display:none;max-width:calc(100vw - 40px)}
#toast.visible {display:block}
#toast.error-toast {background:#933c32;color:white}
.login-shell {min-height:100dvh;display:grid;grid-template-columns:minmax(350px,1fr) 1fr}
.login-hero {background:var(--navy);color:white;padding:clamp(30px,5.1vw,76px);position:relative;overflow:hidden;min-height:560px;isolation:isolate}
.login-message {margin:clamp(60px,13vh,160px) 0 25px;position:relative;z-index:2}
.login-message h1 {font-size:clamp(2.85rem,4.65vw,5.15rem);line-height:1.015;color:#f6f5ff;font-weight:750}
.login-message p {margin-top:15px;color:#d6e0d6;font-size:1.02rem;max-width:290px}
.login-main {display:grid;place-items:center;padding:32px}
.login-main form {width:min(390px,100%)}
.login-main h2 {font-size:2.65rem;font-weight:780;letter-spacing:-.055em}
.login-main p {margin:5px 0 20px}
.login-main .field {margin:0 0 13px}
.login-main button {width:100%;margin-top:16px}
.demo-label {display:block;margin-top:12px}
.forced,.loading {max-width:650px;margin:8vh auto;padding:24px}
.forced p {margin:12px 0}
@media(max-width:1150px) {
  .dashboard-grid {grid-template-columns:minmax(0,1fr)}
  .pipeline {max-width:none}
}
@media(max-width:850px) {
  .shell {display:block}
  .sidebar {display:none;position:fixed;top:57px;bottom:0;height:calc(100dvh - 57px);min-height:0;width:min(270px,90vw);box-shadow:10px 15px 30px #1d2f2270}
  .nav-open .sidebar {display:flex}
  .topbar {height:57px}
  .mobile-toggle {display:inline-grid;margin-left:-6px}
  .detail-grid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px) {
  .page-head {align-items:flex-start;flex-direction:column;margin-bottom:21px}
  .content {padding-top:22px}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .stat {min-height:106px;padding:12px}
  .form-grid {grid-template-columns:minmax(0,1fr)}
  .form-section {padding:13px}
  .login-shell {display:block}
  .login-hero {min-height:auto;padding:24px}
  .login-message {margin:28px 0 0}
  .login-message h1 {font-size:2.5rem}
  .login-main {padding:27px 24px}
  .login-main h2 {font-size:2.6rem}
  .top-account {display:none}
  .button {white-space:normal}
}
@media print {
  :root,body {background:white}
  .sidebar,.topbar,.page-head,.announcement,.no-print,#toast {display:none!important}
  .shell,.main,.content {display:block;padding:0;margin:0;max-width:none}
  .document {padding:0;border:0;box-shadow:none;max-width:none;margin:0}
  .table-scroll {overflow:visible}
  .document th,.document td {padding:6px}
  .document tr {break-inside:avoid}
  .document header,th {print-color-adjust:exact}
}

.skip-link {position:absolute;top:10px;left:12px;z-index:9;transform:translateY(-160%);background:#fff;color:var(--ink);border-radius:8px;padding:10px}
.skip-link:focus {transform:none}
.nav-backdrop {display:none}
.nav-group+.nav-group {border-top:1px solid #ffffff2f;margin-top:15px}
.nav-link.active::before {content:"";position:absolute;left:0;width:3px;height:22px;background:var(--brand-secondary);border-radius:4px}
.account b {font-size:.86rem}
.breadcrumb {display:flex;align-items:center;gap:9px;min-width:0}
.breadcrumb svg {width:13px;height:13px;flex:none}
.breadcrumb strong {color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-search {margin-left:auto;display:flex;align-items:center;gap:8px;min-width:180px;padding:7px 8px 7px 10px;color:var(--muted);background:#f7f8fc;border:1px solid var(--line);border-radius:8px;font-size:.82rem}
.global-search:hover {background:#edeff8}
.global-search svg {width:16px;height:16px}
kbd {margin-left:auto;background:#fff;border:1px solid #e5e7f1;border-radius:4px;padding:0 5px;font:inherit;font-size:.75rem}
.preview-notice {color:#24418f;background:#e9f0ff;border:1px solid #d1dff8;padding:9px 12px;margin-bottom:15px;border-radius:7px;font-size:.82rem}
.search-dialog {padding:0;max-width:570px;margin-top:min(14vh,110px)}
.search-heading {display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line);padding:10px 12px}
.search-heading .search {border:0;flex:1}
.search-results {padding:8px;min-height:65px}
.search-results a,.queue-item {display:grid;align-items:center;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;padding:10px;border-radius:9px}
.search-results a:hover,.queue-item:hover {background:#f1f2fb}
.search-results strong,.queue-item b {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem}
.search-results small,.queue-item small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-results p {padding:8px}
.stats {gap:15px;margin-bottom:18px}
.stat {gap:9px;align-content:start;min-height:135px;padding:15px 17px;transition:transform .18s,border-color .18s}
.stat:hover {transform:translateY(-2px);border-color:#bec2e5}
.stat-top {display:flex;align-items:center;gap:8px;min-width:0;font-size:.855rem;color:var(--muted);font-weight:640}
.stat-icon,.job-icon,.step-icon,.empty-icon {flex:none;width:34px;height:34px;border-radius:9px;background:var(--tint);color:#24418f;display:grid;place-items:center;margin:0}
.stat .stat-icon,.job-icon,.step-icon {color:color-mix(in srgb,var(--accent) 75%,#142546)}
.stat-1 .stat-icon {background:var(--orange-tint);color:#774016}
.stat-2 .stat-icon {background:#e3f5eb;color:#207350}
.stat-3 .stat-icon {background:#e7efff;color:#24418f}
.stat small {color:#676d83}
.insight-grid {display:grid;grid-template-columns:1.15fr 1fr;align-items:start;gap:17px;margin-bottom:17px}
.card-head {padding:17px 19px;align-items:center}
.card-head p {margin-top:4px;font-size:.825rem}
.card-head a {color:var(--ink)}
.card-head .text-link {color:color-mix(in srgb,var(--accent) 70%,#15305e)}
.pipeline {padding-bottom:10px}
.pipeline-row {grid-template-columns:minmax(130px,1fr) minmax(35%,1.5fr) 26px;font-size:.875rem;padding:8px 19px}
.pipeline-row:hover {background:#f5f5fc}
.track {height:8px;background:#eff0f7}
.track i {background:#969bb1}
.track i.pending {background:var(--brand-secondary)}
.track i.ready {background:var(--accent)}
.track i.confirmed {background:#3a9c74}
.track i.rejected {background:#cf6b81}
.queue {padding-bottom:10px}
.queue-item {margin:0 9px 1px;padding:9px 10px}
.queue-item>svg {width:17px;color:#646d88}
.queue-item .job-icon {color:#774016;background:var(--orange-tint)}
.queue-empty {display:flex;gap:11px;align-items:center;padding:18px 20px 25px}
.queue-empty>svg {color:#277450;flex:none}
.queue-empty p {font-size:.825rem;margin-top:3px}
.job-name {display:flex;align-items:center;gap:10px;min-width:160px}
.job-name>span:last-child {min-width:0}
.job-icon {width:31px;height:31px}
.job-icon svg {width:17px;height:17px}
.jobs-table tr:hover {background:#fafaff}
.row-open {color:#5c6382}
.status {gap:6px;font-size:.8rem;padding:5px 8px;background:#eef0f6;color:#535b76}
.status i,.version i {width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.status.pending {background:var(--orange-tint);color:#774016}
.status.ready {background:#e8f0ff;color:#24418f}
.status.confirmed {background:#e5f5ed;color:#286b4e}
.status.rejected {background:#fbe9ef;color:#91364e}
.empty-icon {margin:0 auto 12px}
.empty .button {margin-top:16px}
.enquiry-tabs {display:flex;gap:11px;overflow-x:auto;padding:0 15px;border-bottom:1px solid var(--line)}
.enquiry-tabs button {display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:0;border-bottom:2px solid transparent;background:none;padding:12px 4px;font-weight:650;color:var(--muted);font-size:.84rem}
.enquiry-tabs button[aria-pressed="true"] {border-color:var(--accent);color:var(--ink)}
.enquiry-tabs span {font-size:.73rem;border-radius:20px;padding:2px 6px;line-height:1.4;background:#eceefa;color:#4a5175}
.filters {justify-content:space-between}
.sort-control {display:flex;align-items:center;gap:8px;font-size:.83rem}
.select select,select {appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23545a72' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat;background-size:15px}
.table-footer {display:flex;justify-content:space-between;gap:9px;align-items:center;padding:12px 17px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;min-height:52px}
.editor-steps {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);margin-bottom:18px;scroll-margin-top:12px}
.editor-steps button {display:flex;align-items:center;gap:9px;background:none;border:0;border-radius:8px;padding:7px 9px;color:var(--muted);font-size:.86rem;font-weight:675;text-align:left;min-height:47px}
.editor-steps button:hover {background:#f3f6fb}
.editor-steps button[aria-current="step"] {background:var(--tint);color:var(--ink)}
.editor-steps button[aria-current="step"] .step-icon {color:var(--on-accent);background:var(--accent)}
.step-icon {background:#f1f2f9;width:31px;height:31px}
.step-icon svg {width:16px;height:16px}
.editor-grid,.branding-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:17px;align-items:start}
.editor-body {min-width:0}
.estimate-card {position:sticky;top:15px;padding:17px;overflow-wrap:anywhere}
.estimate-title {display:flex;align-items:center;gap:8px}
.estimate-title h2 {font-size:1rem}
.estimate-card dl {display:grid;gap:9px;margin:14px 0}
.estimate-card dl>div {display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.estimate-card dd {margin:0;text-align:right;font-size:.86rem;font-weight:650}
.estimate-card dt,.summary-label {font-size:.8rem;color:var(--muted)}
.quantity-chips {display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.quantity-chips span {padding:3px 8px;border-radius:20px;background:#eef0fa;color:#4c557a;font-size:.78rem;font-weight:650;font-variant-numeric:tabular-nums}
.estimate-total {border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.estimate-total>div {display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:5px}
.estimate-total p {font-size:.82rem}
.estimate-total strong {font-variant-numeric:tabular-nums;font-size:1.16rem;white-space:nowrap}
.estimate-total small {display:block;line-height:1.42}
.editor-action-bar {position:sticky;bottom:0;z-index:1;background:#f3f5f8f5;padding:10px 0;border-top:1px solid var(--line)}
.editor-action-row {display:flex;gap:8px;align-items:center;justify-content:space-between}
.editor-actions {margin-left:auto;display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.editor-step h2:focus {outline:none}
.branding-card {padding:17px}
.branding-sample {display:grid;gap:15px;background:#f4f7fc;border:1px solid #dfe5ee;border-radius:12px;padding:18px 14px;color:var(--ink)}
.branding-logo {display:grid;gap:9px;overflow-wrap:anywhere;min-width:0}
.branding-logo .brand-logo {width:min(100%,128px)}
.branding-sample p {color:#52617a;font-size:.83rem}
.branding-sample .button {justify-self:start}
.branding-card .announcement {margin:12px 0 0;font-size:.85rem;overflow-wrap:anywhere}
.admin-tabs a {display:inline-flex;align-items:center;gap:7px;font-size:.86rem}
.admin-tabs a svg {width:16px;height:16px}
.version {display:inline-flex;align-items:center;gap:7px;background:#e6f3eb;color:#2d614a}
.login-hero {background:radial-gradient(ellipse at 90% 90%,#3a62aa 0%,#24418f 40%,#142a58 85%);padding-bottom:18rem}
.login-message {margin-top:clamp(60px,15vh,165px)}
.login-message h1 span {color:var(--brand-secondary)}
.login-brand {margin-bottom:26px}
.login-brand .brand-logo {width:clamp(135px,18vw,194px)}
.login-message p {color:#d7e5ff;max-width:360px}
.imposition-art {position:absolute;left:clamp(30px,6vw,100px);bottom:-119px;transform:rotate(-10deg);width:min(78%,540px);height:360px;z-index:-1}
.art-sheet {position:absolute;inset:0;background:#f0f2f6;border-radius:5px;padding:24px;box-shadow:10px 12px 0 #a9bddf,20px 24px 0 #365a9d,28px 40px 26px #0f214980}
.art-pieces {display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:7px;height:90%;outline:1px dashed #849cc8;outline-offset:5px}
.art-pieces i {background:radial-gradient(circle at 90% 18%,var(--brand-secondary) 0 24%,transparent 25%),radial-gradient(circle at 80% 75%,#bacbed 0 34%,transparent 35%),linear-gradient(145deg,#24418f 0 58%,#7399e0 59%);border-radius:2px}
.art-pieces i:nth-child(2n) {background:radial-gradient(circle at 14% 80%,#f9ab6a 0 23%,transparent 24%),radial-gradient(circle at 78% 35%,#becff1 0 31%,transparent 32%),linear-gradient(145deg,#15336c 0 51%,#6e8fce 52%)}
.colour-bars {display:block;margin-top:12px;height:7px;width:45%;background:linear-gradient(90deg,#24418f 0 20%,#5276bd 20% 40%,var(--brand-secondary) 40% 60%,#f9ab6a 60% 80%,#172d56 80% 100%)}
@media(max-width:1100px) {
  .stat {padding:13px}
  .stat-top {align-items:flex-start}
}
@media(max-width:850px) {
  .nav-open .nav-backdrop {display:block;background:#10244b73;position:fixed;inset:57px 0 0;width:100%;border:0;z-index:2}
  .stat-top {align-items:center}
}
@media(max-width:640px) {
  input:not([type="checkbox"]),textarea,select {font-size:1rem}
  .topbar {gap:7px}
  .global-search {min-width:0;padding:7px;min-height:37px}
  .global-search span,.global-search kbd {display:none}
  .insight-grid,.editor-grid,.branding-grid {grid-template-columns:minmax(0,1fr)}
  .estimate-card {position:static}
  .estimate-card dl {grid-template-columns:1fr 1fr}
  .estimate-card dl>div {display:block}
  .estimate-card dd {text-align:left}
  .editor-steps {grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .editor-steps button {padding:5px 6px;gap:6px;min-height:39px}
  .editor-action-row {align-items:flex-start}
  .editor-actions .button {padding:7px 9px;min-height:39px;font-size:.78rem}
  .jobs-table thead {display:none}
  .jobs-table table,.jobs-table tbody {display:block}
  .jobs-table tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px;padding:11px 12px;border-bottom:1px solid var(--line)}
  .jobs-table td {display:block;min-width:0;border:0;padding:0;overflow-wrap:anywhere}
  .jobs-table td[data-label="Enquiry"] {grid-column:1/3;grid-row:1}
  .jobs-table td:last-child {grid-column:3;grid-row:1}
  .jobs-table td[data-label="Status"] {grid-column:2/4}
  .jobs-table td[data-label="Updated"] {grid-column:2/4}
  .jobs-table td[data-label="Quote value"]::before,.jobs-table td[data-label="Updated"]::before {content:attr(data-label);display:block;font-size:.72rem;color:var(--muted)}
  .job-name {min-width:0;align-items:flex-start}
  .card-head {padding:14px}
  .card-head h2 {font-size:1.06rem}
  .card-head .button {text-align:center}
  .login-hero {padding-bottom:26px}
  .login-message {margin-top:0}
  .login-brand {margin-bottom:17px}
  .imposition-art {display:none}
  .login-brand .brand-logo {width:135px}
}
@media(max-width:440px) {
  .stats {gap:7px}
  .stat {padding:10px;gap:6px;min-height:120px}
  .stat-top {font-size:.79rem}
  .stat-top .stat-icon {width:27px;height:27px}
  .stat-top .stat-icon svg {width:16px}
  .stat>strong {font-size:1.62rem}
  .stat small {font-size:.73rem}
  .breadcrumb>span,.breadcrumb svg {display:none}
  .filters .search {width:100%}
  .sort-control {width:100%;justify-content:space-between}
  .sort-control select {width:65%}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;scroll-behavior:auto!important;transition:none!important}
}
@media print {
  .skip-link,.nav-backdrop,.preview-notice,.global-search {display:none!important}
}
