:root {
  --app-bg: #f3f5f8;
  --app-surface: #fff;
  --app-ink: #18212f;
  --app-muted: #667085;
  --app-line: #e2e7ee;
  --app-blue: #3157d5;
  --app-blue-soft: #edf2ff;
  --app-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--app-bg); }
body {
  margin: 0;
  color: var(--app-ink);
  background: var(--app-bg);
  font-family: var(--app-font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.example-topbar svg,
.project-sidebar svg,
.document-tabs svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.example-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}
.example-product,
.example-topbar nav,
.example-topbar nav a {
  display: flex;
  align-items: center;
}
.example-product {
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.product-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #243c86;
  font-size: 13px;
  font-weight: 760;
}
.example-topbar nav { gap: 5px; }
.example-topbar nav a {
  min-height: 34px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 7px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
}
.example-topbar nav a:hover { color: var(--app-ink); background: #f5f6f8; }
.example-topbar nav .back-link { color: #fff; background: #18212f; }
.example-topbar nav .back-link:hover { color: #fff; background: #2b3543; }

.example-layout {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.project-sidebar {
  padding: 28px 18px;
  border-right: 1px solid var(--app-line);
  background: #f8f9fb;
}
.sidebar-label {
  margin: 0 10px 9px;
  color: #98a0ad;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.workspace-link {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
}
.project-card {
  margin-top: 22px;
  padding: 14px;
  display: grid;
  gap: 4px;
  border: 1px solid #dce3f2;
  border-radius: 10px;
  background: var(--app-blue-soft);
}
.project-card strong { font-size: 13px; }
.project-card > span:last-child { color: var(--app-muted); font-size: 11px; }
.project-kicker {
  color: var(--app-blue);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.example-note {
  margin-top: 28px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid var(--app-line);
  color: var(--app-muted);
}
.example-note svg { flex: 0 0 auto; margin-top: 2px; }
.example-note p { margin: 0; font-size: 10px; line-height: 1.55; }

.project-main { min-width: 0; padding: 38px 42px 60px; }
.project-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--app-blue);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.project-heading h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.project-heading > div > p:last-child { margin: 8px 0 0; color: var(--app-muted); font-size: 13px; }
.analysis-status {
  margin-top: 5px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e9dd;
  border-radius: 999px;
  color: #32734a;
  background: #f1faf4;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.analysis-status span { width: 6px; height: 6px; border-radius: 50%; background: #46a768; }
.document-tabs {
  margin-top: 28px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--app-line);
}
.document-tabs button {
  position: relative;
  min-height: 43px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--app-muted);
  background: transparent;
  font: 610 12px var(--app-font);
  white-space: nowrap;
  cursor: pointer;
}
.document-tabs button:hover { color: var(--app-ink); }
.document-tabs button[aria-selected="true"] { color: var(--app-blue); }
.document-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 8px -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--app-blue);
}
.analysis-surface {
  position: relative;
  min-height: 420px;
  margin-top: 22px;
  overflow: visible;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-surface);
  box-shadow: 0 8px 28px rgba(25,34,48,.05);
}
.example-loading {
  position: absolute;
  z-index: 2;
  top: 36px;
  left: 36px;
  margin: 0;
  color: var(--app-muted);
  font-size: 12px;
}
.example-loading[hidden] { display: none; }
#analysis-document { width: 100%; min-height: 1px; }
#analysis-document iframe { display: block; width: 100%; border-radius: 12px; }
.example-error { margin: 0; padding: 36px; color: #9b2c2c; font-size: 12px; white-space: pre-wrap; }

@media (max-width: 820px) {
  .example-layout { min-height: 0; grid-template-columns: 1fr; }
  .project-sidebar { display: none; }
  .project-main { padding: 30px 22px 48px; }
}
@media (max-width: 560px) {
  .example-topbar { padding: 0 14px; }
  .example-topbar nav > a:first-child { display: none; }
  .example-topbar .back-link svg { display: none; }
  .project-main { padding: 26px 14px 42px; }
  .project-heading { display: block; }
  .analysis-status { margin-top: 14px; }
  .document-tabs { margin-top: 20px; }
  .document-tabs button { padding: 0 10px; }
  .analysis-surface { border-right: 0; border-left: 0; border-radius: 0; }
}
