:root {
  --bg: #06080c;
  --panel: rgba(18, 24, 34, .58);
  --panel2: rgba(26, 34, 47, .52);
  --glass: rgba(255,255,255,.075);
  --line: rgba(216, 180, 95, .28);
  --line-soft: rgba(255,255,255,.12);
  --gold: #d8b45f;
  --gold2: #f3d78a;
  --text: #f7efe0;
  --muted: #b9b0a2;
  --good: #8ee6a8;
  --warn: #f3d78a;
  --danger: #ff9b9b;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
  --surface-bg: rgba(7, 10, 15, .58);
  --surface-border: rgba(255,255,255,.16);
  --tile-bg: rgba(7, 10, 15, .38);
  --tile-border: rgba(255,255,255,.14);
  --surface-blur: blur(3px) saturate(1.02);
  --surface-shine: linear-gradient(145deg, rgba(255,255,255,.06), transparent 48%);
  --tile-shine: linear-gradient(145deg, rgba(255,255,255,.04), transparent 48%);
  --daily-bg: url("daily-background.php");
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --viewport-width: 100vw;
  --viewport-half-width: 50vw;

}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background-color: #050505;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body {
  position: relative;
  background: #050505;
}

body.is-preloading {
  overflow: hidden;
}

body.is-lean-boot {
  --surface-blur: none;
}

body.modal-open {
  overflow: hidden;
}

body.office-unlocked {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

body.office-unlocked input,
body.office-unlocked textarea,
body.office-unlocked select,
body.office-unlocked [contenteditable="true"] {
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

a,
button,
[role="button"],
.app,
.user-pill,
.chip {
  cursor: pointer;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(5,5,5,.58), rgba(5,5,5,.78)),
    linear-gradient(90deg, rgba(0,0,0,.46), transparent 24%, transparent 76%, rgba(0,0,0,.52)),
    var(--daily-bg);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateZ(0);
}

body:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 18%, rgba(0,0,0,.26) 100%),
    radial-gradient(ellipse at top, rgba(216,180,95,.10), transparent 36%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.26) 58%, rgba(0,0,0,.70) 100%);
  pointer-events: none;
  opacity: .72;
}

body.is-preloading:before,
body.is-preloading:after {
  opacity: 0;
}

body.is-auth-handoff-boot:before,
body.is-auth-handoff-boot:after {
  opacity: 1;
}

.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  pointer-events: none;
}

.app-preloader-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.08);
  filter: brightness(.62) saturate(.82);
  transition:
    opacity 1.55s cubic-bezier(.22, 1, .36, 1),
    transform 2.65s cubic-bezier(.16, 1, .3, 1),
    filter 2.65s ease;
}

.app-preloader-bg-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.app-preloader:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.30) 58%, rgba(0,0,0,.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
  opacity: 0;
  transition: opacity 1.75s ease;
}

.app-preloader-logo {
  position: relative;
  z-index: 2;
  width: clamp(96px, 14vw, 184px);
  height: auto;
  opacity: 0;
  transform: scale(.006);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.app-preloader.is-logo-visible .app-preloader-logo {
  animation: preloader-logo-zoom 2.15s cubic-bezier(.12, .88, .18, 1) both;
}

.app-preloader.is-bg-visible .app-preloader-bg {
  opacity: 1;
  transform: scale(1);
  filter: brightness(.82) saturate(.96);
}

body.is-lean-boot .app-preloader-bg {
  filter: brightness(.74) saturate(.90);
  transition:
    opacity 1.05s cubic-bezier(.22, 1, .36, 1),
    transform 1.55s cubic-bezier(.16, 1, .3, 1);
}

body.is-lean-boot .app-preloader.is-bg-visible .app-preloader-bg {
  filter: brightness(.82) saturate(.96);
}

.app-preloader.is-bg-visible:after {
  opacity: 1;
}

.app-preloader.is-logo-fading .app-preloader-logo {
  animation: preloader-logo-out .95s cubic-bezier(.22, 1, .36, 1) both;
}

.app-preloader.is-auth-handoff {
  background: transparent;
}

.app-preloader.is-auth-handoff .app-preloader-bg {
  opacity: 0;
  transition: none;
}

.app-preloader.is-auth-handoff:after {
  opacity: 0;
  transition: none;
}

.app-preloader.is-auth-handoff .app-preloader-logo {
  display: none;
}

.app-preloader.is-content-stage {
  z-index: 0;
}

.app-preloader.is-fading {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.22, 1, .36, 1);
}

.boot-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.982);
  transition:
    opacity .92s cubic-bezier(.19, 1, .22, 1) var(--boot-delay, 0ms),
    transform .98s cubic-bezier(.19, 1, .22, 1) var(--boot-delay, 0ms);
  will-change: opacity, transform;
}

.boot-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body.is-lean-boot .boot-reveal {
  transform: translate3d(0, 18px, 0) scale(.99);
  transition:
    opacity .72s cubic-bezier(.19, 1, .22, 1) var(--boot-delay, 0ms),
    transform .78s cubic-bezier(.19, 1, .22, 1) var(--boot-delay, 0ms);
}

.topbar.boot-reveal {
  transform: translate3d(0, -14px, 0) scale(1);
  transition:
    opacity .7s cubic-bezier(.19, 1, .22, 1) var(--boot-delay, 0ms),
    transform .76s cubic-bezier(.19, 1, .22, 1) var(--boot-delay, 0ms);
}

.topbar.boot-reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.auth-card.boot-reveal {
  transform: translate3d(0, 22px, 0) scale(.975);
}

.auth-card.boot-reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes preloader-logo-zoom {
  0% {
    opacity: 0;
    transform: scale(.006);
  }

  18% {
    opacity: .45;
  }

  68% {
    opacity: 1;
    transform: scale(1.035);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloader-logo-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

body.is-preloading .topbar,
body.is-preloading .section-head,
body.is-preloading .quick-grid .app,
body.is-preloading .tile-board > .command-tile,
body.is-preloading .atlas-section > .command-tile,
body.is-preloading .panel,
body.is-preloading .footer,
body.is-preloading .auth-card {
  opacity: 0;
}

body.auth-locked:before,
body.auth-locked:after,
body.office-unlocked:before,
body.office-unlocked:after {
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold2); outline-offset: 4px; }

.mdl-shadow--2dp {
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
}

body.auth-locked {
  overflow: hidden;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
  backdrop-filter: none;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  transition:
    opacity .5s cubic-bezier(.22, 1, .36, 1),
    transform .5s cubic-bezier(.22, 1, .36, 1),
    filter .5s ease;
}

body.is-auth-submitting .auth-card {
  opacity: 0;
  transform: translateY(-14px) scale(.982);
  filter: blur(8px);
  pointer-events: none;
}

.hero-card,
.metric,
.app-icon {
  border: 1px solid var(--surface-border);
  border-radius: 0;
  background:
    var(--surface-shine),
    var(--surface-bg);
  -webkit-backdrop-filter: var(--surface-blur);
  backdrop-filter: var(--surface-blur);
}

.auth-card,
.topbar,
.command-tile,
.app,
.panel {
  position: relative;
  border: 1px solid var(--tile-border);
  border-radius: 0;
  background:
    var(--tile-shine),
    var(--tile-bg);
  -webkit-backdrop-filter: var(--surface-blur);
  backdrop-filter: var(--surface-blur);
}

.auth-card > *,
.topbar > *,
.command-tile > *,
.app > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.auth-card .brand-mark {
  margin: 0 auto 18px;
  width: 58px;
  height: 58px;
  font-size: 1.35rem;
}

.auth-logo {
  display: block;
  width: min(132px, 38vw);
  height: auto;
  margin: 0 auto 22px;
  image-rendering: auto;
}

.auth-card h1 {
  margin: 0 0 12px;
}

.auth-title {
  display: grid;
  gap: 8px;
}

.auth-title-brand {
  display: block;
  font-family: Roboto, Inter, Arial, sans-serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 100;
  letter-spacing: .01em;
  line-height: 1;
}

.auth-title-product {
  display: block;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1rem, 3.5vw, 1.28rem);
  font-weight: 300;
  letter-spacing: .18em;
  line-height: 1.15;
  color: rgba(247, 239, 224, .62);
  text-transform: uppercase;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

#googleSignInButton {
  display: flex;
  justify-content: center;
}

.auth-error {
  display: none;
  margin-top: 16px;
  color: var(--danger);
  font-size: .92rem;
}

.auth-note {
  margin-top: 18px;
  color: rgba(247,239,224,.48);
  font-size: .78rem;
}

.shell {
  position: relative;
  z-index: 1;
  --section-gap: clamp(22px, 2.4vw, 30px);
  --section-first-gap: clamp(12px, 1.4vw, 18px);
  --section-content-gap: 12px;
  width: calc(100% - clamp(16px, 3vw, 40px));
  max-width: min(1480px, 100vw);
  margin: 0 auto;
  padding: 0 0 max(34px, var(--safe-bottom));
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  width: auto;
  max-width: none;
  margin-left: calc(50% - var(--viewport-half-width));
  margin-right: calc(50% - var(--viewport-half-width));
  padding:
    10px
    max(18px, var(--safe-right))
    10px
    max(18px, var(--safe-left));
  border-width: 0 0 1px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-logo {
  width: 43px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
  image-rendering: auto;
  transform: translateZ(0);
}

.brand-lockup {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 4px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold2);
  font-family: Cinzel, serif;
  font-weight: 600;
}

.brand-logo {
  object-fit: contain;
  padding: 5px;
}

.brand strong {
  display: block;
}

.brand-title-brand {
  font-family: Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 100;
  letter-spacing: .02em;
  line-height: 1;
}

.brand span {
  display: block;
}

.brand-title-product {
  font-family: Inter, Arial, sans-serif;
  color: rgba(247, 239, 224, .58);
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .18em;
  line-height: 1.15;
  text-transform: uppercase;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 4px 0 4px 14px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
  border-left: 1px solid rgba(255,255,255,.14);
  transition: color .18s ease, opacity .18s ease;
}

.user-pill:hover {
  color: var(--gold2);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--gold2);
  border: 0;
  font-family: Roboto, Inter, Arial, sans-serif;
  font-weight: 300;
}

.avatar-photo {
  object-fit: cover;
  box-shadow: none;
}

.user-lockup {
  display: grid;
  gap: 5px;
  text-align: left;
  min-width: 0;
}

.user-name {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Roboto, Inter, Arial, sans-serif;
  font-size: .94rem;
  font-weight: 300;
  line-height: 1;
}

.user-action-label {
  display: block;
  color: rgba(247,239,224,.50);
  font-family: Inter, Arial, sans-serif;
  font-size: .66rem;
  font-weight: 300;
  letter-spacing: .16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.logout-action {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(247,239,224,.54);
  transition: color .18s ease;
}

.user-pill:hover .logout-action,
.user-pill:hover .user-action-label {
  color: var(--gold2);
}

.logout-icon {
  font-size: 18px;
}

.hero {
  padding: 34px 0 20px;
  margin: 0 -8px;
  align-items: stretch;
}

.hero.mdl-grid,
.dashboard-grid.mdl-grid {
  padding-left: 0;
  padding-right: 0;
}

.hero-card {
  overflow: hidden;
}

.hero-card {
  min-height: 330px;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eyebrow {
  color: var(--gold2);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 700;
}

h1 {
  font-family: Cinzel, serif;
  margin: 14px 0 12px;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
  max-width: 920px;
}

.hero p {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.mission-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.chip {
  border: 1px solid rgba(216,180,95,.22);
  background: rgba(216,180,95,.07);
  color: rgba(243,215,138,.86);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.focus-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
}

.focus-card h2,
.section-title {
  font-family: Inter, Arial, sans-serif;
  color: rgba(247,239,224,.78);
  text-shadow:
    0 1px 0 rgba(255,255,255,.16),
    0 -1px 0 rgba(0,0,0,.82),
    0 2px 8px rgba(0,0,0,.78),
    0 0 18px rgba(0,0,0,.54);
  margin: 0;
  letter-spacing: .15em;
  font-weight: 600;
  text-transform: uppercase;
}

.section-title {
  font-size: .82rem;
  line-height: 1.2;
}

.focus-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.focus-item:last-child { border-bottom: 0; }
.focus-item strong { display: block; }
.focus-item span { color: var(--muted); font-size: .92rem; display: block; margin-top: 4px; }

.section-head {
  display: flex;
  position: relative;
  gap: 11px;
  align-items: center;
  margin: var(--section-gap) 0 var(--section-content-gap);
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.shell > .section-head:first-of-type {
  margin-top: var(--section-first-gap);
}

.section-head:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(168px, 34vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(216,180,95,.78), rgba(216,180,95,0));
}

.section-head > div {
  min-width: 0;
}

.section-head-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,180,95,.26);
  background: rgba(216,180,95,.08);
  color: rgba(243,215,138,.88);
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.section-head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: rgba(247,239,224,.66);
  font-size: .9rem;
  line-height: 1.45;
  text-shadow:
    0 1px 0 rgba(255,255,255,.08),
    0 -1px 0 rgba(0,0,0,.78),
    0 2px 10px rgba(0,0,0,.76);
}

.dashboard-grid { margin: 0 -8px; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, .8vw, 12px);
  margin: 0;
}

.metric {
  padding: 20px;
  min-height: 142px;
  position: relative;
  overflow: hidden;
}

.metric-label,
.metric-value,
.metric-note {
  position: relative;
  z-index: 1;
}

.metric-label {
  color: var(--muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.metric-value {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  margin-top: 14px;
}

.metric-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
}

.delta.good { color: var(--good); }
.delta.warn { color: var(--warn); }

.tile-board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(168px, auto);
  gap: clamp(8px, .8vw, 12px);
  padding: 0;
}

.audience-tile {
  grid-column: span 6;
}

.command-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 168px;
  padding: clamp(18px, 2.15vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mission-tile {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 330px;
  justify-content: flex-start;
}

.stat-tile,
.action-tile {
  grid-column: span 3;
}

.status-tile {
  grid-column: span 6;
  gap: 18px;
  justify-content: flex-start;
  min-height: 292px;
  contain: layout paint;
}

.tile-kicker,
.tile-title,
.tile-value,
.tile-note,
.command-tile h1,
.command-tile p,
.command-tile strong,
.mission-line {
  position: relative;
  z-index: 1;
}

.tile-kicker,
.tile-title {
  color: rgba(247,239,224,.62);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
}

.tile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--surface-border);
  min-width: 0;
}

.tile-title > span:last-child {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.tile-title .material-icons {
  color: var(--gold2);
  font-size: 22px;
  order: -1;
  transition: color .7s cubic-bezier(.22, 1, .36, 1), text-shadow .7s ease;
}

.command-tile h1 {
  font-family: Roboto, Inter, Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 3.15rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 14px 0 16px;
  max-width: 760px;
}

.command-tile p {
  color: rgba(247,239,224,.76);
  text-shadow: 0 1px 0 rgba(255,255,255,.10), 0 -1px 0 rgba(0,0,0,.70);
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
  overflow-wrap: anywhere;
}

.tile-value {
  font-family: Roboto, Inter, Arial, sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  font-weight: 100;
  line-height: 1;
  color: #fff;
  text-align: right;
  margin-top: auto;
  padding-top: 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.number-static,
.number-roll {
  display: inline-block;
  min-width: .28em;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}

.number-roll {
  overflow: hidden;
}

.number-roll span {
  display: block;
  height: 1em;
  line-height: 1;
  animation: number-roll-up .46s cubic-bezier(.22, 1, .36, 1) forwards;
}

.number-roll span:first-child {
  opacity: .52;
}

.number-roll span:last-child {
  opacity: 1;
}

.compact-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.tile-note {
  color: rgba(247,239,224,.50);
  font-size: .76rem;
  line-height: 1.35;
  margin-top: 9px;
  text-align: right;
}

.tile-source {
  display: block;
  margin-top: 5px;
  color: rgba(247, 216, 141, .66);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-tile {
  gap: 12px;
}

.money-tile {
  justify-content: flex-start;
  gap: 12px;
  min-height: 205px;
  padding-bottom: clamp(18px, 2.15vw, 24px);
}

.stat-tile .tile-value {
  align-self: stretch;
  letter-spacing: 0;
}

.money-tile .tile-note {
  position: static;
  align-self: stretch;
  order: 5;
  max-width: 100%;
  margin: 0;
  color: rgba(247,239,224,.36);
  font-size: .6rem;
  line-height: 1.3;
  text-align: right;
}

.tile-value.is-loading {
  min-height: 1em;
}

.metric-loading {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 9px;
  background: transparent;
}

.metric-loading:before,
.metric-loading:after,
.metric-loading {
  border-radius: 999px;
}

.metric-loading:before,
.metric-loading:after {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
  background: rgba(247,239,224,.42);
  animation: metric-loading-pulse 1.15s ease-in-out infinite;
}

.metric-loading:before {
  left: 0;
  box-shadow: 18px 0 0 rgba(247,239,224,.42);
  animation-delay: -.22s;
}

.metric-loading:after {
  right: 1px;
  animation-delay: .22s;
}

.money-goal {
  display: grid;
  order: 3;
  gap: 6px;
  margin-top: 0;
}

.money-insight {
  order: 4;
  color: rgba(247, 216, 141, .66);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.money-goal-head,
.money-goal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(247,239,224,.46);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.25;
  text-transform: uppercase;
  min-width: 0;
}

.money-goal-head span,
.money-goal-foot span {
  min-width: 0;
}

.money-goal-head strong {
  color: rgba(247,239,224,.74);
  font-size: .66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.money-goal-track {
  height: 2px;
  overflow: hidden;
  background: rgba(247,239,224,.12);
}

.money-goal-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(216,180,95,.70), rgba(142,230,168,.62));
  transition: width .9s cubic-bezier(.22, 1, .36, 1);
}

.money-goal-foot {
  color: rgba(247,239,224,.38);
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: none;
}

.status-tile .tile-value,
.status-tile .tile-note {
  text-align: left;
}

.status-tile .tile-value {
  position: static;
  margin-top: 0;
  padding-top: 6px;
}

.status-tile .tile-value.is-changing {
  animation: infra-status-pulse .9s cubic-bezier(.22, 1, .36, 1);
}

.infra-panel {
  display: grid;
  gap: 14px;
}

.infra-summary,
.infra-signal {
  color: rgba(247,239,224,.56);
  font-size: .74rem;
  line-height: 1.35;
}

.infra-summary {
  color: rgba(247,239,224,.72);
}

.infra-status-main,
.infra-status-age {
  display: block;
}

.infra-status-main {
  position: relative;
  z-index: 1;
  color: inherit;
}

.infra-status-age {
  position: absolute;
  right: clamp(18px, 2.4vw, 26px);
  bottom: clamp(14px, 1.8vw, 20px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(247,239,224,.38);
  font-family: Inter, Arial, sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.infra-timer-dot {
  display: inline-block;
  width: 16px;
  height: 3px;
  overflow: hidden;
  background: rgba(247,239,224,.12);
}

.infra-timer-dot:after {
  content: "";
  display: block;
  width: 38%;
  height: 100%;
  background: rgba(243,215,138,.58);
  animation: infra-refresh-meter 15s linear infinite;
}

.infra-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.infra-stat {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}

.infra-stat span,
.infra-meter-label span {
  display: block;
  color: rgba(247,239,224,.46);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.infra-stat strong {
  display: block;
  color: #fff;
  font-family: Roboto, Inter, Arial, sans-serif;
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  font-weight: 100;
  line-height: 1;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.infra-stat small {
  display: block;
  margin-top: 7px;
  color: rgba(247,239,224,.48);
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.infra-number.is-changing {
  animation: infra-number-lift 1.05s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity, filter;
}

.infra-meters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.infra-meter {
  display: grid;
  gap: 5px;
}

.infra-meter-label,
.infra-node,
.infra-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.infra-meter-label strong,
.infra-node strong,
.infra-health strong {
  color: rgba(247,239,224,.78);
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.infra-meter-track {
  height: 4px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
}

.infra-meter-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(216,180,95,.74), rgba(142,230,168,.76));
  transform-origin: left center;
  transition:
    width 1.05s cubic-bezier(.22, 1, .36, 1),
    filter 1.05s ease,
    opacity 1.05s ease;
  will-change: width, filter;
}

.infra-meter-track span.is-changing {
  filter: drop-shadow(0 0 8px rgba(243,215,138,.30));
}

.infra-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.infra-node {
  color: rgba(247,239,224,.64);
  font-size: .72rem;
}

.infra-health {
  padding: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(247,239,224,.68);
  font-size: .72rem;
}

.infra-node > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.infra-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 10px rgba(243,215,138,.36);
  vertical-align: 1px;
}

.infra-dot.is-live {
  background: var(--good);
  box-shadow: 0 0 12px rgba(142,230,168,.42);
}

@keyframes infra-number-lift {
  0% { opacity: .58; filter: blur(.8px); transform: translateY(5px); }
  42% { opacity: 1; filter: blur(0); transform: translateY(0); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes metric-loading-pulse {
  0%, 80%, 100% {
    opacity: .32;
    transform: translateY(0);
  }
  40% {
    opacity: .86;
    transform: translateY(-3px);
  }
}

@keyframes number-roll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-1em);
  }
}

@keyframes infra-status-pulse {
  0% { filter: brightness(1); }
  38% { filter: brightness(1.24); }
  100% { filter: brightness(1); }
}

@keyframes infra-refresh-meter {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-preloader,
  .app-preloader-bg,
  .app-preloader:after,
  .app-preloader-logo,
  .boot-reveal {
    animation: none;
    transition: none;
  }

  .app-preloader-bg,
  .app-preloader:after,
  .app-preloader-bg-image,
  .app-preloader-logo {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .status-tile .tile-value.is-changing,
  .infra-number.is-changing,
  .number-roll span {
    animation: none;
  }

  .infra-meter-track span {
    transition: none;
  }

  .infra-timer-dot:after {
    animation: none;
    transform: none;
    width: 100%;
  }

  .metric-loading,
  .metric-loading:before,
  .metric-loading:after {
    animation: none;
  }
}

.action-tile {
  justify-content: flex-start;
  gap: 16px;
}

.action-tile strong {
  color: #fff;
  font-size: clamp(1.2rem, 2.4vw, 1.72rem);
  font-weight: 300;
  line-height: 1.08;
  margin-top: auto;
  overflow-wrap: anywhere;
}

.action-tile p {
  color: rgba(247,239,224,.58);
  font-size: .94rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: clamp(8px, .8vw, 12px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.atlas-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, .8vw, 12px);
  padding: 0;
}

.app {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-decoration: none;
  min-height: 126px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: inherit;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.app:hover {
  border-color: var(--surface-border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 48%),
    rgba(7, 10, 15, .48);
  box-shadow:
    inset 0 0 0 1px rgba(243,215,138,.08),
    0 0 22px rgba(216,180,95,.10);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: var(--gold2);
  font-size: 1.7rem;
  margin-bottom: 11px;
}

.app-icon .material-icons {
  display: block;
  color: var(--gold2);
  font-size: 30px;
  line-height: 1;
  margin: 0;
}

.app strong {
  font-size: .95rem;
  line-height: 1.2;
}

.app > span { color: var(--muted); font-size: .82rem; margin-top: 4px; }

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
}

.app-modal.is-open {
  display: grid;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(11px) saturate(.86);
  -webkit-backdrop-filter: blur(11px) saturate(.86);
}

.app-modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--tile-border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 46%),
    rgba(8, 10, 14, .78);
  box-shadow: 0 28px 80px rgba(0,0,0,.56);
}

.app-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(247,239,224,.72);
  cursor: pointer;
}

.app-modal-close:hover {
  color: #fff;
  border-color: rgba(243,215,138,.34);
}

.app-modal-close .material-icons {
  font-size: 20px;
}

.app-modal-title {
  margin-right: 42px;
}

.signature-modal-panel {
  width: min(1040px, 100%);
  height: min(860px, calc(100vh - clamp(36px, 8vw, 84px)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.signature-modal-title {
  flex: 0 0 auto;
  margin-bottom: 14px;
}

.signature-tool-frame {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: transparent;
}

.youtube-channel-grid,
.social-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.youtube-channel-card,
.social-link-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  color: rgba(247,239,224,.86);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.youtube-channel-card:hover,
.social-link-card:hover {
  border-color: rgba(243,215,138,.34);
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 50%),
    rgba(255,255,255,.055);
  box-shadow:
    inset 0 0 0 1px rgba(243,215,138,.08),
    0 0 22px rgba(216,180,95,.10);
}

.youtube-channel-avatar {
  width: 58px;
  height: 58px;
  display: block;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.14);
}

.youtube-channel-avatar-tudor {
  background:
    linear-gradient(135deg, rgba(21, 10, 35, .2), rgba(4, 8, 18, .1)),
    url("images/tudor.jpg");
  background-size: cover;
  background-position: center;
}

.youtube-channel-avatar-aristopaths {
  background:
    linear-gradient(135deg, rgba(216,180,95,.18), rgba(255,255,255,.02)),
    url("images/aristopaths.jpg"),
    url("images/aristopaths-logo-clean-512.png");
  background-size: cover;
  background-position: center;
}

.social-link-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(145deg, rgba(243,215,138,.12), transparent 54%),
    rgba(255,255,255,.04);
  color: var(--gold2);
  font-size: 26px;
}

.youtube-channel-card strong,
.youtube-channel-card small,
.social-link-card strong,
.social-link-card small {
  display: block;
  min-width: 0;
}

.youtube-channel-card strong,
.social-link-card strong {
  color: #fff;
  font-size: .98rem;
  line-height: 1.2;
}

.youtube-channel-card small,
.social-link-card small {
  margin-top: 4px;
  color: rgba(247,239,224,.52);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.youtube-channel-card > .material-icons,
.social-link-card > .material-icons {
  color: var(--gold2);
  font-size: 20px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.action-panel {
  min-height: 230px;
}
.panel ul { list-style: none; padding: 0; margin: 16px 0 0; }
.panel li { padding: 13px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.panel li:last-child { border-bottom: 0; }
.panel li strong { color: var(--text); }

.footer {
  color: rgba(247,239,224,.42);
  text-align: center;
  padding: 30px 0 10px;
  font-size: .82rem;
}

@media (max-width: 1180px) {
  .tile-board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .atlas-section { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mission-tile { grid-column: span 6; }
  .audience-tile,
  .stat-tile,
  .action-tile { grid-column: span 3; }
  .status-tile { grid-column: span 6; }
}

@media (max-width: 840px) {
  .tile-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-tile,
  .audience-tile,
  .action-tile,
  .status-tile { grid-column: span 2; }
  .stat-tile { grid-column: span 1; }
  .action-grid { grid-template-columns: 1fr; }
  .hero-card, .focus-card { min-height: auto; }
  .quick-grid { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
}

@media (max-width: 620px) {
  .shell {
    --section-gap: 22px;
    --section-first-gap: 12px;
    --section-content-gap: 10px;
    width: calc(100% - 16px);
    padding-top: 0;
  }
  .topbar { min-height: 60px; top: 0; border-radius: 0; }
  .nav-logo { width: 38px; height: 44px; }
  .brand-title-brand { font-size: 1rem; }
  .brand-title-product, .user-lockup { display: none; }
  .user-pill { gap: 8px; padding-left: 10px; }
  .tile-board,
  .atlas-section { grid-template-columns: 1fr; gap: 8px; padding: 0; }
  .mission-tile,
  .audience-tile,
  .stat-tile,
  .action-tile,
  .status-tile { grid-column: span 1; min-height: 150px; }
  .mission-tile { grid-row: auto; min-height: 0; }
  .command-tile { padding: 18px; }
  .command-tile h1 {
    font-size: clamp(1.55rem, 8.2vw, 2.35rem);
    line-height: 1.06;
    margin: 10px 0 12px;
  }
  .command-tile p {
    font-size: .9rem;
    line-height: 1.45;
  }
  .mission-line {
    gap: 7px;
    margin-top: 18px;
  }
  .chip {
    padding: 6px 10px;
    font-size: .68rem;
    white-space: normal;
  }
  .tile-value { text-align: left; }
  .tile-note { text-align: left; }
  .action-tile strong {
    margin-top: 0;
  }
  .tile-title {
    align-items: flex-start;
    gap: 10px;
  }
  .tile-title > span:last-child {
    line-height: 1.25;
  }
  .infra-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infra-meters,
  .infra-list { grid-template-columns: 1fr; }
  .infra-stat { padding: 8px; }
  .infra-stat strong { font-size: 1.1rem; }
  .infra-meter-label,
  .infra-node,
  .infra-health { align-items: flex-start; flex-direction: column; gap: 3px; }
  .infra-meter-label strong,
  .infra-node strong,
  .infra-health strong { white-space: normal; }
  .hero { padding-top: 22px; }
  .hero-card { padding: 24px; }
  .section-head {
    align-items: flex-start;
    gap: 10px;
    margin: var(--section-gap) 0 var(--section-content-gap);
    padding-bottom: 10px;
  }
  .shell > .section-head:first-of-type {
    margin-top: var(--section-first-gap);
  }
  .section-head p {
    font-size: .84rem;
  }
  .quick-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; padding: 0; border-radius: 0; }
  .app { min-height: 104px; padding: 10px 4px; }
  .app-icon { width: 50px; height: 50px; border-radius: 0; }
  .app-icon .material-icons { font-size: 25px; }
  .app > span { display: none; }
  .youtube-channel-grid,
  .social-link-grid {
    grid-template-columns: 1fr;
  }
  .app-modal-panel {
    padding: 18px;
  }
  .signature-modal-panel {
    height: calc(100dvh - 36px);
    padding: 16px 10px 10px;
  }
  .signature-modal-title {
    margin-left: 6px;
  }
}

/* Refined money tiles: calmer, corporate-friendly financial readout */
.money-tile .tile-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.42rem;
  font-size: clamp(1.95rem, 3.4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  order: 2;
  margin-top: clamp(10px, 1.4vw, 18px);
  padding-top: 0;
  white-space: nowrap;
}

.money-tile .tile-value br {
  display: none;
}

.money-tile .tile-value small,
.money-tile .tile-value .currency,
.money-tile .tile-value .money-currency {
  color: rgba(243, 215, 138, 0.72);
  font-size: 0.46em;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
}

.money-tile .tile-note {
  max-width: 100%;
  color: rgba(247, 239, 224, 0.44);
  font-size: 0.66rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.erp-money-tile .tile-note {
  display: grid;
  gap: 2px;
  max-width: none;
  text-align: right;
}

.erp-note-row {
  display: block;
}

.erp-money-tile {
  justify-content: flex-start;
}

.erp-money-tile .tile-value {
  align-items: center;
  justify-content: flex-end;
  margin-top: clamp(16px, 2vw, 26px);
}

.money-tile .tile-value {
  color: rgba(247, 239, 224, 0.94);
  text-shadow: 0 0 20px rgba(216, 180, 95, 0.08);
}

@media (max-width: 620px) {
  .money-tile {
    min-height: 214px;
    padding-bottom: 18px;
  }

  .money-tile .tile-value {
    justify-content: flex-start;
    font-size: clamp(1.7rem, 8.8vw, 2.45rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .money-tile .tile-note {
    max-width: none;
    text-align: left;
  }

  .money-insight {
    text-align: left;
  }

  .infra-status-age {
    right: 18px;
    bottom: 14px;
    left: 18px;
    max-width: none;
    text-align: right;
  }

  .erp-money-tile .tile-value {
    justify-content: flex-start;
  }

  .money-goal {
    margin-top: 2px;
  }

  .money-goal-head,
  .money-goal-foot {
    gap: 8px;
    font-size: .55rem;
    letter-spacing: .07em;
  }

  .money-goal-foot span:last-child {
    text-align: right;
  }

  .status-tile {
    min-height: 0;
    padding-bottom: 50px;
  }

  .infra-stats {
    gap: 6px;
  }

  .infra-stat small {
    font-size: .6rem;
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  @media (display-mode: standalone) {
    .topbar {
      min-height: calc(60px + var(--safe-top));
      padding-top: calc(var(--safe-top) + 2px);
      padding-bottom: 8px;
    }
  }

  @media (display-mode: standalone) and (max-width: 620px) {
    .topbar {
      min-height: calc(52px + var(--safe-top));
      padding-top: calc(var(--safe-top) + 0px);
      padding-bottom: 6px;
    }

    .nav-logo {
      height: 40px;
    }

    .brand-lockup {
      gap: 4px;
      padding-top: 0;
    }
  }
}
