.taxi-shift-panel {
  width: min(100%, 650px);
  margin: 24px auto 30px;
  padding: 23px 25px 20px;
  border: 1px solid #ffffffe8;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffffff1, #edf5e9ed);
  box-shadow: 0 14px 34px #51684a38, 0 2px 3px #fff inset;
  color: #243622;
}
.taxi-shift-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.taxi-shift-head .message-label { margin: 0 0 4px; color: #73856c; }
.taxi-shift-head h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.04em; }
.taxi-shift-close { width: 35px; height: 35px; border: 1px solid #cfddc7; border-radius: 50%; background: #f7fbf4; color: #475943; font-size: 27px; line-height: 1; }
.taxi-shift-close:hover { background: #e9f3e2; }
.taxi-shift-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.top-actions #taxi-shortcut { display: none !important; }
.taxi-native-setup { margin: 15px 0; padding: 15px; border: 1px solid #b4c99f; border-radius: 15px; background: #f5faee; }
.taxi-native-setup strong { display: block; color: #294e31; }
.taxi-native-setup p { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.taxi-native-setup a, .taxi-native-setup button { display: inline-block; margin: 7px 8px 7px 0; padding: 10px 13px; border: 0; border-radius: 10px; background: #2d6038; color: white; font-weight: 700; text-decoration: none; }
.taxi-native-setup output { display: block; margin-top: 8px; font-weight: 800; }
.taxi-pair-prompt { max-width: min(580px, 96%); }
.taxi-pair-prompt .message-body { border-color: #e6c25a; background: linear-gradient(145deg,#fff9dc,#f3edce); }
.taxi-pair-prompt strong { display: block; font-size: 18px; line-height: 1.3; }
.taxi-pair-prompt p { margin: 9px 0 14px; font-size: 14px; line-height: 1.5; }
.taxi-pair-prompt button { padding: 11px 15px; border: 0; border-radius: 12px; background: #285a36; color: white; font-weight: 800; }
.taxi-shift-switch-row strong { display: block; font-size: 19px; }
.taxi-shift-switch-row strong em { margin-left: 3px; color: #71846c; font-size: 12px; font-style: normal; font-weight: 800; }
.taxi-shift-switch-row small { display: block; margin-top: 3px; color: #687b62; font-size: 11px; line-height: 1.4; }
.taxi-shift-switch-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.taxi-switch-track { position: relative; display: block; flex: none; width: 59px; height: 33px; border: 1px solid #a6b3a0; border-radius: 99px; background: #c8d3c3; box-shadow: 0 2px 4px #62705b33 inset; transition: background .2s; }
.taxi-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #52634b55; transition: transform .2s; }
.taxi-shift-switch-row input:checked + .taxi-switch-track { background: #4b9e50; border-color: #438c49; }
.taxi-shift-switch-row input:checked + .taxi-switch-track::after { transform: translateX(26px); }
.taxi-shift-switch-row input:focus-visible + .taxi-switch-track { outline: 2px solid #345f34; outline-offset: 3px; }
.taxi-shift-switch-row input:disabled + .taxi-switch-track { opacity: .52; cursor: not-allowed; }
.taxi-shift-status { min-height: 30px; margin: 13px 0 18px; padding: 7px 12px; border-radius: 10px; background: #e8eee3; color: #596b53; font-size: 12px; font-weight: 800; }
.taxi-shift-status.is-working { background: #d6efce; color: #2a6d32; }
.taxi-shift-status.is-error { background: #f8e7df; color: #a34937; }
.top-actions .taxi-toggle.has-new-order, .top-actions .taxi-shortcut.has-new-order {
  border-color: #b92525; background: #ee4242; color: #fff;
  animation: ibeza-taxi-new-order 1s ease-in-out infinite;
}
@keyframes ibeza-taxi-new-order {
  50% { background: #ff8981; box-shadow: 0 0 0 5px #f4515180, 0 0 18px #cf2929; }
}
@media (prefers-reduced-motion: reduce) {
  .top-actions .taxi-toggle.has-new-order, .top-actions .taxi-shortcut.has-new-order { animation: none; }
}
.taxi-shift-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.taxi-shift-times .taxi-time-group { min-width: 0; }
.taxi-shift-times label { display: grid; gap: 7px; color: #52644d; font-size: 12px; font-weight: 800; }
.taxi-shift-times input { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #b7cbb0; border-radius: 11px; background: #fff; color: #233d27; font: inherit; font-size: 17px; }
.taxi-shift-times input:disabled { opacity: .65; }
.taxi-shift-duration { margin: 13px 0 8px; color: #2f6136; font-size: 13px; font-weight: 800; }
.taxi-shift-hint { margin: 0; color: #798672; font-size: 11px; line-height: 1.5; }
.taxi-fleet-info { padding: 8px; margin: 6px 0; border: 1px solid #edc34f; border-radius: 10px; background: #fff3bd; color: #493c15; line-height: 1.2; }
.taxi-fleet-info p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; margin: 0 0 5px; }
.taxi-fleet-info strong { display: block; font-size: 16px; font-weight: 900; line-height: 1.2; }
.taxi-fleet-info span { display: block; margin: 0; font-size: 16px; font-weight: 800; }
.taxi-fleet-info .taxi-fleet-free { color: #176635; }
.taxi-fleet-info .taxi-fleet-soon { color: #a24300; padding-top: 5px; border-top: 1px solid #deb348; }
.taxi-fleet-info small { display: block; color: #675724; font-size: 9px; line-height: 1.2; }
.taxi-history { margin: 12px 0; min-width: 0; }
.taxi-order-form .taxi-history { grid-column: 1 / -1; }
.taxi-history-list { display: grid; gap: 10px; margin-top: 10px; }
.taxi-history-item { padding: 12px; border: 1px solid #e4e7df; border-radius: 13px; background: #fff; overflow-wrap: anywhere; }
.taxi-history-item p { margin: 4px 0; font-size: 13px; }
.taxi-history-item ol { margin: 8px 0 0; padding-left: 20px; font-size: 12px; color: #68715f; }
@media (max-width: 560px) {
  .taxi-shift-panel { margin: 17px auto 25px; padding: 20px 18px 18px; border-radius: 23px; }
  .taxi-shift-head h2 { font-size: 20px; }
  .taxi-shift-times { gap: 9px; }
}
