/*
 * FIFO Guide — examples/step-analysis のデザインシステムを踏襲したexampleテンプレート。
 * 共通トークン（--ink/--muted/--paper/--surface/--line/--signal/--dark/--radius/--shadow）と
 * レイアウト（app-header / control-strip / settings-guide / chart-card / table-frame /
 * notify-strip / scope-note / code-card / footer）は step-analysis と同じ命名・寸法に揃え、
 * FIFO固有の状態色（--ok / --warn / --bad）だけを追加している。
 */
:root {
  --ink: #17222b;
  --muted: #62717c;
  --paper: #f5f6f3;
  --surface: #ffffff;
  --line: #d6ddd9;
  --signal: #2763e7;
  --dark: #101a22;
  --ok: #0a9a84;
  --ok-soft: #dff5ef;
  --warn: #d3a117;
  --warn-soft: #fff8df;
  --bad: #f05d3f;
  --bad-soft: #ffebe6;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(23, 34, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(10, 154, 132, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(39, 99, 231, 0.07), transparent 27rem),
    var(--paper);
  font-family: Inter, "Helvetica Neue", "Noto Sans JP", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

button,
input,
select {
  font: inherit;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── header ─────────────────────────────────────────────────────────── */
.app-header {
  border-bottom: 1px solid rgba(23, 34, 43, 0.1);
  background: rgba(245, 246, 243, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  padding: 28px 0 24px;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.language-switch button {
  min-width: 40px;
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button.active {
  color: white;
  background: var(--signal);
}

.language-switch button:focus-visible,
.button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--bad);
  outline-offset: 2px;
}

.title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5.4vw, 4.8rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

h1 span {
  color: var(--signal);
}

.lead-copy {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lead-note {
  max-width: 660px;
  margin: 6px 0 0;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
}

.toolkit-cluster {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.toolkit-slot {
  min-width: 210px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(23, 34, 43, 0.05);
}

.toolkit-slot .form-check {
  min-height: 24px;
  margin: 0;
  padding-left: 2.7em;
  align-items: center;
}

.toolkit-slot .form-check-input {
  width: 2.1em;
  height: 1.08em;
  margin-top: 0;
  margin-left: -2.7em;
  cursor: pointer;
}

.toolkit-slot .form-check-input:checked {
  border-color: var(--signal);
  background-color: var(--signal);
}

.toolkit-slot .form-check-label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.toolkit-slot [id^="icon_settings"],
.toolkit-slot [id^="icon_battery"] {
  cursor: pointer;
}

/* ── control strip ──────────────────────────────────────────────────── */
.page-shell {
  padding: 22px 0 56px;
}

.control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.source-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.source-state > div {
  display: grid;
  min-width: 0;
}

.source-state strong {
  font-size: 0.92rem;
}

.source-state span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-badge {
  flex: 0 0 auto;
  min-width: 88px;
  padding: 7px 10px;
  border-radius: 99px;
  color: white;
  background: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.source-badge.ready {
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(39, 99, 231, 0.1);
}

.source-badge.preparing,
.source-badge.draining {
  color: #3d2b00;
  background: #f2bd3c;
  box-shadow: 0 0 0 5px rgba(242, 189, 60, 0.14);
}

.source-badge.recording {
  background: var(--bad);
  box-shadow: 0 0 0 5px rgba(240, 93, 63, 0.14);
}

.source-badge.done {
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(10, 154, 132, 0.12);
}

.source-badge.error {
  background: var(--bad);
}

.actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
}

.duration-field {
  display: grid;
  gap: 3px;
}

.duration-field > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.duration-field select,
.duration-field input {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
}

.duration-field.narrow input {
  width: 76px;
}

.duration-field input:disabled {
  color: var(--muted);
  background: #f1f3f1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.button.secondary {
  color: white;
  background: var(--signal);
}

.button.secondary.active {
  background: var(--bad);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

/* ── settings guide ─────────────────────────────────────────────────── */
.settings-guide {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid #c9d7ff;
  border-radius: 14px;
  color: var(--ink);
  background: #f2f6ff;
  font-size: 0.76rem;
  line-height: 1.55;
}

.settings-guide > i {
  flex: 0 0 auto;
  color: var(--signal);
  font-size: 1.25rem;
}

.settings-guide strong {
  font-size: 0.82rem;
}

.settings-guide p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 7px 0 0;
  color: var(--muted);
}

.settings-guide p span {
  white-space: nowrap;
}

.settings-guide p .settings-guide-default {
  flex-basis: 100%;
  color: var(--ink);
  font-weight: 750;
  white-space: normal;
}

/* ── buffer strip（FIFO固有） ───────────────────────────────────────── */
.buffer-strip {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.buffer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.buffer-head > div {
  display: grid;
  gap: 2px;
}

.trend-kicker {
  color: var(--signal);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.buffer-head strong {
  font-size: 0.86rem;
}

.buffer-head strong b {
  margin-left: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
}

.buffer-guide-text {
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.buffer-guide-text.ok {
  color: #0b7a69;
}

.buffer-guide-text.caution {
  color: #8a6a09;
}

.buffer-bar {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #e9ecef;
}

.buffer-bar-safe {
  flex: 1 1 50%;
  background: repeating-linear-gradient(45deg, var(--ok-soft), var(--ok-soft) 6px, #cfeee5 6px, #cfeee5 12px);
}

.buffer-bar-warn {
  flex: 1 1 50%;
  background: repeating-linear-gradient(45deg, var(--warn-soft), var(--warn-soft) 6px, #ffefb8 6px, #ffefb8 12px);
}

.buffer-bar-mark {
  position: absolute;
  top: 0;
  width: 2px;
  height: 14px;
  background: var(--ok);
}

.buffer-bar-cursor {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--signal);
  transform: translateX(-1px);
  transition: left 120ms linear;
}

.buffer-bar-cursor.over {
  background: var(--bad);
}

.buffer-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.buffer-scale .ok {
  color: #0b7a69;
}

.buffer-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

/* ── charts ─────────────────────────────────────────────────────────── */
.graphs-section,
.result-section,
.explain-section,
.how-section,
.log-section {
  margin-top: 22px;
}

.graphs-section {
  display: grid;
  gap: 10px;
}

.chart-card {
  padding: 8px 12px 10px;
  border-radius: 14px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.device-card[data-device="0"] {
  box-shadow: var(--shadow), inset 3px 0 0 #7fa4ff;
}

.device-card[data-device="1"] {
  box-shadow: var(--shadow), inset 3px 0 0 #f6c860;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  padding: 0 6px 6px;
  color: #9fb0bc;
  font-size: 0.62rem;
  font-weight: 700;
}

.chart-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: white;
  font-size: 0.78rem;
}

.chart-title span {
  color: #7fa4ff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.chart-meta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.chart-legend {
  display: flex;
  gap: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: 99px;
}

.legend-line.received {
  background: #35d1b6;
}

.legend-line.missing {
  background: #ff7559;
}

.legend-line.device0 {
  background: #7fa4ff;
}

.legend-line.device1 {
  background: #f6c860;
}

#timeline-canvas {
  display: block;
  width: 100%;
  height: 84px;
  border-radius: 8px;
  background: #0b141b;
}

#live-canvas {
  display: block;
  width: 100%;
  height: 132px;
  border-radius: 8px;
  background: #0b141b;
}

.chart-footnote {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.chart-card .chart-footnote {
  color: #9fb0bc;
}

.missing-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 117, 89, 0.1);
  color: #ffb7a5;
  font-size: 0.68rem;
}

.missing-ranges strong {
  color: #ff7559;
  font-weight: 900;
}

.missing-ranges.clean {
  background: rgba(53, 209, 182, 0.1);
  color: #9adecf;
}

.missing-ranges.clean strong {
  color: #35d1b6;
}

.live-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 8px 2px 0;
}

.live-meta .live-meta-name {
  font-style: normal;
  font-weight: 900;
}

.live-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #9fb0bc;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.live-meta i {
  font-style: normal;
}

.live-meta strong {
  margin-left: auto;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0;
}

.live-meta strong.alert {
  color: #ff9b82;
}

.latest-sample-box {
  margin-top: 8px;
  color: #9fb0bc;
  font-size: 0.66rem;
}

.latest-sample-box summary {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.latest-sample-box pre {
  margin: 7px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #dce8ee;
  background: #0b141b;
  font-size: 0.66rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── result ─────────────────────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.section-heading > p {
  max-width: 530px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.verdict-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.verdict-bar p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.verdict-bar.result-pass {
  border-color: var(--ok);
  background: #f4fbf7;
}

.verdict-bar.result-caution {
  border-color: var(--warn);
  background: #fffdf3;
}

.verdict-bar.result-fail {
  border-color: var(--bad);
  background: #fff6f6;
}

.verdict-badge {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 99px;
  color: white;
  background: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.verdict-badge.verdict-pass {
  background: var(--ok);
}

.verdict-badge.verdict-caution {
  color: #3d2b00;
  background: #f2bd3c;
}

.verdict-badge.verdict-fail {
  background: var(--bad);
}

.caution-box {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--warn);
  border-radius: 4px 10px 10px 4px;
  color: #63511d;
  background: var(--warn-soft);
  font-size: 0.73rem;
  line-height: 1.6;
}

.caution-box strong {
  display: block;
  margin-bottom: 3px;
}

.caution-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.table-frame {
  overflow: auto;
  border: 1px solid #c8d1cc;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
}

.metric-table th,
.metric-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-table th:last-child,
.metric-table td:last-child {
  border-right: 0;
}

.metric-table tbody tr:last-child th,
.metric-table tbody tr:last-child td {
  border-bottom: 0;
}

.metric-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 18px;
  color: white;
  background: var(--dark);
  font-size: 0.78rem;
  text-align: left;
}

.parameter-column {
  width: 22%;
}

.value-column {
  width: 19%;
}

.meaning-column {
  width: 40%;
}

/* デバイス列は接続台数に応じて hidden 属性で出し入れする */
.metric-table .device-column {
  background: #16222b;
}

.metric-table td[data-device="0"] {
  box-shadow: inset 2px 0 0 rgba(127, 164, 255, 0.35);
}

.metric-table td[data-device="1"] {
  box-shadow: inset 2px 0 0 rgba(246, 200, 96, 0.35);
}

.metric-table tbody th {
  padding: 11px 18px;
  background: #f8f9f7;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
}

.metric-table tbody td {
  padding: 11px 18px;
  background: var(--surface);
  font-size: 0.82rem;
}

.metric-table td.metric-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.metric-table td.metric-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.metric-table td.level-ok {
  box-shadow: inset 3px 0 0 var(--ok);
  color: #0b7a69;
}

.metric-table td.level-warn {
  box-shadow: inset 3px 0 0 var(--warn);
  color: #8a6a09;
}

.metric-table td.level-bad {
  box-shadow: inset 3px 0 0 var(--bad);
  color: #c0392b;
}

.notify-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.notify-strip span:first-child {
  color: var(--signal);
  font-weight: 850;
}

.notify-strip span:last-child {
  margin-left: auto;
  color: var(--ink);
  font-weight: 800;
}

.scope-note {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--warn);
  border-radius: 4px 10px 10px 4px;
  color: #63511d;
  background: var(--warn-soft);
  font-size: 0.72rem;
  line-height: 1.6;
}

.scope-note p {
  margin: 0;
}

/* ── explain ────────────────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 34, 43, 0.04);
}

.info-card.accent {
  border-color: #b9e4d9;
  background: #f5fdfa;
}

.info-card.wide {
  grid-column: 1 / -1;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 820;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.info-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.calc-card {
  overflow: auto;
  margin: 10px 0;
  padding: 14px 16px;
  border-radius: 12px;
  color: #dce8ee;
  background: var(--dark);
  font-size: 0.72rem;
  line-height: 1.7;
}

/* ── how / log / footer ─────────────────────────────────────────────── */
.how-section {
  padding-top: 6px;
}

code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  color: #244da6;
  background: #e9efff;
}

.code-card {
  overflow: auto;
  margin: 0;
  padding: 20px;
  border-radius: 15px;
  color: #dce8ee;
  background: var(--dark);
  font: 0.76rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-card code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.log-actions {
  margin-bottom: 8px;
}

.event-log {
  height: 220px;
  overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.68rem;
  line-height: 1.6;
}

.log-line {
  padding: 1px 0;
  border-bottom: 1px solid #f1f3f5;
  word-break: break-word;
}

.log-line:last-child {
  border-bottom: 0;
}

.log-info {
  color: var(--muted);
}

.log-success {
  color: #0b7a69;
}

.log-warn {
  color: #8a6a09;
}

.log-error {
  color: #c0392b;
  font-weight: 750;
}

footer {
  padding: 26px 0 8px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.7;
  text-align: center;
}

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .title-line,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolkit-cluster {
    width: 100%;
  }

  .toolkit-slot {
    flex: 1;
  }

  .section-heading {
    gap: 8px;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner,
  .page-shell {
    width: min(100% - 24px, 1260px);
  }

  .header-inner {
    padding-top: 20px;
  }

  .toolkit-cluster,
  .control-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .control-strip {
    gap: 14px;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .duration-field.narrow input {
    width: 100%;
  }

  .button {
    padding-inline: 8px;
  }

  .buffer-head,
  .notify-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .buffer-guide-text {
    text-align: left;
  }

  .notify-strip span:last-child {
    margin-left: 0;
  }

  .settings-guide p {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-guide p span {
    white-space: normal;
  }

  .chart-toolbar,
  .chart-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .verdict-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
