.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.control-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.control-grid h2 { margin: 0 0 16px; font-size: 20px; }
.metric-list { display: grid; gap: 9px; }
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.metric-row strong { color: var(--ink); text-align: right; }
.admin-form { display: grid; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-form input,.admin-form select,.admin-form textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: white; font: inherit; }
.admin-form textarea { resize: vertical; }
.admin-form button { border: 0; border-radius: 10px; padding: 11px 14px; background: var(--teal); color: white; font-weight: 800; }
.admin-form button.quiet { border: 1px solid var(--line); background: white; color: var(--ink); }
.route-stops { display: grid; gap: 8px; margin: 14px 0 0; padding-left: 22px; }
.route-stops li { padding-left: 4px; }
.route-stop-actions { display: inline-flex; gap: 5px; margin-left: 8px; }
.route-stop-actions button { min-height: 32px; padding: 5px 9px; }
.order-filter-form { grid-template-columns: repeat(5,minmax(130px,1fr)); align-items: end; }
.order-filter-form .filter-actions { display: flex; gap: 8px; }
.user-control-row { display: grid; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.user-control-row>div:first-child { display: grid; gap: 3px; }
.user-control-row span { color: var(--muted); font-size: 13px; }
.campaign-card h3 { margin: 22px 0 8px; font-size: 16px; }
.campaign-card .campaign-access-form { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 0; }
.campaign-courier-row { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.delivery-address { margin: 12px 0 0; font-weight: 800; }
.delivery-contact { margin: 6px 0 0; color: var(--muted); }
.details-dialog { width: min(980px,calc(100% - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 24px; color: var(--ink); }
.details-dialog::backdrop { background: rgba(14,35,33,.55); }
.details-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.details-heading span { color: var(--muted); font-size: 13px; font-weight: 800; }
.details-heading h2 { margin: 4px 0 0; font-size: 28px; }
.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.details-grid section { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.details-grid h3 { margin: 0 0 12px; }
.correction-panel { grid-column: 1 / -1; border-color: #efb3bf !important; background: #fff8f9; }
.correction-panel p { margin: -4px 0 14px; color: var(--muted); line-height: 1.5; }
.admin-form button.danger { background: #a82d49; }
.admin-form .confirmation-field { grid-template-columns: auto 1fr; align-items: center; font-size: 14px; }
.admin-form .confirmation-field input { width: 18px; min-height: 18px; }
.activation-result { margin: 0 0 18px; padding: 14px; border: 1px solid #b8d7d0; border-radius: 12px; background: var(--teal-soft); }
.activation-result p { margin: 5px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.activation-result input { width: 100%; margin-bottom: 8px; padding: 9px; border: 1px solid #9dcac3; border-radius: 8px; background: white; font: inherit; }
.event-timeline { list-style: none; margin: 2px 0 0; padding: 6px 2px 2px; display: grid; }
.event-step { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; min-height: 76px; }
.event-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 29px; bottom: -1px; width: 2px; background: #cce1dd; }
.event-marker { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #8fbfb7; border-radius: 50%; background: white; color: var(--teal); font-size: 12px; font-weight: 900; box-shadow: 0 0 0 5px white; }
.event-content { min-width: 0; padding: 2px 0 20px; display: grid; gap: 7px; }
.event-content strong { color: var(--ink); font-size: 15px; line-height: 1.3; }
.event-content time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; width: fit-content; color: var(--muted); font-size: 12px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.event-time { color: var(--teal); font-size: 13px; font-weight: 800; }
.event-step.current { min-height: 68px; }
.event-step.current .event-marker { border: 7px solid #ffd9e2; background: var(--pink); box-shadow: 0 0 0 5px white; }
.event-step.current .event-content { margin: -5px 0 10px; padding: 10px 14px 11px; border-left: 3px solid var(--pink); border-radius: 0 12px 12px 0; background: #fff3f6; }
.event-step.current .event-content strong { color: var(--teal); font-size: 16px; }
.day-map { min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,#f9fbfa,#eef6f4); }
.day-map svg { display: block; width: 100%; height: auto; min-height: 420px; }
.map-zone { fill: rgba(47,155,143,.13); stroke: #2f9b8f; stroke-width: 2; vector-effect: non-scaling-stroke; }
.map-zone:nth-of-type(even) { fill: rgba(255,79,120,.11); stroke: #e75272; }
.map-order { fill: #ff4f78; stroke: white; stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-order.problem { fill: #a82d49; }
.map-label { fill: #202124; font-size: 15px; font-weight: 800; paint-order: stroke; stroke: white; stroke-width: 4px; stroke-linejoin: round; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.map-legend span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .order-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .control-grid,.order-filter-form,.details-grid { grid-template-columns: 1fr; } .order-filter-form .filter-actions { display: grid; grid-template-columns: 1fr 1fr; } .event-content { grid-template-columns: 1fr; } }
