/* App-window mock — mirrors app.infere.com (dark theme, 2026-11)
   Tokens read from the live app:
   page #120D22 · sidebar #0B0619 · card #1B1530 · border #2F2749
   primary #7246F5 · lilac #CD82FF · text #F1EDF9 / #C9C1DD / #9D95B5 */

.aw {
  --aw-bg: #120d22;
  --aw-side: #0b0619;
  --aw-card: #1b1530;
  --aw-low: #201936;
  --aw-border: #2f2749;
  --aw-divider: #261f3e;
  --aw-primary: #7246f5;
  --aw-lilac: #cd82ff;
  --aw-ok: #44d699;
  --aw-bad: #ff6f87;
  --aw-warn: #ffc456;
  --aw-t1: #f1edf9;
  --aw-t2: #c9c1dd;
  --aw-t3: #9d95b5;
  width: 100%;
  background: var(--aw-bg);
  border: 1px solid var(--aw-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-sans, "Outfit", system-ui, sans-serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--aw-t2);
  text-align: left;
  letter-spacing: 0;
}
.aw *,
.aw *::before,
.aw *::after { box-sizing: border-box; }
.aw p { margin: 0; }
.aw b, .aw strong { font-weight: 650; color: var(--aw-t1); }
.aw small { font-size: 10px; }
.aw-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* window chrome */
.aw-bar {
  display: flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 12px;
  background: #0f0b1f; border-bottom: 1px solid var(--aw-divider);
}
.aw-dots { display: flex; gap: 5px; }
.aw-dots i { width: 8px; height: 8px; border-radius: 50%; background: #2b2548; }
.aw-url { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; color: var(--aw-t3); }
.aw-live { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--aw-t2); }
.aw-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--aw-ok); }

/* shell */
.aw-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 430px; }
.aw-side {
  background: var(--aw-side); border-right: 1px solid var(--aw-divider);
  padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 10px;
}
.aw-logo { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; padding: 0 4px; }
.aw-logo svg { width: 16px; height: 16px; color: var(--aw-lilac); }
.aw-ws {
  display: flex; align-items: center; gap: 7px; padding: 7px 8px;
  border: 1px solid var(--aw-border); border-radius: 8px; background: rgba(255,255,255,.02);
}
.aw-ws-mark { width: 20px; height: 20px; border-radius: 5px; background: var(--aw-primary); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.aw-ws-name { font-size: 11.5px; font-weight: 600; color: var(--aw-t1); line-height: 1.2; }
.aw-ws-sub { font-size: 9.5px; color: var(--aw-t3); }
.aw-nav { display: flex; flex-direction: column; gap: 1px; }
.aw-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 6px; font-size: 11.5px; color: var(--aw-t2);
}
.aw-nav-item svg { width: 13px; height: 13px; flex: none; opacity: .85; }
.aw-nav-item.on { background: #6836f2; color: #fff; font-weight: 600; }
.aw-group { margin-top: 6px; padding: 0 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-t3); }
.aw-credit { margin-top: auto; border: 1px solid var(--aw-border); border-radius: 8px; padding: 8px; background: rgba(205,130,255,.03); }
.aw-credit b { display: block; font-size: 15px; line-height: 1.2; }
.aw-credit span { font-size: 9.5px; color: var(--aw-t3); }
.aw-side-foot { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 0; font-size: 10.5px; color: var(--aw-t3); }

/* main column */
.aw-main { min-width: 0; display: flex; flex-direction: column; }
.aw-top { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--aw-divider); }
.aw-project { padding: 5px 9px; border: 1px solid var(--aw-border); border-radius: 6px; font-size: 10.5px; color: var(--aw-t2); white-space: nowrap; }
.aw-search { margin-left: auto; width: 150px; padding: 5px 8px; border: 1px solid var(--aw-border); border-radius: 6px; font-size: 10.5px; color: var(--aw-t3); display: flex; justify-content: space-between; }
.aw-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--aw-primary); color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; }
.aw-bell { position: relative; width: 14px; height: 14px; border: 1.5px solid var(--aw-t3); border-radius: 7px 7px 4px 4px; }
.aw-bell::after { content: ""; position: absolute; top: -4px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--aw-bad); border: 1.5px solid var(--aw-bg); }

.aw-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; }
.aw-title { font-size: 21px; font-weight: 600; letter-spacing: -0.3px; color: var(--aw-t1); line-height: 1.15; }
.aw-head-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.aw-btn { padding: 5px 9px; border: 1px solid var(--aw-border); border-radius: 6px; font-size: 10.5px; color: var(--aw-t2); white-space: nowrap; }
.aw-btn.primary { background: var(--aw-primary); border-color: var(--aw-primary); color: #fff; font-weight: 600; }
.aw-btn.ghost { border-color: transparent; color: var(--aw-t3); }

/* tabs + toolbar */
.aw-tabs { display: flex; gap: 2px; padding: 0 14px; margin-top: 8px; border-bottom: 1px solid var(--aw-outline, var(--aw-border)); }
.aw-tab { padding: 6px 10px 7px; font-size: 11px; font-weight: 500; color: var(--aw-t3); border-bottom: 2px solid transparent; white-space: nowrap; }
.aw-tab.on { color: var(--aw-t1); font-weight: 650; border-bottom-color: var(--aw-primary); }
.aw-toolbar { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-bottom: 1px solid var(--aw-divider); }
.aw-input { width: 170px; padding: 5px 8px; border: 1px solid var(--aw-border); border-radius: 6px; background: #0f0b1f; font-size: 10.5px; color: var(--aw-t3); }
.aw-tool { padding: 5px 8px; border: 1px solid var(--aw-border); border-radius: 6px; font-size: 10.5px; color: var(--aw-t2); white-space: nowrap; }
.aw-toolbar .right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.aw-sum { padding: 8px 16px 0; font-size: 10.5px; color: var(--aw-t3); }
.aw-sum b { color: var(--aw-t1); }

/* table */
.aw-table { padding: 6px 0 0; }
.aw-row {
  display: grid; align-items: center; gap: 8px;
  padding: 7px 16px; border-bottom: 1px solid #1e1934;
  font-size: 11px; color: var(--aw-t2); min-height: 31px;
}
.aw-row.head { font-size: 9.5px; font-weight: 650; color: var(--aw-t3); text-transform: none; padding-top: 5px; padding-bottom: 5px; border-bottom-color: var(--aw-border); }
.aw-row .r { text-align: right; font-variant-numeric: tabular-nums; }
.aw-row .id { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--aw-t1); font-size: 10.5px; }
.aw-row .model { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--aw-lilac); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-row .muted { color: var(--aw-t3); }
.aw-row .sub { display: block; font-size: 9px; color: var(--aw-t3); font-weight: 400; }
.aw-ok { color: var(--aw-ok); font-weight: 700; font-size: 10px; letter-spacing: .02em; }
.aw-bad { color: var(--aw-bad); font-weight: 700; font-size: 10px; letter-spacing: .02em; }
.aw-warn { color: var(--aw-warn); font-weight: 700; font-size: 10px; letter-spacing: .02em; }
.aw-pill { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 9.5px; font-weight: 650; }
.aw-pill.ok { background: rgba(68,214,153,.12); color: var(--aw-ok); }
.aw-pill.bad { background: rgba(255,111,135,.12); color: var(--aw-bad); }
.aw-pill.warn { background: rgba(255,196,86,.12); color: var(--aw-warn); }
.aw-pill.neutral { background: rgba(255,255,255,.05); color: var(--aw-t2); }

/* cards + kv + kpi */
.aw-card { margin: 12px 16px; border: 1px solid var(--aw-border); border-radius: 9px; background: var(--aw-card); overflow: hidden; }
.aw-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--aw-divider); }
.aw-card-title { font-size: 12px; font-weight: 650; color: var(--aw-t1); }
.aw-card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.aw-card-body { padding: 10px 12px; }
.aw-kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 10.5px; }
.aw-kv dt { color: var(--aw-t3); }
.aw-kv dd { margin: 0; color: var(--aw-t1); }
.aw-kpi { display: grid; gap: 10px; padding: 10px 12px; }
.aw-kpi span { display: block; font-size: 9.5px; color: var(--aw-t3); }
.aw-kpi b { display: block; margin-top: 2px; font-size: 17px; line-height: 1.2; color: var(--aw-t1); font-weight: 600; }
.aw-kpi small { display: block; font-size: 9px; color: var(--aw-t3); }

/* request drawer */
.aw-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 380px; }
.aw-drawer { border-left: 1px solid var(--aw-border); background: var(--aw-card); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.aw-drawer-head { display: flex; align-items: center; gap: 6px; }
.aw-drawer-title { font-size: 13px; font-weight: 650; color: var(--aw-t1); }
.aw-drawer-id { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 9.5px; color: var(--aw-t3); word-break: break-all; }
.aw-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.aw-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.aw-metrics span { font-size: 9px; color: var(--aw-t3); }
.aw-metrics b { display: block; font-size: 12px; color: var(--aw-t1); }
.aw-bar-line { height: 4px; border-radius: 2px; background: var(--aw-low); overflow: hidden; display: flex; }
.aw-bar-line i { display: block; height: 100%; }
.aw-note { padding: 7px 9px; border: 1px solid rgba(255,111,135,.25); border-left: 2px solid var(--aw-bad); border-radius: 5px; background: rgba(255,111,135,.06); font-size: 9.5px; color: var(--aw-t2); }
.aw-drawer-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--aw-divider); padding-bottom: 6px; }
.aw-code { background: #0f0b1f; border: 1px solid var(--aw-divider); border-radius: 6px; padding: 8px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 9.5px; line-height: 1.6; color: var(--aw-t2); white-space: pre-wrap; }

/* scaling for feature columns */
.aw-scale { width: 100%; display: flex; justify-content: center; overflow: hidden; }
.aw--feature { width: 760px; flex: none; zoom: .78; }
.aw--feature .aw-side { display: none; }
.aw--feature .aw-body { grid-template-columns: 1fr; }
@media (max-width: 1200px) { .aw--feature { zoom: .70; } }
@media (max-width: 900px) { .aw--feature { zoom: .58; } }
@media (max-width: 620px) { .aw--feature { zoom: .44; } }

@media (max-width: 700px) {
  .aw-side { display: none; }
  .aw-body { grid-template-columns: 1fr; min-height: 0; }
  .aw-search { display: none; }
  .aw-head { padding: 10px 12px 0; flex-wrap: wrap; }
  .aw-title { font-size: 18px; }
  .aw-head-actions { display: none; }
  .aw-toolbar { overflow-x: auto; }
  .aw-table { overflow-x: auto; }
  .aw-card { margin: 10px 12px; }
  .aw-kv { grid-template-columns: 104px 1fr; }
}
