:root {
  --admin-ink: #0b2c3d;
  --admin-muted: #61747d;
  --admin-petrol: #07516a;
  --admin-petrol-dark: #043c51;
  --admin-green: #078743;
  --admin-lime: #a8cf08;
  --admin-paper: #f5f7f4;
  --admin-white: #fff;
  --admin-line: #dce5e4;
  --admin-orange: #d98518;
}

.admin-shell { min-height: 100vh; background: var(--admin-paper); color: var(--admin-ink); display: grid; grid-template-columns: 250px 1fr; }
.admin-shell button, .admin-shell input, .admin-shell textarea, .admin-shell select { font: inherit; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px 20px; display: flex; flex-direction: column; background: #07394c; color: white; box-shadow: 10px 0 40px rgba(4, 44, 61, .08); z-index: 20; }
.admin-brand { display: flex; height: 72px; padding: 5px 8px; border-radius: 13px; background: white; overflow: hidden; }
.admin-brand img { width: 100%; height: 100%; object-fit: contain; }
.admin-label { margin: 24px 12px 10px; color: #9cc0cb; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button, .sidebar-settings { width: 100%; min-height: 48px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: #d6e5e9; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; text-decoration: none; font-size: 13px; font-weight: 650; }
.admin-nav button:hover, .admin-nav button.active, .sidebar-settings:hover { color: white; background: rgba(255,255,255,.1); }
.admin-nav button.active { box-shadow: inset 3px 0 var(--admin-lime); }
.admin-nav button span { margin-left: auto; min-width: 23px; padding: 4px 6px; border-radius: 99px; background: rgba(255,255,255,.1); color: #d7e8ed; font-size: 10px; text-align: center; }
.admin-nav button span.warning { background: #e79027; color: white; }
.admin-spacer { flex: 1; }
.sidebar-settings { margin-bottom: 14px; }
.admin-user { padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 11px; }
.admin-user > span { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--admin-lime), var(--admin-green)); color: #07394c; display: grid; place-items: center; font-weight: 850; font-size: 12px; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { font-size: 13px; }.admin-user small { color: #9cc0cb; font-size: 10px; margin-top: 2px; }

.admin-content { min-width: 0; padding: 38px clamp(24px, 3.6vw, 58px) 48px; }
.admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.admin-eyebrow { margin: 0 0 6px; color: var(--admin-green); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.admin-topbar h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.045em; line-height: 1; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: min(310px, 25vw); min-height: 50px; padding: 0 15px; border: 1px solid var(--admin-line); border-radius: 11px; background: white; display: flex; align-items: center; gap: 10px; color: #8ba0a8; }
.search-box svg { flex: 0 0 auto; }.search-box input { width: 100%; border: 0; outline: 0; color: var(--admin-ink); font-size: 12px; }
.new-case-button, .wizard-primary { min-height: 50px; padding: 0 19px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--admin-petrol), var(--admin-petrol-dark)); color: white; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 760; box-shadow: 0 11px 24px rgba(4,60,81,.18); }
.new-case-button svg { color: var(--admin-lime); }

.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-kpis article { min-height: 118px; padding: 21px; border: 1px solid var(--admin-line); border-radius: 16px; background: white; display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: center; position: relative; box-shadow: 0 8px 26px rgba(8,44,61,.045); }
.kpi-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; }
.kpi-icon.petrol { background: #e7f2f5; color: var(--admin-petrol); }.kpi-icon.green { background: #e3f5e9; color: var(--admin-green); }.kpi-icon.orange { background: #fff0de; color: var(--admin-orange); }.kpi-icon.purple { background: #f0e9fa; color: #7951a8; }
.admin-kpis strong { display: block; font-size: 27px; letter-spacing: -.035em; line-height: 1; }.admin-kpis p { margin: 5px 0 0; color: var(--admin-muted); font-size: 11px; }.admin-kpis em { position: absolute; right: 16px; top: 14px; color: #83959c; font-size: 8px; font-style: normal; }

.cases-panel { border: 1px solid var(--admin-line); border-radius: 18px; background: white; box-shadow: 0 12px 34px rgba(8,44,61,.055); overflow: hidden; }
.cases-toolbar { min-height: 68px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--admin-line); }
.group-tabs { align-self: stretch; display: flex; gap: 22px; }.group-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--admin-muted); cursor: pointer; font-size: 12px; font-weight: 700; }.group-tabs button.active { color: var(--admin-petrol); border-bottom-color: var(--admin-lime); }.group-tabs span { margin-left: 5px; padding: 3px 6px; border-radius: 99px; background: #edf2f1; font-size: 9px; }
.filter-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--admin-line); border-radius: 8px; background: white; color: var(--admin-muted); cursor: pointer; font-size: 10px; }.filter-button span { margin-left: 11px; }
.cases-table-wrap { overflow-x: auto; }.cases-table { width: 100%; min-width: 960px; border-collapse: collapse; }.cases-table th { padding: 13px 12px; background: #f8faf8; color: #7b8e95; text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: 8px; }.cases-table td { height: 84px; padding: 13px 12px; border-top: 1px solid #e9eeee; vertical-align: middle; font-size: 10px; }.cases-table tbody tr:hover { background: #fbfdfc; }
.client-cell, .mission-cell { display: flex; align-items: center; gap: 10px; }.client-row-link { color: inherit; text-decoration: none; }.client-row-link:hover strong { color: var(--admin-petrol); text-decoration: underline; text-underline-offset: 3px; }.avatar { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 10px; }.avatar-1,.avatar-2 { background: #e3f2f0; color: #08705b; }.avatar-3 { background: #e8eef8; color: #3a5c8e; }.avatar-4 { background: #fff0de; color: #a96314; }.client-cell strong, .client-cell small, .mission-cell strong, .mission-cell small { display: block; }.client-cell strong, .mission-cell strong { font-size: 10px; }.client-cell small, .mission-cell small { margin-top: 4px; color: #7c8e95; font-size: 8px; white-space: nowrap; }
.mission-cell img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }.mission-cell small { color: var(--admin-green); font-weight: 800; letter-spacing: .08em; }
.case-status { display: inline-block; margin-bottom: 8px; padding: 5px 7px; border-radius: 99px; font-size: 8px; font-weight: 750; }.status-1 { background: #e9f3f7; color: var(--admin-petrol); }.status-2 { background: #fff0de; color: #a8620f; }.status-3 { background: #e4f4e8; color: #087740; }.status-4 { background: #f1eafa; color: #72509a; }
.table-progress { width: 94px; height: 4px; border-radius: 99px; background: #e7eceb; overflow: hidden; }.table-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--admin-green), var(--admin-lime)); }
.piece-count { display: block; font-size: 13px; }.cell-caption { display: block; color: #84959b; margin-top: 3px; font-size: 8px; }
.payment-lines { display: grid; gap: 5px; white-space: nowrap; }.payment-lines span { display: flex; align-items: center; gap: 5px; color: #526770; font-size: 8px; }.payment-lines i { width: 7px; height: 7px; border-radius: 50%; background: #d7dfdf; }.payment-lines i.paid { background: var(--admin-green); }.payment-lines i.sent { background: var(--admin-orange); }.payment-lines i.empty { background: #d7dfdf; }
.reminder-date { display: inline-flex; align-items: center; gap: 6px; color: var(--admin-petrol); white-space: nowrap; font-weight: 700; }.reminder-date svg { width: 14px; height: 14px; }.more-button { width: 25px; height: 25px; border: 1px solid #bdcccf; border-radius: 50%; background: white; color: var(--admin-petrol); cursor: pointer; display: grid; place-items: center; font-size: 17px; line-height: 1; }.more-button:hover { border-color: var(--admin-petrol); background: var(--admin-petrol); color: white; }
.empty-group { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--admin-muted); }.empty-group > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #edf3f2; color: var(--admin-green); }.empty-group h2 { margin: 16px 0 4px; color: var(--admin-ink); font-size: 19px; }.empty-group p { margin: 0; font-size: 11px; }
.admin-note { margin-top: 16px; padding: 14px 18px; border: 1px solid #cde2dd; border-radius: 12px; background: #edf6f4; display: flex; align-items: center; gap: 11px; }.admin-note > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--admin-petrol); color: white; font-family: Georgia, serif; font-weight: 800; }.admin-note p { margin: 0; color: var(--admin-muted); font-size: 10px; line-height: 1.5; }.admin-note strong { color: var(--admin-ink); }

.wizard-backdrop { position: fixed; inset: 0; z-index: 100; padding: 22px; background: rgba(4,31,42,.64); backdrop-filter: blur(5px); display: grid; place-items: center; }
.wizard-panel { width: min(930px, 100%); max-height: calc(100vh - 44px); border-radius: 22px; background: white; box-shadow: 0 35px 100px rgba(0,0,0,.28); overflow: auto; }
.wizard-header { position: sticky; top: 0; z-index: 4; padding: 24px 28px 19px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--admin-line); display: flex; align-items: center; justify-content: space-between; }.wizard-header h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }.wizard-header > button { width: 35px; height: 35px; border: 0; border-radius: 50%; background: #eef2f1; color: var(--admin-ink); cursor: pointer; font-size: 22px; }
.wizard-steps { padding: 17px 28px; border-bottom: 1px solid var(--admin-line); background: #fbfcfb; display: grid; grid-template-columns: repeat(3, 1fr); }.wizard-steps div { display: flex; align-items: center; gap: 9px; color: #8b9ba1; position: relative; }.wizard-steps div:not(:last-child)::after { content: ""; height: 1px; background: #dce4e3; position: absolute; left: 42px; right: 14px; top: 14px; }.wizard-steps span { width: 28px; height: 28px; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: #e8edec; color: #788b92; font-size: 10px; font-weight: 800; }.wizard-steps small { padding-right: 10px; background: #fbfcfb; z-index: 2; font-size: 9px; font-weight: 700; }.wizard-steps div.active { color: var(--admin-petrol); }.wizard-steps div.active span { background: var(--admin-petrol); color: white; box-shadow: 0 0 0 4px #e7f1f4; }
.wizard-body { padding: 26px 28px 30px; min-height: 440px; }.form-heading { margin-bottom: 22px; }.form-heading h3 { margin: 0 0 5px; font-size: 20px; }.form-heading p { margin: 0; color: var(--admin-muted); font-size: 11px; }
.form-grid { display: grid; gap: 15px; }.form-grid.two { grid-template-columns: 1fr 1fr; }.form-grid label, .detail-field, .billing-grid label, .reminder-builder label { color: #435b66; display: grid; gap: 6px; font-size: 9px; font-weight: 750; }.form-grid label.wide { grid-column: 1 / -1; }.form-grid input, .detail-field textarea, .billing-grid input, .billing-grid select, .reminder-builder input, .reminder-builder select { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #ccd9d8; border-radius: 9px; outline: 0; background: white; color: var(--admin-ink); font-size: 11px; }.form-grid input:focus, .detail-field textarea:focus, .billing-grid input:focus, .billing-grid select:focus, .reminder-builder input:focus, .reminder-builder select:focus { border-color: var(--admin-petrol); box-shadow: 0 0 0 3px #e7f2f4; }
.choice-field { margin: 19px 0 15px; padding: 0; border: 0; }.choice-field legend { margin-bottom: 7px; color: #435b66; font-size: 9px; font-weight: 750; }.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid var(--admin-line); border-radius: 10px; background: #f6f8f7; }.segmented button { min-height: 39px; border: 0; border-radius: 7px; background: transparent; color: var(--admin-muted); cursor: pointer; font-size: 10px; font-weight: 700; }.segmented button.active { background: white; color: var(--admin-petrol); box-shadow: 0 3px 12px rgba(8,44,61,.08); }.choice-field > small { display: block; margin-top: 7px; color: #7c8f96; font-size: 9px; }.detail-field textarea { min-height: 72px; padding-top: 11px; resize: vertical; }
.mission-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.mission-choice-grid button { min-height: 84px; padding: 10px; border: 1px solid var(--admin-line); border-radius: 13px; background: white; color: var(--admin-ink); display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; cursor: pointer; text-align: left; }.mission-choice-grid button:hover, .mission-choice-grid button.active { border-color: var(--admin-petrol); background: #f5fafb; box-shadow: 0 0 0 3px #e7f2f4; }.mission-choice-grid img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }.mission-choice-grid strong, .mission-choice-grid small { display: block; }.mission-choice-grid strong { font-size: 12px; }.mission-choice-grid small { margin-top: 4px; color: var(--admin-muted); font-size: 9px; line-height: 1.35; }.mission-choice-grid b { align-self: flex-start; padding: 5px 7px; border-radius: 6px; background: #e8f3f0; color: var(--admin-green); font-size: 8px; letter-spacing: .07em; }
.checklist-preview { margin-top: 18px; padding: 15px; border: 1px solid #cde1dd; border-radius: 12px; background: #eef6f4; display: grid; grid-template-columns: 170px 170px 1fr; gap: 12px; align-items: center; }.checklist-preview > div { display: flex; align-items: center; gap: 10px; }.preview-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: white; color: var(--admin-petrol); display: grid; place-items: center; }.checklist-preview p { margin: 0; }.checklist-preview strong, .checklist-preview small { display: block; }.checklist-preview strong { font-size: 19px; }.checklist-preview small { color: var(--admin-muted); font-size: 8px; }.checklist-preview .preview-note { color: var(--admin-muted); font-size: 9px; line-height: 1.5; }
.billing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.billing-grid article { padding: 15px; border: 1px solid var(--admin-line); border-radius: 12px; background: #fbfcfb; display: grid; gap: 11px; }.billing-grid h4 { margin: 0; color: var(--admin-petrol); font-size: 11px; }.reminder-builder { margin-top: 16px; padding: 14px; border: 1px solid #f0d6b6; border-radius: 12px; background: #fff8ee; display: grid; grid-template-columns: 40px 1fr 185px 128px; gap: 12px; align-items: center; }.reminder-builder .preview-icon { color: var(--admin-orange); }.reminder-builder strong { font-size: 10px; }.reminder-builder p { margin: 4px 0 0; color: #7b6a56; font-size: 8px; line-height: 1.4; }.generated-path { margin-top: 14px; padding: 12px 14px; border: 1px dashed #a9c1c4; border-radius: 11px; display: flex; align-items: center; gap: 11px; }.generated-path > span { color: var(--admin-green); }.generated-path small, .generated-path strong { display: block; }.generated-path small { color: var(--admin-muted); font-size: 8px; }.generated-path strong { margin-top: 4px; color: var(--admin-petrol); font-size: 10px; overflow-wrap: anywhere; }
.wizard-footer { position: sticky; bottom: 0; padding: 16px 28px; border-top: 1px solid var(--admin-line); background: rgba(255,255,255,.97); display: flex; justify-content: space-between; gap: 10px; }.wizard-secondary { min-height: 45px; padding: 0 18px; border: 1px solid #cad8d7; border-radius: 9px; background: white; color: var(--admin-ink); cursor: pointer; font-size: 10px; font-weight: 700; }.wizard-primary { min-height: 45px; font-size: 10px; box-shadow: none; }.wizard-primary span { color: var(--admin-lime); font-size: 17px; }
.success-state { padding: 43px 48px 40px; text-align: center; }.success-check { width: 62px; height: 62px; margin: 0 auto 17px; border-radius: 50%; background: #e1f4e7; color: var(--admin-green); display: grid; place-items: center; }.success-check svg { width: 31px; height: 31px; stroke-width: 2.4; }.success-state h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }.success-state > p:not(.admin-eyebrow) { max-width: 540px; margin: 9px auto 22px; color: var(--admin-muted); font-size: 11px; line-height: 1.55; }.success-summary { max-width: 680px; margin: 0 auto 12px; padding: 12px; border: 1px solid var(--admin-line); border-radius: 12px; background: #fafcfa; display: flex; align-items: center; gap: 13px; text-align: left; }.success-summary img { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }.success-summary small, .success-summary strong { display: block; }.success-summary small { color: var(--admin-muted); font-size: 8px; }.success-summary strong { margin: 5px 0; color: var(--admin-petrol); font-size: 11px; overflow-wrap: anywhere; }.link-box { max-width: 680px; margin: 0 auto; padding: 13px; border: 1px solid #bfd9d5; border-radius: 12px; background: #eef7f4; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }.link-box > div { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--admin-petrol); }.link-box small, .link-box strong { display: block; }.link-box small { color: var(--admin-muted); font-size: 8px; }.link-box strong { margin-top: 4px; font-size: 10px; overflow-wrap: anywhere; }.link-box button { min-height: 38px; padding: 0 11px; border: 1px solid var(--admin-petrol); border-radius: 8px; background: white; color: var(--admin-petrol); display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 9px; font-weight: 700; }.link-box button svg { width: 15px; height: 15px; }.success-actions { max-width: 680px; margin: 22px auto 0; display: flex; justify-content: flex-end; gap: 9px; }
.sr-only-admin { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.activity-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(4,31,42,.56); backdrop-filter: blur(4px); display: flex; justify-content: flex-end; }
.activity-panel { width: min(570px, 100%); height: 100vh; overflow-y: auto; background: #f6f8f6; box-shadow: -24px 0 70px rgba(0,0,0,.19); animation: activity-in .24s ease-out; }
@keyframes activity-in { from { transform: translateX(40px); opacity: .3; } to { transform: translateX(0); opacity: 1; } }
.activity-panel > header { position: sticky; top: 0; z-index: 2; min-height: 112px; padding: 23px 25px 18px; border-bottom: 1px solid var(--admin-line); background: rgba(255,255,255,.97); display: flex; align-items: center; justify-content: space-between; }.activity-panel > header h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }.activity-panel > header span { display: block; margin-top: 5px; color: var(--admin-muted); font-size: 10px; }.activity-panel > header button { width: 35px; height: 35px; border: 0; border-radius: 50%; background: #edf1f0; color: var(--admin-ink); cursor: pointer; font-size: 22px; }
.activity-sync { margin: 17px 25px 7px; padding: 13px; border: 1px solid #c9dfd9; border-radius: 12px; background: #eaf5f1; display: flex; align-items: center; gap: 11px; }.activity-sync > span { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; background: var(--admin-green); color: white; display: grid; place-items: center; }.activity-sync svg { width: 17px; height: 17px; }.activity-sync p { margin: 0; color: var(--admin-muted); font-size: 9px; line-height: 1.5; }.activity-sync strong { color: var(--admin-ink); font-size: 10px; }
.activity-timeline { padding: 15px 25px 8px; }.activity-entry { position: relative; padding: 0 0 18px 25px; }.activity-entry::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: -4px; width: 1px; background: #cedbda; }.activity-entry:last-child::before { display: none; }.activity-dot { position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border: 3px solid #f6f8f6; border-radius: 50%; box-shadow: 0 0 0 1px #b9c9c8; }.activity-dot.green { background: var(--admin-green); }.activity-dot.petrol { background: var(--admin-petrol); }.activity-dot.orange { background: var(--admin-orange); }.activity-dot.purple { background: #8059ab; }
.activity-card { padding: 15px; border: 1px solid var(--admin-line); border-radius: 13px; background: white; box-shadow: 0 6px 20px rgba(8,44,61,.04); }.activity-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.activity-kind { padding: 5px 7px; border-radius: 99px; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }.activity-kind.green { background: #e1f3e6; color: var(--admin-green); }.activity-kind.petrol { background: #e7f2f5; color: var(--admin-petrol); }.activity-kind.orange { background: #fff0de; color: #a9620d; }.activity-kind.purple { background: #f0e9f8; color: #74509d; }.activity-meta time { color: #87989e; font-size: 8px; }.activity-card h3 { margin: 12px 0 5px; font-size: 12px; }.activity-card > p { margin: 0; color: var(--admin-muted); font-size: 9px; line-height: 1.55; }.activity-files { margin-top: 11px; display: grid; gap: 5px; }.activity-files span { min-height: 30px; padding: 0 9px; border: 1px solid #e0e7e6; border-radius: 7px; background: #fafcfb; color: #4f6771; display: flex; align-items: center; gap: 7px; font-size: 8px; }.activity-files svg { width: 13px; height: 13px; color: var(--admin-petrol); }.activity-card footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0ef; display: flex; align-items: center; justify-content: space-between; }.activity-card footer span { color: #82949b; font-size: 8px; }.activity-card footer button { border: 0; background: transparent; color: var(--admin-petrol); cursor: pointer; font-size: 8px; font-weight: 700; }
.activity-rule { margin: 0 25px 25px; padding: 14px; border: 1px dashed #b6c8c9; border-radius: 11px; background: white; }.activity-rule strong { font-size: 10px; }.activity-rule p { margin: 5px 0 0; color: var(--admin-muted); font-size: 8px; line-height: 1.5; }

@media (max-width: 1120px) {
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-top-actions { width: 100%; }.search-box { width: 100%; flex: 1; }
  .billing-grid { grid-template-columns: 1fr; }.billing-grid article { grid-template-columns: 130px 1fr 1fr; align-items: end; }
  .reminder-builder { grid-template-columns: 40px 1fr 1fr; }.reminder-builder label:last-child { grid-column: 3; }
}

@media (max-width: 780px) {
  .admin-shell { display: block; }.admin-sidebar { position: static; width: 100%; height: auto; padding: 12px 14px; display: grid; grid-template-columns: 150px 1fr; align-items: center; }.admin-brand { height: 54px; }.admin-label, .admin-nav, .admin-spacer, .sidebar-settings, .admin-user { display: none; }
  .admin-content { padding: 24px 14px 35px; }.admin-topbar h1 { font-size: 36px; }.admin-top-actions { align-items: stretch; flex-direction: column; }.new-case-button { width: 100%; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }.admin-kpis article { min-height: 104px; padding: 15px; }.admin-kpis em { display: none; }
  .cases-toolbar { align-items: stretch; flex-direction: column; padding: 0 14px 12px; }.group-tabs { min-height: 56px; overflow-x: auto; }.group-tabs button { white-space: nowrap; }.filter-button { align-self: flex-start; }
  .wizard-backdrop { padding: 0; }.wizard-panel { max-height: 100vh; min-height: 100vh; border-radius: 0; }.wizard-header { padding: 19px 17px 15px; }.wizard-steps { padding: 13px 17px; }.wizard-steps small { display: none; }.wizard-steps div:not(:last-child)::after { left: 34px; right: 5px; }.wizard-body { padding: 20px 17px; }.form-grid.two, .mission-choice-grid { grid-template-columns: 1fr; }.form-grid label.wide { grid-column: auto; }.checklist-preview { grid-template-columns: 1fr 1fr; }.checklist-preview .preview-note { grid-column: 1 / -1; }.billing-grid article { grid-template-columns: 1fr; }.reminder-builder { grid-template-columns: 40px 1fr; }.reminder-builder label, .reminder-builder label:last-child { grid-column: 1 / -1; }.wizard-footer { padding: 13px 17px; }.success-state { padding: 35px 17px; }.link-box { align-items: stretch; flex-direction: column; }.link-box button { justify-content: center; }.success-actions { flex-direction: column-reverse; }.success-actions button { width: 100%; }
}

@media (max-width: 480px) {
  .admin-kpis { grid-template-columns: 1fr; }.admin-kpis article { min-height: 86px; }.segmented { grid-template-columns: 1fr; }.segmented button { text-align: left; padding-left: 12px; }.mission-choice-grid button { grid-template-columns: 52px 1fr; }.mission-choice-grid button b { display: none; }.mission-choice-grid img { width: 52px; height: 52px; }
}
