@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #183b37;
  --muted: #788985;
  --soft-ink: #4d6661;
  --paper: #f8f7f2;
  --paper-deep: #f1f1e9;
  --white: #fffefa;
  --line: #dce5dc;
  --accent: #e67859;
  --accent-dark: #c65a3f;
  --mint: #e6efe7;
  --shadow: 0 22px 60px rgba(20, 54, 47, .09);
  font-family: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(230, 120, 89, .42); outline-offset: 3px;
}
.serif { font-family: 'Noto Serif SC', 'Songti SC', serif; }
.eyebrow { color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--muted); }
.icon-btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 20px; transition: transform .2s, background .2s; }
.icon-btn:hover { transform: translateY(-2px); background: var(--mint); }
.btn { border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: #b6c9bb; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: white; }
.btn.primary:hover { background: #28554e; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: white; }
.btn.accent:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 7px 13px; font-size: 12px; }
.btn:disabled, .icon-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.pill { border-radius: 99px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; color: var(--soft-ink); background: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #66a181; }

.app-header { min-height: 77px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .88); backdrop-filter: blur(16px); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 13px; white-space: nowrap; }
.brand-mark { width: 37px; height: 37px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 19px; font-family: Georgia, serif; transform: rotate(-7deg); }
.brand-word { font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.brand-en { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .24em; margin-top: 1px; }
.header-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; }
.header-nav a { color: var(--soft-ink); transition: color .2s; }
.header-nav a:hover, .header-nav a.active { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 11px; }

.viewer-shell { max-width: 1600px; margin: auto; padding: 42px 4vw 48px; }
.viewer-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.viewer-intro h1 { font-size: clamp(28px, 3vw, 47px); line-height: 1.27; letter-spacing: .02em; margin: 9px 0 12px; font-weight: 600; }
.viewer-intro p { color: var(--soft-ink); margin: 0; font-size: 14px; }
.intro-meta { text-align: right; padding-bottom: 3px; }
.intro-meta strong { font-size: 14px; }
.intro-meta p { margin-top: 9px; font-size: 12px; color: var(--muted); }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(370px, .84fr); gap: 22px; min-height: 665px; }
.map-panel { position: relative; min-height: 635px; background: radial-gradient(ellipse at 45% 39%, #f5f9f2 0%, #eaf2ec 62%, #e2ede5 100%); border: 1px solid #dce9df; border-radius: 25px; overflow: hidden; box-shadow: var(--shadow); }
.map-panel::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#8cac9d 0.65px, transparent 0.65px); background-size: 14px 14px; opacity: .13; pointer-events: none; }
.map-topline { position: absolute; top: 27px; left: 28px; right: 28px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.map-topline .eyebrow { color: #6c9487; }
.map-topline h2 { font-size: 17px; margin: 7px 0 0; font-weight: 600; }
.map-legend { display: flex; align-items: center; gap: 13px; color: #78968a; font-size: 11px; font-weight: 700; }
.legend-line { height: 2px; width: 25px; background: var(--accent); }
.map-svg { width: 100%; height: 100%; position: absolute; inset: 25px 12px 0; width: calc(100% - 24px); height: calc(100% - 48px); overflow: visible; }
.map-shape { width: 100%; height: 100%; opacity: .98; }
.map-route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; opacity: .88; vector-effect: non-scaling-stroke; }
.map-route-complete { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-marker { cursor: pointer; outline: none; }
.map-marker .halo { fill: rgba(230, 120, 89, .18); transition: r .25s, fill .25s; }
.map-marker .pin { fill: #fffefa; stroke: var(--ink); stroke-width: 2; transition: fill .25s, stroke .25s; vector-effect: non-scaling-stroke; }
.map-marker .pin-center { fill: var(--ink); }
.map-marker.active .halo, .map-marker:hover .halo { fill: rgba(230, 120, 89, .25); r: 24px; }
.map-marker.active .pin { fill: var(--accent); stroke: #fffefa; stroke-width: 3; }
.map-marker.active .pin-center { fill: white; }
.marker-label { font: 700 13px 'DM Sans', 'PingFang SC', sans-serif; fill: var(--ink); paint-order: stroke; stroke: #edf4ec; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.marker-number { font: 700 9px 'DM Sans', sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.map-marker.active .marker-number { fill: white; }
.map-watermark { position: absolute; right: 30px; bottom: 37px; color: rgba(49, 90, 75, .16); font-family: Georgia, serif; font-size: 78px; line-height: .8; pointer-events: none; }
.map-footnote { position: absolute; bottom: 23px; left: 29px; color: #829e91; font-size: 11px; letter-spacing: .03em; }
.map-compass { position: absolute; top: 95px; right: 31px; width: 35px; height: 35px; border: 1px solid #bdcfc1; border-radius: 50%; display: grid; place-items: center; color: #78968a; font-size: 12px; font-family: Georgia, serif; }

.story-card { background: var(--white); border: 1px solid #e9eae2; border-radius: 25px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.story-photo { height: 300px; position: relative; overflow: hidden; background: #d4e2d9; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.story-photo:hover img { transform: scale(1.035); }
.story-photo::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(18, 38, 33, .4)); pointer-events: none; }
.photo-count { position: absolute; z-index: 2; right: 20px; top: 20px; color: white; border: 1px solid rgba(255,255,255,.68); background: rgba(27,49,43,.21); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.photo-caption { position: absolute; z-index: 2; left: 24px; bottom: 20px; color: white; font-size: 12px; letter-spacing: .04em; }
.story-body { padding: 27px 30px 27px; display: flex; flex-direction: column; flex: 1; }
.story-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.story-kicker .eyebrow { font-size: 10px; }
.story-date { font-size: 11px; color: var(--muted); font-weight: 700; }
.story-body h2 { font-size: clamp(23px, 2.25vw, 34px); line-height: 1.35; margin: 15px 0 12px; font-weight: 600; }
.story-description { font-size: 13px; color: var(--soft-ink); line-height: 1.9; margin: 0 0 23px; max-width: 48ch; }
.media-heading { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); margin-top: auto; font-size: 12px; font-weight: 700; }
.media-heading small { color: var(--muted); font-weight: 500; }
.media-row { display: flex; gap: 9px; margin-top: 13px; overflow-x: auto; padding-bottom: 2px; }
.media-thumb, .media-video { flex: 0 0 78px; width: 78px; height: 67px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--paper-deep); padding: 0; position: relative; }
.media-thumb.active { border-color: var(--accent); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-video { color: var(--ink); background: #e7eee5; display: grid; place-items: center; font-size: 22px; }
.media-video small { position: absolute; bottom: 4px; font-size: 9px; font-weight: 700; }
.media-placeholder { color: var(--muted); font-size: 11px; align-self: center; }

.timeline { margin-top: 24px; background: var(--white); border: 1px solid #e8eae2; border-radius: 23px; padding: 23px 26px 25px; box-shadow: 0 12px 34px rgba(20,54,47,.05); }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.timeline-head h2 { margin: 0; font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: 17px; font-weight: 600; }
.timeline-controls { display: flex; align-items: center; gap: 8px; }
.play-button { background: var(--accent); color: white; border-color: var(--accent); }
.play-button:hover { background: var(--accent-dark); }
.timeline-track { display: grid; grid-template-columns: repeat(var(--stops, 3), minmax(0, 1fr)); gap: 0; overflow-x: auto; }
.timeline-stop { border: 0; border-top: 2px solid #e7eae2; background: transparent; text-align: left; padding: 18px 10px 1px 0; position: relative; color: var(--soft-ink); min-width: 145px; transition: color .2s; }
.timeline-stop::before { content: ''; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: #fff; border: 2px solid #a5b9aa; border-radius: 50%; box-sizing: border-box; }
.timeline-stop.active { border-top-color: var(--accent); color: var(--ink); }
.timeline-stop.active::before { background: var(--accent); border-color: var(--accent); width: 12px; height: 12px; top: -7px; }
.timeline-stop .date { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.timeline-stop .city { display: block; font-size: 13px; font-weight: 700; }
.timeline-stop .sequence { font-size: 10px; color: var(--accent-dark); margin-right: 7px; }
.viewer-empty { min-height: 400px; display: grid; place-content: center; text-align: center; color: var(--muted); }

/* Editor */
.editor-shell { max-width: 1600px; margin: auto; padding: 34px 4vw 54px; }
.editor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.editor-heading h1 { font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: clamp(28px, 2.7vw, 42px); margin: 7px 0 7px; font-weight: 600; }
.editor-heading p { margin: 0; color: var(--soft-ink); font-size: 13px; }
.editor-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.editor-grid { display: grid; grid-template-columns: 270px minmax(360px, 1fr) 310px; gap: 18px; align-items: start; }
.editor-panel { background: var(--white); border: 1px solid #e8eae2; border-radius: 20px; box-shadow: 0 12px 34px rgba(20,54,47,.04); overflow: hidden; }
.panel-head { padding: 21px 21px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.panel-head small { color: var(--muted); font-size: 11px; }
.stop-list { padding: 0 12px 15px; max-height: 575px; overflow: auto; }
.stop-item { width: 100%; display: flex; align-items: flex-start; gap: 12px; background: transparent; border: 1px solid transparent; border-radius: 13px; text-align: left; padding: 14px 10px; color: var(--ink); }
.stop-item + .stop-item { margin-top: 3px; }
.stop-item:hover { background: #f3f6ef; }
.stop-item.active { background: #eaf2e9; border-color: #d4e2d4; }
.stop-number { width: 23px; height: 23px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-size: 10px; font-weight: 700; color: var(--accent-dark); }
.stop-item strong { display: block; font-size: 13px; margin: 1px 0 4px; }
.stop-item small { color: var(--muted); font-size: 11px; }
.stop-item .arrow { margin-left: auto; color: #a8bbb0; font-size: 17px; }
.add-stop { width: calc(100% - 24px); margin: 0 12px 17px; border: 1px dashed #b8cabb; border-radius: 12px; background: #f7faf5; padding: 12px; color: var(--ink); font-size: 12px; font-weight: 700; }
.add-stop:hover { background: var(--mint); }
.form-panel { padding-bottom: 20px; }
.form-section { padding: 0 27px 23px; }
.form-section + .form-section { padding-top: 21px; border-top: 1px solid var(--line); }
.form-section h3 { font-size: 13px; margin: 0 0 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--soft-ink); font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 41px; border: 1px solid #dfe7dd; background: #fffefa; border-radius: 9px; padding: 9px 11px; color: var(--ink); outline: none; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9aba9c; box-shadow: 0 0 0 3px rgba(154,186,156,.18); }
.field textarea { min-height: 124px; resize: vertical; line-height: 1.7; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.upload-card { border: 1px dashed #b9cabb; border-radius: 12px; background: #f8faf6; min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--soft-ink); position: relative; font-size: 12px; font-weight: 700; text-align: center; padding: 12px; cursor: pointer; }
.upload-card:hover { background: var(--mint); }
.upload-card input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload-card .upload-icon { font-size: 22px; color: var(--accent); line-height: 1; }
.upload-card small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; }
.uploaded-list { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 13px; }
.uploaded-item { width: 86px; height: 74px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--mint); position: relative; }
.uploaded-item img { width: 100%; height: 100%; object-fit: cover; }
.uploaded-item .remove { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; color: white; background: rgba(25,51,45,.74); font-size: 12px; }
.video-file { padding: 12px; margin-top: 13px; background: var(--mint); border-radius: 10px; display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 11px; }
.video-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 27px 0; border-top: 1px solid var(--line); }
.text-danger { border: 0; background: transparent; color: #b55b50; font-size: 11px; font-weight: 700; padding: 8px 0; }
.text-danger:hover { text-decoration: underline; }
.preview-panel { position: sticky; top: 18px; }
.preview-map { height: 215px; margin: 0 15px; border-radius: 13px; background: radial-gradient(#f5f9f2, #e7f0e8); position: relative; overflow: hidden; }
.preview-map img { width: 100%; height: 100%; object-fit: contain; }
.preview-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid white; box-shadow: 0 0 0 4px rgba(230,120,89,.18); transform: translate(-50%,-50%); }
.preview-copy { padding: 19px 20px 20px; }
.preview-copy .eyebrow { font-size: 9px; }
.preview-copy h3 { font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: 20px; line-height: 1.4; margin: 9px 0; }
.preview-copy p { font-size: 11px; color: var(--soft-ink); line-height: 1.8; margin: 0 0 15px; }
.preview-image { width: 100%; height: 132px; border-radius: 9px; object-fit: cover; background: #dfebe0; }
.preview-tip { margin: 16px 16px 0; background: #f0f4ec; border-radius: 11px; padding: 14px; color: var(--soft-ink); font-size: 11px; line-height: 1.7; }
.preview-tip strong { display: block; color: var(--ink); margin-bottom: 5px; }
.settings-backdrop, .media-backdrop { position: fixed; inset: 0; background: rgba(13,38,31,.55); z-index: 80; display: grid; place-items: center; padding: 22px; }
.settings-backdrop[hidden], .media-backdrop[hidden] { display: none; }
.modal { width: min(100%, 490px); background: var(--white); border-radius: 21px; padding: 28px; box-shadow: 0 24px 90px rgba(0,0,0,.18); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal h2 { font-family: 'Noto Serif SC', 'Songti SC', serif; margin: 0; font-size: 22px; }
.modal .field + .field { margin-top: 16px; }
.modal-actions { margin-top: 21px; display: flex; justify-content: flex-end; gap: 9px; }
.media-modal { width: min(100%, 900px); background: #102c27; color: white; border-radius: 20px; overflow: hidden; position: relative; }
.media-modal .close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(0,0,0,.3); color: white; border-color: rgba(255,255,255,.5); }
.media-modal img, .media-modal video { width: 100%; max-height: 74vh; display: block; object-fit: contain; }
.media-modal .caption { padding: 14px 20px; color: #d7e3dc; font-size: 12px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 18px; border-radius: 12px; font-size: 12px; box-shadow: var(--shadow); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: min(90vw, 540px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1220px) {
  .editor-grid { grid-template-columns: 225px minmax(340px,1fr); }
  .preview-panel { grid-column: 2; position: static; }
  .preview-panel .preview-map { display: none; }
  .preview-panel .preview-copy { display: grid; grid-template-columns: 1fr 140px; gap: 4px 18px; align-items: start; }
  .preview-panel .preview-image { grid-column: 2; grid-row: 1 / span 4; height: 110px; }
}
@media (max-width: 980px) {
  .viewer-grid { grid-template-columns: 1fr; }
  .map-panel { min-height: 540px; }
  .story-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .story-photo { height: 100%; min-height: 350px; }
  .story-body { min-height: 350px; }
}
@media (max-width: 720px) {
  .app-header { padding: 0 18px; min-height: 68px; }
  .brand-word { font-size: 16px; }
  .header-nav { display: none; }
  .header-actions .pill { display: none; }
  .viewer-shell, .editor-shell { padding: 27px 16px 40px; }
  .viewer-intro { align-items: flex-start; }
  .intro-meta { display: none; }
  .map-panel { min-height: 370px; border-radius: 18px; }
  .map-topline { top: 19px; left: 19px; right: 19px; }
  .map-topline h2 { font-size: 14px; }
  .map-legend, .map-compass, .map-watermark { display: none; }
  .map-svg { inset: 31px 3px 0; width: calc(100% - 6px); height: calc(100% - 37px); }
  .map-footnote { left: 19px; bottom: 16px; font-size: 9px; }
  .story-card { display: flex; border-radius: 18px; }
  .story-photo { height: 235px; min-height: 0; }
  .story-body { min-height: 0; padding: 22px; }
  .timeline { padding: 19px 17px; border-radius: 18px; }
  .timeline-head { align-items: flex-start; }
  .timeline-head h2 { font-size: 15px; }
  .timeline-controls .icon-btn { width: 35px; height: 35px; font-size: 17px; }
  .timeline-stop { min-width: 130px; }
  .editor-heading { align-items: flex-start; flex-direction: column; }
  .editor-grid { display: flex; flex-direction: column; }
  .editor-grid > * { width: 100%; }
  .stop-list { display: flex; overflow-x: auto; max-height: none; padding: 0 12px 10px; }
  .stop-item { min-width: 150px; flex: 0 0 150px; }
  .stop-item + .stop-item { margin-top: 0; }
  .stop-item .arrow { display: none; }
  .form-section { padding: 0 20px 22px; }
  .form-section + .form-section { padding-top: 21px; }
  .form-footer { padding: 15px 20px 0; }
  .preview-panel .preview-copy { display: block; }
  .preview-panel .preview-image { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Account, server state, and media ordering */
.save-status { color: var(--muted); font-size: 11px; font-weight: 600; }
.save-status.pending { color: var(--accent-dark); }
.save-status.error { color: #b55b50; }
.media-order { position: absolute; left: 4px; bottom: 4px; display: flex; gap: 3px; }
.media-order button { width: 21px; height: 20px; border: 0; border-radius: 5px; background: rgba(25,51,45,.74); color: white; font-size: 11px; line-height: 1; }
.media-order button:disabled { opacity: .35; }
.auth-page { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #eef5ed 0, transparent 38%), var(--paper); }
.auth-shell { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 40px 18px 70px; }
.auth-card { width: min(100%, 450px); background: var(--white); border: 1px solid #e8eae2; border-radius: 24px; box-shadow: var(--shadow); padding: 38px 40px 34px; }
.auth-card h1 { margin: 11px 0 10px; font-size: clamp(26px, 5vw, 36px); line-height: 1.3; }
.auth-lead { color: var(--soft-ink); font-size: 13px; line-height: 1.8; margin: 0 0 27px; }
.auth-card .field + .field { margin-top: 17px; }
.auth-message { min-height: 21px; margin: 16px 0 4px; font-size: 12px; line-height: 1.6; }
.auth-message.error { color: #b55b50; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 520px) { .auth-card { padding: 30px 23px 27px; border-radius: 18px; } }
