/* Minimal chrome for the Field2 viewer-comparison app. This is a product
   shell, not a Leptos demo -- deliberately plain rather than themed.
   Ported from the sibling controls2-leptos app's own styles/app.css
   (itself ported from workbench2-leptos), unchanged. */

:root {
  color-scheme: light dark;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
}

.shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.experimental-banner {
  background: #7a2e0e;
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 1.4rem;
}

.lede {
  color: #555;
  max-width: 60ch;
}

.open-file {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1.5rem 0;
}

.hint {
  color: #666;
  font-style: italic;
}

.status-ok {
  color: #1a7a3a;
}

.status-err {
  color: #b3261e;
  white-space: pre-wrap;
}

.summary .file-name {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

th,
td {
  border: 1px solid #ccc;
  padding: 0.25rem 0.5rem;
  text-align: left;
}

.property-inspector {
  margin: 1.5rem 0;
}

.attribute-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 0.75rem;
  margin: 0.5rem 0 1rem;
}

.attribute-list dt {
  font-weight: 600;
}

.attribute-list dd {
  margin: 0;
}

.global-id {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: #666;
}

.viewer {
  margin-top: 2rem;
}

canvas {
  display: block;
  max-width: 100%;
  border: 1px solid #ccc;
  background: #111;
}

canvas[hidden] {
  display: none;
}
