:root {
  color-scheme: dark;
  --ink: #e7eee8;
  --ink-soft: #afbeb5;
  --ink-faint: #71827a;
  --canvas: #0b1210;
  --canvas-raised: #101a17;
  --surface: rgba(18, 31, 27, 0.86);
  --surface-strong: #172520;
  --surface-soft: rgba(24, 41, 35, 0.72);
  --line: rgba(214, 235, 222, 0.11);
  --line-strong: rgba(214, 235, 222, 0.18);
  --orange: #f26d3b;
  --orange-bright: #ff8a56;
  --orange-deep: #c9572e;
  --orange-wash: rgba(242, 109, 59, 0.14);
  --mint: #a5d5bf;
  --danger: #ff9584;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.22), 0 2px 12px rgba(0, 0, 0, 0.12);
  --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.34), 0 4px 22px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(64, 116, 92, 0.18), transparent 30%),
    radial-gradient(circle at 4% 92%, rgba(242, 109, 59, 0.11), transparent 27%),
    linear-gradient(135deg, #0b1210 0%, #101a17 56%, #0b1210 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 138, 86, 0.78);
  outline-offset: 3px;
}

button:active {
  transform: scale(0.97);
}

button:disabled {
  cursor: not-allowed;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ambient,
.topographic-grid,
.grain {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.ambient {
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(92px);
  opacity: 0.32;
}

.ambient--left {
  top: 28%;
  left: -21rem;
  background: rgba(242, 109, 59, 0.22);
}

.ambient--right {
  right: -18rem;
  bottom: -15rem;
  background: rgba(71, 133, 104, 0.28);
}

.topographic-grid {
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(186, 220, 203, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 220, 203, 0.025) 1px, transparent 1px);
  background-position: center;
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, transparent 5%, #000 45%, transparent 100%);
}

.grain {
  inset: 0;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 14px;
  width: min(1520px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px;
}

.sidebar,
.topbar,
.conversation-panel,
.composer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 14px 14px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(28, 47, 40, 0.92), rgba(12, 21, 18, 0.9)),
    var(--surface);
}

.sidebar-top {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}

.sidebar-top::-webkit-scrollbar {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 174, 132, 0.25);
  border-radius: 14px;
  background: var(--orange);
  box-shadow: 0 11px 26px rgba(242, 109, 59, 0.25);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease-out;
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.new-session-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin-top: 30px;
  padding: 0 12px;
  cursor: pointer;
  color: #fff8f2;
  border: 1px solid rgba(255, 186, 148, 0.24);
  border-radius: 13px;
  background: var(--orange);
  box-shadow: 0 11px 24px rgba(242, 109, 59, 0.2);
  transition: transform 160ms var(--ease-out), background-color 180ms ease-out, box-shadow 180ms ease-out;
}

.new-session-button svg {
  width: 17px;
  height: 17px;
}

.new-session-button span {
  font-size: 12px;
  font-weight: 730;
}

.new-session-button kbd {
  margin-left: auto;
  color: rgba(255, 248, 242, 0.68);
  font-size: 9px;
}

.sidebar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 7px 11px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.session-count {
  display: grid;
  min-width: 21px;
  height: 20px;
  place-items: center;
  color: var(--orange-bright);
  border: 1px solid rgba(242, 109, 59, 0.2);
  border-radius: 7px;
  background: var(--orange-wash);
  font-size: 9px;
  letter-spacing: 0;
}

.session-list {
  display: grid;
  gap: 5px;
}

.session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, transform 160ms var(--ease-out);
}

.session-item-main {
  display: grid;
  min-width: 0;
  gap: 5px;
  width: 100%;
  padding: 11px 6px 10px 11px;
  cursor: pointer;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
}

.session-delete {
  display: grid;
  width: 28px;
  height: 28px;
  margin-right: 5px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  color: var(--ink-faint);
  border: 0;
  border-radius: 8px;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4px);
  transition: color 160ms ease-out, background-color 160ms ease-out, opacity 160ms ease-out, visibility 160ms ease-out, transform 160ms var(--ease-out);
}

.session-delete svg {
  width: 14px;
  height: 14px;
}

.session-item-title {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-item-time {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
}

.session-item.is-active {
  color: var(--ink);
  border-color: rgba(242, 109, 59, 0.25);
  background: linear-gradient(90deg, rgba(242, 109, 59, 0.17), rgba(242, 109, 59, 0.06));
}

.session-item:focus-within .session-delete,
.session-item:hover .session-delete {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.session-delete:focus-visible,
.session-delete:hover {
  color: var(--danger);
  background: rgba(255, 149, 132, 0.11);
}

.session-delete:disabled {
  cursor: wait;
  opacity: 0.35;
}

.sidebar-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 28px 8px;
  color: var(--ink-faint);
  text-align: center;
}

.sidebar-empty[hidden] {
  display: none;
}

.sidebar-empty-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--orange-bright);
  border: 1px solid rgba(242, 109, 59, 0.24);
  border-radius: 10px;
  background: var(--orange-wash);
  font-size: 12px;
}

.sidebar-empty p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 15px 3px 2px;
  border-top: 1px solid var(--line);
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.profile-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(165, 213, 191, 0.16);
  border-radius: 10px;
  background: rgba(165, 213, 191, 0.12);
  font-size: 11px;
  font-weight: 750;
}

.profile-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-copy strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  overflow: hidden;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.connection-dot,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(165, 213, 191, 0.1);
}

.workspace {
  display: flex;
  flex-direction: column;
  height: calc(100svh - 36px);
  min-width: 0;
  min-height: calc(100svh - 36px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 15px 24px;
  border-radius: 20px;
  background: rgba(15, 26, 22, 0.78);
}

.topbar-context {
  display: grid;
  gap: 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 109, 59, 0.11);
}

.topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-note {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--mint);
  border: 1px solid rgba(165, 213, 191, 0.19);
  border-radius: 10px;
  background: rgba(165, 213, 191, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.status-check {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  color: var(--canvas);
  border-radius: 5px;
  background: var(--mint);
  font-size: 9px;
  font-weight: 900;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
}

.brand-mark--small {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}

.mobile-brand-name {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.conversation-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 23px;
  background: rgba(15, 25, 22, 0.76);
  box-shadow: var(--shadow-deep);
}

.stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  min-height: 76px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
}

.stage-kicker {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.stage-index {
  color: var(--orange-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.stage-description {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: var(--mint);
  border: 1px solid rgba(165, 213, 191, 0.16);
  border-radius: 9px;
  background: rgba(165, 213, 191, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mode-badge svg {
  width: 14px;
  height: 14px;
  color: var(--orange-bright);
}

.chat-scroll {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(165, 213, 191, 0.27) transparent;
  scrollbar-width: thin;
}

.chat-scroll::-webkit-scrollbar {
  width: 8px;
}

.chat-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.chat-scroll::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(165, 213, 191, 0.27);
  background-clip: padding-box;
}

.chat-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(165, 213, 191, 0.45);
  background-clip: padding-box;
}

.empty-state {
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(820px, 100%);
  margin: auto;
  padding: 30px 24px 38px;
  text-align: center;
}

.empty-state[hidden],
.message-list[hidden] {
  display: none;
}

.empty-art-wrap {
  position: relative;
  width: min(760px, 100%);
  height: min(31vh, 230px);
  min-height: 170px;
  margin-bottom: 26px;
}

.field-visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(165, 213, 191, 0.2);
  border-radius: 23px;
  background:
    linear-gradient(90deg, rgba(8, 17, 14, 0.95) 0%, rgba(8, 17, 14, 0.58) 39%, rgba(8, 17, 14, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 17, 14, 0.08), rgba(8, 17, 14, 0.74)),
    url("https://images.unsplash.com/photo-1476041800959-2f6bb412c8ce?auto=format&fit=crop&w=1400&q=82") center 52% / cover,
    linear-gradient(135deg, #1c3a30, #0a1512 68%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.field-visual::before {
  position: absolute;
  inset: -45% -12%;
  z-index: -1;
  content: "";
  opacity: 0.62;
  background-image: url("data:image/svg+xml,%3Csvg width='760' height='440' viewBox='0 0 760 440' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c5e2d2' stroke-opacity='.25' stroke-width='1'%3E%3Cpath d='M-40 288c92-90 168-83 244-11 88 84 183 85 269-5 88-92 188-108 328-17'/%3E%3Cpath d='M-34 317c88-84 164-81 238-9 86 83 189 89 278-6 91-97 192-111 323-17'/%3E%3Cpath d='M-28 347c84-80 160-80 232-7 83 81 195 93 287-7 95-102 196-113 316-19'/%3E%3Cpath d='M12 184c78-75 153-69 222-7 78 70 151 67 226-6 84-81 173-88 292-19'/%3E%3Cpath d='M28 211c74-69 147-66 215-5 76 68 155 73 233-5 86-85 180-92 282-22'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  transform: rotate(-4deg);
}

.field-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(6, 13, 11, 0.38), inset 0 -90px 90px rgba(5, 12, 10, 0.48);
}

.field-visual-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11%;
  z-index: 2;
  width: 1px;
  opacity: 0.78;
  background: linear-gradient(180deg, transparent, var(--orange-bright), transparent);
  box-shadow: 0 0 22px rgba(255, 138, 86, 0.56);
  animation: field-scan 5.4s var(--ease-in-out) infinite;
}

.field-visual-coordinates,
.field-visual-label {
  position: absolute;
  z-index: 3;
  color: rgba(231, 238, 232, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.11em;
}

.field-visual-coordinates {
  top: 17px;
  left: 20px;
}

.field-visual-label {
  right: 19px;
  bottom: 17px;
  color: var(--orange-bright);
}

.field-visual-camp {
  position: absolute;
  bottom: 22%;
  left: 30%;
  z-index: 3;
  width: 86px;
  height: 62px;
  filter: drop-shadow(0 13px 20px rgba(0, 0, 0, 0.36));
}

.field-visual-camp::before {
  position: absolute;
  bottom: 0;
  left: 1px;
  width: 0;
  height: 0;
  content: "";
  border-right: 43px solid transparent;
  border-bottom: 61px solid rgba(228, 239, 228, 0.88);
  border-left: 43px solid transparent;
}

.field-visual-camp::after {
  position: absolute;
  bottom: 0;
  left: 42px;
  width: 0;
  height: 0;
  content: "";
  border-right: 31px solid transparent;
  border-bottom: 43px solid rgba(242, 109, 59, 0.92);
  border-left: 31px solid transparent;
}

.empty-kicker {
  margin: 0 0 10px;
  color: var(--orange-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.empty-state h2 {
  max-width: 480px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 1.2;
}

.empty-copy {
  max-width: 470px;
  margin: 13px auto 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.8;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.quick-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 0 11px 0 9px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(23, 37, 32, 0.68);
  font-size: 10px;
  transition: color 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out);
}

.quick-prompt-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--orange-bright);
  border: 1px solid rgba(242, 109, 59, 0.16);
  border-radius: 6px;
  background: var(--orange-wash);
  font-size: 12px;
}

.message-list {
  display: grid;
  align-content: start;
  gap: 20px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 28px 30px 40px;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: message-in 280ms var(--ease-out) forwards;
}

.message--user {
  justify-content: flex-end;
}

.message-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #fff7f0;
  border: 1px solid rgba(255, 166, 125, 0.25);
  border-radius: 10px;
  background: var(--orange);
  box-shadow: 0 9px 18px rgba(242, 109, 59, 0.2);
}

.message-avatar img {
  width: 100%;
  height: 100%;
}

.message-body {
  display: grid;
  gap: 7px;
  max-width: min(680px, 84%);
}

.message-bubble {
  padding: 13px 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 6px;
  background: rgba(25, 42, 36, 0.88);
  font-size: 12px;
  line-height: 1.75;
  white-space: normal;
}

.message-text {
  white-space: pre-wrap;
}

.message-text--status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  letter-spacing: 0.01em;
}

.message-text--status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  content: "";
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 4px rgba(242, 109, 59, 0.1);
  animation: status-pulse 1.3s ease-in-out infinite;
}

.message-status-trail {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.message-status-item {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.62;
}

.message-status-item.is-current {
  color: var(--mint);
  opacity: 1;
}

.message-status-marker {
  display: inline-grid;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(165, 213, 191, 0.34);
  border-radius: 50%;
  color: var(--mint);
  font-size: 9px;
}

.message-status-item.is-current .message-status-marker {
  border-color: var(--orange-bright);
  background: var(--orange-bright);
  box-shadow: 0 0 0 4px rgba(242, 109, 59, 0.1);
  animation: status-pulse 1.3s ease-in-out infinite;
}

.message--user .message-body {
  justify-items: end;
}

.message--user .message-bubble {
  color: #fff8f1;
  border-color: rgba(242, 109, 59, 0.36);
  border-radius: 17px 17px 6px 17px;
  background: linear-gradient(135deg, #c9572e, #a94227);
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.2);
}

.recipe-intro,
.recipe-section {
  display: grid;
  gap: 7px;
}

.recipe-section + .recipe-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.recipe-heading {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.recipe-line {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.recipe-line--bullet {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.recipe-line-marker {
  flex: 0 0 auto;
  color: var(--orange-bright);
  font-weight: 800;
}

.recipe-line strong {
  font-weight: 750;
}

.recipe-line code {
  padding: 2px 5px;
  color: var(--orange-bright);
  border-radius: 5px;
  background: var(--orange-wash);
  font-size: 0.92em;
}

.recipe-image-caption {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.recipe-image-caption::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 1px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.recipe-section hr {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.message-route-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.message-route-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  border: 1px solid rgba(242, 109, 59, 0.34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(242, 109, 59, 0.13), rgba(165, 213, 191, 0.06));
  transition: transform 160ms var(--ease-out), border-color 180ms ease-out, background-color 180ms ease-out;
}

.message-route-action:hover:not(:disabled) {
  border-color: rgba(242, 109, 59, 0.68);
  transform: translateY(-1px);
}

.message-route-action:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 2px;
}

.message-route-action:disabled {
  cursor: wait;
  opacity: 0.66;
}

.message-route-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff8f1;
  border-radius: 10px;
  background: var(--orange);
  font-size: 17px;
  box-shadow: 0 7px 16px rgba(242, 109, 59, 0.2);
}

.message-route-action > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.message-route-action strong {
  font-size: 11px;
  line-height: 1.3;
}

.message-route-action small {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-route-action.is-loading .message-route-action-icon {
  animation: status-pulse 1.1s ease-in-out infinite;
}

.message-bubble--streaming {
  color: var(--ink-soft);
}

.message-bubble--streaming::after {
  display: inline-block;
  width: 4px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  content: "";
  border-radius: 3px;
  background: var(--orange-bright);
  animation: stream-caret 900ms ease-in-out infinite;
}

.message-error {
  padding: 0 3px;
  color: var(--danger);
  font-size: 10px;
}

.message-time {
  padding: 0 3px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
}

.message--user .message-time {
  text-align: right;
}

.message-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 5px;
}

.message--assistant .message-images {
  justify-content: flex-start;
}

.streaming-image-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 9px;
}

.streaming-image-groups .message-images {
  margin-top: 0;
}

.message-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  border-radius: 12px;
  background: rgba(165, 213, 191, 0.08);
}

.message-image-link::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 160ms ease-out, transform 160ms var(--ease-out);
}

.message-image-link--failed {
  display: grid;
  min-width: 150px;
  min-height: 68px;
  place-items: center;
  color: var(--ink-faint);
  border: 1px dashed rgba(165, 213, 191, 0.2);
  background: rgba(165, 213, 191, 0.06);
  font-size: 10px;
  text-decoration: none;
}

.message-image-fallback {
  padding: 12px;
  text-align: center;
}

.message-image {
  display: block;
  width: 160px;
  height: 112px;
  object-fit: cover;
  border: 1px solid rgba(214, 235, 222, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.23);
}

.message-image-link--crop .message-image {
  width: auto;
  height: auto;
  max-width: min(260px, 100%);
  max-height: 280px;
  object-fit: contain;
}

.composer {
  flex: 0 0 auto;
  margin-top: 12px;
  padding: 10px 12px 9px;
  border-radius: 18px;
  background: rgba(15, 26, 22, 0.87);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out;
}

.composer:focus-within {
  border-color: rgba(242, 109, 59, 0.42);
  background: rgba(17, 30, 25, 0.96);
  box-shadow: 0 19px 46px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(242, 109, 59, 0.07);
}

.composer.is-dragging {
  border-color: rgba(255, 138, 86, 0.72);
  background: rgba(45, 31, 24, 0.94);
  box-shadow: 0 19px 46px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(242, 109, 59, 0.1);
}

.upload-preview {
  display: flex;
  gap: 8px;
  padding: 3px 2px 10px;
  overflow-x: auto;
}

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

.preview-item {
  position: relative;
  width: 62px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(165, 213, 191, 0.18);
  border-radius: 9px;
  background: #172520;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-progress {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  z-index: 2;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 14, 11, 0.76);
}

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

.preview-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  box-shadow: 0 0 9px rgba(255, 138, 86, 0.55);
  transition: width 120ms linear;
}

.preview-status {
  position: absolute;
  right: 3px;
  bottom: 8px;
  left: 3px;
  padding: 2px 3px;
  overflow: hidden;
  color: #fff7f0;
  border-radius: 4px;
  background: rgba(8, 15, 12, 0.76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-status--error {
  background: rgba(167, 61, 45, 0.9);
}

.preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  cursor: pointer;
  color: #fff;
  border-radius: 50%;
  background: rgba(8, 15, 12, 0.76);
  font-size: 12px;
  line-height: 1;
  transition: background-color 150ms ease-out, transform 150ms var(--ease-out);
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.upload-button,
.send-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  cursor: pointer;
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, transform 160ms var(--ease-out), box-shadow 180ms ease-out;
}

.upload-button {
  grid-template-columns: 18px auto;
  gap: 6px;
  min-width: 48px;
  height: 42px;
  padding: 0 10px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
}

.upload-button svg {
  width: 18px;
  height: 18px;
}

.upload-button-label {
  font-size: 10px;
}

.upload-button.has-files {
  color: var(--orange-bright);
  border-color: rgba(242, 109, 59, 0.22);
  background: var(--orange-wash);
}

.upload-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

#message-input {
  display: block;
  width: 100%;
  min-height: 42px;
  max-height: 126px;
  padding: 11px 13px;
  resize: none;
  overflow-y: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(165, 213, 191, 0.075);
  font-size: 12px;
  line-height: 20px;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

#message-input::placeholder {
  color: var(--ink-faint);
}

#message-input:focus {
  border-color: rgba(165, 213, 191, 0.2);
  background: rgba(165, 213, 191, 0.1);
}

#message-input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.send-button {
  width: 42px;
  height: 42px;
  color: #fff8f1;
  border: 1px solid rgba(255, 171, 132, 0.2);
  border-radius: 11px;
  background: var(--orange);
  box-shadow: 0 9px 18px rgba(242, 109, 59, 0.22);
}

.send-button svg {
  width: 18px;
  height: 18px;
  transform: translateX(-1px);
}

.send-button:disabled {
  color: var(--ink-faint);
  border-color: var(--line);
  background: rgba(165, 213, 191, 0.08);
  box-shadow: none;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 3px 0 58px;
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
}

.composer-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

kbd {
  padding: 2px 4px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: inherit;
  font-size: 8px;
  line-height: 1;
  opacity: 0.75;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: min(310px, calc(100vw - 40px));
  padding: 11px 14px;
  pointer-events: none;
  color: #fff8f1;
  border: 1px solid rgba(255, 174, 132, 0.2);
  border-radius: 11px;
  background: rgba(16, 25, 22, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  font-size: 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease-out, transform 180ms var(--ease-out);
}

.toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal-in 480ms var(--ease-out) forwards;
}

.reveal--one {
  animation-delay: 40ms;
}

.reveal--two {
  animation-delay: 90ms;
}

.reveal--three {
  animation-delay: 140ms;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes message-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stream-caret {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes field-scan {
  0% {
    transform: translateX(0);
  }

  48%,
  100% {
    transform: translateX(730px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark {
    box-shadow: 0 13px 28px rgba(242, 109, 59, 0.32);
    transform: translateY(-1px) rotate(-2deg);
  }

  .new-session-button:hover {
    background: var(--orange-bright);
    box-shadow: 0 14px 28px rgba(242, 109, 59, 0.3);
    transform: translateY(-1px);
  }

  .session-item:hover {
    color: var(--ink);
    border-color: rgba(165, 213, 191, 0.1);
    background: rgba(165, 213, 191, 0.055);
    transform: translateX(2px);
  }

  .session-item.is-active:hover {
    border-color: rgba(242, 109, 59, 0.28);
    background: linear-gradient(90deg, rgba(242, 109, 59, 0.2), rgba(242, 109, 59, 0.07));
  }

  .quick-prompt:hover {
    color: var(--ink);
    border-color: rgba(242, 109, 59, 0.34);
    background: rgba(242, 109, 59, 0.1);
    transform: translateY(-2px);
  }

  .upload-button:hover {
    color: var(--orange-bright);
    border-color: rgba(242, 109, 59, 0.2);
    background: var(--orange-wash);
  }

  .send-button:not(:disabled):hover {
    background: var(--orange-bright);
    box-shadow: 0 12px 23px rgba(242, 109, 59, 0.31);
    transform: translateY(-1px);
  }

  .preview-remove:hover {
    background: var(--orange-deep);
    transform: scale(1.08);
  }

  .message-image-link:hover::after {
    opacity: 1;
    transform: scale(1);
  }

  .message-image-link:hover .message-image {
    filter: brightness(1.08);
  }
}

@media (hover: none), (pointer: coarse) {
  .session-delete {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .workspace {
    height: calc(100svh - 20px);
    min-height: calc(100svh - 20px);
  }

  .sidebar {
    padding-inline: 11px;
  }

  .topbar,
  .stage-header {
    padding-inline: 20px;
  }

  .message-list {
    padding-inline: 20px;
  }
}

@media (max-width: 680px) {
  body {
    overflow: auto;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding: 8px;
  }

  .sidebar {
    display: block;
    min-height: auto;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .sidebar-top {
    overflow: visible;
  }

  .brand {
    display: none;
  }

  .new-session-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 0 11px;
  }

  .new-session-button kbd {
    display: none;
  }

  .sidebar-label {
    margin: 7px 2px 7px;
    padding-right: 118px;
  }

  .session-list {
    display: flex;
    max-width: calc(100vw - 26px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .session-list::-webkit-scrollbar {
    display: none;
  }

  .session-item {
    min-width: 178px;
  }

  .sidebar-empty,
  .sidebar-bottom {
    display: none;
  }

  .workspace {
    height: calc(100svh - 94px);
    min-height: calc(100svh - 94px);
  }

  .topbar {
    min-height: 66px;
    padding: 11px 14px;
    border-radius: 17px;
  }

  .mobile-brand {
    display: flex;
  }

  .topbar-context {
    display: none;
  }

  .topbar-note {
    display: none;
  }

  .conversation-panel {
    margin-top: 9px;
    border-radius: 18px;
  }

  .stage-header {
    min-height: 70px;
    padding: 17px 16px 13px;
  }

  .stage-description {
    max-width: 245px;
    line-height: 1.5;
  }

  .empty-state {
    padding: 22px 16px 28px;
  }

  .empty-art-wrap {
    height: 170px;
    min-height: 0;
    margin-bottom: 22px;
  }

  .field-visual {
    border-radius: 17px;
  }

  .field-visual-camp {
    bottom: 18%;
    left: 23%;
    transform: scale(0.76);
    transform-origin: bottom left;
  }

  .quick-prompts {
    gap: 6px;
  }

  .quick-prompt {
    font-size: 9px;
  }

  .message-list {
    gap: 17px;
    padding: 20px 14px 28px;
  }

  .message-body {
    max-width: 88%;
  }

  .message-bubble {
    padding: 11px 13px;
    font-size: 11px;
  }

  .message-image {
    width: 140px;
    height: 100px;
  }

  .composer {
    margin-top: 9px;
    padding: 8px;
    border-radius: 16px;
  }

  .upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .upload-button-label {
    display: none;
  }

  .composer-footer {
    padding-left: 47px;
  }

  .composer-shortcut {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Unified outdoor workspace                                                  */
/* -------------------------------------------------------------------------- */

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  height: 100svh;
  gap: 12px;
  padding: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  height: calc(100svh - 28px);
  min-height: calc(100svh - 28px);
  overflow: hidden;
}

body.assistant-panel-open .workspace {
  grid-template-columns: minmax(0, 1fr) clamp(392px, calc(25vw - 28px), 472px);
}

.route-view {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.gear-assistant {
  position: relative;
  display: none;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 22, 18, 0.9);
  box-shadow: var(--shadow-deep);
  animation: assistant-panel-in 320ms var(--ease-out) both;
}

body.assistant-panel-open .gear-assistant {
  display: flex;
}

.gear-assistant > .topbar {
  min-height: 78px;
  padding: 14px 15px 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(15, 27, 23, 0.96);
  box-shadow: none;
  backdrop-filter: none;
}

.gear-assistant .topbar h1 {
  font-size: 19px;
}

.gear-assistant .topbar-meta {
  gap: 7px;
}

.gear-assistant .status-pill {
  padding: 7px 8px;
}

.gear-history-toggle,
.gear-assistant-close,
.assistant-panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(165, 213, 191, 0.055);
  font-size: 9px;
  font-weight: 700;
  transition: color 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out);
}

.gear-history-toggle svg,
.assistant-panel-toggle svg {
  width: 14px;
  height: 14px;
}

.gear-assistant-close {
  width: 34px;
  padding: 0;
  color: var(--ink-faint);
  font-size: 19px;
  font-weight: 400;
}

.assistant-panel-toggle {
  color: var(--mint);
  border-color: rgba(165, 213, 191, 0.18);
}

body.assistant-panel-open .assistant-panel-toggle {
  display: none;
}

.gear-assistant .conversation-panel {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.gear-assistant .stage-header {
  min-height: 66px;
  padding: 15px 18px 12px;
}

.gear-assistant .stage-description {
  max-width: 230px;
  line-height: 1.45;
}

.gear-assistant .mode-badge {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
  overflow: hidden;
  color: transparent;
}

.gear-assistant .mode-badge svg {
  flex: 0 0 auto;
  color: var(--orange-bright);
}

.gear-assistant .empty-state {
  align-content: center;
  width: 100%;
  padding: 24px 20px 30px;
}

.gear-assistant .empty-art-wrap {
  width: 100%;
  height: 132px;
  min-height: 0;
  margin-bottom: 20px;
}

.gear-assistant .empty-state h2 {
  font-size: 24px;
}

.gear-assistant .empty-copy {
  max-width: 300px;
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.65;
}

.gear-assistant .quick-prompts {
  display: grid;
  width: 100%;
  gap: 6px;
  margin-top: 18px;
}

.gear-assistant .quick-prompt {
  justify-content: flex-start;
  width: 100%;
}

.gear-assistant .message-list {
  gap: 16px;
  width: 100%;
  padding: 20px 14px 28px;
}

.gear-assistant .message-body {
  max-width: calc(100% - 38px);
}

.gear-assistant .message-bubble {
  padding: 11px 12px;
  font-size: 10px;
  line-height: 1.65;
}

.gear-assistant .message-image {
  width: 132px;
  height: 96px;
}

.gear-assistant .composer {
  margin: 0;
  padding: 10px 11px 9px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(14, 25, 21, 0.98);
  box-shadow: none;
  backdrop-filter: none;
}

.gear-assistant .upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.gear-assistant .upload-button-label,
.gear-assistant .composer-shortcut {
  display: none;
}

.gear-assistant .composer-footer {
  padding-left: 49px;
}

.gear-session-panel {
  position: absolute;
  top: 68px;
  right: 10px;
  left: 10px;
  z-index: 40;
  display: flex;
  max-height: min(520px, calc(100% - 90px));
  padding: 14px;
  overflow: hidden;
  flex-direction: column;
  color: var(--ink);
  border: 1px solid rgba(165, 213, 191, 0.2);
  border-radius: 16px;
  background: rgba(10, 19, 16, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(24px);
  animation: gear-history-in 220ms var(--ease-out) both;
}

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

.gear-session-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gear-session-panel-head > div {
  display: grid;
  gap: 4px;
}

.gear-session-panel-head-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.gear-session-panel-head strong {
  font-size: 14px;
}

.session-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 0 8px;
  cursor: pointer;
  color: var(--danger);
  border: 1px solid rgba(255, 149, 132, 0.2);
  border-radius: 8px;
  background: rgba(255, 149, 132, 0.06);
  font-size: 9px;
  font-weight: 700;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out, transform 160ms var(--ease-out);
}

.session-clear-all svg {
  width: 13px;
  height: 13px;
}

.session-clear-all:hover:not(:disabled) {
  color: #fff8f1;
  border-color: rgba(255, 149, 132, 0.44);
  background: rgba(255, 149, 132, 0.14);
}

.session-clear-all:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.gear-session-panel .new-session-button {
  margin-top: 13px;
}

.gear-session-panel .session-list {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  margin-top: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gear-session-panel .session-item {
  flex: 0 0 auto;
  min-height: 52px;
}

.gear-session-panel .sidebar-empty {
  padding: 22px 8px 12px;
}

.route-workspace {
  grid-template-columns: minmax(286px, 320px) minmax(0, 1fr);
}

@keyframes assistant-panel-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes gear-history-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1380px) {
  body.assistant-panel-open .workspace {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    padding: 10px;
  }

  .workspace {
    height: calc(100svh - 20px);
    min-height: calc(100svh - 20px);
  }

  .route-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .gear-assistant .status-pill {
    display: none;
  }
}

@media (max-width: 1180px) {
  .workspace,
  body.assistant-panel-open .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .gear-assistant {
    position: fixed;
    top: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    grid-column: auto;
    grid-row: auto;
    width: min(360px, calc(100vw - 20px));
  }

  body.assistant-panel-open::after {
    position: fixed;
    inset: 0;
    z-index: 70;
    content: "";
    background: rgba(3, 8, 6, 0.5);
    backdrop-filter: blur(3px);
  }

  .assistant-panel-toggle,
  body.assistant-panel-open .assistant-panel-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: flex;
    min-height: 100svh;
    padding: 8px;
  }

  .sidebar {
    display: block;
  }

  .workspace {
    width: 100%;
    height: calc(100svh - 16px);
    min-height: calc(100svh - 16px);
  }

  .gear-assistant {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: min(78svh, 720px);
    border-radius: 20px;
    animation-name: assistant-sheet-in;
  }

  .route-topbar .topbar-context {
    display: grid;
  }

  .route-topbar .mobile-brand {
    display: none;
  }

  .route-topbar-copy h1 {
    font-size: 17px;
  }

  .route-privacy {
    display: none;
  }

  .route-workspace {
    min-height: 0;
  }

  .gear-assistant .topbar-context {
    display: grid;
  }

  .gear-assistant .mobile-brand {
    display: none;
  }
}

@keyframes assistant-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Route planner                                                              */
/* -------------------------------------------------------------------------- */

.gear-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.gear-view[hidden],
.route-view[hidden] {
  display: none;
}

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

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

.route-upload-panel {
  margin-top: 10px;
  padding: 8px 4px 0;
  border-top: 1px solid var(--line);
}

.route-upload-copy {
  display: grid;
  gap: 7px;
}

.route-upload-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.055em;
}

.route-upload-copy p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.65;
}

.route-upload-panel .route-dropzone {
  min-height: 78px;
  margin: 0 0 12px;
  padding: 10px;
}

.route-export-zone {
  display: grid;
  gap: 0;
  margin-top: 2px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(165, 213, 191, 0.12);
}

.route-journey-zone {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-bottom: 2px;
}

.route-journey-zone[hidden] {
  display: none;
}

.route-zone-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 3px 11px;
  color: rgba(165, 213, 191, 0.56);
}

.route-zone-divider span {
  color: var(--orange-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.route-zone-divider i {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(242, 109, 59, 0.28), rgba(165, 213, 191, 0.08));
}

.route-zone-divider small {
  color: rgba(165, 213, 191, 0.42);
  font-size: 7px;
  white-space: nowrap;
}

.route-journey-zone .route-playback {
  margin-top: 0;
}

.route-playback {
  display: grid;
  min-width: 0;
  gap: 9px;
  margin: 0 0 2px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(165, 213, 191, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(165, 213, 191, 0.1), rgba(165, 213, 191, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(4, 13, 10, 0.12);
}

.route-playback[hidden] {
  display: none;
}

.route-playback-head,
.route-playback-meta,
.route-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-playback-head > div {
  display: grid;
  gap: 4px;
}

.route-playback-kicker {
  color: var(--orange-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.route-playback-head strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.route-playback-head output {
  min-width: 38px;
  color: #fff7ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.route-playback-range {
  width: 100%;
  height: 18px;
  margin: 1px 0 0;
  cursor: pointer;
  accent-color: var(--orange);
}

.route-playback-range:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.route-playback-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd400 0%, #ff8a00 50%, #ff2b13 100%);
  box-shadow: 0 0 10px rgba(242, 109, 59, 0.18);
}

.route-playback-range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd400 0%, #ff8a00 50%, #ff2b13 100%);
  box-shadow: 0 0 10px rgba(242, 109, 59, 0.18);
}

.route-playback-range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  cursor: grab;
  border: 3px solid #f8f0df;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 109, 59, 0.14), 0 5px 12px rgba(8, 20, 13, 0.3);
  -webkit-appearance: none;
  appearance: none;
}

.route-playback-range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.08);
}

.route-playback-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  cursor: grab;
  border: 3px solid #f8f0df;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 109, 59, 0.14), 0 5px 12px rgba(8, 20, 13, 0.3);
}

.route-playback-meta {
  color: rgba(209, 232, 216, 0.66);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
}

.route-playback-meta span:last-child {
  color: rgba(255, 247, 239, 0.86);
}

.route-playback-hint {
  color: rgba(165, 213, 191, 0.52);
  font-size: 8px;
  line-height: 1.4;
}

.route-waypoint-zone {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-bottom: 2px;
}

.route-waypoint-zone[hidden] {
  display: none;
}

.route-waypoint-zone .route-zone-divider {
  margin-bottom: 10px;
}

.route-lab-button {
  margin-top: 10px;
}

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

.route-lab-button .route-camp-button-icon {
  color: var(--mint);
  border-color: rgba(165, 213, 191, 0.28);
  background: rgba(165, 213, 191, 0.1);
}

.route-lab-button .route-camp-button-plus {
  color: var(--mint);
}


.route-waypoint-switch {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  margin-top: 0;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid rgba(165, 213, 191, 0.13);
  border-radius: 12px;
  background: rgba(165, 213, 191, 0.045);
  transition: border-color 180ms ease-out, background-color 180ms ease-out, opacity 180ms ease-out;
}

.route-waypoint-switch[hidden] {
  display: none;
}

.route-waypoint-switch:hover:has(input:not(:disabled)) {
  border-color: rgba(165, 213, 191, 0.25);
  background: rgba(165, 213, 191, 0.075);
}

.route-waypoint-switch:has(input:checked) {
  border-color: rgba(242, 109, 59, 0.26);
  background: linear-gradient(135deg, rgba(242, 109, 59, 0.1), rgba(165, 213, 191, 0.055));
}

.route-waypoint-switch:has(input:disabled) {
  cursor: default;
  opacity: 0.58;
}

.route-waypoint-switch-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: rgba(213, 241, 222, 0.72);
  border: 1px solid rgba(165, 213, 191, 0.16);
  border-radius: 9px;
  background: rgba(165, 213, 191, 0.08);
}

.route-waypoint-switch:has(input:checked) .route-waypoint-switch-icon {
  color: var(--orange-bright);
  border-color: rgba(242, 109, 59, 0.3);
  background: rgba(242, 109, 59, 0.12);
}

.route-waypoint-switch-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.route-waypoint-switch-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-waypoint-switch-copy strong {
  overflow: hidden;
  color: #fff7ef;
  font-size: 10px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-waypoint-switch-copy small {
  overflow: hidden;
  color: rgba(209, 232, 216, 0.53);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-waypoint-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.route-waypoint-switch-track {
  position: relative;
  display: block;
  width: 28px;
  height: 16px;
  border: 1px solid rgba(165, 213, 191, 0.2);
  border-radius: 99px;
  background: rgba(8, 20, 13, 0.34);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.route-waypoint-switch-track span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(209, 232, 216, 0.68);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 180ms var(--ease-out), background-color 180ms ease-out;
}

.route-waypoint-switch input:checked + .route-waypoint-switch-track {
  border-color: rgba(242, 109, 59, 0.48);
  background: rgba(242, 109, 59, 0.32);
}

.route-waypoint-switch input:checked + .route-waypoint-switch-track span {
  background: #fff3e6;
  transform: translateX(12px);
}

.route-waypoint-switch input:disabled + .route-waypoint-switch-track {
  opacity: 0.55;
}

.route-camp-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 11px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid rgba(242, 109, 59, 0.24);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(242, 109, 59, 0.13), rgba(242, 109, 59, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(4, 13, 10, 0.1);
  text-align: left;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out), opacity 180ms ease-out;
}

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

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

.route-camp-button-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--orange-bright);
  border: 1px solid rgba(242, 109, 59, 0.3);
  border-radius: 9px;
  background: rgba(242, 109, 59, 0.12);
}

.route-camp-button-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.route-camp-button-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-camp-button-copy strong {
  overflow: hidden;
  color: #fff7ef;
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-camp-button-copy small {
  overflow: hidden;
  color: rgba(209, 232, 216, 0.58);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-camp-button-plus {
  color: var(--orange-bright);
  font-size: 18px;
  font-weight: 350;
  line-height: 1;
}

.route-camp-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  cursor: pointer;
  color: rgba(255, 211, 191, 0.78);
  border: 1px solid rgba(242, 109, 59, 0.16);
  border-radius: 10px;
  background: rgba(242, 109, 59, 0.035);
  font-size: 8px;
  letter-spacing: 0.03em;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out, opacity 180ms ease-out;
}

.route-camp-delete-button[hidden] {
  display: none;
}

.route-camp-delete-button:hover:not(:disabled) {
  color: #ffd7c4;
  border-color: rgba(242, 109, 59, 0.34);
  background: rgba(242, 109, 59, 0.09);
}

.route-camp-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.route-camp-delete-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.route-camp-feedback {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% + 8px);
  z-index: 12;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  padding: 9px 11px;
  color: rgba(255, 247, 239, 0.86);
  border: 1px solid rgba(242, 109, 59, 0.34);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(58, 39, 28, 0.95), rgba(32, 29, 24, 0.94));
  box-shadow: 0 12px 26px rgba(4, 13, 10, 0.3), inset 0 1px 0 rgba(255, 247, 239, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 8px;
  line-height: 1.45;
  pointer-events: none;
  animation: camp-feedback-in 180ms var(--ease-out) both;
}

.route-camp-feedback::before {
  position: absolute;
  top: -5px;
  left: 22px;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 1px solid rgba(242, 109, 59, 0.34);
  border-left: 1px solid rgba(242, 109, 59, 0.34);
  background: rgba(58, 39, 28, 0.95);
  transform: rotate(45deg);
}

.route-camp-feedback[hidden] {
  display: none;
}

.route-camp-feedback[data-tone="success"] {
  color: rgba(213, 241, 222, 0.86);
  border-color: rgba(165, 213, 191, 0.32);
  background: linear-gradient(135deg, rgba(31, 57, 47, 0.95), rgba(22, 37, 32, 0.94));
}

.route-camp-feedback[data-tone="success"]::before {
  border-color: rgba(165, 213, 191, 0.32);
  background: rgba(31, 57, 47, 0.95);
}

.route-camp-feedback-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 3px rgba(242, 109, 59, 0.12);
}

.route-camp-feedback[data-tone="success"] .route-camp-feedback-dot {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(165, 213, 191, 0.12);
}

.route-export-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 11px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid rgba(165, 213, 191, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(165, 213, 191, 0.11), rgba(165, 213, 191, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 22px rgba(4, 13, 10, 0.1);
  text-align: left;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out), opacity 180ms ease-out;
}

.route-export-trigger[hidden] {
  display: none;
}

.route-export-trigger:hover:not(:disabled),
.route-export-trigger.is-open {
  border-color: rgba(165, 213, 191, 0.36);
  background: linear-gradient(145deg, rgba(165, 213, 191, 0.17), rgba(165, 213, 191, 0.06));
  transform: translateY(-1px);
}

.route-export-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.route-export-trigger-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--mint);
  border: 1px solid rgba(165, 213, 191, 0.24);
  border-radius: 9px;
  background: rgba(165, 213, 191, 0.09);
}

.route-export-trigger-icon svg,
.route-export-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.route-export-trigger-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-export-trigger-copy strong {
  overflow: hidden;
  color: #e2f0e6;
  font-size: 10px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-export-trigger-copy small {
  overflow: hidden;
  color: rgba(165, 213, 191, 0.58);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-export-trigger-arrow {
  color: var(--mint);
  font-size: 17px;
  font-weight: 350;
  line-height: 1;
}

.route-export-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  color: var(--ink-soft);
  border: 1px solid rgba(165, 213, 191, 0.18);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(165, 213, 191, 0.1), rgba(9, 20, 16, 0.33));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 30px rgba(4, 13, 10, 0.14);
  animation: route-export-panel-in 180ms var(--ease-out) both;
}

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

.route-export-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.route-export-panel-head > div {
  display: grid;
  gap: 4px;
}

.route-export-panel-head h3 {
  margin: 0;
  color: #e3f0e6;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.route-export-close {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: rgba(209, 232, 216, 0.66);
  border: 1px solid rgba(165, 213, 191, 0.15);
  border-radius: 7px;
  background: rgba(165, 213, 191, 0.05);
  font-size: 16px;
  line-height: 1;
  transition: color 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}

.route-export-close:hover {
  color: #fff7ef;
  border-color: rgba(242, 109, 59, 0.36);
  background: rgba(242, 109, 59, 0.1);
}

.route-export-panel-note {
  margin: -2px 0 0;
  color: rgba(209, 232, 216, 0.54);
  font-size: 8px;
  line-height: 1.5;
}

.route-export-list {
  display: grid;
  gap: 6px;
}

.route-export-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(165, 213, 191, 0.12);
  border-radius: 10px;
  background: rgba(4, 13, 10, 0.2);
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.route-export-item:has(.route-export-select input:checked) {
  border-color: rgba(242, 109, 59, 0.2);
  background: rgba(242, 109, 59, 0.055);
}

.route-export-select {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  cursor: pointer;
}

.route-export-select input {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orange);
}

.route-export-select input:disabled {
  cursor: default;
  opacity: 0.72;
}

.route-export-item-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-export-item-copy strong {
  overflow: hidden;
  color: #e2f0e6;
  font-size: 9px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-export-item-copy small {
  overflow: hidden;
  color: rgba(209, 232, 216, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-export-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: rgba(209, 232, 216, 0.58);
  font-size: 7px;
  white-space: nowrap;
}

.route-export-toggle.is-locked {
  cursor: not-allowed;
  color: #e08a63;
}

.route-export-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.route-export-toggle-track {
  position: relative;
  display: block;
  width: 24px;
  height: 14px;
  border: 1px solid rgba(165, 213, 191, 0.22);
  border-radius: 99px;
  background: rgba(165, 213, 191, 0.08);
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

.route-export-toggle-track::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(209, 232, 216, 0.68);
  content: "";
  transition: background-color 180ms ease-out, transform 180ms var(--ease-out);
}

.route-export-toggle input:checked + .route-export-toggle-track {
  border-color: rgba(242, 109, 59, 0.56);
  background: rgba(242, 109, 59, 0.32);
}

.route-export-toggle input:checked + .route-export-toggle-track::after {
  background: #fff2e8;
  transform: translateX(10px);
}

.route-export-toggle.is-locked .route-export-toggle-track {
  border-color: rgba(242, 109, 59, 0.52);
  background: rgba(242, 109, 59, 0.26);
  opacity: 0.78;
}

.route-export-toggle input:focus-visible + .route-export-toggle-track {
  outline: 2px solid rgba(242, 109, 59, 0.58);
  outline-offset: 2px;
}

.route-export-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(165, 213, 191, 0.12);
}

.route-export-selection {
  color: rgba(209, 232, 216, 0.54);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  white-space: nowrap;
}

.route-export-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  padding: 8px 10px;
  cursor: pointer;
  color: #fff8ee;
  border: 1px solid rgba(242, 109, 59, 0.4);
  border-radius: 9px;
  background: linear-gradient(135deg, #f26d3b, #d9552e);
  box-shadow: 0 8px 18px rgba(242, 109, 59, 0.18);
  font-size: 8px;
  font-weight: 760;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out), opacity 180ms ease-out;
}

.route-export-submit:hover:not(:disabled) {
  border-color: rgba(255, 220, 195, 0.7);
  background: linear-gradient(135deg, #ff8050, #e85e33);
  transform: translateY(-1px);
}

.route-export-submit:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

@keyframes route-export-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes camp-feedback-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(165, 213, 191, 0.045);
}

.view-switcher-button {
  min-height: 40px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--ink-faint);
  border-radius: 9px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out);
}

.view-switcher-button.is-active {
  color: #fff8f1;
  background: var(--orange);
  box-shadow: 0 5px 13px rgba(242, 109, 59, 0.2);
}

.route-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  animation: route-view-in 420ms var(--ease-out) both;
}

.route-topbar {
  align-items: center;
  height: 78px;
}

.route-topbar-copy {
  display: grid;
  gap: 5px;
}

.route-section-index,
.route-activity-label {
  color: var(--orange-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.route-topbar-actions {
  gap: 13px;
}

.route-privacy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.route-privacy-dot,
.route-footer-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(165, 213, 191, 0.08);
}

.route-fit-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 10px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(165, 213, 191, 0.05);
  font-size: 9px;
  transition: color 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out);
}

.route-fit-button svg {
  width: 14px;
  height: 14px;
}

.route-fit-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.route-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 328px) minmax(0, 1fr);
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  margin-top: 12px;
}

.route-inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: #27322d;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: #f3f1eb;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.route-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(39, 50, 45, 0.1);
}

.route-product-mark {
  display: flex;
  align-items: center;
  gap: 9px;
}

.route-product-mark-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--orange);
  box-shadow: 0 8px 16px rgba(242, 109, 59, 0.2);
}

.route-product-mark-icon img {
  width: 100%;
  height: 100%;
}

.route-product-mark > span:last-child {
  display: grid;
  gap: 3px;
}

.route-product-mark strong {
  color: #27322d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.route-product-mark small {
  color: #7b857f;
  font-size: 9px;
}

.route-icon-button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  cursor: pointer;
  color: #8b938d;
  border: 1px solid rgba(39, 50, 45, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.4);
  transition: color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out), opacity 180ms ease-out;
}

.route-icon-button svg {
  width: 14px;
  height: 14px;
}

.route-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.route-intro {
  flex: 0 0 auto;
  padding: 23px 20px 13px;
}

.route-intro h2 {
  margin: 11px 0 9px;
  color: #202a25;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.08em;
  line-height: 1.06;
}

.route-intro p {
  max-width: 246px;
  margin: 0;
  color: #818b84;
  font-size: 10px;
  line-height: 1.75;
}

.route-dropzone {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  margin: 5px 14px 15px;
  padding: 10px 11px;
  cursor: pointer;
  color: #27322d;
  border: 1px dashed rgba(242, 109, 59, 0.44);
  border-radius: 14px;
  background: rgba(242, 109, 59, 0.065);
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out), box-shadow 180ms ease-out;
}

.route-upload-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--orange-deep);
  border: 1px solid rgba(242, 109, 59, 0.19);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.67);
}

.route-upload-icon svg {
  width: 17px;
  height: 17px;
}

.route-dropzone-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-dropzone-copy strong {
  color: #39433d;
  font-size: 11px;
  font-weight: 750;
}

.route-dropzone-copy small {
  color: #8a938e;
  font-size: 9px;
}

.route-dropzone-type {
  margin-left: auto;
  color: rgba(201, 87, 46, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
}

.route-dropzone.is-dragging,
.route-dropzone:hover,
.route-dropzone:focus-visible {
  border-color: var(--orange);
  background: rgba(242, 109, 59, 0.12);
  box-shadow: 0 8px 22px rgba(242, 109, 59, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.route-source-file {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 10px 11px;
  border: 1px solid rgba(110, 154, 126, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 154, 126, 0.1), rgba(242, 109, 59, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.route-source-file[hidden],
.route-summary[hidden] {
  display: none;
}

.route-source-file-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #547b63;
  border-radius: 9px;
  background: rgba(165, 213, 191, 0.34);
}

.route-source-file-icon svg {
  width: 15px;
  height: 15px;
}

.route-source-file-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.route-source-file-copy > span {
  color: #829087;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.route-source-file-copy strong {
  overflow: hidden;
  color: #3b4540;
  font-size: 10px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-source-file-copy small {
  color: #929991;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
}

.route-source-file-status {
  display: grid;
  justify-items: end;
  gap: 3px;
  margin-left: auto;
  flex: 0 0 auto;
  color: #547b63;
  font-size: 8px;
  font-weight: 800;
}

.route-source-file-status span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #f3f1eb;
  border-radius: 50%;
  background: #6e9a7e;
  font-size: 11px;
  font-weight: 800;
}

.route-source-file-status small {
  color: #87978c;
  font-size: 7px;
}

.route-summary {
  min-height: 0;
  padding: 0 18px 18px;
  overflow-y: auto;
  scrollbar-color: rgba(39, 50, 45, 0.2) transparent;
  scrollbar-width: thin;
}

.route-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 12px;
}

.route-activity-badge {
  padding: 5px 6px;
  color: #7b8e83;
  border: 1px solid rgba(110, 154, 126, 0.25);
  border-radius: 6px;
  background: rgba(110, 154, 126, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-summary::-webkit-scrollbar {
  width: 6px;
}

.route-summary::-webkit-scrollbar-track {
  background: transparent;
}

.route-summary::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(39, 50, 45, 0.2);
  background-clip: padding-box;
}

.route-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(39, 50, 45, 0.12);
  border-left: 1px solid rgba(39, 50, 45, 0.12);
}

.route-stat {
  display: grid;
  align-content: start;
  min-height: 66px;
  padding: 10px 9px 8px;
  border-right: 1px solid rgba(39, 50, 45, 0.12);
  border-bottom: 1px solid rgba(39, 50, 45, 0.12);
}

.route-stat--wide {
  min-height: 76px;
}

.route-stat span {
  overflow: hidden;
  color: #89918b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-stat strong {
  margin-top: 7px;
  overflow: hidden;
  color: #29342e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-stat--wide strong {
  font-size: 17px;
}

.route-live-readout {
  display: grid;
  gap: 10px;
  margin-top: 15px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(242, 109, 59, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(242, 109, 59, 0.11), rgba(242, 109, 59, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.route-live-readout[hidden] {
  display: none;
}

.route-live-head {
  color: #7f8a82;
  font-size: 8px;
  font-weight: 750;
}

.route-live-head strong {
  color: #d76136;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
}

.route-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 10px;
}

.route-live-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-live-grid small {
  color: #9aa29c;
  font-size: 7px;
}

.route-live-grid strong {
  overflow: hidden;
  color: #39443d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-live-coordinate-cell {
  grid-column: span 3;
}

.route-camp-plan {
  display: grid;
  gap: 10px;
  margin-top: 15px;
  padding: 13px 12px 11px;
  border: 1px solid rgba(39, 50, 45, 0.13);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(39, 50, 45, 0.045), rgba(242, 109, 59, 0.045));
}

.route-camp-plan[hidden] {
  display: none;
}

.route-camp-plan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.route-camp-plan-tools {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.route-start-date {
  position: relative;
  display: grid;
  align-items: end;
  gap: 4px;
  color: #89958c;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.route-start-date-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 108px;
  min-height: 25px;
  padding: 0 7px;
  cursor: pointer;
  color: #46554b;
  border: 1px solid rgba(110, 154, 126, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  text-align: left;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, background-color 180ms ease-out;
}

.route-start-date-trigger svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: #d76136;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.route-start-date-trigger > span:not(.route-start-date-chevron) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-start-date-chevron {
  margin-left: auto;
  color: #a0aaa2;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease-out;
}

.route-start-date-trigger:hover,
.route-start-date.is-open .route-start-date-trigger {
  border-color: rgba(242, 109, 59, 0.34);
  background: #fffdf8;
}

.route-start-date-trigger:focus-visible {
  border-color: rgba(242, 109, 59, 0.62);
  box-shadow: 0 0 0 3px rgba(242, 109, 59, 0.1);
  outline: none;
}

.route-start-date.is-open .route-start-date-chevron {
  transform: rotate(180deg) translateY(1px);
}

.route-date-picker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: grid;
  width: 232px;
  gap: 9px;
  padding: 11px;
  color: #445248;
  border: 1px solid rgba(39, 50, 45, 0.14);
  border-radius: 13px;
  background: rgba(248, 246, 239, 0.98);
  box-shadow: 0 16px 34px rgba(24, 39, 29, 0.2), 0 2px 5px rgba(24, 39, 29, 0.08);
  animation: route-date-picker-in 160ms var(--ease-out) both;
}

.route-date-picker[hidden] {
  display: none;
}

.route-date-picker-head,
.route-date-picker-footer,
.route-date-weekdays,
.route-date-grid {
  display: grid;
}

.route-date-picker-head {
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 5px;
}

.route-date-picker-head strong {
  color: #3e4c43;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.route-date-picker-nav {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #6e8175;
  border: 1px solid rgba(110, 154, 126, 0.18);
  border-radius: 7px;
  background: rgba(110, 154, 126, 0.07);
  font-size: 17px;
  line-height: 1;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.route-date-picker-nav:hover {
  color: #d76136;
  border-color: rgba(242, 109, 59, 0.28);
  background: rgba(242, 109, 59, 0.08);
}

.route-date-weekdays,
.route-date-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.route-date-weekdays {
  color: #9aa49c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  text-align: center;
}

.route-date-day {
  display: grid;
  min-width: 0;
  height: 25px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: #536157;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out, transform 150ms var(--ease-out);
}

.route-date-day:hover {
  color: #d76136;
  border-color: rgba(242, 109, 59, 0.24);
  background: rgba(242, 109, 59, 0.08);
  transform: translateY(-1px);
}

.route-date-day.is-muted {
  color: #b4bbb4;
}

.route-date-day.is-past {
  cursor: not-allowed;
  color: #b9beb9;
  background: transparent;
  opacity: 0.58;
}

.route-date-day.is-past {
  opacity: 0.42;
}

.route-date-day.is-forecast-unavailable {
  cursor: pointer;
  color: #c99a85;
  border-color: rgba(211, 154, 126, 0.18);
  background: rgba(211, 154, 126, 0.08);
  opacity: 0.84;
}

.route-date-day.is-forecast-available {
  color: #397b58;
  border-color: rgba(80, 157, 111, 0.16);
  background: rgba(111, 190, 137, 0.1);
}

.route-date-day.is-past:hover {
  color: inherit;
  border-color: transparent;
  background: transparent;
  transform: none;
}

.route-date-day.is-forecast-unavailable:hover {
  color: #a85f42;
  border-color: rgba(211, 154, 126, 0.34);
  background: rgba(211, 154, 126, 0.16);
  transform: translateY(-1px);
}

.route-date-day.is-forecast-available:hover {
  color: #245e40;
  border-color: rgba(80, 157, 111, 0.32);
  background: rgba(111, 190, 137, 0.18);
}

.route-date-day.is-today {
  border-color: rgba(110, 154, 126, 0.35);
}

.route-date-day.is-selected {
  color: #fff9f0;
  border-color: #d76136;
  background: #d76136;
  box-shadow: 0 4px 9px rgba(215, 97, 54, 0.2);
}

.route-date-day.is-selected:hover {
  color: #fff9f0;
  border-color: #bf512e;
  background: #bf512e;
}

.route-date-picker-status {
  display: grid;
  gap: 5px;
  padding: 7px 2px 0;
  color: #8f9d93;
  border-top: 1px solid rgba(39, 50, 45, 0.08);
  font-size: 6.5px;
  line-height: 1.35;
}

.route-date-picker-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-date-picker-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.route-date-picker-legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8beb9;
}

.route-date-picker-legend-dot.is-available {
  background: #6fbe89;
  box-shadow: 0 0 0 2px rgba(111, 190, 137, 0.14);
}

.route-date-picker-legend-dot.is-past {
  background: #aeb5af;
  box-shadow: 0 0 0 2px rgba(174, 181, 175, 0.12);
}

.route-date-picker-legend-dot.is-unavailable {
  background: #d39a7e;
  box-shadow: 0 0 0 2px rgba(211, 154, 126, 0.12);
}

.route-date-picker-status-note {
  overflow: hidden;
  color: #77857b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-date-picker-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  color: #9aa49c;
  border-top: 1px solid rgba(39, 50, 45, 0.1);
  font-size: 7px;
}

.route-date-picker-footer button {
  padding: 3px 6px;
  cursor: pointer;
  color: #d76136;
  border: 0;
  border-radius: 5px;
  background: rgba(242, 109, 59, 0.07);
  font-size: 7px;
}

.route-date-picker-footer button:hover {
  background: rgba(242, 109, 59, 0.14);
}

@keyframes route-date-picker-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.route-camp-plan-head > div {
  display: grid;
  gap: 4px;
}

.route-camp-plan h3 {
  margin: 0;
  color: #3e4a42;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.route-camp-count {
  color: #d76136;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
}

.route-camp-list {
  display: grid;
  gap: 6px;
}

.route-camp-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid rgba(39, 50, 45, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.38);
}

.route-camp-day-badge {
  display: grid;
  width: 42px;
  height: 30px;
  place-items: center;
  color: #fff8ee;
  border-radius: 8px;
  background: #d76136;
  box-shadow: 0 3px 8px rgba(215, 97, 54, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 850;
}

.route-camp-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.route-camp-route {
  overflow: hidden;
  color: #4b574f;
  font-size: 9px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-camp-date {
  color: #d76136;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 750;
}

.route-camp-copy .route-camp-metrics,
.route-camp-total {
  color: #929a94;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-camp-total {
  color: #d76136;
  text-align: right;
}

.route-camp-plan-note {
  margin: 0;
  color: #9aa19c;
  font-size: 7px;
  line-height: 1.45;
}

.route-stat small {
  margin-top: 2px;
  color: #a0a7a1;
  font-size: 7px;
}

.route-elevation-block {
  margin-top: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(39, 50, 45, 0.12);
}

.route-block-heading,
.route-elevation-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-block-heading {
  margin-bottom: 8px;
  color: #4b574f;
  font-size: 9px;
  font-weight: 750;
}

.route-block-heading small,
.route-elevation-axis {
  color: #9aa19c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 600;
}

.route-elevation-chart {
  display: block;
  width: 100%;
  height: 92px;
  overflow: visible;
  border-bottom: 1px solid rgba(39, 50, 45, 0.12);
  background: linear-gradient(to bottom, rgba(242, 109, 59, 0.03), transparent 75%);
}

.elevation-area {
  fill: url(#elevation-fill);
  stroke: none;
}

.elevation-line {
  fill: none;
  stroke: #e86a3e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.elevation-dot {
  fill: #f3f1eb;
  stroke: #e86a3e;
  stroke-width: 2;
}

.elevation-dot--end {
  fill: #e86a3e;
}

.elevation-camp {
  pointer-events: none;
}

.elevation-camp-marker {
  fill: #f3f1eb;
  stroke: #d95f35;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.elevation-cursor {
  stroke: #26372d;
  stroke-dasharray: 3 3;
  stroke-linecap: round;
  stroke-width: 1.2;
  opacity: 0.68;
  pointer-events: none;
}

.elevation-cursor-dot {
  fill: #fff8ee;
  stroke: #e86a3e;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 2px rgba(39, 50, 45, 0.18));
  pointer-events: none;
}

.route-elevation-axis {
  padding-top: 6px;
}

.route-detail-list {
  display: grid;
}

.route-details {
  border-bottom: 1px solid rgba(39, 50, 45, 0.12);
}

.route-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  cursor: pointer;
  color: #4b574f;
  list-style: none;
  font-size: 9px;
  font-weight: 750;
}

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

.route-details summary::after {
  width: 6px;
  height: 6px;
  content: "";
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease-out;
}

.route-details[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.route-details-count {
  margin-left: auto;
  margin-right: 11px;
  color: #9ba39d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 600;
}

.route-details dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px 9px;
  margin: 0 0 13px;
  font-size: 8px;
  line-height: 1.4;
}

.route-details dt {
  color: #9aa19c;
}

.route-details dd {
  margin: 0;
  overflow: hidden;
  color: #5d6861;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-waypoint-list,
.route-raw-fields {
  display: grid;
  gap: 6px;
  padding: 0 0 13px;
}

.route-waypoint-item,
.route-raw-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 8px;
  color: #657168;
  border-radius: 7px;
  background: rgba(39, 50, 45, 0.045);
  font-size: 8px;
}

.route-waypoint-item strong,
.route-raw-field strong {
  overflow: hidden;
  color: #4b574f;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-waypoint-item span,
.route-raw-field span {
  color: #969e98;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  text-align: right;
}

.route-raw-field {
  grid-template-columns: minmax(74px, 0.75fr) minmax(0, 1.25fr);
}

.route-raw-field strong {
  color: #9aa19c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 600;
}

.route-raw-field span {
  overflow: hidden;
  color: #5d6861;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-inspector-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  margin: auto 18px 0;
  color: #9da59f;
  border-top: 1px solid rgba(39, 50, 45, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
}

.route-footer-mark {
  width: 5px;
  height: 5px;
  box-shadow: none;
  background: #83a78d;
}

.route-map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(214, 235, 222, 0.14);
  border-radius: 22px;
  background: #5f735f;
  box-shadow: var(--shadow-deep);
}

.map-layer-stack {
  position: absolute;
  inset: -2px;
  z-index: 0;
  transition: transform 700ms var(--ease-out), filter 700ms ease-out;
}

.map-fallback,
.mapbox-map {
  position: absolute;
  inset: 0;
}

.route-map-panel:not(.has-mapbox) .mapbox-map {
  pointer-events: none;
}

.map-fallback {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 31%, rgba(205, 190, 146, 0.8), transparent 19%),
    radial-gradient(ellipse at 21% 71%, rgba(74, 113, 83, 0.85), transparent 28%),
    radial-gradient(ellipse at 58% 68%, rgba(40, 66, 48, 0.72), transparent 31%),
    linear-gradient(135deg, #82927c 0%, #596e58 45%, #314632 100%);
  transition: opacity 400ms ease-out, filter 500ms ease-out;
}

.map-fallback::before,
.map-fallback::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.map-fallback::before {
  inset: -10% -5%;
  opacity: 0.48;
  background:
    linear-gradient(142deg, transparent 0 37%, rgba(233, 225, 187, 0.2) 37.4% 37.8%, transparent 38.2% 100%),
    linear-gradient(25deg, transparent 0 58%, rgba(22, 50, 31, 0.27) 58.3% 64%, transparent 64.4% 100%),
    linear-gradient(167deg, transparent 0 72%, rgba(218, 205, 164, 0.17) 72.2% 74%, transparent 74.3% 100%);
  filter: blur(1px);
  transform: rotate(-4deg) scale(1.08);
}

.map-fallback::after {
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.map-fallback-haze {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: linear-gradient(110deg, rgba(13, 31, 20, 0.3), transparent 42%, rgba(236, 228, 192, 0.14) 80%, rgba(23, 48, 29, 0.42));
}

.map-contour-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.contour {
  fill: none;
  stroke: rgba(232, 222, 181, 0.72);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.contour--soft {
  opacity: 0.42;
}

.contour--hard {
  opacity: 0.22;
  stroke-width: 2;
}

.fallback-map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fallback-route-shadow,
.fallback-route-line,
.fallback-route-hover-segment,
.fallback-route-hit-segment {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fallback-route-shadow {
  stroke: rgba(255, 91, 37, 0.26);
  stroke-width: 12;
  filter: blur(7px);
}

.fallback-route-line {
  stroke: #ff6e2f;
  stroke-width: 5;
  filter: drop-shadow(0 3px 3px rgba(69, 30, 15, 0.34));
  transition: filter 180ms ease-out, stroke 180ms ease-out;
}

.fallback-route-hover-segment {
  stroke: #fff8ee;
  stroke-width: 9;
  stroke-opacity: 0;
  filter: blur(0.45px);
  pointer-events: none;
  transition: stroke-opacity 180ms ease-out, filter 180ms ease-out;
}

.fallback-route-hit-segment {
  stroke: transparent;
  stroke-width: 22;
  pointer-events: stroke;
  cursor: pointer;
}

.fallback-route-hover-segment.is-active {
  stroke-opacity: 0.92;
  filter: drop-shadow(0 0 3px rgba(255, 248, 238, 0.4));
}

.fallback-route-current-marker {
  fill: #fff8ee;
  stroke: #ff6e2f;
  stroke-width: 4;
  filter: drop-shadow(0 3px 5px rgba(42, 30, 19, 0.4));
  opacity: 0;
  transition: cx 180ms ease-out, cy 180ms ease-out, opacity 180ms ease-out;
}

.fallback-route-waypoints {
  pointer-events: auto;
}

.fallback-route-waypoints[hidden] {
  display: none;
}

.fallback-route-waypoint {
  cursor: help;
}

.fallback-route-waypoint-halo {
  fill: rgba(248, 240, 223, 0.32);
  stroke: rgba(38, 55, 45, 0.26);
  stroke-width: 1;
  transition: fill 160ms ease-out, stroke 160ms ease-out;
}

.fallback-route-waypoint-marker {
  fill: #f8f0df;
  stroke: #26372d;
  stroke-width: 1.15;
  opacity: 0.8;
  transition: r 160ms ease-out, opacity 160ms ease-out;
}

.fallback-route-waypoint:hover .fallback-route-waypoint-halo {
  fill: rgba(242, 109, 59, 0.28);
  stroke: rgba(242, 109, 59, 0.66);
}

.fallback-route-waypoint:hover .fallback-route-waypoint-marker {
  opacity: 1;
  r: 3.5;
}

.fallback-route-camps {
  pointer-events: none;
}

.fallback-route-camp-halo {
  fill: rgba(248, 240, 223, 0.5);
  stroke: rgba(217, 95, 53, 0.24);
  stroke-width: 2;
}

.fallback-route-camp-marker {
  fill: #f8f0df;
  stroke: #d95f35;
  stroke-width: 2.5;
  filter: drop-shadow(0 3px 4px rgba(42, 30, 19, 0.3));
}

.fallback-route-camp-label {
  fill: #d95f35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  font-weight: 850;
}

.fallback-route-dot {
  stroke: #fff8ee;
  stroke-width: 3;
}

.fallback-route-dot--start {
  fill: #26372d;
}

.fallback-route-dot--end {
  fill: #ff6e2f;
}

.map-place-label {
  position: absolute;
  padding: 5px 7px;
  color: rgba(247, 244, 222, 0.88);
  border: 1px solid rgba(245, 238, 205, 0.26);
  border-radius: 5px;
  background: rgba(25, 40, 26, 0.34);
  box-shadow: 0 4px 12px rgba(15, 27, 18, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(7px);
}

.map-place-label--one {
  top: 23%;
  left: 61%;
}

.map-place-label--two {
  top: 48%;
  left: 38%;
}

.map-place-label--three {
  top: 67%;
  left: 72%;
}

.map-fallback.has-route .map-place-label {
  display: none;
}

.mapbox-map {
  z-index: 1;
  opacity: 0;
  background: #687961;
  transition: opacity 500ms ease-out;
}

.route-map-panel.has-mapbox .mapbox-map {
  opacity: 1;
  pointer-events: auto;
}

.route-map-panel.has-mapbox .map-fallback {
  opacity: 0;
}

.mapboxgl-map {
  color: #27322d;
  background: #687961;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.mapboxgl-canvas {
  cursor: grab;
}

.mapboxgl-canvas:active {
  cursor: grabbing;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib {
  display: none !important;
}

.gpx-tooltip {
  padding: 4px 6px;
  color: #fff8ee;
  border: 1px solid rgba(255, 248, 238, 0.18);
  border-radius: 5px;
  background: rgba(26, 42, 28, 0.78);
  box-shadow: 0 5px 12px rgba(10, 22, 12, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.gpx-tooltip::before {
  border-top-color: rgba(26, 42, 28, 0.78);
}

.route-map-panel.is-satellite .mapboxgl-canvas {
  filter: saturate(0.96) contrast(1.02) brightness(0.96);
}

.route-map-panel.is-outdoor .mapboxgl-canvas {
  filter: saturate(1.01) contrast(1) brightness(1);
}

.route-map-panel.is-outdoor .map-fallback {
  filter: saturate(0.78) brightness(1.08) sepia(0.12);
}

.route-map-panel.is-3d .map-layer-stack {
  transform: none;
}

.route-map-panel.is-3d .map-vignette {
  box-shadow: inset 0 42px 60px rgba(9, 25, 15, 0.18), inset 0 -20px 36px rgba(9, 25, 15, 0.22);
}

.map-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 70px 90px rgba(11, 25, 14, 0.16), inset 0 -70px 90px rgba(7, 17, 10, 0.24);
  transition: box-shadow 500ms ease-out;
}

.map-toolbar-top {
  position: absolute;
  top: 15px;
  right: 17px;
  left: 17px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.map-context-badge,
.map-attribution,
.map-legend,
.map-scale {
  color: rgba(248, 246, 226, 0.85);
  border: 1px solid rgba(246, 244, 214, 0.2);
  background: rgba(18, 32, 21, 0.36);
  box-shadow: 0 7px 18px rgba(11, 24, 13, 0.1);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.map-context-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(100%, 360px);
  min-height: 29px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 650;
}

.map-context-icon {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffc26f;
  border: 1px solid rgba(255, 194, 111, 0.3);
  border-radius: 5px;
}

.map-context-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.map-context-badge > span:last-child {
  overflow: hidden;
  color: rgba(248, 246, 226, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-empty-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 17px 21px;
  color: rgba(248, 246, 226, 0.88);
  border: 1px solid rgba(246, 244, 214, 0.2);
  border-radius: 14px;
  background: rgba(18, 32, 21, 0.34);
  box-shadow: 0 15px 38px rgba(11, 24, 13, 0.15);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease-out, transform 300ms var(--ease-out);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.map-empty-prompt.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.97);
}

.map-empty-prompt-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #ffc26f;
  border: 1px solid rgba(255, 194, 111, 0.34);
  border-radius: 10px;
  font-size: 18px;
}

.map-empty-prompt strong {
  font-size: 11px;
  font-weight: 740;
}

.map-empty-prompt small {
  color: rgba(248, 246, 226, 0.62);
  font-size: 9px;
}

.map-gesture-hint {
  position: absolute;
  top: 57px;
  left: 17px;
  z-index: 4;
  padding: 6px 8px;
  color: rgba(248, 246, 226, 0.62);
  border: 1px solid rgba(246, 244, 214, 0.12);
  border-radius: 7px;
  background: rgba(18, 32, 21, 0.24);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.map-attribution {
  position: absolute;
  top: 15px;
  right: 17px;
  z-index: 4;
  display: none;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(35, 39, 35, 0.75);
  font-family: Arial, sans-serif;
  font-size: 8px;
  box-shadow: none;
  backdrop-filter: none;
}

.map-attribution strong {
  font-weight: 750;
}

.mapboxgl-popup.trekly-waypoint-popup {
  z-index: 8;
}

.trekly-waypoint-popup .mapboxgl-popup-content {
  min-width: 112px;
  max-width: 220px;
  padding: 9px 11px;
  color: #eff5e9;
  border: 1px solid rgba(242, 109, 59, 0.38);
  border-radius: 10px;
  background: rgba(23, 40, 29, 0.94);
  box-shadow: 0 10px 25px rgba(7, 18, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trekly-waypoint-popup .mapboxgl-popup-tip {
  border-top-color: rgba(23, 40, 29, 0.94);
  border-bottom-color: rgba(23, 40, 29, 0.94);
}

.trekly-waypoint-popup-copy {
  display: grid;
  gap: 4px;
}

.trekly-waypoint-popup-copy strong {
  color: #fff6e9;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.3;
}

.trekly-waypoint-popup-copy span {
  color: rgba(213, 241, 222, 0.68);
  font-size: 8px;
  line-height: 1.35;
}

.has-mapbox .map-attribution {
  display: block;
}

.map-scale {
  position: absolute;
  bottom: 20px;
  left: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  background: rgba(18, 32, 21, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
}

.map-scale-line {
  display: inline-block;
  width: 30px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.map-legend {
  position: absolute;
  bottom: 19px;
  left: 86px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: rgba(18, 32, 21, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
}

.map-legend-line {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd400 0%, #ff8a00 50%, #ff2b13 100%);
  box-shadow: 0 0 8px rgba(255, 138, 0, 0.48);
}

.map-legend-dot {
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border: 1px solid #fff8ee;
  border-radius: 50%;
  background: #ff6e2f;
}

.map-mode-control {
  position: absolute;
  right: 17px;
  bottom: 18px;
  z-index: 5;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.map-mode-label {
  color: rgba(248, 246, 226, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.09em;
}

.map-mode-buttons {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(246, 244, 214, 0.2);
  border-radius: 10px;
  background: rgba(18, 32, 21, 0.58);
  box-shadow: 0 9px 25px rgba(11, 24, 13, 0.2);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.map-mode-button {
  min-width: 54px;
  min-height: 31px;
  padding: 0 9px;
  cursor: pointer;
  color: rgba(248, 246, 226, 0.65);
  border-radius: 7px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 700;
  transition: color 180ms ease-out, background-color 180ms ease-out, transform 160ms var(--ease-out);
}

.map-mode-button.is-active {
  color: #2a3028;
  background: #f4f0de;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.12);
}

.route-weather-popover {
  position: absolute;
  top: 72px;
  right: 18px;
  z-index: 7;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(548px, calc(100% - 36px));
  max-height: calc(100% - 108px);
  min-height: 0;
  overflow: hidden;
  color: rgba(241, 248, 238, 0.9);
  border: 1px solid rgba(214, 239, 220, 0.22);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(20, 39, 29, 0.94), rgba(11, 24, 18, 0.95));
  box-shadow: 0 22px 48px rgba(4, 13, 8, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: route-weather-popover-in 220ms var(--ease-out) both;
}

.route-weather-popover[hidden] {
  display: none;
}

.route-weather-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px 12px;
  border-bottom: 1px solid rgba(214, 239, 220, 0.12);
}

.route-weather-head-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.route-weather-kicker {
  color: #ff9a61;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.route-weather-head h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  color: #fff8ee;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.route-weather-title-date {
  color: rgba(255, 174, 132, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.route-weather-head p {
  margin: 0;
  overflow: hidden;
  color: rgba(206, 230, 211, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-weather-anchor {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 1px;
  color: rgba(206, 230, 211, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.route-weather-anchor-mark {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border: 1px solid rgba(131, 208, 166, 0.56);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(131, 208, 166, 0.08);
}

.route-weather-anchor-label {
  color: rgba(206, 230, 211, 0.5);
  white-space: nowrap;
}

.route-weather-anchor strong {
  overflow: hidden;
  color: rgba(231, 239, 224, 0.56);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-weather-close {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: rgba(239, 248, 237, 0.68);
  border: 1px solid rgba(214, 239, 220, 0.16);
  border-radius: 8px;
  background: rgba(214, 239, 220, 0.06);
  font-size: 19px;
  line-height: 1;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out, transform 160ms var(--ease-out);
}

.route-weather-close:hover {
  color: #fff8ee;
  border-color: rgba(255, 154, 97, 0.46);
  background: rgba(242, 109, 59, 0.16);
  transform: rotate(4deg);
}

.route-weather-body {
  min-height: 0;
  overflow: auto;
  scrollbar-color: rgba(214, 239, 220, 0.22) transparent;
  scrollbar-width: thin;
}

.route-weather-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.route-weather-body::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(214, 239, 220, 0.22);
}

.route-weather-summary {
  display: grid;
  gap: 0;
  margin: 12px 13px 0;
  padding: 13px 14px 14px;
  border: 1px solid rgba(242, 109, 59, 0.24);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(242, 109, 59, 0.14), rgba(242, 109, 59, 0.035) 64%, rgba(252, 218, 151, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 246, 221, 0.05);
}

.route-weather-summary-top,
.route-weather-summary-bottom,
.route-weather-hourly-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-weather-summary-top > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.route-weather-summary-overview {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.route-weather-summary-name {
  color: #fff8ee;
  font-size: 15px;
  font-weight: 760;
}

.route-weather-summary-condition {
  display: grid;
  grid-template-columns: auto;
  align-items: center;
  gap: 2px;
  text-align: right;
}

.route-weather-summary-condition strong {
  color: #fff8ee;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 29px;
  font-weight: 790;
  line-height: 1;
}

.route-weather-summary-icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  font-size: 28px;
}

.route-weather-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #f8e8aa;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(255, 194, 111, 0.25);
}

.route-weather-symbol--cloud,
.route-weather-symbol--fog,
.route-weather-symbol--unknown {
  color: #bdcfca;
}

.route-weather-symbol--rain,
.route-weather-symbol--drizzle {
  color: #78d5e6;
}

.route-weather-symbol--snow {
  color: #d7eff6;
}

.route-weather-symbol--storm {
  color: #e4c8ff;
}

.route-weather-hourly-head {
  margin: 18px 15px 9px;
  justify-content: flex-start;
}

.route-weather-hourly-head strong {
  color: #fff8ee;
  font-size: 13px;
  font-weight: 760;
}

.route-weather-probability {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-left: 5px;
  padding: 0 7px;
  color: #203428;
  border-radius: 999px;
  background: #d8c44e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 850;
  vertical-align: 1px;
}

.route-weather-hour-scroll {
  overflow-x: auto;
  padding: 0 13px 12px;
  scrollbar-color: rgba(214, 239, 220, 0.2) transparent;
  scrollbar-width: thin;
}

.route-weather-hour-scroll::-webkit-scrollbar {
  height: 5px;
}

.route-weather-hour-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(214, 239, 220, 0.2);
}

.route-weather-hour-grid {
  position: relative;
  min-width: 810px;
  padding: 3px 0 7px;
  border-top: 1px solid rgba(214, 239, 220, 0.13);
  border-bottom: 1px solid rgba(214, 239, 220, 0.1);
}

.route-weather-hour-row {
  display: grid;
  grid-template-columns: 58px repeat(24, minmax(30px, 1fr));
  min-height: 32px;
}

.route-weather-hour-label,
.route-weather-hour-cell {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 5px 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.route-weather-hour-cell {
  border-radius: 5px;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.route-weather-hour-cell:hover {
  background: rgba(255, 174, 132, 0.1);
}

.route-weather-hour-label {
  position: sticky;
  left: 0;
  z-index: 2;
  align-items: center;
  justify-items: start;
  padding-left: 7px;
  color: rgba(206, 230, 211, 0.64);
  background: linear-gradient(90deg, rgba(18, 38, 27, 0.99), rgba(18, 38, 27, 0.86));
}

.route-weather-hour-cell {
  color: rgba(241, 248, 238, 0.84);
}

.route-weather-hour-row:first-of-type .route-weather-hour-cell {
  color: rgba(255, 174, 132, 0.82);
  padding-bottom: 9px;
}

.route-weather-hour-row:nth-of-type(2) .route-weather-hour-cell {
  height: 42px;
  padding-top: 3px;
  padding-bottom: 7px;
  background: linear-gradient(180deg, rgba(120, 213, 230, 0.025), transparent);
}

.route-weather-hour-row:nth-of-type(3) .route-weather-hour-cell,
.route-weather-hour-row:nth-of-type(4) .route-weather-hour-cell {
  color: rgba(241, 248, 238, 0.72);
}

.route-weather-hour-row:nth-of-type(5) .route-weather-hour-cell {
  color: rgba(111, 211, 231, 0.86);
}

.route-weather-hour-row:nth-of-type(6) .route-weather-hour-cell {
  color: rgba(255, 174, 132, 0.84);
}

.route-weather-hour-row:nth-of-type(7) .route-weather-hour-cell {
  color: rgba(111, 211, 231, 0.72);
}

.route-weather-hour-icon {
  width: 22px;
  height: 22px;
  font-size: 18px;
}

.route-weather-wind-arrow {
  color: #9ec4da;
  font-size: 15px;
  line-height: 1;
}

.route-weather-now-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 0;
  border-left: 1px dashed rgba(255, 154, 97, 0.92);
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 154, 97, 0.38));
}

.route-weather-now-marker::before {
  position: absolute;
  top: -1px;
  left: -3px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: #ff9a61;
}

.route-weather-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 36px 18px;
  color: rgba(241, 248, 238, 0.84);
  text-align: center;
}

.route-weather-state strong {
  font-size: 12px;
}

.route-weather-state small {
  color: rgba(206, 230, 211, 0.56);
  font-size: 8px;
}

.route-weather-state-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff9a61;
  box-shadow: 0 0 0 6px rgba(255, 154, 97, 0.12);
  animation: route-weather-pulse 1.2s ease-in-out infinite;
}

.route-weather-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 14px;
  color: rgba(206, 230, 211, 0.55);
  border-top: 1px solid rgba(214, 239, 220, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 7px;
}

.route-weather-footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #83d0a6;
  box-shadow: 0 0 0 3px rgba(131, 208, 166, 0.1);
}

@keyframes route-weather-popover-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes route-weather-pulse {
  0%, 100% { opacity: 0.52; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1); }
}

.route-map-panel.map-focus-pulse {
  animation: route-map-focus 700ms var(--ease-out);
}

.route-status-active .route-privacy-dot {
  background: var(--orange-bright);
  box-shadow: 0 0 0 4px rgba(242, 109, 59, 0.1);
}

@keyframes route-view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes route-map-focus {
  0%,
  100% {
    box-shadow: var(--shadow-deep);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(242, 109, 59, 0.22), var(--shadow-deep);
  }
}

@media (hover: hover) and (pointer: fine) {
  .view-switcher-button:not(.is-active):hover {
    color: var(--ink);
    background: rgba(165, 213, 191, 0.07);
  }

  .route-fit-button:not(:disabled):hover,
  .route-icon-button:not(:disabled):hover {
    color: var(--orange-deep);
    border-color: rgba(242, 109, 59, 0.28);
    background: rgba(242, 109, 59, 0.08);
    transform: translateY(-1px);
  }

  .map-mode-button:not(.is-active):hover {
    color: #fff8ee;
    background: rgba(246, 244, 214, 0.1);
  }

}

@media (max-width: 900px) {
  .route-workspace {
    grid-template-columns: minmax(265px, 300px) minmax(0, 1fr);
  }

  .route-privacy {
    display: none;
  }

  .map-legend {
    display: none;
  }
}

@media (max-width: 680px) {
  .view-switcher {
    display: inline-flex;
  }

  .view-switcher-button {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 10px;
  }

  .status-pill {
    display: none;
  }

  .route-topbar {
    align-items: center;
    height: 66px;
  }

  .route-topbar-actions {
    gap: 8px;
  }

  .route-upload-panel {
    margin-top: 15px;
    padding: 13px 0 0;
  }

  .route-upload-copy p {
    display: none;
  }

  .route-upload-panel .route-dropzone {
    min-height: 58px;
    margin: 10px 0 11px;
  }

  .route-playback {
    margin-top: 22px;
    padding: 12px 10px 10px;
  }

  .route-camp-plan-tools {
    align-items: flex-end;
    gap: 6px;
  }

  .route-start-date-trigger {
    width: 102px;
  }

  .route-camp-button {
    margin-top: 9px;
    padding: 9px 10px;
  }

  .route-camp-delete-button {
    margin-top: 6px;
  }

  .route-export-trigger {
    margin-top: 9px;
    padding: 9px 10px;
  }

  .route-export-panel {
    padding: 10px;
  }

  .route-export-item {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .route-export-toggle {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .route-fit-button {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .route-fit-button span {
    display: none;
  }

  .route-workspace {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 9px;
  }

  .route-inspector {
    flex: 0 0 42%;
    min-height: 280px;
    max-height: 48%;
    border-radius: 17px;
  }

  .route-inspector-head {
    padding: 12px 14px 10px;
  }

  .route-intro {
    display: none;
  }

  .route-data-empty:not([hidden]) {
    display: block;
  }

  .route-dropzone {
    min-height: 58px;
    margin: 10px 12px 11px;
  }

  .route-summary {
    padding: 0 14px 12px;
  }

  .route-stat {
    min-height: 58px;
    padding: 8px 7px 7px;
  }

  .route-stat strong,
  .route-stat--wide strong {
    margin-top: 5px;
    font-size: 13px;
  }

  .route-live-readout {
    margin-top: 11px;
    padding: 10px;
  }

  .route-camp-plan {
    margin-top: 11px;
    padding: 10px;
  }

  .route-live-grid {
    gap: 8px 7px;
  }

  .route-live-coordinate-cell {
    grid-column: span 3;
  }

  .route-live-grid strong {
    font-size: 10px;
  }

  .route-elevation-block {
    margin-top: 12px;
    padding-bottom: 11px;
  }

  .route-elevation-chart {
    height: 68px;
  }

  .route-inspector-footer {
    display: none;
  }

  .route-map-panel {
    flex: 1 1 58%;
    min-height: 300px;
    border-radius: 17px;
  }

  .map-place-label--one {
    left: 48%;
  }

  .map-place-label--two {
    left: 26%;
  }

  .map-context-badge {
    max-width: min(72%, 310px);
  }

  .map-gesture-hint {
    display: none;
  }

  .map-attribution {
    display: none !important;
  }

  .map-scale {
    bottom: 16px;
    left: 14px;
  }

  .map-mode-control {
    right: 12px;
    bottom: 12px;
  }

  .route-weather-popover {
    top: 58px;
    right: 10px;
    width: calc(100% - 20px);
    max-height: calc(100% - 80px);
    border-radius: 14px;
  }

  .route-weather-head {
    padding: 11px 12px 10px;
  }

  .route-weather-summary {
    margin: 10px 10px 0;
    padding: 9px;
  }

  .route-weather-hourly-head {
    margin-inline: 10px;
  }

  .route-weather-hour-scroll {
    padding-inline: 10px;
  }

}

/* Compact layout overrides must remain last so route controls stay accessible. */
@media (max-width: 760px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    padding: 8px;
    overflow: visible;
  }

  .sidebar {
    display: block;
    width: 100%;
    min-height: 0;
    max-height: 35svh;
    padding: 10px 12px;
    overflow-y: auto;
    border-radius: 18px;
  }

  .sidebar .brand,
  .sidebar-bottom {
    display: none;
  }

  .sidebar-top {
    min-height: 0;
    overflow: visible;
  }

  .route-upload-panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .workspace {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 64svh;
  }

  .route-view {
    min-height: 64svh;
  }
}

.gear-assistant[aria-hidden="true"] {
  display: none !important;
}

/* Compact route weather instrument. */
.route-weather-popover {
  top: 64px;
  right: 14px;
  width: min(286px, calc(100% - 28px));
  max-height: min(440px, calc(100% - 88px));
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(4, 13, 8, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.route-weather-head {
  gap: 9px;
  padding: 10px 10px 9px 12px;
}

.route-weather-head-copy {
  gap: 2px;
}

/* -------------------------------------------------------------------------- */
/* Authentication gate                                                        */
/* -------------------------------------------------------------------------- */

.app-shell[hidden] {
  display: none !important;
}

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px 18px;
  overflow: auto;
  isolation: isolate;
}

.auth-shell[hidden] {
  display: none;
}

.auth-background-media {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #07100d;
}

.auth-background-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 44%, transparent 12%, rgba(4, 12, 9, 0.26) 68%, rgba(3, 9, 7, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 13, 10, 0.12), rgba(5, 13, 10, 0.48));
}

.auth-background-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 1;
  filter: none;
}

.auth-card {
  position: relative;
  width: min(100%, 456px);
  min-height: 520px;
  padding: 30px 34px 25px;
  overflow: hidden;
  border: 1px solid rgba(214, 235, 222, 0.14);
  border-radius: 27px;
  background:
    linear-gradient(150deg, rgba(26, 45, 37, 0.94), rgba(11, 20, 17, 0.97)),
    var(--surface);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: auth-card-in 440ms var(--ease-out) both;
}

.auth-card-glow {
  position: absolute;
  top: -160px;
  right: -110px;
  width: 320px;
  height: 320px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 109, 59, 0.2), transparent 68%);
}

.auth-brand-lockup,
.auth-view,
.auth-footnote,
.auth-network-error {
  position: relative;
  z-index: 1;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 46px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.auth-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.auth-brand .brand-copy strong {
  font-size: 14px;
}

.auth-brand-kicker,
.auth-kicker,
.auth-footnote,
.auth-field-hint,
.auth-optional {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-kicker {
  max-width: 140px;
  color: rgba(165, 213, 191, 0.7);
  font-size: 8px;
  line-height: 1.55;
  text-align: right;
}

.auth-view--checking {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.auth-view--checking[hidden] {
  display: none;
}

.auth-view[hidden],
.auth-panel[hidden] {
  display: none;
}

.auth-loader {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border: 2px solid rgba(165, 213, 191, 0.2);
  border-top-color: var(--orange-bright);
  border-radius: 50%;
  animation: auth-spin 780ms linear infinite;
}

.auth-kicker {
  margin: 0;
  color: var(--orange-bright);
  font-size: 8px;
  line-height: 1.4;
}

.auth-panel h1,
.auth-view--checking h1 {
  max-width: 370px;
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 710;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.auth-view--checking h1 {
  margin-top: 2px;
  font-size: 22px;
}

.auth-copy {
  max-width: 360px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label,
.auth-field-label-row label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 690;
}

.auth-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.auth-field input {
  width: 100%;
  min-height: 45px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(214, 235, 222, 0.14);
  border-radius: 11px;
  outline: none;
  background: rgba(4, 12, 9, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 13px;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, box-shadow 180ms ease-out;
}

.auth-field input::placeholder {
  color: rgba(175, 190, 181, 0.45);
}

.auth-field input:hover {
  border-color: rgba(214, 235, 222, 0.24);
}

.auth-field input:focus {
  border-color: rgba(255, 138, 86, 0.72);
  background: rgba(4, 12, 9, 0.6);
  box-shadow: 0 0 0 3px rgba(242, 109, 59, 0.11);
}

.auth-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 149, 132, 0.52);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 62px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 30px;
  padding: 0 7px;
  cursor: pointer;
  color: var(--ink-faint);
  border-radius: 7px;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  transform: translateY(-50%);
  transition: color 160ms ease-out, background-color 160ms ease-out;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--orange-bright);
  background: var(--orange-wash);
}

.auth-field-hint {
  margin-top: -1px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
}

.auth-optional {
  margin-left: 3px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.auth-inline-button,
.auth-link-button {
  display: inline;
  padding: 0;
  cursor: pointer;
  color: var(--orange-bright);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.auth-inline-button:hover,
.auth-link-button:hover {
  color: #ffb18c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-form-message {
  min-height: 17px;
  margin: -3px 0 -2px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.6;
}

.auth-form-message:empty {
  min-height: 0;
  margin: -8px 0 -7px;
}

.auth-form-message.is-success {
  color: var(--mint);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 47px;
  margin-top: 2px;
  padding: 0 16px;
  cursor: pointer;
  color: #fff8f2;
  border: 1px solid rgba(255, 186, 148, 0.27);
  border-radius: 12px;
  background: var(--orange);
  box-shadow: 0 12px 26px rgba(242, 109, 59, 0.2);
  font-size: 12px;
  font-weight: 750;
  transition: transform 160ms var(--ease-out), background-color 180ms ease-out, box-shadow 180ms ease-out, opacity 180ms ease-out;
}

.auth-submit:hover:not(:disabled) {
  background: var(--orange-bright);
  box-shadow: 0 14px 28px rgba(242, 109, 59, 0.3);
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-submit--quiet {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(165, 213, 191, 0.08);
  box-shadow: none;
}

.auth-submit--quiet:hover:not(:disabled) {
  color: #fff8f2;
  background: rgba(165, 213, 191, 0.15);
  box-shadow: none;
}

.auth-submit-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(255, 248, 242, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
}

.auth-submit.is-busy .auth-submit-spinner {
  display: block;
  animation: auth-spin 680ms linear infinite;
}

.auth-submit.is-busy .auth-submit-label {
  opacity: 0.8;
}

.auth-switch {
  margin: 21px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.auth-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 13px;
  color: var(--ink-soft);
  border: 1px solid rgba(165, 213, 191, 0.13);
  border-radius: 11px;
  background: rgba(165, 213, 191, 0.055);
  font-size: 10px;
  line-height: 1.6;
}

.auth-callout-icon {
  color: var(--orange-bright);
  font-size: 12px;
  line-height: 1.35;
}

.auth-callout.is-error {
  color: var(--danger);
  border-color: rgba(255, 149, 132, 0.18);
  background: rgba(255, 149, 132, 0.07);
}

.auth-callout.is-success {
  color: var(--mint);
  border-color: rgba(165, 213, 191, 0.22);
}

.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 31px 0 0;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: none;
}

.auth-footnote-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(165, 213, 191, 0.08);
}

.auth-network-error {
  margin: 17px 0 0;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

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

.auth-network-error .auth-link-button {
  margin-left: 4px;
}

.profile-account-wrap {
  position: relative;
  min-width: 0;
}

.profile#auth-profile-toggle {
  width: 100%;
  padding: 0;
  cursor: pointer;
  color: inherit;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}

.profile#auth-profile-toggle:hover .profile-avatar,
.profile#auth-profile-toggle:focus-visible .profile-avatar {
  border-color: rgba(242, 109, 59, 0.42);
  background: var(--orange-wash);
}

.profile-chevron {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 13px;
  transition: transform 180ms ease-out;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.profile-role {
  flex: none;
  padding: 2px 6px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-role.is-admin {
  color: #ffc098;
  border-color: rgba(242, 109, 59, 0.34);
  background: rgba(242, 109, 59, 0.1);
}

.profile[aria-expanded="true"] .profile-chevron {
  transform: rotate(180deg);
}

.auth-account-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 250;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(12, 22, 18, 0.98);
  box-shadow: var(--shadow-deep);
  transform: translate(-50%, -50%);
  animation: account-dialog-in 180ms var(--ease-out) both;
}

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

body.account-panel-open::before {
  position: fixed;
  inset: 0;
  z-index: 240;
  content: "";
  background: rgba(3, 9, 7, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@keyframes account-dialog-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(0.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

.auth-account-head > div {
  display: grid;
  gap: 4px;
}

.auth-account-head strong {
  color: var(--ink);
  font-size: 13px;
}

.serpapi-usage {
  margin: 2px 0 17px;
  padding: 14px;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(165, 213, 191, 0.035), transparent 72%);
}

.serpapi-usage[hidden] {
  display: none;
}

.serpapi-usage-head,
.serpapi-usage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.serpapi-usage-head > div {
  display: grid;
  gap: 3px;
}

.serpapi-usage-kicker {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.serpapi-usage-head strong {
  color: var(--ink-soft);
  font-size: 10px;
}

.serpapi-usage-state {
  color: var(--mint);
  font-size: 8px;
  font-weight: 700;
}

.serpapi-usage-reading {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 12px;
}

.serpapi-usage-reading strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.serpapi-usage-reading span,
.serpapi-usage-reading small,
.serpapi-usage-foot {
  color: var(--ink-faint);
  font-size: 8px;
}

.serpapi-usage-reading small {
  margin-left: auto;
}

.serpapi-usage-track {
  height: 3px;
  margin: 11px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(165, 213, 191, 0.1);
}

.serpapi-usage-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  transition: width 320ms var(--ease-out), background-color 160ms ease-out;
}

.serpapi-usage[data-tone="warning"] .serpapi-usage-state,
.serpapi-usage[data-tone="warning"] .serpapi-usage-message,
.serpapi-usage[data-tone="empty"] .serpapi-usage-state,
.serpapi-usage[data-tone="empty"] .serpapi-usage-message,
.serpapi-usage[data-tone="error"] .serpapi-usage-state,
.serpapi-usage[data-tone="error"] .serpapi-usage-message {
  color: var(--danger);
}

.serpapi-usage[data-tone="warning"] .serpapi-usage-track span,
.serpapi-usage[data-tone="empty"] .serpapi-usage-track span,
.serpapi-usage[data-tone="error"] .serpapi-usage-track span {
  background: var(--orange);
}

.serpapi-usage-message {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.5;
}

.serpapi-usage-message:empty {
  display: none;
}

.user-quota-manager {
  margin: -5px 0 17px;
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--line);
}

.user-quota-manager[hidden] {
  display: none;
}

.user-quota-manager-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.user-quota-manager-head > div {
  display: grid;
  gap: 3px;
}

.user-quota-manager-head span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.user-quota-manager-head strong {
  color: var(--ink-soft);
  font-size: 10px;
}

.user-quota-manager-head small {
  color: var(--ink-faint);
  font-size: 7px;
}

.user-quota-list {
  display: grid;
  max-height: 190px;
  overflow-y: auto;
  scrollbar-color: rgba(165, 213, 191, 0.2) transparent;
}

.user-quota-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 42px;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  border-top: 1px solid rgba(165, 213, 191, 0.09);
}

.user-quota-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-quota-identity strong,
.user-quota-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-quota-identity strong {
  color: var(--ink-soft);
  font-size: 9px;
}

.user-quota-identity small {
  color: var(--ink-faint);
  font-size: 7px;
}

.user-quota-meter {
  display: grid;
  gap: 5px;
}

.user-quota-meter span {
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.user-quota-meter i {
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(165, 213, 191, 0.1);
}

.user-quota-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.user-quota-reset {
  min-height: 25px;
  cursor: pointer;
  color: var(--orange-bright);
  border: 1px solid rgba(242, 109, 59, 0.25);
  border-radius: 7px;
  background: rgba(242, 109, 59, 0.06);
  font-size: 8px;
}

.user-quota-reset:hover:not(:disabled) {
  background: rgba(242, 109, 59, 0.13);
}

.user-quota-reset:disabled {
  cursor: default;
  color: var(--ink-faint);
  border-color: var(--line);
  opacity: 0.55;
}

.user-quota-message,
.user-quota-empty {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 8px;
}

.user-quota-message.is-success,
.user-quota-empty {
  color: var(--ink-faint);
}

.user-quota-message:empty {
  display: none;
}

.auth-account-close {
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: var(--ink-faint);
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.auth-account-close:hover {
  color: var(--ink);
  background: rgba(165, 213, 191, 0.09);
}

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

.auth-account-form + .auth-account-form {
  margin-top: 16px;
}

.auth-account-form .auth-field {
  gap: 5px;
}

.auth-account-form .auth-field label {
  font-size: 10px;
}

.auth-account-form .auth-field input {
  min-height: 38px;
  padding-inline: 10px;
  font-size: 11px;
}

.auth-account-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 9px;
}

.auth-account-divider::before,
.auth-account-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-account-submit,
.auth-logout-button {
  min-height: 35px;
  padding: 0 11px;
  cursor: pointer;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(165, 213, 191, 0.06);
  font-size: 10px;
  font-weight: 700;
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.auth-account-submit:hover,
.auth-logout-button:hover {
  color: var(--ink);
  border-color: rgba(165, 213, 191, 0.27);
  background: rgba(165, 213, 191, 0.12);
}

.auth-logout-button {
  width: 100%;
  margin-top: 16px;
  color: var(--danger);
  border-color: rgba(255, 149, 132, 0.18);
  background: rgba(255, 149, 132, 0.05);
}

.auth-logout-button:hover {
  color: #ffb2a3;
  border-color: rgba(255, 149, 132, 0.32);
  background: rgba(255, 149, 132, 0.1);
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .auth-shell {
    align-items: start;
    padding: 14px 10px 24px;
  }

  .auth-card {
    min-height: 0;
    padding: 23px 20px 21px;
    border-radius: 21px;
  }

  .auth-brand-lockup {
    margin-bottom: 34px;
  }

  .auth-panel h1 {
    font-size: 25px;
  }

  .auth-account-panel {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-background-media {
    background:
      linear-gradient(115deg, rgba(4, 13, 10, 0.56), rgba(8, 18, 14, 0.28)),
      url("/assets/auth-trail-poster.webp?v=20260827-film-v2") center / cover no-repeat;
  }

  .auth-background-video {
    display: none;
  }
}

.route-weather-kicker {
  font-size: 6px;
  letter-spacing: 0.14em;
}

.route-weather-head h3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  letter-spacing: -0.025em;
}

.route-weather-title-date {
  color: #ffb184;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.route-weather-head p {
  margin-top: 2px;
  font-size: 7px;
}

.route-weather-anchor {
  gap: 4px;
  margin-top: 3px;
  font-size: 6px;
}

.route-weather-close {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 16px;
}

.route-weather-summary {
  margin: 8px 9px 0;
  padding: 8px 9px;
  border-radius: 10px;
}

.route-weather-summary-overview,
.route-weather-summary-top > div:first-child {
  gap: 6px;
}

.route-weather-summary-name {
  font-size: 11px;
}

.route-weather-summary-condition strong {
  font-size: 21px;
}

.route-weather-summary-icon {
  width: 23px;
  height: 23px;
  font-size: 21px;
}

.route-weather-hourly-head {
  margin: 10px 10px 5px;
}

.route-weather-hourly-head strong {
  font-size: 12px;
}

.route-weather-probability {
  min-height: 16px;
  margin-left: 3px;
  padding: 0 5px;
  font-size: 7px;
}

.route-weather-hour-scroll {
  padding: 0 8px 7px;
}

.route-weather-hour-grid {
  min-width: 598px;
  padding-block: 2px 4px;
}

.route-weather-hour-row {
  grid-template-columns: 42px repeat(24, minmax(23px, 1fr));
  min-height: 23px;
}

.route-weather-hour-label,
.route-weather-hour-cell {
  padding: 3px 1px;
  font-size: 6px;
}

.route-weather-hour-label {
  padding-left: 5px;
}

.route-weather-hour-row:first-of-type .route-weather-hour-cell {
  padding-bottom: 5px;
}

.route-weather-hour-row:nth-of-type(2) .route-weather-hour-cell {
  height: 30px;
  padding-block: 2px 4px;
}

.route-weather-hour-icon {
  width: 16px;
  height: 16px;
  font-size: 13px;
}

.route-weather-wind-arrow {
  font-size: 11px;
}

.route-weather-footer {
  min-height: 23px;
  padding-inline: 10px;
  font-size: 6px;
}

.route-weather-state {
  gap: 5px;
  padding: 22px 12px;
}

.route-weather-state strong {
  font-size: 10px;
}

.route-weather-state small {
  font-size: 7px;
}

@media (max-width: 680px) {
  .route-weather-popover {
    top: 54px;
    right: 8px;
    width: min(286px, calc(100% - 16px));
    max-height: calc(100% - 68px);
  }
}

/* 动态轨迹回放的播放/暂停按钮（小图标，滑杆左侧） */
.route-playback-range-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 8px;
}
.route-playback-range-row .route-playback-range {
  flex: 1;
  min-width: 0;
  width: auto;
}
.route-playback-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--mint);
  border-radius: 5px;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}
.route-playback-toggle:hover { background: rgba(74, 222, 128, 0.12); }
.route-playback-toggle.is-playing { background: rgba(74, 222, 128, 0.18); }
.route-playback-toggle:active { transform: scale(0.97); }
.route-playback-toggle .pb-icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
  display: none;
}
.route-playback-toggle .pb-icon--play { display: block; }
.route-playback-toggle.is-playing .pb-icon--play { display: none; }
.route-playback-toggle.is-playing .pb-icon--pause { display: block; }

.route-playback-rate-step .pb-icon--rate {
  display: block;
}
.route-playback-rate-step:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
.route-playback-rate-step:hover:not(:disabled) { background: rgba(74, 222, 128, 0.12); }
