/* sample-sets.dexima.ai — dexima.ai brand tokens (publicsite/static/site.css) */
:root {
  --accent: #f97316;
  --accent-soft: #fff3ea;
  --ink: #111418;
  --muted: #5b6470;
  --bg: #ffffff;
  --card: #f6f6f6;
  --line: #e3e6ea;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

:where(*) { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand-mark { height: 30px; width: 30px; object-fit: contain; }
.brand-word { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.05em; color: var(--ink); }
.topbar-sep { width: 1px; height: 1.4rem; background: var(--line); }
.topbar-kind {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
}
.set-title {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}
.status strong { color: var(--ink); display: block; font-size: 1.3rem; margin-bottom: 0.5rem; }

.set-desc {
  margin: 0;
  padding: 1rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 72ch;
}

.carousel {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.clip-card {
  flex: 0 0 auto;
  width: 132px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease;
}
.clip-card:hover { border-color: var(--accent); }
.clip-card[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.clip-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
  background: var(--card);
}
.clip-card .clip-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px 8px 0 0;
  background: var(--line);
}
.clip-card .clip-meta { padding: 0.4rem 0.55rem 0.5rem; }
.clip-card .clip-label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2em;
}
.clip-card .clip-dur { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.stage {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 1.5rem 1.5rem;
  align-items: flex-start;
}
.player { flex: 1 1 auto; min-width: 0; }
.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  display: block;
}

.panel {
  flex: 0 0 360px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.25rem 1rem 1rem;
}
.panel-section h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 1rem 0 0.5rem;
}

.scan { margin: 0.75rem 0 0; }
.scan-track { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.scan-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }
.scan-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }

.track-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.6rem 0 0.25rem;
}
.track-label .topic-name { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 0.7rem; }
.segment {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: var(--bg);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink);
}
.segment:hover { border-color: var(--accent); }
.segment[aria-current="true"] {
  border-left-color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.segment .seg-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  margin-right: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.segment[aria-current="true"] .seg-time { color: var(--accent); font-weight: 700; }

.empty-note { color: var(--muted); font-size: 0.82rem; }

.topics-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.topics-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.4rem 0.35rem 0;
}
.topics-table td {
  padding: 0.28rem 0.4rem 0.28rem 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.topics-table .t-name { font-family: var(--mono); font-size: 0.74rem; word-break: break-all; }
.topics-table .t-schema { color: var(--muted); font-size: 0.72rem; word-break: break-all; }
.topics-table .t-hz { font-variant-numeric: tabular-nums; white-space: nowrap; }

.stream-block { margin-bottom: 0.8rem; }
.stream-block .stream-name { font-family: var(--mono); font-size: 0.74rem; color: var(--ink); font-weight: 600; margin-bottom: 0.2rem; }
.stream-readout {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 9.5em;
  overflow: hidden;
}
.stream-readout .k { color: var(--muted); }

@media (max-width: 900px) {
  .stage { flex-direction: column; }
  .panel { flex: 1 1 auto; width: 100%; max-height: none; }
}
