:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172019;
    background: #f4f7f3;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f4f7f3; }
button, a { font: inherit; }

.account-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3.35rem;
    padding: .65rem max(1rem, calc((100% - 720px) / 2 + 1rem));
    border-bottom: 1px solid #d5e1d7;
    background: white;
}
.account-bar > a { color: #1f6336; font-weight: 900; text-decoration: none; }
.account-bar nav { display: flex; gap: .7rem; align-items: center; }
.account-bar nav a, .account-bar nav button {
    border: 0;
    padding: .35rem;
    color: #1f6336;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.account-bar nav span { color: #56635a; font-size: .88rem; }

.account-page {
    display: grid;
    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    place-items: center;
    padding: 1.25rem;
}
.account-card {
    width: 100%;
    border-radius: 1rem;
    padding: clamp(1.25rem, 5vw, 2rem);
    background: white;
    box-shadow: 0 4px 24px rgb(23 32 25 / 10%);
}
.account-form { display: grid; gap: .7rem; margin-top: 1.4rem; }
.account-form label, .staff-card > label { font-weight: 800; }
.account-form input, .account-form select, .staff-card input, .staff-card select {
    width: 100%;
    border: 1px solid #bdcabf;
    border-radius: .75rem;
    padding: .8rem;
    color: #172019;
    background: white;
}
.account-form input:focus, .account-form select:focus, .staff-card input:focus, .staff-card select:focus {
    outline: 3px solid #9dc6a6;
    border-color: #4b8b59;
}
.account-submit { margin-top: .45rem; }
.staff-list { display: grid; gap: .9rem; margin-top: 1rem; }
.staff-card { display: grid; gap: .7rem; }
.staff-card-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.staff-card-heading p { color: #56635a; font-size: .9rem; overflow-wrap: anywhere; }
.staff-status { flex: 0 0 auto; border-radius: 999px; padding: .3rem .55rem; font-size: .75rem; font-weight: 800; }
.staff-status.active { color: #1f6336; background: #e6f0e8; }
.staff-status.inactive { color: #7a4b00; background: #fff0cf; }
.staff-reset-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; }

/* Blazor reveals this only when a real client-side error occurs. */
#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 0.8rem 1rem;
    color: #172019;
    background: #fff4ce;
    box-shadow: 0 -2px 8px rgb(23 32 25 / 15%);
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

/* Keep the very short Blazor startup state polished rather than showing the
   unstyled browser-default SVG circles. */
.loading-progress {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    margin: 22vh auto 0.85rem;
}

.loading-progress circle {
    fill: none;
    stroke: #dfe8df;
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1f6336;
    stroke-linecap: round;
    stroke-dasharray: 72 180;
    animation: loading-spinner 0.9s linear infinite;
}

.loading-progress-text {
    color: #56635a;
    font-size: 0.9rem;
    text-align: center;
}

.loading-progress-text::after {
    content: "Loading D&S Hub…";
}

@keyframes loading-spinner {
    to { transform: rotate(270deg); }
}

.today-page, .job-page {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
}

.quote-page {
    width: min(100%, 1120px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}
.quote-cost-message { display: flex; gap: .55rem; align-items: baseline; border-left: 4px solid #1f6336; }
.quote-cost-message span { color: #405246; font-size: .91rem; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(285px, .65fr); gap: 1rem; align-items: start; }
.quote-input-column { display: grid; gap: 1rem; }
.quote-section { margin: 0; }
.quote-form-drawer { padding: 0; overflow: hidden; }
.quote-form-drawer > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 1rem 1.25rem; }
.quote-form-drawer > summary::-webkit-details-marker { display: none; }
.quote-form-drawer > summary::after { content: "▾"; font-size: 1.2rem; transition: transform .15s ease; }
.quote-form-drawer[open] > summary::after { transform: rotate(180deg); }
.quote-form-drawer > summary span { display: grid; gap: .15rem; }
.quote-form-drawer > summary small { color: #66756b; font-weight: 400; }
.quote-drawer-body { border-top: 1px solid #d8e1da; padding: 1.25rem; }
.multi-split-capacity { border-radius: .8rem; display: grid; gap: .35rem; margin-top: 1rem; padding: .9rem 1rem; }
.multi-split-capacity.within-capacity { background: #e8f5ed; color: #155d35; }
.multi-split-capacity.uses-diversity { background: #fff4d8; color: #7a4b00; }
.multi-split-capacity.over-capacity { background: #fde9e7; color: #9a241d; }
.quote-section-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.quote-section-heading h2 { font-size: 1.15rem; }
.quote-benchmark { flex: 0 0 auto; border-radius: 999px; padding: .35rem .6rem; color: #1f6336; background: #e6f0e8; font-size: .78rem; font-weight: 800; }
.quote-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.quote-form-grid label, .quote-price-field, .quote-notes-field { display: grid; gap: .4rem; color: #334238; font-size: .88rem; font-weight: 800; }
.quote-form-grid input, .quote-form-grid select, .quote-form-grid textarea, .quote-price-field input, .quote-notes-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #bdcabf;
    border-radius: .72rem;
    padding: .72rem;
    color: #172019;
    background: white;
}
.quote-form-grid input:focus, .quote-form-grid select:focus, .quote-form-grid textarea:focus, .quote-price-field input:focus, .quote-notes-field textarea:focus { outline: 3px solid #9dc6a6; border-color: #4b8b59; }
.wide-field { grid-column: 1 / -1; }
.input-prefix { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.input-prefix b { margin-right: .45rem; font-size: 1.05rem; }
.quote-vat-warning { margin: .8rem 0 0; border-radius: .65rem; padding: .7rem; color: #6f4b08; background: #fff0cf; font-size: .86rem; font-weight: 700; }
.quote-price-field { margin-top: 1rem; }
.quote-price-field input { font-size: 1.2rem; font-weight: 800; }
.quote-notes-field { margin-top: 1rem; }
.quote-notes-field textarea { resize: vertical; }
.quote-result-column { position: sticky; top: .8rem; display: grid; gap: 1rem; }
.quote-result-card { margin: 0; border-top: 5px solid #d69223; }
.quote-result-card.margin-healthy { border-top-color: #1f6336; }
.quote-customer-total { display: grid; gap: .15rem; margin: .4rem 0 1rem; border-radius: .85rem; padding: 1rem; color: white; background: #1f6336; }
.quote-customer-total span { font-size: .82rem; font-weight: 700; }
.quote-customer-total strong { font-size: clamp(1.8rem, 5vw, 2.45rem); line-height: 1; }
.quote-totals { display: grid; gap: 0; margin: 0; }
.quote-totals div { display: flex; gap: .8rem; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #e3ebe4; padding: .62rem 0; }
.quote-totals dt { color: #56635a; }
.quote-totals dd { margin: 0; font-weight: 800; text-align: right; }
.quote-totals .quote-margin-row { border-bottom: 0; font-size: 1.08rem; }
.negative-money { color: #b42318; }
.margin-callout { display: grid; gap: .3rem; margin-top: .8rem; border-radius: .75rem; padding: .8rem; }
.margin-callout.warning { color: #6f4b08; background: #fff0cf; }
.margin-callout.healthy { color: #1f6336; background: #e6f0e8; }
.margin-callout.benchmark { color: #245775; background: #e7f3f9; }
.margin-callout span { font-size: .88rem; line-height: 1.4; }
.margin-callout button { justify-self: start; margin-top: .35rem; }
.quote-copy-button { width: 100%; margin-top: .8rem; }
.quote-submit-button { width: 100%; margin-top: .55rem; }
.quote-submit-success { display: grid; gap: .35rem; margin-top: .8rem; border-radius: .75rem; padding: .8rem; color: #1f6336; background: #e6f0e8; }
.quote-submit-success button { justify-self: start; }
.quote-result-card .copy-confirmation { margin: .7rem 0 0; font-size: .86rem; }
.quote-breakdown-card { margin: 0; }
.quote-totals.compact div:last-child { border-bottom: 0; }
.sizing-guide-card { margin-bottom: 1rem; }
.sizing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sizing-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; align-items: stretch; margin-top: 1rem; }
.sizing-result > div { display: grid; gap: .2rem; border-radius: .75rem; padding: .75rem; background: #f4f7f3; }
.sizing-result span { color: #56635a; font-size: .78rem; font-weight: 700; }
.sizing-result strong { color: #1f6336; font-size: 1.05rem; }
.sizing-result p, .sizing-result button { grid-column: 1 / -1; margin: 0; }
.quote-approval-tab { border-color: #70a37c; }
.quote-approval-drawer { margin-bottom: .8rem; }
.quote-approval-drawer.awaiting { border-left: 5px solid #d69223; }
.quote-approval-drawer.changes { border-left: 5px solid #b42318; }
.quote-approval-drawer.approved { border-left: 5px solid #1f6336; }
.quote-approval-drawer.sent { border-left: 5px solid #70a37c; }
.quote-approval-card { position: relative; text-decoration: none; }
.quote-card-price { color: #1f6336; font-size: 1.15rem; font-weight: 900; }
.quote-submission-evidence { border-left: 5px solid #70a37c; }
.office-quote-form { border-left: 5px solid #1f6336; }
.quote-office-total { display: grid; gap: .2rem; margin-top: 1rem; border-radius: .85rem; padding: 1rem; color: white; background: #1f6336; }
.quote-office-total strong { font-size: 2rem; line-height: 1.05; }
.quote-office-total small { color: #dcebdd; }
.quote-office-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.quote-needs-changes { color: #8a3a00; background: #fff0cf; }
.quote-copy-card { border-left: 5px solid #245775; }

.page-heading, .job-header { margin: 1rem 0 1.5rem; }
.page-heading { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.heading-actions { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .45rem; font-size: clamp(1.8rem, 6vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; }
h2 { margin-bottom: .45rem; font-size: 1rem; }
p { line-height: 1.5; }

.eyebrow { margin-bottom: .4rem; color: #367345; font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.heading-copy { max-width: 35rem; margin-bottom: 0; color: #56635a; }

.refresh-button, .secondary-button, .primary-link, .primary-action {
    border-radius: .75rem;
    border: 0;
    padding: .78rem 1rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.refresh-button, .primary-link, .primary-action { color: white; background: #1f6336; font-weight: 700; }
.refresh-button:disabled, .secondary-button:disabled, .primary-action:disabled { cursor: not-allowed; opacity: .55; }
.secondary-button { color: #1f6336; background: #e6f0e8; font-weight: 700; }

.message-card, .detail-card {
    margin: 0 0 1rem;
    border-radius: .9rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 12px rgb(23 32 25 / 7%);
}

.development-message { display: flex; gap: .55rem; align-items: baseline; border-left: 4px solid #d69223; }
.development-message span { color: #5f5547; font-size: .91rem; }
.calendar-sync-message { display: flex; gap: .55rem; align-items: baseline; border-left: 4px solid #d69223; }
.calendar-sync-message span { color: #5f5547; font-size: .91rem; }
.error-message { border-left: 4px solid #b42318; }
.empty-queue { border-left: 4px solid #9dc6a6; }
.status-message, .refresh-message { color: #56635a; }

.queue-tabs { display: flex; gap: .5rem; margin: 1rem 0 1.25rem; overflow-x: auto; padding-bottom: .2rem; }
.queue-tab { flex: 0 0 auto; border: 1px solid #cbd9ce; border-radius: 999px; padding: .55rem .75rem; color: #405246; background: white; font-weight: 700; cursor: pointer; text-decoration: none; }
.queue-tab span { display: inline-grid; min-width: 1.35rem; place-items: center; margin-left: .25rem; border-radius: 999px; padding: .05rem .35rem; color: #1f6336; background: #e6f0e8; font-size: .82rem; }
.queue-tab.selected { border-color: #1f6336; color: white; background: #1f6336; }
.queue-tab.selected span { color: #1f6336; background: white; }

.schedule-drawers { display: grid; gap: .8rem; }
.schedule-drawer {
    overflow: hidden;
    border: 1px solid #d5e1d7;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 2px 12px rgb(23 32 25 / 7%);
}
.schedule-drawer summary {
    display: flex;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}
.schedule-drawer summary::-webkit-details-marker { display: none; }
.schedule-drawer summary > span:first-child { display: grid; gap: .15rem; }
.schedule-drawer summary strong { font-size: 1rem; }
.schedule-drawer summary small { color: #68756c; font-size: .8rem; }
.schedule-drawer[open] summary { border-bottom: 1px solid #e3ebe4; }
.schedule-drawer-count {
    display: inline-grid;
    min-width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    padding: 0 .5rem;
    color: #1f6336;
    background: #e6f0e8;
    font-weight: 800;
}
.previous-jobs-drawer { border-left: 5px solid #d69223; }
.previous-jobs-drawer .schedule-drawer-count { color: #7a4b00; background: #fff0cf; }
.today-jobs-drawer { border-left: 5px solid #1f6336; }
.upcoming-jobs-drawer { border-left: 5px solid #70a37c; }
.schedule-drawer-content { padding: .8rem; background: #f7f9f6; }
.schedule-drawer-empty { margin: 0; padding: .35rem .2rem; color: #56635a; }
.job-schedule { color: #405246; font-size: .86rem; font-weight: 800; }

.job-list { display: grid; gap: .8rem; }
.job-card {
    display: grid;
    width: 100%;
    gap: .35rem;
    border: 1px solid #dfe8df;
    border-radius: 1rem;
    padding: 1.1rem;
    color: inherit;
    background: white;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 12px rgb(23 32 25 / 7%);
}

.job-card:hover, .job-card:focus-visible { outline: 3px solid #9dc6a6; border-color: #70a37c; }
.job-card strong { font-size: 1.18rem; }
.job-type, .job-action { color: #367345; font-size: .82rem; font-weight: 800; }
.job-address { color: #334238; }
.job-contact { color: #68756c; font-size: .9rem; }
.job-action { margin-top: .4rem; }

.back-link { margin: 0; border: 0; padding: 0; color: #1f6336; background: transparent; font-weight: 700; cursor: pointer; }
.queue-status { display: inline-block; margin: .2rem 0 0; border-radius: 999px; padding: .3rem .6rem; color: #1f6336; background: #e6f0e8; font-size: .85rem; font-weight: 700; }
.detail-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.detail-card { margin-top: 1rem; }
.detail-card p { margin-bottom: 0; white-space: pre-wrap; }
.detail-card h3 { margin: 1.15rem 0 .35rem; color: #405246; font-size: .88rem; }
.handover-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.handover-list div { border-radius: .7rem; padding: .7rem; background: #f4f7f3; }
.handover-list dt { color: #56635a; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.handover-list dd { margin: .22rem 0 0; font-weight: 700; }

.debrief-form { display: grid; gap: .7rem; }
.debrief-form > label, .debrief-form legend { font-weight: 800; }
.debrief-form textarea, .debrief-form input, .debrief-form select {
    width: 100%;
    border: 1px solid #bdcabf;
    border-radius: .75rem;
    padding: .75rem;
    color: #172019;
    background: white;
}
.debrief-form textarea { resize: vertical; }
.debrief-form textarea:focus, .debrief-form input:focus, .debrief-form select:focus { outline: 3px solid #9dc6a6; border-color: #4b8b59; }
.debrief-form fieldset { margin: .4rem 0; border: 1px solid #d5e1d7; border-radius: .85rem; padding: 1rem; }
.debrief-form fieldset select, .debrief-form fieldset input, .debrief-form fieldset textarea { margin-top: .55rem; }
.checkbox-label { display: flex; gap: .65rem; align-items: center; font-weight: 600; }
.checkbox-label input { width: 1.2rem !important; height: 1.2rem; margin: 0 !important; }
.field-help { margin: -.25rem 0 .25rem; color: #68756c; font-size: .88rem; }
.form-error { margin: .4rem 0; color: #b42318; font-weight: 700; }
.success-message { border-left: 4px solid #1f6336; }
.not-job-button { color: #7a4b00; background: #fff0cf; }
.ignored-job-message { display: flex; gap: .55rem; align-items: baseline; border-left: 4px solid #9a8770; }
.ignored-job-message span { color: #5f5547; font-size: .91rem; }
.submit-button { margin-top: .5rem; }
.time-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .7rem 0; }
.time-choice {
    border: 1px solid #bdcabf;
    border-radius: .7rem;
    padding: .65rem .35rem;
    color: #1f6336;
    background: white;
    font-weight: 800;
    cursor: pointer;
}
.time-choice.selected { border-color: #1f6336; color: white; background: #1f6336; }
.pending-photo-list { display: grid; gap: .45rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.photo-picker-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.photo-picker-button { position: relative; display: block; overflow: hidden; text-align: center; }
.photo-picker-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pending-photo-list li { display: flex; gap: .7rem; align-items: center; justify-content: space-between; border-radius: .7rem; padding: .65rem; background: #f4f7f3; }
.pending-photo-list span { min-width: 0; overflow-wrap: anywhere; }
.pending-photo-list small { display: block; color: #1f6336; font-weight: 800; }
.pending-photo-list button { border: 0; padding: .35rem; color: #b42318; background: transparent; font-weight: 800; cursor: pointer; }
.job-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.job-photo-grid a { overflow: hidden; border-radius: .75rem; aspect-ratio: 1; background: #e8eee8; }
.job-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.office-review-card { border-left: 5px solid #1f6336; }
.office-review-card > label { display: block; margin: .8rem 0 .35rem; font-weight: 800; }
.office-review-card textarea, .office-review-card input {
    width: 100%;
    border: 1px solid #bdcabf;
    border-radius: .75rem;
    padding: .75rem;
    color: #172019;
    background: white;
}
.money-input { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.money-input span { margin-right: .45rem; font-size: 1.1rem; font-weight: 800; }
.office-review-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1rem; }
.copy-confirmation { color: #1f6336; font-weight: 800; }

.calendar-preview-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.calendar-preview-safe { display: flex; gap: .55rem; align-items: baseline; border-left: 4px solid #1f6336; }
.calendar-preview-safe span { color: #405246; font-size: .91rem; }
.calendar-preview-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0 .7rem;
}
.calendar-preview-summary div {
    display: grid;
    gap: .15rem;
    border-radius: .8rem;
    padding: .85rem .7rem;
    background: white;
    text-align: center;
    box-shadow: 0 2px 12px rgb(23 32 25 / 7%);
}
.calendar-preview-summary strong { font-size: 1.45rem; color: #1f6336; }
.calendar-preview-summary span { color: #56635a; font-size: .78rem; font-weight: 700; }
.calendar-preview-range { margin: 0 0 1.4rem; }
.calendar-preview-section { margin-top: 1.5rem; }
.calendar-preview-section > h2 { display: flex; gap: .4rem; align-items: center; font-size: 1.15rem; }
.calendar-preview-section > h2 span {
    display: inline-grid;
    min-width: 1.55rem;
    place-items: center;
    border-radius: 999px;
    padding: .1rem .4rem;
    color: #1f6336;
    background: #e6f0e8;
    font-size: .82rem;
}
.calendar-preview-list { display: grid; gap: .8rem; }
.calendar-preview-card {
    border: 1px solid #dfe8df;
    border-left: 5px solid #70a37c;
    border-radius: .9rem;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 12px rgb(23 32 25 / 7%);
}
.calendar-preview-card.ac-candidate { border-left-color: #d50000; }
.calendar-preview-card.refrigeration-candidate { border-left-color: #039be5; }
.calendar-preview-card.ignored { border-left-color: #9a8770; background: #fffdfa; }
.calendar-preview-card-heading { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.calendar-preview-type { color: #367345; font-size: .76rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.calendar-preview-linked { border-radius: 999px; padding: .2rem .45rem; color: #1f6336; background: #e6f0e8; font-size: .73rem; font-weight: 800; }
.calendar-preview-card h3 { margin: .55rem 0 .25rem; font-size: 1.08rem; }
.calendar-preview-card p { margin: .3rem 0 0; white-space: pre-wrap; }
.calendar-preview-date { color: #405246; font-size: .9rem; font-weight: 700; }
.calendar-preview-location { color: #334238; }
.calendar-preview-notes { color: #56635a; font-size: .9rem; }
.calendar-preview-reason {
    border-radius: .55rem;
    padding: .55rem .65rem;
    color: #405246;
    background: #f4f7f3;
    font-size: .84rem;
    font-weight: 700;
}
.ignored-preview-section { padding-top: .3rem; }

@media (max-width: 440px) {
    .photo-picker-actions { grid-template-columns: 1fr; }
    .page-heading { display: grid; }
    .heading-actions { justify-content: stretch; }
    .heading-actions .refresh-button, .heading-actions .secondary-button { flex: 1; }
    .development-message { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .handover-list { grid-template-columns: 1fr; }
    .calendar-preview-actions { display: grid; }
    .calendar-preview-actions .primary-action, .calendar-preview-actions .secondary-button { width: 100%; }
    .calendar-preview-safe { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .ignored-job-message { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .calendar-preview-summary { gap: .4rem; }
    .calendar-preview-summary div { padding: .7rem .4rem; }
    .calendar-preview-summary strong { font-size: 1.25rem; }
    .calendar-preview-card-heading { align-items: flex-start; flex-direction: column; }
    .time-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .office-review-actions { display: grid; }
    .quote-office-actions { display: grid; }
    .quote-cost-message { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .quote-section-heading { display: grid; }
    .quote-benchmark { justify-self: start; }
    .quote-form-grid, .sizing-grid { grid-template-columns: 1fr; }
    .wide-field { grid-column: auto; }
    .sizing-result { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .quote-layout { grid-template-columns: 1fr; }
    .quote-result-column { position: static; }
}

@media (max-width: 620px) {
    .account-bar { align-items: flex-start; flex-wrap: wrap; }
    .account-bar nav { width: 100%; overflow-x: auto; }
    .account-bar nav span { margin-left: auto; }
}
