
/* EPTT R83: ONE common, final-layer TEA2 premium-glass component stylesheet.
   Preserve original logos, radio-site photography, functional scripts and
   meaningful statuses. All 19 original page files load the SAME stylesheet. */
:root {
 --eptt83-light-ink:#163f5f;
 --eptt83-soft-ink:#35617d;
 --eptt83-edge:rgba(255,255,255,.88);
 --eptt83-blur:28px;
 --eptt83-panel:linear-gradient(133deg,
   rgba(255,255,255,.38) 0%,rgba(238,253,255,.23) 48%,
   rgba(212,242,255,.16) 100%);
 --eptt83-frost:linear-gradient(139deg,
   rgba(251,255,255,.46),rgba(219,245,255,.23));
 --eptt83-shadow:0 18px 50px rgba(12,93,147,.16),
   inset 0 1px 0 rgba(255,255,255,.92),
   inset 0 -1px 0 rgba(255,255,255,.20);
}
/* Glass must remain translucent over the ONE already-approved R75 photo. */
body.eptt-unified :is(
 .hero,.card,.panel,.module-hero,.r40-panel,.r40-row,.r40-empty,
 .rule-card,.rights-summary,.stats article,.stat-card,.metric-card,
 .step,.r71-card,.r71-settings-card,.r74-task,.r77-context,
 .r77-tabs,.r40-pill,.eptt-page-tools,.status,.notice,.callout
){
 background:var(--eptt83-panel)!important;
 border:1px solid var(--eptt83-edge)!important;
 -webkit-backdrop-filter:blur(var(--eptt83-blur)) saturate(1.55)!important;
 backdrop-filter:blur(var(--eptt83-blur)) saturate(1.55)!important;
 box-shadow:var(--eptt83-shadow)!important;
 color:var(--eptt83-light-ink)!important;
}
/* The consolidated person/channel/radio/communication/settings pages
   previously used opaque grey gradients from their original components. */
body.eptt-unified :is(
 .r77-panel .card,.r77-panel .panel,.r77-panel .r40panel,
 .r77-panel .r40-panel,.r77-panel .r40-row,
 .r77-panel .table-wrap,.r77-panel .steps,
 .r77-panel .toolbar,.r77-panel .channel-list,
 .identity-stat,.person-stat,.identity-summary,.identity-panel,
 .eptt-relations-help,.r81-explanation
){
 background:var(--eptt83-frost)!important;
 border:1px solid var(--eptt83-edge)!important;
 -webkit-backdrop-filter:blur(27px) saturate(1.42)!important;
 backdrop-filter:blur(27px) saturate(1.42)!important;
 box-shadow:0 14px 39px rgba(15,94,145,.13),
  inset 0 1px 0 rgba(255,255,255,.9)!important;
 color:var(--eptt83-light-ink)!important;
}
/* Tabs must be a single family on every consolidated page. */
body.eptt-unified :is(.r77-tab,.r40tabs button,.r71-tab){
 background:linear-gradient(135deg,rgba(251,255,255,.57),rgba(229,248,255,.38))!important;
 border:1px solid rgba(255,255,255,.94)!important;
 -webkit-backdrop-filter:blur(18px) saturate(1.4)!important;
 backdrop-filter:blur(18px) saturate(1.4)!important;
 box-shadow:0 5px 20px rgba(20,110,163,.12),
  inset 0 1px 0 rgba(255,255,255,.94)!important;
 color:#135079!important;
}
body.eptt-unified :is(.r77-tab[aria-selected="true"],.r40tabs button[aria-selected="true"],.r71-tab[aria-selected="true"]){
 background:linear-gradient(120deg,rgba(21,123,208,.93),rgba(20,192,216,.82))!important;
 border:1px solid rgba(238,254,255,.93)!important;
 box-shadow:0 7px 24px rgba(13,129,194,.20),inset 0 1px 0 rgba(255,255,255,.47)!important;
 color:#fff!important;
}
/* Input glass including original forms. Native options remain high-contrast. */
body.eptt-unified :is(
 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
 select,textarea
){
 background:rgba(250,255,255,.48)!important;
 border:1px solid rgba(255,255,255,.95)!important;
 box-shadow:0 4px 14px rgba(24,96,150,.08),
  inset 0 1px 0 rgba(255,255,255,.9)!important;
 -webkit-backdrop-filter:blur(13px) saturate(1.32)!important;
 backdrop-filter:blur(13px) saturate(1.32)!important;
 color:#143e60!important;
}
body.eptt-unified :is(input,textarea)::placeholder{color:#517c97!important;opacity:1!important}
body.eptt-unified select option{background:#f6fcff!important;color:#153f5e!important}
body.eptt-unified :is(input,select,textarea,button,a):focus-visible{
 outline:2px solid #1889d4!important;outline-offset:2px!important;
}
/* Old opaque black/navy console and notices are not consistent with TEA2. */
body.eptt-unified :is(pre,.terminal,.console,.log-output,.diagnostic-output){
 background:linear-gradient(135deg,rgba(238,250,255,.59),rgba(219,244,255,.40))!important;
 border:1px solid rgba(255,255,255,.92)!important;
 -webkit-backdrop-filter:blur(23px)!important;
 backdrop-filter:blur(23px)!important;
 color:#17425f!important;
 box-shadow:0 12px 32px rgba(14,93,145,.13)!important;
}
body.eptt-unified :is(pre,.terminal,.console,.log-output) *{color:inherit!important}
/* Keep real warning / success / error meaning without dark backgrounds. */
body.eptt-unified :is(.status.ok,.status.success,.r40-pill.ok,.badge.success){
 background:linear-gradient(132deg,rgba(231,255,243,.72),rgba(203,248,229,.49))!important;
 border:1px solid rgba(161,227,195,.92)!important;color:#146148!important;
}
body.eptt-unified :is(.status.bad,.status.error,.r40-pill.bad,.badge.error){
 background:linear-gradient(132deg,rgba(255,240,240,.79),rgba(255,217,221,.53))!important;
 border:1px solid rgba(240,175,183,.93)!important;color:#8a263c!important;
}
body.eptt-unified :is(.status.warn,.status.warning,.r40-pill.warn,.badge.warning){
 background:linear-gradient(132deg,rgba(255,252,235,.79),rgba(255,239,194,.56))!important;
 border:1px solid rgba(228,197,124,.90)!important;color:#795016!important;
}
/* Original data tables: header tint and visible glass instead of dark blocks. */
body.eptt-unified :is(.r77-panel table,.card table,.panel table){
 border-collapse:separate!important;border-spacing:0!important;
 background:rgba(249,255,255,.19)!important;
 border:1px solid rgba(255,255,255,.67)!important;
 border-radius:12px!important;
}
body.eptt-unified :is(.r77-panel table,.card table,.panel table) th{
 background:rgba(239,251,255,.48)!important;
 border-bottom:1px solid rgba(255,255,255,.68)!important;
 color:#174967!important;font-weight:780!important;
}
body.eptt-unified :is(.r77-panel table,.card table,.panel table) td{
 background:rgba(248,255,255,.15)!important;
 color:#1c4e6b!important;
 border-bottom:1px solid rgba(255,255,255,.22)!important;
}
body.eptt-unified :is(.r77-panel table,.card table,.panel table) tr:hover td{
 background:rgba(249,255,255,.31)!important;
}
/* Shared background nav/top/footer: more depth, less flat opaque cyan. */
body.eptt-unified .eptt-global-head{
 background:linear-gradient(112deg,rgba(249,255,255,.61),rgba(226,248,255,.35),rgba(211,242,255,.24))!important;
 -webkit-backdrop-filter:blur(35px) saturate(1.55)!important;
 backdrop-filter:blur(35px) saturate(1.55)!important;
 border:1px solid rgba(255,255,255,.85)!important;
 box-shadow:0 11px 39px rgba(17,86,148,.14),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
body.eptt-unified .eptt-global-nav{
 background:linear-gradient(145deg,rgba(22,102,153,.30),rgba(31,113,164,.26),rgba(15,92,141,.32))!important;
 -webkit-backdrop-filter:blur(35px) saturate(1.55)!important;
 backdrop-filter:blur(35px) saturate(1.55)!important;
 border:1px solid rgba(255,255,255,.80)!important;
 box-shadow:0 20px 55px rgba(15,81,131,.20),
  inset 0 1px 0 rgba(255,255,255,.47)!important;
}
body.eptt-unified .eptt-global-foot{
 background:linear-gradient(120deg,rgba(31,110,154,.41),rgba(28,122,175,.30),rgba(34,135,184,.36))!important;
 -webkit-backdrop-filter:blur(36px) saturate(1.56)!important;
 backdrop-filter:blur(36px) saturate(1.56)!important;
 border:1px solid rgba(255,255,255,.77)!important;
}
/* The home and new consolidated panels should retain the approved R75 photo.
   A little more transparency than the previous opaque gray/blue blocks. */
body.eptt-unified[data-page="r71-home"] .r74-task,
body.eptt-unified[data-page="r71-home"] .r74-hero,
body.eptt-unified[data-page="r71-home"] .r71-card{
 background:linear-gradient(132deg,rgba(250,255,255,.32),rgba(226,248,255,.19),rgba(218,243,255,.14))!important;
 -webkit-backdrop-filter:blur(23px) saturate(1.44)!important;
 backdrop-filter:blur(23px) saturate(1.44)!important;
}
/* Future Security remains disabled, yet visually readable. */
body.eptt-unified[data-page="r71-home"] .r74-task[data-planned="true"]{
 background:linear-gradient(135deg,rgba(244,252,255,.53),rgba(227,247,255,.42))!important;
 color:#1f4d6f!important;
}
@media(max-width:790px){
 body.eptt-unified :is(.r77-tabs,.r77-context,.card,.panel){max-width:100%!important;min-width:0!important}
 body.eptt-unified .eptt-global-head .r74-search{display:none!important;pointer-events:none!important}
}
@media(prefers-reduced-transparency:reduce){
 body.eptt-unified :is(.card,.panel,.hero,.status,.eptt-global-head,.eptt-global-nav,.eptt-global-foot){
  background:rgba(245,253,255,.95)!important;
 }
}

/* R83 final: high-specificity consolidation glass, overriding early R77-R81
   page-specific opaque gray gradients without touching layout or form events. */
body.eptt-unified[data-page="r77-people"] :is(
 .hero,.r77-tabs,.r77-context,.r77-panel .card,.r77-panel .panel,
 .r77-panel .r40panel,.r77-panel .r40-row,.eptt-relations-help,
 .identity-stat,.identity-panel
),
body.eptt-unified[data-r77-consolidated] :is(
 .hero,.r77-tabs,.r77-context,.r77-panel .card,.r77-panel .panel,
 .r77-panel .r40panel,.r77-panel .r40-row,.r77-panel .step,
 .r77-panel .toolbar,.r77-panel .channel-list,.r81-explanation
){
 background:linear-gradient(140deg,
   rgba(255,255,255,.50) 0%,
   rgba(235,250,255,.25) 40%,
   rgba(208,238,255,.18) 81%,
   rgba(251,255,255,.33) 100%)!important;
 -webkit-backdrop-filter:blur(34px) saturate(1.67) brightness(1.08)!important;
 backdrop-filter:blur(34px) saturate(1.67) brightness(1.08)!important;
 border:1px solid rgba(255,255,255,.92)!important;
 box-shadow:0 20px 52px rgba(14,85,138,.17),
   inset 0 1px 0 rgba(255,255,255,1),
   inset 0 -1px 0 rgba(238,252,255,.65)!important;
 color:#174666!important;
}
body.eptt-unified[data-r77-consolidated] :is(.r77-panel .card,.r77-panel .r40panel,.r77-panel .r40-row),
body.eptt-unified[data-page="r77-people"] :is(.r77-panel .card,.r77-panel .r40panel,.r77-panel .r40-row){
 border-radius:20px!important;
}
body.eptt-unified[data-r77-consolidated] .r77-panel :is(h1,h2,h3,h4,p,small,label),
body.eptt-unified[data-page="r77-people"] .r77-panel :is(h1,h2,h3,h4,p,small,label){
 color:#174766!important;
}
body.eptt-unified[data-r77-consolidated] .r77-tabs,
body.eptt-unified[data-page="r77-people"] .r77-tabs{
 background:linear-gradient(136deg,
  rgba(251,255,255,.38),
  rgba(226,247,255,.20),
  rgba(245,254,255,.35))!important;
 -webkit-backdrop-filter:blur(37px) saturate(1.5)!important;
 backdrop-filter:blur(37px) saturate(1.5)!important;
 border:1px solid rgba(255,255,255,.91)!important;
}
body.eptt-unified[data-page="r77-people"] .r77-tab[aria-selected="true"],
body.eptt-unified[data-r77-consolidated] .r77-tab[aria-selected="true"]{
 color:#fff!important;
 background:linear-gradient(116deg,rgba(18,140,223,.95),rgba(33,195,229,.86))!important;
}
body.eptt-unified[data-page="r77-people"] .r77-tab:not([aria-selected="true"]),
body.eptt-unified[data-r77-consolidated] .r77-tab:not([aria-selected="true"]){
 color:#164b71!important;
 background:linear-gradient(125deg,rgba(251,255,255,.74),rgba(220,245,254,.48))!important;
}
/* Decorative edge light makes the frosted sheet visible over bright photo. */
body.eptt-unified :is(.card,.panel,.r77-context,.r77-tabs,.r74-task,.hero){
 outline:1px solid rgba(255,255,255,.18)!important;
 outline-offset:1px!important;
}


/* EPTT R97 - complete the common bright TEshop-style glass layer.
   These existing admin-v5 legacy components were not selected by R83.
   This is a style-only patch: no page structure, events or access changes. */
body.eptt-unified {
  --bg:#f0f9ff;
  --panel:#ecf8ff;
  --panel2:#e3f4ff;
  --line:rgba(255,255,255,.87);
  --text:#174663;
  --muted:#4e748e;
  color-scheme:light;
}
/* Generic list items, details and nested controls no longer inherit
   the old opaque #091b2a / #081a28 panels. */
body.eptt-unified :is(
  .list > .row,.card .row,.panel .row,.shell > .row,
  .r40-panel .row,.r77-panel .row,
  .empty,details,.tablewrap,.step,.map,
  .radio-actions,.flowbox,.toolbar .field,.rule-detail
) {
  background:linear-gradient(138deg,
    rgba(255,255,255,.53),rgba(235,249,255,.30),rgba(216,242,255,.20))!important;
  border:1px solid rgba(255,255,255,.88)!important;
  -webkit-backdrop-filter:blur(26px) saturate(1.48)!important;
  backdrop-filter:blur(26px) saturate(1.48)!important;
  box-shadow:0 12px 34px rgba(15,91,146,.13),
    inset 0 1px 0 rgba(255,255,255,.95)!important;
  color:#174965!important;
}
body.eptt-unified :is(.tablewrap,.map,.r77-panel .tablewrap) {
  border-radius:16px!important;
  overflow:auto;
}
body.eptt-unified .map .placeholder {
  background:radial-gradient(circle at 42% 40%,
    rgba(252,255,255,.75),rgba(224,245,255,.54) 70%)!important;
  color:#205375!important;
}
body.eptt-unified :is(.tablewrap table,.tablewrap th,.tablewrap td) {
  background:rgba(249,255,255,.24)!important;
  color:#1b4e6f!important;
  border-color:rgba(255,255,255,.63)!important;
}
body.eptt-unified :is(.tablewrap th,.r40-table th) {
  background:rgba(241,251,255,.58)!important;
  color:#174766!important;
}
body.eptt-unified :is(.pill,.quiet,.r40-chip,.chip:not(.ok):not(.bad):not(.warn)) {
  background:linear-gradient(135deg,rgba(252,255,255,.62),rgba(223,245,255,.40))!important;
  border:1px solid rgba(255,255,255,.91)!important;
  color:#20516e!important;
  -webkit-backdrop-filter:blur(18px)!important;
  backdrop-filter:blur(18px)!important;
  box-shadow:0 5px 19px rgba(12,90,142,.11)!important;
}
body.eptt-unified :is(.top,.navwrap) {
  background:linear-gradient(117deg,
    rgba(250,255,255,.58),rgba(228,249,255,.30))!important;
  -webkit-backdrop-filter:blur(29px) saturate(1.42)!important;
  backdrop-filter:blur(29px) saturate(1.42)!important;
  border-color:rgba(255,255,255,.78)!important;
}
body.eptt-unified :is(.top nav a,.eptt-global-nav a) {
  color:#184d72!important;
  border-color:transparent;
}
body.eptt-unified :is(.top nav a:hover,.top nav a.active,.eptt-global-nav a:hover) {
  background:linear-gradient(135deg,rgba(252,255,255,.55),rgba(220,245,255,.41))!important;
  border-color:rgba(255,255,255,.88)!important;
  color:#0e5a89!important;
}
body.eptt-unified :is(button.danger,.btn.danger,.danger:not(.status):not(.pill)) {
  background:linear-gradient(138deg,
    rgba(255,238,241,.81),rgba(255,213,222,.52))!important;
  border:1px solid rgba(232,155,167,.76)!important;
  color:#8d273d!important;
}
body.eptt-unified :is(.feature,.row .feature) {
  border-color:rgba(255,255,255,.48)!important;
  color:#1b4e70!important;
}
body.eptt-unified :is(.tablewrap,details,.list > .row) :is(
  p,span,small,strong,summary,legend,label
) {
  color:#234f6c!important;
}
body.eptt-unified :is(.map,.empty,details,.tablewrap,.step,.pill) a {
  color:#126aa8!important;
}
@media(max-width:780px) {
  body.eptt-unified :is(.list > .row,.tablewrap,details,.map) {
    max-width:100%!important;
    min-width:0!important;
  }
}


/* R111: Existing R40 tables (table-wrap, not tablewrap) inherit dark
   #0d283c header from admin-r40.css even after R97; now genuinely frosted. */
body.eptt-unified :is(.table-wrap,.r40-table-wrap,.r77-panel .table-wrap) {
  background:linear-gradient(139deg,rgba(251,255,255,.50),rgba(223,245,255,.30))!important;
  border:1px solid rgba(255,255,255,.90)!important;
  -webkit-backdrop-filter:blur(28px) saturate(1.52)!important;
  backdrop-filter:blur(28px) saturate(1.52)!important;
  box-shadow:0 12px 32px rgba(13,87,136,.12),inset 0 1px 0 rgba(255,255,255,.94)!important;
  border-radius:16px!important;
  max-width:100%;
}
body.eptt-unified .table-wrap :is(table,thead,tbody,tr,td) {
  background:transparent!important;
  color:#184867!important;
  border-color:rgba(255,255,255,.68)!important;
}
body.eptt-unified .table-wrap thead th,
body.eptt-unified .r77-panel .table-wrap thead th {
  background:linear-gradient(137deg,rgba(250,255,255,.82),rgba(222,244,255,.61))!important;
  color:#194c6d!important;
  border-bottom:1px solid rgba(255,255,255,.90)!important;
  -webkit-backdrop-filter:blur(23px) saturate(1.38)!important;
  backdrop-filter:blur(23px) saturate(1.38)!important;
}
body.eptt-unified .table-wrap tbody tr:hover {
  background:rgba(228,248,255,.38)!important;
}
body.eptt-unified .table-wrap :is(td,th) :is(a,button) {
  color:#145c88!important;
}
body.eptt-unified .r40-warning {
  background:linear-gradient(133deg,rgba(255,249,227,.74),rgba(255,244,205,.39))!important;
  border:1px solid rgba(229,194,103,.76)!important;
  border-left:3px solid rgba(182,130,37,.91)!important;
  color:#795019!important;
  -webkit-backdrop-filter:blur(20px)!important;
  backdrop-filter:blur(20px)!important;
}
@media(max-width:780px) {
  body.eptt-unified :is(.table-wrap,.r40-table-wrap) {
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}


/* R117 - fix old near-black popup backdrops, onboard modal, remote desktop
   placeholders and R40 toast; no changes to actual device screen pixels. */
/* Prevent dark legacy body from flashing before the shared shell JS adds its class. */
body:not(.eptt-unified) {
  background:transparent!important;
  color:#173e59!important;
}
body.eptt-unified :is(.modal,.a43-modal,#epttBrowserRemote) {
  background:transparent!important;
  color:#164665!important;
}
/* Preserve background photo instead of hiding it behind black 76-82% overlays. */
body.eptt-unified :is(.modal-backdrop,.a43-modal-backdrop,.v5remote-backdrop) {
  background:rgba(204,234,249,.22)!important;
  -webkit-backdrop-filter:blur(14px) saturate(1.25)!important;
  backdrop-filter:blur(14px) saturate(1.25)!important;
}
body.eptt-unified dialog::backdrop {
  background:rgba(203,232,248,.24)!important;
  -webkit-backdrop-filter:blur(14px) saturate(1.25)!important;
  backdrop-filter:blur(14px) saturate(1.25)!important;
}
body.eptt-unified :is(
  .modal-panel,.modal-card,.a43-modal-card,.v5remote-panel,
  .a46-remote-card.a47-expanded
) {
  background:linear-gradient(133deg,rgba(250,255,255,.87),rgba(226,245,255,.74))!important;
  border:1px solid rgba(255,255,255,.96)!important;
  color:#184565!important;
  -webkit-backdrop-filter:blur(40px) saturate(1.55)!important;
  backdrop-filter:blur(40px) saturate(1.55)!important;
  box-shadow:0 26px 78px rgba(24,96,146,.19),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
body.eptt-unified :is(
  .modal-header,.modal-head,.a43-modal-header,
  .v5remote-head,.v5remote-tools
) {
  background:linear-gradient(136deg,rgba(251,255,255,.66),rgba(219,244,255,.43))!important;
  color:#1b4b6b!important;
  border-color:rgba(255,255,255,.82)!important;
  -webkit-backdrop-filter:blur(24px)!important;
  backdrop-filter:blur(24px)!important;
}
body.eptt-unified :is(.a43-modal-card,.modal-card,.modal-panel,.v5remote-panel)
 :is(h1,h2,h3,h4,p,small,label,strong,summary) {
  color:#184968!important;
}
body.eptt-unified :is(.a43-modal-card,.modal-card,.modal-panel,.v5remote-panel) a {
  color:#116d9c!important;
}
/* Onboarding and remote-screen workspaces previously used solid #02070a/#05080b.
   Maintain screen pixel content; change only the surrounding frame. */
body.eptt-unified :is(
 .v5remote-canvas-wrap,.a46-screen-wrap,.a46-remote-card.a47-expanded .a46-screen-wrap,
 .a48-browser-canvas-wrap,.a48-browser-usb,.a48-radio-card,
 .a44-setup-card,.a44-create-device
) {
  background:linear-gradient(140deg,rgba(249,255,255,.60),rgba(216,242,255,.37))!important;
  color:#174867!important;
  border:1px solid rgba(255,255,255,.88)!important;
  -webkit-backdrop-filter:blur(25px) saturate(1.4)!important;
  backdrop-filter:blur(25px) saturate(1.4)!important;
}
body.eptt-unified :is(.v5remote-canvas-wrap,.a48-browser-canvas-wrap) canvas,
body.eptt-unified #v5RemoteCanvas {
  background:rgba(223,243,252,.54)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.8)!important;
}
body.eptt-unified :is(.r40-toast,#a44ModalStatus) {
  background:linear-gradient(132deg,rgba(255,255,255,.87),rgba(222,245,255,.79))!important;
  color:#164868!important;
  border:1px solid rgba(255,255,255,.89)!important;
  -webkit-backdrop-filter:blur(24px)!important;
  backdrop-filter:blur(24px)!important;
  box-shadow:0 10px 28px rgba(17,106,149,.17)!important;
}
@media(max-width:780px) {
  body.eptt-unified :is(.modal-card,.modal-panel,.a43-modal-card,.v5remote-panel) {
    max-width:min(100%,96vw)!important;
    max-height:min(94dvh,920px)!important;
  }
}


/* R118: The existing server-ADB remote UI is inserted via admin-v5.js
   with INLINE black backgrounds. Override them without touching its controls,
   screen image, authentication or native ADB connection. */
body.eptt-unified #epttServerRemote > [data-server-remote-close] {
  background:rgba(204,234,249,.23)!important;
  -webkit-backdrop-filter:blur(15px) saturate(1.25)!important;
  backdrop-filter:blur(15px) saturate(1.25)!important;
}
body.eptt-unified #epttServerRemote > section {
  background:linear-gradient(135deg,rgba(252,255,255,.89),rgba(224,246,255,.76))!important;
  border:1px solid rgba(255,255,255,.94)!important;
  box-shadow:0 20px 67px rgba(21,103,151,.20),inset 0 1px 0 rgba(255,255,255,.98)!important;
  color:#154665!important;
  -webkit-backdrop-filter:blur(38px) saturate(1.48)!important;
  backdrop-filter:blur(38px) saturate(1.48)!important;
}
body.eptt-unified #epttServerRemote > section > div:has(> #serverRemoteImage) {
  background:linear-gradient(138deg,rgba(246,253,255,.72),rgba(212,241,255,.42))!important;
  border:1px solid rgba(255,255,255,.86)!important;
  -webkit-backdrop-filter:blur(24px) saturate(1.35)!important;
  backdrop-filter:blur(24px) saturate(1.35)!important;
}
body.eptt-unified #epttServerRemote :is(.row,.toolbar,.status) {
  background:linear-gradient(134deg,rgba(255,255,255,.57),rgba(222,245,255,.41))!important;
  border-color:rgba(255,255,255,.87)!important;
  color:#1a4969!important;
  -webkit-backdrop-filter:blur(20px)!important;
  backdrop-filter:blur(20px)!important;
}
body.eptt-unified #epttServerRemote :is(strong,small) {
  color:#1a4969!important;
}
/* Two existing dispatch map placeholders are created with inline #061522.
   This changes their *frame* only; keep Leaflet and map layers functional. */
body.eptt-unified :is(#r33Leaflet,#r34Leaflet) {
  background:linear-gradient(137deg,rgba(233,247,255,.79),rgba(193,230,249,.65))!important;
  border:1px solid rgba(255,255,255,.82)!important;
  -webkit-backdrop-filter:blur(20px)!important;
  backdrop-filter:blur(20px)!important;
}

/* R119: native browser dialogs replaced by accessible frosted EPTT confirmations. */
.eptt-glass-confirm{position:fixed!important;inset:0!important;z-index:2147483000!important;display:grid!important;place-items:center!important;padding:clamp(10px,3vw,24px)!important;background:rgba(202,235,251,.27)!important;-webkit-backdrop-filter:blur(18px) saturate(1.36)!important;backdrop-filter:blur(18px) saturate(1.36)!important}
.eptt-glass-confirm-card{width:min(510px,96vw)!important;max-height:min(86dvh,720px)!important;overflow:auto!important;border-radius:22px!important;padding:clamp(18px,3vw,28px)!important;background:linear-gradient(135deg,rgba(253,255,255,.93),rgba(225,246,255,.81))!important;border:1px solid rgba(255,255,255,.98)!important;-webkit-backdrop-filter:blur(37px) saturate(1.5)!important;backdrop-filter:blur(37px) saturate(1.5)!important;box-shadow:0 27px 75px rgba(18,95,145,.19),inset 0 1px 0 rgba(255,255,255,.96)!important;color:#173e5e!important}
.eptt-glass-confirm-card h2{margin:0 0 12px!important;color:#133f62!important;font-size:1.35rem!important}
.eptt-glass-confirm-message{white-space:pre-line!important;overflow-wrap:anywhere!important;color:#194866!important;line-height:1.6!important;font-size:.96rem!important}
.eptt-glass-confirm-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:12px!important;margin-top:22px!important}
.eptt-glass-confirm-actions button{appearance:none!important;min-height:43px!important;padding:10px 20px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.9)!important;color:#184c70!important;font-weight:750!important;cursor:pointer!important}
.eptt-glass-confirm-cancel{background:rgba(251,255,255,.69)!important;box-shadow:0 5px 18px rgba(24,113,166,.09)!important}
.eptt-glass-confirm-approve{background:linear-gradient(125deg,rgba(255,232,234,.92),rgba(255,211,216,.78))!important;border:1px solid rgba(227,149,159,.89)!important;color:#8b2440!important}
.eptt-glass-confirm-actions button:focus-visible{outline:3px solid #1682cb!important;outline-offset:3px!important}


/* R121: R40's full-size GPS map and stage still use solid near-black
   (#061522 / #071a28) even after all modal fixes. This lightens the
   underlying map canvas only; live map geometry, tiles, markers unchanged. */
body.eptt-unified .eg-gps-map {
  background:linear-gradient(132deg,rgba(240,251,255,.86),rgba(211,238,251,.70))!important;
  border:1px solid rgba(255,255,255,.90)!important;
  box-shadow:0 15px 34px rgba(17,100,147,.13),inset 0 1px 0 rgba(255,255,255,.93)!important;
  -webkit-backdrop-filter:blur(23px) saturate(1.40)!important;
  backdrop-filter:blur(23px) saturate(1.40)!important;
}
body.eptt-unified .eg-gps-map .eg-map-stage {
  background:linear-gradient(143deg,rgba(228,246,255,.90),rgba(192,229,247,.74))!important;
}
body.eptt-unified .eg-gps-map .eg-map-grid {
  background-image:linear-gradient(rgba(54,136,178,.12) 1px,transparent 1px),
   linear-gradient(90deg,rgba(54,136,178,.12) 1px,transparent 1px),
   radial-gradient(ellipse at 50% 40%,rgba(237,250,255,.40),rgba(218,241,253,.29))!important;
}
body.eptt-unified .eg-gps-map .eg-map-controls button {
  background:linear-gradient(125deg,rgba(255,255,255,.88),rgba(224,246,255,.73))!important;
  color:#164b70!important;
  border:1px solid rgba(255,255,255,.95)!important;
  -webkit-backdrop-filter:blur(20px)!important;
  backdrop-filter:blur(20px)!important;
}
body.eptt-unified .eg-gps-map .eg-map-marker .label {
  background:linear-gradient(127deg,rgba(255,255,255,.91),rgba(226,245,255,.82))!important;
  color:#175071!important;
  border:1px solid rgba(255,255,255,.94)!important;
  -webkit-backdrop-filter:blur(19px)!important;
  backdrop-filter:blur(19px)!important;
}

/* R229 Remote Screen: CSP-safe external glass UI */
#epttServerRemote .eptt-remote-shade {
 position:fixed;inset:0;z-index:9998;
 background:rgba(21,73,107,.35);backdrop-filter:blur(7px);
 -webkit-backdrop-filter:blur(7px);
}
#epttServerRemote .eptt-remote-dialog {
 position:fixed;z-index:9999;inset:3vh 4vw;
 display:flex;flex-direction:column;gap:10px;padding:14px;
 border-radius:18px;border:1px solid rgba(255,255,255,.90);
 color:#16486a;
 background:linear-gradient(135deg,rgba(242,251,255,.91),rgba(213,238,251,.86));
 box-shadow:0 20px 70px rgba(12,58,93,.25),inset 0 1px 0 rgba(255,255,255,.96);
 backdrop-filter:blur(25px) saturate(1.40);-webkit-backdrop-filter:blur(25px) saturate(1.40);
}
#epttServerRemote .eptt-remote-title {font-size:20px;color:#154668}
#epttServerRemote .eptt-remote-stage {
 flex:1;min-height:0;display:flex;align-items:center;justify-content:center;
 overflow:auto;border-radius:12px;border:1px solid rgba(255,255,255,.90);
 background:linear-gradient(135deg,rgba(219,239,250,.76),rgba(185,224,244,.61));
}
#epttServerRemote .eptt-remote-image {
 max-width:100%;max-height:100%;object-fit:contain;
 touch-action:none;cursor:crosshair;
}
/* R230 CSP-safe active EPTT forms */
.eptt-setup-step-row{display:flex;gap:8px;align-items:flex-start}
.eptt-setup-step-icon{min-width:18px}
.eptt-delete-radio{border-color:#8b3340!important}
.eptt-checkbox-compact{width:auto!important}
.eptt-channel-order{width:90px!important;max-width:100%}
.eptt-install-url{margin-top:8px;overflow-wrap:anywhere;word-break:break-word}
.eptt-install-open-link{display:inline-flex;margin-top:10px}
/* R231 remaining active owner CSP-safe styles */
.eptt-r231-invite-link{margin-top:8px;overflow-wrap:anywhere;word-break:break-word}
.eptt-r231-copy-link{margin-top:8px}
.eptt-r231-margin-10{margin-top:10px}
.eptt-r231-label-spacer{display:block;margin-bottom:6px}
