/* Touch-first layouts for narrow Android screens, including 360px-wide phones. */
.mobile-control-toggle{display:none}
.mobile-table-hint{display:none}
/* Expanded navigation must grow with the document, not a centered flex scroller. */
@media(max-width:1023px){
 .ar-site .ar-header{position:relative}
 .ar-site .ar-header .mk-header-row{display:grid;grid-template-columns:minmax(0,1fr) 44px auto;align-items:center;gap:0 10px;height:auto;min-height:74px;padding-block:14px}
 .ar-site .ar-header .mk-header-row>.brand{grid-column:1;grid-row:1;order:0}
 .ar-site .ar-header .mk-header-row>.mk-menu-button{grid-column:2;grid-row:1;order:0}
 .ar-site .ar-header .mk-header-row>.mk-header-actions{grid-column:3;grid-row:1;order:0}
 .ar-site .ar-header .brand{min-width:0;max-width:100%}
 .ar-site .ar-header .brand-lockup{max-width:100%;object-position:left center}
 .ar-site .ar-header .mk-menu-button{width:44px;min-width:44px;min-height:44px;margin:0}
 .ar-site .ar-header .mk-header-actions{min-width:0;gap:6px}
 .ar-site .ar-header .mk-session-account,.ar-site .ar-header .mk-session-logout{display:none}
 .ar-site .ar-header .mk-nav>.mk-session-mobile{display:flex;align-items:center;width:100%;min-height:48px;padding:12px 4px;text-align:left;box-sizing:border-box}
 .ar-site .ar-header .mk-nav{position:static;inset:auto;grid-column:1/-1;grid-row:2;order:0;width:100%;height:auto;max-height:none;overflow:visible;display:none;align-items:stretch;justify-content:flex-start;gap:0;margin:14px 0 0;padding:6px 0 0;border-top:1px solid #c8ddcf;box-shadow:none;background:transparent}
 .ar-site .ar-header .mk-nav.is-open{display:block}
 .ar-site .ar-header .mk-nav>details{display:block;position:static;width:100%;height:auto;flex:none;margin:0}
 .ar-site .ar-header .mk-nav>details>summary,.ar-site .ar-header .mk-nav>a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 4px;line-height:1.6;width:100%;box-sizing:border-box}
 .ar-site .ar-header .ar-mega{position:static;inset:auto;transform:none;width:100%;max-width:100%;height:auto;max-height:none;overflow:visible;margin:0 0 12px;padding:18px 16px;border-radius:12px;box-sizing:border-box}
 .ar-site .ar-header .ar-mega-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
 .ar-site .ar-header .ar-mega-grid>*,.ar-site .ar-header .ar-mega-heading>*{min-width:0}
 .ar-site .ar-header .ar-mega-heading{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;margin-bottom:18px}
 .ar-site .ar-header .ar-mega-heading strong{font-size:17px;line-height:1.6}
 .ar-site .ar-header .ar-mega a{overflow-wrap:anywhere;word-break:keep-all;min-height:44px}
 .ar-site .ar-header .ar-mega-grid a{margin-top:10px;padding-block:7px;line-height:1.6}
 .ar-site .ar-header .ar-mega-grid a span{line-height:1.7}
 .ar-site .ar-header .ar-mega>p{margin-top:18px;padding-top:14px;line-height:1.8}
 .ar-site .ar-header .mobile-public-menu-close{display:block;width:100%;margin:14px 0 0;min-height:44px;border:1px solid #c8ddcf;border-radius:9px;background:#edf5ef;color:#173b32;font:inherit;font-weight:600}
}
@media(max-width:480px){
 .ar-site .ar-header .ar-mega-grid{grid-template-columns:minmax(0,1fr)}
 .ar-site .ar-header .ar-mega-grid>div+div{border-top:1px solid #d4e4d9;padding-top:16px}
}
.mobile-public-menu-close{display:none}
@media(max-width:760px), (max-width:960px) and (pointer:coarse){
 html{scroll-padding-top:16px}
 body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .shell{display:block}.shell .console-main{min-width:0}.shell .panels{grid-template-columns:1fr}
 .shell .sidebar[data-mobile-ready]{position:relative;height:auto;min-height:72px;padding:16px;border-right:0;border-bottom:1px solid #dce8e1}
 .shell .workspace,.shell .side-label,.shell .sidebar-bottom{display:none}
 .shell .sidebar[data-mobile-ready] .brand{max-width:calc(100% - 104px);padding:0;min-height:40px}
 .mobile-control-toggle{display:inline-flex;position:absolute;right:16px;top:14px;align-items:center;justify-content:center;gap:7px;min-width:88px;min-height:44px;padding:8px 12px;background:#e4efe8;color:#173b32;border:1px solid #c8dcd0;border-radius:10px;font:inherit;font-size:14px;font-weight:600}
 .mobile-control-toggle[aria-expanded=true]{background:#173b32;color:#fff;border-color:#173b32}
 .shell .sidebar[data-mobile-ready]:not(.mobile-menu-open) .side-nav{display:none}
 .shell .sidebar.mobile-menu-open .side-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;max-height:none;gap:7px;margin-top:16px}
 .shell .sidebar.mobile-menu-open .side-nav button{min-height:48px;height:auto;padding:10px 4px;font-size:13px;line-height:1.5}
 .shell .topbar{padding:10px 16px;gap:8px;align-items:center}
 .shell .topbar>span{font-size:12px;overflow-wrap:anywhere}
 .shell .topbar>div{flex-wrap:wrap;min-width:0;max-width:100%;line-height:1.6;overflow-wrap:anywhere}
 .shell .topbar .avatar{flex:none}
 .shell .content{padding:18px 14px 32px}
 .shell .page-title{gap:14px;padding:18px 16px;margin-bottom:18px}
 .shell .page-title>div:first-child{padding-left:0;min-width:0}
 .shell .page-title .control-title-icon{position:static;float:left;width:36px;height:36px;margin:0 10px 8px 0;border-radius:10px}
 .shell .page-title .eyebrow{min-height:36px;display:flex;align-items:center;margin:0 0 8px;font-size:12px}
 .shell .page-title h1{clear:both;font-size:25px;line-height:1.4}
 .shell .page-title p{max-width:none;font-size:14px;line-height:1.75;word-break:keep-all;overflow-wrap:anywhere}
 .shell .panel,.shell .resource-card{padding:18px 16px}
 .shell .panel-heading{align-items:flex-start;gap:12px}
 .shell .panel h2,.shell .data-list-heading h2{font-size:20px;line-height:1.5}
 .shell .resource-head h3{font-size:19px;line-height:1.5}
 .shell .resource-head,.shell .resource-actions,.shell .admin-actions{gap:8px;flex-wrap:wrap}
 .shell .resource-actions{width:100%}
 .shell .btn,.shell button:not(.help-trigger):not(.mobile-control-toggle),#modal .btn,#modal .close-btn,.auth-page .btn{min-height:44px}
 .shell .btn.small,#modal .btn.small{font-size:13px;padding:10px 13px}
 .shell input:not([type=checkbox]):not([type=radio]),.shell select,.shell textarea,#modal input:not([type=checkbox]):not([type=radio]),#modal select,#modal textarea,.auth-page input:not([type=checkbox]){min-height:46px;font-size:16px;max-width:100%;min-width:0}
 .shell .field,.shell .field-help-wrap,#modal .field,#modal .field-help-wrap{min-width:0}
 .shell .row,#modal .row,.pool-member .row:has(>input[type=hidden]){grid-template-columns:1fr}
 .shell .admin-toolbar,.shell .list-toolbar,.shell .list-pager{gap:10px}
 .shell .admin-toolbar .service-search,.shell .list-search{width:100%;min-width:0;flex-basis:100%}
 .shell .list-toolbar>label{min-width:0;max-width:100%}
 .shell .admin-toolbar strong{overflow-wrap:anywhere;min-width:0}
 .shell .metrics{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .shell .metric{padding:16px 13px;min-width:0}.shell .metric-value{font-size:27px;overflow-wrap:anywhere}.shell .metric-label{font-size:13px;line-height:1.5}
 .shell .table-scroll{touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#97b5a4 #edf4ef;outline-offset:3px}
 .shell .table-scroll:focus-visible{outline:2px solid #477a5b}
 .shell .mobile-table-hint{display:block;font-size:12px;color:#61776b;line-height:1.6;margin:10px 0 7px}
 .shell .mobile-table-hint[hidden]{display:none}
 .shell th,.shell td{padding:13px 12px}.shell table .btn{min-height:44px}
 .shell .data-list-heading{padding:18px 16px 0}.shell .data-list>.list-toolbar,.shell .data-list>.list-pager{padding-inline:16px}
 .shell .service-endpoint-grid{gap:8px}.shell .service-endpoint-grid strong{font-size:16px}
 .shell .remote-onboarding{padding:20px 16px;gap:16px}.shell .remote-onboarding h2{font-size:23px}.shell .remote-onboarding li{padding:15px}
 .shell .pool-member,#modal .pool-member{min-width:0;padding:15px 12px;margin:16px 0}
 .help-trigger{width:32px;height:32px;min-height:32px;position:relative}.help-trigger::after{content:'';position:absolute;inset:-6px}
 .field-help-wrap>.field-label-copy,.field-label-copy{padding-right:40px;min-height:32px}
 .field-help-wrap>.help-trigger{top:-4px}
 .help-bubble{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto;font-size:14px;padding:15px}
 #modal{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:20px 16px;border-radius:16px;box-sizing:border-box;overscroll-behavior:contain}
 #modal .dialog-title{gap:12px;align-items:flex-start}#modal .dialog-title h2{font-size:22px;line-height:1.45}#modal .close-btn{flex:none;width:44px;min-width:44px;margin-top:-6px}
 #modal .form-actions{display:flex;flex-wrap:wrap;gap:10px}#modal .form-actions>.btn{flex:1;min-width:110px}
 #modal .check,.auth-page .check{gap:10px;line-height:1.7;min-height:44px;align-items:flex-start;padding-block:8px}
 .auth-page .auth-main{padding:30px 20px}.auth-page .auth-form{width:100%;min-width:0}.auth-page .auth-form h2{font-size:27px}
 .ar-site .ar-filter-tabs button,.ar-site .ar-faq-tabs button{min-height:44px}
 .ar-site .mk-menu-button,.ar-site .mk-header-actions .btn,.ar-site .mk-nav>details>summary,.ar-site .mk-nav>a{min-height:44px;align-content:center}
 .ar-site .ar-header .brand{min-height:44px;display:flex;align-items:center}
 .ar-site .ar-footer a:not(.brand){padding-block:8px;min-height:44px}
 .ar-site input:not([type=checkbox]):not([type=radio]),.ar-site select{font-size:16px;min-height:46px}
 .ar-site .ar-settings{max-width:100%;overflow-x:auto}
 .ar-site .ar-detail-nav a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:380px){
 .shell .topbar>span{display:none}
 .shell .topbar>div{width:100%;justify-content:flex-end}
 .shell .exposure-summary{gap:6px}.shell .exposure-summary>span{padding:10px 7px;font-size:12px}
 .shell .diagnostic-step{grid-template-columns:64px minmax(0,1fr);gap:9px;padding:12px 10px}
 .ar-site .mk-container{padding-inline:18px}
 .ar-site .ar-hero h1,.ar-site .ar-detail-grid h1{font-size:34px;line-height:1.35}
}
@media(max-height:480px) and (max-width:960px){
 #modal{max-height:calc(100dvh - 16px)}
 .ar-header{position:relative}
}
