/* Mastiff Operations Command v1.18.6 central command menu */
:root{
  --moc-shell-header:74px;
  --moc-shell-bg:#071015;
  --moc-shell-panel:#101c22;
  --moc-shell-panel-2:#14242b;
  --moc-shell-line:rgba(137,196,205,.2);
  --moc-shell-accent:#76bac4;
  --moc-shell-accent-soft:rgba(82,157,168,.16);
}
body.moc-central-command-enabled{background:var(--moc-shell-bg)}
body.moc-route-app>#map,
body.moc-route-app>.strategy-frame,
body.moc-route-app>.strategy-header,
body.moc-route-app>.panel,
body.moc-route-app>#drawHelp{display:none!important}
body.moc-route-app #floatingDossierLayer:empty,
body.moc-route-app #dossierDock:not(.active){display:none!important}
#mocAppShell{position:fixed;inset:0;z-index:1250;display:flex;flex-direction:column;background:
  radial-gradient(circle at 78% 12%,rgba(43,102,112,.2),transparent 34%),
  linear-gradient(145deg,#071015 0%,#0a151b 52%,#061014 100%);color:#e9f4f5}
.moc-shell-header{height:var(--moc-shell-header);flex:0 0 var(--moc-shell-header);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px;border-bottom:1px solid var(--moc-shell-line);background:rgba(5,12,16,.94);box-shadow:0 10px 32px rgba(0,0,0,.28);box-sizing:border-box;pointer-events:auto}
.moc-shell-brand{display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer}.moc-shell-brand>span:last-child{display:flex;flex-direction:column;min-width:0}.moc-shell-brand b{font-size:.98rem;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.moc-shell-brand small{margin-top:3px;color:#8db1b7;font-size:.65rem;letter-spacing:.19em;text-transform:uppercase}.moc-shell-mark{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid rgba(118,186,196,.52);border-radius:10px;background:linear-gradient(145deg,rgba(71,143,153,.35),rgba(25,54,61,.55));font-weight:900;letter-spacing:.08em;box-shadow:inset 0 0 18px rgba(89,174,186,.12)}
.moc-shell-route-controls{display:flex;align-items:center;gap:8px;min-width:0}.moc-shell-icon-btn{width:40px;height:40px;display:grid;place-items:center;padding:0;border:1px solid var(--moc-shell-line);background:#132128}.moc-shell-icon-btn:disabled{opacity:.3;cursor:default}.moc-shell-icon-btn svg,.moc-shell-live-refresh svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.moc-shell-live-refresh{height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid rgba(118,186,196,.32);border-radius:7px;background:#132128;color:#d9eef1;font-size:.72rem;font-weight:800;letter-spacing:.045em;white-space:nowrap}.moc-shell-live-refresh:hover{border-color:rgba(118,186,196,.7);background:#193039}.moc-shell-live-refresh:disabled{opacity:.72;cursor:wait}.moc-shell-live-refresh-icon{display:grid;place-items:center}.moc-shell-live-refresh.is-loading .moc-shell-live-refresh-icon{animation:moc-live-refresh-spin .8s linear infinite}@keyframes moc-live-refresh-spin{to{transform:rotate(360deg)}}.moc-shell-current{min-width:150px;max-width:260px;margin-left:4px;color:#a8c7cc;font-size:.8rem;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.12em}
.moc-shell-main{flex:1;min-height:0;overflow:auto;padding:clamp(20px,3vw,42px);box-sizing:border-box;scrollbar-gutter:stable}.moc-home-view,.moc-module-view{width:min(1540px,100%);margin:0 auto}.moc-home-hero{padding:clamp(20px,4vw,48px) 0 26px}.moc-home-kicker,.moc-module-kicker{font-size:.72rem;color:var(--moc-shell-accent);letter-spacing:.22em;text-transform:uppercase;font-weight:800}.moc-home-hero h1,.moc-module-heading h1{margin:8px 0 8px;font-size:clamp(2rem,4.5vw,4.1rem);font-weight:780;letter-spacing:-.035em}.moc-home-hero p,.moc-module-heading p{max-width:760px;margin:0;color:#8daab0;font-size:.96rem;line-height:1.55}
.moc-home-groups{display:grid;gap:26px;padding-bottom:54px}.moc-menu-group{display:grid;gap:12px}.moc-menu-group-title{display:flex;align-items:center;gap:12px;color:#95b4ba;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.2em}.moc-menu-group-title:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,var(--moc-shell-line),transparent)}.moc-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px}.moc-menu-card{min-height:126px;display:grid;grid-template-columns:54px minmax(0,1fr) 18px;align-items:center;gap:14px;padding:18px;text-align:left;border:1px solid var(--moc-shell-line);border-radius:14px;background:linear-gradient(145deg,rgba(20,36,43,.96),rgba(12,24,29,.96));box-shadow:0 10px 30px rgba(0,0,0,.17);transition:transform .16s ease,border-color .16s ease,background .16s ease}.moc-menu-card:hover{transform:translateY(-2px);border-color:rgba(118,186,196,.58);background:linear-gradient(145deg,rgba(27,50,58,.98),rgba(14,29,35,.98))}.moc-menu-card-admin{border-color:rgba(212,162,83,.25)}.moc-menu-icon{width:52px;height:52px;display:grid;place-items:center;border:1px solid rgba(118,186,196,.25);border-radius:12px;background:var(--moc-shell-accent-soft);color:#a6d7dd}.moc-menu-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.moc-menu-copy{display:flex;flex-direction:column;min-width:0}.moc-menu-copy b{font-size:.98rem;color:#f1f7f8}.moc-menu-copy small{margin-top:7px;color:#849fa5;font-size:.74rem;line-height:1.4}.moc-menu-arrow{font-size:1.7rem;font-weight:300;color:#668990}
.moc-module-view{padding-bottom:40px}.moc-module-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:10px 0 24px;border-bottom:1px solid var(--moc-shell-line);margin-bottom:20px}.moc-module-heading h1{font-size:clamp(1.8rem,3.5vw,3.2rem)}.moc-module-home{flex:0 0 auto}.moc-module-content{min-height:220px}.moc-page-source[hidden]{display:none!important}.moc-page-source>.section{margin:0;padding:0;border:0;background:transparent}.moc-page-source>.section>h2:first-child{display:none}.moc-page-source .list{max-height:min(58vh,720px)}.moc-page-source .command-card,.moc-page-source .inventory-card,.moc-page-source .store-card{border-color:var(--moc-shell-line)}
.moc-admin-page{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:18px}.moc-admin-page #mastiffSiteLockAdmin{margin:0;padding:20px;border-radius:14px}.moc-admin-utility-card{margin:0}.moc-admin-utility-card button{width:100%}
body.moc-route-map #mocAppShell{background:transparent;pointer-events:none}body.moc-route-map .moc-shell-header{pointer-events:auto;background:rgba(5,12,16,.93)}body.moc-route-map .moc-shell-main{display:none}.moc-route-map .panel{top:calc(var(--moc-shell-header) + 12px);max-height:calc(100vh - var(--moc-shell-header) - 24px)}.moc-route-map .strategy-header{display:none!important}.moc-route-map .panel.left>.sidebar-mode-nav,.moc-route-map .panel.left>.sidebar-global-reload,.moc-route-map .panel.left>.sidebar-panes>.sidebar-pane:not([data-sidebar-pane="map"]){display:none!important}.moc-route-map .panel.left>.sidebar-panes>.sidebar-pane[data-sidebar-pane="map"]{display:block!important}.moc-route-map .sidebar-pane-heading{display:none}.moc-route-map .panel.left>h1{margin-top:0}.moc-route-map #map{height:100vh!important}
.moc-central-command-enabled .sidebar-popout-launcher,.moc-central-command-enabled .sidebar-mode-nav,.moc-central-command-enabled .sidebar-global-reload{display:none!important}
body.mastiff-player-preview-active #mocAppShell{top:58px}.mastiff-player-preview-active.moc-route-map .panel{top:calc(var(--moc-shell-header) + 70px);max-height:calc(100vh - var(--moc-shell-header) - 82px)}
@media(max-width:1180px){.moc-menu-grid{grid-template-columns:repeat(3,minmax(210px,1fr))}}
@media(max-width:860px){:root{--moc-shell-header:68px}.moc-shell-header{padding:0 12px}.moc-shell-brand b{font-size:.78rem}.moc-shell-brand small{display:none}.moc-shell-live-refresh{width:40px;padding:0;justify-content:center}.moc-shell-live-refresh>span:last-child{display:none}.moc-shell-current{display:none}.moc-shell-main{padding:18px 14px}.moc-menu-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.moc-module-heading{align-items:flex-start;flex-direction:column}.moc-admin-page{grid-template-columns:1fr}.moc-route-map .panel,.moc-route-map .panel.left{width:calc(100vw - 24px);max-height:39vh}.moc-route-map .panel.left{top:auto;bottom:12px}}
@media(max-width:560px){.moc-shell-mark{width:38px;height:38px;flex-basis:38px}.moc-shell-brand b{max-width:175px}.moc-menu-grid{grid-template-columns:1fr}.moc-menu-card{min-height:108px;padding:14px}.moc-home-hero{padding-top:12px}.moc-module-home{width:100%}body.mastiff-player-preview-active #mocAppShell{top:104px}}


/* v1.18.4 full-page secondary workspaces */
.moc-embedded-module-host{width:100%;min-height:420px;box-sizing:border-box}
.store-full-page-shell,.player-command-page,.trader-shop-page{width:100%;min-height:calc(100vh - 245px);box-sizing:border-box;border:1px solid var(--moc-shell-line);border-radius:16px;background:linear-gradient(145deg,rgba(15,29,35,.98),rgba(8,18,23,.98));box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden}
.store-page-toolbar,.player-page-header,.trader-page-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--moc-shell-line);background:rgba(7,16,21,.9)}
.store-page-toolbar{position:sticky;top:0;z-index:20}.store-page-toolbar label{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#91afb5}.store-page-toolbar select{min-width:220px;max-width:360px}.store-page-toolbar button{margin-left:auto}
.store-full-page-body{min-height:500px;padding:16px;box-sizing:border-box;overflow:visible!important;max-height:none!important}
.player-page-header>div,.trader-page-header>div{display:flex;flex-direction:column;gap:3px;min-width:0}.player-page-header b,.trader-page-header b{font-size:1rem;letter-spacing:.04em}.player-page-header small,.trader-page-header small{color:#78979d;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em}
.player-command-page .player-command-body{height:auto;max-height:none;overflow:visible;padding:14px;box-sizing:border-box}.player-command-page #playerCommandContent{min-height:420px}.player-command-page .player-page-toolbar{position:sticky;top:0;z-index:18;background:rgba(9,21,26,.96);border:1px solid var(--moc-shell-line);border-radius:12px;margin-bottom:10px;padding:10px;display:flex;flex-wrap:wrap;gap:8px}.player-command-page .player-page-toolbar select{min-width:220px;flex:1 1 240px}.player-command-page .player-page-toolbar button{flex:0 0 auto}
.trader-shop-page{padding:0}.trader-page-header{position:sticky;top:0;z-index:30}.trader-page-header button{flex:0 0 auto}.trader-page-body{padding:14px;min-height:540px;box-sizing:border-box;overflow:visible}.trader-shop-page.tarkov-trader-popout #traderShopBody,.trader-shop-page.tarkov-trader-popout #traderShopBody.trader-tarkov-content{height:auto;min-height:520px;overflow:visible}.trader-shop-page.tarkov-trader-popout .trader-shop-body{height:auto;max-height:none;overflow:visible}.trader-shop-page.tarkov-trader-popout .tarkov-trader-menu{height:min(68vh,780px);min-height:520px}.trader-shop-page.tarkov-trader-popout .tarkov-pane{min-height:0}
@media(max-width:900px){.store-full-page-shell,.player-command-page,.trader-shop-page{min-height:calc(100vh - 210px)}.store-page-toolbar{align-items:stretch;flex-wrap:wrap}.store-page-toolbar select{max-width:none;flex:1 1 220px}.store-page-toolbar button{margin-left:0}.player-command-page .player-page-toolbar{position:static}.trader-shop-page.tarkov-trader-popout .tarkov-trader-menu{height:auto;min-height:0}}

/* v1.18.6 — expanded full-viewport trader and inventory workspaces */
body.moc-workspace-route .moc-shell-main{
  min-height:0;
  overflow:hidden;
  padding:10px 12px 12px;
}
body.moc-workspace-route .moc-module-view{
  width:100%;
  max-width:none;
  height:100%;
  min-height:0;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
body.moc-workspace-route .moc-module-heading{display:none;}
body.moc-workspace-route .moc-module-content,
body.moc-workspace-route .moc-page-source:not([hidden]),
body.moc-workspace-route .moc-embedded-module-host{
  flex:1 1 auto;
  width:100%;
  height:100%;
  min-height:0;
  box-sizing:border-box;
}
body.moc-workspace-route .moc-page-source:not([hidden]),
body.moc-workspace-route .moc-embedded-module-host{
  display:flex;
  flex-direction:column;
}
body.moc-workspace-route .store-full-page-shell,
body.moc-workspace-route .player-command-page,
body.moc-workspace-route .trader-shop-page{
  flex:1 1 auto;
  width:100%;
  height:100%;
  min-height:0;
  border-radius:10px;
}

/* Trader route: use the actual viewport rather than the former popout dimensions. */
body.moc-route-traders .store-full-page-shell,
body.moc-route-traders .trader-shop-page{display:flex;flex-direction:column;overflow:hidden;}
body.moc-route-traders .store-page-toolbar,
body.moc-route-traders .trader-page-header{
  flex:0 0 auto;
  min-height:46px;
  padding:9px 12px;
}
body.moc-route-traders .store-full-page-body{
  flex:1 1 auto;
  min-height:0;
  padding:10px;
  overflow:auto!important;
}
body.moc-route-traders .trader-page-body{
  flex:1 1 auto;
  min-height:0;
  padding:8px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
body.moc-route-traders .trader-shop-page.tarkov-trader-popout .trader-shop-body{
  flex:1 1 auto!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
body.moc-route-traders .trader-shop-page.tarkov-trader-popout #traderShopBody,
body.moc-route-traders .trader-shop-page.tarkov-trader-popout #traderShopBody.trader-tarkov-content{
  flex:1 1 auto!important;
  width:100%;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
body.moc-route-traders .tarkov-trader-switcher-wrap{margin-bottom:6px;}
body.moc-route-traders .tarkov-trader-switcher{padding:5px 6px;}
body.moc-route-traders .tarkov-trader-topbar{
  flex:0 0 auto;
  margin-bottom:6px;
  padding:6px 8px;
}
body.moc-route-traders .trader-shop-page.tarkov-trader-popout .tarkov-trader-menu{
  flex:1 1 auto!important;
  width:100%;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  gap:8px;
  overflow:hidden!important;
  grid-template-columns:minmax(380px,1.3fr) minmax(290px,.78fr) minmax(380px,1.3fr);
}
body.moc-route-traders .trader-shop-page.tarkov-trader-popout .tarkov-pane{
  height:100%;
  min-height:0!important;
}
body.moc-route-traders .trader-shop-page.tarkov-trader-popout .tarkov-list{
  flex:1 1 0!important;
  max-height:none!important;
}

/* Player inventory receives the same full-height treatment. */
body.moc-route-inventory-view .player-command-page{display:flex;flex-direction:column;overflow:hidden;}
body.moc-route-inventory-view .player-page-header{flex:0 0 auto;min-height:46px;padding:9px 12px;}
body.moc-route-inventory-view .player-command-body{
  flex:1 1 auto;
  height:100%!important;
  min-height:0;
  max-height:none!important;
  padding:8px!important;
  overflow:auto!important;
}
body.moc-route-inventory-view #playerCommandContent{min-height:0;height:auto;}

@media(max-width:1180px){
  body.moc-workspace-route .moc-shell-main{overflow:auto;padding:10px;}
  body.moc-workspace-route .moc-module-view,
  body.moc-workspace-route .moc-module-content,
  body.moc-workspace-route .moc-page-source:not([hidden]),
  body.moc-workspace-route .moc-embedded-module-host{height:auto;min-height:calc(100vh - var(--moc-shell-header) - 20px);}
  body.moc-route-traders .trader-page-body{overflow:visible;}
  body.moc-route-traders .trader-shop-page.tarkov-trader-popout .trader-shop-body,
  body.moc-route-traders .trader-shop-page.tarkov-trader-popout #traderShopBody,
  body.moc-route-traders .trader-shop-page.tarkov-trader-popout #traderShopBody.trader-tarkov-content{height:auto!important;overflow:visible!important;}
  body.moc-route-traders .trader-shop-page.tarkov-trader-popout .tarkov-trader-menu{
    height:auto!important;
    min-height:0!important;
    grid-template-columns:1fr;
    overflow:visible!important;
  }
  body.moc-route-traders .trader-shop-page.tarkov-trader-popout .tarkov-pane{height:auto;min-height:360px!important;}
}



/* v1.19.89 Mastiff Security logo branding */
.moc-shell-logo-mark{
  padding:3px;
  background:linear-gradient(145deg,rgba(17,32,67,.76),rgba(4,12,26,.94));
  overflow:hidden;
}
.moc-shell-logo-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 0 7px rgba(74,104,255,.45));
}
.moc-home-hero-branded{
  display:grid;
  grid-template-columns:minmax(140px,220px) minmax(0,1fr);
  align-items:center;
  gap:clamp(18px,3vw,42px);
  border:1px solid rgba(118,186,196,.18);
  border-radius:22px;
  padding:clamp(18px,3vw,34px);
  background:
    radial-gradient(circle at 12% 48%,rgba(38,66,154,.2),transparent 34%),
    linear-gradient(145deg,rgba(16,33,42,.76),rgba(7,16,21,.46));
  box-shadow:0 18px 48px rgba(0,0,0,.16);
}
.moc-home-logo{
  width:100%;
  max-height:210px;
  object-fit:contain;
  justify-self:center;
  filter:drop-shadow(0 0 14px rgba(60,84,255,.18));
}
.moc-home-copy{
  min-width:0;
}
@media(max-width:860px){
  .moc-home-hero-branded{
    grid-template-columns:82px minmax(0,1fr);
    gap:14px;
    padding:16px;
  }
  .moc-home-logo{
    max-height:96px;
  }
}
@media(max-width:560px){
  .moc-home-hero-branded{
    grid-template-columns:1fr;
    text-align:center;
  }
  .moc-home-logo{
    max-width:140px;
  }
}
