/* CYC-3974 — page-frame styles for /m15-viewer.html.
 *
 * Kept separate from /m15-panel.css so the M15 widget styles are
 * portable to any host page; this file is the minimal chrome (header,
 * main, footer) the viewer page needs around it.
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.m15v-body {
  background: var(--bg, #0d1117);
  color: var(--text, #e6edf3);
  font-family:
    'Inter',
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.m15v-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface, #161b22);
  border-bottom: 1px solid var(--border, #30363d);
}
.m15v-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent, #6366f1);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.m15v-logo {
  font-size: 18px;
  color: var(--accent, #6366f1);
}
.m15v-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.m15v-meta {
  font-size: 12px;
  color: var(--muted, #8b949e);
  font-variant-numeric: tabular-nums;
}
.m15v-meta.m15v-status-error {
  color: var(--red, #f85149);
}
.m15v-meta.m15v-status-stale {
  color: var(--yellow, #d29922);
}

/* CYC-5676 — sound alert toggle. Lives in the header next to the
 * status banner. Inherits page-frame colors so it tracks the rest of
 * the chrome's tone. */
.m15v-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2, #1c2333);
  border: 1px solid var(--border, #30363d);
  color: var(--text, #e6edf3);
  padding: 6px 10px;
  border-radius: var(--radius, 6px);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.m15v-sound-toggle:hover {
  background: var(--surface, #161b22);
  border-color: var(--accent, #6366f1);
}
.m15v-sound-toggle:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}
.m15v-sound-toggle.m15v-sound-on {
  color: var(--green, #3fb950);
  border-color: rgba(63, 185, 80, 0.4);
}
.m15v-sound-toggle.m15v-sound-off {
  color: var(--muted, #8b949e);
}
.m15v-sound-icon {
  font-size: 13px;
  line-height: 1;
}
.m15v-sound-label {
  font-variant-numeric: tabular-nums;
}
.m15v-main {
  flex: 1;
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.m15v-footer {
  padding: 12px 24px;
  background: var(--surface, #161b22);
  border-top: 1px solid var(--border, #30363d);
  color: var(--muted, #8b949e);
  font-size: 11px;
  text-align: center;
}
