@font-face {
  font-family: "Bootstrap Icons";
  src: url("/assets/bootstrap-icons.woff2") format("woff2");
  font-display: block;
}
:root {
  font:
    15px/1.5 Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
  color: #17273d;
  background: #f5f7fb;
  --accent: #173fa9;
  --muted: #566881;
  --border: #dce3ee;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4286ef;
  outline-offset: 3px;
}
.icon {
  font-family: "Bootstrap Icons";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 14px;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.workspace {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.sidebar-head {
  padding: 23px 19px 21px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #152c50;
}
.brand img {
  display: block;
  width: 80px;
  height: auto;
}
.brand span {
  font-size: 15px;
  line-height: 1.26;
  letter-spacing: -0.025em;
  font-weight: 700;
  padding-left: 12px;
  border-left: 1px solid #ccd6e6;
}
.sidebar-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 13px;
}
.nav-group + .nav-group {
  margin-top: 23px;
}
.nav-group h2 {
  font-size: 10px;
  margin: 0 0 7px 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #5c6e85;
}
.nav-group a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  border-radius: 8px;
  color: #384b64;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.nav-group a + a {
  margin-top: 2px;
}
.nav-group .icon {
  font-size: 16px;
}
.nav-group a:hover {
  background: #f2f5fb;
}
.nav-group a[aria-current="page"] {
  background: #e9f0ff;
  color: #123c9c;
  font-weight: 700;
}
.account {
  margin: 0 15px;
  padding: 17px 1px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  background: #e6edfc;
  color: #224ba5;
  font-size: 13px;
  font-weight: 740;
  border-radius: 50%;
}
.account-text {
  flex: 1;
  min-width: 0;
}
.account-text strong,
.account-text small {
  display: block;
  overflow-wrap: anywhere;
}
.account-text strong {
  font-size: 13px;
  line-height: 1.35;
}
.account-text small {
  color: var(--muted);
  font-size: 11px;
}
.account form {
  margin: 0;
}
.sign-out,
.menu-toggle {
  background: transparent;
  color: #485d77;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.sign-out {
  padding: 9px;
  font-size: 17px;
}
.sign-out:hover,
.menu-toggle:hover {
  background: #edf2fa;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  padding: 8px 10px;
}
main {
  min-width: 0;
  width: 100%;
  max-width: 1530px;
  margin: 0 auto;
  padding: clamp(26px, 3.5vw, 58px) clamp(20px, 3.6vw, 64px) 50px;
}
main:focus {
  outline: 0;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
h1,
h2,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(28px, 3.1vw, 43px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0;
}
h2 {
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.today {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
section,
.scroll {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 21px;
  margin: 14px 0;
}
button,
.button {
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 9px 15px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
input,
select,
textarea {
  display: block;
  padding: 8px 10px;
  border: 1px solid #aebbcf;
  border-radius: 6px;
  font: inherit;
  width: min(100%, 620px);
  background: white;
  color: inherit;
}
label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}
label.tick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 14px 8px 0;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
fieldset {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 12px 0;
}
.inline,
td form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.inline label {
  margin: 0;
}
.scroll {
  padding: 0;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  background: #f8faff;
  font-size: 13px;
}
small,
footer,
.empty {
  color: var(--muted);
}
footer {
  padding: 10px;
}
article.bubble {
  width: fit-content;
  max-width: 85%;
  background: #f0f3f8;
  margin: 9px 0;
  padding: 8px 14px;
  border-radius: 10px;
}
article.out {
  margin-left: auto;
  background: #e5edff;
}
.bubble p,
.copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble p {
  margin: 3px 0;
}
code {
  overflow-wrap: anywhere;
}
p[role="status"] {
  padding: 10px 15px;
  border-left: 3px solid #398165;
  background: #e7f4ed;
}
.public-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px clamp(16px, 5vw, 70px);
}
.public-page main {
  max-width: 620px;
  padding-top: clamp(36px, 8vw, 100px);
}
.public-page section {
  padding: 24px;
}
.public-page section p {
  margin: 0 0 20px;
}
.public-page .button {
  display: inline-block;
}

.dashboard-top,
.dashboard-detail {
  display: grid;
  gap: 18px;
  align-items: stretch;
}
.dashboard-top {
  grid-template-columns: minmax(250px, 0.93fr) minmax(340px, 1.45fr);
}
.audience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  margin: 0;
  border: 0;
  color: white;
  background: linear-gradient(116deg, #173d85, #102b64);
}
.audience::before {
  content: "";
  pointer-events: none;
  z-index: -1;
  position: absolute;
  top: -110px;
  right: -140px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 24px,
    rgba(177, 203, 255, 0.11) 24px 25px,
    transparent 25px 42px
  );
}
.audience-heading,
.panel-heading,
.meter-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.audience h2 {
  margin: 0;
  font-size: 16px;
  color: #edf4ff;
}
.audience-heading a {
  display: grid;
  place-items: center;
  color: white;
  background: #ffffff14;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-decoration: none;
}
.audience-total,
.metric-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.065em;
}
.audience-total {
  font-size: clamp(48px, 4.7vw, 72px);
  line-height: 1.05;
  margin-top: 20px;
  font-weight: 650;
}
.audience-caption {
  color: #d5e4ff;
  font-size: 13px;
}
.audience-breakdown {
  margin-top: auto;
  padding-top: 24px;
}
.meter-caption {
  font-size: 12px;
  color: #e9f1ff;
}
.audience meter {
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;
  margin: 8px 0 10px;
  border: 0;
  border-radius: 6px;
  background: #526c98;
}
.audience meter::-webkit-meter-bar {
  height: 7px;
  border: 0;
  background: #526c98;
  border-radius: 6px;
}
.audience meter::-webkit-meter-optimum-value {
  background: #8cdbc6;
  border-radius: 6px;
}
.audience meter::-moz-meter-bar {
  background: #8cdbc6;
  border-radius: 6px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  color: #dce9ff;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8cdbc6;
}
.legend span + span i {
  background: #aec0dc;
}
.legend b {
  color: white;
  font-weight: 600;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 5px 8px;
  min-height: 110px;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  text-decoration: none;
  color: inherit;
}
.metric:hover {
  border-color: #99b3dd;
}
.metric-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.metric-icon.blue {
  background: #e9f0fd;
  color: #305db3;
}
.metric-icon.violet {
  background: #f0eafb;
  color: #7851a6;
}
.metric-icon.teal {
  background: #e0f3ee;
  color: #277365;
}
.metric-icon.amber {
  background: #fcf1d9;
  color: #95630c;
}
.metric-label {
  font-weight: 560;
  font-size: 13px;
  color: #54647b;
}
.metric-value {
  font-size: 36px;
  line-height: 1.08;
  align-self: end;
  font-weight: 620;
}
.dashboard-detail {
  margin-top: 20px;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
}
.dash-panel {
  margin: 0;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  padding: 18px 21px;
  border-bottom: 1px solid #e9edf4;
}
.panel-heading h2 {
  margin: 0;
  font-size: 16px;
}
.panel-heading a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.empty-shares {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 165px;
  padding: 22px;
  color: var(--muted);
}
.empty-shares > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: #f4f7fc;
  color: #687fa3;
  font-size: 20px;
}
.empty-shares p {
  margin: 10px 0 0;
  font-size: 14px;
}
.report-table {
  overflow: auto;
}
.report-table small {
  white-space: nowrap;
  display: block;
}
.status-list {
  padding: 0 21px;
  margin: 0;
}
.status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e9edf4;
  padding: 14px 0;
}
.status-list > div:last-child {
  border: 0;
}
.status-list dt {
  font-size: 13px;
}
.status-list .icon {
  margin-right: 8px;
  color: #627ca4;
}
.status-list dt small {
  display: block;
  margin-left: 21px;
  font-size: 11px;
}
.status-list dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 650;
  color: #40546e;
}
@media (min-width: 1500px) {
  .dashboard-top,
  .dashboard-detail {
    gap: 22px;
  }
  .metric {
    min-height: 128px;
  }
}
@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  .sidebar-head {
    padding-inline: 14px;
  }
  .dashboard-top {
    grid-template-columns: minmax(216px, 1fr) minmax(275px, 1.4fr);
  }
  .metric {
    padding: 14px;
  }
  .audience {
    padding: 19px;
  }
  .dashboard-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(235px, 1fr);
  }
}
@media (max-width: 800px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-head {
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
  }
  .brand img {
    width: 61px;
  }
  .brand span {
    font-size: 13px;
  }
  .nav-ready .menu-toggle {
    display: inline-flex;
  }
  .nav-ready .sidebar-body:not(.menu-open) {
    display: none;
  }
  .sidebar nav {
    padding: 10px 14px 18px;
  }
  .nav-group + .nav-group {
    margin-top: 12px;
  }
  main {
    padding: 23px 18px 36px;
  }
}
@media (max-width: 600px) {
  .dashboard-top,
  .dashboard-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dashboard-detail {
    margin-top: 12px;
  }
  .page-title {
    align-items: start;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-bottom: 16px;
  }
  .today {
    align-self: center;
    font-size: 12px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    min-height: 103px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .audience-breakdown {
    padding-top: 15px;
  }
  .audience-total {
    margin-top: 13px;
  }
  td,
  th {
    padding: 8px;
  }
}
@media (max-width: 360px) {
  .metric {
    grid-template-columns: 1fr;
  }
  .metric-icon {
    display: none;
  }
}
