/* DECA Command Center Phase 1 Visual Fidelity v1.2.0
   Reference: approved colorful gunmetal / orange / cyan command-center concept.
   Loaded last so it can unify the existing layered site shell without deleting legacy assets. */

:root {
  --p1-bg: #050a10;
  --p1-bg-deep: #020509;
  --p1-panel: #09131d;
  --p1-panel-2: #0c1925;
  --p1-panel-3: #101f2c;
  --p1-line: #263746;
  --p1-line-bright: #40576a;
  --p1-orange: #ff7a00;
  --p1-orange-hot: #ff9d18;
  --p1-orange-deep: #bf3e00;
  --p1-cyan: #20d9ff;
  --p1-cyan-soft: #72eaff;
  --p1-green: #35e68a;
  --p1-red: #ff5268;
  --p1-gold: #ffc84b;
  --p1-text: #f5f8fb;
  --p1-muted: #91a2b3;
  --p1-shadow: 0 20px 55px rgba(0,0,0,.48);
  --p1-cut: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

html { background: var(--p1-bg-deep); }

body.deca-command-phase1 {
  margin: 0;
  color: var(--p1-text);
  background:
    radial-gradient(circle at 10% 5%, rgba(255,122,0,.12), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgba(32,217,255,.07), transparent 28rem),
    linear-gradient(180deg, #07101a 0, #03070c 42%, #050a10 100%);
  background-attachment: fixed;
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  min-height: 100vh;
}

body.deca-command-phase1::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

body.deca-command-phase1 .support-bar,
body.deca-command-phase1 .train-strip,
body.deca-command-phase1 .deca-modern-home {
  display: none !important;
}

/* Shell */
body.deca-command-phase1 .site-header,
body.deca-command-phase1 .site-header.header-scrolled {
  position: sticky !important;
  top: 0 !important;
  z-index: 10050 !important;
  min-height: 84px;
  background: rgba(3,8,13,.96) !important;
  border-bottom: 1px solid rgba(75,98,117,.7);
  box-shadow: 0 14px 38px rgba(0,0,0,.42), inset 0 -1px rgba(255,122,0,.12);
  backdrop-filter: blur(18px);
}

body.deca-command-phase1 .header-inner {
  width: min(1540px, calc(100% - 28px));
  min-height: 84px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr auto;
  gap: 18px;
  align-items: stretch;
}

body.deca-command-phase1 .header-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.deca-command-phase1 .brand {
  display: inline-flex;
  height: 66px;
  width: min(290px, 100%);
  padding: 4px 12px 4px 0;
  align-items: center;
  border-right: 1px solid rgba(77,98,116,.45);
  text-decoration: none;
}

body.deca-command-phase1 .brand .p1-brand-logo {
  display: block;
  width: 100%;
  max-width: 278px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
}

body.deca-command-phase1 .season-clock-chip {
  display: none !important;
}

body.deca-command-phase1 .header-nav {
  display: flex !important;
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  align-items: stretch;
}

body.deca-command-phase1 .deca-desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 84px;
}

body.deca-command-phase1 .deca-desktop-nav > li {
  display: flex;
  align-items: stretch;
  position: relative;
}

body.deca-command-phase1 .deca-desktop-nav > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 108px;
  padding: 0 17px !important;
  color: #c8d0d8 !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .65px;
  font-weight: 900;
  font-size: 13px;
  border: 0 !important;
  border-left: 1px solid rgba(80,101,119,.22) !important;
  background: transparent !important;
  transition: .2s ease;
}

body.deca-command-phase1 .deca-desktop-nav > li > a i {
  font-size: 16px;
  color: #aeb8c2;
}

body.deca-command-phase1 .deca-desktop-nav > li > a:hover,
body.deca-command-phase1 .deca-desktop-nav > li > a.active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255,122,0,.15), rgba(255,122,0,.035)) !important;
  box-shadow: inset 0 3px var(--p1-orange), inset 0 -2px var(--p1-orange);
}

body.deca-command-phase1 .deca-desktop-nav > li > a:hover i,
body.deca-command-phase1 .deca-desktop-nav > li > a.active i {
  color: var(--p1-orange-hot);
  filter: drop-shadow(0 0 8px rgba(255,122,0,.55));
}

body.deca-command-phase1 .dropdown-menu {
  left: 0;
  transform: none;
  min-width: 235px;
  padding: 8px;
  border: 1px solid var(--p1-line);
  border-top: 2px solid var(--p1-orange);
  border-radius: 0;
  background: rgba(5,12,18,.98);
  box-shadow: 0 22px 48px rgba(0,0,0,.72);
  clip-path: var(--p1-cut);
}

body.deca-command-phase1 .dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-align: left !important;
  padding: 11px 13px !important;
  color: #b8c2cc !important;
  font-size: 12px;
}

body.deca-command-phase1 .dropdown-menu li a i { width: 18px; color: var(--p1-orange); }
body.deca-command-phase1 .dropdown-menu li a:hover {
  color: #fff !important;
  background: rgba(255,122,0,.11) !important;
}

body.deca-command-phase1 .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.deca-command-phase1 .user-actions { gap: 7px; }

body.deca-command-phase1 .userchip {
  min-width: 158px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--p1-line);
  border-radius: 0;
  background: linear-gradient(135deg, #0a151f, #060c12);
  clip-path: var(--p1-cut);
}

body.deca-command-phase1 .userchip .av {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  object-fit: cover;
  background: #101b25 url("deca-phase1/avatar-silhouette.svg") center/cover;
  border: 2px solid var(--p1-orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,.1), 0 0 17px rgba(255,122,0,.2);
}

body.deca-command-phase1 .userchip .un b { color: #fff; font-size: 13px; }
body.deca-command-phase1 .userchip .un small { color: var(--p1-cyan); }

body.deca-command-phase1 .chip-admin,
body.deca-command-phase1 .chip-logout {
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 1px solid var(--p1-line);
  background: #07111a;
  clip-path: var(--p1-cut);
}

body.deca-command-phase1 .chip-admin { color: var(--p1-orange); }
body.deca-command-phase1 .chip-logout { color: #8695a3; }

body.deca-command-phase1 .btn-discord-nav {
  border-radius: 0;
  clip-path: var(--p1-cut);
  background: linear-gradient(180deg, #5865f2, #3f49b8);
  font-weight: 900;
}

body.deca-command-phase1 .site-main {
  position: relative;
  padding: 16px 20px 92px;
  min-height: calc(100vh - 84px);
}

body.deca-command-phase1 .content-wrapper {
  max-width: none !important;
  width: auto !important;
  margin: 0 0 0 104px !important;
  padding: 0 !important;
}

body.deca-command-phase1 .deca-modern-footer {
  margin-left: 104px;
  border-top: 1px solid var(--p1-line);
  background: rgba(4,9,14,.92);
  color: var(--p1-muted);
}

body.deca-command-phase1 .deca-modern-footer a { color: var(--p1-muted); }
body.deca-command-phase1 .deca-modern-footer a:hover { color: var(--p1-orange); }

/* Left rail */
.p1-side-rail {
  position: fixed;
  top: 101px;
  left: 14px;
  z-index: 1000;
  width: 82px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--p1-line);
  background: rgba(5,12,18,.94);
  box-shadow: var(--p1-shadow);
  clip-path: var(--p1-cut);
  backdrop-filter: blur(14px);
}

.p1-side-rail a {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #aab6c2;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .7px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: .18s ease;
}

.p1-side-rail a i { font-size: 20px; color: #acb6c1; }
.p1-side-rail a:hover,
.p1-side-rail a.active {
  color: #fff;
  border-color: rgba(255,122,0,.28);
  background: linear-gradient(135deg, rgba(255,122,0,.17), rgba(255,122,0,.035));
  box-shadow: inset 3px 0 var(--p1-orange);
}
.p1-side-rail a:hover i,
.p1-side-rail a.active i { color: var(--p1-orange-hot); filter: drop-shadow(0 0 7px rgba(255,122,0,.45)); }

/* Shared phase pages */
.p1-command-page,
.p1-public-landing {
  width: min(1500px, 100%);
  margin: 0 auto;
  position: relative;
  color: var(--p1-text);
}

.p1-command-page *,
.p1-public-landing * { box-sizing: border-box; }

.p1-panel {
  position: relative;
  border: 1px solid var(--p1-line);
  background:
    linear-gradient(145deg, rgba(17,33,46,.96), rgba(5,13,21,.98)),
    var(--p1-panel);
  box-shadow: var(--p1-shadow), inset 0 1px rgba(255,255,255,.025);
  clip-path: var(--p1-cut);
  overflow: hidden;
}

.p1-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(116,148,173,.16);
  background: linear-gradient(90deg, rgba(255,122,0,.035), transparent 28%, transparent 70%, rgba(32,217,255,.025));
}

.p1-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p1-orange-hot);
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  font-size: 11px;
  font-weight: 900;
}

.p1-card-header {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  border-bottom: 1px solid var(--p1-line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
  position: relative;
  z-index: 1;
}

.p1-card-header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f5f7fa;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .55px;
  font-weight: 900;
}

.p1-card-header h2 i { color: var(--p1-orange); }
.p1-card-header > span,
.p1-card-header > a {
  color: var(--p1-cyan);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.p1-panel-link {
  min-height: 43px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--p1-cyan) !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .7px;
  font-weight: 900;
  border-top: 1px solid var(--p1-line);
  background: rgba(2,8,13,.48);
  position: relative;
  z-index: 1;
}

.p1-panel-link:hover { color: #fff !important; background: rgba(32,217,255,.07); }

.p1-button {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--p1-line-bright);
  color: #e7edf3;
  background: linear-gradient(180deg, #122332, #09131c);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 900;
  font-size: 12px;
  clip-path: var(--p1-cut);
  cursor: pointer;
  transition: .18s ease;
}

.p1-button:hover { border-color: var(--p1-cyan); color: #fff; transform: translateY(-1px); }
.p1-button-primary {
  border-color: #ffb347;
  color: #fff;
  background: linear-gradient(180deg, #ff9818, #e65f00 58%, #ad3600);
  box-shadow: inset 0 1px rgba(255,255,255,.4), 0 0 20px rgba(255,122,0,.2);
  text-shadow: 0 1px 2px #7c2600;
}
.p1-button-primary:hover { border-color: #fff; box-shadow: 0 0 28px rgba(255,122,0,.4); }

/* Public landing */
.p1-public-landing { padding: 8px 0 24px; }

.p1-public-hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  border: 1px solid var(--p1-line-bright);
  background:
    radial-gradient(circle at 70% 30%, rgba(255,122,0,.18), transparent 17rem),
    linear-gradient(110deg, rgba(3,8,13,.95) 0 47%, rgba(8,16,24,.86)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 16px);
  box-shadow: var(--p1-shadow);
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
  overflow: hidden;
}

.p1-public-copy {
  padding: clamp(38px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.p1-public-logo { width: min(430px, 90%); height: auto; margin-bottom: 24px; }
.p1-public-copy h1 {
  margin: 15px 0 12px;
  font-size: clamp(40px, 5vw, 74px);
  line-height: .97;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.p1-public-copy h1 span { color: var(--p1-orange); }
.p1-public-copy > p { max-width: 680px; color: #b5c0ca; font-size: 18px; line-height: 1.55; }
.p1-public-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.p1-public-command {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(10,25,37,.4), rgba(1,5,8,.9)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(32,217,255,.025) 28px 29px);
  border-left: 1px solid var(--p1-line);
}

.p1-public-command::before,
.p1-driver-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(255,122,0,.16), transparent 45%);
  pointer-events: none;
}

.p1-public-emblem-wrap { display: flex; justify-content: center; position: relative; z-index: 1; }
.p1-public-emblem {
  width: min(240px, 70%);
  filter: drop-shadow(0 16px 32px #000) drop-shadow(0 0 28px rgba(255,122,0,.18));
}

.p1-public-metrics {
  display: grid;
  gap: 8px;
  margin-top: 25px;
  position: relative;
  z-index: 1;
}

.p1-public-metrics div {
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--p1-line);
  background: rgba(3,10,16,.72);
}
.p1-public-metrics i { color: var(--p1-orange); }
.p1-public-metrics span { color: var(--p1-muted); text-transform: uppercase; font-size: 10px; letter-spacing: .8px; font-weight: 900; }
.p1-public-metrics strong { color: var(--p1-cyan); }

.p1-public-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--p1-line);
  border-top: 0;
  background: #071019;
}

.p1-public-pillars article {
  min-height: 170px;
  padding: 28px 22px;
  text-align: center;
  border-right: 1px solid var(--p1-line);
}
.p1-public-pillars article:last-child { border-right: 0; }
.p1-public-pillars i { font-size: 28px; color: var(--p1-orange); }
.p1-public-pillars h2 { margin: 13px 0 7px; text-transform: uppercase; font-size: 17px; }
.p1-public-pillars p { margin: 0; color: var(--p1-muted); line-height: 1.45; font-size: 13px; }

/* Home */
.p1-command-page { display: grid; gap: 12px; }

.p1-overview-panel {
  min-height: 154px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 235px 1fr minmax(330px, .8fr);
  gap: 20px;
  align-items: center;
}

.p1-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.p1-heading-emblem { width: 78px; height: 78px; filter: drop-shadow(0 0 15px rgba(255,122,0,.2)); }
.p1-section-heading h1 { margin: 4px 0 0; font-size: 21px; text-transform: uppercase; }

.p1-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--p1-line);
  position: relative;
  z-index: 1;
}
.p1-metric {
  min-height: 86px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  padding: 0 16px;
  border-right: 1px solid var(--p1-line);
}
.p1-metric > i { grid-row: 1 / span 3; align-self: center; color: #b8c3ce; font-size: 26px; }
.p1-metric > span { color: var(--p1-muted); text-transform: uppercase; font-size: 10px; letter-spacing: .7px; font-weight: 900; }
.p1-metric > strong { color: #fff; font-size: 22px; line-height: 1.1; }
.p1-metric > small { color: var(--p1-cyan); font-size: 11px; }
.p1-metric > small.is-online { color: var(--p1-green); }
.p1-metric > small.is-online b { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--p1-green); margin-right:5px; box-shadow:0 0 8px var(--p1-green); }

.p1-command-announcement {
  min-height: 104px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  border-left: 1px solid var(--p1-line);
  position: relative;
  z-index: 1;
}
.p1-command-announcement > i { color: var(--p1-orange); margin-top: 3px; }
.p1-command-announcement span { color: var(--p1-orange-hot); text-transform: uppercase; font-size: 11px; font-weight: 900; }
.p1-command-announcement strong { display:block; margin:3px 0; color:#fff; }
.p1-command-announcement p { margin:0; color:#b4c0ca; line-height:1.35; font-size:12px; }
.p1-command-announcement time { grid-column: 2; color:#718394; font-size:10px; }

.p1-home-primary-grid {
  display: grid;
  grid-template-columns: 1.03fr 1.08fr 1fr;
  gap: 12px;
}

.p1-driver-card { min-height: 284px; background: linear-gradient(135deg, rgba(54,28,7,.96), rgba(10,16,21,.98)); border-color: rgba(255,122,0,.55); }
.p1-driver-card .p1-card-header { border-color: rgba(255,122,0,.32); }
.p1-help { width:25px;height:25px;border-radius:50%;border:1px solid #65707b;background:#111b24;color:#d7dde3;cursor:help; }
.p1-driver-main {
  min-height: 128px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.p1-driver-main > img {
  width: 103px;
  height: 103px;
  object-fit: cover;
  border: 3px solid var(--p1-gold);
  box-shadow: 0 0 0 3px rgba(255,122,0,.18), 0 0 22px rgba(255,122,0,.22);
}
.p1-driver-name { color: var(--p1-orange-hot); font-size: 24px; font-weight: 900; text-decoration: none; }
.p1-rank-chip {
  margin-left: 7px;
  padding: 2px 7px;
  color: var(--p1-cyan);
  border: 1px solid var(--p1-cyan);
  background: rgba(32,217,255,.08);
  font-size: 11px;
  font-weight: 900;
}
.p1-driver-main p { margin: 7px 0 0; color: #b8c3cd; font-size: 14px; }
.p1-driver-main p strong { color:#fff; }

.p1-request-train-button {
  width: calc(100% - 30px);
  min-height: 62px;
  margin: 0 15px 12px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid #ffd177;
  color: #fff;
  background: linear-gradient(180deg, #ffac29, #ff7100 45%, #d94d00 75%, #9c2f00);
  box-shadow: inset 0 1px rgba(255,255,255,.7), 0 0 25px rgba(255,122,0,.38);
  clip-path: var(--p1-cut);
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .7px;
  font-weight: 900;
  cursor: pointer;
  text-shadow: 0 2px 2px rgba(80,20,0,.65);
  position: relative;
  z-index: 1;
  transition: .18s ease;
}
.p1-request-train-button:hover { filter: brightness(1.14); box-shadow: 0 0 35px rgba(255,122,0,.55); transform: translateY(-1px); }
.p1-request-train-button .fa-chevron-right { margin-left:auto; }

.p1-next-driver {
  min-height: 39px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  align-items: center;
  color: #bdc8d2;
  text-decoration: none;
  border-top: 1px solid rgba(255,122,0,.24);
  background: rgba(0,0,0,.25);
  position: relative;
  z-index: 1;
}
.p1-next-driver span { color:var(--p1-muted); text-transform:uppercase; font-size:9px; }
.p1-next-driver b { color:#fff; }
.p1-next-driver time { color:var(--p1-cyan); font-size:11px; }

.p1-vs-progress,
.p1-alliance-status { min-height: 284px; }

.p1-vs-main {
  min-height: 106px;
  padding: 18px 22px 12px;
  display: grid;
  grid-template-columns: 50px 1fr 72px;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.p1-vs-main > i { color:var(--p1-gold); font-size:40px; }
.p1-vs-main span { color:var(--p1-muted); font-size:11px; text-transform:uppercase; }
.p1-vs-main strong { display:block;color:var(--p1-cyan);font-size:25px; }
.p1-vs-main strong small { color:#aab5c0; font-size:16px; }
.p1-vs-main > b { color:var(--p1-cyan);font-size:22px;text-align:center; }
.p1-vs-main > b small { display:block;color:var(--p1-muted);font-size:9px;text-transform:uppercase; }

.p1-progress {
  height: 9px;
  margin: 0 22px 16px;
  border: 1px solid #283c4d;
  background:#02070b;
  overflow:hidden;
}
.p1-progress span {
  display:block;height:100%;background:linear-gradient(90deg,#008ab5,var(--p1-cyan));
  box-shadow:0 0 14px rgba(32,217,255,.45);
}

.p1-vs-stage {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--p1-line);
  position:relative;
  z-index:1;
}
.p1-vs-stage div { padding:13px;border-right:1px solid var(--p1-line); }
.p1-vs-stage div:last-child {border-right:0;}
.p1-vs-stage span { display:block;color:var(--p1-muted);font-size:9px;text-transform:uppercase; }
.p1-vs-stage strong { color:#fff;font-size:15px; }

.p1-personal-identity {
  padding:17px;
  display:flex;
  gap:13px;
  align-items:center;
  border-bottom:1px solid var(--p1-line);
  position:relative;z-index:1;
}
.p1-personal-identity img {width:69px;height:69px;border-radius:50%;object-fit:cover;border:2px solid var(--p1-orange);}
.p1-personal-identity strong {display:block;color:#fff;font-size:19px;}
.p1-personal-identity span {color:var(--p1-cyan);font-size:11px;text-transform:uppercase;}

.p1-status-list {padding:5px 16px;position:relative;z-index:1;}
.p1-status-list div {
  min-height:37px;
  display:grid;
  grid-template-columns:24px 1fr auto;
  gap:8px;
  align-items:center;
  border-bottom:1px solid rgba(60,82,99,.45);
}
.p1-status-list div:last-child {border-bottom:0;}
.p1-status-list i {color:#b6c0ca;}
.p1-status-list span {color:var(--p1-muted);font-size:11px;}
.p1-status-list strong {color:var(--p1-cyan);}

.p1-home-secondary-grid {
  display:grid;
  grid-template-columns:1.08fr .92fr 1fr;
  gap:12px;
}

.p1-ranking-module,
.p1-activity-module,
.p1-guides-module { min-height: 330px; }

.p1-tab-bar {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  min-height:48px;
  border-bottom:1px solid var(--p1-line);
}
.p1-tab-bar button {
  border:0;
  border-right:1px solid var(--p1-line);
  background:#07111a;
  color:#9dabba;
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.4px;
  font-weight:900;
  cursor:pointer;
}
.p1-tab-bar button:last-child {border-right:0;}
.p1-tab-bar button i {margin-right:6px;}
.p1-tab-bar button.active {
  color:#fff;
  background:linear-gradient(180deg,rgba(255,122,0,.17),rgba(255,122,0,.02));
  box-shadow:inset 0 -2px var(--p1-orange);
}
.p1-tab-bar button.active i {color:var(--p1-orange);}

.p1-ranking-table {display:none;position:relative;z-index:1;}
.p1-ranking-table.active {display:block;}
.p1-ranking-head,
.p1-ranking-row {
  display:grid;
  grid-template-columns:47px 1fr 84px;
  align-items:center;
}
.p1-ranking-head {min-height:30px;padding:0 12px;color:#718292;font-size:9px;text-transform:uppercase;}
.p1-ranking-head span:last-child{text-align:right;}
.p1-ranking-row {
  min-height:42px;
  padding:0 12px;
  color:#d8e0e7;
  text-decoration:none;
  border-top:1px solid rgba(55,76,93,.38);
}
.p1-ranking-row:hover {background:rgba(32,217,255,.04);}
.p1-ranking-row > b {color:#aeb8c2;text-align:center;}
.p1-ranking-row > span {display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;min-width:0;}
.p1-ranking-row img {width:28px;height:28px;object-fit:cover;border:1px solid #526474;}
.p1-ranking-row em {font-style:normal;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.p1-ranking-row small {padding:1px 4px;color:var(--p1-cyan);border:1px solid rgba(32,217,255,.5);font-size:8px;}
.p1-ranking-row > strong {color:#fff;text-align:right;}
.p1-ranking-row.is-current {
  margin:4px;
  padding-left:8px;padding-right:8px;
  border:1px solid var(--p1-orange);
  background:linear-gradient(90deg,rgba(255,122,0,.17),transparent);
  box-shadow:inset 3px 0 var(--p1-orange);
}
.p1-your-position-label {padding:5px 12px;color:var(--p1-orange);font-size:9px;text-transform:uppercase;font-weight:900;}

.p1-activity-list,
.p1-guide-list {position:relative;z-index:1;}
.p1-activity-list a {
  min-height:43px;
  padding:0 14px;
  display:grid;
  grid-template-columns:26px 1fr auto;
  gap:8px;
  align-items:center;
  color:#c8d1d9;
  text-decoration:none;
  border-bottom:1px solid rgba(55,76,93,.38);
}
.p1-activity-list a:hover {background:rgba(255,122,0,.045);}
.p1-activity-list a i {color:var(--p1-orange);}
.p1-activity-list a:nth-child(2n) i {color:var(--p1-cyan);}
.p1-activity-list span {font-size:12px;}
.p1-activity-list time {color:#738595;font-size:9px;}

.p1-guide-list > a {
  min-height:57px;
  padding:7px 12px;
  display:grid;
  grid-template-columns:48px 1fr 15px;
  gap:10px;
  align-items:center;
  color:#dbe2e8;
  text-decoration:none;
  border-bottom:1px solid rgba(55,76,93,.38);
}
.p1-guide-list > a:hover {background:rgba(32,217,255,.035);}
.p1-guide-icon {width:48px;height:40px;display:grid;place-items:center;background:linear-gradient(135deg,#172d40,#08131d);border:1px solid #345065;color:var(--p1-cyan);font-size:20px;}
.p1-guide-list strong {display:block;color:#fff;font-size:13px;}
.p1-guide-list small {color:var(--p1-muted);font-size:10px;}

.p1-tools-strip {
  min-height:116px;
  display:grid;
  grid-template-columns:180px repeat(5,1fr);
  gap:0;
}
.p1-tools-title {
  padding:18px;
  display:flex;
  align-items:center;
  gap:12px;
  border-right:1px solid var(--p1-line);
  position:relative;z-index:1;
}
.p1-tools-title > i {font-size:34px;color:var(--p1-orange);filter:drop-shadow(0 0 8px rgba(255,122,0,.35));}
.p1-tools-title span {display:block;color:var(--p1-orange);font-size:12px;font-weight:900;}
.p1-tools-title strong {display:block;color:#fff;font-size:20px;text-transform:uppercase;}
.p1-tools-strip > a {
  padding:15px;
  display:grid;
  grid-template-columns:50px 1fr auto;
  gap:11px;
  align-items:center;
  color:#dce3e9;
  text-decoration:none;
  border-right:1px solid var(--p1-line);
  position:relative;z-index:1;
  transition:.18s ease;
}
.p1-tools-strip > a:last-child {border-right:0;}
.p1-tools-strip > a:hover {background:linear-gradient(135deg,rgba(255,122,0,.12),rgba(32,217,255,.03));}
.p1-tools-strip > a > i {width:48px;height:48px;display:grid;place-items:center;color:var(--p1-orange);font-size:25px;background:#0d1b26;border:1px solid #344a5b;}
.p1-tools-strip > a:nth-child(4) > i {color:var(--p1-cyan);}
.p1-tools-strip > a strong {display:block;color:#fff;text-transform:uppercase;font-size:14px;}
.p1-tools-strip > a small {display:block;color:var(--p1-muted);font-size:10px;margin-top:3px;}
.p1-tools-strip > a b {font-size:26px;color:#7d8c99;}

/* Empty states */
.p1-empty-state {
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:18px;
  color:var(--p1-muted);
  text-align:center;
  position:relative;z-index:1;
}
.p1-empty-state i {color:var(--p1-orange);font-size:28px;}
.p1-empty-state strong {color:#fff;}
.p1-empty-state.small {min-height:100px;}

/* Page title */
.p1-page-title {
  min-height:115px;
  padding:24px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.p1-page-title h1 {margin:4px 0 0;font-size:34px;text-transform:uppercase;}
.p1-page-title p {margin:5px 0 0;color:var(--p1-muted);}
.p1-page-title-badge {
  min-width:200px;
  padding:17px;
  display:flex;
  align-items:center;
  gap:13px;
  border:1px solid var(--p1-line);
  background:#07121b;
}
.p1-page-title-badge i {font-size:30px;color:var(--p1-orange);}
.p1-page-title-badge span {text-transform:uppercase;font-weight:900;}

/* Rankings */
.p1-ranking-tabs {
  min-height:61px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.p1-ranking-tabs a {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#aeb9c4;
  text-decoration:none;
  text-transform:uppercase;
  font-weight:900;
  border-right:1px solid var(--p1-line);
}
.p1-ranking-tabs a:last-child{border-right:0;}
.p1-ranking-tabs a.active {color:#fff;background:rgba(255,122,0,.12);box-shadow:inset 0 -3px var(--p1-orange);}
.p1-ranking-tabs a i {color:var(--p1-orange);}

.p1-rankings-layout {
  display:grid;
  grid-template-columns:260px 1fr;
  gap:12px;
}
.p1-ranking-summary {
  min-height:390px;
  padding:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.p1-ranking-summary > strong {font-size:74px;color:var(--p1-orange);line-height:1;margin-top:18px;text-shadow:0 0 20px rgba(255,122,0,.25);}
.p1-ranking-summary > small {color:var(--p1-muted);margin:6px 0 24px;}
.p1-ranking-summary > img {width:96px;height:96px;object-fit:cover;border-radius:50%;border:3px solid var(--p1-orange);}
.p1-ranking-summary > b {margin-top:10px;font-size:18px;}
.p1-ranking-summary-links {width:100%;margin-top:auto;display:grid;gap:7px;}
.p1-ranking-summary-links a {min-height:40px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--p1-cyan);text-decoration:none;border:1px solid var(--p1-line);background:#07121b;}

.p1-full-ranking {overflow:hidden;}
.p1-full-ranking-head,
.p1-full-ranking-row {
  display:grid;
  grid-template-columns:75px minmax(210px,1fr) 130px 120px 150px;
  gap:12px;
  align-items:center;
}
.p1-full-ranking-head {min-height:39px;padding:0 18px;color:#718394;text-transform:uppercase;font-size:9px;border-bottom:1px solid var(--p1-line);}
.p1-full-ranking-row {
  min-height:58px;
  padding:0 18px;
  color:#ccd5dd;
  text-decoration:none;
  border-bottom:1px solid rgba(61,82,98,.45);
}
.p1-full-ranking-row:hover {background:rgba(32,217,255,.035);}
.p1-full-ranking-row.is-current {background:linear-gradient(90deg,rgba(255,122,0,.18),rgba(255,122,0,.025));box-shadow:inset 4px 0 var(--p1-orange),inset 0 0 0 1px rgba(255,122,0,.35);}
.p1-place {width:34px;height:34px;display:grid;place-items:center;border:1px solid #4d6070;color:#fff;}
.p1-place-1 {color:#2a1600;background:var(--p1-gold);border-color:#fff0ad;}
.p1-place-2 {color:#15202a;background:#c4ced7;}
.p1-place-3 {color:#fff;background:#9d592e;}
.p1-member-cell {display:flex;align-items:center;gap:11px;}
.p1-member-cell img {width:38px;height:38px;object-fit:cover;border:1px solid #526778;}
.p1-full-ranking-row em {display:inline-flex;padding:3px 8px;color:var(--p1-cyan);font-style:normal;border:1px solid rgba(32,217,255,.35);font-size:10px;}
.p1-score {color:var(--p1-cyan);text-align:right;}

/* Member directory */
.p1-member-search {
  min-width:310px;
  min-height:43px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 13px;
  border:1px solid var(--p1-line-bright);
  background:#061019;
}
.p1-member-search i {color:var(--p1-orange);}
.p1-member-search input {width:100%;border:0;outline:0;background:transparent;color:#fff;font:700 14px inherit;}
.p1-member-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
.p1-member-card {min-height:260px;display:grid;grid-template-columns:112px 1fr;}
.p1-member-avatar-link {padding:15px 12px;display:flex;flex-direction:column;align-items:center;gap:9px;color:var(--p1-cyan);text-decoration:none;border-right:1px solid var(--p1-line);background:linear-gradient(180deg,rgba(255,122,0,.08),transparent);}
.p1-member-avatar-link img {width:82px;height:82px;object-fit:cover;border-radius:50%;border:2px solid var(--p1-orange);}
.p1-member-avatar-link span {font-size:10px;text-transform:uppercase;font-weight:900;}
.p1-member-card-body {padding:17px 14px 0;display:flex;flex-direction:column;position:relative;z-index:1;}
.p1-member-card-name {color:#fff;text-decoration:none;font-size:18px;font-weight:900;}
.p1-member-card-body > small {color:var(--p1-muted);font-size:10px;margin:3px 0 12px;}
.p1-member-card-stats {display:grid;gap:7px;}
.p1-member-card-stats div {display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:7px;min-height:34px;border-bottom:1px solid rgba(56,77,93,.45);}
.p1-member-card-stats i {color:var(--p1-orange);}
.p1-member-card-stats span {color:var(--p1-muted);font-size:10px;}
.p1-member-card-stats strong {color:var(--p1-cyan);font-size:12px;}
.p1-member-card .p1-panel-link {margin:auto -14px 0;}
.p1-no-members {min-height:220px;display:grid;place-items:center;color:var(--p1-muted);}

/* Profile */
.p1-profile-hero {
  min-height:190px;
  display:grid;
  grid-template-columns:150px 1fr 180px;
  align-items:center;
  padding:22px 28px;
}
.p1-profile-avatar-wrap {position:relative;z-index:1;}
.p1-profile-avatar-wrap img {width:122px;height:122px;object-fit:cover;border-radius:50%;border:3px solid var(--p1-orange);box-shadow:0 0 0 5px rgba(255,122,0,.12);}
.p1-profile-avatar-wrap span {position:absolute;bottom:3px;right:10px;padding:3px 8px;background:#07131d;border:1px solid var(--p1-cyan);color:var(--p1-cyan);font-size:10px;font-weight:900;}
.p1-profile-identity {position:relative;z-index:1;}
.p1-profile-identity h1 {margin:6px 0 2px;font-size:38px;color:#fff;}
.p1-profile-identity p {margin:0;color:var(--p1-muted);}
.p1-profile-actions {display:flex;flex-wrap:wrap;gap:9px;margin-top:17px;}
.p1-profile-watermark {width:150px;opacity:.34;justify-self:end;filter:grayscale(.2) drop-shadow(0 0 24px rgba(255,122,0,.22));}

.p1-profile-stat-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.p1-profile-stat-grid article {min-height:115px;padding:18px;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto auto;align-content:center;}
.p1-profile-stat-grid i {grid-row:1/span 3;color:var(--p1-orange);font-size:25px;}
.p1-profile-stat-grid span {color:var(--p1-muted);text-transform:uppercase;font-size:10px;}
.p1-profile-stat-grid strong {color:#fff;font-size:23px;}
.p1-profile-stat-grid small {color:var(--p1-cyan);}

.p1-profile-layout {display:grid;grid-template-columns:1fr 370px;gap:12px;}
.p1-profile-main,.p1-profile-aside{display:grid;gap:12px;align-content:start;}
.p1-achievement-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px;}
.p1-achievement-grid div {min-height:126px;padding:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid var(--p1-line);background:#07121b;}
.p1-achievement-grid i {font-size:32px;color:var(--p1-gold);filter:drop-shadow(0 0 8px rgba(255,200,75,.25));}
.p1-achievement-grid strong {margin-top:9px;color:#fff;}
.p1-achievement-grid small {color:var(--p1-muted);font-size:10px;}

.p1-train-summary {padding:20px;display:flex;gap:14px;align-items:center;}
.p1-train-summary > i {width:57px;height:57px;display:grid;place-items:center;color:var(--p1-orange);font-size:26px;border:1px solid var(--p1-line);background:#07121b;}
.p1-train-summary span,.p1-train-summary small {display:block;color:var(--p1-muted);}
.p1-train-summary strong {display:block;color:var(--p1-cyan);font-size:19px;}

.p1-profile-activity > div:not(.p1-card-header) {min-height:45px;padding:0 16px;display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;border-bottom:1px solid rgba(55,76,93,.4);}
.p1-profile-activity > div i {color:var(--p1-orange);}
.p1-profile-activity time {color:var(--p1-muted);font-size:10px;}

.p1-power-breakdown > div:not(.p1-card-header) {min-height:47px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(55,76,93,.4);}
.p1-power-breakdown span {color:var(--p1-muted);}
.p1-power-breakdown strong {color:var(--p1-cyan);}
.p1-private-state {justify-content:center!important;color:var(--p1-muted)!important;}

.p1-privacy-panel {padding-bottom:16px;}
.p1-privacy-panel > p {padding:0 16px;color:var(--p1-muted);font-size:12px;}
.p1-privacy-panel form {padding:0 16px;display:grid;gap:7px;}
.p1-privacy-panel label {min-height:41px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(55,76,93,.4);cursor:pointer;}
.p1-privacy-panel label span {display:flex;align-items:center;gap:9px;color:#d5dde4;}
.p1-privacy-panel label span i {width:18px;color:var(--p1-orange);}
.p1-privacy-panel input {position:absolute;opacity:0;pointer-events:none;}
.p1-privacy-panel label b {width:43px;height:22px;border-radius:14px;background:#263642;position:relative;transition:.2s;}
.p1-privacy-panel label b::after {content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#8393a0;transition:.2s;}
.p1-privacy-panel input:checked + b {background:rgba(53,230,138,.28);box-shadow:inset 0 0 0 1px var(--p1-green);}
.p1-privacy-panel input:checked + b::after {left:24px;background:var(--p1-green);box-shadow:0 0 8px rgba(53,230,138,.5);}
.p1-privacy-panel button {width:100%;margin-top:8px;}

.p1-toast {min-height:48px;padding:0 16px;display:flex;align-items:center;gap:9px;border:1px solid var(--p1-line);background:#07121b;}
.p1-toast.success {border-color:rgba(53,230,138,.55);color:var(--p1-green);}
.p1-toast.error {border-color:rgba(255,82,104,.55);color:var(--p1-red);}

/* Modal */
.p1-modal[hidden] {display:none!important;}
.p1-modal {position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:20px;}
.p1-modal-backdrop {position:absolute;inset:0;background:rgba(0,4,8,.82);backdrop-filter:blur(8px);}
.p1-modal-dialog {
  width:min(560px,100%);
  position:relative;
  padding:28px;
  border:1px solid var(--p1-line-bright);
  background:linear-gradient(145deg,#102131,#050c13);
  box-shadow:0 35px 90px #000,0 0 35px rgba(255,122,0,.17);
  clip-path:polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
}
.p1-modal-dialog h2 {margin:7px 0 18px;font-size:27px;text-transform:uppercase;}
.p1-modal-close {position:absolute;top:12px;right:12px;width:36px;height:36px;border:1px solid var(--p1-line);background:#07121b;color:#fff;cursor:pointer;}
.p1-modal-driver {display:flex;align-items:center;gap:13px;padding:14px;border:1px solid rgba(255,122,0,.42);background:rgba(255,122,0,.08);}
.p1-modal-driver img {width:68px;height:68px;object-fit:cover;border:2px solid var(--p1-orange);}
.p1-modal-driver strong {display:block;color:#fff;font-size:20px;}
.p1-modal-driver span {color:var(--p1-cyan);font-size:11px;}
.p1-modal-next,.p1-modal-status {margin-top:10px;padding:13px;border:1px solid var(--p1-line);background:#07121b;}
.p1-modal-next {display:grid;grid-template-columns:auto 1fr auto;gap:10px;}
.p1-modal-next span,.p1-modal-status > span {color:var(--p1-muted);text-transform:uppercase;font-size:9px;}
.p1-modal-next strong {color:#fff;}
.p1-modal-next time {color:var(--p1-cyan);}
.p1-modal-status strong {display:block;margin-top:5px;color:var(--p1-cyan);}
.p1-modal-status strong.status-rejected {color:var(--p1-red);}
.p1-modal-status strong.status-approved {color:var(--p1-green);}
.p1-modal-status p {margin:5px 0 0;color:var(--p1-muted);font-size:12px;}
.p1-modal-action {width:100%;margin-top:14px;}

/* Mobile bottom navigation */
body.deca-command-phase1 .deca-bottom-nav {
  height:70px;
  border-top:1px solid var(--p1-line);
  background:rgba(3,9,14,.97);
  box-shadow:0 -12px 35px rgba(0,0,0,.5);
}
body.deca-command-phase1 .deca-bottom-nav a {
  color:#8f9daa;
  text-transform:uppercase;
  font-size:9px;
  font-weight:900;
}
body.deca-command-phase1 .deca-bottom-nav a.active {color:#fff;background:linear-gradient(180deg,rgba(255,122,0,.15),transparent);box-shadow:inset 0 3px var(--p1-orange);}
body.deca-command-phase1 .deca-bottom-nav a.active i {color:var(--p1-orange);}

/* ======================================================================
   PHASE 1 COMPLETION v1.1.1
   Locked reference: colorful DECA gunmetal/orange/cyan command center.
   This is the only responsive layer. No UA detection, CSS zoom or viewport
   compensation is used.
   ====================================================================== */

html,
body.deca-command-phase1 {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

html.p1-modal-open,
html.p1-nav-open { overflow: hidden; }

body.deca-command-phase1 .site-header,
body.deca-command-phase1 .site-header.header-scrolled {
  min-height: 82px;
}

body.deca-command-phase1 .header-inner {
  width: min(1540px, calc(100% - 32px));
  min-height: 82px;
  grid-template-columns: minmax(236px, 304px) minmax(0, 1fr) auto;
  gap: 0;
}

body.deca-command-phase1 .brand {
  width: 100%;
  height: 82px;
  padding: 7px 20px 7px 0;
}

body.deca-command-phase1 .brand .p1-brand-logo {
  max-width: 292px;
  height: 68px;
}

body.deca-command-phase1 .deca-desktop-nav { height: 82px; }
body.deca-command-phase1 .deca-desktop-nav > li > a {
  min-width: 96px;
  padding: 0 14px !important;
  font-size: 12px;
}

body.deca-command-phase1 .site-main {
  padding: 12px 18px 34px;
  min-height: calc(100vh - 82px);
}
body.deca-command-phase1 .content-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.deca-command-phase1 .deca-modern-footer { margin-left: 0; }
.p1-side-rail { display: none !important; }

.p1-command-page {
  width: min(1480px, 100%);
  display: grid;
  gap: 10px;
}

.p1-panel {
  box-shadow: 0 12px 28px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.035);
}

.p1-overview-panel {
  min-height: 142px;
  display: grid;
  grid-template-columns: 210px minmax(500px, 1fr) minmax(390px, .95fr);
  align-items: stretch;
  padding: 0;
}

.p1-section-heading {
  min-width: 0;
  padding: 18px 16px 16px 22px;
  justify-content: flex-start;
  gap: 12px;
}
.p1-heading-emblem { width: 88px; height: 88px; }
.p1-section-heading h1 { font-size: 24px; margin-top: 5px; }

.p1-overview-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  border-left: 1px solid var(--p1-line);
  border-top: 0;
}
.p1-metric {
  min-height: 98px;
  padding: 14px 16px;
  grid-template-columns: 44px minmax(0,1fr);
  align-content: center;
}
.p1-metric > i { font-size: 32px; }
.p1-metric > strong { font-size: 23px; line-height: 1.05; }
.p1-metric > span { font-size: 10px; }
.p1-metric > small { font-size: 11px; }

.p1-command-announcement {
  grid-column: auto;
  border-top: 0;
  border-left: 1px solid var(--p1-line);
  padding: 20px 22px;
  align-content: center;
}
.p1-command-announcement > i { font-size: 23px; }
.p1-command-announcement strong { font-size: 17px; }
.p1-command-announcement p {
  margin: 4px 0 0;
  color: #c2ccd5;
  font-size: 13px;
  line-height: 1.35;
}

.p1-home-primary-grid,
.p1-home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.p1-home-primary-grid { min-height: 230px; }
.p1-home-secondary-grid { min-height: 248px; }
.p1-home-primary-grid > .p1-panel,
.p1-home-secondary-grid > .p1-panel { min-width: 0; }

.p1-card-header { min-height: 46px; padding: 0 15px; }
.p1-card-header h2 { font-size: 17px; }

.p1-driver-card {
  background:
    radial-gradient(circle at 88% 34%, rgba(255,141,27,.26), transparent 38%),
    linear-gradient(145deg, rgba(67,31,8,.96), rgba(20,13,8,.99));
  border-color: rgba(255,125,15,.72);
  box-shadow: 0 14px 34px rgba(0,0,0,.48), 0 0 19px rgba(255,112,0,.14), inset 0 1px rgba(255,205,120,.12);
}
.p1-driver-main { min-height: 105px; padding: 12px 16px 9px; }
.p1-driver-main img { width: 88px; height: 88px; }
.p1-driver-name { font-size: 23px; }
.p1-driver-main p { margin: 5px 0 0; font-size: 13px; }
.p1-request-train-button {
  min-height: 58px;
  margin: 0 14px 10px;
  font-size: 21px;
  box-shadow: 0 0 22px rgba(255,113,0,.34), inset 0 1px rgba(255,255,255,.42);
}
.p1-next-driver { min-height: 34px; padding: 7px 14px; }

.p1-vs-main { min-height: 91px; padding: 13px 17px 9px; }
.p1-vs-main > i { font-size: 46px; }
.p1-vs-main strong { font-size: 24px; }
.p1-progress { margin: 0 17px 12px; }
.p1-vs-stage div { padding: 9px 12px; }

.p1-war-status-main {
  min-height: 98px;
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 18px 10px;
  position: relative;
  z-index: 1;
}
.p1-war-emblem {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #d8e0e7;
  font-size: 42px;
  border: 1px solid var(--p1-line-bright);
  background: linear-gradient(145deg,#1b2b38,#071019);
  clip-path: var(--p1-cut);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.35);
}
.p1-war-copy span { display:block; color:var(--p1-orange-hot); text-transform:uppercase; font-size:10px; font-weight:900; letter-spacing:.8px; }
.p1-war-copy strong { display:block; margin-top:4px; color:#fff; font-size:22px; line-height:1.08; }
.p1-war-copy small { display:block; margin-top:4px; color:var(--p1-muted); font-size:12px; }
.p1-alliance-facts { display:grid; grid-template-columns:1fr 1fr; }
.p1-alliance-facts > div { min-height:37px; padding:7px 12px; }
.p1-alliance-facts > div:nth-child(odd) { border-right:1px solid var(--p1-line); }
.p1-alliance-facts i { color:#aeb8c2; }
.p1-alliance-facts strong { color:var(--p1-cyan); }

.p1-ranking-module,
.p1-activity-module,
.p1-guides-module { height: 100%; }
.p1-tab-bar button { min-height: 42px; font-size: 11px; }
.p1-ranking-head { min-height: 24px; }
.p1-ranking-row { min-height: 31px; }
.p1-ranking-row span img { width: 24px; height: 24px; }
.p1-activity-list a { min-height: 34px; padding: 6px 13px; }
.p1-guide-list > a { min-height: 43px; padding: 5px 12px; }
.p1-guide-icon {
  width: 68px;
  height: 36px;
  border-color: rgba(32,217,255,.35);
  background:
    radial-gradient(circle at 75% 30%, rgba(32,217,255,.28), transparent 55%),
    linear-gradient(135deg,#17334a,#08131e);
}
.p1-guide-icon i { font-size: 19px; color: var(--p1-cyan); filter: drop-shadow(0 0 8px rgba(32,217,255,.35)); }

.p1-tools-strip {
  min-height: 88px;
  grid-template-columns: 165px repeat(5,minmax(0,1fr));
}
.p1-tools-title { min-height: 88px; }
.p1-tools-strip > a {
  min-height: 88px;
  grid-template-columns: 50px minmax(0,1fr) auto;
  padding: 10px 13px;
}
.p1-tools-strip > a > i {
  width: 46px;
  height: 46px;
  font-size: 23px;
  color: var(--p1-orange-hot);
  background:
    radial-gradient(circle at 65% 30%, rgba(255,154,35,.27), transparent 55%),
    linear-gradient(145deg,#1b2a36,#071019);
}
.p1-tools-strip > a:nth-child(4) > i { color:var(--p1-cyan); box-shadow:inset 0 1px rgba(255,255,255,.06),0 0 18px rgba(32,217,255,.13); }
.p1-tools-strip > a:nth-child(6) > i { color:var(--p1-gold); }

body.deca-command-phase1 .deca-bottom-nav { display: none !important; }
body.deca-command-phase1 .mobile-nav-toggle { display: none !important; }

/* Compact desktop / large tablet */
@media (max-width: 1260px) {
  body.deca-command-phase1 .header-inner { grid-template-columns: 220px minmax(0,1fr) auto; }
  body.deca-command-phase1 .brand .p1-brand-logo { max-width: 215px; }
  body.deca-command-phase1 .deca-desktop-nav > li > a { min-width: 74px; padding:0 8px!important; font-size:10px; }
  body.deca-command-phase1 .userchip { min-width: 54px; padding-right:5px; }
  body.deca-command-phase1 .userchip .un { display:none; }
  .p1-overview-panel { grid-template-columns: 180px minmax(420px,1fr) minmax(320px,.8fr); }
  .p1-heading-emblem { width:72px; height:72px; }
  .p1-section-heading h1 { font-size:20px; }
  .p1-tools-strip { grid-template-columns:140px repeat(5,minmax(0,1fr)); }
  .p1-tools-strip > a { grid-template-columns:38px minmax(0,1fr) auto; padding:8px; }
  .p1-tools-strip > a > i { width:36px;height:36px;font-size:18px; }
}

/* Tablet: real two-column layout, no desktop shrinking. */
@media (max-width: 1020px) {
  body.deca-command-phase1 .header-inner { grid-template-columns: 205px minmax(0,1fr) auto; }
  body.deca-command-phase1 .deca-desktop-nav > li > a { min-width: 62px; font-size:9px; gap:5px; }
  body.deca-command-phase1 .deca-desktop-nav > li > a i { font-size:13px; }
  .p1-overview-panel { grid-template-columns: 180px 1fr; }
  .p1-command-announcement { grid-column:1/-1; border-left:0; border-top:1px solid var(--p1-line); min-height:86px; }
  .p1-home-primary-grid,
  .p1-home-secondary-grid { grid-template-columns:1fr 1fr; }
  .p1-home-primary-grid > :last-child,
  .p1-home-secondary-grid > :last-child { grid-column:1/-1; }
  .p1-tools-strip { grid-template-columns: repeat(3,1fr); }
  .p1-tools-title { grid-row:span 2; }
}

/* Mobile shell and true single-column content. */
@media (max-width: 860px) {
  body.deca-command-phase1 .site-header,
  body.deca-command-phase1 .site-header.header-scrolled { min-height:72px; }
  body.deca-command-phase1 .header-inner {
    width:100%;
    min-height:72px;
    padding:0 12px;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:8px;
  }
  body.deca-command-phase1 .header-left { min-width:0; }
  body.deca-command-phase1 .brand { width:196px; max-width:100%; height:64px; padding:4px 0; border-right:0; }
  body.deca-command-phase1 .brand .p1-brand-logo { width:100%; height:56px; object-fit:contain; }
  body.deca-command-phase1 .mobile-nav-toggle {
    display:flex!important;
    width:56px;
    height:56px;
    margin:0!important;
    border:1px solid rgba(255,122,0,.6)!important;
    border-radius:12px!important;
    background:linear-gradient(180deg,rgba(255,122,0,.12),rgba(6,13,20,.96))!important;
    color:var(--p1-orange)!important;
  }
  body.deca-command-phase1 .header-right { min-width:48px; }
  body.deca-command-phase1 .header-right .chip-admin,
  body.deca-command-phase1 .header-right .chip-logout,
  body.deca-command-phase1 .userchip .un { display:none!important; }
  body.deca-command-phase1 .userchip { min-width:0;padding:0;border:0;background:transparent;clip-path:none; }
  body.deca-command-phase1 .userchip .av { width:48px;height:48px; }

  body.deca-command-phase1 .header-nav {
    display:none!important;
    position:fixed!important;
    top:72px!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-height:calc(100dvh - 72px)!important;
    overflow-y:auto!important;
    padding:10px 12px 22px!important;
    background:rgba(3,9,15,.985)!important;
    border-top:1px solid rgba(255,122,0,.45)!important;
    border-bottom:1px solid var(--p1-orange)!important;
    box-shadow:0 22px 48px rgba(0,0,0,.75)!important;
  }
  body.deca-command-phase1 .header-nav.nav-active { display:block!important; }
  body.deca-command-phase1 .deca-desktop-nav { height:auto; display:grid; grid-template-columns:1fr 1fr; gap:7px; }
  body.deca-command-phase1 .deca-desktop-nav > li { display:block; min-width:0; }
  body.deca-command-phase1 .deca-desktop-nav > li > a {
    min-width:0;
    min-height:48px;
    width:100%;
    padding:0 12px!important;
    justify-content:flex-start!important;
    border:1px solid var(--p1-line)!important;
    font-size:11px;
    background:#07121b!important;
  }
  body.deca-command-phase1 .dropdown-menu { position:static!important; display:none!important; width:100%; min-width:0; margin-top:5px; clip-path:none; }
  body.deca-command-phase1 .nav-dropdown.dropdown-active .dropdown-menu { display:block!important; }

  body.deca-command-phase1 .site-main { padding:10px 10px calc(92px + env(safe-area-inset-bottom)); }
  .p1-command-page { width:100%; gap:10px; }
  .p1-overview-panel { min-height:0; grid-template-columns:1fr; }
  .p1-section-heading { min-height:88px; padding:13px 16px; }
  .p1-heading-emblem { width:66px;height:66px; }
  .p1-section-heading h1 { font-size:22px; }
  .p1-overview-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); border-left:0; border-top:1px solid var(--p1-line); }
  .p1-metric { min-height:82px; padding:10px 8px; grid-template-columns:32px minmax(0,1fr); }
  .p1-metric > i { font-size:23px; }
  .p1-metric > strong { font-size:17px; }
  .p1-command-announcement { grid-column:auto; min-height:96px; padding:14px 16px; border-left:0; border-top:1px solid var(--p1-line); }

  .p1-home-primary-grid,
  .p1-home-secondary-grid { grid-template-columns:1fr; min-height:0; gap:10px; }
  .p1-home-primary-grid > :last-child,
  .p1-home-secondary-grid > :last-child { grid-column:auto; }
  .p1-driver-main { min-height:112px; }
  .p1-request-train-button { min-height:62px;font-size:20px; }
  .p1-war-status-main { min-height:105px; }
  .p1-tools-strip { grid-template-columns:1fr 1fr; }
  .p1-tools-title { grid-column:1/-1; grid-row:auto; min-height:65px; }
  .p1-tools-strip > a { min-height:82px; }

  body.deca-command-phase1 .deca-bottom-nav {
    display:grid!important;
    position:fixed!important;
    z-index:10040!important;
    left:10px!important;
    right:10px!important;
    bottom:max(8px, env(safe-area-inset-bottom))!important;
    width:auto!important;
    height:72px!important;
    grid-template-columns:repeat(4,1fr)!important;
    border:1px solid var(--p1-line-bright)!important;
    border-radius:26px!important;
    overflow:hidden!important;
    background:rgba(3,9,14,.985)!important;
    box-shadow:0 14px 38px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.04)!important;
  }
  body.deca-command-phase1 .deca-bottom-nav a { min-width:0; }
}

@media (max-width: 560px) {
  body.deca-command-phase1 .brand { width:182px; }
  .p1-overview-metrics { grid-template-columns:1fr 1fr; }
  .p1-metric:nth-child(3) { grid-column:1/-1; }
  .p1-command-announcement p { display:none; }
  .p1-vs-stage { grid-template-columns:1fr 1fr 1fr; }
  .p1-tools-strip { grid-template-columns:1fr 1fr; }
  .p1-tools-strip > a { grid-template-columns:40px minmax(0,1fr) auto; padding:8px; }
  .p1-tools-strip > a > i { width:38px;height:38px;font-size:18px; }
}

@media (max-width: 390px) {
  body.deca-command-phase1 .header-inner { padding:0 8px; gap:5px; }
  body.deca-command-phase1 .brand { width:158px; }
  body.deca-command-phase1 .mobile-nav-toggle { width:51px;height:51px; }
  body.deca-command-phase1 .userchip .av { width:44px;height:44px; }
  .p1-overview-metrics { grid-template-columns:1fr; }
  .p1-metric:nth-child(3) { grid-column:auto; }
  .p1-tools-strip { grid-template-columns:1fr; }
  .p1-tools-title { grid-column:auto; }
}


/* ======================================================================
   PHASE 1 VISUAL FIDELITY v1.2.0
   Approved reference: colorful command center with illustrated panels.
   ====================================================================== */

.p1-panel {
  border-color: #31495d;
  background:
    linear-gradient(180deg, rgba(12,27,40,.98), rgba(5,14,22,.985)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 1px, transparent 1px 14px);
  box-shadow:
    0 14px 34px rgba(0,0,0,.48),
    inset 0 1px rgba(255,255,255,.055),
    inset 0 -1px rgba(0,0,0,.75);
}

.p1-panel::after {
  content:"";
  position:absolute;
  inset:5px;
  pointer-events:none;
  border:1px solid rgba(87,118,141,.14);
  clip-path:var(--p1-cut);
  z-index:0;
}

.p1-overview-panel {
  background:
    radial-gradient(circle at 10% 45%, rgba(255,122,0,.09), transparent 18rem),
    linear-gradient(180deg, rgba(13,29,43,.99), rgba(5,14,22,.99));
  border-top-color:#587087;
}

.p1-heading-emblem {
  width:100px;
  height:100px;
  filter:drop-shadow(0 12px 18px #000) drop-shadow(0 0 18px rgba(255,122,0,.28));
}

.p1-section-heading h1 {
  font-size:26px;
  letter-spacing:.035em;
  text-shadow:0 2px 4px rgba(0,0,0,.8);
}

.p1-metric > i {
  font-size:36px;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.8));
}

.p1-metric > strong { font-size:25px; }
.p1-command-announcement > i { color:#ff8a08; filter:drop-shadow(0 0 8px rgba(255,122,0,.45)); }

.p1-driver-card {
  isolation:isolate;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(35,17,5,.98) 0 38%, rgba(30,16,7,.83) 60%, rgba(10,12,14,.72)),
    url("deca-phase1/visual/train-driver-bg.webp") right center / cover no-repeat;
  border-color:#ff8310;
  box-shadow:
    0 15px 36px rgba(0,0,0,.56),
    0 0 25px rgba(255,105,0,.25),
    inset 0 1px rgba(255,221,160,.18);
}

.p1-driver-card::before {
  background:
    linear-gradient(90deg, rgba(17,9,3,.83) 0 38%, rgba(17,8,2,.28) 68%, rgba(255,113,0,.08)),
    radial-gradient(circle at 75% 45%, rgba(255,131,18,.24), transparent 42%);
  z-index:0;
}

.p1-driver-card .p1-card-header,
.p1-driver-main,
.p1-request-train-button,
.p1-next-driver { z-index:2; }

.p1-driver-main { max-width:62%; }
.p1-driver-name { text-shadow:0 2px 6px #250b00, 0 0 14px rgba(255,122,0,.22); }
.p1-driver-main > img {
  border-width:4px;
  background:#0a121a;
  box-shadow:0 0 0 4px rgba(255,122,0,.2),0 0 30px rgba(255,122,0,.43),0 12px 25px rgba(0,0,0,.5);
}

.p1-request-train-button {
  border-color:#ffe29c;
  background:linear-gradient(180deg,#ffbd42 0,#ff8b0a 16%,#ff6a00 55%,#d64500 82%,#8c2600 100%);
  box-shadow:
    inset 0 2px rgba(255,255,255,.78),
    inset 0 -2px rgba(91,24,0,.8),
    0 0 8px #ff9a17,
    0 0 30px rgba(255,103,0,.55);
  text-shadow:0 2px 3px #6d1d00;
}

.p1-vs-main { grid-template-columns:72px 1fr 78px; }
.p1-vs-emblem { width:64px; height:64px; filter:drop-shadow(0 8px 12px #000) drop-shadow(0 0 12px rgba(255,153,20,.25)); }
.p1-vs-main > b { padding-left:10px; border-left:1px solid rgba(65,91,110,.55); }
.p1-progress { height:10px; border-color:#355063; box-shadow:inset 0 2px 4px rgba(0,0,0,.8); }
.p1-progress span { background:linear-gradient(90deg,#00a8d8,#18dcff,#67efff); }

.p1-war-emblem {
  width:88px;
  height:88px;
  padding:7px;
  background:linear-gradient(145deg,#1c2d3b,#071019);
}
.p1-war-emblem img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 7px 10px rgba(0,0,0,.7)); }
.p1-war-copy strong { font-size:25px; }

.p1-tab-bar button.active {
  color:#fff;
  background:linear-gradient(180deg,rgba(255,134,17,.21),rgba(255,77,0,.04));
  box-shadow:inset 0 3px #ff8c11,inset 0 -2px #ff6500,0 0 16px rgba(255,102,0,.12);
}

.p1-ranking-row:nth-of-type(2) > b,
.p1-ranking-row:nth-of-type(3) > b,
.p1-ranking-row:nth-of-type(4) > b {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#111;
  font-weight:1000;
  text-shadow:0 1px rgba(255,255,255,.35);
}
.p1-ranking-row:nth-of-type(2) > b { background:linear-gradient(145deg,#ffe86b,#cc7f00); }
.p1-ranking-row:nth-of-type(3) > b { background:linear-gradient(145deg,#f2f5f8,#7d8b97); }
.p1-ranking-row:nth-of-type(4) > b { background:linear-gradient(145deg,#e89b58,#7b3517); }
.p1-ranking-row.is-current {
  background:linear-gradient(90deg,rgba(255,122,0,.19),rgba(255,122,0,.035));
  box-shadow:inset 0 0 0 2px #f37a0a,0 0 15px rgba(255,122,0,.12);
}

.p1-activity-list a > i {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  background:rgba(3,12,18,.7);
  clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
}
.p1-activity-list a:nth-child(3n+1) > i { color:#ff8a0c; }
.p1-activity-list a:nth-child(3n+2) > i { color:#18dcff; }
.p1-activity-list a:nth-child(3n) > i { color:#8bdc4b; }

.p1-guide-thumb {
  width:92px;
  height:48px;
  overflow:hidden;
  border:1px solid #35556b;
  background:#071019;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 5px 12px rgba(0,0,0,.28);
  clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
}
.p1-guide-thumb img { width:100%; height:100%; object-fit:cover; display:block; filter:saturate(1.15) contrast(1.08); }
.p1-guide-list > a { grid-template-columns:92px minmax(0,1fr) auto; min-height:58px; }
.p1-guide-list strong { font-size:14px; }

.p1-tools-strip {
  min-height:142px;
  grid-template-columns:155px repeat(5,minmax(0,1fr));
  overflow:hidden;
}
.p1-tools-title { min-height:142px; }
.p1-tool-card {
  min-height:142px !important;
  display:grid !important;
  grid-template-columns:82px minmax(0,1fr) auto !important;
  padding:9px 11px !important;
  background:linear-gradient(180deg,rgba(15,31,44,.92),rgba(5,13,20,.98));
  overflow:hidden;
}
.p1-tool-card::before {
  content:"";
  position:absolute;
  inset:4px;
  border:1px solid rgba(77,108,130,.28);
  pointer-events:none;
}
.p1-tool-art {
  width:82px;
  height:112px;
  object-fit:cover;
  object-position:center;
  border:1px solid #415d70;
  box-shadow:0 7px 18px rgba(0,0,0,.48),inset 0 1px rgba(255,255,255,.08);
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
}
.p1-tool-card strong { font-size:15px !important; letter-spacing:.04em; }
.p1-tool-card small { font-size:11px !important; line-height:1.25; }
.p1-tool-card:hover .p1-tool-art { filter:brightness(1.12) saturate(1.15); }
.p1-tool-card:hover { box-shadow:inset 0 2px #ff7a00,inset 0 -1px rgba(32,217,255,.25); }

@media (max-width:1260px) {
  .p1-driver-main { max-width:68%; }
  .p1-tools-strip { grid-template-columns:135px repeat(5,minmax(0,1fr)); }
  .p1-tool-card { grid-template-columns:62px minmax(0,1fr) auto !important; }
  .p1-tool-art { width:62px; height:92px; }
}

@media (max-width:1020px) {
  .p1-driver-main { max-width:72%; }
  .p1-tools-strip { grid-template-columns:repeat(3,1fr); }
  .p1-tools-title { min-height:120px; }
  .p1-tool-card { min-height:120px !important; }
}

@media (max-width:860px) {
  .p1-driver-card { background-position:68% center; }
  .p1-driver-main { max-width:none; padding-right:34%; }
  .p1-tools-strip { grid-template-columns:1fr 1fr; }
  .p1-tools-title { grid-column:1/-1; min-height:64px; }
  .p1-tool-card { min-height:112px !important; grid-template-columns:64px minmax(0,1fr) auto !important; }
  .p1-tool-art { width:64px; height:88px; }
}

@media (max-width:560px) {
  .p1-driver-card {
    background-position:72% center;
    background-size:auto 100%;
  }
  .p1-driver-main {
    padding-right:28%;
    background:linear-gradient(90deg,rgba(21,10,3,.7),rgba(21,10,3,.12));
  }
  .p1-driver-main > img { width:82px; height:82px; }
  .p1-driver-name { font-size:21px; }
  .p1-guide-thumb { width:78px; height:44px; }
  .p1-guide-list > a { grid-template-columns:78px minmax(0,1fr) auto; }
  .p1-tools-strip { grid-template-columns:1fr 1fr; }
  .p1-tool-card { grid-template-columns:54px minmax(0,1fr) auto !important; min-height:98px !important; }
  .p1-tool-art { width:54px; height:74px; }
  .p1-tool-card strong { font-size:12px !important; }
  .p1-tool-card small { font-size:9px !important; }
}


/* ======================================================================
   PHASE 1 FINAL POLISH v1.3.0
   Locked visual reference: colorful DECA command-center dashboard.
   This layer changes no routing, database or services.
   ====================================================================== */

:root {
  --p1-orange-glow: rgba(255, 111, 0, .58);
  --p1-cyan-glow: rgba(25, 214, 255, .32);
}

body.deca-command-phase1 .site-header {
  box-shadow:
    0 1px 0 rgba(67, 96, 116, .65),
    0 12px 34px rgba(0,0,0,.42);
}

body.deca-command-phase1 .deca-desktop-nav > li > a.active {
  background:
    linear-gradient(180deg, rgba(255,132,17,.19), rgba(8,17,25,.96));
  box-shadow:
    inset 0 3px #ff8b16,
    inset 0 -3px #ff6c00,
    0 0 22px rgba(255,107,0,.18);
}

.p1-overview-panel {
  border-color: #3b566a;
  box-shadow:
    0 15px 36px rgba(0,0,0,.5),
    inset 0 1px rgba(255,255,255,.07),
    0 0 0 1px rgba(17,46,65,.58);
}

.p1-section-heading {
  position: relative;
  overflow: hidden;
}
.p1-section-heading::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255,125,15,.7), transparent);
}
.p1-section-heading > div {
  min-width: 0;
}
.p1-section-heading h1 {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.02;
}
.p1-heading-emblem {
  flex: 0 0 auto;
}

.p1-metric {
  background:
    radial-gradient(circle at 28% 32%, rgba(32,217,255,.045), transparent 55%);
}
.p1-metric > i {
  color: #cbd5dd;
  text-shadow: 0 2px 4px #000;
}
.p1-metric > strong {
  color: #fff;
}
.p1-command-announcement {
  background:
    radial-gradient(circle at 11% 38%, rgba(255,122,0,.09), transparent 42%);
}

.p1-driver-card {
  background:
    linear-gradient(90deg,
      rgba(29,13,3,.97) 0%,
      rgba(29,13,3,.88) 35%,
      rgba(24,12,4,.55) 57%,
      rgba(7,10,13,.12) 100%),
    url("deca-phase1/visual/train-driver-bg.webp") 77% center / 132% auto no-repeat;
  border-color: #ff8b16;
  box-shadow:
    0 16px 38px rgba(0,0,0,.58),
    0 0 34px rgba(255,101,0,.3),
    inset 0 1px rgba(255,226,170,.2);
}
.p1-driver-card::before {
  background:
    radial-gradient(circle at 76% 34%, rgba(255,145,31,.25), transparent 28%),
    linear-gradient(90deg, rgba(21,9,2,.5), transparent 78%);
}
.p1-driver-main {
  max-width: 70%;
}
.p1-driver-main > img {
  box-shadow:
    0 0 0 4px rgba(255,122,0,.22),
    0 0 32px rgba(255,122,0,.48),
    0 13px 26px rgba(0,0,0,.62);
}
.p1-request-train-button {
  letter-spacing: .035em;
  border-width: 2px;
  box-shadow:
    inset 0 2px rgba(255,255,255,.82),
    inset 0 -3px rgba(91,24,0,.76),
    0 0 10px #ff9b20,
    0 0 38px rgba(255,103,0,.62);
}
.p1-request-train-button:hover {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-1px);
}

.p1-vs-progress {
  background:
    radial-gradient(circle at 18% 44%, rgba(32,217,255,.075), transparent 42%),
    linear-gradient(180deg, rgba(12,28,42,.99), rgba(5,14,22,.99));
}
.p1-vs-emblem {
  width: 68px;
  height: 68px;
}
.p1-vs-main > b {
  color: var(--p1-cyan);
  text-shadow: 0 0 13px rgba(32,217,255,.24);
}

.p1-alliance-status {
  background:
    radial-gradient(circle at 16% 42%, rgba(255,122,0,.055), transparent 39%),
    linear-gradient(180deg, rgba(12,28,42,.99), rgba(5,14,22,.99));
}
.p1-war-emblem {
  border-color: #435e72;
  box-shadow:
    inset 0 1px rgba(255,255,255,.1),
    0 9px 23px rgba(0,0,0,.44),
    0 0 18px rgba(32,217,255,.08);
}
.p1-war-copy strong {
  font-size: 26px;
}

.p1-position-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  color: #dfe7ed;
  background: #0b1720;
  box-shadow: inset 0 1px rgba(255,255,255,.07);
}
.p1-position-badge.position-1 {
  color: #271300;
  background: linear-gradient(145deg,#fff27e,#dc8e00 62%,#8b4d00);
  box-shadow: 0 0 14px rgba(255,184,28,.38), inset 0 1px #fff7b1;
}
.p1-position-badge.position-2 {
  color: #16202a;
  background: linear-gradient(145deg,#ffffff,#a9b5bf 62%,#6a7782);
  box-shadow: 0 0 12px rgba(210,229,242,.25), inset 0 1px #fff;
}
.p1-position-badge.position-3 {
  color: #2a1204;
  background: linear-gradient(145deg,#f2b16d,#ae5d2c 62%,#683014);
  box-shadow: 0 0 12px rgba(219,120,61,.24), inset 0 1px #ffd2a4;
}
.p1-position-badge.position-current {
  border-radius: 6px;
  color: #ffb53e;
  border-color: rgba(255,122,0,.7);
  background: rgba(255,122,0,.1);
}

.p1-guide-list > a {
  transition: background .18s ease, transform .18s ease;
}
.p1-guide-list > a:hover {
  background: linear-gradient(90deg, rgba(255,122,0,.08), rgba(32,217,255,.035));
  transform: translateX(2px);
}
.p1-guide-thumb {
  width: 104px;
  height: 52px;
}
.p1-guide-list > a {
  grid-template-columns: 104px minmax(0,1fr) auto;
}
.p1-guide-thumb img {
  filter: saturate(1.2) contrast(1.12) brightness(1.06);
}

.p1-tools-strip {
  border-color: #344f64;
}
.p1-tool-card {
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.p1-tool-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(22,43,58,.96), rgba(6,16,24,.99));
}
.p1-tool-art {
  filter: saturate(1.12) contrast(1.08);
}

/* Real desktop: match the reference's three-column command board. */
@media (min-width: 1281px) {
  .p1-overview-panel {
    grid-template-columns: 230px minmax(560px, 1fr) minmax(390px, .92fr);
  }
  .p1-home-primary-grid {
    grid-template-columns: 1.02fr .92fr .96fr;
  }
  .p1-home-secondary-grid {
    grid-template-columns: .95fr 1fr 1.05fr;
  }
  .p1-driver-main {
    max-width: 67%;
  }
}

/* Compact desktop and tablet: eliminate heading/metric overlap. */
@media (min-width: 861px) and (max-width: 1280px) {
  .p1-overview-panel {
    grid-template-columns: 235px minmax(0, 1fr);
  }
  .p1-section-heading {
    min-width: 235px;
  }
  .p1-overview-metrics {
    min-width: 0;
  }
  .p1-command-announcement {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--p1-line);
  }
}

/* Physical mobile class wins even when Android Chrome asks for desktop mode. */
html.p1-physical-mobile,
html.p1-physical-mobile body.deca-command-phase1 {
  min-width: 0 !important;
  overflow-x: clip !important;
}

html.p1-physical-mobile body.deca-command-phase1 .site-header,
html.p1-physical-mobile body.deca-command-phase1 .site-header.header-scrolled {
  min-height: 72px !important;
}
html.p1-physical-mobile body.deca-command-phase1 .header-inner {
  width: 100% !important;
  min-height: 72px !important;
  padding: 0 12px !important;
  grid-template-columns: minmax(0,1fr) auto auto !important;
  gap: 8px !important;
}
html.p1-physical-mobile body.deca-command-phase1 .brand {
  width: min(196px, 100%) !important;
  height: 64px !important;
  padding: 4px 0 !important;
  border-right: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .brand .p1-brand-logo {
  width: 100% !important;
  max-width: 196px !important;
  height: 56px !important;
  object-fit: contain !important;
}
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle {
  display: flex !important;
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,122,0,.68) !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg,rgba(255,122,0,.13),rgba(6,13,20,.98)) !important;
  color: var(--p1-orange) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .header-right .chip-admin,
html.p1-physical-mobile body.deca-command-phase1 .header-right .chip-logout,
html.p1-physical-mobile body.deca-command-phase1 .userchip .un {
  display: none !important;
}
html.p1-physical-mobile body.deca-command-phase1 .userchip {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  clip-path: none !important;
}
html.p1-physical-mobile body.deca-command-phase1 .userchip .av {
  width: 48px !important;
  height: 48px !important;
}

html.p1-physical-mobile body.deca-command-phase1 .header-nav {
  display: none !important;
  position: fixed !important;
  z-index: 10030 !important;
  top: 72px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: calc(100dvh - 72px) !important;
  overflow-y: auto !important;
  padding: 10px 12px 22px !important;
  background: rgba(3,9,15,.99) !important;
  border-top: 1px solid rgba(255,122,0,.48) !important;
  border-bottom: 1px solid var(--p1-orange) !important;
  box-shadow: 0 22px 48px rgba(0,0,0,.78) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .header-nav.nav-active {
  display: block !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav {
  height: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 7px !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li {
  display: block !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li > a {
  min-width: 0 !important;
  min-height: 48px !important;
  width: 100% !important;
  padding: 0 12px !important;
  justify-content: flex-start !important;
  border: 1px solid var(--p1-line) !important;
  font-size: 11px !important;
  background: #07121b !important;
}

html.p1-physical-mobile body.deca-command-phase1 .site-main {
  padding: 10px 10px calc(98px + env(safe-area-inset-bottom)) !important;
}
html.p1-physical-mobile .p1-command-page {
  width: 100% !important;
  max-width: none !important;
  gap: 10px !important;
}
html.p1-physical-mobile .p1-overview-panel {
  min-height: 0 !important;
  grid-template-columns: 1fr !important;
}
html.p1-physical-mobile .p1-section-heading {
  min-width: 0 !important;
  min-height: 90px !important;
  padding: 13px 16px !important;
}
html.p1-physical-mobile .p1-section-heading::after {
  display: none !important;
}
html.p1-physical-mobile .p1-heading-emblem {
  width: 68px !important;
  height: 68px !important;
}
html.p1-physical-mobile .p1-section-heading h1 {
  font-size: 22px !important;
}
html.p1-physical-mobile .p1-overview-metrics {
  grid-template-columns: 1fr 1fr !important;
  border-left: 0 !important;
  border-top: 1px solid var(--p1-line) !important;
}
html.p1-physical-mobile .p1-metric {
  min-height: 84px !important;
  padding: 10px 10px !important;
  grid-template-columns: 34px minmax(0,1fr) !important;
}
html.p1-physical-mobile .p1-metric:nth-child(3) {
  grid-column: 1 / -1 !important;
}
html.p1-physical-mobile .p1-metric > i {
  font-size: 24px !important;
}
html.p1-physical-mobile .p1-metric > strong {
  font-size: 18px !important;
}
html.p1-physical-mobile .p1-command-announcement {
  grid-column: auto !important;
  min-height: 94px !important;
  padding: 14px 16px !important;
  border-left: 0 !important;
  border-top: 1px solid var(--p1-line) !important;
}
html.p1-physical-mobile .p1-command-announcement p {
  display: none !important;
}
html.p1-physical-mobile .p1-home-primary-grid,
html.p1-physical-mobile .p1-home-secondary-grid {
  grid-template-columns: 1fr !important;
  min-height: 0 !important;
  gap: 10px !important;
}
html.p1-physical-mobile .p1-home-primary-grid > *,
html.p1-physical-mobile .p1-home-secondary-grid > * {
  grid-column: auto !important;
}
html.p1-physical-mobile .p1-driver-card {
  background-position: 72% center !important;
  background-size: auto 100% !important;
}
html.p1-physical-mobile .p1-driver-main {
  max-width: none !important;
  padding-right: 29% !important;
  min-height: 116px !important;
}
html.p1-physical-mobile .p1-driver-main > img {
  width: 84px !important;
  height: 84px !important;
}
html.p1-physical-mobile .p1-request-train-button {
  min-height: 62px !important;
  font-size: 20px !important;
}
html.p1-physical-mobile .p1-tools-strip {
  grid-template-columns: 1fr 1fr !important;
}
html.p1-physical-mobile .p1-tools-title {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-height: 64px !important;
}
html.p1-physical-mobile .p1-tool-card {
  min-height: 108px !important;
  grid-template-columns: 58px minmax(0,1fr) auto !important;
}
html.p1-physical-mobile .p1-tool-art {
  width: 58px !important;
  height: 82px !important;
}
html.p1-physical-mobile .p1-guide-thumb {
  width: 84px !important;
  height: 46px !important;
}
html.p1-physical-mobile .p1-guide-list > a {
  grid-template-columns: 84px minmax(0,1fr) auto !important;
}

html.p1-physical-mobile body.deca-command-phase1 .deca-bottom-nav {
  display: grid !important;
  position: fixed !important;
  z-index: 10040 !important;
  left: 10px !important;
  right: 10px !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  min-width: 0 !important;
  height: 72px !important;
  grid-template-columns: repeat(4,1fr) !important;
  border: 1px solid var(--p1-line-bright) !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  background: rgba(3,9,14,.99) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.76), inset 0 1px rgba(255,255,255,.05) !important;
}

/* Recovery for Android "Desktop site": layout uses real device width. */
html.p1-mobile-emulated,
html.p1-mobile-emulated body.deca-command-phase1 {
  box-sizing: border-box !important;
  width: var(--p1-physical-width) !important;
  max-width: var(--p1-physical-width) !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-x: clip !important;
}
html.p1-mobile-emulated body.deca-command-phase1 .site-header,
html.p1-mobile-emulated body.deca-command-phase1 .site-main,
html.p1-mobile-emulated body.deca-command-phase1 .content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Very small phones */
@media (max-width: 420px) {
  html.p1-physical-mobile body.deca-command-phase1 .header-inner {
    padding: 0 8px !important;
    gap: 5px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1 .brand {
    width: 164px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle {
    width: 51px !important;
    height: 51px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1 .userchip .av {
    width: 44px !important;
    height: 44px !important;
  }
  html.p1-physical-mobile .p1-driver-main {
    padding-right: 23% !important;
  }
  html.p1-physical-mobile .p1-tools-strip {
    grid-template-columns: 1fr !important;
  }
  html.p1-physical-mobile .p1-tools-title {
    grid-column: auto !important;
  }
}


/* ======================================================================
   PHASE 1 NAVIGATION HOTFIX v1.3.1
   ====================================================================== */
html.p1-physical-mobile body.deca-command-phase1 .header-nav,
html.p1-physical-mobile body.deca-command-phase1 #headerNav {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .header-nav,
html.p1-physical-mobile body.deca-command-phase1 .header-nav.nav-active,
html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 #headerNav,
html.p1-physical-mobile body.deca-command-phase1 #headerNav.nav-active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10060 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle.is-open,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle[aria-expanded="true"] {
  border-color: var(--p1-cyan) !important;
  color: var(--p1-cyan) !important;
  box-shadow: 0 0 22px rgba(32,217,255,.28), inset 0 0 16px rgba(32,217,255,.08) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-bottom-nav {
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
  inset-inline: 10px !important;
  width: auto !important;
  max-width: none !important;
}
html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .deca-bottom-nav {
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ======================================================================
   PHASE 1 MOBILE SHELL & PROFILE UPGRADE v1.3.2
   ====================================================================== */

/* Mobile drawer backdrop and scroll lock. */
html.p1-physical-mobile body.deca-command-phase1.p1-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
html.p1-physical-mobile .p1-mobile-nav-backdrop {
  display: none;
  position: fixed;
  z-index: 10045;
  inset: 72px 0 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 4, 8, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: default;
}
html.p1-physical-mobile .p1-mobile-nav-backdrop.is-active {
  display: block !important;
}

/* Compact, single-column accordion menu. */
html.p1-physical-mobile body.deca-command-phase1 .header-nav,
html.p1-physical-mobile body.deca-command-phase1 #headerNav {
  z-index: 10060 !important;
  top: 72px !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  max-width: 520px !important;
  max-height: calc(100dvh - 84px - env(safe-area-inset-bottom)) !important;
  margin: 0 auto !important;
  padding: 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border: 1px solid rgba(255, 122, 0, .58) !important;
  border-radius: 0 0 18px 18px !important;
  background:
    linear-gradient(180deg, rgba(11, 25, 36, .995), rgba(3, 9, 15, .995)) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .82),
    inset 0 1px rgba(255, 255, 255, .04) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 6px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li > a {
  min-height: 48px !important;
  width: 100% !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(76, 104, 124, .58) !important;
  border-radius: 9px !important;
  clip-path: none !important;
  background:
    linear-gradient(180deg, rgba(14, 31, 43, .97), rgba(6, 17, 26, .99)) !important;
  color: #dce6ed !important;
  font-size: 12px !important;
  letter-spacing: .02em !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025) !important;
  -webkit-tap-highlight-color: transparent !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li > a.active,
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li > a:focus-visible {
  border-color: var(--p1-orange) !important;
  color: #fff !important;
  outline: 0 !important;
  box-shadow:
    0 0 0 1px rgba(255, 122, 0, .18),
    inset 3px 0 var(--p1-orange),
    inset 0 0 18px rgba(255, 122, 0, .08) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown > .dropdown-toggle {
  position: relative !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown > .dropdown-toggle .nav-arrow {
  margin-left: auto !important;
  transition: transform .18s ease !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown.dropdown-active > .dropdown-toggle {
  border-color: var(--p1-orange) !important;
  color: var(--p1-orange-light) !important;
  background:
    linear-gradient(180deg, rgba(45, 25, 8, .96), rgba(11, 20, 28, .99)) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown.dropdown-active > .dropdown-toggle .nav-arrow {
  transform: rotate(180deg) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu {
  position: static !important;
  inset: auto !important;
  display: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 5px 0 2px !important;
  padding: 5px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 122, 0, .28) !important;
  border-radius: 9px !important;
  clip-path: none !important;
  transform: none !important;
  background: rgba(3, 11, 18, .98) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .32) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown.dropdown-active > .dropdown-menu {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 3px !important;
}
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li,
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a {
  width: 100% !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a {
  min-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px 8px 18px !important;
  text-align: left !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #bfcdd7 !important;
  background: transparent !important;
  font-size: 11px !important;
}
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a:hover,
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a:focus-visible,
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a.active-drop {
  color: #fff !important;
  outline: 0 !important;
  background: rgba(255, 122, 0, .12) !important;
}

/* Keep the menu control consistently orange, including open/pressed state. */
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle:hover,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle:focus,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle:active,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle.is-open,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 122, 0, .82) !important;
  color: var(--p1-orange) !important;
  outline: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 122, 0, .18), rgba(6, 13, 20, .99)) !important;
  box-shadow:
    0 0 22px rgba(255, 122, 0, .24),
    inset 0 0 18px rgba(255, 122, 0, .08) !important;
  -webkit-tap-highlight-color: transparent !important;
}
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle.is-open .bl:nth-child(1),
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle[aria-expanded="true"] .bl:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle.is-open .bl:nth-child(2),
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle[aria-expanded="true"] .bl:nth-child(2) {
  opacity: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle.is-open .bl:nth-child(3),
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle[aria-expanded="true"] .bl:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

/* Bottom navigation: always fully visible and never covers page content. */
html.p1-physical-mobile body.deca-command-phase1 .site-main {
  padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-modern-footer {
  margin-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-bottom-nav {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  left: 10px !important;
  right: 10px !important;
  bottom: max(8px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  translate: none !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-bottom-nav > a {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-bottom-nav > a span {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .deca-bottom-nav,
html.p1-physical-mobile.p1-modal-open body.deca-command-phase1 .deca-bottom-nav {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide legacy command-strip layers that leaked into Profile and Guides. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] [data-phase3-command-strip],
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] [data-phase3-command-strip] {
  display: none !important;
}

/* Member profile: genuine mobile composition, no desktop side columns. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-page,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-main,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-aside {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-content: start !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-page {
  display: grid !important;
  gap: 10px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-hero {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 14px !important;
  padding: 20px 16px !important;
  text-align: center !important;
  overflow: hidden !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-avatar-wrap {
  justify-self: center !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-avatar-wrap img {
  width: 108px !important;
  height: 108px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-identity {
  width: 100% !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-identity h1 {
  margin: 7px 0 4px !important;
  font-size: clamp(26px, 8vw, 36px) !important;
  overflow-wrap: anywhere !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-identity p {
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin-top: 14px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-actions .p1-button {
  width: 100% !important;
  justify-content: center !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-watermark {
  display: none !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-stat-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-stat-grid article {
  min-width: 0 !important;
  min-height: 112px !important;
  padding: 13px 9px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: center !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-stat-grid i {
  grid-row: auto !important;
  margin-bottom: 3px !important;
  font-size: 23px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-stat-grid strong {
  max-width: 100% !important;
  font-size: 21px !important;
  overflow-wrap: anywhere !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-stat-grid small {
  font-size: 9px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-main,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-aside {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-achievement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 10px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-achievement-grid div {
  min-width: 0 !important;
  min-height: 112px !important;
  padding: 10px 7px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-activity > div:not(.p1-card-header) {
  min-height: 52px !important;
  padding: 7px 12px !important;
  grid-template-columns: 25px minmax(0, 1fr) auto !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-power-breakdown,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  overflow: visible !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel {
  padding-bottom: 14px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel > p,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel form {
  padding-left: 12px !important;
  padding-right: 12px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel label {
  min-height: 48px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel label span {
  min-width: 0 !important;
  font-size: 12px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-privacy-panel button {
  min-height: 50px !important;
}

/* Guides: replace the legacy red/pink surface with Command Center styling. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
body.deca-command-phase1[data-deca-route="guides"] .gd-rays,
body.deca-command-phase1[data-deca-route="guides"] .gd-embers {
  display: none !important;
}
body.deca-command-phase1[data-deca-route="guides"] .gd-glow {
  opacity: .45 !important;
  background:
    radial-gradient(ellipse 70% 36% at 50% 0%, rgba(255, 122, 0, .12), transparent 64%) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guides-wrapper {
  position: relative !important;
  z-index: 1 !important;
  width: min(1120px, 100%) !important;
  max-width: 1120px !important;
  margin: 0 auto 28px !important;
  padding: 0 14px !important;
  color: #e8eef2 !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guides-header {
  align-items: center !important;
  margin-bottom: 14px !important;
  padding: 18px !important;
  border: 1px solid rgba(76, 104, 124, .62) !important;
  border-left: 3px solid var(--p1-orange) !important;
  border-radius: 0 !important;
  clip-path: polygon(0 13px, 13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%) !important;
  background:
    linear-gradient(135deg, rgba(15, 32, 44, .98), rgba(4, 13, 21, .99)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 28px rgba(0, 0, 0, .32) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guides-header h1 {
  color: #fff !important;
  font-family: var(--p1-display, inherit) !important;
  font-size: clamp(24px, 5vw, 34px) !important;
  letter-spacing: .035em !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guides-header h1 span {
  color: var(--p1-orange) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .btn-create {
  min-height: 46px !important;
  border: 1px solid #ffb04a !important;
  border-radius: 4px !important;
  color: #fff !important;
  background:
    linear-gradient(180deg, #ff9c24, #ef6500) !important;
  box-shadow: 0 0 22px rgba(255, 122, 0, .22), inset 0 1px rgba(255, 255, 255, .34) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .theme-rules,
body.deca-command-phase1[data-deca-route="guides"] .theme-s3,
body.deca-command-phase1[data-deca-route="guides"] .theme-s4,
body.deca-command-phase1[data-deca-route="guides"] .theme-s5,
body.deca-command-phase1[data-deca-route="guides"] .theme-s6,
body.deca-command-phase1[data-deca-route="guides"] .theme-off {
  --c: var(--p1-orange) !important;
  --bg: rgba(255, 122, 0, .08) !important;
  --border: rgba(255, 122, 0, .36) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .cat-filters {
  gap: 7px !important;
  margin: 0 0 14px !important;
  padding: 2px 0 4px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  scrollbar-width: thin !important;
}
body.deca-command-phase1[data-deca-route="guides"] .cat-btn {
  flex: 0 0 auto !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(76, 104, 124, .64) !important;
  border-radius: 5px !important;
  color: #aebdc8 !important;
  background: #07131d !important;
}
body.deca-command-phase1[data-deca-route="guides"] .cat-btn.active {
  border-color: var(--p1-orange) !important;
  color: #fff !important;
  background: linear-gradient(180deg, #ef7b16, #ba4500) !important;
  box-shadow: 0 0 14px rgba(255, 122, 0, .18) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guides-list {
  gap: 10px !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guide-card-compact {
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(76, 104, 124, .62) !important;
  border-left: 3px solid var(--p1-orange) !important;
  border-radius: 0 !important;
  color: #dce6ed !important;
  background:
    linear-gradient(135deg, rgba(13, 30, 42, .98), rgba(4, 13, 21, .99)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guide-card-compact.pinned {
  background:
    linear-gradient(135deg, rgba(45, 27, 10, .94), rgba(5, 14, 22, .99)) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guide-card-compact:hover {
  transform: translateY(-1px) !important;
  background:
    linear-gradient(135deg, rgba(20, 40, 53, .99), rgba(5, 15, 23, .99)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .36), 0 0 18px rgba(255, 122, 0, .08) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guide-title {
  color: #fff !important;
  font-size: 17px !important;
  letter-spacing: .025em !important;
}
body.deca-command-phase1[data-deca-route="guides"] .pin-icon,
body.deca-command-phase1[data-deca-route="guides"] .cat-badge {
  color: var(--p1-orange) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .cat-badge {
  border-color: rgba(255, 122, 0, .42) !important;
  background: rgba(255, 122, 0, .09) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guide-item-bottom {
  border-top-color: rgba(76, 104, 124, .38) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .read-btn-ui {
  color: var(--p1-cyan) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .author-av {
  border-color: rgba(32, 217, 255, .35) !important;
  background: #091722 !important;
}
body.deca-command-phase1[data-deca-route="guides"] .guide-date {
  color: #7f94a3 !important;
}
body.deca-command-phase1[data-deca-route="guides"] .modal {
  padding: 12px !important;
  background: rgba(0, 5, 9, .94) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .m-box {
  width: min(900px, 100%) !important;
  max-height: calc(100dvh - 24px) !important;
  padding: 24px !important;
  border: 1px solid rgba(76, 104, 124, .68) !important;
  border-top: 3px solid var(--p1-orange) !important;
  border-radius: 4px !important;
  color: #dce6ed !important;
  background:
    linear-gradient(145deg, #0d202d, #040d15) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .read-title {
  color: #fff !important;
}
body.deca-command-phase1[data-deca-route="guides"] .tactical-input,
body.deca-command-phase1[data-deca-route="guides"] .tactical-select {
  border-color: rgba(76, 104, 124, .68) !important;
  border-radius: 4px !important;
  color: #fff !important;
  background: #06111a !important;
}
body.deca-command-phase1[data-deca-route="guides"] .tactical-input:focus,
body.deca-command-phase1[data-deca-route="guides"] .tactical-select:focus {
  border-color: var(--p1-orange) !important;
  box-shadow: 0 0 0 2px rgba(255, 122, 0, .12) !important;
}
body.deca-command-phase1[data-deca-route="guides"] .modal-close-btn:hover,
body.deca-command-phase1[data-deca-route="guides"] .lightbox-close:hover {
  color: var(--p1-orange) !important;
}

@media (max-width: 600px) {
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .guides-wrapper {
    padding: 0 10px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .guides-header {
    align-items: stretch !important;
    padding: 15px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .btn-create {
    width: 100% !important;
    justify-content: center !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .guide-card-compact {
    padding: 14px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .guide-item-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .cat-badge {
    justify-self: start !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .guide-item-bottom {
    gap: 10px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .read-btn-ui {
    font-size: 0 !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .read-btn-ui i {
    font-size: 15px !important;
  }
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guides"] .m-box {
    padding: 20px 14px !important;
  }
}

@media (max-width: 390px) {
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-profile-stat-grid,
  html.p1-physical-mobile body.deca-command-phase1[data-deca-route="member-profile"] .p1-achievement-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ======================================================================
   DECA COMMAND CENTER PHASE 2 v2.0.0
   Alliance Experience: Alliance, Drivers, Members, Rankings, Guides,
   Community and Tools. Phase 1 remains the shared visual foundation.
   ====================================================================== */
:root { --p2-panel: #081722; --p2-panel-hi:#0d2130; --p2-line:rgba(76,104,124,.72); }
body.deca-command-phase1[data-deca-route="standings"],
body.deca-command-phase1[data-deca-route="train_driver"],
body.deca-command-phase1[data-deca-route="my-page"],
body.deca-command-phase1[data-deca-route="forum"],
body.deca-command-phase1[data-deca-route="guides"],
body.deca-command-phase1[data-deca-route="members"],
body.deca-command-phase1[data-deca-route="rankings"] { background: radial-gradient(circle at 48% -10%,rgba(22,91,124,.18),transparent 38%),linear-gradient(180deg,#03080d,#06111a 45%,#02070b); }
.p2-page { width:min(1460px,calc(100% - 28px)); margin:0 auto 48px; display:grid; gap:14px; color:var(--p1-text); font-family:'Rajdhani','Inter',sans-serif; }
.p2-panel { position:relative; min-width:0; border:1px solid var(--p2-line); background:linear-gradient(145deg,rgba(14,35,50,.96),rgba(3,12,19,.98)); box-shadow:inset 0 1px rgba(255,255,255,.035),0 18px 42px rgba(0,0,0,.28); clip-path:var(--p1-cut); }
.p2-panel::after { content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,rgba(255,255,255,.025),transparent 26%,transparent 72%,rgba(32,217,255,.025)); }
.p2-kicker { color:var(--p1-orange-hot);font:800 11px/1.2 'Share Tech Mono',monospace;letter-spacing:1.8px;text-transform:uppercase; }
.p2-hero { display:grid;grid-template-columns:128px minmax(0,1fr) auto;align-items:center;gap:24px;padding:22px 26px;border-top:2px solid rgba(255,122,0,.56); }
.p2-hero-emblem { display:grid;place-items:center;width:108px;height:108px;border-right:1px solid var(--p2-line); }
.p2-hero-emblem img { width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 0 14px rgba(255,122,0,.28)); }
.p2-hero-emblem>i { font-size:48px;color:var(--p1-orange);filter:drop-shadow(0 0 14px rgba(255,122,0,.3)); }
.p2-hero h1 { margin:5px 0 4px;font-size:clamp(30px,3vw,48px);line-height:.95;text-transform:uppercase;letter-spacing:.5px; }
.p2-hero p { max-width:760px;margin:0;color:var(--p1-muted);font-size:15px; }
.p2-hero-actions { display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end; }
.p2-btn { display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid var(--p2-line);color:#e7eef3;background:#07121b;text-decoration:none;text-transform:uppercase;font-weight:800;letter-spacing:.7px;clip-path:var(--p1-cut);cursor:pointer; }
.p2-btn:hover { border-color:var(--p1-cyan);color:#fff;transform:translateY(-1px); }
.p2-btn-primary { border-color:#ffad38;color:#fff;background:linear-gradient(180deg,#ff9d18,#e94b00);box-shadow:0 0 22px rgba(255,92,0,.28),inset 0 1px rgba(255,255,255,.4); }
.p2-route-tabs { display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--p2-line);background:#040d14;clip-path:var(--p1-cut); }
.p2-route-tabs a { min-height:58px;display:flex;align-items:center;justify-content:center;gap:9px;border-right:1px solid rgba(76,104,124,.45);color:#91a2b3;text-decoration:none;text-transform:uppercase;font-weight:800;letter-spacing:.5px; }
.p2-route-tabs a:last-child { border-right:0; }.p2-route-tabs a:hover,.p2-route-tabs a.active { color:#fff;background:linear-gradient(180deg,rgba(255,122,0,.18),rgba(255,122,0,.03));box-shadow:inset 0 -2px var(--p1-orange); }.p2-route-tabs i{color:var(--p1-orange);}
.p2-stat-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:12px; }
.p2-stat { padding:18px 20px;display:grid;grid-template-columns:44px 1fr;column-gap:12px;align-items:center; }
.p2-stat>i { grid-row:1/4;font-size:29px;color:#c8d2da;text-align:center; }.p2-stat span{color:var(--p1-muted);font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:800}.p2-stat strong{font-size:25px;line-height:1;color:#fff}.p2-stat small{color:var(--p1-cyan);font-size:11px}.p2-online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--p1-green);box-shadow:0 0 8px var(--p1-green);margin-right:5px}
.p2-alliance-grid { display:grid;grid-template-columns:1.12fr .88fr;gap:12px; }.p2-alliance-grid>.p2-panel{padding:0 18px 16px}.p2-card-head{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(76,104,124,.52)}.p2-card-head h2{margin:0;font-size:17px;text-transform:uppercase;letter-spacing:.5px}.p2-card-head h2 i{color:var(--p1-orange);margin-right:8px}.p2-card-head>a,.p2-card-head>span{color:var(--p1-cyan);text-decoration:none;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.8px}
.p2-announcement-body { min-height:150px;display:grid;grid-template-columns:76px 1fr;align-items:center;gap:18px;padding:16px 8px; }.p2-announcement-body>i{font-size:46px;color:var(--p1-orange);text-align:center}.p2-announcement-body strong{font-size:24px}.p2-announcement-body p{margin:6px 0 0;color:var(--p1-muted)}
.p2-driver-row,.p2-mini-ranking>a,.p2-activity-list>a,.p2-driver-leaders>a,.p2-topic-list>a { display:grid;align-items:center;color:#e9f0f5;text-decoration:none;border-bottom:1px solid rgba(76,104,124,.32); }.p2-driver-row{grid-template-columns:50px 1fr auto;gap:12px;padding:11px 2px}.p2-driver-row img,.p2-mini-ranking img,.p2-driver-leaders img{width:42px;height:42px;object-fit:cover;border:1px solid rgba(255,122,0,.45)}.p2-driver-row span,.p2-mini-ranking small,.p2-driver-leaders small,.p2-topic-list small{display:block;color:var(--p1-muted);font-size:10px;text-transform:uppercase;letter-spacing:.5px}.p2-driver-row strong{font-size:16px}.p2-driver-row small{color:var(--p1-cyan)}
.p2-mini-ranking>a{grid-template-columns:28px 38px 1fr auto;gap:9px;padding:8px 0}.p2-mini-ranking b{color:var(--p1-gold);text-align:center}.p2-mini-ranking img{width:34px;height:34px}.p2-mini-ranking> a>strong{color:#fff;font-family:'Share Tech Mono',monospace}
.p2-activity-list>a{grid-template-columns:28px 1fr auto;gap:8px;padding:10px 0}.p2-activity-list>a>i{color:var(--p1-orange);text-align:center}.p2-activity-list time{color:#657989;font-size:10px}.p2-activity-list>a:hover,.p2-mini-ranking>a:hover,.p2-driver-row:hover{background:rgba(32,217,255,.035)}
.p2-empty { min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--p1-muted);text-align:center }.p2-empty>i{font-size:28px;color:var(--p1-orange)}.p2-empty a{color:var(--p1-cyan)}
.p2-command-strip { display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--p2-line);background:#050f17; }.p2-command-strip a{min-height:78px;display:flex;align-items:center;justify-content:center;gap:13px;border-right:1px solid rgba(76,104,124,.42);color:#dce6ed;text-decoration:none}.p2-command-strip a:last-child{border-right:0}.p2-command-strip i{font-size:23px;color:var(--p1-orange)}.p2-command-strip span{font-size:12px;text-transform:uppercase;color:var(--p1-muted)}.p2-command-strip b{display:block;font-size:21px;color:#fff}
/* train */
.p2-train-hero { min-height:230px;padding:34px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(90deg,rgba(5,14,21,.96),rgba(5,14,21,.58)),url('deca-phase1/visual/train-driver-bg.webp') center right/cover no-repeat;border-color:rgba(255,122,0,.7)}.p2-train-hero h1{margin:5px 0;font-size:clamp(34px,4vw,58px);text-transform:uppercase}.p2-train-hero p{max-width:720px;color:#b6c3cc}.p2-train-hero-status{min-width:220px;padding:20px;display:grid;grid-template-columns:45px 1fr;align-items:center;border:1px solid rgba(255,158,24,.58);background:rgba(4,10,15,.76)}.p2-train-hero-status i{grid-row:1/3;font-size:29px;color:var(--p1-orange)}.p2-train-hero-status span{font-size:10px;text-transform:uppercase;color:var(--p1-muted)}.p2-train-hero-status strong{color:var(--p1-cyan)}
.p2-notice{padding:13px 16px;border:1px solid;display:flex;align-items:center;gap:10px;font-weight:700}.p2-notice.success{border-color:rgba(53,230,138,.5);color:#7ff0b0;background:rgba(53,230,138,.07)}.p2-notice.error{border-color:rgba(255,82,104,.5);color:#ff8798;background:rgba(255,82,104,.07)}
.p2-train-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);gap:12px;align-items:start}.p2-train-main,.p2-train-aside{display:grid;gap:12px}.p2-train-main>.p2-panel,.p2-train-aside>.p2-panel{padding:0 18px 18px}.p2-schedule-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding-top:14px}.p2-schedule-driver{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--p2-line);color:#fff;text-decoration:none;background:#06111a}.p2-schedule-driver.current{border-color:rgba(255,122,0,.75);background:linear-gradient(100deg,rgba(255,122,0,.13),#07131d)}.p2-schedule-driver img{width:62px;height:62px;object-fit:cover;border:2px solid var(--p1-orange)}.p2-schedule-driver span{display:block;color:var(--p1-orange);font-size:10px;text-transform:uppercase}.p2-schedule-driver strong{font-size:18px}.p2-schedule-driver small{display:block;color:var(--p1-muted)}.p2-schedule-driver time{color:var(--p1-cyan);font-weight:800}
.p2-request-form{display:grid;gap:15px;padding-top:16px}.p2-request-form label>span{display:block;margin-bottom:7px;text-transform:uppercase;color:#b9c5cd;font-size:11px;font-weight:800;letter-spacing:.7px}.p2-request-form textarea{width:100%;resize:vertical;min-height:120px;padding:14px;border:1px solid var(--p2-line);background:#030b11;color:#fff;font:600 15px 'Rajdhani',sans-serif}.p2-request-form textarea:focus{outline:0;border-color:var(--p1-orange);box-shadow:0 0 0 2px rgba(255,122,0,.1)}.p2-file-field input{position:absolute;opacity:0;pointer-events:none}.p2-file-field b{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid var(--p2-line);color:#fff;background:#07131d;cursor:pointer}.p2-file-field small{margin-left:10px;color:var(--p1-muted)}.p2-submit{width:100%;font-size:15px}
.p2-history-list>div{display:grid;grid-template-columns:30px 1fr auto;gap:9px;align-items:center;padding:11px 0;border-bottom:1px solid rgba(76,104,124,.32)}.p2-history-list>div>i{color:var(--p1-orange)}.p2-history-list small{display:block;color:var(--p1-muted)}.p2-history-list time{color:#7890a0;font-size:10px}.p2-driver-leaders>a{grid-template-columns:25px 39px 1fr auto;gap:8px;padding:9px 0}.p2-driver-leaders>a>b{color:var(--p1-gold);text-align:center}.p2-driver-leaders img{width:36px;height:36px}.p2-driver-leaders>a>strong{color:var(--p1-cyan);font-size:18px}.p2-train-rules ul{list-style:none;padding:10px 0 0;margin:0}.p2-train-rules li{padding:9px 0;border-bottom:1px solid rgba(76,104,124,.28);color:#aab9c4}.p2-train-rules li i{color:var(--p1-green);margin-right:8px}
/* tools */
.p2-tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.p2-tool-card{min-height:190px;display:grid;grid-template-columns:115px 1fr auto;align-items:center;gap:18px;padding:18px;color:#fff;text-decoration:none}.p2-tool-card:hover{border-color:rgba(255,122,0,.75);transform:translateY(-2px);box-shadow:0 18px 46px rgba(0,0,0,.38),0 0 22px rgba(255,122,0,.09)}.p2-tool-art{width:108px;height:132px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle,rgba(32,217,255,.12),transparent 65%)}.p2-tool-art img{width:100%;height:100%;object-fit:contain}.p2-tool-art>i{font-size:47px;color:var(--p1-orange)}.p2-tool-card h2{margin:5px 0 3px;text-transform:uppercase;font-size:21px}.p2-tool-card p{margin:0;color:var(--p1-muted);line-height:1.35}.p2-tool-card>i{color:var(--p1-cyan)}.p2-tools-lower{display:grid;grid-template-columns:1fr 1.3fr;gap:12px}.p2-tools-lower>.p2-panel{padding:0 18px 16px}.p2-tool-status{min-height:130px;display:grid;grid-template-columns:60px 1fr;align-items:center;gap:14px}.p2-tool-status>i{font-size:38px;color:var(--p1-orange);text-align:center}.p2-tool-status span,.p2-tool-status small{display:block;color:var(--p1-muted)}.p2-tool-status strong{font-size:25px;color:var(--p1-cyan)}.p2-topic-list>a{grid-template-columns:28px 1fr auto;gap:8px;padding:10px 0}.p2-topic-list>a>i{color:var(--p1-orange)}.p2-topic-list>a>b{color:var(--p1-cyan)}
/* integrate existing phase 1 / legacy surfaces */
body.deca-command-phase1[data-deca-route="members"] .p1-command-page,body.deca-command-phase1[data-deca-route="rankings"] .p1-command-page{width:min(1460px,calc(100% - 28px));}
body.deca-command-phase1[data-deca-route="forum"] .fx,body.deca-command-phase1[data-deca-route="guides"] .guides-wrapper{width:min(1320px,calc(100% - 28px));max-width:none;margin-inline:auto}
body.deca-command-phase1[data-deca-route="forum"] .sec,body.deca-command-phase1[data-deca-route="forum"] .post,body.deca-command-phase1[data-deca-route="guides"] .guide-card-compact{border-color:var(--p2-line)!important;background:linear-gradient(145deg,#0a1a26,#030b12)!important;border-radius:2px!important;clip-path:var(--p1-cut)}
body.deca-command-phase1[data-deca-route="forum"] .fx-head,body.deca-command-phase1[data-deca-route="guides"] .guides-header{padding:22px!important;border:1px solid var(--p2-line)!important;border-top:2px solid var(--p1-orange)!important;background:linear-gradient(145deg,#0e2230,#040c13)!important;clip-path:var(--p1-cut)}
body.deca-command-phase1[data-deca-route="forum"] .btn-orange,body.deca-command-phase1[data-deca-route="guides"] .btn-create{background:linear-gradient(180deg,#ff9d18,#e94b00)!important;color:#fff!important;border:1px solid #ffad38!important;border-radius:2px!important;box-shadow:0 0 20px rgba(255,92,0,.18)!important}
body.deca-command-phase1[data-deca-route="guides"] .cat-btn.active{background:var(--p1-orange)!important;border-color:var(--p1-orange)!important;color:#fff!important}
@media (min-width:1180px){.p2-alliance-grid{grid-template-columns:1.1fr .9fr}.p2-alliance-grid .p2-announcement-card,.p2-alliance-grid .p2-driver-card{min-height:225px}}
@media (max-width:1050px){.p2-stat-grid{grid-template-columns:repeat(2,1fr)}.p2-alliance-grid,.p2-train-layout,.p2-tools-lower{grid-template-columns:1fr}.p2-tool-grid{grid-template-columns:repeat(2,1fr)}.p2-hero{grid-template-columns:100px 1fr}.p2-hero-actions{grid-column:1/-1;justify-content:flex-start}.p2-route-tabs{grid-template-columns:repeat(5,minmax(110px,1fr));overflow-x:auto}.p2-command-strip{grid-template-columns:repeat(2,1fr)}.p2-command-strip a:nth-child(2){border-right:0}.p2-command-strip a:nth-child(-n+2){border-bottom:1px solid rgba(76,104,124,.42)}}
@media (max-width:700px){.p2-page{width:calc(100% - 18px);gap:10px;margin-bottom:calc(98px + env(safe-area-inset-bottom))}.p2-hero{grid-template-columns:72px 1fr;gap:12px;padding:16px}.p2-hero-emblem{width:66px;height:72px}.p2-hero-emblem img{width:62px;height:62px}.p2-hero h1{font-size:28px}.p2-hero p{font-size:13px}.p2-hero-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.p2-route-tabs{grid-template-columns:repeat(5,92px)}.p2-route-tabs a{min-height:55px;display:grid;place-items:center;align-content:center;gap:3px;font-size:10px}.p2-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.p2-stat{grid-template-columns:33px 1fr;padding:13px 11px}.p2-stat>i{font-size:21px}.p2-stat strong{font-size:18px}.p2-alliance-grid{gap:8px}.p2-announcement-body{grid-template-columns:45px 1fr;min-height:120px}.p2-announcement-body>i{font-size:30px}.p2-announcement-body strong{font-size:18px}.p2-command-strip{grid-template-columns:1fr 1fr}.p2-command-strip a{min-height:68px;padding:8px}.p2-command-strip i{font-size:19px}.p2-command-strip b{font-size:17px}.p2-train-hero{min-height:280px;padding:20px;display:grid;align-content:end;background-position:62% center}.p2-train-hero-status{min-width:0;width:100%}.p2-schedule-grid{grid-template-columns:1fr}.p2-schedule-driver{grid-template-columns:54px 1fr auto}.p2-schedule-driver img{width:52px;height:52px}.p2-tool-grid{grid-template-columns:1fr}.p2-tool-card{min-height:152px;grid-template-columns:84px 1fr auto;padding:13px;gap:11px}.p2-tool-art{width:80px;height:104px}.p2-tool-card h2{font-size:18px}.p2-tools-lower{gap:8px}.p2-file-field{display:grid;gap:7px}.p2-file-field small{margin-left:0}.p2-card-head h2{font-size:15px}.p2-history-list>div{grid-template-columns:25px 1fr}.p2-history-list time{grid-column:2}.p2-route-tabs::-webkit-scrollbar{display:none}}
@media (max-width:390px){.p2-stat-grid{grid-template-columns:1fr}.p2-hero-actions{grid-template-columns:1fr}.p2-command-strip{grid-template-columns:1fr}.p2-command-strip a{border-right:0;border-bottom:1px solid rgba(76,104,124,.42)}.p2-command-strip a:last-child{border-bottom:0}}


/* ======================================================================
   DECA COMMAND CENTER PHASE 2 MOBILE & WORKFLOW HOTFIX v2.0.2
   Fixes verified against the 2026-08-05 mobile screen recording.
   ====================================================================== */
:root {
  --p2-bottom-nav-height: 82px;
  --p2-mobile-safe-bottom: calc(var(--p2-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 28px);
}

/* Reserve space for the fixed mobile navigation on every migrated and
   legacy surface. JavaScript updates --p2-bottom-nav-height from the
   navigation's real rendered height. */
html.p1-physical-mobile body.deca-command-phase1 .site-main,
@media (max-width: 700px) {
  body.deca-command-phase1 .site-main {
    padding-bottom: var(--p2-mobile-safe-bottom) !important;
  }
}
html.p1-physical-mobile body.deca-command-phase1 .content-wrapper,
html.p1-physical-mobile body.deca-command-phase1 .p1-command-page,
html.p1-physical-mobile body.deca-command-phase1 .p2-page,
html.p1-physical-mobile body.deca-command-phase1 .gw-shell,
html.p1-physical-mobile body.deca-command-phase1 .hub-wrap,
html.p1-physical-mobile body.deca-command-phase1 .maps-hub-wrapper,
html.p1-physical-mobile body.deca-command-phase1 .wc-container {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

/* Mobile menu: content-height, one column, one accordion at a time. */
html.p1-physical-mobile body.deca-command-phase1 .header-nav,
html.p1-physical-mobile body.deca-command-phase1 #headerNav {
  top: calc(100% + 6px) !important;
  right: 8px !important;
  bottom: auto !important;
  left: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)) !important;
  padding: 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  border: 1px solid rgba(255, 122, 0, .48) !important;
  background: rgba(3, 10, 16, .985) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .76), inset 0 1px rgba(255,255,255,.035) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .deca-desktop-nav > li > a {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  justify-content: flex-start !important;
  padding: 0 14px !important;
  border: 1px solid rgba(76, 104, 124, .52) !important;
  background: #07131d !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown > .dropdown-menu {
  position: static !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 7px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: none !important;
  border: 0 !important;
  background: rgba(2, 8, 13, .78) !important;
  box-shadow: none !important;
  clip-path: none !important;
  transition: max-height .22s ease, opacity .18s ease, padding .22s ease !important;
}
html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown.dropdown-active > .dropdown-menu {
  max-height: 520px !important;
  padding: 7px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li,
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a {
  width: 100% !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1 .dropdown-menu li a {
  min-height: 42px !important;
  border: 1px solid rgba(76, 104, 124, .36) !important;
  background: rgba(8, 22, 32, .82) !important;
}
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle:hover,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle:focus,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle:active,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle.is-open,
html.p1-physical-mobile body.deca-command-phase1 .mobile-nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 122, 0, .72) !important;
  color: #ff9d2c !important;
  background: linear-gradient(180deg, rgba(255,122,0,.13), rgba(4,12,19,.98)) !important;
  box-shadow: 0 0 18px rgba(255,122,0,.18), inset 0 0 0 1px rgba(255,122,0,.08) !important;
}

/* Rankings: remove the off-screen two-column desktop canvas on phones. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-command-page {
  width: 100% !important;
  padding-inline: 9px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-page-title {
  min-height: 0 !important;
  padding: 16px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 10px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-page-title h1 {
  font-size: 28px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-page-title-badge {
  min-width: 0 !important;
  padding: 10px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-page-title-badge span {
  display: none !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-tabs {
  min-height: 0 !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-tabs a {
  min-width: 0 !important;
  min-height: 50px !important;
  padding: 5px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 3px !important;
  text-align: center !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-rankings-layout {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary {
  min-height: 0 !important;
  padding: 14px !important;
  display: grid !important;
  grid-template-columns: 72px minmax(0,1fr) auto !important;
  grid-template-rows: auto auto auto !important;
  gap: 2px 12px !important;
  align-items: center !important;
  text-align: left !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary > .p1-eyebrow {
  grid-column: 2 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary > strong {
  grid-column: 3 !important;
  grid-row: 1 / 4 !important;
  margin: 0 !important;
  font-size: 42px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary > small {
  grid-column: 2 !important;
  margin: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary > img {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  width: 66px !important;
  height: 66px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary > b {
  grid-column: 2 !important;
  margin: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-ranking-summary-links {
  grid-column: 1 / -1 !important;
  margin-top: 10px !important;
  grid-template-columns: 1fr 1fr !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-head {
  display: none !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-row {
  min-height: 62px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 8px 10px !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0,1fr) auto !important;
  grid-template-rows: auto auto !important;
  gap: 1px 9px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-row > .p1-place {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 34px !important;
  height: 34px !important;
  align-self: center !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-row > .p1-member-cell {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-member-cell strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-row > span:nth-child(3) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-row > span:nth-child(4) {
  display: none !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="rankings"] .p1-full-ranking-row > .p1-score {
  grid-column: 3 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  white-space: nowrap !important;
}

/* Guru: readable action bar and single-column cards. High specificity and
   !important are intentional because guru-web-v1.css is loaded afterward. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-shell {
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 9px var(--p2-mobile-safe-bottom) !important;
  overflow-x: clip !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-hero,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-card,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-result,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-panel,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-tech-center-integrated {
  min-width: 0 !important;
  max-width: 100% !important;
  border-radius: 3px !important;
  border-color: rgba(76,104,124,.68) !important;
  color: #e7eef3 !important;
  background: linear-gradient(145deg, #0c1d29, #040d14) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.3) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-hero {
  display: grid !important;
  padding: 17px !important;
  gap: 10px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-hero h1 {
  font-size: 34px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-shadow-badge {
  justify-self: start !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-safety-grid,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-layout,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-result-grid,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gwa-review,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-plan-grid {
  grid-template-columns: minmax(0,1fr) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-section-nav {
  position: sticky !important;
  top: 69px !important;
  z-index: 35 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  margin: 10px 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(76,104,124,.7) !important;
  border-radius: 3px !important;
  background: rgba(3,10,16,.96) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.38) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-section-nav a {
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 7px 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-align: center !important;
  border: 1px solid rgba(76,104,124,.55) !important;
  border-radius: 2px !important;
  color: #d6e0e7 !important;
  background: #07131d !important;
  font-size: 12px !important;
  text-decoration: none !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-section-nav a:last-child {
  grid-column: 1 / -1 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-section-nav a:focus,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-section-nav a:active {
  border-color: var(--p1-orange) !important;
  color: #fff !important;
  background: rgba(255,122,0,.12) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-card,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-result {
  padding: 15px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-previews {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] table {
  min-width: 680px !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gw-table-wrap,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="guru-web"] .gwa-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Strategy and maps: tabs start at the left edge, map canvases pan inside
   their own container, never by widening the full page. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .hub-wrap,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .maps-hub-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-inline: 9px !important;
  overflow-x: clip !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .hub-tabs,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .tabs-container {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  margin-inline: 0 !important;
  padding: 0 0 9px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .hub-tab,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .season-tab {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  scroll-snap-align: start !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .hub-panel,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .strat-wrap,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .season-content,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .map-container,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .tactical-board,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .map-scroller,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .map-matrix,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .zm-wrapper,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .s4-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .season-content,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .map-container,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .tactical-board,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .map-scroller,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .map-matrix {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .season-content img,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .season-content svg,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="maps"] .season-content canvas {
  max-width: 100% !important;
  height: auto !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .groups,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="strategy"] .roster {
  grid-template-columns: minmax(0,1fr) !important;
}

/* Tools Hub: consistent cards and no bottom-nav collision. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="my-page"] .p2-page {
  padding-bottom: var(--p2-mobile-safe-bottom) !important;
}
body.deca-command-phase1[data-deca-route="my-page"] .p2-tool-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
body.deca-command-phase1[data-deca-route="my-page"] .p2-tool-card {
  grid-template-rows: minmax(0,1fr) !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="my-page"] .p2-tool-card {
  min-height: 148px !important;
}

/* War Chest: shared Command Center accents and a clear save dock above the
   fixed primary navigation. */
body.deca-command-phase1[data-deca-route="war-chest"] .wc-container {
  --primary: var(--p1-orange) !important;
  --primary-dark: #d95700 !important;
  padding-bottom: var(--p2-mobile-safe-bottom) !important;
}
body.deca-command-phase1[data-deca-route="war-chest"] .wc-ux-hero,
body.deca-command-phase1[data-deca-route="war-chest"] .wc-card,
body.deca-command-phase1[data-deca-route="war-chest"] .wc-header-top,
body.deca-command-phase1[data-deca-route="war-chest"] .wc-tabs-nav {
  border-color: rgba(76,104,124,.68) !important;
  background-color: #07131d !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="war-chest"] .wc-mobile-save-dock {
  bottom: calc(var(--p2-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px) !important;
  left: 9px !important;
  right: 9px !important;
  width: auto !important;
  z-index: 1100 !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="war-chest"] .wc-tabs-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="war-chest"] .wc-tab-btn {
  flex: 0 0 92px !important;
}

/* Admin: mobile-safe cards; the approval page itself is replaced with a
   read-only operational notice by this release. */
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="admin"] .admin-shell,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="admin"] .admin-workspace,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="admin"] .admin-action-center {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip !important;
}
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="admin"] .admin-action-queue,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="admin"] .admin-status-grid,
html.p1-physical-mobile body.deca-command-phase1[data-deca-route="admin"] .admin-quick-grid {
  grid-template-columns: minmax(0,1fr) !important;
}

/* Media-query fallback for browsers before the physical-mobile class is
   attached. */
@media (max-width: 700px) {
  body.deca-command-phase1[data-deca-route="rankings"] .p1-rankings-layout {
    grid-template-columns: minmax(0,1fr) !important;
    width: 100% !important;
  }
  body.deca-command-phase1[data-deca-route="guru-web"] .gw-layout,
  body.deca-command-phase1[data-deca-route="guru-web"] .gw-result-grid {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.deca-command-phase1[data-deca-route="strategy"] .hub-tabs,
  body.deca-command-phase1[data-deca-route="maps"] .tabs-container {
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }
}


/* ======================================================================
   PHASE 2 NAVBAR STABILITY HOTFIX v2.0.3
   The previous dynamic drawer-height measurement sampled submenu content
   during its max-height animation. Tools/More were therefore clipped to a
   stale height or showed only the first item. The drawer now has a natural
   content height with a viewport ceiling, and accordions change atomically.
   ====================================================================== */
html.p1-physical-mobile body.deca-command-phase1 .header-nav,
html.p1-physical-mobile body.deca-command-phase1 #headerNav {
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 96px - env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}

html.p1-physical-mobile body.deca-command-phase1 .nav-dropdown > .dropdown-menu {
  display: none !important;
  max-height: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 7px !important;
  transition: none !important;
}

html.p1-physical-mobile body.deca-command-phase1
  .nav-dropdown.dropdown-active > .dropdown-menu {
  display: grid !important;
  max-height: none !important;
}

html.p1-physical-mobile body.deca-command-phase1
  .nav-dropdown > .dropdown-toggle .nav-arrow,
html.p1-physical-mobile body.deca-command-phase1
  .nav-dropdown.dropdown-active > .dropdown-toggle .nav-arrow {
  color: #ff9d2c !important;
}

html.p1-physical-mobile body.deca-command-phase1
  .nav-dropdown.dropdown-active > .dropdown-toggle .nav-arrow {
  transform: rotate(180deg) !important;
}


/* =====================================================================
   DECA COMMAND CENTER PHASE 4.0 – TOOLS FOUNDATION & NAVIGATION
   ===================================================================== */

.deca-tools-shell {
  --deca-tools-bg: #071019;
  --deca-tools-panel: #0d1a25;
  --deca-tools-panel-2: #122633;
  --deca-tools-line: rgba(118, 157, 182, .24);
  --deca-tools-line-strong: rgba(118, 157, 182, .42);
  --deca-tools-orange: #ff8c12;
  --deca-tools-cyan: #27c9ef;
  --deca-tools-green: #3dde91;
  --deca-tools-text: #f3f7fa;
  --deca-tools-muted: #91a7b5;
  font-family: inherit;
}

.deca-tools-topbar,
.deca-tools-dock,
.deca-tools-sheet,
.deca-tools-backdrop {
  box-sizing: border-box;
}

.deca-tools-topbar {
  display: none;
}

.deca-tools-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 2850;
  width: min(620px, calc(100vw - 32px));
  min-height: 62px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 140, 18, .34);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(14, 29, 41, .97), rgba(6, 15, 23, .97));
  backdrop-filter: blur(18px);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255,255,255,.045);
  transform: translateX(-50%);
}

.deca-tools-dock a,
.deca-tools-dock button {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #8da1af;
  text-decoration: none;
  font: inherit;
  font-size: .67rem;
  font-weight: 900;
  cursor: pointer;
}

.deca-tools-dock a:hover,
.deca-tools-dock button:hover {
  background: rgba(255,255,255,.035);
  color: #dbe5ea;
}

.deca-tools-dock .active {
  background:
    linear-gradient(135deg, rgba(255,140,18,.16), rgba(39,201,239,.07));
  color: var(--deca-tools-orange);
  box-shadow: inset 0 0 0 1px rgba(255,140,18,.2);
}

.deca-tools-dock i {
  color: currentColor;
  font-size: .92rem;
}

.deca-tools-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2920;
  border: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(4px);
}

.deca-tools-backdrop[hidden],
.deca-tools-sheet[hidden] {
  display: none !important;
}

.deca-tools-sheet {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 2940;
  width: min(680px, calc(100vw - 24px));
  max-height: min(74dvh, 720px);
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255,140,18,.38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0, rgba(39,201,239,.09), transparent 32%),
    linear-gradient(180deg, #112432, #07121b);
  color: var(--deca-tools-text);
  box-shadow: 0 28px 78px rgba(0,0,0,.7);
  transform: translateX(-50%);
}

.deca-tools-sheet > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.deca-tools-sheet > header > div {
  display: grid;
  gap: 2px;
}

.deca-tools-sheet > header small {
  color: var(--deca-tools-orange);
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .13em;
}

.deca-tools-sheet > header strong {
  color: #fff;
  font-size: 1rem;
}

.deca-tools-sheet > header button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--deca-tools-line);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: #b8c7d0;
  cursor: pointer;
}

.deca-tools-search {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  padding: 0 12px;
  border: 1px solid rgba(39,201,239,.25);
  border-radius: 10px;
  background: rgba(39,201,239,.035);
  color: var(--deca-tools-cyan);
}

.deca-tools-search input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #fff !important;
  font: inherit;
  font-size: .76rem;
}

.deca-tools-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.deca-tools-list > a {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--deca-tools-line);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
  color: #dae4ea;
  text-decoration: none;
}

.deca-tools-list > a:hover,
.deca-tools-list > a.active {
  border-color: rgba(255,140,18,.42);
  background:
    linear-gradient(125deg, rgba(255,140,18,.085), transparent 52%),
    rgba(255,255,255,.02);
}

.deca-tools-list > a[hidden] {
  display: none !important;
}

.deca-tools-list > a > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(39,201,239,.2);
  border-radius: 10px;
  background: rgba(39,201,239,.055);
  color: var(--deca-tools-cyan);
}

.deca-tools-list > a.active > span:first-child {
  border-color: rgba(255,140,18,.25);
  background: rgba(255,140,18,.07);
  color: var(--deca-tools-orange);
}

.deca-tools-list > a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.deca-tools-list strong {
  color: #fff;
  font-size: .78rem;
}

.deca-tools-list small {
  color: var(--deca-tools-muted);
  font-size: .63rem;
  line-height: 1.4;
}

.deca-tools-list em {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(61,222,145,.08);
  color: #83e9b0;
  font-size: .55rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.deca-tools-list > a > .fa-chevron-right {
  color: #5d7484;
  font-size: .68rem;
}

.deca-tools-list > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 10px;
  color: var(--deca-tools-muted);
  text-align: center;
  font-size: .72rem;
}

.deca-tools-sheet > footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(118,157,182,.16);
}

.deca-tools-sheet > footer a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--deca-tools-line);
  border-radius: 9px;
  color: #aebec8;
  text-decoration: none;
  font-size: .65rem;
  font-weight: 850;
}

.deca-tools-sheet > footer i {
  color: var(--deca-tools-orange);
}

body.deca-tools-app {
  padding-bottom: 96px;
}

body.deca-tools-app .site-main {
  min-width: 0;
}

body.deca-tools-app .content-wrapper {
  min-width: 0;
  max-width: 1500px;
}

body.deca-tools-app .content-wrapper > * {
  max-width: 100%;
}

body.deca-tools-app table {
  max-width: 100%;
}

body.deca-tools-app input,
body.deca-tools-app select,
body.deca-tools-app textarea,
body.deca-tools-app button {
  max-width: 100%;
}

body.deca-tools-app .deca-tools-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.deca-tools-modal-open {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  body.deca-tools-app {
    padding:
      calc(60px + env(safe-area-inset-top))
      0
      calc(82px + env(safe-area-inset-bottom)) !important;
    background: #061019 !important;
  }

  body.deca-tools-app .support-bar,
  body.deca-tools-app .site-header,
  body.deca-tools-app .train-strip,
  body.deca-tools-app .deca-phase3-command,
  body.deca-tools-app .deca-modern-footer,
  body.deca-tools-app > .deca-bottom-nav {
    display: none !important;
  }

  body.deca-tools-app .site-main {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.deca-tools-app .content-wrapper,
  body.deca-tools-app main .content-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding:
      10px
      10px
      calc(98px + env(safe-area-inset-bottom)) !important;
  }

  body.deca-tools-app .content-wrapper.dg-guru-host {
    display: block !important;
  }

  body.deca-tools-app .content-wrapper > style:first-child {
    display: none;
  }

  .deca-tools-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2860;
    min-height: calc(58px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: minmax(52px, auto) minmax(0, 1fr) 40px;
    align-items: end;
    gap: 8px;
    padding:
      max(7px, env(safe-area-inset-top))
      9px
      7px;
    border-bottom: 1px solid rgba(255,140,18,.25);
    background:
      linear-gradient(180deg, rgba(13,27,39,.985), rgba(6,15,23,.985));
    backdrop-filter: blur(17px);
    box-shadow: 0 8px 28px rgba(0,0,0,.32);
  }

  .deca-tools-back {
    min-width: 0;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid var(--deca-tools-line);
    border-radius: 9px;
    color: #bac8d0;
    text-decoration: none;
    font-size: .66rem;
    font-weight: 900;
  }

  .deca-tools-back i {
    color: var(--deca-tools-orange);
  }

  .deca-tools-current {
    min-width: 0;
    min-height: 39px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1px;
    text-align: center;
  }

  .deca-tools-current small {
    color: #6f8796;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .11em;
  }

  .deca-tools-current strong {
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .deca-tools-switcher-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--deca-tools-line);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
    color: var(--deca-tools-cyan);
    font-size: .9rem;
  }

  .deca-tools-dock {
    left: 7px;
    right: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
    z-index: 2880;
    width: auto;
    min-height: 64px;
    transform: none;
  }

  .deca-tools-dock a,
  .deca-tools-dock button {
    min-height: 51px;
    flex-direction: column;
    gap: 3px;
    padding: 4px 2px;
    font-size: .58rem;
  }

  .deca-tools-dock i {
    font-size: .96rem;
  }

  .deca-tools-backdrop {
    z-index: 2920;
  }

  .deca-tools-sheet {
    left: 7px;
    right: 7px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 2940;
    width: auto;
    max-height: min(72dvh, 650px);
    padding: 12px;
    transform: none;
  }

  .deca-tools-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .deca-tools-list > a {
    min-height: 64px;
    padding: 9px;
  }

  .deca-tools-list small {
    font-size: .62rem;
  }

  body.deca-tools-app .dg-guru-topbar,
  body.deca-tools-app .dg-guru-sidebar,
  body.deca-tools-app .guru-shell-nav,
  body.deca-tools-app [data-guru-subnav] {
    display: none !important;
  }

  body.deca-tools-app .dg-guru-main,
  body.deca-tools-app .dg-guru-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.deca-tools-app .war-chest-container,
  body.deca-tools-app .guru-container,
  body.deca-tools-app .tech-center-container,
  body.deca-tools-app .my-heroes-container {
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
}

@media (max-width: 380px) {
  .deca-tools-back span {
    display: none;
  }

  .deca-tools-topbar {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .deca-tools-sheet > footer {
    display: grid;
  }
}

/* DECA Phase 4.4 – Tools QA & Production Polish */
body.deca-tools-app :focus-visible{outline:2px solid #28c9ef!important;outline-offset:3px!important}body.deca-tools-app [hidden]{display:none!important}body.deca-tools-app img{max-width:100%;height:auto}body.deca-tools-app .p44-overflow-warning{outline:2px dashed #ff5f6b!important;outline-offset:-2px}body.deca-tools-app .p44-submit-busy{pointer-events:none;opacity:.7}body.deca-tools-app .p44-offline-banner{position:fixed;left:50%;top:8px;z-index:5000;transform:translateX(-50%);padding:8px 12px;border:1px solid rgba(255,95,107,.5);border-radius:999px;background:#351319;color:#ffc0c5;font-size:.68rem;font-weight:900}body.deca-tools-app .gw-notice,body.deca-tools-app .gp-alert,body.deca-tools-app .brg-p9-error,body.deca-tools-app .mh-status-error,body.deca-tools-app .wc-feedback.is-error{border-radius:11px!important}body.deca-tools-app button:disabled,body.deca-tools-app [aria-disabled=true]{cursor:not-allowed!important;opacity:.55!important}body.deca-tools-app .deca-tools-dock,body.deca-tools-app .deca-tools-topbar{touch-action:manipulation}@media(max-width:360px){body.deca-tools-app .content-wrapper,body.deca-tools-app main .content-wrapper{padding-inline:7px!important}.deca-tools-dock{left:4px!important;right:4px!important;padding:4px!important}.deca-tools-dock a,.deca-tools-dock button{font-size:.53rem!important}.deca-tools-current strong{font-size:.76rem!important}}@media(prefers-reduced-motion:reduce){body.deca-tools-app *,body.deca-tools-app *::before,body.deca-tools-app *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}@media print{.deca-tools-shell,.deca-tools-dock,.deca-tools-topbar,.deca-tools-sheet,.deca-tools-backdrop{display:none!important}body.deca-tools-app{padding:0!important;background:#fff!important;color:#000!important}body.deca-tools-app .content-wrapper{max-width:none!important;padding:0!important}}


/* ======================================================================
   DECA PHASE 4.4.4 – SCROLLED MOBILE NAVBAR OVERLAY REPAIR
   Keeps the sticky header and drawer in the visual viewport when the menu
   is opened after the member has scrolled down the page.
   ====================================================================== */
@media (max-width: 900px) {
  /* Guard against the legacy fixed-body scroll lock. Inline non-important
     position/top values are deliberately overridden here. */
  html.p1-physical-mobile.p1-nav-open body.deca-command-phase1,
  html.p1-physical-mobile body.deca-command-phase1.p1-scroll-locked {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .site-header,
  html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .site-header.header-scrolled {
    position: sticky !important;
    top: 0 !important;
    z-index: 12100 !important;
    transform: none !important;
    isolation: isolate;
  }

  html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .header-nav,
  html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 #headerNav,
  html.p1-physical-mobile body.deca-command-phase1 .header-nav.nav-active,
  html.p1-physical-mobile body.deca-command-phase1 #headerNav.nav-active {
    position: fixed !important;
    top: 72px !important;
    right: 8px !important;
    bottom: auto !important;
    left: 8px !important;
    width: auto !important;
    max-width: 520px !important;
    max-height: calc(100dvh - 84px - env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 auto !important;
    z-index: 12120 !important;
    transform: none !important;
    translate: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html.p1-physical-mobile .p1-mobile-nav-backdrop {
    position: fixed !important;
    inset: 72px 0 0 !important;
    z-index: 12080 !important;
  }

  html.p1-physical-mobile.p1-nav-open body.deca-command-phase1 .deca-bottom-nav {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ======================================================================
   DECA PHASE 4.4.5 – VIEWPORT-ANCHORED MOBILE NAVBAR
   The production body class list differs between routes. Previous drawer
   rules depended on body.deca-command-phase1, so the menu could remain
   document-positioned and move above the screen as scroll depth increased.
   These rules anchor the real #headerNav directly to the visual viewport.
   ====================================================================== */
@media (max-width: 900px) {
  html.p1-nav-open #headerNav.nav-active,
  html.p1-physical-mobile.p1-nav-open #headerNav.nav-active,
  body.p1-nav-open #headerNav.nav-active {
    display: block !important;
    position: fixed !important;
    top: calc(72px + env(safe-area-inset-top, 0px)) !important;
    right: 8px !important;
    bottom: auto !important;
    left: 8px !important;
    z-index: 2147483000 !important;
    width: auto !important;
    max-width: 520px !important;
    max-height: calc(
      100dvh - 84px - env(safe-area-inset-bottom, 0px)
    ) !important;
    margin: 0 auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    transform: none !important;
    translate: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html.p1-nav-open .p1-mobile-nav-backdrop,
  .p1-mobile-nav-backdrop.is-active {
    position: fixed !important;
    inset:
      calc(72px + env(safe-area-inset-top, 0px))
      0
      0 !important;
    z-index: 2147482900 !important;
  }

  html.p1-nav-open body .deca-bottom-nav,
  body.p1-nav-open .deca-bottom-nav {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

