:root {
  --blue-950: #082454;
  --blue-900: #09336f;
  --blue-800: #074ba8;
  --blue-700: #075bd8;
  --blue-500: #2f80ed;
  --blue-100: #deedff;
  --sky-50: #f4f8fd;
  --cream: #fffdf8;
  --ink: #14213d;
  --muted: #66758d;
  --line: #dbe4ef;
  --orange: #f28c28;
  --red: #d92d3f;
  --red-soft: #fff0f1;
  --green: #0d845b;
  --shadow: 0 18px 50px rgba(9, 51, 111, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky-50);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: white; color: var(--blue-900); padding: 10px 14px; border-radius: 10px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(9,51,111,.09); backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-950); }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 18px rgba(7,75,168,.22); }
.brand span, .footer-brand span { display: flex; flex-direction: column; }
.brand strong { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.manage-button, .primary-button {
  border: 0; border-radius: 12px; background: var(--blue-700); color: white;
  font-weight: 800; padding: 12px 17px; box-shadow: 0 8px 24px rgba(7,91,216,.22);
}
.manage-button:hover, .primary-button:hover { background: var(--blue-800); }
.manage-button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(242,140,40,.45); outline-offset: 2px;
}

.hero {
  display: block; padding-block: 34px 28px; position: relative;
}
.hero::before {
  content: ""; position: absolute; width: 170px; height: 170px; left: -110px; top: 46px;
  border: 34px solid var(--blue-100); border-radius: 50%; opacity: .7;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 13px; display: flex; align-items: center; gap: 9px; color: var(--blue-700);
  font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800;
}
.eyebrow span { width: 22px; height: 3px; border-radius: 99px; background: var(--orange); }
h1, h2 { font-family: Manrope, sans-serif; color: var(--blue-950); margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.12; max-width: 780px; }
h1 em { color: var(--blue-700); font-style: normal; }
.intro { color: var(--muted); font-size: 16px; line-height: 1.45; max-width: 780px; margin: 7px 0 15px; }
.search-wrap {
  height: 66px; background: white; border: 1px solid var(--line); border-radius: 18px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: var(--shadow); max-width: 690px;
}
.search-wrap svg { width: 23px; height: 23px; fill: none; stroke: var(--blue-700); stroke-width: 2; flex: 0 0 auto; }
.search-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 16px; }
.search-wrap input::placeholder { color: #8b98aa; }
.search-wrap kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; color: var(--muted); padding: 4px 7px; font-size: 11px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.hero-meta b { color: var(--blue-950); }
.private-pill { color: var(--green); font-weight: 800; }
.private-pill::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #18a874; }

.route-visual {
  min-height: 340px; position: relative; border-radius: 34px;
  background: #e8f2ff; overflow: hidden; border: 1px solid rgba(7,91,216,.1);
}
.route-visual::after {
  content: ""; position: absolute; inset: 0; opacity: .42;
  background-image: radial-gradient(#8ab6ed 1.2px, transparent 1.2px); background-size: 18px 18px;
}
.route-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.route-visual path { fill: none; stroke: var(--blue-700); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 4 13; }
.map-dot { position: absolute; z-index: 3; width: 17px; height: 17px; border: 5px solid white; border-radius: 50%; background: var(--orange); box-shadow: 0 4px 10px rgba(8,36,84,.3); }
.dot-a { left: 28px; bottom: 30px; }.dot-b { left: 53%; top: 51%; }.dot-c { right: 24px; top: 35px; }
.floating-card {
  position: absolute; z-index: 4; background: white; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 16px 32px rgba(8,36,84,.16); display: grid; min-width: 174px; border-left: 4px solid var(--orange);
}
.floating-card small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.floating-card strong { font-family: Manrope, sans-serif; color: var(--blue-800); font-size: 28px; line-height: 1.1; }
.floating-card strong.setup-label { font-size: 19px; margin-block: 3px; }
.floating-card span { font-size: 11px; font-weight: 700; color: var(--blue-950); }
.card-a { left: 23px; top: 34px; }.card-b { right: 24px; bottom: 28px; }

.planner { background: white; border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow); border: 1px solid rgba(9,51,111,.08); }
.section-heading, .results-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { font-size: clamp(27px, 3vw, 38px); }
.text-button { border: 0; background: transparent; color: var(--blue-700); font-weight: 800; padding: 9px; }
.filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; margin-top: 13px; }
.filters label, .form-grid label, .full-field { display: grid; gap: 7px; color: var(--blue-950); font-size: 12px; font-weight: 800; }
.filters select, .filters input, .form-grid input, .form-grid select, .full-field input {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white;
  padding: 12px 13px; min-height: 45px; outline: 0;
}
.filters select:focus, .filters input:focus, .form-grid input:focus, .form-grid select:focus, .full-field input:focus { border-color: var(--blue-500); }

.results-section { padding-block: 28px 32px; }
.travel-times { padding-block: 28px 42px; }
.travel-times h2 { margin: 0 0 17px; }
.travel-times-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.travel-times-grid p { display: grid; gap: 7px; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.travel-times-grid strong { color: var(--blue-950); }
.travel-times-grid span { color: var(--blue-700); font-weight: 800; }
.travel-times small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .travel-times-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 420px) { .travel-times-grid { grid-template-columns: 1fr; } }
.results-heading p { color: var(--blue-700); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 6px; }
.results-controls { display: flex; align-items: end; gap: 14px; }
.sort-control { display: grid; gap: 5px; color: var(--blue-950); font-size: 13px; font-weight: 800; }
.sort-control select { border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; min-height: 42px; padding: 8px 12px; font: inherit; }
.sort-control select:focus { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.view-switch { background: #e8eef7; padding: 4px; border-radius: 12px; display: flex; }
.view-switch button { border: 0; background: transparent; color: var(--muted); padding: 8px 11px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.view-switch button.active { background: white; color: var(--blue-800); box-shadow: 0 3px 10px rgba(8,36,84,.1); }
.active-filters { min-height: 35px; display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; }
.filter-chip { border: 1px solid var(--blue-100); background: white; color: var(--blue-800); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.service-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px;
  min-width: 0; box-shadow: 0 8px 26px rgba(8,36,84,.055); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--blue-700); }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(8,36,84,.1); border-color: #bfd2ec; }
.service-card.no-service { background: var(--red-soft); border-color: #ffcbd0; }
.service-card.no-service::before { background: var(--red); }
.service-card.consult { background: #fff9e8; border-color: #f4d999; }
.service-card.consult::before { background: var(--orange); }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.company-block { display: flex; align-items: center; gap: 9px; min-width: 0; }
.company { color: var(--blue-700); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.company-logo, .company-logo-fallback { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; border: 1px solid var(--line); background: white; }
.company-logo { object-fit: contain; padding: 3px; }
.company-logo-fallback { display: grid; place-items: center; color: var(--blue-800); background: var(--blue-100); font-size: 10px; font-weight: 800; }
.date-badge { white-space: nowrap; background: var(--blue-100); color: var(--blue-800); border-radius: 8px; padding: 5px 8px; font-size: 12px; font-weight: 800; }
.route { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; }
.route strong { font-family: Manrope, sans-serif; font-size: 20px; color: var(--blue-950); line-height: 1.15; }
.route-arrow { color: var(--orange); font-size: 21px; font-weight: 800; }
.direction { margin: 0; color: var(--muted); font-size: 12px; }
.operators { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.note { display: inline-block; color: var(--blue-800); background: #edf5ff; margin-top: 10px; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.ticket-link { display: inline-flex; align-items: center; width: fit-content; margin-top: 12px; color: var(--blue-800); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ticket-link:hover, .ticket-link:focus-visible { color: var(--blue-950); }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.time {
  min-width: 68px; padding: 9px 10px; border-radius: 10px; text-align: center; background: var(--blue-950);
  color: white; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.02em;
}
.no-service-label { margin-top: 22px; color: var(--red); font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.no-service-label span { display: inline-block; width: 9px; height: 9px; background: var(--red); border-radius: 50%; margin-right: 8px; }
.consult-label { margin-top: 22px; color: #a76000; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; }
.consult-label span { display: inline-block; width: 9px; height: 9px; background: var(--orange); border-radius: 50%; margin-right: 8px; }
.card-actions { display: none; gap: 8px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-open .card-actions { display: flex; }
.card-actions button { border: 0; border-radius: 8px; padding: 7px 9px; font-size: 11px; font-weight: 800; }
.edit-card { color: var(--blue-800); background: var(--blue-100); }
.delete-card { color: var(--red); background: var(--red-soft); }
.empty-state { grid-column: 1 / -1; background: white; border: 1px dashed #b9cbe1; border-radius: var(--radius-md); padding: 52px 24px; text-align: center; }
.empty-state .empty-icon { font-size: 38px; }
.empty-state h3 { color: var(--blue-950); margin: 12px 0 6px; }
.empty-state p { color: var(--muted); margin: 0; }
.empty-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.results-grid.compact { grid-template-columns: 1fr; gap: 9px; }
.results-grid.compact .service-card { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; align-items: center; gap: 15px; padding: 15px 18px; }
.results-grid.compact .service-card::before { inset: 0 auto 0 0; width: 4px; height: auto; }
.results-grid.compact .route { margin: 0; }
.results-grid.compact .times, .results-grid.compact .no-service-label { margin: 0; justify-content: flex-end; }
.results-grid.compact .direction, .results-grid.compact .note { display: none; }
.results-grid.schedule { grid-template-columns: 1fr; gap: 7px; }
.schedule-row { display: grid; grid-template-columns: 110px minmax(150px,1fr) 180px minmax(220px,1.6fr); gap: 14px; align-items: center; padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; background: white; min-width: 0; }
.schedule-row.no-service { background: var(--red-soft); }
.schedule-row.consult { background: #fff9e8; }
.schedule-hour { font-family: Manrope,sans-serif; font-size: 22px; font-weight: 800; color: var(--blue-950); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-row.no-service .schedule-hour { color: var(--red); font-size: 13px; white-space: normal; }
.schedule-row.consult .schedule-hour { color: #a76000; font-size: 13px; white-space: normal; }
.schedule-company { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--blue-800); font-size: 14px; }
.schedule-company strong { overflow-wrap: anywhere; }
.schedule-days { font-size: 14px; font-weight: 700; color: var(--blue-950); }
.schedule-route { display: grid; gap: 3px; font-size: 14px; color: var(--ink); }
.schedule-route small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.schedule-row .card-actions { grid-column: 1 / -1; margin-top: 0; }

.notice { margin-block: 20px 60px; background: #e5f1ff; border: 1px solid #c7ddf8; color: var(--blue-950); border-radius: var(--radius-md); padding: 18px 20px; display: flex; gap: 13px; align-items: start; }
.notice-icon { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-700); color: white; display: grid; place-items: center; font-weight: 800; }
.notice p { color: #4c617e; margin: 3px 0 0; line-height: 1.5; font-size: 13px; }
footer { background: var(--blue-950); color: white; }
.footer-inner { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.footer-brand small, footer p { color: #b9cae3; font-size: 12px; margin: 0; }

.panel-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(8,36,84,.45); backdrop-filter: blur(2px); }
.manager-panel {
  position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(650px, 100%); background: var(--cream);
  padding: 28px; overflow-y: auto; transform: translateX(105%); transition: transform .25s ease;
  box-shadow: -20px 0 60px rgba(8,36,84,.2);
}
.manager-panel.open { transform: translateX(0); }
.manager-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.manager-head .eyebrow { margin-bottom: 5px; }.manager-head h2 { font-size: 32px; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--blue-950); font-size: 25px; }
.manager-intro { color: var(--muted); line-height: 1.5; margin: 15px 0 22px; }
.company-manager { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 18px; }
.company-manager h3 { margin: 0 0 12px; color: var(--blue-950); }
.company-manager-controls { display: flex; gap: 9px; align-items: end; flex-wrap: wrap; }
.company-manager-controls label:first-child { flex: 1 1 220px; display: grid; gap: 5px; font-size: 14px; font-weight: 800; color: var(--blue-950); }
.company-manager-controls select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.company-help { color: var(--muted); font-size: 13px; margin: 10px 0; }
.company-manager-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 195px; overflow: auto; }
.company-tile { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--sky-50); color: var(--blue-950); text-align: left; font-size: 13px; }
.company-tile span:last-child { overflow-wrap: anywhere; }
#serviceForm { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.days-field { grid-column: 1 / -1; margin: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; display: flex; flex-wrap: wrap; gap: 8px 13px; }
.days-field[hidden] { display: none; }
.days-field legend { padding-inline: 4px; color: var(--blue-950); font-size: 12px; font-weight: 800; }
.days-field label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 5px; font-size: 12px; }
.days-field input { width: 16px; min-height: 16px; accent-color: var(--blue-700); }
.full-field { margin-top: 13px; }.full-field small { color: var(--muted); font-weight: 500; }
.logo-field { display: grid; gap: 8px; margin-top: 15px; }
.logo-field-label { color: var(--blue-950); font-size: 12px; font-weight: 800; }
.logo-field-label small { color: var(--muted); font-weight: 500; }
.logo-upload { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px dashed #b9cbe1; border-radius: 13px; background: var(--sky-50); }
.logo-preview { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; color: var(--blue-800); background: white; font-size: 11px; font-weight: 800; }
.logo-preview img { width: 100%; height: 100%; padding: 6px; object-fit: contain; }
.logo-upload-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logo-upload-controls small { flex-basis: 100%; color: var(--muted); font-weight: 500; line-height: 1.4; }
.upload-button { display: inline-flex; align-items: center; cursor: pointer; }
.form-actions, .manager-tools { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.secondary-button, .danger-button { border-radius: 10px; padding: 10px 12px; font-weight: 800; background: white; }
.secondary-button { border: 1px solid var(--line); color: var(--blue-800); }
.danger-button { border: 1px solid #ffcbd0; color: var(--red); }
.manager-tools { padding: 17px 0; border-bottom: 1px solid var(--line); }
.format-hint { margin: 0; padding: 12px; border-radius: 10px; background: #edf5ff; color: #4c617e; font-size: 11px; line-height: 1.5; }
.manager-list { display: grid; gap: 8px; padding-top: 15px; }
.manager-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: white; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.manager-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.manager-row-copy { min-width: 0; }
.manager-row .company-logo, .manager-row .company-logo-fallback { width: 38px; height: 38px; border-radius: 10px; }
.manager-row strong { display: block; color: var(--blue-950); font-size: 13px; }
.manager-row small { color: var(--muted); }
.manager-row button { border: 0; background: var(--blue-100); color: var(--blue-800); font-size: 11px; font-weight: 800; padding: 7px 9px; border-radius: 7px; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--blue-950); color: white; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .22s; font-weight: 700; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 950px) {
  .hero { padding-top: 30px; }
  .route-visual { min-height: 260px; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .filters label:last-child { grid-column: span 2; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 14px; }.brand small { display: none; }
  .manage-button { width: 43px; height: 43px; padding: 0; font-size: 0; }
  .manage-button span { font-size: 23px; }
  .hero { padding-block: 22px 18px; }
  h1 { font-size: clamp(31px, 9vw, 42px); }
  .intro { font-size: 14px; margin-top: 5px; }
  .search-wrap { height: 58px; border-radius: 15px; padding-inline: 13px; }
  .search-wrap kbd { display: none; }
  .hero-meta { gap: 12px; }
  .route-visual { min-height: 230px; border-radius: 24px; }
  .floating-card { min-width: 146px; padding: 11px 12px; }.floating-card strong { font-size: 23px; }
  .card-a { left: 14px; top: 18px; }.card-b { right: 14px; bottom: 18px; }
  .planner { width: 100%; border-radius: 0; border-inline: 0; padding: 16px 18px; }
  .section-heading { align-items: center; }.section-heading h2 { font-size: 27px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 11px; }
  .filters label:nth-child(3) { grid-column: span 2; }
  .results-section { padding-top: 21px; }
  .results-heading { align-items: start; gap: 12px; flex-direction: column; }
  .results-controls { display: grid; width: 100%; gap: 10px; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; min-height: 42px; padding: 7px 5px; }
  .results-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 88px minmax(0,1fr); gap: 8px 12px; padding: 13px; }
  .schedule-hour { grid-row: 1 / 3; align-self: start; font-size: 19px; }
  .schedule-company { grid-column: 2; }
  .schedule-days { grid-column: 2; font-size: 13px; }
  .schedule-route { grid-column: 1 / -1; padding-top: 5px; border-top: 1px solid var(--line); }
  .service-card { padding: 18px; }
  .time { min-width: 64px; font-size: 16px; }
  .notice { margin-bottom: 36px; }
  .footer-inner { min-height: 140px; flex-direction: column; align-items: start; justify-content: center; }
  .manager-panel { padding: 20px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .company-manager-list { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .hero-meta span:nth-child(2) { display: none; }
  .route-visual { min-height: 208px; }
  .floating-card { min-width: 135px; }.floating-card span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.editor-mode { display: flex; gap: 5px; padding: 4px; background: #e8f0fb; border-radius: 12px; margin-bottom: 18px; }
.editor-mode button { flex: 1; border: 0; border-radius: 9px; background: transparent; color: var(--blue-900); padding: 10px; font-weight: 800; }
.editor-mode button.active { background: white; box-shadow: 0 2px 8px rgba(8,36,84,.1); }
.manager-panel.bulk-open { width: min(1440px, 100%); }
.bulk-editor[hidden], #singleEditor[hidden] { display: none; }
.bulk-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.bulk-heading h3 { margin: 0 0 4px; color: var(--blue-950); font-size: 22px; }
.bulk-heading p, .bulk-help, .bulk-count { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.bulk-dirty { flex: none; color: var(--blue-900); background: #e8f0fb; border-radius: 8px; padding: 7px 10px; font-size: 13px; font-weight: 800; }
.bulk-toolbar { display: flex; gap: 9px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.bulk-toolbar label { flex: 1 1 250px; display: grid; gap: 5px; color: var(--blue-950); font-size: 14px; font-weight: 700; }
.bulk-toolbar input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.bulk-toolbar button { min-height: 43px; }
.bulk-toolbar button:disabled { opacity: .5; cursor: not-allowed; }
.bulk-help { margin-bottom: 12px; }
.bulk-table-wrap { overflow-x: auto; max-height: min(62vh, 740px); border: 1px solid var(--line); border-radius: 12px; background: white; }
.bulk-table { border-collapse: collapse; width: 100%; min-width: 1120px; }
.bulk-table th { position: sticky; top: 0; z-index: 1; background: var(--blue-950); color: white; text-align: left; font-size: 13px; padding: 12px 8px; }
.bulk-table td { border-top: 1px solid var(--line); padding: 6px; }
.bulk-table tr:nth-child(even) { background: #f7faff; }
.bulk-table input, .bulk-table select { width: 100%; min-width: 105px; border: 1px solid #cddbee; border-radius: 7px; background: white; padding: 9px 7px; color: var(--ink); font-size: 14px; }
.bulk-table td:nth-child(3) input { min-width: 178px; }
.bulk-table td:nth-child(7) input { min-width: 175px; }
.bulk-table td:nth-child(8) input { min-width: 150px; }
.bulk-table input:focus, .bulk-table select:focus { outline: 2px solid var(--blue-700); outline-offset: 1px; }
.bulk-remove { background: var(--red-soft); color: var(--red); border: 0; border-radius: 8px; width: 36px; height: 38px; font-size: 23px; }
.bulk-count { margin-top: 8px; }
.admin-link { color: #fff; margin-left: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .bulk-heading { flex-direction: column; } .bulk-toolbar button { flex: 1 1 45%; } .bulk-table-wrap { max-height: 55vh; } }
