:root{--teal:#087f73;--cyan:#52c7b2;--cyan-soft:#e8f6f2}
.flow-shell{min-height:100dvh;background:#f4f7f8;color:#09384b}.flow-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;background:white;border-bottom:1px solid #d9e5e8}.flow-brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;color:#09384b}.flow-brand img{width:54px;height:54px;object-fit:contain;border-radius:12px}.flow-brand small{display:block;color:#6f7d86}.flow-user{margin-left:auto}.flow-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);max-width:1600px;margin:auto}.flow-workspace{min-height:calc(100dvh - 87px)}
.flow-nav{display:flex;flex-direction:column;gap:.5rem;padding:1.5rem 1rem;position:relative;isolation:isolate;background:radial-gradient(ellipse at 0% 8%,#63dfbd24,transparent 58%),radial-gradient(ellipse at 100% 80%,#23b28e18,transparent 62%),linear-gradient(165deg,#0a4b40 0%,#073e36 48%,#052f2c 100%);box-shadow:inset -1px 0 #b3f3dc12}
.flow-nav::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(145deg,transparent 25%,#8cf5ce06 25.2%,transparent 55%),radial-gradient(ellipse at -140% 45%,transparent 66%,#7be2bf12 66.2%,transparent 66.5%)}
/* Decorative watermark reuses the approved FLOW logo without altering the asset. */
.flow-nav::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("brand/gam-nexus-5-flow.png") center 46% / 170px auto no-repeat;opacity:.16;filter:grayscale(1);mix-blend-mode:screen}
.flow-nav a{padding:.8rem;border:1px solid transparent;border-radius:10px;color:#e2f4ed;text-decoration:none;position:relative}
.flow-nav a:hover{background:#b1f3d914;color:#fff}
.flow-nav a.active{background:linear-gradient(110deg,#b1f3d929,#b1f3d912);border-color:#b1f3d926;box-shadow:inset 3px 0 #7bdec0;color:#fff;font-weight:700}
.flow-nav a:focus-visible{outline:2px solid #f4c95d;outline-offset:3px}.flow-main{padding:2rem;min-width:0}.flow-filters{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;padding:1.2rem;margin-bottom:1.5rem}.flow-filters label{flex:1;min-width:140px}.flow-ticket-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:1rem}.flow-ticket{padding:1.3rem}.flow-ticket-top{display:flex;gap:.5rem;justify-content:space-between;align-items:center}.flow-ticket h2{font-size:1.1rem;margin:1rem 0 .5rem}.flow-ticket h2 a{color:#09384b;text-decoration:none}.flow-ticket p{color:#6f7d86}.flow-status{background:#e8f6f2;border-radius:20px;padding:.3rem .6rem;font-size:.8rem}.flow-progress{display:flex;align-items:center;gap:.6rem;margin:1rem 0}.flow-progress progress{flex:1;accent-color:#087f73}.flow-empty,.flow-error{padding:2rem}.flow-shell .button.primary,.login-shell .button.primary{background:linear-gradient(120deg,#09384b,#087f73);color:white}
@media(max-width:700px){.flow-header{padding:.75rem;flex-wrap:wrap}.flow-user{font-size:.8rem;max-width:30%}.flow-brand strong{font-size:.85rem}.flow-brand small{font-size:.7rem}.flow-brand img{width:42px;height:42px}.flow-workspace{display:flex;flex-direction:column}.flow-workspace{min-height:0}.flow-nav{flex-direction:row;padding:.5rem;border-bottom:1px solid #b1f3d926;overflow:auto}.flow-nav a{white-space:nowrap}.flow-main{padding:1rem}.flow-filters{gap:.7rem}.flow-ticket-grid{grid-template-columns:1fr}}
@media(max-width:700px){.flow-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .5rem}.flow-brand{grid-column:1;grid-row:1}.flow-header>.button{grid-column:2;grid-row:1}.flow-user{grid-column:1 / -1;grid-row:2;max-width:none;margin-left:54px}}

@media(max-width:700px){.flow-nav::after{background-size:48px auto;background-position:right 12px center;opacity:.10}}

.flow-profile{position:relative;margin-left:auto;min-width:0}
.flow-profile .profile-chip{text-align:left;max-width:min(420px,50vw)}
.flow-profile .profile-chip>div{display:grid;min-width:0;gap:2px}
.flow-profile .profile-chip strong{font-weight:700;overflow-wrap:anywhere}
.flow-profile .profile-chip .flow-profile-position{font-size:.72rem}
.flow-profile .profile-chip small{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-profile .profile-chip-avatar{flex-shrink:0;object-fit:cover}
.flow-profile .profile-popover{top:calc(100% + 12px);right:0;max-height:calc(100dvh - 130px);overflow-y:auto}
.flow-profile .profile-popover-identity .flow-profile-position{font-size:.78rem}
@media(max-width:700px){.flow-profile{grid-column:1 / -1;grid-row:2;width:100%;margin-left:0}.flow-profile .profile-chip{max-width:100%;width:100%}.flow-profile .profile-chip>div{display:grid}.flow-profile .profile-chip-avatar{width:39px;height:39px}.flow-profile .profile-popover{left:0;right:auto;max-height:70dvh}.flow-profile .profile-chip small{max-width:calc(100vw - 100px)}}

.flow-header-tools{display:flex;align-items:center;gap:10px;margin-left:auto}.flow-header .flow-profile{margin-left:0}
.flow-header>.button{display:flex;align-items:center;gap:8px}.flow-header>.button svg{width:19px;height:19px}
.flow-logout{display:flex;align-items:center;gap:10px;padding:.8rem;border:1px solid transparent;border-radius:10px;background:transparent;color:#e2f4ed;font:inherit;text-align:left;cursor:pointer}.flow-logout svg{width:20px;height:20px}.flow-logout:hover{background:#b1f3d914;color:white}.flow-logout:focus-visible{outline:2px solid #f4c95d;outline-offset:3px}
@media(max-width:700px){.flow-header-tools{grid-column:2;grid-row:2;margin-left:0;gap:6px}.flow-header .flow-profile{grid-column:1;grid-row:2;width:auto;min-width:0}.flow-profile .profile-chip small{max-width:100%;min-width:0}.flow-nav .flow-logout{white-space:nowrap;flex-shrink:0}.flow-header-tools .icon-button{width:36px;height:36px}}

.flow-nav a,.flow-nav .flow-logout{display:flex;align-items:center;gap:12px;min-height:44px}.flow-nav a svg,.flow-nav .flow-logout svg{width:19px;height:19px;flex:0 0 19px}

.flow-nav-links{display:flex;flex-direction:column;gap:.5rem}
.flow-nav>.nexus-connection-status{margin-top:auto;display:flex;align-items:center;gap:10px;padding:13px 12px;background:#ffffff0e;border:1px solid #ffffff14;border-radius:12px;color:#fff}
.nexus-connection-status>div{display:grid;gap:3px;min-width:0}.nexus-connection-status strong{font-size:.7rem}.nexus-connection-status small{font-size:.6rem;color:#bed8cf}
.nexus-connection-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#e6bc61;box-shadow:0 0 0 4px #e6bc611f}
.is-ready .nexus-connection-dot{background:#59d19d;box-shadow:0 0 0 4px #59d19d1f}.is-offline .nexus-connection-dot{background:#f18c86;box-shadow:0 0 0 4px #f18c861f}
@media(max-width:700px){.flow-nav{flex-direction:column;overflow:visible;gap:.4rem}.flow-nav-links{flex-direction:row;overflow-x:auto;flex-shrink:0;width:100%;padding:2px}.flow-nav>.nexus-connection-status{margin-top:0;padding:8px 12px;width:100%}}
