:root{
  --green:#075f57;--green-2:#087568;--green-3:#0d8b7b;--gold:#c8a62e;
  --ink:#123f3c;--muted:#6f7f83;--white:#fff;--ivory:#f7f4ec;--line:rgba(11,95,87,.14);
  --sidebar:238px;--sidebar-mini:78px;--topbar:86px;--footer:50px;
  --shadow:0 22px 60px rgba(20,55,53,.13);--soft:0 10px 28px rgba(20,55,53,.08)
}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:#f8f7f2;overflow:hidden}button{font:inherit}.boot{position:fixed;inset:0;z-index:100;background:#f5f6f3;transition:opacity .35s ease,visibility .35s ease;overflow:hidden}.boot.done{opacity:0;visibility:hidden}.boot-splash{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}.boot-accessible{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}@keyframes loading{from{transform:translateX(-110%)}to{transform:translateX(360%)}}
.portal{height:100%;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);transition:grid-template-columns .24s ease}.portal.collapsed{grid-template-columns:var(--sidebar-mini) minmax(0,1fr)}.sidebar{position:relative;height:100%;background:rgba(255,255,255,.96);border-right:1px solid var(--line);padding:22px 15px 16px;display:flex;flex-direction:column;z-index:20;box-shadow:12px 0 38px rgba(18,63,60,.045);transition:padding .24s ease}.brand-block{display:grid;gap:12px;padding:0 7px 22px;border-bottom:1px solid var(--line);min-height:126px}.brand-logo{width:100%;height:auto;max-height:68px;object-fit:contain;object-position:left center}.brand-copy{display:grid;gap:2px}.brand-copy strong{font-size:17px;color:var(--green)}.brand-copy small{font-size:11px;color:var(--muted)}.sidebar-toggle{position:absolute;right:-17px;top:27px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(7,95,87,.18);background:var(--green);color:#fff;font-size:27px;line-height:1;display:grid;place-items:center;box-shadow:var(--soft);cursor:pointer;z-index:4}.navigation{display:grid;gap:10px;padding:32px 0 16px}.nav-item{border:1px solid transparent;background:transparent;color:#344e50;border-radius:15px;min-height:62px;padding:9px 10px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;cursor:pointer;transition:.18s ease}.nav-item:hover{border-color:var(--line);background:#f7faf9}.nav-item.active{background:linear-gradient(90deg,rgba(8,117,104,.14),rgba(8,117,104,.045));border-color:rgba(8,117,104,.12);box-shadow:inset 3px 0 var(--green-2)}.nav-icon{width:36px;height:36px;border-radius:11px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:var(--green);font-size:18px}.nav-item.active .nav-icon{background:var(--green-2);color:#fff;box-shadow:0 8px 20px rgba(8,117,104,.22)}.nav-copy{display:grid;gap:2px;min-width:0}.nav-copy strong{font-size:13px;white-space:nowrap}.nav-copy small{font-size:11px;color:var(--muted)}.nav-tag{font-size:8px;color:#8b6d20;background:#f2e6bf;border-radius:999px;padding:4px 6px}.sidebar-art{margin-top:auto;display:flex;justify-content:center;gap:9px;color:rgba(200,166,46,.38);font-size:30px;padding:18px 0}.sidebar-status{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:14px 6px 0}.sidebar-status>i{width:9px;height:9px;border-radius:50%;background:#20a886;box-shadow:0 0 0 5px rgba(32,168,134,.11)}.sidebar-status span{display:grid;gap:2px}.sidebar-status strong{font-size:10px;color:var(--green)}.sidebar-status small{font-size:11px;color:var(--muted)}
.portal.collapsed .sidebar{padding-left:10px;padding-right:10px}.portal.collapsed .brand-logo{width:56px;max-height:56px;object-fit:cover;object-position:left}.portal.collapsed .brand-copy,.portal.collapsed .nav-copy,.portal.collapsed .nav-tag,.portal.collapsed .sidebar-art,.portal.collapsed .sidebar-status{display:none}.portal.collapsed .brand-block{padding:0 0 20px;min-height:auto;justify-items:center}.portal.collapsed .navigation{padding-top:28px}.portal.collapsed .nav-item{grid-template-columns:1fr;justify-items:center;padding:8px;min-height:54px}.portal.collapsed .sidebar-toggle{transform:rotate(180deg)}
.main{min-width:0;height:100%;display:grid;grid-template-rows:var(--topbar) auto minmax(0,1fr) var(--footer);padding:0 24px 0;background:linear-gradient(145deg,#faf9f5,#eef5f2)}.topbar{display:flex;align-items:center;border-bottom:1px solid rgba(200,166,46,.28);background:rgba(248,246,239,.82);backdrop-filter:blur(18px);z-index:10}.mobile-menu{display:none;width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--green);margin-right:10px}.topbar-title{display:grid;gap:3px}.topbar-title small{font-size:11px;font-weight:800;letter-spacing:.17em;color:var(--green-2)}.topbar-title strong{font-size:25px;color:var(--green);letter-spacing:-.02em}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.notify{width:43px;height:43px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--green);position:relative}.notify b{position:absolute;right:-4px;top:-5px;width:18px;height:18px;border-radius:50%;background:var(--gold);color:#fff;font-size:9px;display:grid;place-items:center}.profile{height:48px;border:1px solid var(--line);border-radius:17px;background:#fff;display:grid;grid-template-columns:35px auto auto;align-items:center;gap:9px;padding:5px 11px 5px 6px;color:var(--green);box-shadow:var(--soft)}.avatar{width:35px;height:35px;border-radius:12px;background:linear-gradient(145deg,var(--green-2),var(--green));color:#fff;display:grid;place-items:center;font-weight:800}.profile>span:nth-child(2){display:grid;text-align:left}.profile strong{font-size:12px}.profile small{font-size:10px;color:var(--muted)}.profile em{font-style:normal}.connection-banner{margin:11px 0 0;padding:10px 13px;border:1px solid #ead8a5;background:#fff9e9;border-radius:12px;color:#7b641f;font-size:12px}.content{min-height:0;padding:18px 0 12px;outline:0;overflow:hidden}.footer{height:var(--footer);display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:#788588}.footer span{display:flex;align-items:center;gap:10px}.footer i{display:inline-block;width:1px;height:15px;background:#bbb}.footer b{width:8px;height:8px;border-radius:50%;background:#20a886}
.command-page{height:100%;min-height:0}.hero{position:relative;height:100%;min-height:540px;border-radius:30px;overflow:hidden;border:1px solid rgba(200,166,46,.26);box-shadow:var(--shadow);background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 34%,rgba(255,255,255,.48) 55%,rgba(255,255,255,.03) 78%),url('riyadh-bus-hero.jpg');background-size:cover;background-position:center center}.hero:after{content:"";position:absolute;right:-35px;top:-30px;width:310px;height:310px;background-image:linear-gradient(30deg,rgba(200,166,46,.13) 12%,transparent 12.5%,transparent 87%,rgba(200,166,46,.13) 87.5%);background-size:32px 55px;opacity:.28;pointer-events:none}.hero-copy{position:relative;z-index:2;width:min(610px,55%);height:100%;display:flex;flex-direction:column;justify-content:center;padding:40px 48px}.hero-logo{width:310px;max-width:90%;height:auto;margin-bottom:30px}.hero-kicker{font-size:14px;letter-spacing:.19em;color:var(--gold);font-weight:800;margin:0 0 16px}.hero h1{font-size:clamp(45px,4.7vw,78px);line-height:1.02;letter-spacing:-.055em;color:var(--green);margin:0 0 24px;max-width:11ch}.hero p{font-size:19px;line-height:1.55;color:#43575a;margin:0 0 25px;max-width:510px}.hero-status{display:flex;align-items:center;gap:12px;color:var(--green-2);font-size:15px;font-weight:700}.hero-status i{width:24px;height:24px;border-radius:50%;border:2px solid var(--green-2);display:grid;place-items:center;font-style:normal}.hero-actions{display:flex;gap:10px;margin-top:24px}.hero-actions button{border-radius:13px;padding:12px 16px;font-weight:800;font-size:12px;cursor:pointer}.primary{border:0;background:linear-gradient(135deg,var(--green-2),var(--green));color:#fff;box-shadow:0 10px 24px rgba(8,117,104,.21)}.secondary{border:1px solid var(--line);background:#fff;color:var(--green)}
.app-page{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.app-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--soft)}.app-toolbar>div:first-child{display:grid;gap:3px}.app-toolbar small{font-size:9px;letter-spacing:.16em;font-weight:900;color:var(--gold)}.app-toolbar strong{font-size:16px;color:var(--green)}.app-toolbar p{font-size:11px;color:var(--muted);margin:0}.toolbar-actions{display:flex;align-items:center;gap:8px}.connection-chip{font-size:10px;border-radius:99px;padding:7px 10px;background:#fff7e3;color:#876515;border:1px solid #ead9a9}.connection-chip.connected{background:#e9f7f1;color:#25705e;border-color:#cfe9df}.toolbar-actions button,.toolbar-actions a{padding:9px 12px;border-radius:11px;text-decoration:none;font-size:11px;font-weight:800}.frame{width:100%;height:100%;min-height:0;border:1px solid rgba(7,95,87,.18);border-radius:20px;background:#fff;box-shadow:0 20px 54px rgba(20,55,53,.14)}
@media(max-width:1050px){:root{--sidebar:210px}.hero-copy{width:62%;padding:34px}.hero-logo{width:260px}.hero h1{font-size:51px}.hero p{font-size:16px}.profile strong{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:760px){body{overflow:auto}.portal{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;transform:translateX(-105%);transition:transform .25s ease;box-shadow:25px 0 60px rgba(18,63,60,.18)}.sidebar.open{transform:none}.sidebar-toggle{display:none}.main{height:100vh;padding:0 12px}.mobile-menu{display:block}.profile>span:nth-child(2),.profile em{display:none}.profile{grid-template-columns:35px;padding:5px}.content{padding-top:12px}.hero{min-height:610px;background-position:64% center;background-image:linear-gradient(180deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.89) 49%,rgba(255,255,255,.22) 73%,rgba(255,255,255,.03) 100%),url('riyadh-bus-hero.jpg')}.hero-copy{width:100%;height:auto;justify-content:flex-start;padding:26px 22px}.hero-logo{width:250px;margin-bottom:24px}.hero h1{font-size:44px}.hero p{font-size:15px}.hero-actions{flex-direction:column;align-items:stretch}.footer span:nth-child(2){display:none}.app-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%;flex-wrap:wrap}.frame{min-height:570px}}


/* V8.1 — full-screen live applications */
.main.app-mode{
  grid-template-rows:72px minmax(0,1fr);
  padding:0 14px 0;
}
.main.app-mode .topbar{height:72px}
.main.app-mode .connection-banner,
.main.app-mode .footer{display:none !important}
.main.app-mode .content{
  padding:0;
  margin:0;
  min-height:0;
  height:auto;
  overflow:hidden;
  position:relative;
}
.content.app-fullscreen{
  width:100%;
  height:100%;
  min-height:0;
}
.fullscreen-frame{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#fff;
}
.main.app-mode .topbar-title strong{font-size:22px}
.main.app-mode .topbar-title small{font-size:10px}
@media(max-width:760px){
  .main.app-mode{height:100vh;padding:0;grid-template-rows:68px minmax(0,1fr)}
  .main.app-mode .topbar{padding:0 10px;height:68px}
  .main.app-mode .content{padding:0}
  .fullscreen-frame{min-height:0;border-radius:0}
}


/* V8.5 — combined NoE identity and current month in portal header */
.topbar-title{display:flex;align-items:center;gap:11px;min-width:0}
.topbar-title-copy{display:grid;gap:2px;min-width:0}
.topbar-title-copy>small{font-size:10px;letter-spacing:.16em;font-weight:900;color:var(--green-2);text-transform:uppercase}
.topbar-title-copy>strong{font-size:22px;line-height:1.05;color:var(--green);white-space:nowrap}
.topbar-title-copy>em{font-style:normal;font-size:11px;color:var(--muted);white-space:nowrap}
.topbar-module-badge{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,var(--green-2),var(--green));color:#fff;display:grid;place-items:center;font-weight:900;font-size:15px;box-shadow:0 11px 24px rgba(8,117,104,.20);flex:0 0 auto}
.topbar-title.noe-heading{gap:12px}
@media(max-width:900px){.topbar-title-copy>strong{font-size:18px}.topbar-title-copy>em{display:none}.topbar-module-badge{width:42px;height:42px;border-radius:13px}.topbar-title-copy>small{font-size:8px}}
@media(max-width:620px){.topbar-title-copy>strong{font-size:15px}.topbar-title-copy>small{letter-spacing:.08em}.topbar-module-badge{width:38px;height:38px}.profile span:not(.avatar){display:none}}
