/* Shell dimensions and treatments copied from CMA Profitability; names scoped to Signage. */
:root {
  --ink-950: #2c2c2c;
  --ink-900: #373737;
  --ink-800: #494949;
  --ink-700: #5e5e5e;
  --ink-600: #707070;
  --ink-500: #898989;
  --ink-300: #c7c7c7;
  --ink-200: #dddddd;
  --ink-100: #eeeeee;
  --ink-50: #f7f7f7;
  --surface: #ffffff;
  --canvas: #f4f4f3;
  --brand-700: #962d3b;
  --brand-600: #ad3445;
  --brand-500: #c23d4e;
  --brand-100: #f2d9dd;
  --brand-50: #fbf2f4;
  --teal-700: var(--brand-700);
  --teal-600: var(--brand-600);
  --teal-500: var(--brand-500);
  --teal-100: var(--brand-100);
  --teal-50: var(--brand-50);
  --healthy: #1f8f63;
  --healthy-soft: #e5f4ec;
  --review: #c9871c;
  --review-soft: #fff3d9;
  --qualify: #397a83;
  --qualify-soft: #e6f2f3;
  --reject: #c34d4d;
  --reject-soft: #fae8e7;
  --font-body: 14px;
  --font-small: 11px;
  --shadow-sm: 0 1px 2px rgba(73, 73, 73, 0.04),
    0 6px 18px rgba(73, 73, 73, 0.04);
  --shadow-md: 0 16px 42px rgba(73, 73, 73, 0.09);
}
.cma-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 264px;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--ink-200);
  background: #fbfbfb;
}

.brand-lockup {
  display: flex;
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  padding: 0 8px 26px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.brand-lockup > div:last-child {
  width: 100%;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  color: var(--ink-950);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-lockup span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

.brand-logo {
  width: 84px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-600);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.nav-button:hover {
  background: var(--ink-100);
  color: var(--ink-950);
}

.nav-button.active {
  background: var(--brand-100);
  color: var(--brand-700);
}

.nav-button span {
  flex: 1;
}

.nav-button small {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: rgba(194, 61, 78, 0.1);
  font-size: 10px;
}

.sidebar-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #ecd1d6;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.sidebar-callout svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.sidebar-callout strong,
.sidebar-callout span {
  display: block;
}

.sidebar-callout strong {
  font-size: 11px;
}

.sidebar-callout span {
  margin-top: 2px;
  color: #8f6670;
  font-size: 10px;
  line-height: 1.4;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 8px 0;
  border-top: 1px solid var(--ink-200);
}

.user-card .avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card strong {
  max-width: 155px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card span {
  color: var(--ink-500);
  font-size: 10px;
}

.user-signout {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
}

.user-signout:hover {
  border-color: var(--ink-200);
  background: white;
  color: var(--brand-500);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(194, 61, 78, 0.12), transparent 34%),
    var(--ink-50);
}

.login-card {
  width: min(100%, 440px);
  padding: 42px;
  border: 1px solid var(--ink-200);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-card img {
  width: 126px;
  height: auto;
  margin-bottom: 22px;
}

.login-card .eyebrow {
  margin-bottom: 8px;
}

.login-card h1 {
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(25px, 5vw, 34px);
  letter-spacing: -0.04em;
}

.login-copy {
  margin: 16px 0 26px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.65;
}

.login-security-note {
  display: block;
  margin-top: 18px;
  color: var(--ink-500);
  font-size: 10px;
}

.main-column {
  min-height: 100vh;
  margin-left: 264px;
}

.mobile-header {
  display: none;
}

.mobile-nav {
  display: none;
}


.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.primary {
  background: var(--ink-950);
  box-shadow: 0 4px 12px rgba(73, 73, 73, 0.14);
  color: white;
}

.button.primary:hover:not(:disabled) {
  background: var(--ink-800);
}

.button.secondary {
  border-color: var(--ink-200);
  background: white;
  color: var(--ink-700);
}

.button.secondary:hover:not(:disabled) {
  border-color: var(--ink-300);
  background: var(--ink-50);
}


@media (max-width: 920px) {
  .cma-sidebar {
    display: none;
  }

  .main-column {
    margin-left: 0;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    height: 66px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--ink-200);
    background: rgba(251, 251, 251, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-brand-logo {
    width: 82px;
    height: auto;
    object-fit: contain;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(9, minmax(60px, 1fr));
    overflow-x: auto;
    height: 64px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--ink-200);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-direction: column;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-500);
    cursor: pointer;
    font-size: 8px;
    font-weight: 650;
  }

  .mobile-nav button.active {
    background: var(--teal-50);
    color: var(--teal-700);
  }

}

body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size:var(--font-body); line-height:1.5; }
.layout { display:block; }
.shell.main-column { min-width:0; }
#main { width:min(1440px,100%); margin:0 auto; padding:42px 46px 70px; }
.heading { align-items:flex-end; gap:24px; margin-bottom:28px; }
.heading h1 { margin:5px 0 8px; font-size:clamp(28px,3vw,38px); font-weight:670; letter-spacing:-.04em; line-height:1.08; }
.heading p { max-width:690px; color:var(--ink-600); font-size:14px; }
.eyebrow { margin:0; color:var(--brand-600); font-size:10px; font-weight:750; letter-spacing:.12em; }
.cma-sidebar .brand-lockup:hover { background:transparent; }
.cma-sidebar .brand-lockup { border-radius:0; }
.brand-lockup .brand-logo { display:block; padding:0; border:0; border-radius:0; background:transparent; }
.cma-sidebar .nav-button svg { flex:0 0 auto; }
.nav-button[aria-current="page"] { background:var(--brand-100); color:var(--brand-700); }
.cma-sidebar .nav-button small { color:inherit; font-weight:600; line-height:normal; }
.user-card .user-info { min-width:0; }
.user-card .user-signout { padding:0; min-height:30px; }
.user-card span { font-size:10px; }
.user-card .avatar { font-size:11px; }
.user-card .avatar,.user-card .user-signout { flex-shrink:0; }
button.primary,.button.primary { background:var(--ink-950); border-color:transparent; box-shadow:0 4px 12px rgba(73,73,73,.14); color:white; }
button.primary:hover:not(:disabled),.button.primary:hover:not(:disabled) { background:var(--ink-800); }
.button { font-size:14px; text-decoration:none; }
.button.full-width { width:100%; }
.login-shell { background:var(--ink-50); }
.login-card img { display:block; width:126px; height:auto; margin:0 0 22px; padding:0; background:transparent; border-radius:0; }
.login-card .eyebrow { margin:0 0 8px; }
.login-card h1 { font-weight:600; line-height:1.2; }
.login-copy { font-size:13px; margin:26px 0; }
.login-card .login-security-note { font-size:10px; line-height:1.5; color:var(--ink-500); }
.login-card form { margin:0; }
.login-card .pilot-login { text-align:left; margin-top:22px; padding-top:18px; border-top:1px solid var(--ink-100); }
.pilot-login summary { font-size:11px; }
.pilot-login form { display:grid; gap:14px; margin-top:16px; }
.auth-message { font-size:12px; color:var(--brand-700); line-height:1.6; margin:15px 0 0; }
.stat { position:relative; padding:22px; border-radius:15px; border-color:#dce3e2; }
.stat .kpi-icon { display:grid; width:35px; height:35px; place-items:center; border-radius:9px; background:var(--brand-50); color:var(--brand-700); margin-bottom:14px; }
.stat>span:not(.kpi-icon) { font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-500); }
.stat strong { margin:8px 0 3px; font-size:26px; font-weight:700; }
.stat small { font-size:11px; }
.panel { border-radius:15px; border-color:#dce3e2; }
.sidebar-callout svg { flex-shrink:0; }
.mobile-nav .nav-button { min-height:0; padding:0 5px; font-size:8px; }
.mobile-nav .nav-button span { flex:0; }
.mobile-nav .nav-button small { display:none; }
.mobile-nav { grid-template-columns:repeat(6,minmax(60px,1fr)); }
.mobile-header .mobile-brand-logo { padding:0; background:transparent; }
.mobile-header .user-signout { margin:0; }
@media(max-width:1100px) { .stats{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:920px) { #main { padding:30px 22px 92px; } .heading{align-items:start;flex-direction:column;} .mobile-nav{display:grid;} .mobile-header{display:flex;} }
@media(max-width:440px) { .login-shell{padding:16px;} .login-card{padding:32px 22px;} #main{padding-inline:16px;} .heading h1{font-size:28px;} }
.login-shell { max-width:none; width:100%; margin:0; }

/* Keep the account block at the same bottom inset as CMA Profitability. */
.cma-sidebar .sidebar-footer { margin-top:auto; flex:0 0 auto; }
.cma-sidebar .sidebar-footer .sidebar-callout { margin-top:0; }
.cma-sidebar .nav-list { min-height:0; overflow-y:auto; margin-bottom:20px; }
