*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

code,
.mono {
  font-family: var(--font-mono);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--severity-critical) 0%, var(--severity-high) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.brand-tag {
  color: var(--muted);
  font-weight: 400;
  margin-left: var(--space-1);
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumb-sep {
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.page {
  padding: var(--space-6) 0;
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}

.empty-state {
  padding: var(--space-7) var(--space-5);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.error-banner {
  padding: var(--space-3) var(--space-4);
  background: var(--severity-critical-bg);
  color: var(--severity-critical);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: var(--space-4);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.iframe-host {
  position: fixed;
  inset: 57px 0 0 0;
}

.iframe-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
