:root {
  --chrome-height: 118px;
  --sky: #B8D8F0;
  --mist: #D6ECF8;
  --sun: #FFF3C0;
  --honey: #FFDF90;
  --lotus: #FFD6DC;
  --leaf: #D8EDD8;
  --canvas: #FAFBFC;
  --quartz: #E2EAF0;
  --cream: #F7F1E6;
  --meadow: #7FB65A;
  --grove: #3F6B3A;
  --butter: #F6C94C;
  --sunset: #F79A2E;
  --tomato: #E94832;
  --coral: #F47C6B;
  --blush: #F3B8C8;
  --day-sky: #77B8E8;
  --fjord: #9ED6D2;
  --snow-lilac: #D8C8F4;
  --wood: #B98E63;
  --bg: var(--canvas);
  --panel: rgba(250, 251, 252, 0.93);
  --ink: #3A6080;
  --muted: #6e8798;
  --line: rgba(58, 96, 128, 0.16);
  --line-strong: rgba(58, 96, 128, 0.28);
  --accent: var(--ink);
  --accent-2: var(--sky);
  --amber: var(--honey);
  --rose: var(--tomato);
  --shadow: 0 18px 44px rgba(58, 96, 128, 0.13);
  --paper-shadow: 0 8px 22px rgba(58, 96, 128, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 243, 192, 0.72) 0, rgba(255, 243, 192, 0) 24%),
    radial-gradient(circle at 88% 14%, rgba(184, 216, 240, 0.38) 0, rgba(184, 216, 240, 0) 25%),
    linear-gradient(135deg, var(--canvas) 0%, var(--mist) 52%, var(--sky) 100%);
  color: var(--ink);
  font-family: "Noto Sans TC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  min-height: 72px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  background: rgba(250, 251, 252, 0.86);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px) saturate(1.08);
}

.topbar-actions,
.section-heading,
.form-actions,
.search-row {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.topbar-actions .ghost-button {
  flex: 0 0 auto;
}

.brand-lockup {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  flex: 1 1 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 216, 240, 0.9);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(58, 96, 128, 0.08);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand-name {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.trip-title {
  min-width: 0;
  color: var(--ink);
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  min-height: calc(100vh - var(--chrome-height));
  display: grid;
  grid-template-columns: minmax(390px, 460px) minmax(0, 1fr);
}

.planner-panel {
  min-height: calc(100vh - var(--chrome-height));
  max-height: calc(100vh - var(--chrome-height));
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(250, 251, 252, 0.96), rgba(214, 236, 248, 0.72)),
    var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body[data-stop-edit-mode="true"] .planner-panel {
  background: linear-gradient(180deg, rgba(184, 216, 240, 0.76), rgba(250, 251, 252, 0.96));
  border-right-color: rgba(58, 96, 128, 0.28);
  box-shadow: inset 3px 0 0 var(--ink);
}

.mode-panel {
  margin-bottom: 12px;
}

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

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(214, 236, 248, 0.78);
}

.mode-option {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}

.mode-option.active {
  background: var(--canvas);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.08);
}

body[data-stop-edit-mode="true"] .mode-option.active {
  border-color: rgba(58, 96, 128, 0.28);
  color: var(--ink);
}

.date-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin-bottom: 2px;
  scrollbar-width: none;
}

.top-date-tabs {
  min-height: 46px;
  margin: 0;
  padding: 8px 18px;
  position: sticky;
  top: 72px;
  z-index: 900;
  background: rgba(250, 251, 252, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.08);
}

.date-tabs::-webkit-scrollbar {
  display: none;
}

.date-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(250, 251, 252, 0.92);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 0.82rem;
}

.date-tab.active {
  background: var(--honey);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.login-panel,
.form-panel,
.itinerary-panel,
.admin-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 251, 252, 0.94);
  margin-bottom: 14px;
  box-shadow: var(--paper-shadow);
}

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

body[data-admin-dashboard="true"] .top-date-tabs,
body[data-admin-dashboard="true"] .form-panel,
body[data-admin-dashboard="true"] .itinerary-panel,
body[data-admin-dashboard="true"] .map-panel {
  display: none;
}

body[data-admin-dashboard="true"] .workspace {
  display: block;
  min-height: calc(100vh - 72px);
  padding: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 223, 144, 0.44) 0, rgba(255, 223, 144, 0) 28%),
    linear-gradient(135deg, var(--sky), var(--canvas) 54%, var(--sun));
}

body[data-admin-dashboard="true"] .planner-panel {
  width: min(720px, 100%);
  min-height: auto;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border-right: 0;
  background: transparent;
}

body[data-admin-dashboard="true"] .admin-panel {
  margin-bottom: 0;
}

.login-panel[hidden],
.form-panel[hidden],
.trip-list[hidden],
#login-username-field[hidden],
.event-meta[hidden],
.archive-confirm[hidden],
.icon-button[hidden],
.danger-button[hidden],
.ghost-button[hidden] {
  display: none;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-error {
  border: 1px solid rgba(233, 72, 50, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 214, 220, 0.48);
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 12px;
}

.login-error[hidden] {
  display: none;
}

.trip-form {
  display: grid;
  gap: 10px;
}

.trip-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.trip-list-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 251, 252, 0.92);
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.trip-list-item > span,
.trip-list-select span {
  color: var(--muted);
  font-size: 0.78rem;
}

.trip-list-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 96, 128, 0.14);
}

.trip-list-select {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 0;
  text-align: left;
}

.event-meta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(214, 236, 248, 0.42);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.event-meta-row,
.event-details span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.event-meta-row > span,
.event-details b {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.event-meta code,
.event-details code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.event-meta a,
.event-details a {
  color: #276f9b;
  font-size: 0.78rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.event-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding-top: 8px;
}

.archive-confirm input {
  border-color: rgba(233, 72, 50, 0.3);
  background: rgba(255, 214, 220, 0.2);
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 0.95rem;
  font-family: "Noto Serif TC", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hidden-input {
  display: none;
}

.search-row {
  gap: 8px;
  margin-bottom: 10px;
}

.search-row input {
  flex: 1;
}

.form-panel .section-heading {
  align-items: flex-start;
}

.form-panel .section-heading h2 {
  padding-top: 9px;
}

.form-panel .section-heading .primary-button {
  flex: 0 0 auto;
}

.search-results {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.search-result {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(214, 236, 248, 0.36);
  color: var(--ink);
  padding: 9px 10px;
  line-height: 1.35;
}

.search-result small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.hotel-field[hidden] {
  display: none;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(250, 251, 252, 0.92);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

textarea {
  min-height: 78px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 216, 240, 0.42);
}

.form-actions {
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.stop-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.stop-modal::backdrop {
  background: rgba(58, 96, 128, 0.34);
  backdrop-filter: blur(5px);
}

.modal-card {
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--canvas), rgba(214, 236, 248, 0.48));
}

.modal-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.stop-modal .stop-form {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.modal-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.modal-delete-zone {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.danger-button.subtle {
  background: #fff;
}

.delete-confirm {
  display: grid;
  gap: 10px;
  max-width: 420px;
  padding: 10px;
  border: 1px solid rgba(233, 72, 50, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 214, 220, 0.46);
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 750;
}

.delete-confirm[hidden] {
  display: none;
}

.delete-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-button,
.primary-button,
.ghost-button,
.danger-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(250, 251, 252, 0.92);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 700;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.icon-button {
  width: 40px;
  padding: 0;
}

.icon-button.text-button {
  width: auto;
  min-width: 42px;
  padding: 0 10px;
  font-weight: 750;
}

.icon-button svg,
.primary-button svg,
.ghost-button svg,
.danger-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.primary-button span,
.ghost-button span,
.danger-button span {
  white-space: nowrap;
}

.icon-button:hover,
.ghost-button:hover,
.ghost-button.active {
  border-color: var(--line-strong);
  background: var(--mist);
  box-shadow: 0 5px 14px rgba(58, 96, 128, 0.08);
}

.icon-button.accent {
  background: var(--honey);
  color: var(--ink);
  border-color: rgba(58, 96, 128, 0.18);
}

.primary-button {
  background: var(--honey);
  border-color: rgba(58, 96, 128, 0.18);
  color: var(--ink);
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(255, 223, 144, 0.32);
}

.primary-button:hover {
  background: var(--sun);
  border-color: rgba(58, 96, 128, 0.28);
}

.danger-button {
  color: var(--rose);
  border-color: rgba(233, 72, 50, 0.26);
  background: rgba(255, 214, 220, 0.46);
}

.danger-button[hidden] {
  display: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

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

.stop-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 251, 252, 0.94);
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, transform 0.12s ease;
}

.stop-card.sortable {
  touch-action: pan-y;
}

.stop-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 96, 128, 0.14), var(--paper-shadow);
}

.stop-card.dragging {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 96, 128, 0.18);
  opacity: 0.62;
  transform: scale(0.99);
}

.stop-card.drop-before::before,
.stop-card.drop-after::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  z-index: 2;
}

.stop-card.drop-before::before {
  top: 0;
}

.stop-card.drop-after::after {
  bottom: 0;
}

.stop-card-body {
  display: block;
}

.drag-handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 236, 248, 0.5);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  padding: 0;
}

.drag-handle:hover {
  color: var(--ink);
}

.drag-handle svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.stop-main {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px;
  user-select: none;
}

.stop-card.sortable .stop-main {
  padding-bottom: 48px;
}

.stop-card.sortable .stop-title-row {
  padding-right: 0;
}

.stop-card.sortable.has-map-link .stop-title-row {
  padding-right: 30px;
}

body.is-dragging-stop .drag-handle {
  cursor: grabbing;
}

.map-link-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #276f9b;
  background: transparent;
  text-decoration: none;
  border-radius: 50%;
}

.map-link-button:hover {
  color: var(--ink);
}

.map-link-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.stop-index {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 800;
}

.type-activity {
  background: var(--lotus);
}

.type-food {
  background: var(--sun);
}

.type-hotel {
  background: var(--sky);
}

.type-transport {
  background: var(--leaf);
}

.type-shopping {
  background: var(--honey);
}

.type-other {
  background: var(--quartz);
}

.stop-title-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stop-card.has-map-link .stop-title-row {
  padding-right: 30px;
}

.stop-title-row h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 800;
}

.stop-meta,
.stop-address,
.stop-notes {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.stop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.stop-address,
.stop-notes {
  margin-top: 7px;
}

.stop-notes {
  padding-left: 9px;
  border-left: 2px solid var(--honey);
}

.empty-state,
.route-status {
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 243, 192, 0.28);
  padding: 18px;
  text-align: center;
}

.map-panel {
  position: sticky;
  top: var(--chrome-height);
  height: calc(100vh - var(--chrome-height));
  min-height: 540px;
  background:
    linear-gradient(135deg, rgba(184, 216, 240, 0.9), rgba(216, 237, 216, 0.72)),
    var(--sky);
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: grid;
  gap: 8px;
}

.route-status {
  position: absolute;
  left: 14px;
  bottom: 18px;
  z-index: 500;
  max-width: min(520px, calc(100% - 28px));
  padding: 9px 11px;
  border-radius: var(--radius);
  background: rgba(250, 251, 252, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.route-status:empty {
  display: none;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border: 2px solid var(--canvas);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  box-shadow: 0 10px 18px rgba(58, 96, 128, 0.24);
  display: grid;
  place-items: center;
}

.marker-pin span {
  transform: rotate(45deg);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.45;
  color: var(--ink);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--paper-shadow);
}

.leaflet-bar a {
  color: var(--ink);
  background: rgba(250, 251, 252, 0.94);
  border-bottom-color: var(--line);
}

.leaflet-bar a:hover {
  background: var(--mist);
}

.popup-eyebrow {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.popup-title-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.popup-index {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 850;
}

.popup-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.popup-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.popup-detail,
.popup-notes {
  color: var(--ink);
  font-size: 0.82rem;
  margin-top: 9px;
}

.popup-map-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  color: #276f9b;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.popup-map-link:hover {
  text-decoration: underline;
}

.popup-notes {
  border-left: 2px solid var(--honey);
  color: var(--muted);
  padding-left: 9px;
}

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

  .planner-panel {
    min-height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    order: 2;
  }

  .map-panel {
    position: relative;
    top: auto;
    height: 58vh;
    min-height: 390px;
    order: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --chrome-height: 104px;
  }

  .topbar {
    min-height: 58px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand-lockup {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 17px;
    height: 17px;
  }

  .brand-name {
    font-size: 0.64rem;
  }

  .topbar-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .trip-title {
    font-size: 1rem;
  }

  .ghost-button span {
    display: none;
  }

  body[data-admin-dashboard="true"] .ghost-button span {
    display: inline;
  }

  body[data-mode="viewer"] .topbar-actions .ghost-button span {
    display: inline;
  }

  .stop-modal .ghost-button span {
    display: inline;
  }

  .top-date-tabs {
    top: 58px;
    padding-inline: 12px;
  }

  .workspace {
    min-height: auto;
  }

  .planner-panel {
    padding: 12px;
  }

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

  .stop-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .modal-card {
    max-height: calc(100vh - 18px);
  }

  .form-panel .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .form-panel .section-heading h2 {
    padding-top: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions > .primary-button {
    order: 1;
    width: 100%;
  }

  .modal-delete-zone {
    order: 2;
  }

  .modal-delete-zone > .danger-button.subtle {
    width: auto;
    justify-self: start;
  }

  .delete-confirm {
    max-width: none;
    width: 100%;
  }

  .delete-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-button,
  .danger-button {
    width: 100%;
  }

  .modal-delete-zone > .danger-button.subtle {
    width: auto;
  }
}
