:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #67645f;
  --line: #25221d;
  --paper: #f5f1e6;
  --panel: #fffaf0;
  --green: #b8e26a;
  --cyan: #87d8df;
  --red: #ff715b;
  --yellow: #ffd861;
  --blue: #4e7bff;
  --shadow: 8px 8px 0 #151515;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 21, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  border-right: 3px solid var(--line);
  background: #dfead2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  color: #fffaf0;
  background: var(--ink);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--cyan);
}

.brand-mark {
  width: 50px;
  height: 50px;
  font-size: 26px;
  font-weight: 900;
}

.brand b,
.profile-card h1 {
  display: block;
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
}

.brand small,
.profile-card p,
.panel-head p,
.page-title p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.profile-card {
  padding: 18px;
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.avatar {
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
  font-weight: 900;
}

.profile-card p {
  margin: 7px 0 18px;
}

.progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.progress span,
.progress b {
  font-size: 13px;
  font-weight: 900;
}

.progress i {
  grid-column: 1 / -1;
  height: 12px;
  border: 2px solid var(--line);
  background: rgba(181, 227, 91, 0.82);
}

.progress em {
  display: block;
  height: 100%;
  background: var(--green);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.support-btn,
.top-actions button,
.panel-head button,
.table-row button,
.security-grid button {
  border: 3px solid var(--line);
  background: #fffaf0;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--line);
}

.nav-item {
  min-height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  text-align: left;
  gap: 8px;
}

.nav-item.active {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: #fff;
}

.support-btn {
  margin-top: auto;
  min-height: 64px;
  padding: 10px 12px;
  text-align: left;
  background: var(--cyan);
}

.support-btn span,
.support-btn b {
  display: block;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow,
.topbar h2,
.page-title p,
.page-title h3 {
  margin: 0;
}

.topbar h2 {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 0.95;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions button {
  min-width: 46px;
  height: 46px;
}

.top-actions .primary {
  min-width: 104px;
  padding: 0 14px;
  background: var(--green);
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

.home-welcome { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.home-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #0b376f; color: #fff; font-size: 30px; font-weight: 900; }
.home-welcome p { margin: 0 0 3px; color: #0b376f; font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.home-welcome h2 { margin: 0; color: var(--ink); font-size: 24px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-grid article { min-height: 126px; padding: 18px; display: grid; align-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.home-grid article b { color: #0b376f; font-size: 17px; }
.home-grid article span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-link { cursor: pointer; }
.home-link:hover { border-color: #0b376f; transform: translateY(-2px); }
.home-link:focus-visible { outline: 3px solid #0b376f; outline-offset: 2px; }
.order-hall-list { display: grid; gap: 6px; }
.order-hall-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-hall-refresh { width: 32px; height: 32px; padding: 0; border: 1px solid #0b376f; border-radius: 50%; background: #fff; color: #0b376f; font-size: 20px; line-height: 1; cursor: pointer; }
.order-hall-refresh:hover { background: #eef4fb; }
.order-hall-refresh:disabled { opacity: .55; cursor: wait; }
#order-hall.is-refreshing .order-hall-sections { opacity: .5; transition: opacity .15s ease; }
.publish-order-button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #0b376f; border-radius: 8px; background: #0b376f; color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.profile-edit-button { display: block; margin: 16px 0 0 auto; }
.team-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-title .add-friend-button { margin-left: auto; white-space: nowrap; }
.team-subsection-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.team-subsection-title h4 { margin: 0; color: var(--ink); font-size: 14px; }
.message-subsection-title { display: flex; align-items: center; margin: 22px 0 8px; }
.message-subsection-title h4 { margin: 0; color: var(--ink); font-size: 14px; }
.friend-requests-dialog { max-height: min(640px, calc(100vh - 28px)); overflow-y: auto; }
.friend-requests-list { display: grid; gap: 8px; margin: 14px 0; }
.friend-requests-list article { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); background: #fff; }
.friend-requests-list article b { color: var(--ink); }
.friend-requests-list article span { color: #222; font-size: 12px; white-space: pre-wrap; }
.friend-requests-list article small { color: var(--muted); font-size: 11px; }
.friend-requests-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0; }
.friend-requests-pagination button { min-width: 72px; min-height: 32px; padding: 0 8px; font-size: 12px; }
#friend-requests-button.has-pending-requests { border-color: #b42318 !important; background: #b42318 !important; color: #fff !important; }
.friend-request-decision { display: flex; gap: 8px; margin-top: 5px; }
.friend-request-decision button { min-width: 64px; min-height: 30px; border: 1px solid #5e7da4; background: #fff; color: #0b376f; font: inherit; font-size: 12px; cursor: pointer; }
.team-member-options { display: grid; gap: 10px; margin: 16px 0; }
.team-member-options label { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #d9d9d9; background: #fff; color: #333; font-size: 13px; font-weight: 800; }
.team-member-options input { width: 18px; height: 18px; accent-color: #0b376f; }
.profile-edit-dialog { max-width: 520px; padding: 20px; }
.profile-edit-dialog h3 { margin: 6px 0 14px; font-size: 22px; }
.profile-edit-dialog .form-grid { gap: 10px; }
.profile-edit-dialog .form-grid label { gap: 4px; font-size: 11px; }
.profile-edit-dialog .form-grid input,
.profile-edit-dialog .form-grid textarea { min-height: 34px; padding: 6px 8px; font-size: 12px; }
.profile-edit-dialog .form-grid textarea { min-height: 70px; }
.profile-edit-dialog .dialog-actions { margin-top: 14px; }
.profile-edit-dialog .dialog-actions button { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.publish-order-button:hover { background: #164f93; }
.order-hall-sections { display: grid; gap: 18px; }
.order-hall-group { display: grid; gap: 8px; }
.order-hall-group-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 2px; }
.order-hall-group-header h4 { margin: 0; color: #0b376f; font-size: 15px; }
.order-hall-group-header span { color: var(--muted); font-size: 11px; }
.hall-order-card { min-height: 44px; display: grid; grid-template-columns: 112px minmax(0, 1fr) 68px 0 68px 28px; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; }
.hall-order-card.inquiry { background: #5e7da4; border-color: #486888; }
.hall-order-card.inquiry { display: none !important; }
.hall-order-card.confirmed { background: #5e7da4; border-color: #486888; }
.hall-order-type { display: none !important; }
#publish-order-kind,
label[for="publish-order-kind"] { display: none !important; }
.hall-order-card time,
.hall-order-card b,
.hall-order-location { overflow: hidden; color: #fff; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.hall-order-card b { grid-column: 5; min-width: 0; overflow: visible; text-align: right; padding-right: 8px; white-space: nowrap; }
.hall-order-type { color: #795900; font-size: 11px; font-weight: 900; white-space: nowrap; }
.hall-order-amount { color: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; text-align: right; }
.confirmed .hall-order-type { color: #245c3a; }
.hall-order-view { grid-column: 6; justify-self: end; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.hall-order-view:hover { background: rgba(11, 55, 111, .1); }
.hall-order-details { grid-column: 1 / -1; padding: 8px 10px 2px; border-top: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 11px; line-height: 1.7; white-space: pre-line; }
.publish-order-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.publish-to-team-button, .week-time-dialog .publish-to-team-button { min-height: 38px !important; padding: 0 14px !important; font-size: 13px !important; }
.week-time-dialog .dialog-actions:has(.publish-to-team-button) { display: flex; align-items: center; justify-content: stretch; gap: 10px; flex-wrap: nowrap; }
.week-time-dialog .dialog-actions:has(.publish-to-team-button) > button { flex: 1 1 0; min-width: 0; margin: 0; padding: 0 10px !important; white-space: nowrap; }
.week-time-dialog .dialog-actions:has(.publish-to-team-button) > button { height: 38px; min-height: 38px !important; font-size: 13px !important; font-weight: 900; line-height: 38px; }
.week-time-dialog .dialog-actions:has(.publish-to-team-button) #dialog-confirm { order: 1; }
.week-time-dialog .dialog-actions:has(.publish-to-team-button) #publish-to-team-button { order: 2; }
.week-time-dialog .dialog-actions:has(.publish-to-team-button) #dialog-cancel { order: 3; }
.hall-order-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.hall-order-price { width: 94px; min-height: 28px; box-sizing: border-box; padding: 4px 7px; border: 1px solid #cfd7e2; border-radius: 6px; background: #fff; color: var(--ink); font-size: 11px; }
.hall-order-action { min-height: 28px; padding: 4px 9px; border: 0; border-radius: 6px; background: #0b376f; color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.hall-order-action:disabled { opacity: .55; cursor: default; }
.hall-order-action-status { color: #0b376f; font-size: 11px; font-weight: 800; }
.publish-order-dialog { max-height: min(720px, calc(100vh - 28px)); overflow-y: auto; }
.publish-order-label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; font-weight: 900; }
.publish-order-type, .publish-order-input, .publish-order-textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.publish-order-type, .publish-order-input { min-height: 40px; padding: 8px 10px; }
.publish-order-datetime { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.publish-order-date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.date-input-hidden { display: none !important; }
.picker-date-group.is-hidden { display: none; }
.datetime-picker-box:has(.picker-date-group.is-hidden) .datetime-picker {
  grid-template-columns: minmax(0, 1fr);
}
.datetime-picker-box:has(.picker-date-group.is-hidden) .time-picker {
  grid-column: 1;
}
.publish-order-textarea { min-height: 110px; padding: 10px; resize: vertical; }
.publish-order-itinerary { display: grid; gap: 0; }
.publish-order-status { min-height: 18px; margin: 10px 0 0; color: var(--green); font-size: 12px; font-weight: 800; }
.publish-destination-options { display: grid; gap: 9px; margin: 16px 0 18px; }
.publish-destination-options label { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.publish-destination-options label:has(input:checked) { border-color: #0b376f; background: #eef4fb; }
.publish-destination-options input { margin-top: 2px; accent-color: #0b376f; }
.publish-destination-options span { display: grid; gap: 4px; }
.publish-destination-options b { color: var(--ink); font-size: 13px; }
.publish-destination-options small { color: var(--muted); font-size: 11px; }

@media (max-width: 520px) {
  .hall-order-card { grid-template-columns: 104px minmax(0, 1fr) 60px 0 60px 28px; gap: 5px; padding: 7px; }
}

@media (max-width: 520px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-grid article { min-height: 92px; padding: 14px; }
}

.me-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.me-tabs[hidden] { display: none; }
.me-tab {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.me-tab.active { background: #edf3fb; color: #0b376f; }
.team-list article { grid-template-columns: 150px 1fr auto; }
.team-list article small { display: block; color: #0b376f; font-size: 11px; font-weight: 800; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metrics article,
.panel,
.table-panel,
.form-grid,
.security-grid article,
.message-list article {
  border: 3px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.security-grid article { display: flex; align-items: center; gap: 12px; }
.security-grid article button { margin-left: auto; flex: 0 0 auto; }

.metrics article {
  padding: 14px;
  min-height: 118px;
}

.metrics span,
.metrics small,
.metrics b {
  display: block;
}

.metrics span,
.metrics small {
  color: var(--muted);
  font-weight: 800;
}

.metrics b {
  margin: 12px 0 8px;
  font-size: 34px;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 380px;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel.wide {
  min-height: 340px;
}

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

.panel-head h3,
.page-title h3 {
  margin: 2px 0 0;
  font-size: 25px;
}

.panel-head button {
  min-height: 40px;
  padding: 0 12px;
  background: var(--yellow);
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list label {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 2px solid var(--line);
  background: #fff;
}

.task-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.task-list b,
.task-list small {
  display: block;
}

.task-list small,
.order-list span,
.security-grid span,
.message-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-preview {
  grid-row: span 2;
  background: var(--blue);
}

.device {
  max-width: 260px;
  min-height: 468px;
  margin: 0 auto;
  padding: 18px;
  border: 4px solid var(--line);
  background: #cad2bf;
  box-shadow: inset 0 0 0 4px #eef3e8;
}

.device-top {
  width: 86px;
  height: 10px;
  margin: 0 auto 18px;
  border: 2px solid var(--line);
  background: var(--ink);
}

.device-card {
  padding: 16px;
  border: 3px solid var(--line);
  background: var(--yellow);
}

.mini-avatar {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  font-size: 14px;
  box-shadow: none;
}

.device-card b,
.device-card small {
  display: block;
}

.pixel-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.pixel-menu span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: #fffaf0;
  font-weight: 900;
}

.preference-list {
  display: grid;
  gap: 10px;
}

.toggle {
  min-height: 50px;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 2px solid var(--line);
  background: #fff;
  font-weight: 900;
}

.toggle.active b {
  color: #355f04;
}

.order-list {
  margin: 0;
  padding-left: 22px;
}

.order-list li {
  margin: 0 0 14px;
}

.order-list b,
.order-list span {
  display: block;
}

.page-title {
  margin: 4px 0 18px;
}

.table-panel {
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.7fr 92px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 2px solid var(--line);
  background: #fffaf0;
}

.table-row:first-child {
  border-top: 0;
}

.table-row.heading {
  background: var(--yellow);
  font-weight: 900;
}

.badge {
  width: fit-content;
  padding: 5px 8px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.badge.ok {
  background: var(--green);
}

.badge.warn {
  background: var(--red);
}

.table-row button,
.security-grid button {
  min-height: 36px;
  background: var(--cyan);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: #fff;
  padding: 12px;
}
.form-grid input[readonly] { background: #f5f7fb; color: #0b376f; cursor: default; }

.form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.security-grid,
.message-list {
  display: grid;
  gap: 14px;
}

.security-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-grid article,
.message-list article {
  padding: 16px;
}

.security-grid b,
.security-grid span,
.message-list b,
.message-list span,
.message-list time {
  display: block;
}

.security-grid button {
  margin-top: 14px;
  padding: 0 12px;
}

.message-list article {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  gap: 12px;
}

.message-list time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 1060px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .support-btn {
    margin-top: 0;
  }

  .metrics,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .workspace,
  .sidebar {
    padding: 14px;
  }

  .topbar,
  .panel-head {
    display: grid;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 46px 46px 1fr;
  }

  .nav-list,
  .metrics,
  .form-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .message-list article {
    grid-template-columns: 1fr;
  }

  .message-list time {
    text-align: left;
  }
}

/* Login shell follows the quiet, single-column reference page. */
body {
  background: #fff;
  color: #171717;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 34px 22px;
  background: #fff;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.login-brand,
.login-header-links a,
.login-register a,
.login-options a {
  color: #0b376f;
  text-decoration: none;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #171717;
  font-size: 22px;
  letter-spacing: .2px;
}

.login-brand img {
  display: block;
  width: 96px;
  height: 64px;
  object-fit: contain;
}

.login-symbol {
  display: block;
  width: min(100%, 250px);
  height: auto;
  object-fit: contain;
  background: transparent;
}

.login-brand-mark {
  display: grid;
  place-items: center;
  background: #0b376f;
  color: #fff;
  font-weight: 900;
}

.login-logo {
  display: block;
  width: min(100%, 248px);
  height: auto;
  margin: 0 auto 20px;
}

.login-brand-mark {
  width: 30px;
  height: 30px;
  font-size: 21px;
}

.login-header-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.login-panel {
  width: min(100%, 390px);
  margin: auto;
  padding: 42px 0 34px;
}

.login-symbol {
  width: min(100%, 250px);
  height: auto;
  margin: 0 auto 20px;
}

.login-kicker {
  margin: 0 0 8px;
  color: #999;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-align: center;
}

.login-panel h1 {
  margin: 0 0 30px;
  font-size: 30px;
  line-height: 1.15;
  text-align: center;
}

#login-form > label {
  display: block;
  margin: 18px 0 8px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

#login-form input[type="email"],
#login-form input[type="password"],
#login-form input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  outline: none;
}

#login-form input[type="email"]:focus,
#login-form input[type="password"]:focus,
#login-form input[type="text"]:focus {
  border-color: #0b376f;
  box-shadow: 0 0 0 3px rgba(11, 55, 111, .14);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 24px;
  color: #777;
  font-size: 12px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.remember-option input {
  width: 15px;
  height: 15px;
  accent-color: #0b376f;
}

.login-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 4px;
  background: #0b376f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.login-submit:hover { background: #082a55; }

.mfa-setup { margin-top: 14px; padding: 14px; display: grid; justify-items: center; gap: 9px; border: 1px solid #d9d9d9; border-radius: 14px; background: #f7f9fc; text-align: center; }
.mfa-setup[hidden] { display: none; }
.mfa-setup b { color: #0b376f; font-size: 13px; }
.mfa-setup img { width: 168px; height: 168px; object-fit: contain; background: #fff; }
.mfa-setup small { color: #666; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.mfa-setup code { color: #0b376f; font-weight: 800; }

.login-register,
.login-message {
  text-align: center;
  font-size: 13px;
}

.login-register {
  margin: 26px 0 0;
  color: #777;
}

.register-dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4, 16, 35, .58); }
.register-dialog-backdrop[hidden] { display: none; }
.register-dialog { position: relative; width: min(100%, 440px); max-height: min(720px, calc(100vh - 40px)); overflow-y: auto; padding: 30px; border-radius: 14px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.register-dialog h2 { margin: 0 0 7px; color: #111; font-size: 24px; }
.register-dialog-hint { margin: 0 0 20px; color: #777; font-size: 13px; }
.register-dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: #777; font-size: 26px; cursor: pointer; }
.register-dialog label { display: block; margin: 13px 0 7px; color: #555; font-size: 13px; font-weight: 700; }
.register-dialog > form > input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d8dce4; border-radius: 5px; background: #fff; color: #171717; outline: none; }
.register-dialog input:focus { border-color: #0b376f; box-shadow: 0 0 0 3px rgba(11,55,111,.12); }
.invite-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.invite-code-grid label { margin-bottom: 0; }
.invite-code-grid input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d8dce4; border-radius: 5px; color: #171717; }
.register-message { min-height: 18px; margin: 15px 0 0; color: #0b376f; font-size: 12px; line-height: 1.5; }
.register-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.register-actions button { min-height: 40px; padding: 0 16px; border-radius: 5px; font-weight: 800; cursor: pointer; }
.register-cancel { border: 1px solid #d8dce4; background: #fff; color: #666; }
.register-submit { border: 1px solid #0b376f; background: #0b376f; color: #fff; }

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.social-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.social-login-button:hover { border-color: #0b376f; color: #0b376f; }

.social-login-button b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  font-weight: 900;
}

.google-login b { color: #4285f4; }
.wechat-login b { color: #0b376f; font-size: 12px; }

.login-message {
  min-height: 18px;
  margin: 12px 0 0;
  color: #0b376f;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(18px, 3vw, 36px);
  max-width: 760px;
  margin: 0 auto 22px;
  color: #888;
}

.partner-logo {
  display: inline-flex;
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  line-height: 1;
  opacity: .82;
}

.partner-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 150px;
  object-fit: contain;
}

.booking-logo img {
  width: 148px;
  height: 48px;
  object-fit: cover;
  object-position: center 58%;
}

.trip-logo img { width: 126px; }
.hertz-logo img { width: 112px; }
.costa-logo img { width: 105px; height: 58px; }

.booking-logo {
  color: #003b95;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
}

.booking-logo span { font-weight: 500; }

.trip-logo {
  color: #2877d4;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.4px;
}

.trip-logo span { font-weight: 600; }

.hertz-logo {
  color: #111;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.8px;
}

.costa-logo {
  color: #007b91;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .2px;
}

.costa-logo span {
  margin-left: 4px;
  font-weight: 600;
}

.login-footer {
  color: #aaa;
  font-size: 11px;
  text-align: center;
}

.shell[hidden] { display: none; }
.account-page .login-screen { display: none; }
.account-page .shell[hidden] { display: grid; }

@media (max-width: 520px) {
  .login-screen { padding: 22px 20px 18px; }
  .login-panel { padding-top: 28px; }
  .login-header-links { gap: 16px; }
  .login-brand img { width: 84px; height: 56px; }
  .login-logo { width: min(100%, 210px); }
  .social-login { gap: 7px; }
  .social-login-button { padding: 0 6px; font-size: 11px; }
  .partner-logos { width: 100%; gap: 10px; margin-bottom: 18px; }
  .partner-logo img { height: 30px; max-width: 78px; }
  .booking-logo img { width: 72px; height: 32px; }
  .trip-logo img { width: 66px; }
  .hertz-logo img { width: 54px; }
  .costa-logo img { width: 54px; height: 40px; }
}

/* Softer corners across the interface while keeping calendar cells compact. */
.profile-card,
.panel,
.table-panel,
.security-grid article,
.message-list article,
.calendar-card,
.friend-calendar-access,
.form-grid,
.bottom-nav,
.calendar-dialog,
.month-menu,
.login-submit,
#login-form input[type="email"],
#login-form input[type="password"],
#login-form input[type="text"] {
  border-radius: 14px;
}

.nav-item,
.support-btn,
.top-actions button,
.panel-head button,
.table-row button,
.security-grid button,
.week-tab,
.view-switch,
.add-friend-button,
.dialog-actions button,
.login-brand-mark,
.login-symbol,
.friend-method,
.member-search button,
.order-view-button {
  border-radius: 10px;
}

.time-cell,
.month-day,
.calendar-month,
.bottom-nav-item {
  border-radius: 5px;
}

/* Homepage-aligned visual layer: midnight canvas, soft light, pixel accents. */
:root {
  --ink: #f6f7fb;
  --muted: #9aa2b9;
  --line: #2a3350;
  --paper: #040716;
  --panel: #0c1124;
  --green: #b5e35b;
  --cyan: #65d9e8;
  --red: #ff7d74;
  --yellow: #f4d36b;
  --blue: #8175ff;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at 72% 4%, rgba(75, 52, 142, 0.2), transparent 31%),
    radial-gradient(circle at 8% 82%, rgba(23, 104, 137, 0.12), transparent 29%),
    linear-gradient(90deg, rgba(142, 155, 202, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(142, 155, 202, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

.sidebar {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(7, 11, 29, 0.88);
}

.sidebar .profile-card { margin-top: 4px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.edit-profile-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.avatar-upload { display: block; width: fit-content; cursor: pointer; }
.avatar-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-upload:hover .avatar { outline: 2px solid #fff; outline-offset: 3px; }

.brand-mark,
.avatar,
.mini-avatar {
  color: #07101a;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 #5141a7;
}

.brand b { color: #fff; }
.brand small,
.profile-card p,
.panel-head p,
.page-title p,
.eyebrow { color: #7e88a5; }

.profile-card,
.metrics article,
.panel,
.table-panel,
.form-grid,
.security-grid article,
.message-list article {
  border: 1px solid var(--line);
  background: rgba(12, 17, 36, 0.92);
  box-shadow: var(--shadow);
}

.profile-card { box-shadow: 6px 6px 0 rgba(101, 217, 232, 0.16); }
.progress i { border: 1px solid var(--line); background: #080c1b; }
.progress em { background: var(--cyan); }

.nav-item,
.support-btn,
.top-actions button,
.panel-head button,
.table-row button,
.security-grid button {
  border: 1px solid var(--line);
  background: #10172e;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(129, 117, 255, 0.45);
}

.nav-item:hover,
.top-actions button:hover,
.panel-head button:hover,
.table-row button:hover,
.security-grid button:hover { border-color: var(--cyan); }
.nav-item.active { background: #182448; box-shadow: 3px 3px 0 var(--cyan); transform: none; }
.icon { border: 1px solid #3b486e; background: #080c1b; color: var(--cyan); }
.support-btn { background: #152645; border-color: #42627e; }
.workspace { padding: 30px 34px; }
.topbar { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.workspace > .nav-list { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 20px 0 22px; }
.workspace > .nav-list .nav-item { grid-template-columns: 30px 1fr; }
.content-grid { grid-template-columns: 1fr; }
.topbar h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); }
.top-actions .primary { background: #fff; color: #070916; box-shadow: 3px 3px 0 var(--cyan); }
.metrics article { min-height: 126px; }
.metrics b { color: #fff; }
.panel-head h3,
.page-title h3 { color: #fff; }
.panel-head button { background: #19233e; }
.task-list label,
.toggle,
.table-row,
.device-card,
.pixel-menu span,
.form-grid input,
.form-grid textarea,
.form-grid select,
.badge { border-color: #293554; background: #080c1b; color: var(--ink); }
.task-list label { box-shadow: inset 3px 0 0 var(--cyan); }
.task-list small,
.order-list span,
.security-grid span,
.message-list span { color: var(--muted); }
.phone-preview { background: #111337; border-color: #3e3a83; }
.device { background: #10172b; border: 2px solid #4a5b80; box-shadow: inset 0 0 0 3px #1e2a4a; }
.device-top { border-color: #3b486e; background: #65d9e8; }
.device-card { background: #182448; border-color: #4a5b80; }
.pixel-menu span { background: #0c1124; }
.toggle.active b { color: var(--green); }
.table-row { border-top-color: #293554; }
.table-row.heading { background: #151f3c; color: #fff; }
.badge.ok { background: rgba(181, 227, 91, 0.18); color: var(--green); }
.badge.warn { background: rgba(255, 125, 116, 0.16); color: var(--red); }
.table-row button,
.security-grid button { background: #172942; }
.form-grid input,
.form-grid textarea,
.form-grid select { outline: none; }
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(101, 217, 232, 0.14); }
.message-list article { box-shadow: inset 3px 0 0 var(--blue), var(--shadow); }

.calendar-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.calendar-month-picker { position: relative; }

.calendar-month {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.month-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 10px);
  right: 0;
  width: 176px;
  padding: 6px;
  border: 1px solid var(--cyan);
  background: #0c1124;
  box-shadow: 5px 5px 0 var(--blue);
}

.month-menu[hidden] { display: none; }
.month-option { width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 900; cursor: pointer; }
.month-option:hover,
.month-option.active { background: #182448; color: var(--cyan); }

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.week-tabs {
  display: flex;
  align-items: end;
  gap: 5px;
}

.week-tabs[hidden] { display: none !important; }

.week-tab {
  min-width: 94px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #3b486e;
  border-bottom: 0;
  background: #10172e;
  color: #8f9ab6;
  font-weight: 900;
  box-shadow: 3px 0 0 rgba(129, 117, 255, 0.28);
}

.week-tab.active {
  min-height: 49px;
  color: #07101a;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 4px 0 0 var(--blue);
}

.calendar-mode {
  display: flex;
  gap: 8px;
}

.mode-button {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #0a0f21;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.mode-button i,
.key-swatch {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1px solid #486178;
  background: var(--green);
}

.mode-button[data-mode="blocked"] i,
.key-swatch.blocked { background: #535b6e; }
.mode-button.active { color: #fff; border-color: var(--cyan); box-shadow: 2px 2px 0 rgba(101, 217, 232, 0.26); }

.calendar-card {
  border: 1px solid var(--line);
  background: rgba(12, 17, 36, 0.92);
  box-shadow: var(--shadow);
  padding: 15px;
}

.calendar-key {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-key span { display: inline-flex; align-items: center; gap: 7px; }
.calendar-key .calendar-status { margin-left: auto; color: var(--cyan); }
.calendar-key .calendar-status.viewing-friend { color: #d49b00; }
.back-my-calendar { min-height: 30px; padding: 0 9px; border: 1px solid #d49b00; background: #fff8df; color: #9b7000; font-size: 11px; font-weight: 900; white-space: nowrap; }
.back-my-calendar:hover { background: #ffefb8; }
.back-my-calendar[hidden] { display: none; }
.key-swatch.available { background: var(--green); }

.calendar-scroll { overflow-x: auto; padding-bottom: 5px; }
.calendar-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calendar-corner,
.hour-label,
.day-label,
.time-cell,
.day-bar,
.week-time-scale-label,
.week-time-scale {
  min-width: 0;
  min-height: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.week-time-scale-label {
  display: grid;
  place-items: center;
  background: #f7f7f7;
  color: #888;
  font-size: 9px;
  font-weight: 900;
}

.week-time-scale {
  position: relative;
  min-height: 34px;
  background: #fff;
  color: #666;
  font-size: 9px;
  font-weight: 800;
}

.week-time-mark {
  position: absolute;
  left: var(--time-position);
  bottom: 5px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.week-time-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 1px;
  height: 6px;
  background: #a9a9a9;
}

.week-time-mark.first { transform: none; }
.week-time-mark.first::before { left: 0; }
.week-time-mark.last { transform: translateX(-100%); }
.week-time-mark.last::before { left: 100%; }

.calendar-corner,
.hour-label {
  display: grid;
  place-items: center;
  background: #151f3c;
  color: #8390b0;
  font-size: 11px;
  font-weight: 900;
}

.day-label {
  padding: 4px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  background: #0b1022;
  color: #e7eaf2;
  font-size: 12px;
  font-weight: 900;
}

.day-label b { color: var(--cyan); font-size: 15px; letter-spacing: 1px; }
.day-label span { color: #8390b0; font-size: 11px; }
.day-label.outside,
.day-bar.outside { background: #080b17; opacity: 0.42; }

.day-bar {
  display: grid;
  grid-template-columns: repeat(40, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: rgba(7, 193, 96, 0.68);
}

.time-cell {
  width: 100%;
  min-width: 0;
  padding: 0;
  cursor: crosshair;
  touch-action: none;
  background: #fff;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.time-cell.available:hover { background: #d0f47a; box-shadow: inset 0 0 0 2px #fff; }
.time-cell.blocked { background: #4a5365; }
.time-cell.blocked:hover { background: #667085; box-shadow: inset 0 0 0 2px #b9c0ce; }
.time-cell.selected { background: var(--yellow); box-shadow: inset 0 0 0 2px #fff; }

.calendar-dialog-backdrop[hidden] { display: none; }
.calendar-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 3, 12, 0.78);
}

.calendar-dialog {
  width: min(390px, 100%);
  padding: 24px;
  border: 1px solid var(--cyan);
  background: #0c1124;
  box-shadow: 7px 7px 0 rgba(101, 217, 232, 0.3), 0 20px 60px rgba(0, 0, 0, 0.55);
}

#calendar-dialog.month-charter-dialog {
  overflow: hidden;
}

#calendar-dialog.month-charter-dialog .calendar-dialog {
  max-height: min(760px, calc(100dvh - 40px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.calendar-dialog p { margin: 0 0 5px; color: var(--cyan); font-size: 11px; font-weight: 900; }
.calendar-dialog h3 { margin: 0; color: #fff; font-size: 22px; }
.selected-range { margin: 20px 0; padding: 17px; border: 1px solid #3b486e; background: #080c1b; color: var(--yellow); font-size: 18px; font-weight: 900; text-align: center; }
.calendar-note-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 900; }
.calendar-note { width: 100%; min-height: 84px; padding: 11px; border: 1px solid #3b486e; background: #080c1b; color: #fff; resize: vertical; outline: none; }
.calendar-note:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(101, 217, 232, 0.14); }
.calendar-order-fields { display: grid; gap: 12px; margin: 18px 0; text-align: left; }
.calendar-order-fields[hidden],
.calendar-order-fields [hidden] { display: none !important; }
.calendar-order-fields label { display: grid; gap: 6px; color: #777; font-size: 12px; font-weight: 900; }
.calendar-order-fields select,
.calendar-order-fields input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #d9d9d9; background: #fff; color: #222; font: inherit; outline: none; }
.calendar-order-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calendar-order-fields select:focus,
.calendar-order-fields input:focus { border-color: #0b376f; box-shadow: 0 0 0 2px rgba(11, 55, 111, .12); }
#calendar-transfer-fields,
#calendar-charter-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.calendar-charter-itinerary { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 10px; }
.calendar-order-status { display: block; min-height: 18px; margin-top: 8px; color: #b42318; font-size: 12px; font-weight: 800; text-align: left; }
.selection-pickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 12px; }
.activity-date-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
.activity-date-inputs label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 900; }
.activity-date-inputs input { width: 100%; min-height: 38px; padding: 7px; border: 1px solid #d9d9d9; background: #fff; color: #222; font: inherit; }
.datetime-picker-box { min-width: 0; padding: 9px; border: 1px solid #3b486e; background: #080c1b; }
.datetime-picker-box > strong { display: block; margin-bottom: 7px; color: var(--yellow); font-size: 12px; text-align: center; }
.datetime-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.picker-group { display: grid; gap: 5px; min-width: 0; }
.picker-group > span { color: var(--muted); font-size: 11px; font-weight: 900; text-align: center; }
.picker-group.time-picker { grid-column: span 1; }
.wheel-select { width: 100%; min-height: 70px; padding: 4px; border: 1px solid #e5e5e5; background: #f7f7f7; color: var(--ink); font-size: 13px; font-weight: 900; text-align: center; }
.wheel-select:focus { border-color: var(--green); outline: 0; }
.text-wheel { position: relative; height: 108px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; background: #f7f7f7; }
.text-wheel::-webkit-scrollbar { display: none; }
.text-wheel::after { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 36px; border-top: 1px solid rgba(7, 193, 96, 0.5); border-bottom: 1px solid rgba(7, 193, 96, 0.5); pointer-events: none; }
.wheel-track { padding: 36px 0; }
.wheel-option { width: 100%; height: 36px; padding: 0; display: block; border: 0; background: transparent; color: #999; font-size: 15px; font-weight: 800; scroll-snap-align: center; cursor: pointer; }
.wheel-option.selected { color: #07a952; font-size: 17px; }

@media (max-width: 680px) {
  .selection-pickers { gap: 6px; }
  .datetime-picker-box { padding: 6px 4px; }
  .datetime-picker { grid-template-columns: 4.2ch 2.8ch 2.8ch minmax(4.6ch, 1fr); gap: 2px; }
}
.selection-summary { display: none; }
.note-dialog { position: relative; }
.note-dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.note-dialog-close:hover { color: #fff; }
.note-detail-row { display: flex; align-items: center; gap: 14px; min-height: 34px; border-bottom: 1px solid rgba(0,0,0,.1); color: #000; font-size: 14px; }
.note-detail-row b { width: 58px; flex: 0 0 58px; color: #000; font-weight: 600; }
.note-detail-row span { flex: 1; }
.saved-note { min-height: 58px; padding: 12px 14px; border-left: 3px solid var(--yellow); background: #f1f1f1; color: #000; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.saved-note-label { display: block; margin: 16px 0 7px; color: var(--muted); font-size: 12px; text-align: left; }
.dialog-actions { display: flex; justify-content: end; gap: 10px; }
.dialog-actions button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); font-weight: 900; }
.order-calendar-delete-button { margin-right: auto; border-color: #b42318 !important; background: #b42318 !important; color: #fff !important; }
.order-calendar-delete-button:hover { background: #8f1d1d !important; }
.dialog-cancel { background: #10172e; color: var(--muted); }
.dialog-confirm { background: var(--cyan); color: #07101a; box-shadow: 3px 3px 0 var(--blue); }

.drag-preview {
  position: fixed;
  z-index: 12;
  transform: translate(-50%, -100%);
  padding: 7px 10px;
  border: 1px solid var(--cyan);
  background: #07101a;
  color: var(--yellow);
  box-shadow: 3px 3px 0 var(--blue);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
  white-space: nowrap;
}

.drag-preview[hidden] { display: none; }

.calendar-view-switch {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 14px;
}

.view-switch {
  min-width: 92px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: #f7f7f7;
  color: #888;
  font-size: 13px;
  font-weight: 900;
}

.view-switch + .view-switch { border-left: 0; }
.view-switch.active { background: var(--green); border-color: var(--green); color: #fff; }
.friend-calendar-access { margin: 14px auto 0; width: min(560px, 100%); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.friend-calendar-access summary { min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; color: var(--ink); font-size: 13px; font-weight: 900; }
.friend-calendar-access summary::-webkit-details-marker { display: none; }
.friend-calendar-access summary::after { content: "+"; color: var(--green); font-size: 18px; }
.friend-calendar-access[open] summary::after { content: "-"; }
.friend-calendar-access summary b { color: #999; font-size: 11px; font-weight: 700; }
.friend-access-list { border-top: 1px solid var(--line); }
.friend-access-item { min-height: 58px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.friend-access-item:last-child { border-bottom: 0; }
.friend-avatar { width: 31px; height: 31px; display: grid; place-items: center; background: #e6f8ee; color: #07a952; font-size: 10px; font-weight: 900; }
.friend-access-name { display: grid; gap: 3px; flex: 1; }
.friend-access-name b { font-size: 13px; }
.friend-access-name small { color: #999; font-size: 11px; }
.friend-access-item input { width: 18px; height: 18px; margin: 0 0 0 4px; accent-color: var(--green); cursor: pointer; }
.view-friend-calendar { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #d9d9d9; background: #f7f7f7; color: #07a952; font-size: 11px; font-weight: 900; cursor: pointer; }
.view-friend-calendar:hover { border-color: var(--green); background: #e6f8ee; }
.view-friend-calendar:disabled { color: #aaa; cursor: not-allowed; }
.friend-access-item.unavailable { opacity: 0.55; cursor: not-allowed; }
.calendar-visibility-options { display: grid; gap: 8px; padding: 12px 14px 0; }
.visibility-option { display: flex; align-items: center; gap: 9px; min-height: 34px; color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.visibility-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); cursor: pointer; }
.visibility-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 0 5px 25px; }
.visibility-range[hidden] { display: none; }
.visibility-range label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.visibility-range input { min-width: 0; min-height: 36px; padding: 0 7px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.friend-access-list[hidden] { display: none; }
.profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.logout-button { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.72); background: #fff; color: #0b376f; font-size: 11px; font-weight: 900; cursor: pointer; }
.logout-button:hover { opacity: .86; }
.friends-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.friends-title-row h3 { margin: 2px 0 0; }
.add-friend-button { padding: 7px 10px; border: 1px solid var(--green); background: #e6f8ee; color: #07a952; font-size: 12px; font-weight: 900; cursor: pointer; }
.friend-methods { display: grid; gap: 8px; margin: 18px 0; }
.friend-method { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid #e5e5e5; background: #f7f7f7; color: var(--ink); text-align: left; cursor: pointer; }
.friend-method:hover { border-color: var(--green); background: #e6f8ee; }
.friend-method > b { color: #07a952; font-size: 20px; }
.friend-method span { display: grid; gap: 3px; font-size: 13px; font-weight: 900; }
.friend-method small { color: #999; font-size: 11px; font-weight: 700; }
.member-search { display: grid; gap: 8px; margin-bottom: 16px; }
.member-search input { min-height: 40px; padding: 9px; border: 1px solid #e5e5e5; background: #fff; color: var(--ink); }
.member-search button { min-height: 38px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 900; }
.member-search small { color: #07a952; font-weight: 900; }
.scan-placeholder { position: relative; min-height: 220px; margin-bottom: 16px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #edf3fb; }
.scan-placeholder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #f7f7f7; opacity: 0; transition: opacity .2s ease; }
.table-row { position: relative; grid-template-columns: 112px minmax(0, 1fr) 42px; gap: 14px; }
.order-row::before { display: none; }
.order-row.order-type-transfer,
.order-row.order-type-charter { background: #5e7da4; color: #fff; }
.order-row.order-type-no-order { background: #111111; color: #fff; }
.order-row.order-type-own { background: #629b69; color: #fff; }
#published-order-list .order-row { background: #629b69; color: #fff; }
#published-order-list .order-row time,
#published-order-list .order-row .order-description { color: #fff; }
#published-order-list .order-row .order-view-button { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.14); color: #fff; }
.order-row.order-type-transfer time,
.order-row.order-type-charter time,
.order-row.order-type-own time,
.order-row.order-type-transfer .order-description,
.order-row.order-type-charter .order-description,
.order-row.order-type-own .order-description { color: #fff; }
.order-row.order-type-transfer .order-view-button,
.order-row.order-type-charter .order-view-button,
.order-row.order-type-own .order-view-button,
.order-row.order-type-no-order .order-view-button { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.14); color: #fff; }
.table-row time { color: #888; font-size: 12px; font-weight: 900; white-space: nowrap; }
.order-description { min-width: 0; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.order-view-button { width: 34px; height: 30px; padding: 0; border: 1px solid #d9d9d9; background: #f7f7f7; color: #07a952; font-size: 18px; line-height: 1; cursor: pointer; }
.order-view-button:hover { border-color: var(--green); background: #e6f8ee; }
.order-unread-badge { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); padding: 4px 7px; border: 0; border-radius: 999px; background: #ffe08a; color: #725000; font-size: 10px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.order-unread-badge:hover { background: #ffd15a; }
.application-dialog { max-height: min(640px, calc(100vh - 28px)); overflow-y: auto; }
.application-list { display: grid; gap: 8px; margin: 14px 0; }
.application-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; border-bottom: 1px solid #e2e6eb; }
.application-tab { flex: 0 0 34px; width: 34px; height: 30px; padding: 0; border: 1px solid #cfd5dd; background: #f4f6f8; color: #5d6672; font-size: 12px; font-weight: 900; cursor: pointer; }
.application-tab.active { border-color: #5e7da4; background: #5e7da4; color: #fff; }
.application-item { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.application-item[hidden] { display: none !important; }
.application-item b, .application-item span { display: block; }
.application-item span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.application-toggle { width: 30px; height: 30px; padding: 0; border: 1px solid #d9d9d9; border-radius: 6px; background: #f7f9fc; color: #0b376f; font-size: 17px; cursor: pointer; }
.application-info { grid-column: 1 / -1; padding: 8px 10px; border-top: 1px solid #edf0f5; color: var(--muted); font-size: 11px; }
.application-message { grid-column: 1 / -1; padding: 8px 10px; background: #f3f5f8; color: #222; font-size: 12px; white-space: pre-wrap; }
.application-reply { grid-column: 1 / -1; width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 12px; resize: vertical; box-sizing: border-box; }
.application-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.application-actions button { min-width: 92px; min-height: 32px; padding: 6px 10px; font-size: 12px; }
.application-action-accept { background: #5e7da4; color: #fff; border-color: #5e7da4; }
.application-action-reject { background: #fff; color: #555; border-color: #c9cdd3; }
.application-actions button:disabled { opacity: .65; cursor: default; }
.application-message-field { display: flex; flex-direction: column; gap: 7px; margin: 18px 0 8px; }
.application-message-field > span { color: var(--ink); font-size: 13px; font-weight: 900; }
.application-message-field > small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.application-message-field textarea { width: 100%; min-height: 104px; padding: 11px 12px; border: 1px solid #cfd5dd; background: #fafbfc; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.5; box-sizing: border-box; resize: vertical; }
.application-message-field textarea:focus { border-color: #5e7da4; outline: 2px solid rgba(94,125,164,.18); }
#application-message-dialog .dialog-actions { justify-content: flex-end; gap: 12px; margin-top: 18px; }
#application-message-dialog .dialog-actions button { min-width: 104px; min-height: 38px; }
.order-dialog { width: min(430px, 100%); }
.order-service-date { margin: 14px 0 0; }
.order-service-date .order-edit-label { margin: 0 0 7px; }
.order-service-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-service-date-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.order-service-date-grid input { width: 100%; min-height: 36px; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; }
.order-edit-label { display: block; margin: 18px 0 7px; color: #888; font-size: 12px; font-weight: 900; }
.order-edit-description { width: 100%; min-height: 110px; padding: 11px; border: 1px solid #e5e5e5; background: #fff; color: var(--ink); resize: vertical; outline: none; }
.order-edit-description:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.12); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month-weekday { min-height: 28px; display: grid; place-items: center; background: #f7f7f7; color: #999; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 900; }
.month-day { min-height: 48px; padding: 5px 2px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #c7c7c7; color: #606060; cursor: crosshair; touch-action: none; }
.month-day b { font-size: 14px; }
.month-day span { font-size: 10px; font-weight: 900; }
.month-day.blocked { background: var(--day-gradient, rgba(11, 55, 111, 0.88)); color: #fff; }
.month-day.partial { background: var(--day-gradient); color: #18283d; }
.month-day.blocked.order-connect-next { border-right-color: rgba(11, 55, 111, 0.88); }
.month-day.blocked.transfer-order.order-connect-next { border-right-color: #5e7da4; }
.month-day.blocked:not(.order-connect-next) { box-shadow: inset -2px 0 0 #fff; }
.month-day.blocked.order-end { box-shadow: none; }
.month-day.no-order-day { color: transparent !important; --no-order-color: #4a5365; }
.month-day.no-order-day b { visibility: hidden; }
.month-calendar-card .key-swatch.available { background: #c7c7c7; }
.month-calendar-card .key-swatch.blocked { background: #0b376f; }
.month-day.selected { background: var(--yellow); color: #594900; box-shadow: inset 0 0 0 2px #fff; }
.month-day.outside { background: #f7f7f7; cursor: default; }
.month-calendar-card[hidden] { display: none; }

@media (max-width: 760px) {
  .calendar-title,
  .calendar-toolbar { display: grid; align-items: start; }
  .calendar-key { flex-wrap: wrap; }
  .calendar-key .calendar-status { margin-left: 0; width: 100%; }
  .calendar-key .calendar-status.viewing-friend { margin-left: auto; width: auto; }
  .calendar-mode { justify-content: start; }
}

@media (max-width: 680px) {
  .workspace { padding: 20px 14px; }
  .sidebar { padding: 20px 14px; }
  .workspace > .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* WeChat-inspired mobile-first skin. */
:root {
  --ink: #222222;
  --muted: #8b8b8b;
  --line: #e5e5e5;
  --paper: #f2f2f2;
  --panel: #ffffff;
  --green: #07c160;
  --cyan: #d9f3e5;
  --red: #fa5151;
  --yellow: #f7c948;
  --blue: #576b95;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body {
  background: var(--paper);
  padding-bottom: 82px;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d9d9d9;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}

.bottom-nav-item {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-right: 1px solid #ededed;
  background: transparent;
  color: #999;
  cursor: pointer;
}

.bottom-nav-item:last-child { border-right: 0; }
.bottom-nav-item.active { color: #07a952; background: #e6f8ee; }
.bottom-icon { font-size: 21px; line-height: 1; }
.bottom-nav-item small { font-size: 11px; font-weight: 900; }
.home-nav-item { text-decoration: none; }
.bottom-nav-item { min-height: 52px; gap: 0; }
.bottom-nav-item small { font-size: 13px; line-height: 1; }

/* The account summary belongs to the Me section only. */
.shell:not(.show-me) .profile-card { display: none !important; }
.shell.show-me .profile-card { display: grid !important; }
.shell:not(.show-me) { grid-template-columns: minmax(0, 1fr); }
.shell:not(.show-me) .sidebar { display: none !important; }
.shell.show-me .profile-card h1,
.shell.show-me .profile-card p,
.shell.show-me .page-title h3,
.shell.show-me .form-grid,
.shell.show-me .form-grid input,
.shell.show-me .form-grid textarea,
.shell.show-me .security-grid,
.shell.show-me .security-grid b,
.shell.show-me .security-grid span,
.shell.show-me .security-grid button,
.shell.show-me .message-list b,
.shell.show-me .message-list span,
.shell.show-me .message-list time { font-size: 13px; }
.shell.show-me .form-grid input,
.shell.show-me .form-grid select,
.shell.show-me .form-grid textarea { border-radius: 12px; }
.live-location { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 13px 58px 13px 15px; border: 1px solid #d9d9d9; border-radius: 12px; background: #fff; }
.live-location div { display: grid; gap: 4px; min-width: 0; }
.live-location b { color: #0b376f; font-size: 13px; }
.live-location span { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.live-location-actions { display: block; margin-left: auto; }
.live-location small { flex: 0 0 auto; color: var(--muted); font-size: 11px; text-align: right; }
.refresh-location { position: absolute; top: 50%; right: 15px; width: 30px; height: 30px; padding: 0; border: 1px solid #d9d9d9; border-radius: 50%; background: #fff; color: #0b376f; font-size: 20px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.refresh-location:hover { border-color: #0b376f; background: #edf3fb; }
.nearby-filter { min-width: 132px; min-height: 34px; margin-left: auto; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 9px; background: #fff; color: #0b376f; font-size: 11px; font-weight: 800; }
.custom-nearby-select { position: relative; min-width: 150px; margin-left: auto; }
.custom-select-native { display: none !important; }
.custom-nearby-select-button { width: 100%; min-height: 34px; padding: 0 28px 0 10px; border: 1px solid #d9d9d9; border-radius: 9px; background: #fff; color: #0b376f; font-size: 11px; font-weight: 800; text-align: left; cursor: pointer; position: relative; }
.custom-nearby-select-button::after { content: ""; position: absolute; right: 11px; top: 12px; width: 7px; height: 7px; border-right: 2px solid #07a952; border-bottom: 2px solid #07a952; transform: rotate(45deg); }
.custom-nearby-select-menu { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: 100%; padding: 4px; border: 1px solid #d9d9d9; border-radius: 9px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.custom-nearby-select-menu[hidden] { display: none; }
.custom-nearby-select-option { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: #0b376f; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.custom-nearby-select-option:hover { background: #e6f8ee; color: #078b47; }
.custom-order-type-select { position: relative; width: 100%; }
.custom-order-type-button { width: 100%; min-height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; text-align: left; position: relative; cursor: pointer; }
.custom-order-type-button::after { content: ""; position: absolute; right: 12px; top: 13px; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.custom-order-type-menu { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: 100%; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.custom-order-type-menu[hidden] { display: none; }
.custom-order-type-option { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.custom-order-type-option:hover { background: #e6f8ee; color: #078b47; }
.custom-sender-select { position: relative; }
.custom-sender-select-button { width: 100%; min-height: 38px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; text-align: left; position: relative; cursor: pointer; }
.custom-sender-select-button::after { content: ""; position: absolute; right: 12px; top: 13px; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.custom-sender-select-menu { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: 100%; max-height: 190px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.custom-sender-select-menu[hidden] { display: none; }
.custom-sender-select-option { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.custom-sender-select-option:hover { background: #e6f8ee; color: #078b47; }
.custom-profile-select { position: relative; width: 100%; }
.custom-profile-select-native { display: none !important; }
.custom-profile-select-button { width: 100%; min-height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; position: relative; cursor: pointer; }
.custom-profile-select-button::after { content: ""; position: absolute; right: 11px; top: 12px; width: 7px; height: 7px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.custom-profile-select-button:disabled { color: #777; cursor: default; background: #f7f7f7; }
.custom-profile-select-menu { position: absolute; z-index: 80; top: calc(100% + 4px); left: 0; width: 100%; max-height: 190px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.custom-profile-select-menu[hidden] { display: none; }
.custom-profile-select-option { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.custom-profile-select-option:hover { background: #e6f8ee; color: #078b47; }
.friend-list article[hidden] { display: none; }

@media (max-width: 520px) {
  .live-location { align-items: flex-start; flex-direction: column; }
  .live-location-actions { width: 100%; }
  .live-location small { text-align: left; }
  .friends-title-row { align-items: stretch; flex-wrap: wrap; }
  .nearby-filter { flex: 1; }
}

/* Week calendar time dialog: stacked iPhone-style date/time wheels. */
.week-time-dialog {
  width: min(700px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 30px 28px 24px;
  background: #fff;
}
.week-time-dialog > p { color: #0b376f; font-size: 14px; }
.week-time-dialog > h3 { color: #111; font-size: 38px; line-height: 1.15; }
.week-time-dialog .selection-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 34px 0 22px; }
.week-time-dialog .datetime-picker-box { padding: 0; border: 0; background: #fff; }
.week-time-dialog .datetime-picker-box > strong { margin-bottom: 14px; color: #f2b500; font-size: 27px; }
.week-time-dialog .datetime-picker { width: min(580px, 100%); margin: 0 auto; grid-template-columns: minmax(48px, 1fr) minmax(42px, .8fr) minmax(42px, .8fr) minmax(100px, 1.5fr); gap: 12px; }
.week-time-dialog .picker-group > span { color: #8e8e8e; font-size: 15px; }
.week-time-dialog .text-wheel { height: 116px; border: 0; background: transparent; }
.week-time-dialog .wheel-option { color: #a3a3a3; font-size: 19px; font-weight: 700; }
.week-time-dialog .wheel-option.selected { color: #111; font-size: 24px; font-weight: 900; }
.week-time-dialog .datetime-picker::before { top: 58px; height: 42px; background: #f1f1f3; }
.week-time-dialog .datetime-picker-box .text-wheel::before { background: linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(255,255,255,.2) 27%, rgba(255,255,255,0) 43%, rgba(255,255,255,0) 57%, rgba(255,255,255,.2) 73%, rgba(255,255,255,.98) 100%); }
.week-time-dialog .datetime-picker-box .text-wheel::after { display: none; }
.week-time-dialog .calendar-note-label { margin-top: 28px; color: #777; font-size: 18px; }
.week-time-dialog .calendar-note { min-height: 112px; border-color: #d9d9d9; background: #fff; color: #222; font-size: 15px; }
.week-time-dialog .dialog-actions { margin-top: 22px; }
.week-time-dialog .dialog-actions button { min-height: 48px; padding: 0 24px; font-size: 16px; }
.week-time-dialog .dialog-confirm { background: #0b376f; border-color: #0b376f; color: #fff; box-shadow: none; }

@media (max-width: 520px) {
  .week-time-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 78px 14px 88px; }
  .week-time-dialog > h3 { font-size: 29px; }
  .week-time-dialog .selection-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 26px; }
  .week-time-dialog .datetime-picker { gap: 4px; grid-template-columns: minmax(38px, 1fr) minmax(32px, .8fr) minmax(32px, .8fr) minmax(84px, 1.5fr); }
  .week-time-dialog .datetime-picker-box > strong { font-size: 23px; }
  .week-time-dialog .wheel-option { font-size: 16px; }
  .week-time-dialog .wheel-option.selected { font-size: 20px; }
  .week-time-dialog .dialog-actions button { padding: 0 16px; }
}
.friend-list article { box-shadow: inset 3px 0 0 var(--blue), var(--shadow); }
.friend-list { overflow-x: auto; }
.friend-list article { min-width: 0; min-height: 82px; padding: 12px 14px; display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(92px, .85fr) minmax(90px, .8fr) minmax(125px, 150px) 30px; grid-template-rows: minmax(28px, auto) minmax(28px, auto); align-items: center; column-gap: 5px; row-gap: 8px; }
.friend-list article > b { grid-column: 1 / -1; grid-row: 1; width: max-content; max-width: none; min-width: max-content; display: block; overflow: visible; white-space: pre !important; word-break: keep-all !important; overflow-wrap: normal !important; font-size: 13px; font-weight: 900; }
.friend-plate-inline { display: inline; color: #1769aa !important; font: inherit; font-weight: inherit; white-space: nowrap !important; }
.friend-list article > .friend-plate { grid-column: 3; grid-row: 1; color: #0b376f; font-size: 12px; font-weight: 800; }
.friend-list article > .friend-plate { display: none !important; }
.friend-list article > .friend-home { display: none; }
.friend-list article > .friend-current { grid-column: 1 / span 3; grid-row: 2; color: #777; font-size: 11px; }
.friend-list article > * { white-space: nowrap; }
.friend-current::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; background: url("./assets/current-location-pin.png") center / contain no-repeat; }
.friend-current img { display: none; }
.friend-list article > time { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.friend-calendar-visibility { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 5px; color: #0b376f; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.friend-calendar-visibility input { width: 16px; height: 16px; margin: 0; accent-color: #0b376f; cursor: pointer; }
.friend-relationship-select { grid-column: 2; grid-row: 1 / span 2; width: min(190px, 100%); min-height: 32px; padding: 0 28px 0 10px; border: 1px solid #d9d9d9; border-radius: 8px; appearance: none; -webkit-appearance: none; background-color: #fff; background-image: linear-gradient(45deg, transparent 50%, #07a952 50%), linear-gradient(135deg, #07a952 50%, transparent 50%); background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; color: #0b376f; font-size: 11px; font-weight: 800; cursor: pointer; }
.friend-relationship-select:disabled { color: #aaa; cursor: not-allowed; }
.custom-friend-select { position: relative; grid-column: 4; grid-row: 2; width: 190px; max-width: none; justify-self: end; }
.custom-friend-select-native { display: none !important; }
.custom-friend-select-button { width: 100%; min-height: 32px; padding: 0 26px 0 8px; overflow: hidden; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; color: #0b376f; font-size: 11px; font-weight: 800; text-align: left; text-overflow: clip; white-space: nowrap; cursor: pointer; position: relative; }
.custom-friend-select-button::after { content: ""; position: absolute; right: 10px; top: 12px; width: 7px; height: 7px; border-right: 2px solid #07a952; border-bottom: 2px solid #07a952; transform: rotate(45deg); }
.custom-friend-select-menu { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 100%; padding: 4px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.custom-friend-select-menu[hidden] { display: none; }
.custom-friend-select-option { display: block; width: 100%; padding: 8px 9px; border: 0; border-radius: 5px; background: transparent; color: #0b376f; font-size: 11px; font-weight: 700; text-align: left; cursor: pointer; }
.custom-friend-select-option:hover { background: #e6f8ee; color: #078b47; }
.custom-friend-select-button:disabled { color: #aaa; cursor: not-allowed; }
.friend-calendar-icon { grid-column: 5; grid-row: 2; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; background: #fff url("./assets/friend-calendar-icon.png") center / 23px auto no-repeat; color: #0b376f; font-size: 21px; line-height: 1; }
.friend-calendar-icon span { display: none; }
.friend-calendar-icon:hover { background-color: #edf3fb; }
.friend-calendar-visibility.disabled { color: #aaa; cursor: not-allowed; }
.friend-calendar-visibility.disabled input { cursor: not-allowed; }
.friend-calendar-dialog .selected-range { font-size: 14px; line-height: 1.5; }
.order-filters { display: flex; align-items: end; gap: 10px; margin: 0 0 12px; }
.order-page-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 14px; border-bottom: 1px solid #d9d9d9; }
.activity-billing-title { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid #e4e4e4; }
.billing-section-tabs { display: flex; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid #dfe4ea; overflow-x: auto; }
.billing-section-tab { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.billing-section-tab.active { border-bottom-color: #5e7da4; color: #0b376f; }
.billing-section-panel[hidden] { display: none; }
.billing-calculator { display: grid; gap: 14px; max-width: 420px; padding: 16px; border: 1px solid #dfe4ea; background: #fafbfc; }
.billing-calculator label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.billing-calculator input { min-height: 38px; padding: 0 10px; border: 1px solid #cfd5dd; background: #fff; color: var(--ink); font: inherit; }
.billing-calculator > strong { padding-top: 8px; color: #0b376f; font-size: 15px; }
.billing-calculator > label,
.billing-calculator > strong { display: none; }
.billing-calc-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #dfe4ea; }
.billing-calc-filters button { min-height: 38px; border: 1px solid #5e7da4; background: #5e7da4; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.billing-calc-result { grid-column: 1 / -1; padding: 10px; background: #eef3f8; color: #0b376f; font-size: 13px; font-weight: 900; }
.billing-calc-results-list { display: grid; gap: 6px; grid-column: 1 / -1; }
.billing-calc-order-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 38px; padding: 0 10px; background: #5e7da4; color: #fff; font-size: 12px; }
.billing-calc-order-row time { white-space: nowrap; }
.billing-calc-order-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billing-calc-order-row strong { white-space: nowrap; }
.billing-calc-order-total { padding: 10px; color: #0b376f; font-size: 14px; text-align: right; }
.billing-custom-filter { position: relative; display: grid; gap: 6px; }
.billing-custom-filter > span { color: var(--muted); font-size: 12px; font-weight: 900; }
.billing-filter-button { min-height: 38px; padding: 0 10px; border: 1px solid #cfd5dd; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.billing-filter-menu { position: absolute; z-index: 20; top: calc(100% + 3px); left: 0; right: 0; display: grid; border: 1px solid #cfd5dd; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.billing-filter-menu[hidden] { display: none; }
.billing-filter-menu button { min-height: 34px; padding: 6px 10px; border: 0; border-bottom: 1px solid #edf0f3; background: #fff; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.billing-filter-menu button:hover { background: #eef3f8; }
@media (max-width: 520px) { .billing-calc-filters { grid-template-columns: 1fr; } }
.activity-bill-group { border: 1px solid #d9d9d9; background: #fff; }
.activity-bill-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 12px; cursor: pointer; list-style: none; }
.activity-bill-summary::-webkit-details-marker { display: none; }
.activity-bill-summary > span { display: grid; gap: 3px; min-width: 0; }
.activity-bill-summary b { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.activity-bill-summary small { color: var(--muted); font-size: 11px; }
.activity-bill-summary > strong { flex: 0 0 auto; color: #0b376f; }
.activity-driver-bills { display: grid; gap: 1px; padding: 0 12px 8px; background: #f7f9fc; }
.activity-driver-bill { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 8px 0; border: 0; border-top: 1px solid #e4e4e4; background: transparent; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.activity-driver-bill:hover { color: #0b376f; }
.activity-driver-bill strong { color: var(--ink); }
.driver-bill-dialog { width: min(100%, 460px); }
.driver-bill-driver { margin: 8px 0 14px; color: #0b376f; font-weight: 800; }
.driver-bill-table { display: grid; gap: 0; border: 1px solid #d9d9d9; }
.driver-bill-table > div { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #e4e4e4; font-size: 12px; }
.driver-bill-table > div:last-child { border-bottom: 0; }
.driver-bill-table > div:first-child { background: #edf3fb; color: #0b376f; }
.driver-bill-table strong { color: #0b376f; text-align: right; }
.order-page-tab { min-height: 42px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: #777; font-size: 14px; font-weight: 900; cursor: pointer; }
.order-page-tab:hover { background: #f3f6fa; color: #0b376f; }
.order-page-tab.active { border-bottom-color: #0b376f; background: #edf3fb; color: #0b376f; }
.order-page-tab:focus-visible { outline: 2px solid #0b376f; outline-offset: -2px; }
.order-empty-state { padding: 28px 16px; color: #777; text-align: center; font-size: 13px; }
.activity-schedule-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid #d9d9d9; background: #fff; }
.activity-schedule { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.activity-schedule th, .activity-schedule td { height: 42px; padding: 6px 5px; border-right: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4; text-align: center; font-size: 11px; }
.activity-schedule thead th { height: 34px; padding: 4px 3px; background: #edf3fb; color: #0b376f; font-weight: 900; }
.activity-schedule thead th:first-child, .activity-schedule tbody th { width: 132px; }
.activity-schedule tbody th { background: #fafafa; color: #444; font-weight: 800; }
.activity-vehicle-select { width: 100%; padding: 5px 3px; border: 1px solid #d9d9d9; background: #fff; color: #444; font: inherit; font-size: 10px; font-weight: 800; }
.activity-vehicle-picker { position: relative; display: block; min-height: 38px; }
.activity-vehicle-picker .activity-vehicle-select { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; }
.activity-vehicle-display { display: grid; min-height: 38px; align-content: center; gap: 2px; padding: 3px 4px; border: 1px solid #d9d9d9; background: #fff; color: #444; text-align: center; line-height: 1.1; }
.activity-vehicle-display b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-vehicle-display small { overflow: hidden; color: #777; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-add-vehicle { display: block; width: 100%; min-height: 32px; margin: 0; padding: 0 7px; border: 1px solid #0b376f; border-radius: 5px; background: #0b376f; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; cursor: pointer; }
.activity-add-vehicle:hover { background: #164b8d; }
.activity-schedule td { cursor: pointer; background: #fff; }
.activity-schedule td:hover { background: #f3f6fa; }
.activity-schedule td.activity-selected { background: #d8e8fb; box-shadow: inset 0 0 0 2px #0b376f; }
.activity-schedule td.activity-transfer, .activity-schedule td.activity-charter { color: transparent; }
.order-status-group[hidden] { display: none !important; }
.order-filters .publish-order-button { margin-left: auto; }
.order-page-refresh { width: 32px; height: 32px; padding: 0; border: 1px solid #0b376f; border-radius: 50%; background: #fff; color: #0b376f; font-size: 20px; line-height: 1; cursor: pointer; }
.order-page-refresh:hover { background: #eef4fb; }
.order-page-refresh:disabled { opacity: .55; cursor: wait; }
.order-filters label[hidden] { display: none !important; }
#trips.is-refreshing .order-status-groups { opacity: .5; transition: opacity .15s ease; }
.order-status-groups { display: grid; gap: 16px; }
.order-status-group { display: grid; gap: 7px; }
.order-status-group h4 { margin: 0; padding-left: 2px; color: #0b376f; font-size: 14px; }
.activity-range-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 8px; margin: 8px 0 12px; }
.activity-range-controls label[hidden] { display: none !important; }
.activity-range-controls:has(label[hidden]) { display: flex; justify-content: flex-end; }
.activity-add-button { min-height: 34px; padding: 0 12px; border: 1px solid #0b376f; background: #0b376f; color: #fff; font-weight: 800; cursor: pointer; }
.activity-section-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.activity-list { display: grid; gap: 7px; margin: 8px 0 12px; }
.activity-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.activity-list-row:hover { border-color: #0b376f; background: #edf3fb; }
.activity-list-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-list-row span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.activity-empty { padding: 14px; border: 1px dashed #d9d9d9; color: var(--muted); font-size: 12px; text-align: center; }
.activity-schedule-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.activity-schedule-actions span { color: #2f7a45; font-size: 12px; font-weight: 800; }
.activity-schedule-actions button { min-height: 34px; padding: 0 14px; border: 1px solid #0b376f; background: #0b376f; color: #fff; font-weight: 800; cursor: pointer; }
.activity-create-dialog { width: min(100%, 430px); }
.activity-create-dialog label { display: grid; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 800; }
.activity-create-dialog input { min-height: 38px; padding: 7px 9px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); }
.activity-create-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.activity-create-message { min-height: 18px; margin: 10px 0 0; color: #b77a00; font-size: 12px; }
.visibility-range-button { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.visibility-range-button:hover { border-color: #0b376f; background: #edf3fb; }
.visibility-bar { margin-top: 8px; }
.visibility-edit-actions { display: flex; justify-content: flex-end; gap: 12px; margin: 12px 4px 4px; }
.visibility-edit-actions button { min-height: 32px; padding: 0 14px; border: 1px solid #0b376f; background: #fff; color: #0b376f; font-weight: 800; cursor: pointer; }
.visibility-edit-actions button:first-child { background: #0b376f; color: #fff; }
.visibility-edit-actions button:last-child { background: #fff; color: #0b376f; }
.visibility-range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; }
.visibility-range-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.visibility-range-fields input { min-height: 38px; padding: 6px 8px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); }
.visibility-range-message { min-height: 18px; margin: 8px 0; color: #2f7a45; font-size: 12px; }
.activity-range-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.activity-range-controls input { min-height: 34px; padding: 5px 7px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); font: inherit; }
.activity-range-controls button { min-height: 34px; padding: 0 14px; border: 1px solid #0b376f; background: #0b376f; color: #fff; font-weight: 800; cursor: pointer; }
.billing-row { grid-template-columns: 92px 62px 62px minmax(0, 1fr); white-space: nowrap; }
.billing-row .order-description { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billing-row { cursor: pointer; }
.billing-row:hover { background: #edf3fb; }
.billing-detail-dialog { width: min(100%, 460px); }
.billing-detail-content { display: grid; gap: 0; margin: 14px 0; border: 1px solid #d9d9d9; }
.billing-detail-content p { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; margin: 0; padding: 10px; border-bottom: 1px solid #e4e4e4; font-size: 13px; }
.billing-detail-content p:last-child { border-bottom: 0; }
.billing-detail-content b { color: #0b376f; }
.billing-detail-content span { overflow-wrap: anywhere; }
.billing-detail-actions { align-items: end; justify-content: space-between; }
.billing-detail-actions label { display: grid; gap: 4px; color: #0b376f; font-size: 12px; font-weight: 800; }
.billing-detail-actions select { min-height: 34px; padding: 0 8px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); font: inherit; }
.billing-detail-button-group { display: flex; align-items: center; gap: 12px; }
.billing-row strong { color: #0b376f; font-size: 14px; text-align: right; }
.billing-status { color: #b77a00; font-size: 12px; font-weight: 800; text-align: right; }
.billing-status.settled { color: #2f7a45; }
.order-filters label,
.order-edit-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.order-filters select,
.order-edit-grid input { min-height: 36px; padding: 0 9px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; }
.order-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.order-edit-grid input { width: 100%; }
.order-edit-note { width: 100%; min-height: 74px; padding: 10px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; color: var(--ink); resize: vertical; }
.order-row[hidden] { display: none; }

.sidebar {
  background: #07c160;
  border-right: 0;
  color: #fff;
}

.profile-card,
.metrics article,
.panel,
.table-panel,
.form-grid,
.security-grid article,
.message-list article,
.calendar-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-card h1,
.profile-card p,
.profile-card .progress span,
.profile-card .progress b { color: #fff; }
.avatar { background: #fff; color: #07a952; border-color: #fff; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.14); }
.progress i { border-color: rgba(255, 255, 255, 0.65); background: rgba(255, 255, 255, 0.2); }
.progress em { background: #fff; }
.topbar { border-bottom-color: var(--line); }
.topbar { justify-content: flex-end; }
.topbar h2,
.panel-head h3,
.page-title h3 { color: var(--ink); }
.eyebrow,
.brand small,
.panel-head p,
.page-title p { color: #999; }

.nav-item,
.support-btn,
.top-actions button,
.panel-head button,
.table-row button,
.security-grid button {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.nav-item.active { background: #e6f8ee; color: #07a952; box-shadow: none; }
.nav-item:hover,
.top-actions button:hover,
.panel-head button:hover,
.table-row button:hover,
.security-grid button:hover { border-color: var(--green); }
.icon { border-color: #d9d9d9; background: #f7f7f7; color: #07a952; }
.top-actions .primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: none; }
.top-actions .primary { min-width: 96px; white-space: nowrap; }
.task-list label,
.toggle,
.table-row,
.device-card,
.pixel-menu span,
.form-grid input,
.form-grid textarea,
.form-grid select,
.badge { border-color: #e5e5e5; background: #fff; color: var(--ink); }
.task-list label { box-shadow: inset 3px 0 0 var(--green); }
.task-list small,
.order-list span,
.security-grid span,
.message-list span { color: var(--muted); }
.table-row.heading { background: #f7f7f7; color: var(--ink); }
.badge.ok { background: #e6f8ee; color: #07a952; }
.badge.warn { background: #fff1f0; color: var(--red); }
.table-row button,
.security-grid button { background: #f7f7f7; }
.message-list article { box-shadow: inset 3px 0 0 var(--green), var(--shadow); }
.calendar-month { color: #07a952; }
.calendar-card { box-shadow: var(--shadow); }
.calendar-grid { border-color: #e5e5e5; }
.calendar-corner,
.hour-label { background: #f7f7f7; color: #999; border-color: #e5e5e5; }
.day-label { background: #fff; color: var(--ink); border-color: #e5e5e5; }
.day-label b { color: #07a952; font-size: 10px; letter-spacing: 0; }
.day-label { justify-content: center; padding-left: 0; padding-right: 0; }
.time-cell { background: rgba(7, 193, 96, 0.68); border-color: #e5e5e5; }
.time-cell.available:hover { background: #07c160; }
.time-cell.blocked { background: #c7c7c7; }
.time-cell.partial { background: var(--cell-gradient); }
.week-tab { border-color: #d9d9d9; background: #f7f7f7; color: #888; box-shadow: none; }
.week-tab.active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: none; }
.calendar-dialog { border-color: var(--green); background: #fff; box-shadow: 5px 5px 0 rgba(7, 193, 96, 0.18), 0 20px 60px rgba(0, 0, 0, 0.2); }
.calendar-dialog p { color: #07a952; }
.calendar-dialog h3 { color: var(--ink); }
.selected-range { border-color: #e5e5e5; background: #f7f7f7; color: #07a952; }
.calendar-note { border-color: #e5e5e5; background: #fff; color: var(--ink); }
.dialog-cancel { background: #f7f7f7; color: #666; }
.dialog-confirm { background: var(--green); color: #fff; box-shadow: none; }
.month-menu { border-color: var(--green); background: #fff; box-shadow: 4px 4px 0 rgba(7, 193, 96, 0.16); }
.month-option { color: #666; }
.month-option:hover,
.month-option.active { background: #e6f8ee; color: #07a952; }

@media (max-width: 680px) {
  .shell { display: block; }
  .sidebar { padding: 16px; }
  .sidebar .profile-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
  }
  .sidebar .avatar-upload { grid-row: span 2; }
  .sidebar .avatar { width: 58px; height: 58px; margin: 0; }
  .profile-card h1 { font-size: 18px; }
  .profile-card p { margin: 4px 0 12px; line-height: 1.5; }
  .profile-card .progress { grid-column: 2; }
  .workspace { padding: 0 0 24px; }
  body { padding-bottom: 86px; }
  .bottom-nav { bottom: 0; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; }
  .topbar { min-height: 68px; padding: 14px 16px; margin: 0; align-items: center; background: #fff; }
  .top-actions { gap: 6px; }
  .top-actions button:not(.primary) { display: none; }
  .top-actions .primary { min-width: 86px; height: 38px; }
  .workspace > .nav-list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 8px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .workspace > .nav-list::-webkit-scrollbar { display: none; }
  .workspace > .nav-list .nav-item {
    min-width: 92px;
    min-height: 48px;
    padding: 0 10px;
    grid-template-columns: 22px 1fr;
    gap: 5px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
  }
  .workspace > .nav-list .nav-item.active { border-bottom-color: var(--green); background: transparent; }
  .workspace > .nav-list .icon { width: 20px; height: 20px; border: 0; background: transparent; }
  .section-panel { padding: 14px; }
  .section-panel#overview { padding-top: 18px; }
  .panel { padding: 14px; }
  .calendar-title { display: flex; justify-content: space-between; align-items: center; padding-top: 2px; }
  .calendar-month-picker { margin-left: auto; }
  .calendar-month { white-space: nowrap; }
  .month-menu { right: 0; left: auto; }
  .calendar-card { margin: 0 -14px; padding: 10px 6px; border-left: 0; border-right: 0; box-shadow: none; }
  .calendar-toolbar { margin-bottom: 12px; }
  .week-tabs { overflow-x: auto; padding-bottom: 2px; }
  .week-tab { min-width: 76px; padding: 0 11px; }
  .calendar-mode { display: none; }
  .page-title h3 { font-size: 22px; }
  .form-grid { box-shadow: var(--shadow); }
  .table-row { grid-template-columns: 84px minmax(0, 1fr) 34px; gap: 7px; padding: 12px 10px; }
  .table-row time { font-size: 10px; }
  .order-description { font-size: 12px; }
  .order-view-button { width: 30px; height: 28px; font-size: 16px; }
}

/* Keep form dialogs fully usable inside narrow phone viewports. */
@media (max-width: 520px) {
  input, textarea, select { font-size: 16px !important; }
  .order-unread-badge { right: 56px; }
  .order-filters { flex-wrap: wrap; }
  .order-filters .publish-order-button { margin-left: auto; }
  .calendar-dialog-backdrop {
    padding: 12px;
    overflow-y: auto;
  }
  .calendar-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 74px 14px 88px;
  }
  #calendar-dialog.month-charter-dialog .calendar-dialog {
    max-height: calc(100dvh - 24px);
  }
  .order-dialog { width: 100%; }
  .selection-pickers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .datetime-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .datetime-picker-box,
  .datetime-picker,
  .picker-group,
  .text-wheel { min-width: 0; }
  .order-service-date-grid { grid-template-columns: 1fr; gap: 8px; }
  .order-service-date-grid label,
  .order-service-date-grid input,
  .order-edit-grid label,
  .order-edit-grid input,
  .order-edit-note { min-width: 0; max-width: 100%; }
}

/* Final corner-radius pass keeps the softer shape after responsive overrides. */
.profile-card,
.panel,
.table-panel,
.security-grid article,
.message-list article,
.calendar-card,
.friend-calendar-access,
.form-grid,
.bottom-nav,
.calendar-dialog,
.month-menu,
.login-submit,
#login-form input[type="email"],
#login-form input[type="password"],
#login-form input[type="text"] { border-radius: 14px; }

.bottom-nav[hidden] { display: none !important; }

.nav-item,
.support-btn,
.top-actions button,
.panel-head button,
.table-row button,
.security-grid button,
.week-tab,
.view-switch,
.add-friend-button,
.dialog-actions button,
.friend-method,
.member-search button,
.order-view-button { border-radius: 10px; }

.time-cell,
.month-day,
.calendar-month,
.bottom-nav-item { border-radius: 5px; }

.bottom-nav {
  position: fixed !important;
  z-index: 100 !important;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.profile-summary-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; line-height: 1.4; }
.profile-summary-line,
.profile-summary-line span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0; }
.profile-summary-divider { opacity: .55; margin: 0 2px; }
.team-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-title h4 { margin: 0; }
.team-title-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.team-code-bar { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin: 12px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8fc; color: var(--ink); text-align: left; cursor: pointer; }
.team-code-bar:hover { background: #eaf2fb; }
.team-code-bar b { color: #0b376f; font-size: 16px; letter-spacing: 2px; }
.team-code-bar small { color: var(--muted); font-weight: 800; }
.team-request-list article { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-request-list article small { margin-left: auto; }
.team-request-list article div { display: flex; gap: 6px; }
.team-request-list article button { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 5px 8px; cursor: pointer; }
.team-request-list article button:hover { background: #e6f8ee; }
.friend-list article[data-approved-friend] { position: relative; }
.friends-team-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 14px; padding: 4px; border: 1px solid var(--line); background: #f7f9fc; }
.friends-team-tab { min-height: 34px; border: 0; background: transparent; color: var(--muted); font-weight: 900; cursor: pointer; }
.friends-team-tab.active { background: #5e7da4; color: #fff; }
.friend-remove-button { position: absolute; top: 5px; right: 6px; z-index: 3; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #e53935; font-size: 22px; font-weight: 900; line-height: 20px; cursor: pointer; }
.friend-remove-button:hover { background: #fff0f0; color: #b91c1c; }

/* 统一全站蓝色按钮为日历色：#5e7da4 */
.publish-order-button,
.hall-order-action,
.register-submit,
.week-time-dialog .dialog-confirm,
.activity-add-vehicle,
.activity-add-button,
.activity-schedule-actions button,
.activity-range-controls button,
.visibility-edit-actions button:first-child,
.billing-calc-filters button,
.week-tab.active,
.month-option.active,
.nav-item.active { background: #5e7da4; border-color: #5e7da4; }
.publish-order-button:hover,
.hall-order-action:hover,
.activity-add-vehicle:hover,
.activity-add-button:hover,
.activity-schedule-actions button:hover,
.activity-range-controls button:hover { background: #4f6f95; }
.team-list article { position: relative; min-height: 70px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; align-items: center; gap: 7px 10px; }
.team-list article.created-team-row { cursor: pointer; background: #f5f8fc; border-color: #b8cce3; }
.team-list article.created-team-row:hover { background: #eaf2fb; }
.created-team-row b { grid-column: 1; grid-row: 1; }
.created-team-row span { grid-column: 1; grid-row: 2; color: #0b376f; font-weight: 800; letter-spacing: 1px; }
.created-team-row > small { grid-column: 3; grid-row: 1 / span 2; color: var(--muted); font-size: 22px; font-weight: 900; line-height: 1; }
.team-members-inside { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
.team-members-inside .team-member-row { margin: 8px 0 0; background: #fff; }
.team-list article > b { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-list article > .friend-current { grid-column: 1; grid-row: 2; }
.team-list article > .team-friend-status { grid-column: 2; grid-row: 2; color: var(--blue); font-size: 11px; font-weight: 800; }
.team-list article > .friend-calendar-icon { grid-column: 3; grid-row: 2; }
.has-pending-requests { background: #ef4444 !important; color: #fff !important; border-color: #ef4444 !important; }

.page-title:empty { display: none; }

.profile-card > .avatar-upload {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.profile-card > .avatar-upload + div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.profile-card > .avatar-upload + div .profile-heading {
  align-items: flex-start;
}

@media (max-width: 680px) {
  .profile-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

.day-bar .time-cell {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--slot-color, #c7c7c7) !important;
  background-clip: border-box;
  box-shadow: none;
}

.day-bar .time-cell.blocked { background: var(--slot-color, rgba(11, 55, 111, 0.88)) !important; }
.calendar-card:not(.month-calendar-card) .key-swatch.available { background: #c7c7c7; }
.calendar-card:not(.month-calendar-card) .key-swatch.blocked { background: #0b376f; }

.day-bar .time-cell:first-child,
.day-bar .time-cell:last-child { border-radius: 0 !important; }
.day-bar .time-cell.selected { background: rgba(255, 216, 97, .72) !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9); }


/* Keep both date-time wheels visibly usable inside the light dialog. */
.datetime-picker-box .text-wheel {
  height: 116px;
  min-height: 116px;
  overflow-y: scroll;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.datetime-picker-box .wheel-option {
  color: #777;
  font-size: 14px;
  line-height: 36px;
}

.datetime-picker-box .wheel-option.selected {
  color: #08a957;
  font-size: 17px;
  font-weight: 900;
}

.datetime-picker-box .text-wheel::after {
  top: 40px;
  height: 36px;
  border-top: 2px solid rgba(7, 193, 96, .42);
  border-bottom: 2px solid rgba(7, 193, 96, .42);
}

.calendar-dialog,
.datetime-picker-box { background: #fff; }

.datetime-picker-box .text-wheel {
  background: #fff;
}

.datetime-picker-box .text-wheel::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, .98) 0%,
    rgba(255, 255, 255, .28) 25%,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0) 58%,
    rgba(255, 255, 255, .28) 75%,
    rgba(255, 255, 255, .98) 100%
  );
}

.datetime-picker-box .wheel-track {
  position: relative;
  z-index: 0;
}

.datetime-picker-box .text-wheel::after { z-index: 2; }

/* iPhone-like wheel treatment: one continuous selection band per date-time box. */
.datetime-picker-box {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.datetime-picker {
  position: relative;
  column-gap: 7px;
  padding: 0 4px;
}

.datetime-picker::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 58px;
  height: 36px;
  border-radius: 999px;
  background: #f1f1f3;
  pointer-events: none;
}

.datetime-picker-box .picker-group {
  position: relative;
  z-index: 1;
}

.datetime-picker-box .text-wheel {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.datetime-picker-box .text-wheel::after {
  display: none;
}

.datetime-picker-box .wheel-option.selected {
  color: #111;
}

.datetime-picker-box .wheel-option {
  color: #333;
}

.datetime-picker-box .picker-group > span {
  color: #999;
}

/* noctrip identity color: replace the account page accent green with logo navy. */
:root { --green: #0b376f; }
.sidebar { background: #0b376f; }
.time-cell,
.month-day { background-color: #c7c7c7; }
.time-cell.available:hover { background-color: #0b376f; }
.month-day { color: #606060; }
.day-label b,
.calendar-month,
.calendar-dialog p,
.selected-range,
.order-view-button,
.view-friend-calendar,
.add-friend-button,
.friend-method > b,
.member-search small,
.icon,
.month-option.active { color: #0b376f; }
.bottom-nav-item.active,
.nav-item.active { color: #0b376f; background: #edf3fb; }
.calendar-dialog,
.month-menu,
.dialog-confirm,
.member-search button,
.week-tab.active { border-color: #0b376f; }
.dialog-confirm,
.member-search button,
.week-tab.active { background: #0b376f; }
.friend-access-item input { accent-color: #0b376f; }
.friend-avatar,
.friend-method:hover,
.view-friend-calendar:hover,
.add-friend-button,
.month-option:hover,
.month-option.active { background: #edf3fb; }
.day-label b { color: #0b376f; }

/* Fixed website navigation above the signed-in workspace. */
.shell:not([hidden]) { padding-top: 82px; }

.top-floating-nav {
  position: fixed;
  z-index: 101;
  top: 14px;
  left: 50%;
  width: min(720px, calc(100% - 28px));
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.top-floating-nav-item {
  min-width: 0;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid #ededed;
  background: transparent;
  color: #606876;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.top-floating-nav-item:last-child { border-right: 0; }
.top-floating-nav-item:hover,
.top-floating-nav-item.active { color: #0b376f; background: #edf3fb; }
.top-live-location { min-width: 0; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #0b376f; font-size: 11px; font-weight: 900; }
.top-live-location img { width: 17px; height: 23px; flex: 0 0 auto; object-fit: contain; }
.top-live-location span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav-item small { white-space: nowrap; }

.utility-page {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.utility-page h3 { margin: 0 0 10px; font-size: 24px; }
.utility-page p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.utility-partners { display: flex; align-items: center; gap: 34px; overflow-x: auto; padding: 20px 4px; }
.utility-partners img { width: auto; max-width: 150px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.utility-partners img[alt="Costa Crociere"] { height: 62px; }
.utility-primary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #0b376f;
  color: #fff;
  font-weight: 900;
}
.utility-status { display: inline-block; margin-left: 12px; color: #0b376f; font-size: 13px; font-weight: 800; }
.invite-code-panel {
  width: min(100%, 440px);
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
}
.invite-code-panel[hidden] { display: none !important; }
.invite-code-panel span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 800; }
.invite-code-panel strong { color: #0b376f; font-size: 24px; letter-spacing: 2px; overflow-wrap: anywhere; }
.invite-code-panel button { min-height: 38px; padding: 0 14px; border: 1px solid #0b376f; background: #fff; color: #0b376f; font-weight: 900; cursor: pointer; }
.invite-code-panel + .utility-status { margin-top: 12px; margin-left: 0; }
.contact-form { width: min(100%, 620px); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 900; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; outline: none; }
.contact-form input { min-height: 44px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #0b376f; box-shadow: 0 0 0 3px rgba(11, 55, 111, .12); }
.contact-form .utility-primary-button { justify-self: start; }
.contact-form .utility-status { margin-left: 0; }
.contact-ticket-number { margin: 18px 0 12px; padding: 12px; background: #edf3fb; color: #555; font-size: 13px; }
.contact-ticket-number strong { color: #0b376f; font-size: 15px; }
.contact-confirm-content { display: grid; gap: 8px; padding: 14px 0; text-align: left; }
.contact-confirm-content b { color: var(--ink); font-size: 14px; }
.contact-confirm-content span { color: var(--muted); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.friend-request-field { display: grid; gap: 6px; margin: 12px 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.friend-request-field input, .friend-request-field textarea { width: 100%; padding: 9px; border: 1px solid #d9d9d9; background: #fff; color: var(--ink); font: inherit; resize: vertical; }
.friend-request-field > small { min-height: 16px; color: #0b376f; font-size: 11px; }
.friend-request-actions { display: flex; gap: 10px; margin-top: 14px; }
.friend-request-actions button { flex: 1; min-height: 36px; padding: 0 12px; font-size: 12px; }
.friend-request-submit { margin-top: 0; }
.add-friend-dialog { width: min(100%, 430px); padding: 24px; }
.add-friend-dialog > p { margin: 0 0 5px; color: #0b376f; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.add-friend-dialog h3 { margin-bottom: 18px; font-size: 22px; }
.add-friend-dialog > .dialog-cancel { width: 100%; min-height: 38px; margin-top: 10px; border: 1px solid #d9d9d9; cursor: pointer; }
.add-friend-dialog #friend-request-status { display: block; min-height: 18px; margin-top: 9px; color: #0b376f; font-size: 12px; text-align: center; }

@media (max-width: 680px) {
  .shell:not([hidden]) { padding-top: 66px; }
  .top-floating-nav { top: 0; width: 100%; min-height: 54px; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .top-floating-nav-item { padding: 0 3px; font-size: 12px; }
  .top-live-location { padding: 0 5px; gap: 4px; font-size: 10px; }
  .top-live-location img { width: 14px; height: 20px; }
  .bottom-nav-item small { font-size: 12px; }
  .utility-page { min-height: 220px; padding: 20px 16px; border-radius: 14px; }
  .utility-page h3 { font-size: 20px; }
  .invite-code-panel { grid-template-columns: 1fr; padding: 14px; }
  .invite-code-panel span { grid-column: auto; }
  .invite-code-panel strong { font-size: 21px; }
  .invite-code-panel button { width: 100%; }
  .utility-partners { gap: 24px; }
  .utility-partners img { max-width: 118px; height: 34px; }
  .utility-partners img[alt="Costa Crociere"] { height: 48px; }
  .friend-list article { min-width: 0; grid-template-columns: minmax(92px, 1.1fr) minmax(70px, .85fr) minmax(70px, .8fr) minmax(112px, 34%) 28px; column-gap: 4px; }
  .custom-friend-select { width: 180px; }
  .friend-relationship-select { width: 100%; padding: 0 4px; font-size: 10px; }
  .friend-calendar-icon { width: 32px; height: 32px; font-size: 19px; }
  #calendar-charter-fields { grid-template-columns: 1fr; }
  .calendar-order-meta { grid-template-columns: 1fr; }
  .calendar-charter-itinerary { grid-column: auto; grid-template-columns: 1fr; }
  .activity-schedule-wrap { overflow-x: hidden; }
  .activity-schedule-wrap.activity-schedule-wrap-long { overflow-x: auto; }
  .activity-schedule { width: max-content; min-width: 0; table-layout: fixed; }
  .activity-schedule thead th:not(:first-child), .activity-schedule tbody td { width: calc((100vw - 132px) / 7); }
  .activity-schedule.activity-schedule-long { width: auto; min-width: 720px; }
  .activity-schedule.activity-schedule-long thead th:not(:first-child), .activity-schedule.activity-schedule-long tbody td { width: calc((100vw - 132px) / 7); }
  .activity-schedule th, .activity-schedule td { height: 36px; padding: 3px 1px; font-size: 9px; }
  .activity-schedule thead th { height: 29px; padding: 2px 1px; font-size: 9px; }
  .activity-schedule thead th:first-child, .activity-schedule tbody th { width: 82px; }
  .activity-vehicle-select { padding: 3px 1px; font-size: 8px; }
  .activity-vehicle-picker, .activity-vehicle-display { min-height: 34px; }
  .activity-vehicle-display { padding: 2px 1px; }
  .activity-vehicle-display b { font-size: 8px; }
  .activity-vehicle-display small { font-size: 7px; }
  .activity-add-vehicle { min-height: 28px; margin: 0; padding: 0 4px; font-size: 8px; }
  .activity-range-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .activity-range-controls button { grid-column: 1 / -1; }
}

.order-view-button {
  border: 0 !important;
  background-color: transparent !important;
  background-image: url("./assets/order-edit-icon.png") !important;
  background-position: center !important;
  background-size: 21px auto !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
  text-indent: -9999px;
}
.order-view-button:hover { background-color: #edf3fb !important; }
.dialog-actions .order-delete,
.dialog-actions .delete-order-confirm {
  margin-right: auto;
  border: 0 !important;
  background: #d93025 !important;
  color: #fff !important;
}
.dialog-actions .delete-order-confirm { margin-right: 0; }
.dialog-actions .order-delete:hover,
.dialog-actions .delete-order-confirm:hover { background: #b42318 !important; }
.delete-order-dialog { width: min(420px, 100%); }
.order-dialog { max-height: min(760px, calc(100vh - 28px)); overflow-y: auto; }

/* Global square-corner treatment. */
*,
*::before,
*::after {
  border-radius: 0 !important;
}
.order-unread-badge { width: 32px; height: 32px; padding: 3px; appearance: none; -webkit-appearance: none; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; background-image: none !important; color: transparent; font-size: 0; cursor: pointer; }
.order-unread-badge:focus-visible { outline: 0; box-shadow: none; }
.order-unread-badge img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; }
.order-unread-badge.has-application img { filter: none; opacity: 1; }
