:root {
  color-scheme: light;
  --ink: #172b3a;
  --muted: #667c87;
  --line: #dce7e8;
  --paper: #ffffff;
  --wash: #f2f7f6;
  --sea: #123d4b;
  --sea-light: #2e7180;
  --teal: #0a8a84;
  --teal-deep: #06706b;
  --gold: #e7ae54;
  --rose: #d56c66;
  --shadow: 0 20px 54px rgba(26, 60, 70, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(221, 240, 235, .72), transparent 30rem),
    linear-gradient(180deg, #f7faf9 0%, #edf4f3 100%);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.site-frame { min-height: 100vh; }
.topbar {
  height: 72px;
  padding: 0 clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(180, 205, 204, .45);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; letter-spacing: -.035em; font-size: 17px; }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #d9eeea; position: relative; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; border: 1.4px solid #12827d; border-radius: 50%; }
.brand-mark::before { width: 15px; height: 20px; }
.brand-mark::after { width: 21px; height: 9px; }
.brand-mark span { width: 1px; height: 20px; border-width: 0 0 0 1.4px; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.collab-note { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #35aa82; box-shadow: 0 0 0 3px rgba(53, 170, 130, .12); }
.pseudonym-chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 5px; background: #fff; font-size: 12px; text-decoration: none; font-weight: 650; color: #35515c; transition: border-color .15s, transform .15s; }
.pseudonym-chip:hover { border-color: #8fc9bf; transform: translateY(-1px); }
.avatar-dot { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #267e7a; font-size: 11px; font-weight: 750; }
.quiet-button { border: 0; background: transparent; color: #738790; padding: 8px 0 8px 5px; font-size: 12px; }
.quiet-button:hover { color: var(--ink); }
.logout-form { margin: 0; }
.main-content { width: min(1480px, 100%); margin: 0 auto; padding: 36px clamp(16px, 4vw, 56px) 42px; }
.footer-note { text-align: center; padding: 0 16px 20px; color: #91a4a8; font-size: 11px; letter-spacing: .02em; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.eyebrow, .section-kicker { color: var(--teal-deep); font-size: 10px; font-weight: 780; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 4vw, 36px); line-height: 1.08; letter-spacing: -.055em; margin-bottom: 10px; font-weight: 760; }
h2 { font-size: 18px; letter-spacing: -.035em; margin: 0; }
h3 { font-size: 14px; letter-spacing: -.02em; }
.subtle-copy { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; max-width: 620px; }
.intro-actions { display: flex; gap: 9px; flex-shrink: 0; }
.primary-button, .secondary-button, .text-button, .danger-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 10px 14px; font-weight: 690; font-size: 12px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.primary-button { color: #fff; border: 1px solid #087e79; background: linear-gradient(135deg, #148c85, #087b77); box-shadow: 0 7px 14px rgba(9, 126, 119, .15); }
.primary-button:hover { background: linear-gradient(135deg, #0c7e79, #056a68); box-shadow: 0 9px 18px rgba(9, 126, 119, .2); transform: translateY(-1px); }
.secondary-button { color: #49616c; border: 1px solid #d4e0e0; background: rgba(255,255,255,.72); }
.secondary-button:hover { border-color: #9cbab8; background: #fff; }
.danger-button { color: #a44f4b; border: 1px solid #efd4d1; background: #fff8f7; }
.danger-button:hover { background: #fff0ee; border-color: #e9b8b4; }
.text-button { color: var(--teal-deep); border: 0; padding: 3px 0; background: transparent; font-size: 12px; }
.text-button:hover { color: #064d4a; }
.button-plus { font-size: 17px; line-height: .7; font-weight: 400; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .82fr); gap: 20px; align-items: stretch; }
.globe-card, .plan-panel { background: rgba(255,255,255,.92); border: 1px solid #dce9e6; border-radius: 19px; box-shadow: var(--shadow); min-width: 0; }
.globe-card { overflow: hidden; }
.globe-card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 19px 23px 4px; }
.section-kicker { display: block; font-size: 9px; margin: 0 0 5px; color: #728c90; }
.globe-title { font-size: 16px; letter-spacing: -.035em; font-weight: 720; }
.globe-hint { color: #82969a; font-size: 11px; white-space: nowrap; }
.globe-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sync-indicator { color: #849a9d; font-size: 9px; display: inline-flex; align-items: center; gap: 6px; }
.sync-indicator i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #55aa83; box-shadow: 0 0 0 3px rgba(85,170,131,.11); }
.sync-indicator.sync-error { color: #b44d4b; }
.sync-indicator.sync-error i { background: #d56c66; box-shadow: 0 0 0 3px rgba(213,108,102,.12); }
.hint-drag { color: #38877f; font-size: 14px; vertical-align: -1px; margin-right: 4px; }
.hint-divider { color: #b6c5c5; padding: 0 5px; }
.globe-stage { min-height: 440px; position: relative; display: grid; place-items: center; overflow: hidden; background:
  radial-gradient(ellipse at 50% 55%, rgba(218, 239, 234, .70), rgba(241, 248, 247, .20) 43%, transparent 69%);
}
#globe-svg { display: block; width: min(100%, 850px); height: auto; max-height: 500px; touch-action: none; cursor: grab; user-select: none; }
#globe-svg.is-dragging { cursor: grabbing; }
.globe-shadow { fill: rgba(32, 73, 81, .12); filter: blur(8px); }
.globe-outline { pointer-events: none; }
.graticule-line { fill: none; stroke: rgba(196, 230, 225, .24); stroke-width: 1; vector-effect: non-scaling-stroke; }
.land-shape { fill: #c5d9be; fill-opacity: .91; stroke: #d7e7d1; stroke-width: .8; vector-effect: non-scaling-stroke; }
.route-line { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: .92; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(0,0,0,.26)); }
.route-line.is-selected { stroke-width: 5; opacity: 1; }
.route-direction { fill: #fff; stroke: rgba(18, 47, 56, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.point-marker { cursor: pointer; outline: none; }
.point-marker circle.point-halo { fill: #f9cb78; opacity: .27; }
.point-marker circle.point-core { fill: #fff; stroke: #087e79; stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 4px rgba(0,0,0,.23)); }
.point-marker:hover circle.point-core, .point-marker:focus circle.point-core { stroke-width: 4; fill: #edfff7; }
.point-marker.is-selected circle.point-core { stroke: #df9a37; fill: #fff6df; }
.point-label { fill: #183944; font-size: 13px; font-weight: 700; paint-order: stroke; stroke: rgba(250,255,254,.96); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.globe-empty-hint { pointer-events: none; position: absolute; left: 50%; top: 55%; transform: translate(-50%, 144px); display: flex; align-items: center; gap: 8px; color: #7d9294; font-size: 11px; transition: opacity .2s; white-space: nowrap; }
.globe-empty-hint.is-hidden { opacity: 0; }
.empty-pin { display: grid; place-items: center; height: 20px; width: 20px; border-radius: 50%; background: #fff; color: var(--teal-deep); box-shadow: 0 3px 10px rgba(25, 88, 91, .13); font-size: 16px; }
.map-status { position: absolute; bottom: 15px; left: 19px; color: #80949a; font-size: 10px; }
.map-status.error { color: #b44d4b; }
.globe-card-bottom { border-top: 1px solid #edf2f1; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.route-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.legend-item { color: #526873; font-size: 10px; display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 13px; height: 3px; display: inline-block; border-radius: 9px; }
.route-legend-note { color: #92a1a5; font-size: 10px; text-align: right; }
.plan-panel { padding: 20px 18px 16px; display: flex; flex-direction: column; min-height: 590px; max-height: 740px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px 14px; border-bottom: 1px solid #edf2f1; }
.count-pill { color: #627b82; background: #f0f6f5; border: 1px solid #e0ece9; border-radius: 999px; padding: 6px 10px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.panel-summary { margin: 13px 0 12px; color: #82969a; font-size: 10px; line-height: 1.45; display: flex; gap: 7px; align-items: flex-start; }
.summary-icon { color: #d39c41; }
.point-list { margin: 0; padding: 0; list-style: none; overflow-y: auto; min-height: 0; max-height: 390px; flex: 1; display: flex; flex-direction: column; gap: 6px; scrollbar-color: #c5d8d4 transparent; scrollbar-width: thin; }
.point-list:empty { display: none; }
.plan-panel.has-selected .point-list { flex: 0 0 auto; max-height: 190px; }
.point-list-item { margin: 0; }
.point-list-button { width: 100%; border: 1px solid transparent; border-radius: 11px; background: transparent; text-align: left; padding: 10px 10px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; color: inherit; transition: background .13s, border-color .13s; }
.point-list-button:hover { background: #f5f9f8; }
.point-list-button.is-selected { background: #f0f8f6; border-color: #c9e4dd; }
.point-index { display: grid; place-items: center; height: 24px; width: 24px; border-radius: 50%; background: #e5f1ee; color: #23756f; font-size: 10px; font-weight: 750; }
.point-list-title { display: block; font-size: 12px; font-weight: 700; color: #284550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.point-list-dates { display: block; font-size: 10px; margin-top: 3px; color: #899ca0; }
.point-list-author { display: block; font-size: 9px; margin-top: 3px; color: #629188; }
.point-list-arrow { color: #a0b2b2; font-size: 14px; }
.selected-detail { margin: 4px 0 12px; border: 1px solid #d9e9e5; border-radius: 13px; padding: 13px; background: linear-gradient(135deg, #f6fbf9, #eff7f5); }
.plan-panel.has-selected .selected-detail { flex: 1 1 auto; min-height: 220px; overflow-y: auto; scrollbar-color: #c5d8d4 transparent; scrollbar-width: thin; }
.selected-detail.hidden { display: none; }
.selected-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.selected-name { font-size: 15px; font-weight: 760; margin: 0; letter-spacing: -.025em; }
.selected-dates { color: #70878c; font-size: 10px; margin: 4px 0 10px; }
.selected-actions { display: flex; gap: 5px; flex-shrink: 0; }
.mini-button { border: 1px solid #d2e1df; border-radius: 7px; background: white; color: #4d6870; font-size: 10px; padding: 5px 7px; }
.mini-button:hover { border-color: #8eb8b3; }
.mini-button.delete { color: #a75a57; border-color: #ecd6d3; }
.coord-line { color: #809499; font-size: 9px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.detail-label { color: #8ba0a3; text-transform: uppercase; letter-spacing: .1em; font-size: 8px; font-weight: 750; margin: 9px 0 5px; }
.activity-pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.activity-pills li { background: #fff; border: 1px solid #e1ece9; color: #536d73; border-radius: 999px; padding: 4px 8px; font-size: 9px; }
.detail-note { white-space: pre-wrap; color: #667c82; font-size: 10px; line-height: 1.45; margin: 0; }
.attribution { color: #70918c; margin-top: 5px; }
.photos-section { border-top: 1px solid #dcebe7; margin-top: 12px; padding-top: 10px; }
.photos-heading { display: flex; justify-content: space-between; align-items: center; }
.photos-heading .detail-label { margin: 0 0 7px; }
.google-maps-label { display: inline-flex; align-items: center; color: #687f83; background: #eef4f2; border-radius: 999px; padding: 3px 7px; font-size: 8px; font-weight: 720; margin-bottom: 5px; }
.photo-search-controls { display: flex; gap: 6px; }
.photo-search-controls input { flex: 1; min-width: 0; border: 1px solid #dbe8e5; border-radius: 7px; background: #fff; color: #435e65; padding: 7px 8px; font-size: 9px; outline: none; }
.photo-search-controls input:focus { border-color: #72b2a8; box-shadow: 0 0 0 2px rgba(14,137,129,.1); }
.photo-search-button { flex: 0 0 auto; border: 1px solid #cfe3de; background: #f2faf7; color: #147a73; border-radius: 7px; padding: 6px 8px; font-size: 9px; font-weight: 700; }
.photo-search-button:hover { background: #e5f5ef; border-color: #9bcac0; }
.photo-search-button:disabled { opacity: .6; cursor: wait; }
.photo-message { color: #7d9294; font-size: 9px; line-height: 1.4; margin: 7px 0 0; }
.photo-unavailable { color: #8c7040; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.photo-card { margin: 0; min-width: 0; overflow: hidden; border-radius: 7px; border: 1px solid #dce8e6; background: #fff; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e5efed; }
.photo-attribution { padding: 4px 5px 5px; color: #71858a; font-size: 7px; line-height: 1.3; overflow-wrap: anywhere; }
.photo-attribution a { color: #3e817b; }
.tasks-section { border-top: 1px solid #dcebe7; margin-top: 13px; padding-top: 10px; }
.tasks-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tasks-section-heading .detail-label { margin: 0; }
.add-task-button { border: 0; background: transparent; color: #087e79; font-size: 10px; font-weight: 720; padding: 4px 0; }
.add-task-button:hover { color: #075a57; text-decoration: underline; }
.task-groups { display: flex; flex-direction: column; gap: 8px; }
.task-group { background: rgba(255,255,255,.57); border: 1px solid #e4eeeb; border-radius: 9px; overflow: hidden; }
.task-group-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 8px; border-bottom: 1px solid #edf3f1; }
.task-group-title { display: flex; align-items: center; gap: 6px; color: #526b70; font-size: 9px; font-weight: 760; }
.task-status-count { display: grid; place-items: center; min-width: 17px; height: 17px; border-radius: 99px; background: #eef4f2; color: #78908f; font-size: 8px; }
.task-group-body { display: flex; flex-direction: column; }
.task-row { padding: 8px; border-bottom: 1px solid #eef3f1; }
.task-row:last-child { border-bottom: 0; }
.task-row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.task-title { color: #344f58; font-size: 10px; line-height: 1.35; font-weight: 700; margin: 0; }
.task-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.task-row-meta { color: #83989a; font-size: 8px; line-height: 1.4; margin-top: 4px; }
.task-row-details { color: #6c8388; font-size: 9px; line-height: 1.4; white-space: pre-wrap; margin: 5px 0 0; }
.task-booking-link { display: inline-flex; color: #14857f; font-size: 9px; margin-top: 5px; text-decoration: none; }
.task-booking-link:hover { text-decoration: underline; }
.task-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #97a9aa; display: inline-block; }
.task-status-dot.booked { background: #168c6a; }
.task-status-dot.to-do { background: #d99d39; }
.task-status-dot.in-progress { background: #287cc0; }
.task-status-dot.done { background: #718b78; }
.task-status-dot.cancelled { background: #bc6b66; }
.next-route-chip { display: flex; align-items: center; gap: 7px; margin: 7px 0 2px; font-size: 10px; color: #546c73; }
.route-color-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.empty-list { margin: auto 0; padding: 27px 15px 34px; text-align: center; color: #82979a; }
.empty-list.hidden { display: none; }
.empty-list-icon { color: #72aaa3; font-size: 29px; margin-bottom: 8px; }
.empty-list h3 { color: #45636b; font-size: 13px; margin: 0 0 6px; }
.empty-list p { font-size: 10px; line-height: 1.5; margin: 0 auto 12px; max-width: 205px; }
.point-dialog { width: min(620px, calc(100vw - 24px)); max-width: 620px; border: 1px solid #d7e5e1; border-radius: 18px; padding: 0; color: var(--ink); box-shadow: 0 28px 88px rgba(12,43,53,.28); }
.point-dialog::backdrop { background: rgba(12, 35, 44, .43); backdrop-filter: blur(3px); }
.point-form { padding: 22px 24px 20px; max-height: min(88vh, 850px); overflow: auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.dialog-heading .eyebrow { margin-bottom: 5px; }
.dialog-heading h2 { font-size: 21px; letter-spacing: -.045em; }
.icon-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; color: #779097; }
.icon-button:hover { color: var(--ink); background: #f4f8f7; }
.coordinate-label { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; margin-bottom: 14px; background: #eef7f4; color: #42817b; font-size: 10px; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .login-form label { font-size: 10px; font-weight: 700; color: #526a70; }
.field input, .field select, .field textarea, .login-form input {
  width: 100%; border: 1px solid #d9e4e3; border-radius: 8px; background: #fff; color: #273f49; outline: none; padding: 9px 10px; min-height: 38px; font-size: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .login-form input:focus { border-color: #56aaa1; box-shadow: 0 0 0 3px rgba(14, 137, 129, .12); }
.full-field { grid-column: 1 / -1; }
.label-hint { font-weight: 400; color: #94a6a8; margin-left: 4px; }
.next-stop-block { margin-top: 18px; padding: 13px 13px 11px; border-radius: 12px; border: 1px solid #e2ecea; background: #f8fbfa; }
.next-stop-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.next-stop-heading .section-kicker { margin-bottom: 3px; }
.next-stop-heading h3 { margin: 0; font-size: 13px; }
.next-step-number { color: #4b9c94; background: #e6f3ef; height: 27px; width: 27px; border-radius: 50%; display: grid; place-items: center; }
.field-caption { color: #8a9da0; font-size: 9px; line-height: 1.45; margin: 8px 0 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast-region { position: fixed; z-index: 20; right: 19px; bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.toast { background: #203f49; color: #fff; padding: 11px 14px; border-radius: 9px; box-shadow: 0 8px 25px rgba(10, 45, 53, .18); font-size: 11px; max-width: min(360px, calc(100vw - 38px)); animation: toast-in .2s ease-out; }
.toast.error { background: #8b3936; }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.flash-stack { width: min(900px, calc(100% - 32px)); margin: 14px auto 0; }
.flash { border-radius: 9px; padding: 10px 13px; font-size: 12px; border: 1px solid; }
.flash-success { background: #edf8f3; color: #276b54; border-color: #c9e9db; }
.flash-error { background: #fff2f0; color: #994842; border-color: #f1d0cb; }
.login-layout, .profile-layout { width: min(840px, 100%); min-height: 510px; margin: 34px auto 45px; border: 1px solid #dae7e4; border-radius: 22px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.login-art { min-height: 510px; overflow: hidden; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 53% 43%, #327f83 0 1%, #195b66 37%, #113c4a 76%); }
.login-art::before, .login-art::after { content: ""; position: absolute; border: 1px solid rgba(206,239,227,.18); border-radius: 50%; width: 460px; height: 460px; }
.login-art::after { width: 580px; height: 580px; opacity: .65; }
.login-globe { position: relative; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(219,243,234,.66); background: radial-gradient(circle at 35% 31%, rgba(119,202,186,.75), rgba(24,107,113,.23) 62%, rgba(3,51,67,.08)); box-shadow: inset -22px -8px 38px rgba(8,31,46,.31), 0 0 65px rgba(135,220,199,.12); z-index: 1; }
.login-globe::before, .login-globe::after, .login-globe span { content: ""; position: absolute; border: 1px solid rgba(211,241,228,.54); border-radius: 50%; inset: 18px 52px; }
.login-globe::after { inset: 2px 78px; }
.login-globe span:first-child { inset: 47px 2px; }
.login-globe span:last-child { inset: 88px 2px; border-top: 0; border-left: 0; border-right: 0; }
.login-orbit { width: 270px; height: 92px; border: 1px solid rgba(242,204,134,.8); border-radius: 50%; position: absolute; transform: rotate(-24deg); z-index: 2; }
.orbit-two { width: 240px; height: 74px; transform: rotate(36deg); border-color: rgba(156,223,206,.44); }
.login-caption { position: absolute; left: 32px; bottom: 27px; color: rgba(237,248,242,.78); font-size: 12px; letter-spacing: .03em; }
.login-panel, .profile-panel { display: flex; flex-direction: column; justify-content: center; padding: 45px clamp(25px, 5vw, 55px); }
.login-panel h1, .profile-panel h1 { font-size: 27px; }
.login-panel .subtle-copy, .profile-panel .subtle-copy { font-size: 12px; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.login-form input { min-height: 42px; margin-bottom: 10px; }
.full-button { width: 100%; min-height: 42px; }
.privacy-note { color: #92a0a3; font-size: 9px; line-height: 1.5; margin: 18px 0 0; }
.privacy-note span { color: #2d9687; font-size: 8px; margin-right: 4px; }
.profile-layout { min-height: 430px; }
.profile-mark { background: radial-gradient(circle at 50% 49%, #e1f2ed, #f1f8f6 53%, #fff 100%); display: grid; place-items: center; position: relative; overflow: hidden; }
.profile-orbit { height: 190px; width: 190px; border: 1px solid #90c6b9; border-radius: 50%; box-shadow: 0 0 0 29px rgba(149,202,190,.12), 0 0 0 59px rgba(149,202,190,.08); }
.profile-star { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #c38c37; font-size: 22px; box-shadow: 0 8px 28px rgba(67,119,107,.17); }

@media (max-width: 1040px) {
  .planner-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr); gap: 14px; }
  .globe-stage { min-height: 390px; }
  .plan-panel { min-height: 525px; }
  .globe-card-bottom { align-items: flex-start; flex-direction: column; }
  .route-legend-note { text-align: left; }
}
@media (max-width: 780px) {
  .main-content { padding-top: 25px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 15px; }
  .intro-actions { width: 100%; }
  .intro-actions > * { flex: 1; }
  .planner-layout { grid-template-columns: 1fr; }
  .globe-stage { min-height: auto; aspect-ratio: 1000 / 700; }
  .plan-panel { min-height: 300px; max-height: none; }
  .point-list { max-height: 340px; }
  .plan-panel.has-selected .point-list { max-height: 210px; }
  .plan-panel.has-selected .selected-detail { max-height: none; overflow: visible; }
  .login-layout, .profile-layout { grid-template-columns: 1fr; margin: 18px auto 30px; }
  .login-art { min-height: 240px; }
  .login-globe { width: 125px; height: 125px; }
  .login-globe::before { inset: 12px 35px; }
  .login-globe::after { inset: 2px 52px; }
  .login-globe span:first-child { inset: 31px 2px; }
  .login-globe span:last-child { inset: 59px 2px; }
  .login-orbit { width: 190px; height: 65px; }
  .orbit-two { width: 180px; height: 54px; }
  .login-caption { left: 20px; bottom: 14px; font-size: 10px; }
  .profile-mark { min-height: 210px; }
  .profile-orbit { height: 125px; width: 125px; }
  .login-panel, .profile-panel { padding: 30px 24px; }
}
@media (max-width: 520px) {
  .topbar { height: 62px; padding: 0 15px; }
  .collab-note { display: none; }
  .brand { font-size: 15px; }
  .pseudonym-chip { font-size: 10px; }
  .main-content { padding-left: 12px; padding-right: 12px; }
  .globe-card-top { padding: 15px 14px 3px; }
  .globe-top-right { align-items: flex-end; gap: 5px; }
  .sync-indicator { font-size: 8px; }
  .globe-hint { font-size: 9px; }
  .globe-stage { min-height: 310px; }
  #globe-svg { width: 110%; max-width: none; }
  .globe-empty-hint { font-size: 9px; transform: translate(-50%, 112px); }
  .globe-card-bottom { padding: 10px 13px; }
  .route-legend { gap: 6px 9px; }
  .legend-item { font-size: 9px; }
  .plan-panel { padding: 17px 13px 13px; }
  .point-form { padding: 18px 15px 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .full-field { grid-column: auto; }
  .next-grid { grid-template-columns: 1fr 1fr; }
  .dialog-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
