:root {
    --page: #eef2f4;
    --surface: #ffffff;
    --surface-soft: #f7f9fa;
    --surface-tint: #f1f7f5;
    --line: #d9e1e4;
    --line-strong: #c8d3d7;
    --text: #101820;
    --muted: #607078;
    --muted-2: #819097;
    --green: #138a5b;
    --green-dark: #075f43;
    --blue: #1e5fa8;
    --cyan: #0f8ab5;
    --amber: #f4b321;
    --red: #c94f40;
    --shadow-sm: 0 6px 16px rgba(16, 24, 32, .08);
    --shadow-md: 0 18px 44px rgba(16, 24, 32, .12);
    --radius: 8px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.notice,
.error {
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 750;
}

.notice {
    color: #075f43;
    background: #e5f6ef;
    border: 1px solid #bfe8d6;
}

.error {
    color: #8d2d22;
    background: #fff0ed;
    border: 1px solid #f2c8c0;
}

.app-shell {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.topbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: 270px minmax(280px, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px 22px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    z-index: 30;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(135deg, #138a5b 0%, #138a5b 48%, #f4b321 49%, #f4b321 58%, #1e5fa8 59%, #1e5fa8 100%);
    border: 1px solid #1f2a33;
    border-radius: var(--radius);
    box-shadow: inset 0 -12px 18px rgba(255, 255, 255, .08), 0 10px 22px rgba(16, 24, 32, .16);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.35;
}

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

.brand-copy strong {
    font-size: 23px;
    font-weight: 850;
    line-height: 1.05;
}

.brand-copy small {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.search {
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.search:focus-within {
    background: #ffffff;
    border-color: rgba(11, 143, 106, .55);
    box-shadow: 0 0 0 4px rgba(11, 143, 106, .10);
}

.search svg {
    width: 19px;
    color: var(--muted);
    flex: 0 0 auto;
}

.search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-weight: 650;
}

.search input::placeholder {
    color: #7b8a91;
}

.key-hint {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.action-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.icon-button:hover,
.action-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.icon-button svg,
.action-button svg {
    width: 19px;
    height: 19px;
}

.action-button {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    font-weight: 850;
    color: #ffffff;
    background: var(--text);
    border-color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.action-button.secondary {
    color: var(--text);
    background: #ffffff;
    border-color: var(--line-strong);
}

.workspace {
    height: calc(100svh - 76px);
    min-height: 640px;
    display: grid;
    grid-template-columns: 318px minmax(440px, 1fr) 360px;
    gap: 12px;
    padding: 12px;
}

.filter-panel,
.detail-panel,
.map-stage {
    min-height: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.filter-panel,
.detail-panel {
    overflow: auto;
}

.filter-panel {
    padding: 18px;
}

.overview {
    display: grid;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 27px;
    padding: 0 10px;
    color: var(--green-dark);
    background: #e4f7ef;
    border: 1px solid #bce8d7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.overview h1 {
    margin: 12px 0 0;
    font-size: 27px;
    line-height: 1.12;
    font-weight: 850;
}

.overview p,
.station-spotlight p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.stat {
    min-height: 68px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f7faf8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stat strong {
    display: block;
    margin-top: 7px;
    font-size: 17px;
    font-weight: 850;
}

.control-group {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.control-group.compact {
    border-bottom: 0;
    padding-bottom: 0;
}

.control-title,
.list-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 12px;
}

.control-title svg {
    width: 17px;
    height: 17px;
    color: var(--green);
}

.segmented {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 4px;
    padding: 4px;
    background: #eef4f3;
    border: 1px solid #e1e9e8;
    border-radius: var(--radius);
}

.segment {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.segment.active {
    background: var(--surface);
    color: var(--green-dark);
    box-shadow: 0 5px 14px rgba(16, 24, 32, .10);
}

.select-control {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    font-weight: 750;
}

.select-control:focus {
    border-color: rgba(11, 143, 106, .55);
    box-shadow: 0 0 0 4px rgba(11, 143, 106, .10);
}

.check-row {
    min-height: 46px;
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 10px;
    align-items: center;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.check-row small {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
}

.check-row input,
.switch-row input {
    accent-color: var(--green);
}

.switch-row {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.filter-reset {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
}

.filter-reset svg {
    width: 17px;
    height: 17px;
}

.filter-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.range {
    width: 100%;
    accent-color: var(--green);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.range-labels strong {
    color: var(--green-dark);
}

.map-stage {
    position: relative;
    background: #dfe8e7;
}

.map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.map::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.42), transparent 18%, transparent 82%, rgba(255,255,255,.42)),
        linear-gradient(180deg, rgba(255,255,255,.30), transparent 34%, rgba(255,255,255,.10));
    z-index: 1;
}

.map-command,
.map-tools,
.map-note {
    position: absolute;
    z-index: 3;
}

.map-command {
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 0 14px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(209, 219, 222, .9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.map-command strong,
.map-command span {
    display: block;
}

.map-command strong {
    font-size: 14px;
    font-weight: 850;
}

.map-command span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(11, 143, 106, .15);
}

.map-tools {
    right: 16px;
    top: 16px;
    display: grid;
    gap: 8px;
}

.map-tools .icon-button {
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
    z-index: 2;
}

.maplibregl-ctrl-attrib {
    color: #50616a;
    background: rgba(255, 255, 255, .82) !important;
    border-radius: 6px 0 0 0;
    font: 10px Manrope, sans-serif;
}

.map-note {
    left: 16px;
    bottom: 16px;
    max-width: min(390px, calc(100% - 32px));
    padding: 10px 12px;
    color: #3f4c52;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    font-weight: 800;
}

.detail-panel {
    padding: 14px;
}

.station-spotlight {
    padding: 18px;
    background: var(--text);
    color: #ffffff;
    border-radius: var(--radius);
}

.spotlight-top,
.spotlight-actions,
.station-main,
.list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.station-status,
.confidence {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    gap: 7px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.station-status {
    color: #c7f8e6;
    background: rgba(11, 143, 106, .24);
    border: 1px solid rgba(199, 248, 230, .22);
}

.station-status.review {
    color: #ffe7ae;
    background: rgba(242, 166, 31, .18);
    border-color: rgba(255, 231, 174, .20);
}

.station-status.planned {
    color: #bdefff;
    background: rgba(15, 138, 181, .18);
    border-color: rgba(189, 239, 255, .22);
}

.confidence {
    color: #ffe7ae;
    background: rgba(242, 166, 31, .16);
    border: 1px solid rgba(255, 231, 174, .18);
}

.confidence svg {
    width: 15px;
    height: 15px;
}

.confidence small {
    color: #ffe7ae;
    font-size: 11px;
    font-weight: 850;
}

.station-spotlight h2 {
    margin: 18px 0 8px;
    font-size: 24px;
    line-height: 1.18;
}

.station-spotlight p {
    color: #b9c4c9;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0;
}

.spec-grid div {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    color: #e7edef;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 850;
}

.spec-grid svg {
    width: 17px;
    height: 17px;
    color: #8ce5c5;
    flex: 0 0 auto;
}

.spotlight-actions .action-button {
    flex: 1;
    background: #ffffff;
    color: var(--text);
    border-color: #ffffff;
}

.spotlight-actions .action-button[href="#"],
.spotlight-actions .action-button:not([href]),
.station-page-shortcut:not([href]) {
    pointer-events: none;
    opacity: .55;
}

.spotlight-actions .icon-button {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
}

.spotlight-actions .route-waze {
    text-decoration: none;
}

.station-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.list-title {
    margin: 4px 2px;
    font-size: 13px;
    font-weight: 850;
}

.count {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: var(--green-dark);
    background: #e3f7ef;
    border-radius: 999px;
}

.station-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    cursor: pointer;
}

.station-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.station-card.active {
    border-color: rgba(11, 143, 106, .48);
    box-shadow: 0 10px 24px rgba(11, 143, 106, .12);
}

.card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--green);
    border-radius: var(--radius);
}

.card-icon.review {
    background: var(--amber);
}

.card-icon.planned {
    background: var(--cyan);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.station-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
}

.station-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.station-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.station-badge.available {
    color: var(--green-dark);
    background: #e3f7ef;
}

.station-badge.review {
    color: #775000;
    background: #fff0c7;
}

.station-badge.planned {
    color: #0d6685;
    background: #daf3fb;
}

.empty-results {
    padding: 16px;
    color: var(--muted);
    background: #f8fafb;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.empty-results strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px;
}

.empty-results p {
    margin: 0;
    line-height: 1.45;
}

.custom-marker {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--green);
    border: 3px solid #ffffff;
    border-radius: 14px 14px 14px 4px;
    box-shadow: 0 12px 26px rgba(16, 24, 32, .32);
    transform: rotate(-45deg);
}

.custom-marker svg {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
}

.br-route-line {
    color: var(--blue);
}

.custom-marker.review {
    background: var(--amber);
}

.custom-marker.planned {
    background: var(--cyan);
}

.leaflet-container {
    font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
}

.leaflet-control-attribution {
    font-size: 10px;
}

.station-public-page {
    min-height: 100svh;
    background: var(--page);
}

.station-public-top {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.station-public-nav,
.station-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.station-public-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 34px;
}

.station-message {
    margin-bottom: 14px;
}

.station-hero-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
}

.station-hero-copy,
.station-trust-box,
.station-detail-card,
.station-action-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.station-hero-copy {
    padding: 24px;
}

.station-hero-copy h1 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.station-hero-copy p {
    max-width: 760px;
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 650;
}

.station-trust-box {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 8px;
    padding: 22px;
    color: #ffffff;
    background: var(--text);
}

.station-trust-box strong {
    font-size: 46px;
    line-height: 1;
}

.station-trust-box p,
.station-trust-box small {
    margin: 0;
    color: #c9d3d8;
    font-weight: 750;
}

.trust-age-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: #c7f8e6;
    background: rgba(11, 143, 106, .22);
    border: 1px solid rgba(199, 248, 230, .20);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.station-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.station-detail-grid.bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.station-detail-card,
.station-action-card {
    padding: 18px;
}

.station-detail-card.span-2 {
    grid-column: span 2;
}

.station-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
}

.station-section-title svg {
    width: 19px;
    height: 19px;
    color: var(--green);
}

.station-section-title h2 {
    margin: 0;
    font-size: 19px;
}

.station-address {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.45;
}

.station-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.station-facts.compact {
    grid-template-columns: 1fr;
}

.station-facts div {
    min-width: 0;
    padding: 11px;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.station-facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.station-facts dd {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    font-weight: 850;
    line-height: 1.35;
}

.station-note {
    margin: 14px 0 0;
    padding: 12px;
    color: #34444c;
    background: #f1f7f5;
    border: 1px solid #d2e6df;
    border-radius: var(--radius);
    line-height: 1.55;
}

.station-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.station-photo-grid img {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.connector-detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.connector-detail-card {
    min-height: 114px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 14px;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.connector-detail-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.connector-detail-card strong {
    font-size: 26px;
}

.connector-detail-card small {
    color: var(--muted);
    font-weight: 750;
}

.station-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.community-checkin-card {
    margin-bottom: 14px;
}

.community-checkin-form {
    display: grid;
    gap: 14px;
}

.community-checkin-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.community-checkin-form legend,
.community-checkin-form label > span {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.status-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.status-choice-grid label {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 850;
}

.status-choice-grid input {
    accent-color: var(--green);
}

.checkin-input-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.checkin-input-grid input,
.checkin-input-grid select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

.checkin-comment {
    display: grid;
}

.station-action-card {
    display: grid;
    gap: 12px;
}

.station-action-card > svg {
    width: 26px;
    height: 26px;
    color: var(--green);
}

.station-action-card.report > svg {
    color: var(--amber);
}

.station-action-card h2 {
    margin: 0;
}

.station-action-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.station-action-card textarea,
.comment-form textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    resize: vertical;
    font: inherit;
}

.station-action-card textarea:focus,
.comment-form textarea:focus {
    border-color: rgba(11, 143, 106, .55);
    box-shadow: 0 0 0 4px rgba(11, 143, 106, .10);
}

.feed-list {
    display: grid;
    gap: 9px;
}

.feed-list article {
    padding: 12px;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feed-list article strong {
    display: block;
    margin-bottom: 5px;
}

.feed-list article p {
    margin: 0 0 7px;
    color: #34444c;
    line-height: 1.55;
}

.feed-list article small {
    color: var(--muted);
    font-weight: 750;
}

.checkin-photo {
    width: 100%;
    max-height: 220px;
    margin-top: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.station-empty-mini {
    padding: 14px;
    color: var(--muted);
    background: #f8fafb;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    font-weight: 750;
}

.ranking-panel {
    margin-bottom: 14px;
}

.ranking-list {
    display: grid;
    gap: 8px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    color: var(--text);
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
}

.ranking-list a:hover {
    border-color: rgba(11, 143, 106, .45);
    box-shadow: var(--shadow-sm);
}

.ranking-list span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--green);
    border-radius: var(--radius);
    font-weight: 850;
    grid-row: span 2;
}

.ranking-list strong,
.ranking-list small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ranking-list small {
    color: var(--muted);
    font-weight: 750;
}

@media (max-width: 1240px) {
    .workspace {
        grid-template-columns: 300px minmax(420px, 1fr);
    }

    .detail-panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 360px 1fr;
        gap: 14px;
    }

    .station-list {
        margin-top: 0;
        align-content: start;
    }
}

@media (max-width: 980px) {
    .station-hero-detail,
    .station-detail-grid,
    .station-detail-grid.bottom,
    .station-action-grid {
        grid-template-columns: 1fr;
    }

    .station-detail-card.span-2 {
        grid-column: auto;
    }

    .station-facts,
    .connector-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-choice-grid,
    .checkin-input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topbar {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .search {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 46px;
    }

    .quick-actions .secondary,
    .quick-actions .action-button span {
        display: none;
    }

    .workspace {
        display: block;
        height: auto;
        min-height: 0;
        padding: 10px;
    }

    .filter-panel,
    .map-stage,
    .detail-panel {
        margin-bottom: 10px;
    }

    .filter-panel {
        padding: 14px;
    }

    .overview h1 {
        font-size: 25px;
    }

    .map {
        height: 57svh;
        min-height: 440px;
    }

    .map-command {
        top: 12px;
        left: 12px;
        right: 68px;
        min-height: 46px;
    }

    .map-note {
        display: none;
    }

    .detail-panel {
        display: block;
    }
}

@media (max-width: 520px) {
    .topbar {
        min-height: 66px;
    }

    .brand-mark,
    .icon-button,
    .action-button {
        width: 40px;
        height: 40px;
    }

    .brand-copy strong {
        font-size: 21px;
    }

    .key-hint {
        display: none;
    }

    .segmented {
        grid-template-columns: 1fr;
    }

    .spec-grid,
    .stat-strip {
        grid-template-columns: 1fr;
    }

    .station-main {
        align-items: flex-start;
    }

    .station-public-top {
        display: grid;
        padding: 12px;
    }

    .station-public-nav .action-button {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .station-public-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 10px;
    }

    .station-hero-copy,
    .station-trust-box,
    .station-detail-card,
    .station-action-card {
        padding: 14px;
    }

    .station-facts,
    .connector-detail-list,
    .station-photo-grid,
    .status-choice-grid,
    .checkin-input-grid {
        grid-template-columns: 1fr;
    }

    .station-hero-actions .action-button {
        width: 100%;
    }

    .station-action-card .action-button,
    .comment-form .action-button {
        width: 100%;
    }
}
