:root {
  --navy: #17324d;
  --navy-2: #234966;
  --teal: #087f75;
  --teal-dark: #06665f;
  --teal-soft: #e7f5f2;
  --blue-soft: #eaf2f8;
  --amber: #a76008;
  --amber-soft: #fff4dd;
  --green: #246b45;
  --green-soft: #e9f6ee;
  --ink: #17242f;
  --muted: #617181;
  --line: #dce4e9;
  --canvas: #f5f7f8;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(23, 50, 77, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(8,127,117,.25);
  outline-offset: 2px;
}

.app-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; color: var(--white); background: var(--teal);
  font-size: 14px; font-weight: 800; letter-spacing: .03em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.header-meta { display: flex; align-items: center; gap: 10px; }
.date-chip, .demo-badge { padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.date-chip { color: var(--navy); background: var(--blue-soft); }
.demo-badge { color: var(--teal-dark); background: var(--teal-soft); }

main { max-width: 1240px; margin: 0 auto; padding: 34px 24px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { margin: 4px 0 5px; color: var(--navy); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.eyebrow { margin: 0; color: var(--teal); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.button {
  min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 700; text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--line); }
.button-secondary:hover { background: #f8fafb; border-color: #bfcbd3; }
.button-danger { color: #9b2c2c; background: var(--white); border-color: #e5bcbc; }
.button-danger:hover { background: #fff5f5; border-color: #cf8f8f; }
.button-small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-icon { font-size: 18px; line-height: 0; }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.summary-item { padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.summary-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.summary-item strong { color: var(--navy); font-size: 21px; }
.day-selector { margin: -4px 0 20px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.day-selector strong, .day-selector span { display: block; }
.day-selector span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.day-selector select { min-width: 180px; height: 42px; padding: 8px 34px 8px 12px; color: var(--navy); background: var(--white); border: 1px solid #9fb0ba; border-radius: 8px; font: inherit; font-weight: 750; }

.routes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.route-card {
  overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.route-card:hover { transform: translateY(-3px); border-color: #b6ccc9; box-shadow: 0 13px 34px rgba(23,50,77,.12); }
.route-card:focus-visible { outline: 3px solid rgba(8,127,117,.25); outline-offset: 3px; }
.route-card-top { padding: 21px 22px 16px; display: flex; justify-content: space-between; gap: 16px; }
.route-name { margin: 4px 0 0; color: var(--navy); font-size: 21px; }
.route-area { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ready { color: var(--green); background: var(--green-soft); }
.status-updated { color: var(--teal-dark); background: var(--teal-soft); }
.route-people { padding: 0 22px 17px; display: flex; gap: 26px; color: var(--muted); font-size: 13px; }
.route-people strong { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; }
.route-visual { position: relative; height: 100px; margin: 0 22px 18px; border-radius: 10px; background: #f0f6f6; overflow: hidden; }
.route-line { position: absolute; left: 8%; top: 51%; width: 84%; height: 3px; background: #9dc8c3; transform: rotate(-2deg); }
.route-line::before, .route-line::after { content: ""; position: absolute; width: 34%; height: 3px; background: #9dc8c3; }
.route-line::before { left: 24%; top: -15px; transform: rotate(20deg); }
.route-line::after { right: 10%; top: 13px; transform: rotate(-17deg); }
.route-dot { position: absolute; width: 13px; height: 13px; margin: -6px 0 0 -6px; border: 3px solid var(--white); border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px #66a9a2; }
.route-dot.depot { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 5px; background: var(--navy); }
.route-dot.new { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: #d78925; box-shadow: 0 0 0 3px rgba(215,137,37,.18); }
.route-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.route-metric { padding: 16px 13px; text-align: center; border-right: 1px solid var(--line); }
.route-metric:last-child { border-right: 0; }
.route-metric span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.route-metric strong { color: var(--navy); font-size: 15px; }
.card-footer { padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--teal-dark); font-size: 13px; font-weight: 750; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 0; border: 0; background: none; color: var(--teal-dark); cursor: pointer; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; color: var(--navy); font-size: 18px; }
.stop-list { margin: 0; padding: 0; list-style: none; }
.stop { display: grid; grid-template-columns: 132px 40px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.stop:last-child { border-bottom: 0; }
.stop-time { color: var(--navy); font-weight: 800; }
.stop-marker { position: relative; width: 26px; height: 26px; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-soft); border-radius: 50%; font-size: 11px; font-weight: 800; }
.stop:not(:last-child) .stop-marker::after { content: ""; position: absolute; top: 26px; left: 12px; height: 33px; border-left: 2px solid #c8dedb; }
.stop-name { font-weight: 750; }
.stop-town { margin-top: 3px; color: var(--muted); font-size: 12px; }
.stop-meals { margin-top: 5px; color: var(--teal-dark); font-size: 12px; font-weight: 750; line-height: 1.35; }
.constraint { padding: 6px 8px; color: var(--amber); background: var(--amber-soft); border-radius: 6px; font-size: 11px; font-weight: 700; }
.constraint-none { color: var(--muted); background: #f1f4f6; }
.stop.is-new { background: #fffaf2; }
.stop.is-new .stop-name::after { content: "Nouveau"; margin-left: 8px; padding: 4px 6px; color: var(--amber); background: var(--amber-soft); border-radius: 5px; font-size: 10px; text-transform: uppercase; }
.side-panel { padding: 21px; }
.side-panel h3 { margin: 0 0 16px; color: var(--navy); }
.driver-block { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; color: var(--navy); background: var(--blue-soft); border-radius: 50%; font-weight: 800; }
.driver-block strong, .driver-block span { display: block; }
.driver-block span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.side-metrics { margin: 18px 0; }
.side-row { padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1f3; }
.side-row span { color: var(--muted); }
.side-row strong { color: var(--navy); }
.side-panel .button { width: 100%; }
.side-actions { display: grid; gap: 9px; }

.notice { margin-bottom: 20px; padding: 15px 18px; display: flex; align-items: center; gap: 11px; color: #705019; background: var(--amber-soft); border: 1px solid #f1d49b; border-radius: 10px; font-weight: 700; }
.notice-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(167,96,8,.12); }
.friday-notice { color: var(--teal-dark); background: var(--teal-soft); border-color: #bddfd8; }
.client-recap { margin-bottom: 20px; padding: 17px 20px; display: flex; justify-content: space-between; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.client-recap strong { color: var(--navy); }
.client-recap p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.recap-tags { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.tag { padding: 5px 8px; color: var(--amber); background: var(--amber-soft); border-radius: 6px; font-size: 11px; font-weight: 700; }
.tag-neutral { color: var(--muted); background: #f1f4f6; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-inner { height: 100%; min-height: 270px; padding: 20px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s, transform .15s; }
.option:hover .option-inner { transform: translateY(-2px); }
.option input:focus-visible + .option-inner { outline: 3px solid rgba(8,127,117,.25); outline-offset: 2px; }
.option input:checked + .option-inner { border-color: var(--teal); box-shadow: 0 8px 26px rgba(8,127,117,.12); }
.option-number { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.radio-ui { width: 19px; height: 19px; border: 2px solid #aebbc4; border-radius: 50%; }
.option input:checked + .option-inner .radio-ui { border: 6px solid var(--teal); }
.recommended { padding: 5px 7px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 5px; font-size: 10px; }
.option h3 { margin: 17px 0 5px; color: var(--navy); font-size: 19px; }
.option-sub { margin: 0 0 19px; color: var(--muted); font-size: 13px; }
.option-stats { margin: 0; padding: 0; list-style: none; }
.option-stats li { padding: 9px 0; display: flex; justify-content: space-between; gap: 9px; border-top: 1px solid #edf1f3; font-size: 13px; }
.option-stats span { color: var(--muted); }
.option-stats strong { color: var(--navy); text-align: right; }
.comparison-actions { margin-top: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.helper-text { margin-right: auto; color: var(--muted); font-size: 12px; }
.success { margin-bottom: 20px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; color: var(--green); background: var(--green-soft); border: 1px solid #bfe0cc; border-radius: 10px; font-weight: 750; }
.success-check { width: 25px; height: 25px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 50%; }

.demo-data-note { margin: -6px 0 20px; padding: 11px 14px; color: var(--muted); background: #eef3f5; border-radius: 9px; font-size: 12px; }
.demo-data-note strong { color: var(--navy); }
.persistence-warning { color: #7a4a16; background: #fff7e8; }
.demo-storage-panel { margin-top: 20px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); background: #eef3f5; border-radius: 10px; }
.demo-storage-panel strong, .demo-storage-panel span { display: block; }
.demo-storage-panel strong { margin-bottom: 3px; color: var(--navy); font-size: 13px; }
.demo-storage-panel span { font-size: 12px; }
.clients-toolbar { margin: 0 0 10px; padding: 14px; display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(130px, 1fr)) minmax(210px, 1.25fr) auto; align-items: end; gap: 10px; background: #f5f8f9; border: 1px solid var(--line); border-radius: 10px; }
.client-control { min-width: 0; }
.client-control label { margin-bottom: 5px; display: block; color: var(--navy); font-size: 11px; font-weight: 750; }
.client-control input, .client-control select { width: 100%; min-width: 0; height: 38px; padding: 7px 30px 7px 10px; color: var(--ink); background: var(--white); border: 1px solid #bfcbd3; border-radius: 8px; }
.client-control input { padding-right: 10px; }
.client-sort-control > div { display: flex; gap: 7px; }
.client-sort-control select { flex: 1 1 auto; }
.client-sort-control button { flex: 0 0 auto; }
.client-filter-reset { white-space: nowrap; }
.client-results-summary { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.clients-list { display: grid; gap: 16px; }
.client-card { padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.client-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.client-card-head h2 { margin: 4px 0 0; color: var(--navy); font-size: 19px; }
.client-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.client-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 22px; margin: 18px 0 0; }
.client-details div { min-width: 0; }
.client-details dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.client-details dd { margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.meal-summary { font-weight: 700; color: var(--teal-dark); }
.client-plan-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.client-plan-details[hidden] { display: none; }
.client-plan-details h3 { margin: 0 0 10px; color: var(--navy); font-size: 15px; }
.empty-state { padding: 34px; color: var(--muted); background: var(--white); border: 1px dashed #bfcbd3; border-radius: var(--radius); text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; padding: 24px; display: grid; place-items: center; background: rgba(18,35,48,.5); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(900px, 100%); max-height: calc(100vh - 48px); padding: 24px; overflow-y: auto; background: var(--white); border-radius: 16px; box-shadow: 0 24px 70px rgba(10,30,45,.25); }
.modal-header { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.modal-header h2 { margin: 5px 0 0; color: var(--navy); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); cursor: pointer; font-size: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { color: var(--navy); font-size: 13px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; height: 43px; margin-top: 7px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid #bfcbd3; border-radius: 8px; }
.form-error { margin: -6px 0 0; color: #a12d2d; font-size: 12px; font-weight: 700; }
.address-field { position: relative; }
.address-input-row { display: flex; gap: 8px; align-items: flex-end; }
.address-input-row input { flex: 1; min-width: 0; }
.location-button { height: 43px; margin-top: 7px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #8ca2af; border-radius: 8px; color: var(--navy); background: #f7fafb; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.location-button:hover { background: #edf4f3; border-color: var(--green); }
.location-button:disabled { cursor: wait; opacity: .65; }
.address-status { display: block; min-height: 18px; margin-top: 5px; color: #60727d; font-size: 12px; font-weight: 500; }
.address-status[data-kind="success"] { color: #16715f; }
.address-status[data-kind="warning"] { color: #8a5a16; }
.address-suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: 70px; max-height: 230px; margin: 0; padding: 5px; overflow-y: auto; list-style: none; border: 1px solid #aebdc5; border-radius: 9px; background: var(--white); box-shadow: 0 12px 28px rgba(10,30,45,.18); }
.address-suggestions[hidden] { display: none; }
.address-suggestions li { padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.address-suggestions li:hover, .address-suggestions li[aria-selected="true"] { background: #eaf4f1; }
.address-suggestions strong, .address-suggestions span { display: block; }
.address-suggestions span { margin-top: 2px; color: #60727d; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
fieldset { margin: 20px 0 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; }
legend { padding: 0 6px; color: var(--navy); font-size: 13px; font-weight: 700; }
.fieldset-help { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.meal-grid-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.meal-grid-scroll:focus-visible { outline: 3px solid rgba(8,127,117,.22); outline-offset: 2px; }
.meal-planning-table { width: 100%; min-width: 690px; border-collapse: collapse; table-layout: fixed; background: var(--white); }
.meal-planning-table th, .meal-planning-table td { padding: 8px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.meal-planning-table tr:last-child th, .meal-planning-table tr:last-child td { border-bottom: 0; }
.meal-planning-table th:last-child, .meal-planning-table td:last-child { border-right: 0; }
.meal-planning-table thead th { color: var(--navy); background: #f2f7f6; font-size: 11px; }
.meal-planning-table .meal-row-label { position: sticky; left: 0; z-index: 1; width: 82px; color: var(--navy); background: #f7faf9; font-size: 12px; text-align: left; }
.meal-planning-table input { width: 52px; height: 38px; padding: 6px; border: 1px solid #aebdc5; border-radius: 7px; color: var(--ink); background: var(--white); text-align: center; font: inherit; }
.meal-planning-table input:focus { outline: 3px solid rgba(8,127,117,.18); border-color: var(--teal); }
.meal-grid-error { margin: 10px 0 0; }
.client-plan-details .meal-planning-table { min-width: 610px; }
.client-plan-details .meal-planning-table td { color: var(--ink); font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 5px; margin: 6px 16px 4px 0; color: var(--ink); font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--teal); }
.modal-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.options-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recommendation-explanation { margin-top: 18px; padding: 15px 17px; display: flex; align-items: flex-start; gap: 12px; color: var(--ink); background: #eef7f4; border: 1px solid #c8e2d9; border-radius: 10px; font-size: 13px; }
.recommendation-explanation strong { color: var(--teal-dark); }
.recommendation-explanation span { line-height: 1.5; }
.notice-test-data { color: #76520f; background: #fff8e6; border-color: #ead7a5; }
.routing-error { margin: 0; padding: 16px 18px; background: #fff0f0; border: 1px solid #e5b7b7; border-radius: 10px; }

@media (max-width: 900px) {
  .routes-grid, .detail-layout { grid-template-columns: 1fr; }
  .client-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-search-control { grid-column: 1 / -1; }
  .options, .options-two { grid-template-columns: 1fr; }
  .option-inner { min-height: auto; }
}
@media (max-width: 650px) {
  .app-header { height: auto; padding: 14px 16px; align-items: flex-start; }
  .header-meta { align-items: flex-end; flex-direction: column; }
  .date-chip { display: none; }
  main { padding: 26px 16px 44px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .day-selector { align-items: stretch; flex-direction: column; }
  .day-selector select { width: 100%; }
  .summary-strip { grid-template-columns: 1fr; }
  .route-metrics { grid-template-columns: repeat(2, 1fr); }
  .route-metric:nth-child(2) { border-right: 0; }
  .route-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stop { grid-template-columns: 116px 32px minmax(0, 1fr); padding: 15px; }
  .constraint { grid-column: 3; justify-self: start; }
  .client-recap { flex-direction: column; }
  .recap-tags { justify-content: flex-start; }
  .comparison-actions { align-items: stretch; flex-direction: column; }
  .helper-text { margin: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .client-card-head { flex-direction: column; }
  .client-card-actions { justify-content: flex-start; }
  .client-details { grid-template-columns: 1fr; }
  .clients-toolbar { grid-template-columns: minmax(0, 1fr); }
  .client-search-control { grid-column: auto; }
  .client-control input, .client-control select, .client-filter-reset { width: 100%; }
  .client-sort-control > div { align-items: stretch; flex-direction: column; }
  .demo-storage-panel { align-items: stretch; flex-direction: column; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); padding: 18px 14px; border-radius: 12px; }
  .meal-planning-table { min-width: 650px; }
}
