/*
 * Northgate visual theme
 * A light, rounded workspace skin based on the supplied dashboard reference.
 * The application data and role model remain in app.js.
 */
:root {
  --canvas: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --surface-teal: #eaf2e8;
  --surface-blue: #e6f0f2;
  --surface-violet: #edf1ed;
  --surface-gold: #fbf2df;
  --surface-coral: #fae9e6;
  --ink: #17231b;
  --ink-soft: #3d5141;
  --muted: #718076;
  --faint: #9ba89e;
  --line: #e1e9df;
  --line-strong: #cfdccf;
  --teal: #286620;
  --teal-deep: #173d20;
  --blue: #547f8d;
  --violet: #688078;
  --gold: #bd9544;
  --coral: #a64848;
  --slate: #547f8d;
  --shadow: 0 16px 36px rgba(27, 55, 32, .07);
  --shadow-strong: 0 24px 70px rgba(27, 55, 32, .18);
  --radius: 16px;
  --radius-sm: 9px;
  --ng-canvas: #f6f8f4;
  --ng-rail: #f0f5ef;
  --ng-rail-active: #eaf2e8;
  --ng-green: #286620;
  --ng-green-deep: #173d20;
  --ng-ink: #17231b;
  --ng-muted: #718076;
  --ng-line: #e1e9df;
  --ng-lavender: #e6f0f2;
  --ng-purple: #547f8d;
  --ng-cream: #fbf2df;
  --ng-radius: 16px;
  --ng-shadow: 0 16px 36px rgba(27, 55, 32, .07);
}

html,
body {
  background: var(--ng-canvas);
  color: var(--ng-ink);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-size: 13px;
}

.app-shell {
  grid-template-columns: 288px minmax(0, 1fr);
  background: var(--ng-canvas);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 51px 18px 24px;
  color: #4f5b54;
  background: var(--ng-rail);
  border-right: 1px solid #e7f0e7;
}

.sidebar .brand {
  gap: 0;
  padding: 0 0 0 0;
}

.sidebar .brand-mark {
  display: none;
}

.sidebar .brand-copy {
  gap: 0;
}

.sidebar .brand-copy strong {
  color: var(--ng-green);
  font-family: 'DM Sans', ui-sans-serif, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: 1;
  text-transform: none;
}

.sidebar .brand-copy small {
  display: none;
}

.sidebar-school {
  display: none;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-top: 29px;
  overflow: auto;
  padding: 0;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group > p {
  display: none;
}

.nav-group + .nav-group {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(157, 193, 160, .24);
}

.nav-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: #4f5a53;
  background: transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  color: #637069;
}

.nav-item:hover {
  color: var(--ng-ink);
  background: rgba(234, 242, 232, .9);
}

.nav-item.is-active {
  color: #193322;
  background: var(--ng-rail-active);
  box-shadow: none;
  font-weight: 650;
}

.nav-item.is-active .icon {
  color: var(--ng-green-deep);
}

.nav-item b {
  color: #285a3c;
  background: #d7f6cf;
}

.sidebar-bottom {
  display: none;
}

.content-shell {
  min-width: 0;
  background: #fff;
}

.mode-strip {
  min-height: 49px;
  align-items: center;
  gap: 9px;
  padding: 0 31px;
  color: #4d4c63;
  background: var(--ng-lavender);
  border: 0;
  font-size: 11px;
}

.mode-strip .mode-dot {
  position: relative;
  width: 17px;
  height: 17px;
  background: var(--ng-purple);
  box-shadow: none;
}

.mode-strip .mode-dot::after {
  position: absolute;
  inset: 0;
  color: #fff;
  content: "i";
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.mode-strip strong {
  display: none;
}

.mode-strip > span:nth-child(3) {
  color: #4f4c65;
  font-size: 11px;
}

.mode-strip button {
  margin-left: auto;
  padding: 5px 0;
  color: var(--ng-purple);
  font-size: 11px;
  font-weight: 700;
}

.mode-strip button .icon {
  display: none;
}

.mode-strip button span {
  font-size: 0;
}

.mode-strip button span::after {
  content: "Review setup  →";
  font-size: 11px;
}

.mode-strip.live {
  color: #4d4c63;
  background: var(--ng-lavender);
  border: 0;
}

.mode-strip.live .mode-dot {
  background: var(--ng-purple);
}

.topbar {
  min-height: 64px;
  gap: 14px;
  padding: 0 34px;
  background: #fff;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.top-brand,
.topbar-title,
.global-search {
  display: none !important;
}

.top-utilities {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.top-utility {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  color: #3a403b;
  background: transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.top-utility-ai {
  padding: 6px 10px;
  color: #4d429a;
  background: #f2efff;
}

.top-utility-ai .icon {
  width: 13px;
  height: 13px;
}

.header-icon {
  color: #606b64;
}

.top-actions {
  gap: 9px;
  margin-left: 2px;
}

.profile-trigger {
  gap: 8px;
  padding: 4px 5px 4px 4px;
  border-radius: 10px;
}

.profile-trigger:hover {
  background: #f7faf7;
}

.profile-copy {
  min-width: 116px;
}

.profile-copy strong {
  font-size: 11px;
}

.profile-copy small {
  color: var(--ng-muted);
  font-size: 9px;
}

.avatar {
  width: 31px;
  height: 31px;
  color: #16835b;
  background: #d8f5db;
}

.main {
  max-width: none;
  padding: 0 38px 60px;
}

.context-bar {
  display: none;
}

.page {
  padding-top: 0;
  animation: none;
}

.theme-page {
  min-width: 0;
}

.brevo-home {
  min-width: 0;
  padding-bottom: 28px;
}

.home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 23px 0 22px;
}

.home-heading h1 {
  margin: 0;
  color: var(--ng-ink);
  font-size: 22px;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.home-heading p {
  margin: 6px 0 0;
  color: var(--ng-muted);
  font-size: 12px;
}

.home-heading-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}

.home-link,
.home-text-button,
.home-usage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  color: var(--ng-purple);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.home-link .icon,
.home-text-button .icon,
.home-usage-link .icon {
  width: 13px;
  height: 13px;
}

.home-link:hover,
.home-text-button:hover,
.home-usage-link:hover {
  color: #4a3e9e;
}

.home-settings {
  min-height: 35px;
  padding: 0 14px;
  color: #2f332f;
  background: #fffef8;
  border: 1px solid #e4db9c;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(191, 169, 76, .08);
  font-size: 11px;
  font-weight: 700;
}

.home-settings:hover {
  background: #fffbe9;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, .29fr) minmax(0, .71fr);
  min-height: 230px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius);
}

.home-calendar {
  min-width: 0;
  padding: 17px 21px 15px;
  background: #fff;
}

.home-calendar-title {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 4px;
  margin-bottom: 15px;
  color: var(--ng-ink);
  font-size: 12px;
  text-align: center;
}

.home-calendar-title strong {
  font-size: 12px;
  font-weight: 650;
}

.home-calendar-nav {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #6f7a73;
  background: transparent;
  border-radius: 7px;
}

.home-calendar-nav:hover {
  color: var(--ng-green);
  background: #f1fbf0;
}

.home-calendar-nav .icon {
  width: 13px;
  height: 13px;
}

.home-calendar-weekdays,
.home-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.home-calendar-weekdays {
  margin-bottom: 7px;
}

.home-calendar-weekdays span {
  color: #a2a8a3;
  font-size: 9px;
}

.home-day {
  display: grid;
  min-height: 25px;
  place-items: center;
  color: #343b36;
  border-radius: 50%;
  font-size: 10px;
}

.home-day.is-empty {
  pointer-events: none;
}

.home-day.is-selected {
  color: #fff;
  background: var(--ng-purple);
  font-weight: 800;
}

.home-setup {
  min-width: 0;
  overflow: hidden;
  padding: 17px 25px 18px 30px;
  background: var(--ng-cream);
  border-left: 1px solid #f0efe5;
}

.home-setup-heading,
.home-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 17px;
}

.home-kicker {
  margin: 0 0 6px;
  color: #758078;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-setup h2,
.home-card h2 {
  margin: 0;
  color: var(--ng-ink);
  font-size: 15px;
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.home-dark-pill {
  min-height: 25px;
  padding: 0 10px;
  color: #fff;
  background: #313532;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.home-dark-pill:hover,
.home-dark-button:hover {
  background: #0a6e4b;
}

.home-setup-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
  min-width: 650px;
  margin-top: 13px;
}

.home-setup-step {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.home-setup-art {
  position: relative;
  display: grid;
  width: 92px;
  height: 133px;
  flex: 0 0 92px;
  place-items: center;
  overflow: hidden;
}

.home-setup-art span {
  position: relative;
  z-index: 2;
  color: #078453;
  font-size: 101px;
  font-weight: 800;
  letter-spacing: -.22em;
  line-height: .8;
}

.home-setup-art i,
.home-setup-art b {
  position: absolute;
  display: block;
  background: #0a8d5b;
}

.home-setup-art-one i {
  top: 9px;
  right: 18px;
  width: 39px;
  height: 16px;
  border-radius: 100% 0 100% 0;
  transform: rotate(-48deg);
}

.home-setup-art-one b {
  right: 24px;
  bottom: 17px;
  width: 19px;
  height: 60px;
  background: #efeedf;
  border-left: 1px solid #dfe2d3;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.home-setup-art-two i {
  top: 11px;
  right: 16px;
  width: 35px;
  height: 61px;
  background: #efeedf;
  border: 1px solid #dfe2d3;
  border-radius: 100% 0 100% 0;
  transform: rotate(26deg);
}

.home-setup-art-two b {
  right: 11px;
  bottom: 15px;
  width: 45px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  transform: rotate(-17deg);
}

.home-setup-copy {
  min-width: 0;
  padding: 13px 14px 12px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #eeece1;
  border-radius: 12px;
}

.home-setup-copy strong {
  display: block;
  overflow: hidden;
  color: #242a26;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-setup-copy p {
  max-width: 210px;
  margin: 6px 0 10px;
  color: #8a918a;
  font-size: 9px;
  line-height: 1.45;
}

.home-text-button {
  font-size: 10px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 1fr);
  gap: 20px;
  margin-top: 21px;
}

.home-card {
  min-width: 0;
  min-height: 281px;
  overflow: hidden;
  padding: 27px 28px;
  background: #fff;
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius);
  box-shadow: none;
}

.home-contacts-card {
  display: flex;
  align-items: center;
  gap: 27px;
}

.home-contacts-art {
  position: relative;
  width: 202px;
  height: 153px;
  flex: 0 0 202px;
}

.home-contacts-art span {
  position: absolute;
  display: block;
}

.art-note {
  width: 32px;
  height: 27px;
  background: #fff7df;
  border: 1px solid #dcdac5;
  border-radius: 6px;
}

.art-note::after {
  position: absolute;
  right: 4px;
  bottom: -7px;
  width: 9px;
  height: 9px;
  background: inherit;
  border-right: 1px solid #dcdac5;
  border-bottom: 1px solid #dcdac5;
  content: "";
  transform: rotate(45deg);
}

.art-note-one {
  top: 17px;
  left: 11px;
}

.art-note-two {
  top: 68px;
  left: 120px;
  background: #eaf7e5;
  border-color: #9fd19a;
  transform: rotate(9deg);
}

.art-board {
  right: 17px;
  bottom: 25px;
  width: 86px;
  height: 67px;
  background: #cfeec5;
  border: 1px solid #94c68c;
  border-radius: 3px;
  transform: rotate(-45deg);
}

.art-board::before,
.art-board::after {
  position: absolute;
  width: 53px;
  height: 1px;
  background: #8abd83;
  content: "";
  transform: rotate(45deg);
}

.art-board::before {
  top: 21px;
  left: 11px;
}

.art-board::after {
  top: 39px;
  left: 20px;
}

.art-person {
  bottom: 12px;
  width: 46px;
  height: 45px;
  background: #159466;
  border-radius: 50% 50% 12px 12px;
}

.art-person::before {
  position: absolute;
  top: -22px;
  left: 10px;
  width: 26px;
  height: 26px;
  background: #159466;
  border-radius: 50%;
  content: "";
}

.art-person-back {
  left: 37px;
  bottom: 21px;
  width: 36px;
  height: 34px;
  background: #c2e6b8;
}

.art-person-back::before {
  background: #c2e6b8;
}

.art-person-front {
  left: 62px;
  z-index: 2;
}

.art-spark {
  width: 8px;
  height: 8px;
  background: #189766;
  transform: rotate(45deg);
}

.art-spark-one {
  top: 7px;
  right: 28px;
}

.art-spark-two {
  bottom: 31px;
  left: 10px;
  background: #c28c31;
}

.home-card-copy {
  min-width: 0;
  max-width: 380px;
}

.home-card-copy h2 {
  max-width: 300px;
  font-size: 15px;
}

.page-heading h1,
.auth-card h1,
.error-screen h1,
.drawer-identity h2,
.modal-header h2,
.panel-heading h2,
.metric-card strong,
.pipeline-step strong,
.student-score strong,
.structure-card b {
  font-family: var(--heading-font);
}

.home-card-copy > p:not(.home-kicker) {
  margin: 11px 0 17px;
  color: #7d867f;
  font-size: 11px;
  line-height: 1.5;
}

.home-dark-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #fff;
  background: #303532;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.home-dark-button .icon {
  width: 13px;
  height: 13px;
}

.home-card-heading {
  margin-bottom: 16px;
}

.home-more-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #69736c;
  background: transparent;
  border-radius: 7px;
}

.home-more-button:hover {
  color: var(--ng-green);
  background: #f1fbf0;
}

.home-more-button .icon {
  width: 15px;
  height: 15px;
}

.home-usage-row {
  display: grid;
  grid-template-columns: minmax(132px, .9fr) minmax(120px, 1.3fr) 25px;
  gap: 12px;
  align-items: center;
  padding: 10px 0 12px;
  border-bottom: 1px solid #f0f1ef;
}

.home-usage-label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.home-usage-label strong {
  color: #303631;
  font-size: 10px;
}

.home-usage-label span {
  overflow: hidden;
  color: #9aa09b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-usage-progress {
  height: 7px;
  overflow: hidden;
  background: #eff1ef;
  border-radius: 99px;
}

.home-usage-progress i {
  display: block;
  height: 100%;
  min-width: 4px;
  background: #d9dcd9;
  border-radius: inherit;
}

.home-usage-row:nth-of-type(3) .home-usage-progress i {
  background: #b8cdbb;
}

.home-usage-row:nth-of-type(4) .home-usage-progress i {
  background: #d4d6d4;
}

.home-usage-action {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ng-purple);
  background: transparent;
  border: 1px solid #8576d1;
  border-radius: 50%;
}

.home-usage-action:hover {
  color: #fff;
  background: var(--ng-purple);
}

.home-usage-action .icon {
  width: 11px;
  height: 11px;
}

.home-usage-link {
  margin-top: 17px;
  font-size: 10px;
}

.theme-page > .page-heading,
.theme-page > .local-tabs {
  display: none;
}

.theme-page .brevo-home + * {
  display: none;
}

.theme-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 11px 14px;
  color: #fff;
  background: #29312c;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(24, 45, 31, .18);
  font-size: 11px;
  animation: ng-toast-in 180ms ease-out both;
}

@keyframes ng-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1260px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .main {
    padding-inline: 27px;
  }

  .home-setup {
    padding-inline: 20px;
  }

  .home-setup-track {
    gap: 12px;
  }

  .home-setup-art {
    width: 68px;
    flex-basis: 68px;
  }

  .home-setup-art span {
    font-size: 82px;
  }

  .home-card-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  }

  .home-contacts-art {
    width: 160px;
    flex-basis: 160px;
    transform: scale(.85);
    transform-origin: left center;
  }
}

@media (max-width: 1060px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: 270px;
    z-index: 20;
    box-shadow: 18px 0 40px rgba(31, 63, 41, .16);
  }

  .app-shell.nav-open .sidebar {
    display: flex;
  }

  .app-shell.nav-open .mobile-backdrop {
    position: fixed;
    z-index: 19;
    inset: 0;
    display: block;
    background: rgba(29, 52, 35, .27);
  }

  .menu-button {
    display: inline-grid !important;
  }

  .topbar {
    justify-content: flex-start;
    padding-inline: 18px;
  }

  .top-brand {
    display: flex !important;
  }

  .top-brand .brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--ng-green);
    border-radius: 9px;
    font-size: 11px;
  }

  .top-brand .brand-copy strong {
    color: var(--ng-green);
    font-size: 14px;
    letter-spacing: -.04em;
    text-transform: none;
  }

  .top-brand .brand-copy small {
    display: none;
  }

  .top-utilities {
    display: none;
  }

  .home-hero {
    grid-template-columns: minmax(280px, .35fr) minmax(0, .65fr);
  }
}

@media (max-width: 760px) {
  .mode-strip {
    padding-inline: 14px;
  }

  .mode-strip > span:nth-child(3) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar {
    min-height: 62px;
    padding-inline: 14px;
  }

  .top-actions {
    margin-left: auto;
  }

  .profile-copy,
  .profile-trigger > .icon {
    display: none;
  }

  .profile-trigger {
    padding-right: 0;
  }

  .main {
    padding: 0 14px 45px;
  }

  .home-heading {
    display: block;
    margin-top: 21px;
  }

  .home-heading-actions {
    justify-content: space-between;
    margin-top: 16px;
  }

  .home-hero {
    display: block;
  }

  .home-calendar {
    min-height: 226px;
  }

  .home-setup {
    border-top: 1px solid #f0efe5;
    border-left: 0;
  }

  .home-setup-track {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .home-setup-step:nth-child(2) {
    display: none;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .home-contacts-card {
    align-items: flex-start;
    gap: 11px;
  }

  .home-contacts-art {
    width: 119px;
    flex-basis: 119px;
    transform: scale(.64);
    transform-origin: top left;
  }
}

@media (max-width: 430px) {
  .home-heading h1 {
    font-size: 20px;
  }

  .home-heading-actions {
    gap: 11px;
  }

  .home-link,
  .home-settings {
    font-size: 10px;
  }

  .home-card-copy h2 {
    font-size: 14px;
  }

  .home-usage-row {
    grid-template-columns: minmax(112px, .9fr) minmax(80px, 1fr) 23px;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toast {
    animation: none;
  }
}
