#datapad-neon-scan .cu-product{height:100dvh;min-height:0!important}
#datapad-neon-scan .cu-layout{flex:1;min-height:0!important;overflow:hidden}
#datapad-neon-scan .cu-main{display:flex;flex-direction:column;min-height:0;overflow:auto;overscroll-behavior:contain}
#datapad-neon-scan .cu-main[data-module-open=true]{overflow:hidden}
#datapad-neon-scan .cu-nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#datapad-neon-scan .cu-main>[hidden],#datapad-neon-scan .cu-screen-host>[hidden]{display:none!important}
#datapad-neon-scan .cu-heading{gap:12px;flex-wrap:wrap;flex:none}
#datapad-neon-scan .cu-heading .cu-row{gap:8px}
#datapad-neon-scan .cu-screen-host{flex:1;min-height:0;display:flex;flex-direction:column}
#datapad-neon-scan .cu-frame-view{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}
#datapad-neon-scan .cu-module-frame{display:block;width:100%;height:100%;flex:1 1 0;min-height:0;border:0;background:var(--cu-bg);color-scheme:dark}
#datapad-neon-scan .cu-frame-status{font-size:12px;color:var(--cu-muted);margin:0 0 10px}
#datapad-neon-scan .cu-frame-retry{position:absolute;top:40px;left:12px;z-index:2}
#datapad-neon-scan .cu-top [data-route=account]{max-width:190px;overflow-wrap:anywhere;border-color:#33ffdc55;background:#33ffdc0e;color:var(--cu-teal)}
#datapad-neon-scan .cu-role{font-size:10px;letter-spacing:.09em;color:var(--cu-muted)}
#datapad-neon-scan .cu-nav .cu-nav-foot{display:flex;align-items:center;gap:9px;margin-top:auto;text-transform:none;font-size:14px;width:100%;flex:none;line-height:1.35}
#datapad-neon-scan .cu-nav .cu-nav-foot:after{display:none}
#datapad-neon-scan .cu-footer{flex:none}
#datapad-neon-scan .cu-mission h3{white-space:pre-line;overflow-wrap:anywhere;font-size:clamp(34px,4vw,60px)}
#datapad-neon-scan .cu-terminal h3{font-size:clamp(32px,3.6vw,48px);line-height:1}
#datapad-neon-scan .cu-terminal-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 20px;padding:12px 0;border-top:1px solid #33ffdc33;border-bottom:1px solid #33ffdc33}
#datapad-neon-scan .cu-terminal-status div{min-width:0}
#datapad-neon-scan .cu-terminal-status dt,#datapad-neon-scan .cu-terminal-log small{font:10px/1.5 "Chakra Petch",monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--cu-muted)}
#datapad-neon-scan .cu-terminal-status dd{font:600 15px/1.3 "Rajdhani",sans-serif;color:var(--cu-teal);margin:5px 0 0;overflow-wrap:anywhere}
#datapad-neon-scan .cu-terminal-log{margin:0 0 16px}
#datapad-neon-scan .cu-terminal-log p{margin:3px 0;max-width:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#datapad-neon-scan .cu-terminal-actions{justify-content:flex-start;gap:8px}
#datapad-neon-scan .cu-terminal{grid-template-columns:minmax(0,1fr) minmax(220px,.65fr);align-items:center}
#datapad-neon-scan .cu-terminal-profile{position:relative;z-index:1;justify-self:center;width:100%;max-width:290px;min-width:0;padding:16px;border:1px solid #33ffdc44;background:linear-gradient(145deg,#33ffdc09,#07131de6);box-shadow:inset 0 0 25px #33ffdc06}
#datapad-neon-scan .cu-terminal-profile .cu-kicker{font-size:10px;color:var(--cu-teal);margin-bottom:12px}
#datapad-neon-scan .cu-terminal-person{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center}
#datapad-neon-scan .cu-terminal-portrait{position:relative;display:grid;place-items:center;overflow:hidden;isolation:isolate;width:100%;aspect-ratio:4/5;background:radial-gradient(ellipse,#14515a,#06141e);border:1px solid #33ffdc88;clip-path:polygon(0 0,82% 0,100% 14%,100% 100%,0 100%);font:600 42px "Rajdhani",sans-serif;color:var(--cu-teal)}
#datapad-neon-scan .cu-terminal-portrait img{position:absolute;inset:0}
#datapad-neon-scan .cu-terminal-portrait:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:repeating-linear-gradient(0deg,#020b1030 0 1px,transparent 1px 4px),linear-gradient(135deg,#33ffdc18,transparent 65%);box-shadow:inset 0 0 18px #33ffdc22}
#datapad-neon-scan .cu-terminal-portrait:after{content:"";position:absolute;left:0;right:0;top:0;height:2px;z-index:2;background:#33ffdca0;box-shadow:0 0 10px #33ffdc88;animation:cu-portrait-scan 9s linear infinite;pointer-events:none}
#datapad-neon-scan .cu-terminal-profile-data{min-width:0;overflow-wrap:anywhere}
#datapad-neon-scan .cu-terminal-level{font:600 20px/1.2 "Rajdhani",sans-serif;color:#f1ffff;letter-spacing:.06em}
#datapad-neon-scan .cu-terminal-profile-data p{margin:6px 0 12px;max-width:none;font-size:13px;line-height:1.4;color:var(--cu-teal)}
#datapad-neon-scan .cu-terminal-vitals{margin-bottom:12px}
#datapad-neon-scan .cu-terminal-vitals small{display:block;font:10px/1.4 "Chakra Petch",monospace;color:var(--cu-muted);letter-spacing:.08em}
#datapad-neon-scan .cu-terminal-vitals strong{display:block;margin-top:3px;font:600 17px/1.3 "Rajdhani",sans-serif;color:var(--cu-text)}
#datapad-neon-scan .cu-terminal-profile-data button{min-height:34px;padding:7px 8px;font-size:11px;text-align:left;white-space:normal}
@keyframes cu-portrait-scan{0%,15%{top:-2px;opacity:0}18%{opacity:1}80%{top:100%;opacity:1}83%,100%{top:100%;opacity:0}}
@media(prefers-reduced-motion:reduce){#datapad-neon-scan .cu-terminal-portrait:after{animation:none;top:25%}}
#datapad-neon-scan .cu-stat-grid{margin-bottom:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
#datapad-neon-scan .cu-stat{min-width:0;padding:10px}
#datapad-neon-scan .cu-stat strong{font-size:21px;overflow-wrap:anywhere}
#datapad-neon-scan .cu-crew-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin-bottom:18px}
#datapad-neon-scan .cu-product .cu-person{margin:0;min-width:0;align-items:center;background:#081923;border:1px solid #20515d;padding:10px;gap:10px;text-transform:none;letter-spacing:0}
#datapad-neon-scan .cu-person>span:last-child{min-width:0;overflow-wrap:anywhere}
#datapad-neon-scan .cu-portrait{width:50px;height:60px;flex:none;display:flex;align-items:center;justify-content:center;overflow:hidden}
#datapad-neon-scan .cu-portrait img,#datapad-neon-scan .cu-terminal-portrait img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) sepia(.7) hue-rotate(125deg) saturate(3.4) brightness(.92) contrast(1.12)}
#datapad-neon-scan .cu-error{margin-top:12px;font-size:12px;color:#f4ffd9;border-left:2px solid #dbff4a88;padding:8px 12px;background:#dbff4a09}
#datapad-neon-scan .cu-page-body .cu-note-row button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
#datapad-neon-scan .cu-home-grid section+.cu-section-label{margin-top:22px}
#datapad-neon-scan .cu-assignments{border-color:#dbff4a55}
#datapad-neon-scan .cu-assignments:before{background:#dbff4a99}
#datapad-neon-scan .cu-assignment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
#datapad-neon-scan .cu-assignment-heading h3{margin:0}
#datapad-neon-scan .cu-assignment-count{font:600 15px/1.4 "Chakra Petch",monospace;color:#f4ffd9;padding:6px 10px;border:1px solid #dbff4a55;background:#dbff4a0c;white-space:nowrap}
#datapad-neon-scan .cu-assignment-count.cu-all-clear{color:var(--cu-teal);border-color:#33ffdc55;background:#33ffdc0c}
#datapad-neon-scan .cu-assignments h4{font:600 23px/1.2 "Rajdhani",sans-serif;color:var(--cu-text);margin:10px 0;overflow-wrap:anywhere}
#datapad-neon-scan .cu-assignment-priority{color:#f4ffd9;font-size:12px;margin:8px 0}
#datapad-neon-scan .cu-assignment-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:10px 0 18px}
#datapad-neon-scan .cu-assignment-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}
#datapad-neon-scan .cu-assignment-footer .cu-row{gap:8px}
#datapad-neon-scan .cu-assignment-footer small,#datapad-neon-scan .cu-muted{color:var(--cu-muted)}
#datapad-neon-scan .cu-phone{height:calc(100dvh - 24px);display:flex;flex-direction:column}
#datapad-neon-scan .cu-phone .cu-layout{display:flex;flex-direction:column}
#datapad-neon-scan .cu-phone .cu-main{order:1;flex:1;padding:16px 10px}
#datapad-neon-scan .cu-phone .cu-nav{order:2;flex:none;display:flex;flex-direction:row}
#datapad-neon-scan .cu-phone .cu-nav .cu-nav-foot{display:none}
#datapad-neon-scan .cu-phone .cu-heading{margin-bottom:12px;padding-bottom:12px}
#datapad-neon-scan .cu-phone .cu-heading h2{font-size:29px}
#datapad-neon-scan .cu-phone .cu-terminal h3{font-size:36px}
#datapad-neon-scan .cu-phone .cu-terminal-status{gap:8px}
#datapad-neon-scan .cu-phone .cu-terminal-profile{max-width:none;padding:12px}
#datapad-neon-scan .cu-phone .cu-terminal-person{grid-template-columns:76px minmax(0,1fr);gap:12px}
#datapad-neon-scan .cu-phone .cu-terminal-profile-data p{margin:4px 0 8px}
#datapad-neon-scan .cu-phone .cu-terminal-vitals{margin-bottom:8px}
#datapad-neon-scan .cu-phone .cu-heading button{font-size:12px;min-height:38px;padding:8px}
#datapad-neon-scan .cu-phone .cu-top{padding:12px 10px}
#datapad-neon-scan .cu-phone .cu-brand{gap:7px;flex:1}
#datapad-neon-scan .cu-phone .cu-brand strong{font-size:21px}
#datapad-neon-scan .cu-phone .cu-top [data-route=account]{font-size:11px;max-width:110px;padding:7px;min-height:38px}
#datapad-neon-scan .cu-phone .cu-role{display:none}
#datapad-neon-scan .cu-phone .cu-search input{min-height:38px}
#datapad-neon-scan .cu-phone .cu-footer{padding:8px}
@media(max-width:720px){#datapad-neon-scan .cu-home-secondary{display:block!important}}
@media(max-width:720px){#datapad-neon-scan .cu-terminal-profile{max-width:none}#datapad-neon-scan .cu-terminal-person{grid-template-columns:76px minmax(0,1fr);gap:12px}}

.cu-profile-card .cu-person{width:100%}.cu-backstory{padding:12px;color:var(--text,#deeeee)}.cu-backstory summary{cursor:pointer;color:var(--cyan,#8cece2)}.cu-backstory p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
#datapad-neon-scan .cu-session-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;margin:0 0 22px;border:1px solid #20515d;background:#081923}
#datapad-neon-scan .cu-session-strip>div{min-width:0;display:grid;gap:8px;align-content:start}
#datapad-neon-scan .cu-session-strip small{font-size:10px;letter-spacing:.08em;color:var(--cu-teal)}
#datapad-neon-scan .cu-session-strip button{padding:6px 0;border:0;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere;text-transform:none}
#datapad-neon-scan .cu-search-result{padding:16px 0;border-bottom:1px solid #20515d}
#datapad-neon-scan .cu-search-result h3{margin:0 0 8px;font-size:22px}
#datapad-neon-scan .cu-search-result .cu-row{margin-top:12px}
#datapad-neon-scan .cu-character-ident{display:flex;align-items:center;gap:8px;min-width:0;color:var(--cu-text)}
#datapad-neon-scan .cu-ident-photo{width:32px;height:38px;display:grid;place-items:center;overflow:hidden;border:1px solid #33ffdc55;background:#081923}
#datapad-neon-scan .cu-ident-photo img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) sepia(.7) hue-rotate(125deg) saturate(3.4)}
#datapad-neon-scan [data-character-select]{max-width:160px;min-height:40px;padding:8px;background:#081923;color:var(--cu-text);border:1px solid #33ffdc55;font:inherit}
#datapad-neon-scan .cu-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#datapad-neon-scan .cu-character-ident[hidden]{display:none!important}
@media(max-width:720px){#datapad-neon-scan .cu-session-strip{grid-template-columns:1fr;gap:12px;padding:12px}#datapad-neon-scan .cu-character-ident{margin-left:auto}#datapad-neon-scan .cu-character-ident>span:not(.cu-ident-photo){display:none}#datapad-neon-scan [data-character-select]{max-width:110px;min-height:38px;padding:6px;font-size:12px}#datapad-neon-scan .cu-ident-photo{width:28px;height:34px}#datapad-neon-scan .cu-top [data-route=account]{max-width:60px;font-size:0}#datapad-neon-scan .cu-top [data-route=account]:after{content:'Account';font-size:11px}}

/* Keep account identity inside the navigation rail, including long callsigns. */
#datapad-neon-scan .cu-nav{overflow-x:hidden}
#datapad-neon-scan .cu-nav .cu-nav-foot{box-sizing:border-box;min-width:0;max-width:100%;padding:12px 8px;gap:8px;letter-spacing:0;text-align:left}
#datapad-neon-scan .cu-nav .cu-nav-foot>span:last-child{min-width:0;flex:1;overflow-wrap:anywhere}
#datapad-neon-scan .cu-nav .cu-nav-foot strong{display:block;font-size:15px;line-height:1.35;letter-spacing:0;text-transform:none}
#datapad-neon-scan .cu-nav .cu-nav-foot small{display:block;font-size:10px;line-height:1.4;letter-spacing:.02em;white-space:normal;overflow-wrap:normal}
#datapad-neon-scan .cu-nav .cu-nav-foot .cu-avatar{width:28px;height:28px;font-size:13px}
@media(min-width:721px){#datapad-neon-scan .cu-product:not(.cu-phone) .cu-layout{grid-template-columns:172px minmax(0,1fr)}}


/* Only the active Confluence iframe can request an expanded table. */
#datapad-neon-scan .cu-frame-view.cu-table-expanded{position:fixed;inset:0;z-index:10000;width:100vw;height:100dvh;background:#0b171c}
#datapad-neon-scan .cu-table-expanded .cu-module-frame{width:100%;height:100%;min-height:0}

/* Reclaim vertical space for the full-size 3×3 mat during a Confluence game. */
#datapad-neon-scan .cu-confluence-match .cu-top,#datapad-neon-scan .cu-confluence-match .cu-footer{display:none!important}
#datapad-neon-scan .cu-confluence-match .cu-main{padding:0!important}
@media(max-width:1159px){
 #datapad-neon-scan .cu-confluence-match .cu-nav{display:none!important}
 #datapad-neon-scan .cu-confluence-match .cu-layout{display:flex!important;flex-direction:column}
 #datapad-neon-scan .cu-confluence-match .cu-main{flex:1}
}


/* The active phone table uses the whole dynamic viewport, including in the phone shell. */
@media(max-width:915px),(max-width:1100px) and (max-height:600px){
 html:has(.cu-confluence-match),body:has(.cu-confluence-match){height:100dvh;overflow:hidden}
 #datapad-neon-scan .cu-product.cu-confluence-match{width:100%;max-width:none;height:100dvh;min-height:0;margin:0;border:0;box-shadow:none;border-radius:0}
 #datapad-neon-scan .cu-confluence-match .cu-layout{padding:0;border:0;width:100%;height:100%;min-height:0}
 #datapad-neon-scan .cu-confluence-match .cu-main{width:100%;min-width:0;margin:0;border:0}
}


/* Shared rhythm and compact navigation, keeping the field-terminal styling. */
#datapad-neon-scan .cu-nav [data-more]{display:none}
#datapad-neon-scan .cu-more-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;background:#081420;color:#e2edf2;border:1px solid #33ffdc80;padding:20px}
#datapad-neon-scan .cu-more-dialog::backdrop{background:#01060bdc}
#datapad-neon-scan .cu-more-dialog h2{font-size:25px;margin:0 0 16px}
#datapad-neon-scan .cu-more-dialog button{display:block;width:100%;text-align:left;min-height:48px;margin-top:8px}
#datapad-neon-scan .cu-session-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
#datapad-neon-scan .cu-terminal{padding:24px;gap:24px}
#datapad-neon-scan .cu-terminal h3{font-size:clamp(30px,3.2vw,42px)}
#datapad-neon-scan .cu-result-excerpt{max-width:85ch;font-size:15px;line-height:1.6;color:#b6cbd2;margin:10px 0}
@media(max-width:720px){
 #datapad-neon-scan .cu-phone .cu-nav [data-route=tools],#datapad-neon-scan .cu-phone .cu-nav [data-route=training],#datapad-neon-scan .cu-phone .cu-nav [data-route=confluence]{display:none}
 #datapad-neon-scan .cu-phone .cu-nav [data-more]{display:flex}
 #datapad-neon-scan .cu-phone .cu-nav button{min-height:52px;flex:1 1 0;font-size:12px}
 #datapad-neon-scan .cu-phone .cu-footer{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
 #datapad-neon-scan .cu-phone .cu-top{padding:10px;gap:8px}
 #datapad-neon-scan .cu-phone .cu-heading h2{font-size:27px}
 #datapad-neon-scan .cu-phone .cu-heading .cu-row{gap:6px}
 #datapad-neon-scan .cu-phone .cu-heading button{min-height:44px}
 #datapad-neon-scan .cu-phone .cu-terminal{padding:16px;gap:16px}
 #datapad-neon-scan .cu-session-strip{grid-template-columns:1fr}
}
