

@font-face {
  font-display: swap;
  font-family: "Proba Pro";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/ProbaPro-Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Proba Pro";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/ProbaPro-Medium.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Proba Pro";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/ProbaPro-Bold.ttf") format("truetype");
}

:root {
  --background: #f7faff;
  --surface: #ffffff;
  --surface-strong: #fbfbfd;
  --foreground: #111114;
  --muted: #676b74;
  --line: #ccd4de;
  --line-soft: #e3e9f5;
  --academic-blue: #062159;
  --pale-blue: #dee8ff;
  --cobalt: #0d52bf;
  --blue: #0d52bf;
  --green: #34c759;
  --amber: #ff9f0a;
  --red: #ff3b30;
  --shadow: 0 18px 70px rgba(6, 33, 89, 0.1);
}



* {
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family:
    "Proba Pro", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  margin: 0 auto;
  max-width: 1440px;
  padding: 18px clamp(18px, 4vw, 56px) 56px;
}

.top-bar {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(247, 250, 255, 0.86);
  border: 1px solid rgba(204, 212, 222, 0.78);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  min-width: 0;
  padding: 10px;
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand-lockup,
.top-actions,
.source-status,
.donut-layout,
.bar-meta,
.content-heading,
.panel-heading {
  align-items: center;
  display: flex;
}

.brand-lockup {
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--pale-blue);
  border-radius: 8px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.brand-mark-image {
  display: block;
  height: 31px;
  object-fit: contain;
  width: 31px;
}

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

.brand-lockup strong {
  font-size: 15px;
}

.brand-lockup small,
.muted,
.freshness,
.field small,
.balance-panel small,
.source-status,
.note {
  color: var(--muted);
}

.brand-lockup small {
  font-size: 13px;
  margin-top: 2px;
}

.top-actions {
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.quiet-button,
.source-link,
.text-button,
.section-tabs button,
.segmented-control button {
  border: 0;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.quiet-button,
.source-link {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: 14px;
  font-weight: 650;
  padding: 11px 14px;
  white-space: nowrap;
}

.source-link {
  background: var(--academic-blue);
  color: #ffffff;
}

.quiet-button:hover,
.source-link:hover,
.section-tabs button:hover,
.segmented-control button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.overview-band {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  margin-top: 26px;
}

.overview-copy,
.balance-panel,
.metric-card,
.filters-panel,
.content-panel,
.analytics-card,
.empty-state {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.overview-copy {
  background:
    linear-gradient(90deg, rgba(3, 18, 46, 0.88), rgba(13, 82, 191, 0.55)),
    url("library-roof.jpg");
  background-position: center 48%;
  background-size: cover;
  color: #ffffff;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.overview-copy .eyebrow {
  color: #86bfff;
}

.overview-copy h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  margin: 0;
  max-width: 900px;
}

.overview-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 760px;
}

.overview-copy .source-status {
  color: rgba(255, 255, 255, 0.84);
}

.source-status {
  gap: 9px;
  margin-top: 28px;
}

.status-dot {
  background: var(--amber);
  border-radius: 99px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.status-dot.live {
  background: var(--green);
}

.balance-panel {
  background:
    linear-gradient(180deg, rgba(3, 18, 46, 0.18), rgba(3, 18, 46, 0.86)),
    linear-gradient(90deg, rgba(6, 33, 89, 0.48), rgba(13, 82, 191, 0.18)),
    url("old-academic-building.jpg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 280px;
  padding: 28px;
}

.balance-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.balance-panel small {
  color: rgba(255, 255, 255, 0.78);
}

.balance-panel strong {
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1;
  margin-top: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.money-value {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.24em;
  line-height: 0.98;
}

.money-currency {
  color: inherit;
}

.progress-track,
.bar-track {
  background: rgba(232, 236, 246, 0.86);
  border-radius: 99px;
  overflow: hidden;
}

.progress-track {
  height: 12px;
  margin: 26px 0 12px;
}

.progress-track span {
  background: linear-gradient(90deg, var(--green), var(--amber));
  display: block;
  height: 100%;
  min-width: 2px;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.metric-card {
  box-shadow: none;
  min-width: 0;
  min-height: 120px;
  padding: 22px;
}

.metric-label {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  font-size: clamp(24px, 2.55vw, 32px);
  line-height: 1.08;
  margin-top: 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-tabs {
  background: #e7edf8;
  border-radius: 8px;
  display: inline-grid;
  flex: 0 1 360px;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding: 4px;
  width: min(360px, 100%);
}

@media (min-width: 901px) {
  .section-tabs {
    left: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.section-tabs button,
.segmented-control button {
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 16px;
}

.section-tabs button.active,
.segmented-control button.active {
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(6, 33, 89, 0.1);
  color: var(--foreground);
}

.workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.filters-panel,
.content-panel {
  box-shadow: none;
}

.filters-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  position: sticky;
  top: 86px;
}

.panel-heading,
.content-heading {
  gap: 14px;
  justify-content: space-between;
}

.panel-heading h2,
.content-heading h2,
.analytics-card h3,
.empty-state h3 {
  margin: 0;
}

.text-button {
  background: transparent;
  color: var(--blue);
  font-weight: 750;
  padding: 0;
}

.field,
.segmented-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span,
.segmented-field > span {
  color: #3d414a;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select {
  appearance: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--foreground);
  min-height: 43px;
  min-width: 0;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.field input[type="range"] {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 28px;
  padding: 0;
}

.field input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(180deg, #f8fbff, #edf3ff);
  border: 1px solid #c9d5e8;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(6, 33, 89, 0.12);
  height: 10px;
}

.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--blue);
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(6, 33, 89, 0.22);
  height: 24px;
  margin-top: -8px;
  width: 24px;
}

.field input[type="range"]::-moz-range-track {
  background: linear-gradient(180deg, #f8fbff, #edf3ff);
  border: 1px solid #c9d5e8;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(6, 33, 89, 0.12);
  height: 10px;
}

.field input[type="range"]::-moz-range-thumb {
  background: var(--blue);
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(6, 33, 89, 0.22);
  height: 18px;
  width: 18px;
}

.field input[type="range"]:focus {
  outline: none;
}

.field input[type="range"]:focus::-webkit-slider-runnable-track {
  border-color: var(--blue);
  box-shadow:
    inset 0 1px 2px rgba(6, 33, 89, 0.12),
    0 0 0 4px rgba(13, 82, 191, 0.12);
}

.field input[type="range"]:focus::-moz-range-track {
  border-color: var(--blue);
  box-shadow:
    inset 0 1px 2px rgba(6, 33, 89, 0.12),
    0 0 0 4px rgba(13, 82, 191, 0.12);
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.segmented-control {
  background: #eeeef3;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  min-width: 0;
  padding: 4px;
  width: 100%;
}

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

.content-panel {
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.content-heading {
  margin-bottom: 18px;
}

.content-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.freshness {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.analytics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.analytics-card {
  box-shadow: none;
  min-height: 260px;
  padding: 18px;
}

.analytics-card h3 {
  font-size: 17px;
}

.donut-layout {
  gap: 18px;
  margin-top: 22px;
}

.donut {
  border-radius: 999px;
  flex: 0 0 132px;
  height: 132px;
  position: relative;
  width: 132px;
}

.donut::after {
  background: var(--surface);
  border-radius: inherit;
  content: "";
  inset: 31px;
  position: absolute;
}

.legend {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.legend > span {
  align-items: center;
  color: #3d414a;
  display: flex;
  font-size: 13px;
  gap: 8px;
}

.legend-label {
  min-width: 0;
}

.legend i {
  border-radius: 99px;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.bar-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-meta {
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.bar-label {
  color: #30343c;
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  font-weight: 400;
  gap: 7px;
  overflow: hidden;
}

.bar-label-main {
  font-weight: 400;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-label-detail {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.bar-meta.plain-labels .bar-label-main {
  font-weight: 400;
}

.bar-meta strong {
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
}

.bar-track span {
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 3px;
}

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fafafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

td {
  color: #242832;
  font-size: 14px;
}

.document-link {
  color: var(--blue);
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  font-weight: 400;
  max-width: 360px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.document-link-icon {
  font-size: 12px;
  line-height: 1;
}

.document-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  font-size: 13px;
  line-height: 1.65;
  margin: 18px 0 0;
  white-space: pre-line;
}

.note-info {
  background: rgba(248, 251, 255, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 14px 16px;
}

.empty-state {
  align-items: center;
  box-shadow: none;
  display: grid;
  justify-items: center;
  min-height: 360px;
  padding: 36px;
  text-align: center;
}

.empty-state span {
  background: #111114;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 12px;
}

.empty-state h3 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin-top: 18px;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 560px;
}

@media (max-width: 1100px) {
  .overview-band,
  .workspace,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 12px 12px 34px;
  }

  .top-bar,
  .top-actions,
  .content-heading,
  .panel-heading {
    align-items: stretch;
  }

  .top-bar,
  .content-heading {
    flex-direction: column;
  }

  .top-actions,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions {
    display: grid;
    margin-left: 0;
    width: 100%;
  }

  .section-tabs {
    flex: 0 0 auto;
    margin: 0;
    position: static;
    transform: none;
    width: 100%;
  }

  .segmented-control button {
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
    padding-inline: 8px;
    text-overflow: ellipsis;
  }

  .overview-copy,
  .balance-panel {
    padding: 22px;
  }

  .overview-copy h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .metric-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .content-panel {
    order: 1;
  }

  .filters-panel {
    order: 2;
  }

  .metric-card {
    min-height: 96px;
  }

  .freshness {
    text-align: left;
  }

  .analytics-grid {
    gap: 10px;
  }

  .analytics-card {
    min-height: auto;
    padding: 14px;
  }

  .analytics-card h3 {
    font-size: 16px;
  }

  .bar-list,
  .donut-layout {
    margin-top: 16px;
  }

  .bar-list {
    gap: 12px;
  }

  .donut-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .donut {
    flex-basis: auto;
    height: 112px;
    width: 112px;
  }

  .donut::after {
    inset: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
