:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #171923;
  background: #f4f5f8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
a {
  color: #3459d6;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 0;
  background: #3459d6;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 650;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #2749be;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #e9edfa;
  color: #2948ab;
}
.danger {
  background: #fff0ee;
  color: #b42318;
}
input,
select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #c7cad4;
  border-radius: 9px;
  background: white;
  color: #171923;
}
input:focus,
select:focus {
  outline: 3px solid #3459d633;
  border-color: #3459d6;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: #697184;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #151b2b;
  color: #d2d7e4;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar .logo {
  width: 170px;
}
.sidebar .product {
  font-size: 14px;
  margin-top: 10px;
  color: #b3bed4;
}
.sidebar label {
  color: #b3bed4;
  font-size: 12px;
}
.sidebar select {
  margin-top: 4px;
  font-size: 14px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a {
  color: #b9c3d8;
  padding: 13px 15px;
  border-radius: 9px;
  font-weight: 550;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: #2c3f6a;
  color: white;
}
.sidebar footer {
  margin-top: auto;
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.sidebar footer button {
  margin-top: 12px;
  width: 100%;
}
.workspace {
  padding: 36px 42px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  color: #68748b;
  font-size: 13px;
  margin: 0 0 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card {
  background: #fff;
  border: 1px solid #e1e5ee;
  border-radius: 15px;
  padding: 24px;
  margin-bottom: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 22px;
  border-radius: 14px;
  background: white;
  border: 1px solid #e1e5ee;
}
.stat strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1px;
  margin-top: 8px;
}
.stat.primary {
  background: #3459d6;
  color: white;
  border-color: #3459d6;
}
.stat small {
  color: inherit;
  opacity: 0.8;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.event-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.event-card .numbers {
  display: flex;
  gap: 26px;
  margin: 7px 0;
}
.event-card .numbers strong {
  font-size: 27px;
  display: block;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.pill {
  font-size: 12px;
  background: #e8f5ed;
  color: #216b3e;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.pill.closed {
  background: #eef0f5;
  color: #697184;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.stack {
  display: grid;
  gap: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: top;
}
th {
  font-weight: 600;
  color: #697184;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
td small {
  display: block;
  margin-top: 4px;
}
.empty {
  padding: 34px;
  text-align: center;
  color: #697184;
}
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  background: #eef2ff;
  color: #2948ab;
  margin-bottom: 20px;
}
.notice.error {
  background: #fff0ee;
  color: #b42318;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 28px;
  width: min(650px, calc(100% - 24px));
  max-height: 90vh;
  box-shadow: 0 20px 90px #17233c44;
}
dialog::backdrop {
  background: #111a3380;
}
dialog h2 {
  margin-right: 30px;
}
.dialog-close {
  float: right;
  padding: 5px 10px;
  background: #edf0f5;
  color: #333;
}
.refresh {
  font-size: 12px;
  color: #697184;
}
.auth {
  background: #ececec;
  color: #080909;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 42px 20px 0;
}
.auth-brand img {
  width: 280px;
  max-width: 75vw;
  height: auto;
}
.auth-brand div {
  font-size: 18px;
  color: #52525b;
  font-weight: 500;
}
.auth main {
  max-width: 580px;
  margin: 0 auto;
  padding: 38px 20px 0;
}
.login {
  padding: 52px 54px 38px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 18px 65px #00000008;
}
.login h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 42px;
}
.login form.stack {
  gap: 22px;
}
.login input {
  height: 60px;
  border: 1px solid #828491;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 17px;
}
.login input::placeholder {
  color: #999;
}
.login button {
  min-height: 60px;
  border-radius: 999px;
  font-size: 19px;
}
.forgot-password {
  text-align: right;
  font-size: 16px;
  font-weight: 600;
}
.login [role="alert"] {
  color: #b42318;
  margin: 0;
}
.login #intro {
  color: #555;
  text-align: center;
  margin-bottom: 24px;
}
.auth-footer {
  text-align: center;
  color: #90919b;
  font-size: 13px;
  padding: 24px 16px 32px;
}
.client-profile {
  color: #697184;
  line-height: 1.8;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7896f7;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .workspace {
    padding: 28px 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 30px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px;
    gap: 14px;
  }
  .sidebar .logo {
    width: 140px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar nav a {
    padding: 10px;
    white-space: nowrap;
  }
  .sidebar footer {
    display: none;
  }
  .sidebar label {
    max-width: 360px;
  }
  .workspace {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .stat strong {
    margin: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  h1 {
    font-size: 26px;
  }
  .auth-brand {
    padding-top: 32px;
  }
  .auth-brand img {
    width: 240px;
  }
  .auth main {
    padding: 30px 16px 0;
  }
  .login {
    padding: 36px 24px 30px;
  }
  .login h1 {
    font-size: 27px;
    margin-bottom: 32px;
  }
  .login input {
    font-size: 16px;
    padding: 0 20px;
  }
}

#mobileLogout {
  display: none;
}
@media (max-width: 700px) {
  #mobileLogout {
    display: inline-block;
  }
}
