/* AllTrack360 design tokens. Shared across login, platform admin and customer workspace. */
:root{--accent:#1689f7;--accent2:#34bce9;--brand-navy:#102b4b;--radius:18px;--shadow:0 12px 34px rgba(33,67,108,.055)}
body{letter-spacing:-.005em}button,a,input,select,textarea{touch-action:manipulation}:focus-visible{outline:3px solid #61bcff;outline-offset:3px}
.sidebar{background:linear-gradient(180deg,#0b2037,#0b172b);width:258px}.sidebar-brand{padding:11px 8px;margin-bottom:18px}.sidebar-brand img{max-width:220px}.nav-item{padding:10px 12px}.nav-item.active{background:linear-gradient(90deg,rgba(17,149,255,.23),rgba(36,190,230,.08));box-shadow:inset 3px 0 #33bcf2}
.admin-body{--admin-accent:#1689f7;--admin-accent2:#34bce9}.admin-sidebar,.admin-mobile-nav{background:#0b1e34}.admin-scope{border-color:#244564;background:linear-gradient(120deg,rgba(22,137,247,.12),rgba(52,188,233,.04))}.admin-pill{border-color:#cfe7fa;background:var(--panel)}.admin-pill span{background:#13b68a;box-shadow:0 0 0 4px #11b98115}.admin-banner{border-color:var(--line);background:radial-gradient(circle at 0 0,#1689f710,transparent 55%),var(--panel)}.admin-banner-stat{background:linear-gradient(135deg,#1689f7,#24bce4)}.integration-card:after{background:linear-gradient(90deg,#1689f7,#24bce4)}.topbar{min-height:82px;height:auto;padding-top:14px;padding-bottom:14px}.content{padding-top:26px}.page-head{margin-bottom:24px}.card-title h3{line-height:1.35}.provider-card:before{width:4px}.btn{transition:background .15s,box-shadow .15s,border-color .15s}.btn.primary{background:linear-gradient(110deg,#1689f7,#35bce9);border-color:#259aee}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.badge{white-space:normal}.table td{font-variant-numeric:tabular-nums}.table small{display:block}.code,pre{overflow-wrap:anywhere}.table-wrap pre{white-space:pre-wrap;max-width:500px}input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--accent);margin:0}.check-line{padding:6px 0}details>summary{cursor:pointer}.alert.warning{background:#fff7e9;border-color:#f7ddad;color:#906209}
.permission-row{align-items:center;gap:14px}.permission-row[hidden]{display:none}.permission-row select{max-width:200px;margin:0}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 16px}.permission-grid label,.check-grid label{display:flex;align-items:center;gap:9px;font-weight:600}.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.plan-price{font-size:34px;font-weight:850;letter-spacing:-.04em;margin:16px 0}.plan-price small{font-size:12px;color:var(--muted);font-weight:600}.secret-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.integration-meta{font-size:11px;color:var(--muted);margin:12px 0}.scope-bar{display:flex;align-items:end;gap:12px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:16px;margin-bottom:20px}.scope-bar label{flex:1}.scope-bar .btn{flex:none}.diagnostic-step{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);gap:10px}.diagnostic-step:last-child{border:0}.diagnostic-step span{font-size:12px}.diagnostic-step strong{font-size:13px}.readiness-note{border-left:3px solid var(--accent);padding:8px 15px;color:var(--muted)}.test-time{font-variant-numeric:tabular-nums}.release-hero{border:1px solid var(--line);background:linear-gradient(115deg,#0c2341,#145681);color:#fff}.release-hero p{color:#c9e4f9}.release-hero h2{font-size:38px;letter-spacing:-.04em}.release-orbit{background:#ffffff10;border-color:#ffffff22}.integration-hint{flex-wrap:wrap}.value.small{font-size:21px}.metric .sub{overflow-wrap:anywhere}.status-pill{max-width:210px}.table-wrap{scrollbar-width:thin}
/* Supplied pale split login reference. */
.login-page{background:#eff5fc;color:var(--brand-navy);position:relative}.login-page:before,.login-page:after{display:none}.login-layout{display:grid;grid-template-columns:54% 46%;min-height:100vh;min-height:100dvh}.login-story{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(125deg,#e5f1fd,#eaf3fe 70%,#e2effb);padding:60px 7vw}.login-story:before,.login-story:after{content:'';position:absolute;width:470px;height:470px;border-radius:50%;border:1px solid #abc9e92e;pointer-events:none}.login-story:before{right:-285px;top:-285px;background:#1689f704}.login-story:after{left:-280px;bottom:-350px}.story-inner{width:100%;max-width:680px}.story-brand{display:flex;align-items:center;gap:14px;margin-bottom:62px}.story-brand strong{font-size:27px;letter-spacing:-.045em;display:block}.story-brand small{display:block;font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:850;color:#687e94;margin-top:4px}.story-mark{display:grid;place-items:center;width:50px;height:54px;background:linear-gradient(140deg,#1689f7,#38bce9);border-radius:16px;box-shadow:0 12px 26px #178ee72b;color:#fff}.story-mark svg{width:24px;height:27px;fill:none;stroke:currentColor;stroke-width:1.6}.story-kicker{font-size:11px;font-weight:900;color:#1686dd;letter-spacing:.15em;text-transform:uppercase;margin:0 0 20px}.story-inner h1{font-size:clamp(36px,3.35vw,61px);font-weight:820;line-height:1.1;letter-spacing:-.05em;margin:0 0 26px;max-width:720px}.story-description{font-size:15px;line-height:1.8;color:#61778e;max-width:650px;margin:0}.story-benefits{display:grid;gap:16px;margin-top:32px}.story-benefits>div{display:flex;align-items:center;gap:13px;font-size:12px}.story-benefits>div>span{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;border:1px solid #dbeafa;background:#f7fbff;color:#2388ff;box-shadow:0 4px 14px #16498207}.login-form-stage{padding:50px 7%;display:grid;place-items:center;position:relative;overflow:hidden}.login-halo{position:absolute;width:min(680px,85vw);aspect-ratio:1;border:1px solid #d5e7fa7d;border-radius:50%;background:#fbfdff5c;box-shadow:0 0 0 70px #deeffb21}.login-card{width:min(460px,100%);padding:32px 32px 25px;border:1px solid #e2ebf3;box-shadow:0 32px 65px #213e5b17;border-radius:24px;background:#fff;backdrop-filter:none}.login-logo{width:min(310px,94%);margin:0 auto 14px;max-height:99px;object-fit:contain}.login-card h2{text-align:center;font-size:29px;letter-spacing:-.035em;line-height:1.15;margin:0 0 10px;color:#132c48}.login-intro{text-align:center;font-size:12px;line-height:1.6;color:#78879a;margin:0 0 24px}.login-field{font-size:11px;gap:6px}.login-control input{font-size:13px;min-height:48px;border-color:#d8e1ea}.login-control input[type=password],#loginPassword{padding-right:44px}.password-eye{position:absolute;right:8px;top:7px;bottom:7px;width:33px;background:transparent;border:0;color:#7b8b9d;border-radius:8px}.password-eye:hover{background:#edf5fe}.login-form{gap:16px}.challenge-title{display:flex;justify-content:space-between;align-items:center}.challenge-title b{color:#158bdc}.login-submit{margin:0;min-height:48px}.login-languages{gap:7px;margin-top:18px;flex-wrap:wrap}.login-languages a{min-width:39px;height:31px;padding:0 9px;font-size:10px}.login-assurance{font-size:10px;text-align:center;color:#8594a4;line-height:1.6;margin:17px 0 0}.login-assurance span{color:#299ddf;margin-right:6px}.login-copyright{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#8294a7;font-size:10px;pointer-events:none}.login-copyright span{padding:0 8px}.login-error{font-size:12px;text-align:left}.brand-muted{font-weight:600;color:var(--muted)}
[data-theme=dark] .admin-pill{border-color:var(--line)}[data-theme=dark] .badge.green{background:#103429;color:#65dfb1;border-color:#1b5b46}[data-theme=dark] .badge.blue{background:#132e49;color:#84cafa;border-color:#244a6b}[data-theme=dark] .alert.info{background:#102a44;border-color:#214e71;color:#aedaff}[data-theme=dark] .btn.danger{background:transparent}[data-theme=dark] .alert.warning{background:#382916;border-color:#584323;color:#f3d38b}[data-theme=dark] .sidebar-brand{background:#fff}[data-theme=dark] .metric-icon{background:#183656}
@media(min-width:1700px){.login-story{padding:70px 8vw}.login-form-stage{padding-left:9%;padding-right:12%}}
@media(max-width:1180px){.login-story{padding:45px 5vw}.story-inner h1{font-size:40px}.story-brand{margin-bottom:42px}.login-form-stage{padding:36px 6%}.login-card{padding:26px}.story-brand small{font-size:9px}}
@media(max-width:900px){.login-layout{grid-template-columns:1fr}.login-story{display:none}.login-form-stage{min-height:100dvh;padding:36px 20px 58px}.login-card{max-width:430px}.scope-bar{flex-wrap:wrap}.scope-bar label{min-width:220px}.topbar{padding:12px 14px}.top-actions{gap:6px}}
@media(max-width:620px){.login-card{padding:25px 22px;border-radius:22px}.login-card h2{font-size:26px}.login-copyright{font-size:9px;bottom:13px}.login-control input{font-size:16px}.permission-row{grid-template-columns:1fr}.permission-row select{max-width:100%}.check-grid,.permission-grid{grid-template-columns:1fr}.scope-bar{padding:13px}.scope-bar label{min-width:100%}.admin-banner{padding:18px}.release-hero h2{font-size:30px}.topbar{min-height:70px}.secret-actions .btn{flex:1}.diagnostic-step{align-items:flex-start}.provider-card .card-title{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.login-copyright,.profile-menu,.mobile-nav{display:none!important}.main-wrap{margin:0}.release-hero{color:#000;background:#fff}}

.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.access-option{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.access-option[hidden]{display:none}.access-option small{display:block;font-size:10px;margin-top:3px}.access-option select{width:140px;margin:0;flex-shrink:0}.field-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 18px;margin-top:12px}.field-options .check-line{justify-content:flex-start}.permission-search{width:220px;margin:0}.sticky-save{position:sticky;bottom:20px;padding:12px;border:1px solid var(--line);background:var(--panel);border-radius:14px;box-shadow:var(--shadow);z-index:20}@media(max-width:780px){.access-grid{grid-template-columns:1fr}.permission-search{width:100%}.field-options{grid-template-columns:1fr}.sticky-save{bottom:72px}}
/* Keep the account menu available on phones as well as desktop. */
.top-actions button.top-avatar{display:grid;flex:0 0 35px;min-width:35px}
@media(max-width:620px){.top-actions .profile-menu-wrap{display:block}.top-actions .lang-switch select{max-width:62px}.topbar>div:not(.top-actions){min-width:0;flex:1}}
/* Long metric captions wrap beside icons instead of overlapping them. */
.metric:has(.metric-icon) .label{padding-right:34px;min-height:27px;overflow-wrap:normal;word-break:normal}
.table .badge{white-space:nowrap;overflow-wrap:normal;word-break:normal}

/* Shared panel components: local Bootstrap Icons, account controls and dialogs. */
svg.app-icon,.nav-icon svg.app-icon,.profile-menu-links svg.app-icon{display:inline-block;width:20px;height:20px;flex:0 0 auto;fill:currentColor;stroke:none;vertical-align:middle}
.mobile-nav .app-icon{width:21px;height:21px}.metric-icon .app-icon{width:22px;height:22px}
.sidebar .sidebar-brand,[data-theme=dark] .sidebar .sidebar-brand{background:transparent;border:0;box-shadow:none;padding:8px 0;margin:0 0 20px}
.sidebar .sidebar-brand img{width:100%;max-width:230px;height:auto}
.sidebar nav{min-width:0}.sidebar .nav-item{gap:12px}.sidebar .nav-icon{display:inline-flex;align-items:center;justify-content:center}
.topbar{gap:16px}.workspace-heading{min-width:0}.workspace-heading h1{overflow-wrap:anywhere}
.topbar .top-actions{margin-left:auto;flex:0 0 auto;gap:10px}
.topbar .icon-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px}
.topbar .mobile-only{display:none}
.topbar .lang-switch{display:flex;align-items:center;min-height:42px;padding:0 8px}
.topbar .lang-switch select{min-height:40px;max-width:155px;margin:0;padding:8px 4px;font-size:12px}
.account-button{display:flex;align-items:center;gap:10px;max-width:250px;min-height:44px;padding:4px 8px 4px 4px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer}
.account-button:hover,.account-button[aria-expanded=true]{border-color:var(--accent);background:var(--panel2)}
.account-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#12679d,#26acd5);color:#fff;font-weight:800}
.account-identity{display:grid;min-width:0;line-height:1.35}.account-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.account-identity small{font-size:11px;color:var(--muted)}
.account-button>.app-icon{width:12px;height:12px}
/* Profilefix2: self-contained account popup, including when an older app.css is cached. */
.top-actions .profile-menu-wrap{position:relative;flex:0 0 auto;min-width:0}
.top-actions .profile-menu{position:absolute;z-index:90;inset:auto 0 auto auto;top:calc(100% + 10px);display:block;box-sizing:border-box;width:310px;max-width:calc(100vw - 24px);max-height:calc(100vh - 180px);max-height:calc(100dvh - 180px);margin:0;padding:10px;border:1px solid var(--line,#e4ebf3);border-radius:17px;background:var(--panel,#fff);color:var(--text,#122033);box-shadow:0 18px 48px rgba(15,39,70,.22);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;text-align:left;white-space:normal}
.top-actions .profile-menu[hidden]{display:none}
.top-actions .profile-menu::before{display:none}
.top-actions .profile-menu-head{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;margin:0;padding:8px 8px 12px;border-bottom:1px solid var(--line,#e4ebf3)}
.top-actions .profile-menu-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#12679d,#26acd5);color:#fff;font-size:16px;font-weight:800}
.top-actions .profile-menu-user{min-width:0}
.top-actions .profile-menu-user strong,.top-actions .profile-menu-user span,.top-actions .profile-menu-user small{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.top-actions .profile-menu-user strong{font-size:13px;color:var(--text,#122033)}
.top-actions .profile-menu-user span{margin-top:3px;font-size:11px;color:var(--muted,#718096)}
.top-actions .profile-menu-user small{margin-top:4px;font-size:11px;font-weight:700;letter-spacing:normal;text-transform:none;color:var(--accent,#1689f7)}
.top-actions .profile-menu-user .profile-menu-company{margin-top:3px;color:var(--text,#122033);font-size:11px;font-weight:600}
.top-actions .profile-menu-links{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0;padding-top:8px}
.top-actions .profile-menu-links a{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;margin:0;padding:10px;border-radius:10px;font-size:12px;font-weight:700;line-height:1.4;color:var(--text,#122033);white-space:normal;overflow-wrap:anywhere;text-decoration:none}
.top-actions .profile-menu-links a:hover,.top-actions .profile-menu-links a:focus-visible{background:var(--panel2,#f8fafc);color:var(--accent,#1689f7)}
.top-actions .profile-menu-links a.signout{color:var(--red,#ef476f)}
.top-actions .profile-menu-links a.signout:hover{background:var(--panel2,#f8fafc)}
.provider-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px 24px}
.provider-mini{display:flex;align-items:flex-start;gap:10px;min-width:0}.provider-mini strong,.provider-mini small{display:block}.provider-mini small{color:var(--muted);font-size:12px;line-height:1.5}.provider-dot{width:9px;height:9px;flex:0 0 9px;margin-top:7px;border-radius:50%}
.dashboard-connectivity .card-title{flex-wrap:wrap}.metric .value{overflow-wrap:anywhere}

/* The dialog owns its width; its card must never use an independent viewport width. */
dialog.modal,dialog#newUser.modal{width:min(760px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;overflow:hidden;border-radius:18px;background:var(--panel)}
dialog.modal:has(.modal-card.wide):not(#newUser){width:min(860px,calc(100% - 32px))}
dialog.modal .modal-card,dialog.modal .modal-card.wide,dialog#newUser .modal-card.wide{width:100%;min-width:0;max-width:100%;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:0;padding:20px;overflow:auto;overscroll-behavior:contain;box-shadow:none;border:0;border-radius:inherit}
dialog.modal .form-grid>*,dialog.modal .stack>*,dialog.modal label{min-width:0;max-width:100%}
dialog.modal input,dialog.modal select,dialog.modal textarea{min-width:0;max-width:100%;box-sizing:border-box}
dialog.modal .card-title{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:12px}
dialog.modal .card-title>div{min-width:0}dialog.modal .card-title .icon-btn{flex:0 0 40px;min-height:40px;display:grid;place-items:center}
dialog#newUser .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
dialog#newUser .form-grid label{font-size:12px;line-height:1.4}
dialog#newUser .form-grid input,dialog#newUser .form-grid select{min-height:42px;font-size:14px}
dialog#newUser .form-grid .full{grid-column:1/-1}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--line)}
dialog#newUser .form-grid .dialog-actions .btn{min-height:44px}
body:has(dialog[open]){overflow:hidden}
@media(max-width:1100px){.account-button{max-width:190px}.topbar .top-actions{gap:7px}}
@media(max-width:900px){.topbar .mobile-only{display:inline-flex}.topbar{gap:10px}.topbar .workspace-heading{flex:1;min-width:0}.admin-topbar .workspace-heading{display:none}}
@media(max-width:700px){
 .topbar{flex-wrap:wrap;min-height:70px;height:auto;padding:10px 12px}
 .topbar:not(.admin-topbar) .workspace-heading{order:3;flex:1 0 100%}
 .topbar .top-actions{gap:6px;max-width:calc(100% - 50px);flex-wrap:wrap;justify-content:flex-end}
 .topbar .lang-switch.compact{max-width:70px;padding:0 4px}.topbar .lang-switch.compact select{min-width:0;max-width:60px;font-size:12px}
 .account-button{gap:6px;max-width:170px}.account-button>.app-icon{display:none}.account-identity strong{max-width:100px}
 .topbar .icon-btn{width:40px;height:44px}.topbar .notifications-link{display:none}
 dialog.modal,dialog#newUser.modal,dialog.modal:has(.modal-card.wide):not(#newUser){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
 dialog.modal .modal-card,dialog.modal .modal-card.wide,dialog#newUser .modal-card.wide{padding:16px;max-height:calc(100dvh - 16px)}
 dialog#newUser .form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 dialog#newUser .form-grid input,dialog#newUser .form-grid select,dialog.modal input,dialog.modal select,dialog.modal textarea{font-size:16px;min-height:44px}
 .dialog-actions .btn{flex:1 1 120px}.provider-mini-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){.account-avatar{display:none}.account-button{padding:6px 8px}.account-identity strong{max-width:88px}.topbar .top-actions{gap:5px}}

/* Login: recognizable show/hide-password icon and an always-visible localized footer. */
.login-page .login-layout{min-height:calc(100vh - 42px);min-height:calc(100dvh - 42px)}
.login-page .login-copyright{position:relative;inset:auto;display:block;min-height:42px;padding:12px 16px 14px;text-align:center;pointer-events:auto;line-height:1.5;color:#667b90;font-size:11px}
.login-page .login-control .password-eye{display:grid;place-items:center;right:7px;top:4px;bottom:4px;width:40px;min-height:40px;padding:0;border:0;border-radius:9px;background:transparent;color:#58708d;cursor:pointer}
.login-page .login-control .password-eye:hover{background:#edf5fe;color:#1689f7}
.login-page .login-control .password-eye:focus-visible{outline:2px solid #1689f7;outline-offset:1px}
.login-page .login-control .password-eye svg{position:static;left:auto;top:auto;transform:none;display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.login-page .login-control .password-eye .eye-slash{display:none}
.login-page .login-control #loginPassword[type=text]+.password-eye .eye-slash{display:block}
@media(max-width:900px){.login-page .login-form-stage{min-height:calc(100dvh - 42px)}}
@media(max-width:620px){.login-page .login-copyright{padding:10px 12px 14px;font-size:10px}}
