:root { --bg: #08110d; --surface: #101c17; --surface2: #17251e; --line: rgba(241,236,220,.12); --text: #f1ecdc; --muted: #a7b0a8; --mint: #69caa2; --mint-dark: #2f765b; --danger: #e28e79; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0px; min-height: 100%; }
body { background: radial-gradient(circle at 80% 5%, rgba(69, 112, 88, 0.22), transparent 34rem), linear-gradient(rgb(7, 16, 12), rgb(11, 23, 18) 55%, rgb(7, 16, 12)); color: var(--text); }
a { color: inherit; text-decoration: none; }
.topbar { position: sticky; top: 0px; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: max(14px,env(safe-area-inset-top)) max(18px,calc((100% - 760px)/2)) 12px; border-bottom: 1px solid var(--line); background: rgba(7, 16, 12, 0.9); backdrop-filter: blur(18px); }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; letter-spacing: 0.14em; }
.brand span { display: block; color: var(--muted); font-size: 0.72rem; }
.topbar a, .link-button { color: var(--mint); }
.container { width: min(100% - 28px, 760px); margin: 0px auto; padding: 24px 0px 72px; }
.narrow { max-width: 560px; }
.hero { min-height: 340px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(rgba(8, 18, 13, 0.08), rgba(8, 16, 12, 0.93)), radial-gradient(circle at 76% 20%, rgba(105, 202, 162, 0.18), transparent 18rem), linear-gradient(135deg, rgb(42, 64, 53), rgb(14, 25, 20)); box-shadow: rgba(0, 0, 0, 0.28) 0px 24px 60px; }
.eyebrow { margin: 0px 0px 14px; color: var(--mint); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0px; }
h1 { font-size: clamp(2.35rem, 10vw, 4.5rem); line-height: 0.95; margin-bottom: 18px; }
.hero p { max-width: 34ch; color: var(--muted); line-height: 1.55; }
.location-box { margin-top: 44px; max-width: 360px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(6, 14, 10, 0.72); }
.location-box small, .card small { display: block; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
.location-box strong { font-size: 1.2rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 28px 4px 14px; }
.section-head h2 { margin: 0px; }
.stats-grid, .module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card, .module-grid article, .progress-card, .panel { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,var(--surface2),var(--surface)); }
.card strong { display: block; font-size: 1.45rem; }
.card span, .module-grid small, .progress-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.82rem; }
.progress-card { margin-top: 12px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 12px; }
.progress { height: 10px; overflow: hidden; border-radius: 99px; background: rgb(40, 52, 46); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--mint-dark),var(--mint)); }
.module-grid { margin-top: 28px; }
.module-grid article { display: flex; flex-direction: column; gap: 7px; }
.module-grid article > span { font-size: 1.8rem; }
.auth-page { display: grid; place-items: center; padding: 24px; min-height: 100vh; }
.auth-card { width: min(100%, 460px); padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: rgba(13, 25, 19, 0.95); box-shadow: rgba(0, 0, 0, 0.36) 0px 30px 80px; }
.setup-card { width: min(100%, 620px); }
.brand-mark { font-family: Georgia, serif; font-size: 2rem; letter-spacing: 0.16em; }
.muted { color: var(--muted); }
form { display: grid; gap: 14px; margin-top: 24px; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 0.82rem; }
input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgb(11, 23, 18); color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.primary { min-height: 50px; border: 0px; border-radius: 15px; background: linear-gradient(135deg,var(--mint-dark),var(--mint)); color: rgb(7, 18, 13); font: inherit; cursor: pointer; }
.button-link { display: grid; place-items: center; padding: 0px 18px; }
.alert { padding: 13px 15px; border-radius: 14px; margin: 16px 0px; }
.alert.error { background: rgba(226, 142, 121, 0.15); border: 1px solid rgba(226, 142, 121, 0.35); }
.alert.success { background: rgba(105, 202, 162, 0.14); border: 1px solid rgba(105, 202, 162, 0.35); }
@media (max-width: 560px) {
  .stats-grid, .module-grid, .form-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 24px; }
  .container { width: min(100% - 22px, 760px); }
}
select, textarea { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgb(11, 23, 18); color: var(--text); font: inherit; }
textarea { resize: vertical; min-height: 130px; }
select:focus, textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.page-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; margin-bottom: 24px; }
.page-head h1 { margin-bottom: 8px; }
.compact { min-height: 44px; padding: 0px 18px; white-space: nowrap; }
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 3px; }
.filter-tabs a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.filter-tabs a.active, .filter-tabs a:hover { color: rgb(7, 18, 13); background: var(--mint); border-color: var(--mint); }
.stage-list { display: grid; gap: 14px; }
.stage-card { display: flex; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,var(--surface2),var(--surface)); }
.stage-card-main { min-width: 0px; }
.stage-card h2 { margin: 10px 0px 8px; font-size: 1.45rem; }
.stage-card-topline, .stage-meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.status-badge, .transport-label { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; }
.status-planned { background: rgba(198, 170, 104, 0.14); color: rgb(231, 202, 133); }
.status-active { background: rgba(105, 202, 162, 0.16); color: var(--mint); }
.status-completed { background: rgba(145, 174, 255, 0.13); color: rgb(183, 200, 255); }
.status-paused { background: rgba(226, 142, 121, 0.14); color: rgb(239, 170, 152); }
.transport-label { border: 1px solid var(--line); color: var(--muted); }
.stage-route { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 10px; }
.stage-route strong { color: var(--text); }
.stage-meta { color: var(--muted); font-size: 0.82rem; }
.stage-notes { margin: 14px 0px 0px; color: var(--muted); line-height: 1.6; }
.stage-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 110px; }
.stage-actions form { margin: 0px; }
.secondary-button, .danger-button { display: grid; place-items: center; min-height: 40px; padding: 0px 13px; border-radius: 12px; font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.secondary-button { border: 1px solid var(--line); color: var(--text); }
.danger-button { width: 100%; border: 1px solid rgba(226, 142, 121, 0.3); background: rgba(226, 142, 121, 0.12); color: rgb(239, 170, 152); }
.empty-state { text-align: center; padding: 54px 24px; border: 1px dashed var(--line); border-radius: 24px; background: rgba(16, 28, 23, 0.65); }
.empty-state > span { font-size: 3rem; }
.empty-state h2 { margin: 14px 0px 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }
.stage-form { gap: 18px; }
@media (max-width: 620px) {
  .page-head { flex-direction: column; }
  .stage-card { flex-direction: column; }
  .stage-actions { flex-direction: row; }
  .stage-actions > * { flex: 1 1 0%; }
}
.module-grid .module-card { display: flex; flex-direction: column; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,var(--surface2),var(--surface)); color: var(--text); text-decoration: none; }
.module-grid .module-card > span { font-size: 1.8rem; }
.module-grid .module-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.82rem; }
.module-grid .module-card-active { cursor: pointer; transition: transform 0.18s, border-color 0.18s, background 0.18s; }
.module-grid .module-card-active:hover { transform: translateY(-2px); border-color: var(--mint); background: linear-gradient(145deg,rgba(105,202,162,.12),var(--surface)); }
.module-grid .module-card-active:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.upgrade-banner { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; padding: 16px 18px; border: 1px solid rgba(231, 202, 133, 0.3); border-radius: 18px; background: rgba(198, 170, 104, 0.1); }
.upgrade-banner strong, .upgrade-banner small { display: block; }
.upgrade-banner small { margin-top: 4px; color: var(--muted); }
.upgrade-banner a { padding: 10px 14px; border-radius: 12px; background: rgb(231, 202, 133); color: rgb(23, 19, 11); font-weight: 800; white-space: nowrap; }
.sync-badge { display: inline-block; margin-top: 5px; color: var(--mint); font-size: 0.72rem; font-weight: 800; }
.section-actions { display: flex; align-items: center; gap: 13px; }
.inline-form { display: inline-flex; margin: 0px; }
.text-button { border: 0px; background: transparent; color: var(--mint); font: inherit; cursor: pointer; padding: 0px; }
.smart-stage-card { border-color: rgba(105, 202, 162, 0.24); }
.smart-ready, .smart-hint { display: flex; gap: 8px; align-items: flex-start; padding: 14px; border: 1px solid rgba(105, 202, 162, 0.28); border-radius: 14px; background: rgba(105, 202, 162, 0.09); color: var(--mint); }
.smart-hint { flex-direction: column; color: var(--text); }
.smart-hint span { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.switch-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.switch-row span { display: grid; gap: 5px; }
.switch-row small { color: var(--muted); line-height: 1.45; }
.switch-row input { width: 24px; height: 24px; accent-color: var(--mint); }
.manual-fields { display: grid; gap: 14px; margin: 0px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.manual-fields legend { padding: 0px 8px; color: var(--muted); font-size: 0.78rem; }
.manual-fields:disabled { opacity: 0.48; }
.smart-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.smart-summary > div { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 28, 23, 0.75); }
.smart-summary small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; }
.smart-summary strong { display: block; font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.stage-toolbar .filter-tabs { margin-bottom: 0px; }
.compact-empty { padding-block: 38px; }
.stage-card-current { border-color: rgba(105, 202, 162, 0.38); box-shadow: rgba(30, 105, 76, 0.12) 0px 16px 42px; }
.live-label { color: var(--mint); font-size: 0.7rem; font-weight: 850; }
.stage-progress { display: grid; gap: 7px; margin-top: 15px; }
.stage-progress > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; }
.stage-progress small { color: var(--muted); font-size: 0.76rem; }
@media (max-width: 700px) {
  .smart-summary { grid-template-columns: repeat(2, 1fr); }
  .stage-toolbar { flex-direction: column; }
}
@media (max-width: 560px) {
  .upgrade-banner { align-items: flex-start; flex-direction: column; }
  .section-actions { align-items: flex-end; flex-direction: column; gap: 6px; }
}
.form-section { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.form-section-head strong, .form-section-head small { display: block; }
.form-section-head small { margin-top: 4px; color: var(--muted); }
.coordinate-details { padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.coordinate-details summary { cursor: pointer; font-weight: 800; }
.coordinate-details[open] summary { margin-bottom: 12px; }
.gps-location-block { display: grid; gap: 10px; padding: 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 15px; }
.gps-location-block .secondary-button { justify-self: start; }
.gps-status { display: block; min-height: 20px; color: var(--mint); line-height: 1.45; }
.gps-capture { gap: 16px; }
.gps-result { min-height: 24px; color: var(--mint); font-weight: 700; }
.coordinate-details { padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.coordinate-details summary { cursor: pointer; font-weight: 800; }
.workflow-actions { align-items: stretch; min-width: 220px; }
.workflow-actions button, .workflow-actions a { width: 100%; justify-content: center; text-align: center; }
.workflow-feedback { min-height: 22px; margin-top: 12px; color: var(--mint); font-weight: 700; }
.stage-context { margin: 8px 0px 0px; color: var(--muted); font-size: 0.82rem; }
.gps-readonly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0px; }
.gps-readonly-grid > div { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.gps-readonly-grid small, .gps-readonly-grid span { color: var(--muted); }
button:disabled { opacity: 0.58; cursor: wait; }
@media (max-width: 760px) {
  .workflow-actions { min-width: 0px; width: 100%; }
  .gps-readonly-grid { grid-template-columns: 1fr; }
  .stage-actions { width: 100%; }
}
.auto-sync-note { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); font-size: 0.78rem; font-weight: 700; padding: 9px 12px; border: 1px solid rgba(105, 202, 162, 0.22); border-radius: 999px; background: rgba(105, 202, 162, 0.06); }
.workflow-divider { height: 1px; background: var(--line); margin: 3px 0px; }
.arrival-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px 14px; border: 1px solid rgba(105, 202, 162, 0.42); border-radius: 12px; background: rgba(105, 202, 162, 0.1); color: var(--mint); font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-weight: 800; cursor: pointer; }
.arrival-button:hover { background: rgba(105, 202, 162, 0.18); }
.arrival-hint { margin: 0px; padding: 11px 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 0.76rem; line-height: 1.45; text-align: center; }
.route-mini { margin-top: 16px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(6, 18, 14, 0.32); }
.route-mini-labels { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--text); font-size: 0.78rem; font-weight: 800; }
.route-mini-labels span:last-child { text-align: right; }
.route-mini-track { position: relative; height: 16px; margin: 0px 6px; }
.route-mini-track::before { content: ""; position: absolute; left: 0px; right: 0px; top: 7px; height: 2px; background: rgba(235, 238, 226, 0.16); }
.route-mini-progress { position: absolute; left: 0px; top: 7px; height: 2px; background: var(--mint); transition: width 0.3s; }
.route-mini-start, .route-mini-end, .route-mini-current { position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); }
.route-mini-start { left: 0px; background: var(--mint); box-shadow: rgba(105, 202, 162, 0.1) 0px 0px 0px 4px; }
.route-mini-end { left: 100%; background: var(--surface); border: 2px solid var(--muted); }
.route-mini-current { background: var(--cream); border: 2px solid var(--mint); box-shadow: rgba(105, 202, 162, 0.12) 0px 0px 0px 4px; transition: left 0.3s; }
.route-mini small { display: block; margin-top: 8px; color: var(--muted); font-size: 0.68rem; }
@media (max-width: 760px) {
  .auto-sync-note { width: 100%; justify-content: center; }
  .route-mini-labels { font-size: 0.72rem; }
  .workflow-divider { width: 100%; }
}
.narrow { max-width: 900px; }
.content-list { display: grid; gap: 14px; }
.content-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(16, 28, 23, 0.72); }
.content-main h2 { margin: 7px 0px; }
.content-main p { margin: 0px 0px 8px; color: var(--muted); }
.content-thumb { width: 110px; height: 80px; object-fit: cover; border-radius: 12px; }
.row-actions { display: grid; gap: 8px; }
.badge-row { display: flex; gap: 7px; flex-wrap: wrap; }
.badge.muted { color: var(--muted); }
.editor-form, .upload-box { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(16, 28, 23, 0.72); }
.editor-form label, .upload-box label { display: grid; gap: 7px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.editor-form input, .editor-form textarea, .editor-form select, .upload-box input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgb(7, 17, 13); color: var(--text); font: inherit; }
.content-editor { min-height: 340px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { align-items: center; display: flex !important; grid-template-columns: auto 1fr !important; }
.check-row input { width: auto !important; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 28, 23, 0.72); }
.media-card img, .media-file { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-file { display: grid; place-items: center; font-size: 3rem; }
.media-card > div { padding: 14px; display: grid; gap: 6px; }
.media-card small, .media-card p { color: var(--muted); }
.danger-link { border: 0px; background: none; color: rgb(233, 161, 143); padding: 0px; cursor: pointer; }
.stat-line { display: flex; justify-content: space-between; padding: 13px 0px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) {
  .content-row { grid-template-columns: 1fr; }
  .content-thumb { width: 100%; height: 180px; }
  .row-actions { grid-template-columns: 1fr 1fr; }
  .form-grid, .media-grid { grid-template-columns: 1fr; }
  .editor-form, .upload-box { padding: 16px; }
}
.editor-fieldset { display: grid; gap: 14px; margin: 0px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.editor-fieldset legend { padding: 0px 8px; color: var(--text); font-weight: 800; }
.field-help { margin: 0px; color: var(--muted); font-size: 0.85rem; }
.featured-image-preview { min-height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 16px; overflow: hidden; color: var(--muted); }
.featured-image-preview img { width: 100%; max-height: 360px; object-fit: cover; }
.gallery-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-choice { position: relative; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; display: grid !important; }
.gallery-choice input { position: absolute; top: 14px; left: 14px; height: 20px; z-index: 2; accent-color: rgb(98, 208, 170); width: 20px !important; }
.gallery-choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-choice:has(input:checked) { border-color: rgb(98, 208, 170); box-shadow: rgba(98, 208, 170, 0.16) 0px 0px 0px 2px; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-page { max-width: 1100px; margin: 0px auto; padding: 60px 24px 100px; }
.preview-article { max-width: 820px; margin: auto; }
.preview-article h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.94; }
.preview-lead { font-size: 1.25rem; color: var(--muted); }
.preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0px; }
.preview-meta span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; }
.preview-hero { width: 100%; max-height: 580px; object-fit: cover; border-radius: 24px; margin: 24px 0px; }
.preview-content { font-size: 1.08rem; line-height: 1.8; white-space: normal; }
.preview-gallery { margin-top: 50px; }
.preview-gallery > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.preview-gallery figure { margin: 0px; }
.preview-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.preview-gallery figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
@media (max-width: 760px) {
  .gallery-picker, .preview-gallery > div { grid-template-columns: 1fr 1fr; }
  .editor-actions > * { flex: 1 1 100%; }
}
.journal-editor { max-width: 1080px; }
.editor-intro { max-width: 720px; color: var(--muted); font-size: 1.05rem; margin-top: -18px; }
.journal-form { padding: 0px; background: transparent; border: 0px; gap: 18px; }
.editor-section { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(16, 28, 23, 0.78); }
.editor-section-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.editor-section-head > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(98, 208, 170, 0.15); color: rgb(98, 208, 170); font-weight: 900; }
.editor-section-head h2 { margin: 0px; font-size: 1.35rem; }
.editor-section-head p { margin: 3px 0px 0px; color: var(--muted); }
.journal-facts-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.journal-facts-form .wide { grid-column: span 2; }
.gallery-editor-note { padding: 13px 15px; border-radius: 14px; background: rgba(98, 208, 170, 0.1); color: var(--muted); }
.gallery-editor-note a { color: rgb(98, 208, 170); font-weight: 800; }
.video-choice { display: grid; place-items: center; align-content: center; aspect-ratio: 4 / 3; border-radius: 10px; background: rgb(7, 17, 13); color: rgb(98, 208, 170); font-size: 2rem; }
.video-choice small { display: block; font-size: 0.72rem; color: var(--muted); }
.journal-preview .preview-article { max-width: 980px; }
.journal-hero { min-height: 440px; border-radius: 30px; background-size: cover; background-position: center center; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid var(--line); }
.journal-hero.no-image { background: radial-gradient(circle at 70% 20%, rgba(98, 208, 170, 0.28), transparent 34%), linear-gradient(145deg, rgb(23, 49, 40), rgb(9, 19, 15)); }
.journal-hero > div { padding: 34px; display: grid; gap: 8px; }
.journal-hero span { color: rgb(98, 208, 170); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 850; font-size: 0.76rem; }
.journal-hero strong { font-size: clamp(1.6rem, 4vw, 3.3rem); line-height: 1.05; }
.journal-title { max-width: 820px; margin: 50px auto 0px; }
.journey-link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px auto 16px; }
.journey-link-cards > div { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 28, 23, 0.72); }
.journey-link-cards small, .travel-facts small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.journey-link-cards strong { display: block; margin-top: 6px; }
.travel-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px auto 46px; }
.travel-facts > div { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 28, 23, 0.72); }
.travel-facts > div > span { font-size: 1.2rem; }
.travel-facts strong { display: block; margin-top: 3px; }
.journal-story { max-width: 780px; margin: 0px auto; }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.section-heading > span { font-size: 1.5rem; }
.section-heading p { margin: 0px; color: rgb(98, 208, 170); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 850; }
.section-heading h2 { margin: 4px 0px 0px; font-size: clamp(1.7rem, 4vw, 3rem); }
.journal-gallery { max-width: 980px; margin: 70px auto 0px; }
.journal-gallery > div:last-child { grid-template-columns: repeat(2, 1fr); }
.journal-gallery figure.featured { grid-column: 1 / -1; }
.journal-gallery figure.featured img, .journal-gallery figure.featured video { aspect-ratio: 16 / 8; }
.journal-gallery button { padding: 0px; border: 0px; background: none; cursor: zoom-in; width: 100%; }
.journal-gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: rgb(0, 0, 0); }
.cms-gallery-hint { max-width: 780px; margin: 50px auto 0px; padding: 18px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.stage-route-card { max-width: 980px; margin: 70px auto 0px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(16, 28, 23, 0.72); }
.stage-route-card svg { width: 100%; height: auto; }
.route-placeholder { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 28px; border-radius: 18px; background: rgb(11, 23, 18); text-align: center; }
.route-placeholder span { color: rgb(98, 208, 170); letter-spacing: 0.12em; }
.route-placeholder small { grid-column: 1 / -1; color: var(--muted); }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0px; z-index: 1000; background: rgba(0, 0, 0, 0.9); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; }
.lightbox button { position: fixed; right: 24px; top: 18px; border: 0px; background: none; color: rgb(255, 255, 255); font-size: 3rem; cursor: pointer; }
@media (max-width: 760px) {
  .journal-facts-form { grid-template-columns: 1fr 1fr; }
  .journal-facts-form .wide { grid-column: 1 / -1; }
  .journal-hero { min-height: 320px; border-radius: 20px; }
  .journey-link-cards { grid-template-columns: 1fr; }
  .travel-facts { grid-template-columns: 1fr 1fr; }
  .route-placeholder { grid-template-columns: 1fr; }
  .route-placeholder small { grid-column: auto; }
  .journal-gallery > div:last-child { grid-template-columns: 1fr; }
  .journal-gallery figure.featured { grid-column: auto; }
}
.journal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0px 0px 9px; }
.journal-toolbar button { border: 1px solid rgba(98, 208, 170, 0.28); border-radius: 999px; background: rgb(11, 23, 18); color: rgb(220, 232, 227); padding: 8px 12px; font-style: inherit; font-variant: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.journal-toolbar button:hover { background: rgb(23, 49, 38); }
.local-save-status { color: rgb(98, 208, 170); font-weight: 800; }
.reading-time { color: rgb(170, 184, 177); font-size: 0.86rem; margin: -16px 0px 18px; }
.journal-story h2, .journal-story h3 { color: rgb(243, 239, 229); line-height: 1.15; margin: 1.8em 0px 0.6em; }
.journal-story h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
.journal-story h3 { font-size: 1.35rem; }
.journal-story blockquote { margin: 2rem 0px; padding: 1rem 1.25rem; border-left: 4px solid rgb(98, 208, 170); background: rgba(98, 208, 170, 0.08); font-size: 1.12rem; }
.journal-story ul { padding-left: 1.25rem; }
.journal-story hr { border-width: 1px 0px 0px; border-style: solid none none; border-color: rgba(255, 255, 255, 0.14) currentcolor currentcolor; border-image: none; margin: 2.5rem 0px; }
n.journal-preview .preview-article { display: block !important; overflow: visible !important; }
n.journal-preview .journal-title { position: static !important; inset: auto !important; transform: none !important; float: none !important; width: auto !important; max-width: 820px !important; margin: 50px auto 0px !important; padding: 0px !important; background: transparent !important; box-shadow: none !important; z-index: auto !important; }
n.journal-preview .journal-title > * { position: static !important; transform: none !important; }
n.preview-route-state { display: grid; grid-template-columns: minmax(0px, 1fr) auto minmax(0px, 1fr); gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 28, 23, 0.72); }
n.preview-route-state > div { display: grid; gap: 4px; }
.preview-route-state > div:last-of-type { text-align: right; }
.preview-route-state small { color: var(--muted); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.preview-route-state strong { font-size: 1.15rem; }
.preview-route-state > span { font-size: 1.7rem; color: rgb(98, 208, 170); font-weight: 900; }
.preview-route-state p { grid-column: 1 / -1; margin: 4px 0px 0px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); }
n .journal-title-block { display: block; position: static; max-width: 820px; margin: 50px auto 42px; padding: 0px; clear: both; }
.journal-preview .journal-title-block .journal-title { display: block; position: static !important; margin: 0px !important; max-width: none !important; }
.journal-preview .journal-title-block .reading-time { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(98, 208, 170, 0.1); color: rgb(203, 216, 210); position: static !important; margin: 18px 0px 0px !important; }
.journey-link-cards { clear: both; }
.preview-route-summary { display: grid; gap: 12px; padding: 21px 22px; border: 1px solid var(--line); border-radius: 17px; background: rgba(16, 28, 23, 0.72); }
.preview-route-summary__line { display: flex; align-items: center; gap: 13px; font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.15; }
.preview-route-summary__line span { color: rgb(98, 208, 170); font-weight: 900; }
.preview-route-summary p { margin: 0px; color: rgb(220, 232, 227); font-weight: 800; }
.preview-route-summary small { display: block; color: var(--muted); line-height: 1.55; }
@media (max-width: 620px) {
  .journal-title-block { margin: 36px auto 32px; }
  .preview-route-summary__line { gap: 9px; flex-wrap: wrap; }
}
:root { --md-bg: #07100c; --md-bg-elevated: #0b1510; --md-surface: #0f1b15; --md-surface-2: #14231b; --md-surface-soft: rgba(255,255,255,.035); --md-text: #f4efe4; --md-text-soft: #c9d2cc; --md-muted: #91a49a; --md-line: rgba(130,217,177,.16); --md-line-strong: rgba(130,217,177,.30); --md-accent: #7ed9b1; --md-accent-strong: #5fcf9c; --md-accent-soft: rgba(126,217,177,.10); --md-warning: #e5c37d; --md-danger: #df8c79; --md-success: #7ed9b1; --md-radius-xs: 10px; --md-radius-sm: 14px; --md-radius-md: 18px; --md-radius-lg: 24px; --md-radius-xl: 30px; --md-shadow-sm: 0 8px 22px rgba(0,0,0,.12); --md-shadow-md: 0 18px 50px rgba(0,0,0,.18); --md-space-1: 4px; --md-space-2: 8px; --md-space-3: 12px; --md-space-4: 16px; --md-space-5: 20px; --md-space-6: 24px; --md-space-8: 32px; --md-space-10: 40px; --md-space-12: 48px; --md-content: 1180px; --md-reading: 760px; --md-transition: 180ms cubic-bezier(.2,.8,.2,1); color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--md-bg); color: var(--md-text); -webkit-font-smoothing: antialiased; text-rendering: optimizelegibility; }
::selection { background: #7ed9b1; color: #06130e; text-shadow: none; }
::-moz-selection { background: #7ed9b1; color: #06130e; text-shadow: none; }
a { color: inherit; }
img, video { max-width: 100%; height: auto; }
.md-eyebrow, .eyebrow, .v3-kicker { line-height: 1.2; text-transform: uppercase; color: var(--md-accent) !important; font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.15em !important; }
.md-display { margin: 0px; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.96; letter-spacing: -0.045em; font-weight: 800; }
.md-lead { color: var(--md-text-soft); font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.7; }
.md-muted, .muted { color: var(--md-muted) !important; }
.md-card, .panel, .module-card, .stage-card { box-shadow: var(--md-shadow-sm); border: 1px solid var(--md-line) !important; border-radius: var(--md-radius-lg) !important; background: linear-gradient(rgba(255, 255, 255, 0.043), rgba(255, 255, 255, 0.02)) !important; }
.md-card--accent { background: linear-gradient(145deg, rgba(126, 217, 177, 0.13), rgba(255, 255, 255, 0.02)) !important; border-color: var(--md-line-strong) !important; }
.md-card--flat { box-shadow: none !important; }
button, .button-link, .primary, .secondary-button, a.primary, a.secondary-button { transition: transform var(--md-transition),border-color var(--md-transition),background var(--md-transition),color var(--md-transition); }
button:active, .button-link:active, .primary:active, .secondary-button:active { transform: translateY(1px); }
.primary, a.primary { background: var(--md-accent) !important; color: rgb(7, 17, 13) !important; border-color: transparent !important; border-radius: var(--md-radius-sm) !important; font-weight: 800 !important; }
.primary:hover, a.primary:hover { background: var(--md-accent-strong) !important; }
.secondary-button { border: 1px solid var(--md-line-strong) !important; background: var(--md-surface-soft) !important; color: var(--md-text) !important; border-radius: var(--md-radius-sm) !important; }
.secondary-button:hover { border-color: rgba(126, 217, 177, 0.48) !important; background: var(--md-accent-soft) !important; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { transition: border-color var(--md-transition),box-shadow var(--md-transition),background var(--md-transition); background: rgba(255, 255, 255, 0.035) !important; color: var(--md-text) !important; border: 1px solid var(--md-line) !important; border-radius: var(--md-radius-sm) !important; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(126, 217, 177, 0.6) !important; box-shadow: rgba(126, 217, 177, 0.1) 0px 0px 0px 3px !important; }
.status-badge, .viz-badge, .md-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--md-line-strong) !important; border-radius: 999px !important; background: var(--md-accent-soft) !important; color: var(--md-accent) !important; font-weight: 800 !important; }
.status-active { color: var(--md-accent) !important; }
.status-planned { color: var(--md-warning) !important; }
.status-completed { color: var(--md-text-soft) !important; }
.md-shell { width: min(var(--md-content),calc(100% - 40px)); margin-inline: auto; }
.md-reading { width: min(var(--md-reading),calc(100% - 40px)); margin-inline: auto; }
.md-grid { display: grid; gap: var(--md-space-4); }
.md-grid-2 { grid-template-columns: repeat(2, minmax(0px, 1fr)); }
.md-grid-3 { grid-template-columns: repeat(3, minmax(0px, 1fr)); }
.md-stack > * + * { margin-top: var(--md-space-4); }
.topbar { backdrop-filter: blur(18px); border-bottom: 1px solid rgba(126, 217, 177, 0.1) !important; background: rgba(7, 16, 12, 0.88) !important; }
.topbar .brand strong { letter-spacing: 0.04em; }
.topbar a { text-decoration: none; color: var(--md-text-soft) !important; }
.topbar a:hover { color: var(--md-accent) !important; }
@media (prefers-reduced-motion: no-preference) {
  .md-reveal { animation: 0.42s ease 0s 1 normal both running mdReveal; }
  @keyframes mdReveal { 
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
@media (max-width: 760px) {
  :root { --md-radius-lg: 20px; --md-radius-xl: 24px; }
  .md-shell, .md-reading { width: min(100% - 28px,var(--md-content)); }
  .md-grid-2, .md-grid-3 { grid-template-columns: 1fr; }
  button, .button-link, .primary, .secondary-button { min-height: 44px; }
}

/* C7.0.0 Travel Ready — Migration Center status badges */
.status-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-width: max-content;
  padding-inline: 10px;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.15;
  flex-shrink: 0;
}

/* C7.0.2 — System Update preflight badge containment */
.update-shell .status-badge,
.update-shell .badge,
.update-shell .md-badge {
  display: inline-flex !important;
  width: auto;
  min-width: max-content;
  max-width: none;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  overflow: visible;
  vertical-align: middle;
  flex-shrink: 0;
}

/* C7.0.0 Travel Ready — unified dashboard module icon system */
.td-module-card > .td-module-symbol {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(126, 217, 177, .24);
  border-radius: 10px;
  background: rgba(126, 217, 177, .075);
  color: #8be0ba;
  font-size: 0;
  line-height: 1;
  flex: 0 0 30px;
}
.td-module-card .td-module-icon {
  display: block;
  width: 18px;
  height: 18px;
}
.td-module-card:hover > .td-module-symbol {
  border-color: rgba(126, 217, 177, .46);
  background: rgba(126, 217, 177, .13);
  color: #a0e8c8;
}

/* C7.0.0 Travel Ready — centered journey progress KPIs */
.td-overall-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.td-overall-kpis > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.td-overall-kpis > span > strong,
.td-overall-kpis > span > small {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
