/* TESS-HOMEPAGE-MOBILE-RESPONSIVE v1 — homepage-only, desktop unchanged */
.home-mobile-menu-toggle { display:none; }
@media (max-width:1180px) {
  html { width:100%; }
  body { min-width:0; width:100%; }
  body > header { position:relative!important; top:auto!important; padding:14px!important; display:flex!important; flex-direction:column; align-items:stretch; gap:14px; }
  header > .home-top-powered-layout { order:0; width:100%!important; margin:0 auto!important; }
  header > .home-mobile-menu-toggle { order:1; }
  header > nav.tabs { order:2; }
  header > #neoWatchTicker { order:3; }
  header > #homeDefensePostureTicker { order:4; }
  header > #teamspeakConnect { order:5; }
  header > #neoWatchTicker, header > #teamspeakConnect, header > #homeDefensePostureTicker {
    position:relative!important; inset:auto!important; transform:none!important;
    width:100%!important; min-width:0!important; max-width:720px!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    margin:0 auto!important; padding:12px!important; overflow:hidden;
  }
  header > #neoWatchTicker { font-size:12px!important; }
  #neoWatchTicker .neo-watch-head { font-size:12px!important; line-height:1.45; }
  #neoWatchTicker .neo-watch-meta { font-size:11px!important; line-height:1.5; white-space:normal; }
  #neoWatchTicker .neo-watch-stream { font-size:12px; }
  #neoWatchTicker .neo-watch-audio { position:static!important; inset:auto!important; width:100%; max-width:100%; margin-top:12px; clear:both; }
  #neoWatchTicker .neo-watch-head { display:flex; align-items:center; justify-content:center; gap:7px; }
  #neoWatchTicker .neo-watch-stream { position:relative; height:20px; max-height:20px; line-height:16px; }
  #neoWatchAudioReleased, #neoWatchAudioStatus { font-size:11px!important; line-height:1.5!important; }
  #neoWatchTicker audio { display:block; width:100%!important; max-width:100%; min-width:0; height:42px; }
  #neoWatchAudioTitle { font-size:12px!important; line-height:1.5; }
  #homeInfraHud { width:100%!important; margin:0!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:7px!important; }
  #homeInfraHud .home-infra-pill { min-height:30px; font-size:10px!important; padding:6px!important; }
  #homeDefensePostureTicker .home-defense-posture-stream { margin-top:8px; }
  #teamspeakConnect .teamspeak-head { font-size:13px!important; line-height:1.5; }
  #teamspeakConnect .teamspeak-meta { font-size:11px!important; line-height:1.5; }
  #teamspeakConnect .teamspeak-stream { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
  #teamspeakConnect .teamspeak-server, #teamspeakConnect .teamspeak-discord-label { flex:1 1 210px; min-width:0; font-size:12px!important; white-space:normal!important; overflow-wrap:anywhere; }
  #teamspeakConnect .teamspeak-manual { display:block; flex:1 1 100%; font-size:11px; line-height:1.5; }
  #teamspeakConnect .teamspeak-connect, #teamspeakConnect .teamspeak-discord { min-height:42px; display:inline-flex; align-items:center; justify-content:center; font-size:12px; padding:8px 12px; }
  #teamspeakConnect .tess-comms-social-icons { position:static!important; margin:12px auto 0; height:auto!important; gap:10px; }
  #teamspeakConnect .tess-comms-social-icons a { width:38px!important; height:38px!important; flex-basis:38px!important; }
  #teamspeakConnect .tess-comms-social-icons img { width:26px!important; height:26px!important; max-width:26px!important; max-height:26px!important; }
  header nav.tabs { width:100%!important; max-width:720px; margin:0 auto!important; padding:0!important; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; overflow:visible; }
  header nav.tabs > a.tab, header nav.tabs > .dropdown { width:100%!important; min-width:0; margin:0!important; }
  header nav.tabs > a.tab, header nav.tabs .dropdown > a.dropbtn { display:flex!important; align-items:center; justify-content:center; width:100%!important; min-height:46px; height:100%; padding:10px!important; font-size:13px!important; line-height:1.35!important; text-align:center; white-space:normal; }
  header nav.tabs .dropdown > div.dropdown-content { position:static!important; inset:auto!important; width:100%!important; min-width:0!important; max-width:100%!important; max-height:55vh; overflow-y:auto!important; margin-top:6px!important; padding:5px!important; box-sizing:border-box; }
  header nav.tabs .dropdown > div.dropdown-content > a { white-space:normal!important; overflow-wrap:anywhere; font-size:13px!important; line-height:1.45; min-height:44px; }
  header nav.tabs .dropdown.mobile-dropdown-open { grid-column:1/-1; }
  header nav.tabs .dropdown.mobile-dropdown-open > a.dropbtn { height:auto; border-color:#63d2ff!important; }
  .home-mobile-menu-toggle { width:100%; max-width:720px; min-height:48px; margin:0 auto; padding:10px 14px; border:1px solid #63d2ff; border-radius:8px; background:#0a152e; color:#dff6ff; font:700 15px/1.4 Inter,Segoe UI,Arial,sans-serif; cursor:pointer; }
  body.home-mobile-nav-enhanced .home-mobile-menu-toggle { display:block; }
  body.home-mobile-nav-enhanced header nav.tabs:not(.mobile-menu-open) { display:none!important; }
  body.home-mobile-nav-enhanced header nav.tabs .dropdown > div.dropdown-content { display:none!important; }
  body.home-mobile-nav-enhanced header nav.tabs .dropdown.mobile-dropdown-open > div.dropdown-content { display:block!important; }
  .center-message-wrap { display:block!important; width:100%!important; padding:16px 14px 0!important; }
  .center-message-wrap > div { width:100%!important; min-width:0!important; max-width:720px!important; margin:0 auto!important; }
  .logo-playlist-row { display:flex!important; flex-direction:column!important; align-items:stretch!important; gap:16px!important; width:100%!important; }
  .logo-playlist-row > .home-logo-stack { width:100%!important; margin:0!important; }
  .home-logo-stack .main-logo { max-width:100%!important; margin:0 auto!important; }
  .center-message-wrap .playlist-card, .center-message-wrap .aero-chat-card,
  .center-message-wrap .earth-defense-countdown, .center-message-wrap .next-close-approach-mini,
  .center-message-wrap .neo-threat-board, .center-message-wrap .asteroid-watch-box,
  .center-message-wrap .home-music-box { position:relative!important; inset:auto!important; transform:none!important; width:100%!important; min-width:0!important; max-width:100%!important; margin:16px 0 0!important; box-sizing:border-box; }
  .logo-playlist-row .playlist-card, .logo-playlist-row .aero-chat-card { margin:0!important; }
  .playlist-card iframe { width:100%!important; height:auto!important; aspect-ratio:16/9; }
  .center-message-wrap .aero-chat-card { height:auto!important; min-height:360px; padding:12px; }
  .aero-chat-card .aero-chat-log { min-height:150px; max-height:320px; flex:1 1 150px; }
  .aero-chat-card .aero-msg { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
  .aero-chat-card .aero-chat-input { min-width:0; font-size:16px; min-height:44px; }
  .aero-chat-card button { min-height:42px; }
  .aero-chat-card .aero-chat-model-row { flex-wrap:wrap; }
  .aero-chat-card .aero-chat-model-select { font-size:16px; min-height:44px; }
  .aero-chat-card .aero-chat-tools { flex-wrap:wrap; }
  .aero-chat-card .aero-chat-status { overflow-wrap:anywhere; }
  .center-message-wrap .home-section-break { margin:0!important; height:0!important; }
  .earth-defense-countdown .edc-grid { grid-template-columns:repeat(5,minmax(0,1fr))!important; gap:6px!important; }
  .earth-defense-countdown .edc-object { grid-column:1/-1!important; }
  .earth-defense-countdown .edc-time { padding:9px 3px; }
  .earth-defense-countdown .edc-number { font-size:clamp(18px,4vw,28px)!important; }
  .earth-defense-countdown .edc-label { font-size:9px!important; letter-spacing:0!important; }
  .earth-defense-countdown .edc-head { font-size:13px!important; }
  .earth-defense-countdown .edc-object strong { font-size:13px!important; }
  .earth-defense-countdown .edc-object span, .earth-defense-countdown .edc-status { font-size:12px!important; white-space:normal!important; line-height:1.5; }
  .earth-defense-countdown .edc-source { font-size:10px; line-height:1.5; }
  .next-close-approach-mini .nca-mini-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px; }
  .next-close-approach-mini .nca-mini-cell b { font-size:10px!important; }
  .next-close-approach-mini .nca-mini-cell span { font-size:12px!important; white-space:normal; }
  .next-close-approach-mini .nca-mini-head { font-size:12px!important; }
  .next-close-approach-mini .nca-mini-meta { font-size:10px!important; white-space:normal; }
  .neo-threat-board .neo-threat-head { font-size:12px!important; line-height:1.5; text-align:center; }
  .neo-threat-board .neo-threat-meta, .neo-threat-board .neo-threat-source { font-size:10px!important; white-space:normal; line-height:1.5; }
  .neo-threat-board .neo-closest-card { grid-template-columns:1fr!important; }
  .neo-threat-board .neo-closest-card div:not(.neo-closest-title) { font-size:12px!important; line-height:1.6; }
  .neo-threat-board .neo-closest-title { font-size:11px!important; }
  .neo-threat-board .neo-threat-table { display:block; width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
  .neo-threat-board .neo-threat-row { min-width:620px; grid-template-columns:1.08fr .92fr .52fr .74fr .68fr .64fr .54fr!important; }
  .neo-threat-board .neo-threat-row .neo-threat-cell { display:block!important; font-size:11px!important; }
  .neo-threat-board .neo-threat-labels .neo-threat-cell { font-size:10px!important; }
  .asteroid-watch-box .asteroid-watch-frame-wrap { height:auto!important; }
  .asteroid-watch-box .asteroid-watch-frame { width:100%!important; height:420px!important; max-height:70vh; }
  .powered-badge-footer.bottom-badge-row { position:relative!important; inset:auto!important; width:calc(100% - 28px)!important; max-width:720px; min-width:0; margin:28px auto!important; grid-template-columns:1fr!important; justify-items:center; gap:16px; }
  .powered-badge-footer > * { position:static!important; inset:auto!important; transform:none!important; max-width:100%!important; min-width:0; }
  .powered-badge-footer .tess-global-credit { white-space:normal!important; overflow-wrap:anywhere; text-align:center; }
}
@media (max-width:480px) {
  #homeInfraHud { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .earth-defense-countdown .edc-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  .earth-defense-countdown .edc-number { font-size:25px!important; }
}
