/* ==========================================================================
   Infere platform mock — mirrors the 2026 app design at app.infere.com
   --------------------------------------------------------------------------
   Tokens read out of the live app (Appearance → dark):
     page        #120D22   sidebar #0B0619   card #1B1530   surface-low #201936
     border      #2F2749   divider #261F3E   primary #7246F5  lilac #CD82FF
     text        #F1EDF9 / #C9C1DD / #9D95B5
     radius      cards 10px, controls 6px, pills 999px
     type        Outfit (100–900 variable), page title 600, metrics 600
   Scope: .pm-* only. The marketing site keeps its own design system.
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
     U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/outfit/outfit-latin-ext.woff2') format('woff2');
  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-20C4,
     U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.pm,
.pm * {
  box-sizing: border-box;
}

.pm {
  --pm-background: #120D22;
  --pm-sidebar: #0B0619;
  --pm-card: #1B1530;
  --pm-low: #201936;
  --pm-container: #282042;
  --pm-high: #332A52;
  --pm-border: #2F2749;
  --pm-divider: #261F3E;
  --pm-primary: #7246F5;
  --pm-lilac: #CD82FF;
  --pm-success: #44D699;
  --pm-error: #FF6F87;
  --pm-warning: #FFC456;
  --pm-info: #74B5FF;
  --pm-text1: #F1EDF9;
  --pm-text2: #C9C1DD;
  --pm-text3: #9D95B5;
  --pm-primary-text: #B9A3FF;
  --pm-success-soft: #202E3E;
  --pm-error-soft: #39213B;
  --pm-warning-soft: #392C35;
  --pm-info-soft: #272A4B;
  --pm-control-outline: #4A3F6D;
  --pm-nav-active: #6836F2;

  font-family: 'Outfit', var(--font-sans);
  color: var(--pm-text2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
}

.pm-ico {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The marketing pages style .hero h1 / .hero p aggressively; re-assert the mock's
   own type inside .pm so the dashboard keeps the app's scale and font. */
.pm h1,
.pm h2,
.pm h3,
.pm h4,
.pm p,
.pm span,
.pm div,
.pm td,
.pm th,
.pm b,
.pm i,
.pm a {
  font-family: 'Outfit', var(--font-sans);
}

.pm p {
  margin: 0;
}

.pm .pm-h1 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--pm-text1);
}

.pm p.pm-line-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--pm-text3);
}

/* ---------- framed window (hero) ---------- */

.pm-window {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  background: var(--pm-background);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

/* ---------- sidebar ---------- */

.pm-side {
  background: var(--pm-sidebar);
  border-right: 1px solid var(--pm-border);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pm-ws {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 9px;
  background: var(--pm-card);
  border: 1px solid var(--pm-control-outline);
  border-radius: 6px;
  color: var(--pm-text1);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.pm-ws-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--pm-nav-active);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex: none;
}

.pm-ws-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--pm-text3);
}

.pm-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 6px;
}

.pm-nav-label {
  padding: 10px 8px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pm-text3);
}

.pm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pm-text2);
  white-space: nowrap;
}

.pm-nav-item .pm-ico {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.pm-nav-item.is-active {
  background: rgba(104, 54, 242, 0.34);
  color: #fff;
  font-weight: 600;
}

.pm-nav-item.is-active .pm-ico {
  opacity: 1;
}

.pm-nav-trail {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--pm-text3);
}

.pm-side-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--pm-divider);
}

/* ---------- main ---------- */

.pm-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pm-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(27, 21, 48, 0.92);
  border-bottom: 1px solid var(--pm-border);
}

.pm-proj {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  background: var(--pm-card);
  border: 1px solid var(--pm-control-outline);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pm-text1);
}

.pm-proj span {
  color: var(--pm-text3);
  font-weight: 400;
}

.pm-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--pm-nav-active);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex: none;
}

.pm-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pm-h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--pm-text1);
  line-height: 1.2;
}

.pm-head-sub {
  font-size: 11px;
  color: var(--pm-text3);
}

.pm-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--pm-control-outline);
  border-radius: 6px;
  background: var(--pm-card);
  color: var(--pm-text1);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pm-btn .pm-ico {
  width: 12px;
  height: 12px;
}

.pm-btn.is-primary {
  background: var(--pm-primary);
  border-color: var(--pm-primary);
  color: #fff;
}

/* ---------- metric tiles ---------- */

.pm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pm-tile {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pm-tile-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pm-text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-tile-value {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--pm-text1);
  line-height: 1.2;
}

.pm-tile-delta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--pm-text3);
  min-height: 18px;
}

.pm-spark {
  display: block;
  width: 100%;
  height: 26px;
  margin-top: 4px;
}

/* ---------- pills ---------- */

.pm-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.pm-pill.is-good {
  background: var(--pm-success-soft);
  color: var(--pm-success);
}

.pm-pill.is-bad {
  background: var(--pm-error-soft);
  color: var(--pm-error);
}

.pm-pill.is-warn {
  background: var(--pm-warning-soft);
  color: var(--pm-warning);
}

.pm-pill.is-info {
  background: var(--pm-info-soft);
  color: var(--pm-info);
}

.pm-pill.is-plain {
  background: var(--pm-low);
  color: var(--pm-text2);
}

/* ---------- quality bar ---------- */

.pm-quality {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  font-size: 11.5px;
  color: var(--pm-text2);
}

.pm-quality b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pm-text1);
  font-weight: 600;
}

.pm-quality .pm-ico {
  width: 13px;
  height: 13px;
  color: var(--pm-primary-text);
}

.pm-quality .pm-dot {
  color: var(--pm-text3);
}

/* ---------- cards ---------- */

.pm-card {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  padding: 12px 13px;
  min-width: 0;
}

.pm-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pm-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pm-text1);
}

.pm-card-note {
  font-size: 10.5px;
  color: var(--pm-text3);
}

.pm-card-head .pm-btn {
  margin-left: auto;
}

/* bar chart */

.pm-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 92px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--pm-divider);
}

.pm-bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: rgba(114, 70, 245, 0.55);
}

.pm-bar.is-problem {
  background: var(--pm-lilac);
}

.pm-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: var(--pm-text3);
}

/* ---------- tables ---------- */

.pm-table-wrap {
  min-width: 0;
  overflow: hidden;
}

.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.pm-table th {
  padding: 6px 10px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--pm-text3);
  background: var(--pm-low);
  border-bottom: 1px solid var(--pm-border);
  white-space: nowrap;
}

.pm-table td {
  padding: 7px 10px;
  color: var(--pm-text2);
  border-bottom: 1px solid var(--pm-divider);
  white-space: nowrap;
  vertical-align: middle;
}

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

.pm-num {
  font-variant-numeric: tabular-nums;
}

.pm-strong {
  color: var(--pm-text1);
  font-weight: 500;
}

.pm-muted {
  color: var(--pm-text3);
}

.pm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--pm-low);
  color: var(--pm-text2);
  font-size: 10.5px;
  font-weight: 500;
}

/* ---------- benefit-row widgets ---------- */

.pm-widget {
  background: var(--pm-card);
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

/* Narrow benefit columns drop the least useful column first (no clipped tables).
   Viewport-based on purpose: `container-type` collapses the widget to 2px inside
   the shrink-to-fit .benefit-visual grid cell. */
@media (max-width: 1150px) {
  .pm-widget .pm-opt {
    display: none;
  }
}

@media (max-width: 1080px) {
  .pm-widget .pm-opt2 {
    display: none;
  }
}

@media (max-width: 980px) {
  .pm-table th,
  .pm-table td {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.pm-widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--pm-card);
  border-bottom: 1px solid var(--pm-border);
}

.pm-widget-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pm-text1);
}

.pm-widget-head .pm-btn {
  margin-left: auto;
}

.pm-widget-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--pm-divider);
  font-size: 10.5px;
  color: var(--pm-text3);
}

.pm-tabs {
  display: flex;
  gap: 3px;
}

.pm-tab {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--pm-text2);
}

.pm-tab.is-active {
  background: rgba(104, 54, 242, 0.34);
  color: #fff;
  font-weight: 600;
}

.pm-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--pm-divider);
  font-size: 10.5px;
  color: var(--pm-text3);
}

.pm-link {
  color: var(--pm-primary-text);
  font-weight: 600;
}

/* ---------- top bar bits ---------- */

.pm-top-search {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--pm-control-outline);
  border-radius: 6px;
  background: var(--pm-card);
  font-size: 11px;
  color: var(--pm-text3);
}

.pm-top-search .pm-ico {
  width: 12px;
  height: 12px;
}

.pm-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 4px;
  background: var(--pm-low);
  color: var(--pm-text2);
  font-size: 9.5px;
  font-weight: 600;
}

.pm-bell {
  position: relative;
  display: inline-flex;
  color: var(--pm-text2);
}

.pm-bell .pm-ico {
  width: 15px;
  height: 15px;
}

.pm-bell-dot {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--pm-error);
  color: var(--pm-background);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

/* ---------- section header inside the page body ---------- */

.pm-sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: -2px;
}

.pm-sec-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--pm-text1);
  letter-spacing: -0.2px;
}

.pm-sec-note {
  font-size: 10.5px;
  color: var(--pm-text3);
}

.pm-line-note {
  margin: 0;
  font-size: 11px;
  color: var(--pm-text3);
}

/* ---------- widget stat strip ---------- */

.pm-widget-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--pm-divider);
  background: var(--pm-low);
}

.pm-widget-stats span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pm-widget-stats i {
  font-style: normal;
  font-size: 9.5px;
  color: var(--pm-text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-widget-stats b {
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-text1);
  letter-spacing: -0.2px;
}

/* ---------- settings panel (key Observability) ---------- */

.pm-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 6px;
}

.pm-set-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--pm-text1);
}

.pm-switch {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--pm-container);
  border: 1px solid var(--pm-control-outline);
  flex: none;
}

.pm-switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--pm-text3);
}

.pm-switch.is-on {
  background: rgba(104, 54, 242, 0.55);
  border-color: transparent;
}

.pm-switch.is-on i {
  left: auto;
  right: 2px;
  background: #fff;
}

.pm-set-note {
  padding: 0 12px;
  font-size: 11px;
  color: var(--pm-text3);
  line-height: 1.5;
}

.pm-set-foot {
  margin: 8px 12px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--pm-low);
  font-size: 10.5px;
  color: var(--pm-text2);
}

.pm-set-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 12px 12px;
}

/* ---------- panel chrome shared by the feature-page widgets ---------- */

.pm-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pm-border);
}

.pm-crumb {
  font-size: 10.5px;
  color: var(--pm-text3);
  white-space: nowrap;
}

.pm-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-text1);
  white-space: nowrap;
}

.pm-panel-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-badge {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(104, 54, 242, 0.22);
  color: var(--pm-primary-text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pm-id {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  color: var(--pm-text3);
  letter-spacing: -0.2px;
}

.pm-kv {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 6px 12px;
  padding: 10px 12px;
  margin: 0;
}

.pm-kv dt {
  font-size: 10.5px;
  color: var(--pm-text3);
  white-space: nowrap;
}

.pm-kv dd {
  margin: 0;
  font-size: 11.5px;
  color: var(--pm-text2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--pm-divider);
}

.pm-field:first-of-type {
  border-top: 0;
}

.pm-field-label {
  font-size: 11px;
  color: var(--pm-text3);
  white-space: nowrap;
}

.pm-field-value {
  font-size: 11.5px;
  color: var(--pm-text1);
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-input {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--pm-control-outline);
  border-radius: 6px;
  background: var(--pm-background);
  font-size: 11px;
  color: var(--pm-text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-area {
  margin: 4px 12px 10px;
  padding: 8px;
  border: 1px solid var(--pm-control-outline);
  border-radius: 6px;
  background: var(--pm-background);
  font-size: 11px;
  line-height: 1.55;
  color: var(--pm-text2);
}

.pm-area.is-placeholder {
  color: var(--pm-text3);
}

.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
}

.pm-chip {
  padding: 3px 7px;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  background: var(--pm-low);
  font-size: 10.5px;
  color: var(--pm-text2);
  white-space: nowrap;
}

.pm-chip.is-on {
  background: rgba(104, 54, 242, 0.34);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.pm-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pm-divider);
}

.pm-step {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pm-low);
  font-size: 10px;
  color: var(--pm-text3);
  white-space: nowrap;
}

.pm-step.is-on {
  background: rgba(104, 54, 242, 0.34);
  color: #fff;
  font-weight: 600;
}

.pm-note {
  padding: 8px 12px;
  border-top: 1px solid var(--pm-divider);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--pm-text3);
}

.pm-sect {
  padding: 8px 12px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pm-text1);
}

.pm-bullets {
  margin: 0;
  padding: 0 12px 10px 26px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--pm-text2);
}

.pm-bullets li {
  margin: 0;
}

/* ---------- responsive: mock only ---------- */

@media (max-width: 900px) {
  .pm-window {
    grid-template-columns: 1fr;
  }

  .pm-side {
    display: none;
  }

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

@media (max-width: 560px) {
  .pm-metrics {
    grid-template-columns: 1fr;
  }

  .pm-bars {
    height: 64px;
  }
}
