@media screen and (min-width: 740px) and (max-width: 959px) {
  .split:has(> .customer-detail) { grid-template-columns: minmax(0, 1fr); }
  .split > .customers-list.selected, .split > .customer-detail.placeholder { display: none; }
}
@media screen {
  .customer-detail .panel-head { flex-wrap: wrap; }
  html[data-ventro-theme] {
    --canvas:var(--theme-canvas);
    --green:var(--theme-text);
    --green-hover:color-mix(in srgb,var(--theme-text) 80%,black);
    --pine:color-mix(in srgb,var(--theme-accent) 34%,#101e17);
    --mint:color-mix(in srgb,var(--theme-accent) 11%,white);
    --line:color-mix(in srgb,var(--theme-accent) 19%,white);
    background:var(--canvas);
  }
  [data-ventro-theme] :is(.topbar,body>header) {background:var(--theme-accent);color:var(--theme-ink)}
  [data-ventro-theme] :is(.topbar .brand,.topbar .account-name,.topbar .crumb,.topbar .crumb strong,body>header a,body>header .brand) {color:var(--theme-ink)}
  [data-ventro-theme] :is(.topbar .account-controls .btn,body>header nav button) {background:transparent;color:var(--theme-ink);border:1px solid currentColor}
  [data-ventro-theme] :is(.btn.primary,.primary,.nav-button[aria-current=page],.profile-tabs a[aria-current=page],.tabs button[aria-current=page],.week-day[aria-pressed=true],.segment .btn[aria-pressed=true],.eq-tabs button[aria-pressed=true],nav[aria-label="Crew schedule"] button[aria-pressed=true]) {background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-ink)}
  [data-ventro-theme] .week-day[aria-pressed=true] strong {color:inherit}
  [data-ventro-theme] .week-day[aria-pressed=true] .dot {background:currentColor}
  [data-ventro-theme] .profile-tabs a[aria-current=page] {border-radius:7px}
  [data-ventro-theme] .panel {border-radius:12px;border-color:var(--line)}
  [data-ventro-theme] .tile:not(.amber):not(.blue) {background:var(--mint);color:var(--theme-text)}
  [data-ventro-theme] .hero {background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 48%,#071c12) 0%,color-mix(in srgb,var(--theme-accent) 35%,#071c12) 26%,rgba(9,30,19,.25) 100%),var(--dashboard-image,none) center 53% / cover,var(--pine)}
  [data-ventro-theme] dialog:has(#more-menu) {--more-sage:var(--canvas);--more-active:var(--theme-accent)}
  [data-ventro-theme] dialog {
    background:var(--theme-canvas);
    color:var(--ink,#1c2c23);
    border-color:var(--line);
  }
  [data-ventro-theme] :is(#dialog .dialog-head,#editor form > h2,.business-view > header) {
    background:var(--theme-accent);
    color:var(--theme-ink);
  }
  [data-ventro-theme] :is(.dialog-head .icon-btn.flat,.business-view > header .btn) {
    background:transparent;
    color:var(--theme-ink);
    border:1px solid currentColor;
  }
  [data-ventro-theme] :is(.dialog-head .icon-btn.flat,.business-view > header .btn):hover {
    background:color-mix(in srgb,var(--theme-ink) 12%,var(--theme-accent));
  }
  [data-ventro-theme] dialog :focus-visible {outline-color:var(--theme-text)}
  [data-ventro-theme] :is(.dialog-head,.business-view > header) button:focus-visible {outline-color:var(--theme-ink)}
  [data-ventro-theme] dialog .dialog-actions {border-color:color-mix(in srgb,var(--theme-text) 22%,var(--theme-canvas))}
  [data-ventro-theme] .business-view > header {padding:.65rem .85rem;border-radius:8px}
  [data-ventro-theme] #editor {padding:0}
  [data-ventro-theme] #editor form > h2 {margin:0;padding:.85rem 1rem}
  [data-ventro-theme] #editor :is(#fields,#form-status,footer) {margin-inline:1rem}
  [data-ventro-theme] #editor footer {padding-bottom:1rem}
  [data-ventro-theme] .equipment-page .panel {background:color-mix(in srgb,var(--theme-canvas) 50%,white)}
  [data-ventro-theme] .more-link[aria-current=page], [data-ventro-theme] .more-link[aria-current=page] .tile {color:var(--theme-ink)}
  [data-ventro-theme] .more-link[aria-current=page] .tile {background:transparent}
  [data-ventro-theme] .mobile-nav .nav-button.nav-attention[aria-current=page] .nav-count {background:var(--nav-alert-ink);color:white}
}
.page-head:is(.schedule-head,.customers-head) {display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
:is(.schedule-head,.customers-head) .actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:min(100%,660px)}
.customers-head .actions {grid-template-columns:repeat(2,minmax(0,1fr))}
:is(.schedule-head,.customers-head) .actions .btn {white-space:normal;width:100%;min-width:0;min-height:48px;padding:7px 5px;text-align:center}
:is(.schedule-head,.customers-head) .actions .icon {flex-shrink:0}
:is(.schedule-head,.customers-head) .actions .btn.primary {grid-column:1/-1;font-size:1rem}
.customers-head .actions .btn:last-child:nth-child(even) {grid-column:1/-1}
@media(max-width:360px){:is(.schedule-head,.customers-head) .btn.outline .icon{display:none}}
.profile-tabs.customer-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,660px);gap:7px;border:0}
.profile-tabs.customer-tabs a {justify-content:center;text-align:center;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green)}
.profile-tabs.customer-tabs a[aria-current] {background:var(--theme-accent,var(--green));border-color:var(--theme-accent,var(--green));color:var(--theme-ink,white)}
.appearance-settings {display:grid;gap:12px}
.appearance-settings h2,.appearance-settings p {margin:0}
.appearance-settings .color-row {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0}
.appearance-settings input[type=color] {width:56px;min-height:40px;background:white;border:1px solid var(--line);border-radius:7px;padding:3px}
.appearance-settings input[type=color]:disabled {opacity:.4}
.appearance-settings .color-presets {display:flex;gap:6px;flex-wrap:wrap}
.appearance-settings .color-presets button::before {content:"";width:15px;height:15px;border-radius:50%;background:var(--swatch)}
.appearance-settings .color-presets button[aria-pressed=true] {outline:2px solid var(--green);outline-offset:-2px}
.appearance-settings summary {cursor:pointer;font-weight:650;padding:8px 0}
.appearance-settings .color-row label {display:flex;align-items:center;gap:8px;margin:0}
