/* J16 mobile appearance. No transport, authentication or billing behavior. */
.j16-app-nav{display:none}
@media screen and (max-width:700px){
 html{background:#0c1523;scroll-padding-bottom:100px}
 body,body.j16-console{background:radial-gradient(ellipse at 80% 0,#14364a 0,transparent 45%),#0c1523;color:#edf4fb;color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;-webkit-tap-highlight-color:transparent}
 body:has(.j16-app-nav){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 body header,.j16-console header{background:#101f30ed;border-bottom:1px solid #294053;position:sticky;top:0;z-index:15;backdrop-filter:blur(16px);min-height:62px;padding:12px 16px!important;box-shadow:0 4px 20px #0002}
 body header a,body .brand,.j16-console .brand{color:#eef7ff!important;text-decoration:none}
 body header>a:last-child{font-size:12px;color:#7ae1e4!important;font-weight:650}
 body .brand{font-size:21px!important;letter-spacing:-.6px}
 body .brand span{display:inline!important;margin-left:7px;font-size:10px!important;letter-spacing:1.5px;color:#7ae1e4}
 body main,.j16-console main{padding:16px!important}
 body h1{font-size:26px!important;letter-spacing:-.8px!important;font-weight:750;margin:18px 0 10px;line-height:1.16!important}
 body h2{font-size:17px!important;font-weight:700;letter-spacing:-.25px}
 body h3{font-size:15px!important}
 body p,body .small,body .hint,body .muted,.j16-console p{color:#b3c5d7!important;line-height:1.6!important}
 body a{color:#79dfe6}
 body label{color:#e1edf7;font-weight:600}
 body .card,body section.card,.j16-console .card{background:linear-gradient(140deg,#1c3043,#152638);border:1px solid #30475c!important;border-radius:17px!important;padding:17px!important;margin-top:16px!important;box-shadow:0 8px 24px #00000016}
 body .card>h2:first-child{margin-bottom:14px}
 body button,body .button,.j16-console button{border-radius:10px!important;min-height:44px;background:#117b88;color:#fff;font-size:13px!important;font-weight:650!important;padding:10px 13px!important;border:1px solid transparent;text-decoration:none;touch-action:manipulation}
 body button:disabled{opacity:.48}
 body button.secondary,.j16-console button.secondary{background:#243c52;color:#e3f0fb;border:1px solid #415c73}
 body input:not([type=checkbox]):not([type=radio]),body select,body textarea,.j16-console input,.j16-console select,.j16-console textarea{background:#0d1c2c;color:#eff7ff;border:1px solid #446078;border-radius:10px!important;min-height:46px;box-shadow:inset 0 1px 3px #0001}
 body input[readonly],body textarea[readonly]{background:#16283a;color:#becddd}
 body input:focus,body select:focus,body textarea:focus,body a:focus-visible,body button:focus-visible{outline:2px solid #77e5ec!important;outline-offset:3px}
 body input[type=checkbox],body input[type=radio]{accent-color:#58d0d5;width:20px!important;height:20px;min-height:20px;padding:0!important}
 body .notice{background:#31301f;color:#ffe5a8!important;border:1px solid #766335;border-radius:12px;padding:13px!important}
 body .help,.j16-console .help{background:#112337;border:1px solid #304b63;border-radius:12px;padding:13px}
 body .status{border:1px solid #476077;background:#20384e;color:#d5e5f3;font-size:11px;padding:6px 10px}
 body .status.online{background:#143f38;border-color:#277b64;color:#95f1cf}
 body .configure-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important;margin:0}
 body .configure-actions .button{display:flex;align-items:center;justify-content:flex-start;min-height:68px;margin:0;padding:13px!important;background:#203c52;border:1px solid #3b5c73;color:#edfaff;text-align:left;font-size:13px!important;line-height:1.35}
 body .configure-actions[aria-label] .button{background:#126573;border-color:#26838f}
 body .configure-actions .map-button{background:#203c52!important}
 body .account-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
 body .account-actions a{display:flex;align-items:center;min-height:44px;padding:9px 10px;background:#102436;border:1px solid #35516a;border-radius:10px;text-decoration:none;font-size:12px}
 body .channel-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;background:#0b1c2b;padding:5px;border-radius:12px;border:1px solid #304b62}
 body .channel-buttons a{display:flex;justify-content:center;align-items:center;margin:0;min-height:42px!important;font-size:12px!important;border-radius:8px!important;padding:8px!important;background:#20384e;color:#dcecf8!important}
 .j16-console .console-nav{background:#102234;border-radius:12px;border-color:#304b62;padding:6px;gap:5px!important}
 .j16-console .console-nav a{border:0;border-radius:8px;background:#20394f}
 .j16-console .batch-command-button{min-height:44px!important;border-radius:9px!important;background:#156d7a;text-align:left;line-height:1.4}
 .j16-console #batchrows{border-radius:12px;background:#102133;padding:0 10px}
 .j16-console .batch-row{padding:12px 0;border-color:#304a62}
 body pre,.j16-console pre{background:#0a1725;color:#9de0d7;border:1px solid #2d465e;border-radius:10px!important}
 body summary{color:#8de2e6;padding:8px 0;min-height:40px}
 body footer{border-color:#2a4056;color:#a3b9cb;background:#0c1523}
 body .j16-app-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:40;max-width:700px;margin:0 auto;background:#102032f5;border-top:1px solid #3b536b;box-shadow:0 -8px 30px #0004;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));gap:3px!important;backdrop-filter:blur(16px)}
 body .j16-app-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#b1c6d9;text-decoration:none;border-radius:10px;min-height:54px;padding:5px 2px!important;font-size:10px!important;font-weight:600;line-height:1.15;white-space:nowrap}
 body .j16-app-nav a[aria-current=page]{background:#174556;color:#8af0ed;box-shadow:inset 0 0 0 1px #296578}
 body .j16-app-nav svg{height:21px;width:21px;flex:0 0 auto}
 body .j16-app-nav span{display:block}
}
@media screen and (min-width:701px) and (max-width:1024px){body .card{border-radius:16px!important}.configure-actions{gap:10px}.configure-actions .button{min-height:48px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{.j16-app-nav{display:none!important}body{padding-bottom:0!important}}
/* Configuration choices need their own rows on narrow screens. */
@media screen and (max-width:700px){
 body .channel-buttons>button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body [role="group"][aria-labelledby="quickfavorite-label"],
 body [role="group"][aria-labelledby="motodata-label"]{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%;min-width:0}
 body [aria-labelledby="quickfavorite-label"]>button,
 body [aria-labelledby="motodata-label"]>button{width:100%;min-width:0;margin:0;position:static;transform:none;min-height:48px;text-align:center}
 body #commandpickerlist{grid-template-columns:minmax(0,1fr)!important}
 body #commandpickerlist>button{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
}
