/* BookRoaming 3.10.2: shared layout and controls. Loaded last deliberately. */
:root {
  --surface:var(--paper);
  --surface-subtle:#eff4ed;
  --action-gap:12px;
  --control-height:46px;
}

/* Long Vietnamese labels and grid content may shrink without clipping. */
:where(.hero-grid,.audio-layout,.stations-layout,.two-column,.circle-content-layout,
  .catalog-book-layout,.profile-columns)>* {min-width:0}
:where(h1,h2,h3,p,.btn,.text-link) {overflow-wrap:break-word}
button {font-family:var(--sans)}
.btn {min-height:var(--control-height);border-radius:11px;line-height:1.5;padding:10px 18px}
.btn-sm {min-height:44px;padding:9px 14px}
.btn-primary,.btn-main {color:#fff;background:var(--forest);border-color:var(--forest)}
.btn-primary:hover,.btn-main:hover {background:#0b4550;border-color:#0b4550}
.btn-light,.btn-outline {color:var(--forest);background:var(--paper);border-color:var(--line-strong)}
.btn-light:hover,.btn-outline:hover {background:#edf3e9;border-color:#97b09e}
button:disabled {cursor:not-allowed;transform:none}
button[aria-busy="true"],form[data-busy="1"] button:disabled {cursor:wait}
:where(.btn,.btn-icon,.text-link,.nav-link):focus-visible {outline:3px solid #b77842;outline-offset:3px}
.btn-icon {flex-shrink:0}

/* Collapse the desktop links together at the responsive breakpoint. */
.header-inner {gap:20px}
.desktop-nav {gap:clamp(8px,1vw,16px);min-inline-size:0}
.desktop-nav .nav-link {display:block;line-height:1.35}
.header-actions {flex-shrink:0}
.brand-mark img {max-width:100%;height:auto;object-fit:contain}
.mobile-menu {top:100%;border-top:1px solid var(--line);box-shadow:0 18px 32px #153e4214}
.mobile-menu a {border-radius:10px}
.mobile-menu a:hover,.mobile-menu a[aria-current] {color:var(--forest);background:var(--mint)}
.hero-grid {grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}
.hero-search {max-width:540px;min-height:64px;border-radius:16px}
.hero-search .btn {flex:none;min-height:48px}
.hero-search-hint {max-width:540px;margin:10px 0 0;font-size:12px;line-height:1.75;color:var(--muted)}
.hero-search[aria-busy="true"] {border-color:var(--forest)}
.action-card {align-items:center;text-align:left;min-width:0;border:1px solid var(--line-strong)}
.action-card>span:nth-child(2) {min-width:0;flex:1}
.action-card b {line-height:1.5}
.action-card small {font-size:12px;line-height:1.65}
.action-card .action-icon {flex:none}

/* A single filter panel: query first, visible field names, reset last. */
.catalog-filters {
  display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,.55fr) minmax(150px,.55fr) auto;
  align-items:end;gap:16px;padding:20px;margin:0 0 14px;
  border:1px solid var(--line);border-radius:16px;background:var(--paper);
}
.catalog-query,.filter-field {display:grid;gap:8px;min-width:0;margin:0}
.catalog-query {min-height:0;min-width:0;padding:0;border:0;border-radius:0;background:transparent}
.filter-caption {display:block;font-size:12px;line-height:1.6;font-weight:700;color:var(--ink)}
.catalog-query-input {
  display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;padding:0 13px;
  border:1px solid var(--line-strong);border-radius:10px;background:#fff;
}
.catalog-query-input .icon {color:var(--muted)}
.catalog-query input {width:100%;min-width:0;padding:11px 0;min-height:46px;font-size:15px}
.catalog-query:focus-within {outline:none}
.catalog-query-input:focus-within {outline:2px solid var(--forest);outline-offset:2px}
.filter-field select {width:100%;max-width:none;min-height:48px;background:#fff;font-size:13px;padding:10px 12px}
.catalog-filters>.btn {width:auto;min-height:48px;margin:0}
.catalog-summary {flex-wrap:wrap;gap:10px}
.catalog-count {font-size:13px}
.saved-filter {font-size:12px;border-color:var(--line-strong);background:var(--paper)}
.book-grid {gap:22px;align-items:stretch}
.book-card {
  padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--paper);
  box-shadow:0 4px 16px #173e4204;min-width:0;
}
.book-card:hover {transform:translateY(-3px);box-shadow:0 12px 25px #173e4210;border-color:#becfc0}
.book-art {height:240px;margin:0 0 16px;border-radius:12px}
.book-info {padding:0 4px 4px;min-width:0}
.book-info h3 {font-size:16px;line-height:1.55;letter-spacing:0;min-height:0}
.book-by {font-size:12px;line-height:1.7}
.book-card .book-status {font-size:10px;line-height:1.5}
.book-copy-notice {align-items:flex-start;font-size:12px;line-height:1.7}
.book-copy-notice>.icon {margin-top:4px;flex:none}
.book-controls {display:flex;flex-wrap:nowrap;gap:10px;margin-top:auto;padding-top:10px}
.book-info .book-controls .btn {flex:1;min-width:0;min-height:44px;padding:9px 10px;font-size:12px}
.book-controls .btn-icon {width:44px;min-width:44px;min-height:44px;background:#fff}
.book-controls .btn-icon::after {content:none}
.borrow-try {min-height:44px;margin-top:8px;font-size:12px;line-height:1.6;text-align:left}

/* Filter first, matching stations next, supporting network illustration last. */
.stations-layout {grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:start;gap:24px}
.geo-control-area {margin:0 0 24px}
.station-list {display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.station-card {padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);min-width:0}
#station-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}
#station-cards>.empty {grid-column:1/-1}
#stations .station-create {margin-top:16px}
.station-details {min-width:0;flex:1}
.station-details h3 {font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.station-details p {font-size:13px;line-height:1.7}
.station-details .station-action {min-height:44px;margin-top:9px}
.station-create {padding:20px;flex-wrap:wrap;gap:14px;align-items:center}
.station-create>div {flex:1 1 180px;min-width:0}
.station-create .btn {margin-left:auto}
.network-map {min-height:300px;border:1px solid var(--line);border-radius:18px}
.network-nodes {min-height:300px;padding:80px 20px 65px;gap:16px}
.network-node {flex:1 1 110px;max-width:160px;gap:9px;padding:12px 8px;border-radius:12px}
.network-node:hover {background:#fff8}
.network-node b {font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.network-node small {font-size:12px;color:#50634e}
.map-caption {font-size:11px;line-height:1.65;bottom:15px}

/* Content and actions occupy their own rows in management panels. */
.workspace-sidebar-card {border-radius:17px}
.queue-shortcut {display:flex;align-items:center;background:#eff4ed}
.queue-shortcut .btn {max-width:100%;white-space:normal}
.workspace-nav-link {min-height:46px;font-size:13px}
.workspace-nav-label {font-size:10px}
.workspace-account-link {font-size:12px;min-height:40px}
.workspace-section-heading p,.workspace-block-heading p {font-size:13px}
.workspace-section-content .record {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:20px 0}
.workspace-section-content .record>div:first-child {font-size:14px;line-height:1.7}
.record-actions {gap:12px}
.workspace-section-content .record-actions {justify-content:flex-start;gap:10px}
.workspace-section-content .record-actions .btn,.workspace-section-content .record-actions .text-link {font-size:12px;min-height:44px}
.workspace-section-content .profile-panel {overflow:visible}
.workspace-owner {min-height:58px}
.workspace-share {min-height:44px}
.workspace-metric>span:last-of-type {font-size:12px}
.workspace-settings-card p {font-size:13px}
.station-workflow-tabs,.inventory-tabs {gap:10px}
.station-workflow-tabs button,.inventory-tabs button {min-height:44px;line-height:1.55}
.station-workflow-row {gap:16px;flex-wrap:wrap}
.station-workflow-row>div {min-width:0}
.station-workflow-actions {flex-wrap:wrap;gap:10px}

/* Allow rich content to grow without pushing tools beyond the viewport. */
.feed-heading {flex-wrap:wrap;gap:14px}
.feed-tabs {max-width:100%;gap:4px}
.feed-tab {min-height:44px;line-height:1.5}
.post-actions {flex-wrap:wrap;gap:10px 18px}
.post-actions .post-action {min-height:44px}
.post-content p,.post-content h3 {overflow-wrap:anywhere}
.post-head>.avatar {flex:none}
.post-head>div:nth-child(2) {min-width:0}
.post-head-tools {display:flex;align-items:center;gap:6px;flex:none;margin-inline-start:auto}
.post-head-tools .post-follow {margin-inline-start:0}
.post-unpublish-icon {
  display:grid;place-items:center;inline-size:44px;block-size:44px;padding:0;flex:none;
  border:1px solid transparent;border-radius:11px;background:transparent;color:#577269;
}
.post-unpublish-icon .icon {inline-size:19px;block-size:19px}
button.post-unpublish-icon {cursor:pointer}
button.post-unpublish-icon:is(:hover,:focus-visible) {background:#fbefeb;border-color:#ebcec4;color:#923e37}
.post-unpublish-icon.is-unpublished {background:#f2f4f1;color:#6b766f}
.post-unpublish-icon:focus-visible {outline:2px solid currentColor;outline-offset:2px}
.post-detail-byline {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block-end:12px}
.post-detail-byline .modal-sub {margin:0}
.audio-tools {flex-wrap:wrap;gap:12px}
.audio-tools label {min-width:0;flex-wrap:wrap;font-size:12px}
.audio-tools .text-link {color:var(--forest);min-height:44px}
.audio-row {min-width:0}
.audio-row>span:not(.track-number):not(.duration) {min-width:0}
.circle-card-actions,.station-profile-actions,.catalog-profile-actions {flex-wrap:wrap;gap:12px}
.circle-card-actions .btn {min-height:44px;max-width:100%;flex:0 1 auto}
.catalog-physical-copy .copy-card {display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px}
.catalog-physical-copy .copy-card-description {min-width:0;overflow-wrap:anywhere}
.catalog-physical-copy .record-actions {grid-column:1/-1;justify-content:flex-start;gap:10px}
.dialog-content .form-actions {gap:12px}
.dialog-content .form-actions .btn {min-width:0}
.dialog-content input,.dialog-content select,.dialog-content textarea {font-size:16px}

@media(min-width:1181px) {
  .desktop-nav {display:flex}
  .desktop-nav a[data-nav="circles"],.desktop-nav a[data-nav="impact"] {display:block}
}
@media(max-width:1180px) {
  .desktop-nav {display:none}
  .mobile-menu-toggle {display:grid}
  .mobile-menu {
    display:none;position:absolute;left:0;right:0;top:100%;
    max-height:calc(100dvh - 100px);overflow:auto;padding:16px 24px;
    grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:var(--paper);
  }
  .mobile-menu.open {display:grid}
  .mobile-menu a {
    display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px;border:1px solid var(--line);
    font-size:13px;text-align:center
  }
  .book-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-grid {gap:28px}
  .hero-art {height:440px}
  .hero-big-book {width:200px;height:295px;left:20%}
}
@media(max-width:900px) {
  .hero-grid {grid-template-columns:minmax(0,1fr)}
  .hero-art {width:100%;max-width:460px;height:430px;margin-inline:auto}
  .hero h1 {font-size:clamp(42px,7.5vw,64px)}
  .hero-big-book {width:220px;height:312px;left:23%;top:60px}
  .catalog-filters {grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:14px}
  .catalog-query {grid-column:1/-1}
  .book-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .stations-layout {grid-template-columns:minmax(0,1fr)}
  .network-map {min-height:230px}
  .network-nodes {min-height:230px;padding-block:65px 55px}
}
@media(max-width:640px) {
  .container {width:calc(100% - 32px)}
  .header-inner {gap:8px}
  .header-actions {gap:3px}
  .mobile-menu {padding:14px 16px 20px;grid-template-columns:repeat(2,minmax(0,1fr));max-height:calc(100dvh - 86px)}
  .hero-grid {gap:24px}
  .hero h1 {font-size:clamp(37px,10vw,56px);line-height:1.22}
  .hero-art {height:345px;max-width:340px}
  .hero-big-book {width:158px;height:230px;left:22%;top:58px}
  .hero-back-book {width:132px;height:200px}
  .hero-float {max-width:calc(100% - 20px)}
  .hero-search {padding:6px 6px 6px 12px;gap:8px}
  .hero-search input {font-size:16px;width:0;min-width:0}
  .hero-search .btn {padding-inline:12px;font-size:12px}
  .hero-search {min-height:58px}
  .hero-search .btn {min-height:44px}
  .hero-search-hint {font-size:11px;line-height:1.7}
  .action-card {min-height:148px;align-items:flex-start}
  .action-card>span:nth-child(2) {flex:auto}
  .action-card small {font-size:12px}
  .section-heading h2 {font-size:30px;line-height:1.35}
  .catalog-filters {padding:16px;gap:14px 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .catalog-filters>.btn {grid-column:1/-1;width:100%;min-height:44px}
  .catalog-query input,.filter-field select {font-size:16px}
  .filter-field select {padding-inline:8px}
  .book-controls {gap:10px;flex-wrap:nowrap}
  .book-info .book-controls .btn {width:auto;flex:1 1 auto}
  .book-controls .btn-icon {width:44px;flex:0 0 44px}
  .station-card {padding:16px;gap:12px}
  .station-thumb {flex:none;width:52px;height:64px}
  .station-create {padding:17px}
  .station-create .btn {width:100%;margin:0}
  .workspace-metric>span:last-of-type {font-size:11px}
  .feed-tab {font-size:12px;padding-inline:12px}
  .feed-heading .feed-tabs {width:100%}
  .feed-tabs .feed-tab {flex:1}
  .post-actions {gap:6px 12px}
  .post-action:last-child {margin-left:0}
  .composer {align-items:flex-start}
  .compose-input {min-width:0;line-height:1.65}
  .newsletter-form input {font-size:16px}
}
@media(max-width:520px) {
  .book-grid {grid-template-columns:minmax(0,1fr);gap:16px}
  .book-card {display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;padding:13px}
  .book-art {height:auto;min-height:180px;margin:0;border-radius:10px;align-self:stretch}
  .book-card .cover {width:74px;height:112px;padding:12px 9px;transform:rotate(-5deg)}
  .book-card:nth-child(even) .cover {transform:rotate(4deg)}
  .book-card .cover-title {font-size:12px;line-height:1.3}
  .book-card .cover-author {font-size:5px}
  .book-card .cover-mark {font-size:23px;bottom:21px;right:7px}
  .book-card .book-status {left:5px;top:6px;max-width:calc(100% - 10px);font-size:9px;padding:4px 5px}
  .book-info {padding:1px 0}
  .book-info h3 {font-size:16px;line-height:1.5}
  .book-by {margin:5px 0}
  .book-copy-notice {font-size:11px;min-height:0;margin:4px 0 8px}
  .book-model-row {min-height:0;margin-block:5px}
  .book-model-row span {font-size:10px}
  .book-controls {gap:8px}
  .book-info .book-controls .btn {padding:9px 7px;font-size:11px}
  .borrow-try {font-size:11px;margin-top:6px}
  .catalog-summary {align-items:center}
  .catalog-count {padding-top:0;font-size:12px}
  .saved-filter {flex-shrink:1}
  .circle-profile-stats {flex-wrap:wrap;gap:20px}
  .circle-card-actions {align-items:flex-start}
  .circle-card-actions .btn {flex:1 1 100px}
}
@media(max-width:360px) {
  .container {width:calc(100% - 28px)}
  .book-card {grid-template-columns:80px minmax(0,1fr);gap:11px;padding:11px}
  .book-card .cover {width:62px;height:95px;padding:10px 7px}
  .book-card .cover-title {font-size:11px}
  .book-card .book-status {font-size:8px}
  .hero-search .btn {max-width:140px;padding-inline:10px}
}
@media(prefers-reduced-motion:reduce) {
  .book-card:hover {transform:none}
}

/* Station discovery */
:is(#stations,#home-stations) .section-heading {margin-bottom:18px}
:is(#stations,#home-stations) .geo-tools {padding:0;border:0;background:transparent;gap:10px}
.geo-toolbar {display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.geo-toolbar>.btn,.geo-area-summary {min-height:44px;padding:9px 13px}
.geo-toolbar .geo-all {min-height:44px;display:inline-flex;align-items:center;padding:4px 6px;text-align:left}
.geo-area-panel {position:relative;max-width:100%;min-width:0}
.geo-area-summary {cursor:pointer;list-style:none;max-width:100%;text-align:left}
.geo-area-summary::-webkit-details-marker,.station-card-menu summary::-webkit-details-marker {display:none}
.geo-area-summary span:first-of-type {min-width:0;overflow-wrap:anywhere}
.geo-caret {display:block;width:8px;height:8px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg);margin-left:4px;flex:none}
.geo-area-panel[open] .geo-caret {transform:translateY(2px) rotate(225deg)}
.geo-area-panel>.geo-search-form {position:absolute;z-index:5;left:0;top:calc(100% + 8px);width:min(535px,calc(100vw - 38px));padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 18px 35px rgba(25,53,47,.14)}
.geo-search-form>.geo-fields {grid-template-columns:minmax(0,1.55fr) minmax(140px,1fr);align-items:start;gap:12px}
.geo-area-input {display:grid;gap:7px;min-width:0}
.geo-suggestions {padding:0;margin:0;list-style:none;border:1px solid var(--line);border-radius:10px;max-height:210px;overflow:auto}
.geo-suggestions button,.station-card-menu button {display:flex;align-items:center;gap:7px;width:100%;padding:9px 10px;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.geo-suggestions button:hover,.geo-suggestions button:focus-visible,.station-card-menu button:hover {background:#edf4ec}
.geo-suggestions small {margin-left:auto;color:var(--muted)}
.station-directory-tools {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0 12px}
.station-directory-tools:empty {display:none}
.station-directory-tools h3 {font-size:clamp(18px,2vw,24px);margin:0;overflow-wrap:anywhere}
.station-directory-tools p {color:var(--muted);font-size:13px;margin:4px 0 0}
.station-result-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.station-result-actions>span {font-size:14px;color:var(--muted);margin-right:4px}
.station-result-actions [aria-pressed='true'],.station-result-actions [aria-expanded='true'] {background:#e2efe0;color:var(--ink)}
#home-stations .station-result-actions :is([aria-pressed='true'],[aria-expanded='true']) {background:#e2efe0;color:var(--ink)}
#station-cards {grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px;align-items:stretch}
#station-cards.station-directory-single {grid-template-columns:minmax(0,1fr)}
#station-cards>.station-directory-card {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;align-items:stretch;gap:0;padding:0;min-width:0;box-shadow:none;border-radius:19px}
#station-cards.station-directory-single>.station-directory-card {grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-rows:1fr}
.station-card-cover {position:relative;isolation:isolate;display:grid;align-content:end;min-width:0;aspect-ratio:2.15;overflow:hidden;border-radius:18px 18px 0 0;padding:20px;color:#173f40;background:radial-gradient(ellipse at 90% 0%,#f8e8bf 1%,transparent 63%),linear-gradient(132deg,#c7dcd0,#e6ead6 75%)}
.station-directory-single .station-card-cover {border-radius:18px 0 0 18px;aspect-ratio:auto;min-height:218px;padding:24px}
.station-directory-card:nth-child(3n+2) .station-card-cover {background:linear-gradient(140deg,#d2e1e4,#a9c3cb)}
.station-directory-card:nth-child(3n+3) .station-card-cover {background:linear-gradient(140deg,#ebd7ad,#e5bd95)}
.station-card-cover img {position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover}
.station-cover-text {display:grid;gap:7px;min-width:0;overflow-wrap:anywhere}
.station-cover-text>.icon {width:24px;height:24px;margin-bottom:6px}
.station-cover-text>span {font:600 clamp(19px,2.2vw,30px)/1.14 Georgia,serif;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.station-cover-text small {font-size:14px;color:#274f4a}
.station-card-info {display:flex;flex-direction:column;gap:11px;padding:18px;min-width:0;overflow-wrap:anywhere}
.station-directory-single .station-card-info {padding:22px}
.station-card-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.station-card-heading>div {min-width:0}
.station-card-heading h3 {font-size:clamp(17px,2vw,23px);line-height:1.25;margin:0 0 5px}
.station-card-heading h3 a {color:inherit;text-decoration:none}
.station-card-heading h3 a:hover {text-decoration:underline}
.station-card-heading p,.station-distance,.station-address,.station-hours {font-size:13px;color:var(--muted);margin:0}
.station-card-heading p,.station-distance {display:flex;align-items:flex-start;gap:5px}
.station-card-heading .icon,.station-distance .icon,.station-stock-count .icon {flex:none}
.station-card-menu {position:relative;flex:none}
.station-card-menu summary {list-style:none;cursor:pointer;min-width:42px;height:42px;font-weight:800;letter-spacing:2px}
.station-card-menu>div {position:absolute;right:0;top:calc(100% + 6px);z-index:3;width:max-content;max-width:196px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 10px 23px rgba(25,53,47,.16)}
.station-card-menu button {font-size:13px;font-weight:600;border-radius:6px}
.station-card-facts,.station-card-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.station-stock-count {display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-weight:600;font-size:13px;min-width:0}
.station-stock-count.has-stock {color:#19634f}
.station-card-shelf {display:flex;gap:7px;min-width:0;max-width:100%}
.station-shelf-book {width:42px;aspect-ratio:2/3;display:grid;place-items:center;overflow:hidden;background:#ead9ac;color:#314842;text-decoration:none;box-shadow:inset 3px 0 0 #0002;border-radius:3px 5px 5px 3px}
.station-shelf-book:nth-child(2) {background:#d7e5d9}.station-shelf-book:nth-child(3) {background:#ebdbce}
.station-shelf-book span {padding:4px 3px 4px 5px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;font:600 9px/1.16 Georgia,serif}
.station-shelf-book img {width:100%;height:100%;object-fit:cover}
.station-card-actions {margin-top:auto;padding-top:4px}
.station-card-actions .btn {white-space:normal;text-align:center}
.station-directory-empty {grid-column:1/-1;display:grid;justify-items:start;gap:8px;padding:23px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.station-directory-empty h4,.station-directory-empty p {margin:0}.station-directory-empty p {color:var(--muted)}
.station-open-link {margin-top:14px}.station-open-link button {display:inline-flex;align-items:center;gap:6px;min-height:44px}
.station-directory-map {margin-bottom:16px}
.station-map-canvas {position:relative;overflow:hidden;border-radius:16px;background:#e7eee7;border:1px solid var(--line)}
.station-map-tiles {position:absolute;inset:0;pointer-events:none}
.station-map-tiles img {position:absolute;max-width:none}
.station-map-pin {position:absolute;transform:translate(-50%,-75%);display:grid;place-items:center;width:34px;height:34px;border:2px solid white;border-radius:50%;background:#115a61;color:white;box-shadow:0 2px 7px #0005}
.station-map-pin:hover,.station-map-pin:focus-visible {z-index:2;background:#943c21;color:white}
.station-map-credit {position:absolute;right:0;bottom:0;background:#fff;color:#174b57;padding:3px 6px;font-size:11px}
@media(max-width:680px) {
 #station-cards.station-directory-single>.station-directory-card {grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
 .station-directory-single .station-card-cover {border-radius:18px 18px 0 0;aspect-ratio:2.05;min-height:0;padding:18px}
 .station-directory-single .station-card-info {padding:17px}
}
@media(max-width:480px) {
 .geo-search-form>.geo-fields {grid-template-columns:minmax(0,1fr)}
 .station-card-actions .btn {flex:1 1 auto}
}
