@font-face {
  font-family:Plex;
  src:url('/assets/ibm-plex-sans-var-latin.woff2') format('woff2');
  font-weight:100 700;
  font-display:swap;
}

@font-face {
  font-family:Plex;
  src:url('/assets/ibm-plex-sans-var-latin-ext.woff2') format('woff2');
  font-weight:100 700;
  font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  color-scheme:light;
  --bg:#f8f7f4;
  --surface:#fffefa;
  --ink:#262723;
  --muted:#6e7068;
  --line:#e4e4db;
  --soft:#f0f0e9;
  --accent:#d55122;
  --accent-soft:#fcf0e8;
  --green:#387257;
  --green-soft:#edf4ed;
  --shadow:0 3px 16px #26272303;
}

html[data-theme=dark] {
  color-scheme:dark;
  --bg:#1c1e1d;
  --surface:#232624;
  --ink:#eceee7;
  --muted:#a5ada2;
  --line:#383e37;
  --soft:#2b302b;
  --accent:#f18b5f;
  --accent-soft:#392b24;
  --green:#a6cfac;
  --green-soft:#2a372d;
  --shadow:none;
}

@media(prefers-color-scheme:dark) {
  html:not([data-theme=light]) {
    color-scheme:dark;
    --bg:#1c1e1d;
    --surface:#232624;
    --ink:#eceee7;
    --muted:#a5ada2;
    --line:#383e37;
    --soft:#2b302b;
    --accent:#f18b5f;
    --accent-soft:#392b24;
    --green:#a6cfac;
    --green-soft:#2a372d;
    --shadow:none;
  }
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:15px/1.5 Plex,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}

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

button,select {
  font:inherit;
  color:inherit;
}

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

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
}

a:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}

::selection {
  background:var(--accent-soft);
}

.skip {
  position:absolute;
  top:-100px;
  left:20px;
  background:var(--surface);
  padding:12px;
  z-index:5;
}

.skip:focus {
  top:12px;
}

.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;
}

.topbar {
  height:88px;
  padding:0 max(32px,calc((100vw - 1200px)/2));
  display:flex;
  align-items:center;
  gap:28px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:31px;
  font-weight:650;
  letter-spacing:-1.8px;
  line-height:1;
}

.brand:hover {
  text-decoration:none;
}

.brand-i {
  position:relative;
}

.brand-i>span {
  position:absolute;
  top:.19em;
  left:.035em;
  background:var(--accent);
  width:.15em;
  height:.15em;
  border-radius:50%;
}

.product-label {
  font-size:13px;
  color:var(--muted);
  padding-left:28px;
  border-left:1px solid var(--line);
}

.account-tools {
  display:flex;
  align-items:center;
  gap:22px;
  margin-left:auto;
  font-size:13px;
}

.login {
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.theme-toggle {
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:0;
  background:none;
  padding:8px 0;
  color:var(--muted);
  font-size:13px;
}

.topbar>.theme-toggle {
  margin-left:auto;
}

.text-button {
  background:none;
  border:0;
  padding:8px 0;
  color:var(--muted);
  font-size:13px;
}

.text-button:hover,.theme-toggle:hover {
  color:var(--ink);
}

.dark {
  display:none;
}

html[data-theme=dark] .dark {
  display:block;
}

html[data-theme=dark] .light {
  display:none;
}

@media(prefers-color-scheme:dark) {
  html:not([data-theme=light]) .dark {
    display:block;
  }
  html:not([data-theme=light]) .light {
    display:none;
  }
}

main {
  max-width:1200px;
  padding:56px 0 16px;
  margin:auto;
}

main:focus {
  outline:none;
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  margin-bottom:38px;
}

.eyebrow {
  font-size:11px;
  letter-spacing:1.8px;
  font-weight:600;
  color:var(--muted);
  margin:0 0 10px;
}

h1 {
  font-size:46px;
  font-weight:500;
  line-height:1.1;
  letter-spacing:-1.6px;
  margin:0 0 14px;
}

.accent {
  color:var(--accent);
}

.select-group {
  display:flex;
  gap:8px;
}

.filterbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:22px;
}

.filters {
  display:flex;
  gap:8px;
  align-items:center;
}

.activity-filters {
  flex-wrap:wrap;
  min-width:0;
}

.activity-filters select {
  min-width:0;
}

select {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:7px;
  padding:8px 32px 8px 12px;
  max-width:260px;
  font-size:13px;
  min-height:38px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:7px;
  font-size:13px;
  font-weight:500;
  line-height:1.4;
  min-height:38px;
  white-space:nowrap;
}

.button:hover {
  text-decoration:none;
  background:var(--soft);
}

.secondary {
  background:var(--surface);
}

.primary {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  padding:13px 20px;
  font-size:15px;
}

.primary:hover {
  filter:brightness(.93);
  background:var(--accent);
}

.metrics {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:28px;
}

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

.metric {
  padding:27px 28px 24px;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:12px;
  box-shadow:var(--shadow);
}

.metric-label {
  font-size:14px;
  font-weight:500;
}

.metric-description {
  color:var(--muted);
  font-size:13px;
}

.metric-value {
  display:block;
  font-size:52px;
  font-weight:450;
  letter-spacing:-2px;
  line-height:1.1;
  margin:16px 0 12px;
  font-variant-numeric:tabular-nums;
}

.panel {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:var(--shadow);
  margin-bottom:26px;
  overflow:hidden;
}

.panel-heading {
  padding:25px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

h2 {
  font-size:18px;
  font-weight:550;
  letter-spacing:-.3px;
  margin:0;
}

.date-range {
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.chart {
  display:flex;
  margin:0 28px 12px;
  height:198px;
  gap:18px;
}

.chart-scale {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:20px 0 30px;
  font-size:11px;
  color:var(--muted);
  min-width:18px;
}

.chart-columns {
  display:flex;
  flex:1;
  gap:clamp(8px,3vw,40px);
  border-bottom:1px solid var(--line);
  background:repeating-linear-gradient(to top,transparent,transparent 46px,var(--line) 47px,transparent 48px);
  padding:0 20px 0;
  min-width:0;
  position:relative;
  margin-bottom:29px;
}

.chart-column {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
  max-width:160px;
  margin:auto;
}

.chart-column svg {
  height:140px;
  width:100%;
  max-width:82px;
  overflow:visible;
  fill:var(--accent);
  opacity:.85;
}

.chart-column:hover svg {
  opacity:1;
}

.bar-value {
  font-size:12px;
  font-weight:500;
  height:26px;
  font-variant-numeric:tabular-nums;
}

.bar-label {
  font-size:11px;
  color:var(--muted);
  height:29px;
  padding-top:10px;
  white-space:nowrap;
}

.chart-data {
  margin:0 28px;
  font-size:12px;
  color:var(--muted);
}

summary {
  cursor:pointer;
  width:fit-content;
}

.chart-data table {
  width:100%;
  max-width:400px;
  margin-top:10px;
}

.chart-data th,.chart-data td {
  padding:5px;
  text-align:left;
}

.review-table {
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
}

.review-table th {
  text-align:left;
  font-weight:500;
  font-size:11px;
  letter-spacing:.3px;
  color:var(--muted);
  padding:12px 28px;
  background:var(--bg);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.review-table td {
  padding:19px 28px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}

.review-table tr:last-child td {
  border-bottom:0;
}

.review-table tbody tr:hover {
  background:var(--bg);
}

.pr-link {
  display:flex;
  align-items:center;
  gap:13px;
}

.pr-link>svg {
  color:var(--muted);
  flex-shrink:0;
}

.pr-link strong {
  font-weight:550;
  font-size:14px;
}

.pr-link small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:4px;
}

.pr-number {
  color:var(--muted);
  font-weight:400;
  margin-left:4px;
}

.status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--green);
  background:var(--green-soft);
  font-size:11px;
  border-radius:5px;
  padding:4px 8px;
  white-space:nowrap;
}

time {
  color:var(--muted);
  white-space:nowrap;
  font-size:12px;
}

.review-link {
  font-size:12px;
  white-space:nowrap;
}

.review-link span {
  color:var(--accent);
  margin-left:8px;
}

.pagination {
  padding:17px 28px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:15px;
}

.pagination>div {
  display:flex;
  gap:8px;
}

.usage {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px;
  gap:35px;
}

.usage h2 {
  font-size:29px;
  font-variant-numeric:tabular-nums;
}

.usage-unit {
  font-size:16px;
  font-weight:400;
  color:var(--muted);
}

.usage p:not(.eyebrow) {
  font-size:12px;
  color:var(--muted);
  margin:7px 0 0;
}

.usage-detail {
  min-width:260px;
  max-width:350px;
}

progress {
  width:100%;
  height:6px;
  border:0;
  border-radius:5px;
  background:var(--soft);
  accent-color:var(--accent);
}

progress::-webkit-progress-bar {
  background:var(--soft);
  border-radius:5px;
}

progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:5px;
}

progress::-moz-progress-bar {
  background:var(--accent);
  border-radius:5px;
}

.empty-chart {
  text-align:center;
  padding:20px 24px 42px;
}

.empty-chart img {
  margin:0 auto 16px;
  opacity:.85;
}

.empty-chart h3 {
  font-size:17px;
  font-weight:500;
  margin:0 0 8px;
}

.empty-chart p {
  font-size:13px;
  color:var(--muted);
  max-width:440px;
  margin:auto;
}

.empty-reviews {
  padding:10px 28px 30px;
  color:var(--muted);
  font-size:13px;
}

footer {
  max-width:1200px;
  margin:24px auto 0;
  padding:24px 0 32px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px;
}

.welcome {
  min-height:calc(100vh - 88px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:50px;
  padding-bottom:80px;
  gap:60px;
}

.welcome-card {
  max-width:540px;
}

.welcome h1 {
  font-size:72px;
  line-height:1.08;
  letter-spacing:-3px;
  margin:24px 0;
}

.welcome .subtitle {
  max-width:380px;
  font-size:18px;
  line-height:1.65;
  margin-bottom:32px;
}

.welcome-art {
  display:grid;
  place-items:center;
  width:430px;
  aspect-ratio:1;
  border-radius:50%;
  background:var(--soft);
  position:relative;
}

.welcome-art:after {
  content:'';
  position:absolute;
  inset:-20px;
  border:1px solid var(--line);
  border-radius:50%;
}

.notice {
  padding-top:100px;
  max-width:780px;
}

.notice p:not(.eyebrow) {
  color:var(--muted);
  max-width:560px;
  font-size:16px;
  margin-bottom:28px;
}

.notice h1 {
  font-size:40px;
}

.htmx-request {
  opacity:.65;
  transition:opacity .15s;
}

@media(max-width:1264px) {
  main,footer {
    margin-left:32px;
    margin-right:32px;
  }
}

@media(max-width:960px) {
  .product-label {
    display:none;
  }
  .filterbar {
    align-items:flex-start;
    flex-direction:column;
  }
  .filters {
    width:100%;
  }
  .filters select:first-of-type {
    flex:1;
    max-width:none;
  }
  .metric {
    padding:22px;
  }
  .metric-value {
    font-size:44px;
  }
  .metric-value.duration {
    font-size:38px;
  }
  .review-table td,.review-table th {
    padding-left:20px;
    padding-right:20px;
  }
  .welcome h1 {
    font-size:58px;
  }
  .welcome-art {
    width:300px;
  }
  .welcome-art img {
    width:210px;
    height:210px;
  }
}

@media(max-width:680px) {
  .topbar {
    height:72px;
    padding:0 20px;
    gap:10px;
  }
  .brand {
    font-size:27px;
    gap:8px;
  }
  .mascot {
    width:34px;
    height:34px;
  }
  .account-tools {
    gap:15px;
  }
  .login,.theme-toggle span {
    display:none;
  }
  main {
    padding-top:32px;
    margin-left:20px;
    margin-right:20px;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:22px;
    margin-bottom:26px;
  }
  h1 {
    font-size:38px;
  }
  .select-group select {
    flex:1;
    max-width:none;
  }
  .metrics,
  .metrics.review-summary {
    gap:0;
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    grid-template-columns:1fr;
    margin-bottom:20px;
  }
  .metric {
    border:0;
    border-radius:0;
    border-bottom:1px solid var(--line);
    padding:18px 20px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:4px 10px;
    align-items:center;
  }
  .metric:last-child {
    border-bottom:0;
  }
  .metric-value {
    font-size:32px;
    margin:0;
    grid-column:2;
    grid-row:1/3;
    letter-spacing:-1px;
  }
  .metric-label {
    font-size:13px;
  }
  .filters {
    flex-wrap:wrap;
  }
  .filters select:first-of-type {
    width:100%;
    flex-basis:100%;
  }
  .filters select:nth-of-type(2) {
    flex:1;
    max-width:none;
  }
  .panel-heading {
    padding:20px;
    align-items:flex-start;
    gap:10px;
  }
  .date-range {
    font-size:10px;
  }
  .chart {
    margin-left:20px;
    margin-right:20px;
    gap:8px;
  }
  .chart-columns {
    padding:0 6px;
    gap:10px;
  }
  .bar-label {
    font-size:9px;
  }
  .chart-column:nth-child(even) .bar-label {
    visibility:hidden;
  }
  .chart-data {
    margin-left:20px;
  }
  .review-table th:nth-child(2),.review-table td:nth-child(2) {
    display:none;
  }
  .review-table th:nth-child(4),.review-table td:nth-child(4) {
    display:none;
  }
  .review-table td,.review-table th {
    padding-left:20px;
    padding-right:12px;
  }
  .review-table time {
    white-space:normal;
    font-size:11px;
  }
  .review-table td:first-child {
    width:60%;
  }
  .pr-link {
    gap:8px;
  }
  .pr-link strong {
    font-size:13px;
  }
  .pr-link small {
    font-size:10px;
  }
  .pagination {
    padding:16px 20px;
    align-items:flex-start;
    flex-direction:column;
  }
  .usage {
    align-items:stretch;
    flex-direction:column;
    gap:16px;
    padding:22px;
  }
  .usage-detail {
    min-width:0;
    max-width:none;
  }
  .usage h2 {
    font-size:25px;
  }
  .usage-unit {
    font-size:14px;
  }
  footer {
    margin:24px 20px 0;
    gap:12px;
    flex-wrap:wrap;
  }
  .welcome {
    flex-direction:column;
    align-items:flex-start;
    gap:60px;
    padding-bottom:60px;
  }
  .welcome h1 {
    font-size:58px;
  }
  .welcome .subtitle {
    font-size:16px;
  }
  .welcome-art {
    width:220px;
    align-self:center;
  }
  .welcome-art img {
    width:160px;
    height:160px;
  }
  .notice {
    padding-top:60px;
  }
  .notice h1 {
    font-size:34px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}


.mobile-result {
  display: none;
}
@media (max-width: 680px) {
  .mobile-result {
    display: inline-flex;
    margin-top: 7px;
  }
  .pr-link {
    align-items: flex-start;
  }
  .pr-link > svg {
    margin-top: 3px;
  }
  .pr-link strong, .pr-link small {
    overflow-wrap: anywhere;
  }
  .review-table table {
    table-layout: fixed;
  }
  .chart-column svg {
    min-width: 2px;
  }
  .chart-column:nth-child(2n) .bar-value {
    font-size: 10px;
  }
}

.status.caution {
  color: #855214;
  background: #fcf0d9;
}
.status.neutral {
  color: var(--muted);
  background: var(--soft);
}
.primary, .primary:hover {
  background: #b84117;
  border-color: #b84117;
  color: #fff;
}
.request-error {
  padding: 14px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
@media (max-width: 680px) {
  button, select, .button {
    min-height: 44px;
  }
}

.invitation-shell { min-height:65vh; }
.invitation-modal {
  width:min(34rem,calc(100% - 2rem));
  max-height:calc(100% - 2rem);
  padding:clamp(1.5rem,5vw,3rem);
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  color:var(--ink);
  box-shadow:var(--shadow);
}
.invitation-modal::backdrop { background:#26272355; }
.invitation-modal h1 { font-size:2rem; overflow-wrap:anywhere; }
.invitation-modal p,.onboarding-notice p { margin:1.5rem 0; }
.invitation-signature { color:var(--muted); }
.onboarding-notice { max-width:48rem; }
.onboarding-actions { display:flex; gap:1rem; flex-wrap:wrap; }
.onboarding-actions .button,.invitation-modal .button {
  min-width:0;
  max-width:100%;
  white-space:normal;
  text-align:center;
}
