/* 170Taxi — 雲天色調（明暗中間版） */
:root {
  --ocean-sky: #e9f1f6;
  --ocean-mist: #d3e1e9;
  --ocean-wave: #abc2d0;
  --ocean-deep: #8fa6b9;
  --ocean-shadow: #435663;

  --text: #334149;
  --text-muted: #5e7889;
  --card: rgba(255, 255, 255, 0.88);
  --card-border: rgba(122, 154, 172, 0.35);
  --accent: #52a5d1;
  --accent-hover: #3d8fbf;
  --accent-text: #ffffff;
  --link: #3580ad;
  --code: #3580ad;
  --success: #3d8f7a;
  --error: #c45c5c;
  --input-bg: rgba(255, 255, 255, 0.95);
  --input-border: rgba(122, 154, 172, 0.5);
  --tag-bg: rgba(171, 194, 208, 0.4);
  --table-border: rgba(122, 154, 172, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--ocean-mist);
  background-image: linear-gradient(
    170deg,
    var(--ocean-sky) 0%,
    #d8e6ee 35%,
    var(--ocean-wave) 72%,
    var(--ocean-deep) 100%
  );
  background-attachment: fixed;
}

.hint {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  align-self: center;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.wrap-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--ocean-shadow);
}

h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--ocean-shadow);
}

p {
  color: var(--text-muted);
}

.sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(90, 115, 136, 0.14);
}

.card:first-of-type {
  margin-top: 0;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.row-tight {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}

a {
  color: var(--link);
}

a.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}

a.btn:hover,
button.primary:hover {
  background: var(--accent-hover);
}

a.btn.secondary,
button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--input-border);
  color: var(--text);
}

code {
  font-size: 0.85em;
  color: var(--code);
}

input,
select,
button {
  font-size: 1rem;
  border-radius: 8px;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
}

input:focus,
select:focus {
  outline: 2px solid rgba(82, 165, 209, 0.45);
  outline-offset: 1px;
  border-color: var(--accent);
}

button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  background: var(--accent);
  color: var(--accent-text);
}

button.secondary {
  width: auto;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--input-border);
  color: var(--text);
}

.row-tight input,
.row-tight select {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.booking-time-panel select {
  margin: 8px 0;
}

.booking-time-row {
  margin-bottom: 4px;
}

.payment-select-trigger > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg {
  margin-top: 12px;
  min-height: 1.2em;
  color: var(--error);
}

.msg.success {
  color: var(--success);
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.label-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.label-check input {
  width: auto;
  margin: 4px 0 0;
}

#status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px;
  backdrop-filter: blur(6px);
}

.stat b {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.admin-tabs button {
  flex: 1;
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-tabs button.active {
  border-color: var(--accent);
  background: rgba(82, 165, 209, 0.15);
  color: var(--ocean-shadow);
  font-weight: 600;
}

.admin-panel[hidden] {
  display: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-actions button,
.admin-actions a.btn-mini {
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.admin-actions button.primary-mini {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.admin-actions button.danger-mini {
  border-color: var(--error);
  color: var(--error);
}

.broadcast-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 8px;
}

.order-history-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--table-border);
}

.order-history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.order-history-item:first-child {
  padding-top: 0;
}

.order-history-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 8px;
}

.page-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--ocean-shadow);
}

.contact-section-title {
  margin: 16px 0 4px;
  font-size: 1rem;
  color: var(--ocean-shadow);
}

.contact-section-hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
}

.contact-primary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--table-border);
}

.contact-fallback {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--table-border);
}

.fallback-toggle {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 0;
  font-size: 0.88rem;
}

.fallback-hint {
  font-size: 0.85rem;
  margin: 8px 0 4px;
}

.chat-message-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.chat-empty {
  margin: 0;
  font-size: 0.88rem;
}

.chat-bubble {
  margin-bottom: 8px;
  max-width: 92%;
}

.chat-bubble p {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.chat-bubble.system {
  max-width: 100%;
}

.chat-bubble.system p {
  background: rgba(171, 194, 208, 0.35);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.chat-bubble.mine {
  margin-left: auto;
  text-align: right;
}

.chat-bubble.mine p {
  background: rgba(82, 165, 209, 0.25);
  display: inline-block;
  text-align: left;
}

.chat-bubble.theirs p {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  display: inline-block;
}

.chat-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.chat-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chat-quick {
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
}

.chat-compose {
  display: flex;
  gap: 8px;
}

.chat-compose input {
  flex: 1;
  margin: 0;
}

.chat-compose button {
  flex-shrink: 0;
  width: auto;
  min-width: 72px;
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--table-border);
}

th {
  color: var(--text-muted);
  font-weight: 500;
}

.price {
  color: var(--success);
  font-weight: 600;
}

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 2px;
}

#searchResults {
  max-height: 360px;
  overflow: auto;
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.role-pick {
  display: flex;
  gap: 10px;
  margin: 8px 0 4px;
}

.role-pick label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  cursor: pointer;
  font-size: 0.95rem;
}

.role-pick input {
  width: auto;
  margin: 0;
}

.role-pick label:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(82, 165, 209, 0.25);
}

.driver-fields {
  margin-top: 4px;
}

.driver-fields[hidden] {
  display: none;
}

.user-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--table-border);
}

.user-panel .badge {
  display: inline-block;
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-right: 6px;
}

.status-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ocean-shadow);
  margin: 0 0 8px;
}

.payment-select-wrap {
  position: relative;
  margin: 8px 0;
}

.payment-select-hint {
  margin: 4px 2px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.payment-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  margin: 0;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.payment-select-trigger:focus {
  outline: 2px solid rgba(82, 165, 209, 0.45);
  outline-offset: 1px;
  border-color: var(--accent);
}

.payment-select-chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.payment-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: min(320px, 55vh);
  overflow-y: auto;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  box-shadow: 0 8px 24px rgba(67, 86, 99, 0.18);
}

.payment-select-menu[hidden] {
  display: none;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--table-border);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
}

.payment-option:last-child {
  border-bottom: none;
}

.payment-option:active {
  background: rgba(82, 165, 209, 0.12);
}

.payment-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.badge {
  display: inline-block;
  background: var(--tag-bg);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-right: 4px;
  margin-bottom: 2px;
}

.badge-payment {
  background: rgba(82, 165, 209, 0.22);
  color: var(--ocean-shadow);
}

.note-panel {
  margin: 12px 0;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.orders-panel {
  padding: 0;
}

.orders-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.orders-panel-summary::-webkit-details-marker {
  display: none;
}

.orders-panel-summary-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.orders-panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ocean-shadow);
}

.orders-panel-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.orders-panel-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.orders-panel[open] .orders-panel-chevron {
  transform: rotate(180deg);
}

.orders-panel-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--table-border);
}

.orders-panel-desc {
  margin: 12px 0;
  font-size: 0.85rem;
}

.note-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.note-panel-summary::-webkit-details-marker {
  display: none;
}

.note-panel-summary-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.note-panel-summary-main:has(.note-panel-summary-hint:not([hidden])) .note-panel-title {
  font-size: 0.95rem;
}

.note-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ocean-shadow);
}

.note-panel-summary-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-panel-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.note-panel[open] .note-panel-chevron {
  transform: rotate(180deg);
}

.note-panel-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--table-border);
}

.note-panel-desc {
  margin: 12px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.note-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 154, 172, 0.55);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  width: auto;
  line-height: 1.25;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.note-tag.is-on {
  border-color: var(--accent);
  background: rgba(82, 165, 209, 0.22);
  box-shadow: inset 0 0 0 1px rgba(82, 165, 209, 0.35);
}

.note-tag:focus-visible {
  outline: 2px solid rgba(82, 165, 209, 0.45);
  outline-offset: 2px;
}

.note-custom-wrap {
  margin-top: 12px;
}

.note-custom-wrap input {
  margin-top: 0;
}

.note-custom-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.badge-note {
  background: rgba(82, 165, 209, 0.22);
  color: var(--ocean-shadow);
}

.note-shipper-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--table-border);
}

.note-proxy-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 154, 172, 0.55);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  color: var(--text);
}

.note-proxy-line.is-on {
  border-color: var(--accent);
  background: rgba(82, 165, 209, 0.22);
  box-shadow: inset 0 0 0 1px rgba(82, 165, 209, 0.35);
}

.note-proxy-check {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.note-proxy-phone {
  margin-top: 8px;
}

.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin: 12px 0;
  background: var(--tag-bg);
  border-radius: 8px;
}

.price-box strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.waiting-panel .status-title {
  margin-top: 0;
}

.waiting-route {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ocean-shadow);
  line-height: 1.45;
}

.waiting-route-split {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.waiting-route-split .waiting-route-line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.waiting-route-label {
  display: inline-block;
  min-width: 1.25em;
  margin-right: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: 0.05em;
}

.waiting-price {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-strong, var(--accent));
  letter-spacing: -0.02em;
}

.waiting-meta {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.waiting-order-head {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.waiting-order-extra {
  margin: 0 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--table-border);
}

.waiting-note,
.waiting-payment {
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.waiting-point-hint {
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.waiting-point-hint .waiting-point-line {
  margin: 0 0 4px;
}

.waiting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.waiting-actions-stack .btn,
.waiting-actions-stack button {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
}

.waiting-after {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--table-border);
}

.waiting-after-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ocean-shadow);
}

.waiting-boost-label {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.waiting-boost-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.waiting-boost-btn {
  flex: 1 1 72px;
  min-width: 72px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.book-incentive {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.waiting-incentive-block .waiting-boost-row {
  padding-left: 0;
  padding-right: 0;
}


.book-incentive-summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.book-incentive-summary::-webkit-details-marker {
  display: none;
}

.book-incentive-desc {
  margin: 0 14px 10px;
  font-size: 0.85rem;
}

.book-incentive .waiting-boost-label,
.book-incentive .waiting-boost-row {
  padding-left: 14px;
  padding-right: 14px;
}

.book-incentive-totals {
  margin: 8px 14px;
  font-size: 0.85rem;
}

#incentiveResetBtn {
  margin: 0 14px;
  font-size: 0.85rem;
}

.waiting-broadcast-hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
}

.order-summary p {
  margin: 6px 0;
}

.site-nav {
  margin-bottom: 16px;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-brand {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-brand-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ocean-shadow);
}

.site-brand-sub {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav-links {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.site-nav-links .nav-link {
  padding: 6px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  border-radius: 6px;
}

.site-nav-links .nav-link.active {
  color: var(--ocean-shadow);
  background: rgba(255, 255, 255, 0.45);
}

.site-nav-links .nav-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
  user-select: none;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.page-header h1 {
  margin-bottom: 4px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nav-user {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.btn-link {
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
  width: auto;
  margin: 0;
}

.user-meta {
  margin: 0 0 12px;
}

.hall-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 12px 16px;
}

.hall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hall-order {
  margin: 0;
}

.hall-order-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.hall-order-id {
  font-weight: 600;
  color: var(--text-muted);
}

.hall-wait {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hall-route {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ocean-shadow);
  line-height: 1.45;
}

.hall-price {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-strong, var(--accent));
  letter-spacing: -0.02em;
}

.hall-meta {
  margin: 0 0 10px;
  font-size: 0.88rem;
}

.hall-order-extra {
  margin: 0 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--table-border);
}

.hall-note {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hall-payment {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.hall-order-extra .hall-note:last-child {
  margin-bottom: 0;
}

.hall-rating {
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.note-min-driver-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.note-min-driver-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.note-min-driver-select {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #ccc);
}

.order-rating-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 280px;
  width: min(280px, calc(100vw - 32px));
  margin: auto;
  box-shadow: 0 12px 40px rgba(0, 40, 80, 0.18);
}

.order-rating-dialog::backdrop {
  background: rgba(15, 35, 55, 0.45);
}

.order-rating-form {
  padding: 14px 16px 16px;
}

.order-rating-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.order-rating-desc {
  margin: 0 0 10px;
  font-size: 0.8rem;
}

.order-rating-stars {
  margin: 0 0 12px;
  text-align: center;
}

.order-rating-star-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
  margin: 0 0 4px;
}

.order-rating-star {
  padding: 4px 2px;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  color: #c5d0da;
  transition: color 0.12s ease, transform 0.12s ease;
}

.order-rating-star.is-on {
  color: #e8a317;
}

.order-rating-star:hover {
  transform: scale(1.08);
}

.order-rating-star:focus-visible {
  outline: 2px solid var(--link, #2b7cff);
  outline-offset: 2px;
  border-radius: 4px;
}

.order-rating-star-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #5a6b7a);
}

.order-rating-msg {
  margin: 0 0 8px;
  font-size: 0.85rem;
}

.order-rating-actions {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.order-rating-actions .primary,
.order-rating-actions .secondary {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.profile-rating-line {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.hall-points {
  margin: 0 0 12px;
  font-size: 0.85rem;
}

.hall-points-bonus {
  font-weight: 600;
  color: var(--ocean-shadow);
}

.drive-point-bonus {
  margin: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ocean-shadow);
}

.drive-price {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.trip-cancel-banner {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 243, 243, 0.9);
  border: 1px solid rgba(220, 80, 80, 0.25);
}

.trip-cancel-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ocean-shadow);
}

.hall-accept {
  display: inline-block;
  width: auto;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
}

.hall-empty {
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-actions .btn {
  width: auto;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
}

.trip-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--table-border);
}

.trip-actions .primary,
.trip-actions .secondary {
  width: 100%;
}

.book-order-rules-dialog {
  width: min(100vw - 24px, 400px);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 40, 80, 0.2);
}

.book-order-rules-dialog::backdrop {
  background: rgba(0, 24, 48, 0.45);
}

.book-order-rules-dialog form {
  padding: 14px 12px 12px;
}

.book-order-rules-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ocean-shadow);
}

.book-order-rules-intro {
  margin: 0 0 10px;
  font-size: 0.85rem;
}

.book-order-rules-list {
  margin: 0 0 14px;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.book-order-rules-list li {
  margin-bottom: 8px;
}

.book-order-rules-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-order-rules-actions .primary,
.book-order-rules-actions .secondary {
  width: 100%;
  margin: 0;
}

.driver-cancel-dialog {
  width: min(100vw - 24px, 360px);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 40, 80, 0.2);
}

.driver-cancel-dialog::backdrop {
  background: rgba(0, 24, 48, 0.45);
}

.driver-cancel-dialog form {
  padding: 14px 12px 12px;
}

.driver-cancel-dialog button {
  width: auto;
  margin: 0;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.driver-cancel-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ocean-shadow);
}

.driver-cancel-warn {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.driver-cancel-warn strong {
  color: var(--ocean-shadow);
  font-weight: 700;
}

.driver-cancel-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.driver-cancel-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 8px;
  border: 1px solid var(--table-border);
  background: var(--input-bg, #fff);
  font-size: 0.86rem;
  line-height: 1.3;
  cursor: pointer;
  margin: 0;
}

.driver-cancel-opt--full {
  grid-column: 1 / -1;
}

.driver-cancel-opt:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(82, 165, 209, 0.35);
}

.driver-cancel-opt input[type='radio'] {
  width: 1.1em;
  height: 1.1em;
  min-width: 1.1em;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.driver-cancel-opt-text {
  flex: 1;
  min-width: 0;
  color: var(--text);
}

.driver-cancel-custom-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.driver-cancel-custom-wrap input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.driver-cancel-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 10px;
}

.driver-cancel-actions .primary {
  flex: 1;
  min-width: 0;
}

.driver-cancel-actions .secondary {
  flex: 0 0 auto;
  min-width: 72px;
}

.driver-cancel-form-msg {
  margin: 8px 0 0;
}

.driver-cancel-hint {
  line-height: 1.4;
}

.admin-pricing-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-pricing-subtitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--ocean-shadow);
}

.admin-pricing-anchor-row {
  align-items: center;
}

.rental-segment {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 4px;
  background: var(--surface-muted, #eef4f8);
  border-radius: 999px;
}

.rental-segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.rental-segment-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(82, 165, 209, 0.35);
}

.rental-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.rental-filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rental-filter-bar select {
  width: 100%;
}

.rental-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 72px;
}

.rental-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #dce8ef);
  text-decoration: none;
  color: inherit;
}

.rental-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--surface-muted, #eef4f8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rental-card-thumb--photo {
  font-weight: 600;
  color: var(--accent);
}

.rental-card-body {
  flex: 1;
  min-width: 0;
}

.rental-card-title {
  margin: 4px 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.rental-card-meta {
  margin: 0;
  font-size: 0.8rem;
}

.rental-card-price {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--ocean-shadow);
}

.rental-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rental-form label,
.rental-form fieldset {
  display: block;
  margin-bottom: 12px;
}

.rental-check-group {
  border: 1px solid var(--border, #dce8ef);
  border-radius: 10px;
  padding: 10px 12px;
}

.rental-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.rental-check {
  font-size: 0.88rem;
}

.rental-agree {
  font-size: 0.82rem;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.rental-detail-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px 0;
}

.rental-detail-photo {
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
}

.rental-detail-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ocean-shadow);
}

.rental-detail-body {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 12px 0 20px;
}

.rental-msg-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.rental-msg p {
  margin: 4px 0 10px;
}

.rental-msg-form {
  display: flex;
  gap: 8px;
}

.rental-msg-form input {
  flex: 1;
}
