/* v3.5.3 — Staff Wayfinder mobile operations polish. Desktop rules remain untouched. */
.admin-mobile-nav,
.admin-mobile-sheet { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 11px 16px 12px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(14,56,41,.12);
    box-shadow: 0 5px 18px rgba(18,48,34,.05);
  }
  .sidebar::before { opacity: .05; }
  .brand { gap: 10px; padding: 0; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .brand-name { font-size: 14px; }
  .brand-sub { margin-top: 3px; font-size: 9px; letter-spacing: 1px; }
  .side-intro, .store-panel, .clock-panel, .side-section-label, .side-nav,
  .side-spacer, .side-help, .side-footer { display: none !important; }
  .main { margin-left: 0; min-height: auto; padding: 16px 14px calc(112px + env(safe-area-inset-bottom, 0px)); }
  .main-inner { width: 100%; }
  .topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
  .crumbs { min-width: 0; flex: 1; font-size: 10px; letter-spacing: .2px; }
  .top-actions { display: flex; width: 100%; align-items: center; flex-wrap: wrap; gap: 7px; }
  .workspace-return-link { min-height: 42px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 11px; }
  .date-chip { display: none; }
  .language-control { min-height: 42px; padding: 5px 9px; }
  .language-control select { min-height: 30px; font-size: 13px; }
  .accessibility-btn { width: 42px; height: 42px; }
  .role-control { order: 4; flex: 1 1 100%; min-height: 42px; padding: 6px 10px; }
  .role-control label { font-size: 10px; }
  .role-control select { min-height: 30px; font-size: 13px; }
  .export-btn { min-height: 42px; padding: 9px 11px; font-size: 11px; }
  .hero { display: block; padding: 22px 18px; border-radius: 20px; }
  .hero h1 { max-width: 12ch; font-size: clamp(34px, 10vw, 42px); line-height: 1.04; letter-spacing: -1.6px; }
  .hero-copy { max-width: 38ch; font-size: 14px; line-height: 1.55; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 18px; }
  .stat-card { min-width: 0; padding: 11px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; line-height: 1.35; }
  .search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin: 16px 0; }
  .search-box { min-width: 0; min-height: 48px; }
  .search-box input { min-width: 0; height: 48px; font-size: 16px; }
  .view-switch { min-height: 48px; align-items: center; }
  .view-switch button { width: 40px; height: 40px; }
  .wayfinder { padding: 18px 14px; border-radius: 18px; }
  .wayfinder h2 { font-size: 23px; }
  .route-rail { grid-template-columns: 1fr; gap: 7px; margin-top: 14px; }
  .route-station { min-height: 64px; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 13px; }
  .station-orbit { width: 40px; height: 40px; grid-row: auto; }
  .station-title { font-size: 13px; line-height: 1.25; }
  .station-desc { min-height: 0; margin-top: 3px; font-size: 11px; line-height: 1.4; }
  .station-count { margin-top: 0; font-size: 10px; white-space: nowrap; }
  .way-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-head { align-items: flex-start; gap: 8px; margin-top: 25px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 13px; line-height: 1.45; }
  .tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { min-height: 0; padding: 15px; border-radius: 16px; }
  .tool-title { font-size: 16px; line-height: 1.25; }
  .tool-desc { font-size: 13px; line-height: 1.5; }
  .tool-meta, .module-badge, .tool-health { font-size: 11px; }
  .tool-card-bottom { gap: 8px; font-size: 12px; }
  .favorite-btn { width: 44px; height: 44px; }
  .guided-start { padding: 15px; border-radius: 17px; }
  .guided-title { font-size: 21px; }
  .guided-copy { font-size: 13px; line-height: 1.5; }
  .guided-options { grid-template-columns: 1fr; gap: 8px; }
  .guided-option { min-height: 58px; padding: 10px; }
  .guided-option strong { font-size: 14px; }
  .guided-option small { font-size: 12px; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs button { min-height: 42px; flex: 0 0 auto; padding-inline: 12px; font-size: 12px; }
  .eco-ops-admin-panel { margin-top: 18px; padding: 14px; border-radius: 16px; }
  .eco-ops-admin-panel h3 { font-size: 17px; }
  .eco-ops-admin-panel p { font-size: 13px; line-height: 1.5; }
  .eco-ops-admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .eco-ops-admin-grid article { min-width: 0; padding: 10px; }
  .eco-ops-admin-grid article strong { font-size: 13px; }
  .eco-ops-admin-grid article span { font-size: 11px; }
  .registry-panel, .health-panel, .notice-panel { padding: 14px; border-radius: 16px; }
  .registry-panel p, .health-panel p, .notice-panel p { font-size: 13px; line-height: 1.5; }
  .admin-mobile-nav {
    position: fixed;
    z-index: 120;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 2px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(25,65,45,.12);
    background: rgba(250,251,247,.94);
    box-shadow: 0 -8px 30px rgba(15,47,30,.10);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
  .admin-mobile-nav button {
    min-width: 0;
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px 2px;
    color: #6b7d70;
    background: transparent;
    font: 700 11px/1.1 system-ui,sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .admin-mobile-nav button .mobile-nav-icon { font-size: 19px; line-height: 1; }
  .admin-mobile-nav button[aria-current="page"] { color: #143f2c; background: #e6f0e3; box-shadow: inset 0 0 0 1px rgba(57,111,68,.12); }
  .admin-mobile-nav button:focus-visible { outline: 3px solid #75a982; outline-offset: 2px; }
  .admin-mobile-sheet {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(78dvh, 680px);
    margin: 0;
    padding: 0;
    border: 1px solid rgba(36,82,52,.14);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    color: #173a2a;
    background: #fffefa;
    box-shadow: 0 -20px 70px rgba(6,30,17,.23);
    overflow: auto;
  }
  .admin-mobile-sheet[open] { display: block; animation: adminSheetIn .24s cubic-bezier(.2,.8,.2,1) both; }
  .admin-mobile-sheet::backdrop { background: rgba(5,24,15,.48); backdrop-filter: blur(3px); }
  .admin-mobile-sheet-inner { padding: 10px 18px calc(22px + env(safe-area-inset-bottom,0px)); }
  .admin-mobile-sheet-handle { width: 38px; height: 4px; margin: 2px auto 15px; border-radius: 99px; background: #d9e1d8; }
  .admin-mobile-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
  .admin-mobile-sheet-head h2 { margin: 0; font: 800 21px/1.2 system-ui,sans-serif; letter-spacing: -.5px; }
  .admin-mobile-sheet-close { width: 44px; height: 44px; border: 1px solid #e3e8df; border-radius: 13px; color: #48634f; background: #f7f9f5; font-size: 20px; }
  .admin-mobile-sheet-group { margin-top: 15px; }
  .admin-mobile-sheet-group h3 { margin: 0 0 8px; color: #839184; font-size: 11px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
  .admin-mobile-sheet-list { display: grid; gap: 7px; }
  .admin-mobile-sheet-list button { min-height: 52px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #e5eae2; border-radius: 13px; color: #254934; background: #fff; text-align: left; font-size: 14px; font-weight: 750; }
  .admin-mobile-sheet-list button:active { background: #edf5ea; }
  .admin-mobile-sheet-list button span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #edf4e9; color: #326447; font-size: 16px; }
  .admin-mobile-sheet-note { margin: 14px 2px 0; color: #829087; font-size: 12px; line-height: 1.5; }
  .cc-dialog[open] { max-height: min(86dvh, 740px); }
}
@keyframes adminSheetIn { from { opacity: .6; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .admin-mobile-sheet[open] { animation: none !important; }
  .admin-mobile-nav button { transition: none !important; }
}
