:root {
  --bg:#f6f7f3;
  --paper:#fff;
  --ink:#20392f;
  --muted:#687870;
  --green:#214c43;
  --soft:#e8efe9;
  --line:#e1e6df;
  --accent:#b57753;
  --error:#9e3932;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font-size:15px;
  line-height:1.65
}
button,input,select,textarea {
  font:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.5;
  cursor:wait
}
a {
  color:inherit;
  text-decoration:none
}
p,h1,h2,h3 {
  margin:0
}
p+p {
  margin-top:10px
}
h1 {
  font-size:32px;
  letter-spacing:-1px;
  line-height:1.35
}
h2 {
  font-size:20px;
  line-height:1.5
}
h3 {
  font-size:17px;
  line-height:1.5
}
img {
  max-width:100%;
  display:block
}
svg {
  flex:none
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #b57753;
  outline-offset:3px
}
button {
  border:0;
  background:transparent;
  color:inherit
}
input,select,textarea {
  width:100%;
  border:1px solid #cdd7ce;
  border-radius:10px;
  background:white;
  padding:10px 12px;
  color:var(--ink);
  min-width:0
}
textarea {
  resize:vertical;
  min-height:100px
}
input[type=checkbox] {
  width:19px;
  height:19px;
  accent-color:var(--green);
  flex:none
}
label {
  display:grid;
  gap:7px;
  font-weight:550
}
small,.muted {
  color:var(--muted);
  font-weight:400
}
small {
  font-size:12px
}
.small {
  font-size:13px
}
.eyebrow {
  font-size:11px;
  letter-spacing:2.3px;
  font-weight:650;
  color:var(--muted);
  text-transform:uppercase
}
.icon {
  width:20px;
  height:20px;
  vertical-align:middle
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  z-index:1000;
  padding:10px;
  background:var(--paper);
  border-radius:8px
}
.skip-link:focus {
  top:12px
}
.boot {
  min-height:100vh;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:20px
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:9px 17px;
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  font-weight:550;
  font-size:14px;
  white-space:nowrap
}
.btn:hover {
  background:#f0f3ed;
  border-color:#b9c9bc
}
.btn.primary {
  background:var(--green);
  border-color:var(--green);
  color:white
}
.btn.primary:hover {
  background:#306153
}
.btn.quiet {
  background:transparent;
  border-color:transparent
}
.btn.danger {
  color:var(--error)
}
.btn.compact {
  min-height:36px;
  padding:6px 11px;
  font-size:13px
}
.icon-btn {
  width:40px;
  height:40px;
  padding:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:white
}
.icon-btn:hover {
  background:var(--soft)
}
.actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:6px;
  padding:2px 8px;
  font-size:11px;
  font-weight:550;
  background:var(--soft);
  color:var(--green)
}
.badge.warm {
  color:#8c5a2e;
  background:#f7eee3
}
.badge.gray {
  background:#eff1ee;
  color:#647168
}
.badge.error {
  background:#fbecea;
  color:var(--error)
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.full {
  grid-column:1/-1
}
.stack {
  display:grid;
  gap:20px
}
.check {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:400
}
.hint {
  color:var(--muted);
  font-size:13px
}
.error-message {
  color:var(--error);
  font-size:14px;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.error-message:empty {
  display:none
}
.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px
}
.panel-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px
}
.panel-header p {
  margin-top:5px
}
.spacer {
  flex:1
}
.notice-inline {
  background:#edf2e9;
  border:1px solid #dbe4d6;
  border-radius:12px;
  padding:14px 18px;
  color:#48624b;
  font-size:14px;
  margin:0 0 22px
}
.notice-inline a {
  text-decoration:underline;
  text-underline-offset:4px
}
.empty {
  padding:60px 24px;
  text-align:center;
  display:grid;
  justify-items:center;
  gap:14px
}
.empty .icon {
  width:38px;
  height:38px;
  color:#8a9c88
}
.empty p {
  color:var(--muted);
  max-width:440px
}
.loading {
  min-height:260px;
  display:grid;
  place-content:center;
  gap:16px;
  justify-items:center;
  color:var(--muted)
}
.spinner {
  width:27px;
  height:27px;
  border:2px solid #dce4d9;
  border-top-color:var(--green);
  border-radius:50%;
  animation:spin .9s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.shell {
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  min-height:100vh
}
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  border-right:1px solid var(--line);
  padding:34px 22px 24px;
  display:flex;
  flex-direction:column;
  background:#f9faf6;
  gap:34px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px
}
.brand img {
  width:42px;
  height:42px
}
.brand strong {
  font-size:21px;
  letter-spacing:1px;
  display:block
}
.brand small {
  font-size:10px;
  letter-spacing:1.8px;
  display:block
}
.navigation {
  display:grid;
  gap:8px
}
.nav-link {
  display:flex;
  align-items:center;
  gap:12px;
  border-radius:10px;
  padding:13px 16px;
  color:#627367;
  font-size:14px;
  font-weight:550
}
.nav-link:hover {
  background:#edf2e9
}
.nav-link.active {
  background:var(--green);
  color:white
}
.sidebar-bottom {
  margin-top:auto;
  display:grid;
  gap:18px
}
.local-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted)
}
.dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#699476;
  flex:none
}
.sidebar-footnote {
  font-size:11px;
  color:#859083;
  line-height:1.8
}
.workspace {
  min-width:0
}
.topbar {
  height:82px;
  padding:0 44px;
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  background:rgba(255,255,255,.5)
}
.avatar {
  border-radius:50%;
  background:#e9eee3;
  color:var(--green);
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  margin-left:12px
}
.main {
  padding:36px 44px 64px;
  max-width:1600px;
  margin:auto
}
.page-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:28px
}
.page-head h1 {
  margin:7px 0 11px
}
.page-head p {
  color:var(--muted);
  font-size:14px
}
.archive-banner {
  display:flex;
  align-items:center;
  gap:22px;
  padding:22px 26px;
  background:#e9eee3;
  border:1px solid #e0e6d7;
  border-radius:16px;
  margin-bottom:30px
}
.archive-banner .banner-icon {
  border:1px solid #cbd7c2;
  border-radius:50%;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  flex:none
}
.archive-banner p {
  font-size:13px;
  color:#677a61;
  margin-top:3px
}
.archive-banner strong {
  font-size:16px
}
.archive-banner .eyebrow {
  margin-left:auto;
  color:#7b8e72;
  text-align:right;
  line-height:1.9
}
.filter-bar {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:25px
}
.tabs {
  display:flex;
  background:#eaf0e6;
  border-radius:10px;
  padding:4px;
  gap:2px
}
.tab {
  padding:7px 17px;
  border-radius:7px;
  font-size:13px;
  color:#66785e;
  white-space:nowrap
}
.tab.active {
  background:white;
  color:var(--green);
  box-shadow:0 1px 4px #233b2010;
  font-weight:600
}
.year-form {
  display:flex;
  gap:6px;
  align-items:center;
  margin-left:auto
}
.year-form label {
  font-size:12px;
  color:var(--muted)
}
.year-form input {
  width:98px;
  font-size:13px;
  padding:7px 10px
}
.result-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted);
  font-size:12px;
  margin-bottom:16px
}
.trip-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.trip-card {
  border-radius:15px;
  background:white;
  border:1px solid var(--line);
  overflow:hidden;
  transition:transform .18s,box-shadow .18s;
  min-width:0
}
.trip-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 24px #213e2410
}
.cover {
  aspect-ratio:1.5;
  background:#e5eade;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center
}
.cover>img {
  width:100%;
  height:100%;
  object-fit:cover
}
.cover .cover-badges {
  position:absolute;
  left:15px;
  top:15px;
  display:flex;
  gap:6px
}
.cover .badge {
  background:#fffef4ed;
  box-shadow:0 1px 4px #0001
}
.cover-number {
  position:absolute;
  right:14px;
  bottom:12px;
  color:white;
  text-shadow:0 1px 6px #0008;
  font-size:12px
}
.photo-placeholder {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#889a7e;
  font-size:12px;
  width:100%;
  height:100%;
  padding:14px;
  min-height:120px
}
.photo-placeholder>.icon {
  width:30px;
  height:30px;
  opacity:.65
}
.trip-body {
  padding:19px 20px 17px
}
.trip-date {
  font-size:11px;
  letter-spacing:.7px;
  color:#819078
}
.trip-body h2 {
  margin:8px 0 8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.trip-places {
  font-size:12px;
  color:var(--muted);
  height:22px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.trip-footer {
  display:flex;
  align-items:center;
  gap:15px;
  border-top:1px solid #edf0e8;
  margin-top:17px;
  padding-top:13px;
  font-size:11px;
  color:var(--muted)
}
.trip-footer span {
  display:flex;
  align-items:center;
  gap:5px
}
.trip-footer .icon {
  width:14px;
  height:14px
}
.trip-footer .arrow {
  margin-left:auto;
  color:var(--green)
}
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin-top:30px;
  font-size:13px;
  color:var(--muted)
}
.pagination .disabled {
  opacity:.4;
  pointer-events:none
}
.footer-note {
  text-align:center;
  color:#8b9585;
  font-size:11px;
  letter-spacing:.5px;
  margin-top:36px
}
.back {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:13px;
  margin-bottom:23px
}
.trip-intro {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px
}
.trip-intro h1 {
  margin:8px 0 12px;
  overflow-wrap:anywhere
}
.trip-intro>div {
  min-width:0
}
.trip-intro>.actions {
  flex-shrink:0
}
.trip-intro p {
  color:var(--muted);
  font-size:13px
}
.trip-note {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin-top:15px;
  max-width:700px
}
.detail-grid {
  display:grid;
  grid-template-columns:165px minmax(0,1fr);
  gap:28px;
  align-items:start
}
.days {
  position:sticky;
  top:22px;
  display:grid;
  gap:7px
}
.days>.eyebrow {
  margin:0 0 10px 12px
}
.day-link {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:9px 12px;
  border-radius:8px;
  font-size:13px;
  color:var(--muted)
}
.day-link.active {
  color:var(--green);
  background:#e6eddf;
  font-weight:600
}
.days-list {
  display:grid;
  gap:5px;
  max-height:65vh;
  overflow:auto
}
.visits {
  min-width:0
}
.visit {
  border:1px solid var(--line);
  border-radius:15px;
  background:white;
  margin-bottom:24px;
  overflow:hidden
}
.visit-header {
  display:flex;
  gap:14px;
  padding:22px 24px 18px;
  align-items:flex-start
}
.visit-marker {
  width:34px;
  height:34px;
  background:#edf1e6;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px;
  flex:none
}
.visit-heading {
  flex:1;
  min-width:0
}
.visit-heading h2 {
  font-size:18px;
  overflow-wrap:anywhere
}
.visit-heading p {
  font-size:12px;
  color:var(--muted);
  margin-top:3px
}
.visit-photo-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;
  padding:0 7px
}
.photo-button {
  padding:0;
  aspect-ratio:1.35;
  overflow:hidden;
  background:#e9ede4;
  position:relative;
  display:grid;
  place-items:center
}
.photo-button:first-child {
  border-radius:7px 0 0 7px
}
.photo-button:last-child {
  border-radius:0 7px 7px 0
}
.photo-button:only-child {
  grid-column:1/-1;
  aspect-ratio:2.4;
  border-radius:7px
}
.photo-button img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .2s
}
.photo-button:hover img {
  transform:scale(1.03)
}
.visit-note {
  margin:17px 24px 0;
  font-size:14px;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.visit-footer {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  padding:15px 20px
}
.visit-footer>.hint {
  margin-right:auto
}
.visit .empty {
  padding:28px
}
.location {
  font-variant-numeric:tabular-nums
}
.subtle-link {
  text-decoration:underline;
  text-underline-offset:3px;
  color:#5f795e
}
.settings {
  max-width:860px
}
.settings .panel {
  margin-bottom:22px
}
.settings summary {
  cursor:pointer;
  font-weight:600;
  padding:2px 0
}
.settings details[open] summary {
  margin-bottom:22px
}
.settings-footer {
  display:flex;
  gap:15px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:24px
}
.check-row {
  border-bottom:1px solid #edf0e8;
  padding:14px 0
}
.check-row:last-child {
  border:0
}
.check-row label {
  justify-content:space-between
}
.check-row small {
  display:block;
  margin-top:3px
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px
}
.stat {
  padding:22px;
  background:white;
  border:1px solid var(--line);
  border-radius:14px
}
.stat strong {
  display:block;
  font-size:29px;
  font-weight:550
}
.stat span {
  font-size:12px;
  color:var(--muted)
}
.activity-grid {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:24px
}
.job {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 15px;
  padding:15px 0;
  border-bottom:1px solid var(--line)
}
.job:last-child {
  border:0
}
.job strong {
  font-size:14px
}
.job small {
  display:block;
  margin-top:4px
}
.job .error-message {
  grid-column:1/-1;
  font-size:12px
}
.scan-row {
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:13px;
  overflow-wrap:anywhere
}
.scan-row:last-child {
  border:0
}
.source {
  border-bottom:1px solid var(--line);
  padding:15px 0;
  overflow-wrap:anywhere
}
.source:first-child {
  padding-top:0
}
.source:last-child {
  border:0;
  padding-bottom:0
}
.source code {
  font-size:11px;
  color:var(--muted);
  display:block;
  overflow-wrap:anywhere;
  margin:6px 0
}
.source>p {
  font-size:12px;
  color:var(--muted)
}
.worker {
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 0;
  font-size:12px;
  color:var(--muted)
}
.worker .dot.offline {
  background:#b5bdb1
}
.worker span {
  overflow-wrap:anywhere
}
.login {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.1fr 1fr
}
.login-story {
  background:#e5ebdc;
  display:flex;
  flex-direction:column;
  padding:50px 64px;
  position:relative;
  overflow:hidden
}
.login-illustration {
  flex:1;
  min-height:240px;
  display:grid;
  place-content:center;
  justify-items:center;
  padding:40px 0
}
.login-illustration img {
  width:158px;
  height:158px;
  transform:rotate(-8deg);
  box-shadow:22px 24px 0 #d3ddc6;
  border-radius:35px
}
.login-story h1 {
  font-size:38px;
  line-height:1.5;
  font-weight:550;
  margin:30px 0 13px
}
.login-story p {
  font-size:14px;
  color:#697e60;
  max-width:340px
}
.login-story .story-bottom {
  margin-top:36px;
  font-size:11px;
  letter-spacing:1.4px;
  color:#819076
}
.login-form-side {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 40px;
  background:#fafbf7
}
.login-box {
  max-width:370px;
  width:100%
}
.login-box h2 {
  font-size:28px;
  margin:10px 0
}
.login-box>p {
  font-size:14px;
  color:var(--muted);
  margin-bottom:32px
}
.password-wrap {
  display:flex;
  align-items:center;
  position:relative
}
.password-wrap input {
  padding-right:56px
}
.password-wrap button {
  position:absolute;
  right:7px;
  padding:6px;
  font-size:12px;
  color:var(--muted)
}
.login-box .btn.primary {
  width:100%;
  margin-top:10px
}
.login-footnote {
  border-top:1px solid var(--line);
  margin-top:40px;
  padding-top:18px;
  color:#85907d;
  font-size:12px
}
.connection-note {
  font-size:12px;
  margin-bottom:20px;
  color:var(--muted)
}
#notice {
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  max-width:min(560px,calc(100vw - 32px));
  background:var(--green);
  color:white;
  padding:12px 22px;
  border-radius:12px;
  z-index:100;
  box-shadow:0 6px 28px #213e2426;
  font-size:14px;
  pointer-events:none
}
#notice:empty {
  display:none
}
dialog {
  padding:0;
  border:1px solid var(--line);
  border-radius:20px;
  max-width:min(600px,calc(100vw - 32px));
  width:600px;
  max-height:90dvh;
  color:var(--ink);
  box-shadow:0 25px 100px #15221930;
  background:white
}
dialog::backdrop {
  background:#1d302a91;
  backdrop-filter:blur(4px)
}
.dialog-head {
  padding:23px 26px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px
}
.dialog-head h2 {
  font-size:21px;
  min-width:0;
  overflow-wrap:anywhere
}
.dialog-body {
  padding:4px 26px 26px
}
.dialog-footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:26px;
  flex-wrap:wrap
}
.lightbox {
  width:1100px;
  max-width:calc(100vw - 24px);
  background:#15211d;
  color:#f5f6f0;
  border:0
}
.lightbox .dialog-head {
  padding:14px 22px
}
.lightbox .icon-btn {
  background:#ffffff12;
  color:white;
  border-color:#ffffff30
}
.lightbox figure {
  margin:0;
  display:grid;
  justify-items:center;
  padding:0 20px
}
.lightbox figure img {
  max-height:70dvh;
  object-fit:contain;
  min-height:120px
}
.lightbox figcaption {
  font-size:12px;
  padding:12px;
  color:#c3cec1
}
.lightbox-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:0 20px 20px;
  font-size:13px
}
.history-row {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:12px
}
.history-row small {
  display:block
}
.history-row:last-child {
  border:0
}
@media(min-width:1600px) {
  .trip-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:1200px) {
  .sidebar {
    padding:30px 16px 22px
  }
  .shell {
    grid-template-columns:200px minmax(0,1fr)
  }
  .main {
    padding:30px 28px 50px
  }
  .topbar {
    padding:0 28px
  }
  .trip-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .detail-grid {
    grid-template-columns:135px minmax(0,1fr);
    gap:20px
  }
  .activity-grid {
    grid-template-columns:1fr
  }
  .login-story {
    padding:40px
  }
}
@media(max-width:800px) {
  .shell {
    grid-template-columns:minmax(0,1fr)
  }
  .sidebar {
    height:auto;
    position:static;
    padding:18px 22px;
    gap:20px;
    border-right:0;
    border-bottom:1px solid var(--line);
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap
  }
  .sidebar .brand {
    margin-right:auto
  }
  .sidebar .brand img {
    width:35px;
    height:35px
  }
  .sidebar .brand strong {
    font-size:18px
  }
  .sidebar .brand small {
    display:none
  }
  .navigation {
    display:flex;
    gap:6px
  }
  .nav-link {
    padding:10px 12px;
    font-size:13px;
    gap:6px
  }
  .nav-link .icon {
    width:17px;
    height:17px
  }
  .sidebar-bottom {
    margin:0;
    display:block
  }
  .sidebar-bottom .local-label,.sidebar-footnote {
    display:none
  }
  .sidebar-bottom .btn {
    font-size:12px;
    padding:5px
  }
  .topbar {
    height:52px;
    padding:0 22px
  }
  .main {
    padding:27px 22px 40px
  }
  .archive-banner {
    padding:20px
  }
  .archive-banner .eyebrow {
    display:none
  }
  .detail-grid {
    grid-template-columns:1fr;
    gap:20px
  }
  .days {
    position:static
  }
  .days>.eyebrow {
    display:none
  }
  .days-list {
    display:flex;
    overflow:auto;
    max-height:none;
    gap:8px;
    padding:3px
  }
  .day-link {
    white-space:nowrap;
    gap:10px;
    background:#eff2e9
  }
  .login-story {
    padding:35px
  }
  .login-story h1 {
    font-size:30px
  }
  .login-illustration img {
    width:135px;
    height:135px
  }
  .login-form-side {
    padding:40px 30px
  }
  .trip-intro {
    flex-direction:column
  }
  .trip-intro>.actions {
    width:100%
  }
}
@media(max-width:540px) {
  body {
    font-size:14px
  }
  .sidebar {
    padding:15px 16px;
    gap:14px
  }
  .navigation {
    order:3;
    width:100%
  }
  .nav-link {
    flex:1;
    justify-content:center;
    padding:10px 8px
  }
  .main {
    padding:24px 16px 35px
  }
  .topbar {
    padding:0 16px;
    font-size:11px;
    height:46px
  }
  .topbar .account-name {
    display:none
  }
  .page-head {
    align-items:flex-start;
    gap:12px;
    margin-bottom:22px
  }
  .page-head h1 {
    font-size:27px
  }
  .page-head p {
    font-size:12px
  }
  .page-head .btn {
    padding:9px 12px;
    min-height:38px;
    font-size:12px
  }
  .page-head .eyebrow {
    font-size:10px
  }
  .archive-banner {
    gap:14px;
    padding:17px;
    margin-bottom:22px
  }
  .archive-banner .banner-icon {
    width:42px;
    height:42px
  }
  .archive-banner strong {
    font-size:14px
  }
  .archive-banner p {
    font-size:11px
  }
  .filter-bar {
    gap:13px
  }
  .tabs {
    width:100%;
    justify-content:space-between
  }
  .tab {
    flex:1;
    padding:7px 10px;
    text-align:center;
    font-size:12px
  }
  .year-form {
    width:100%;
    margin:0;
    justify-content:flex-end
  }
  .year-form label {
    margin-right:auto
  }
  .trip-grid {
    grid-template-columns:1fr;
    gap:20px
  }
  .cover {
    aspect-ratio:1.65
  }
  .trip-body {
    padding:17px 19px
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:17px
  }
  .panel {
    padding:20px
  }
  .panel-header {
    gap:10px;
    margin-bottom:20px
  }
  .panel-header h2 {
    font-size:18px
  }
  .visit-header {
    padding:18px 16px 15px;
    gap:11px
  }
  .visit-heading h2 {
    font-size:17px
  }
  .visit-header .btn {
    font-size:12px;
    padding:4px 6px
  }
  .visit-marker {
    width:28px;
    height:28px
  }
  .visit-photo-grid {
    gap:3px;
    padding:0 4px
  }
  .photo-button {
    aspect-ratio:.85
  }
  .visit-footer {
    padding:12px 13px
  }
  .visit-footer .hint {
    width:100%;
    font-size:11px
  }
  .visit-note {
    margin:14px 16px 0
  }
  .photo-placeholder {
    min-height:90px;
    font-size:11px;
    padding:6px
  }
  .trip-intro h1 {
    font-size:27px
  }
  .trip-intro .btn {
    font-size:12px;
    padding:7px 10px;
    min-height:36px
  }
  .stats {
    gap:10px
  }
  .stat {
    padding:17px 13px
  }
  .stat strong {
    font-size:25px
  }
  .stat span {
    font-size:11px
  }
  .login {
    grid-template-columns:1fr;
    min-height:100dvh
  }
  .login-story {
    padding:28px 28px 24px
  }
  .login-story .brand img {
    width:38px;
    height:38px
  }
  .login-story h1 {
    font-size:27px;
    margin:26px 0 5px
  }
  .login-story p {
    font-size:12px
  }
  .login-illustration,.story-bottom {
    display:none
  }
  .login-form-side {
    padding:35px 28px 45px;
    align-items:start
  }
  .login-box h2 {
    font-size:24px
  }
  .login-footnote {
    margin-top:28px
  }
  .dialog-head {
    padding:18px 20px 14px
  }
  .dialog-body {
    padding:2px 20px 22px
  }
  .dialog-head h2 {
    font-size:19px
  }
  .lightbox figure {
    padding:0 8px
  }
  .lightbox figure img {
    max-height:64dvh
  }
  .lightbox .dialog-head h2 {
    font-size:15px
  }
  .settings-footer {
    justify-content:stretch
  }
  .settings-footer .btn {
    width:100%
  }
  #notice {
    bottom:18px;
    width:max-content;
    max-width:calc(100vw - 28px);
    font-size:13px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
[hidden] {
  display:none!important
}
@media(max-width:540px) {
  .page-head {
    flex-direction:column
  }
  .page-head .btn {
    align-self:flex-start
  }
}

/* A compact account form replaces the former promotional login spread. */
.login.login-compact {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100dvh;
  padding:24px;
  background:#eef1e8
}
.login-compact .login-form-side {
  width:100%;
  max-width:428px;
  padding:36px;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 12px 40px #214c4310;
  align-items:center
}
.login-compact .brand { margin-bottom:30px }
@media (max-width:520px) {
  .login.login-compact { padding:20px }
  .login-compact .login-form-side { padding:28px }
}
