:root {
  --bg: #0b0f17;
  --fg: #e6edf7;
  --muted: #9db0c6;
  --card: #111827;
  --border: #233044;
  --btn: #2f6fed;
  --btn2: #1f2a3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Noto Sans",
    Arial,
    sans-serif;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hdr {
  margin-bottom: 16px;
}

.ttl {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}

.sub {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.row-glitter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lbl {
  min-width: 120px;
  color: var(--muted);
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--btn);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button.ghost {
  background: var(--btn2);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.log {
  margin: 12px 0 0;
  padding: 12px;
  background: #0c1220;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cfe0ff;
}

.out {
  margin-top: 12px;
}

video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: black;
}

.segbox {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #0c1220;
}

.seghead {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.segttl {
  font-weight: 800;
}

input,
select {
  background: #0b0f17;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  padding: 10px 12px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

a {
  color: #cfe0ff;
}

.seghint {
  color: var(--muted);
  font-size: 12px;
}

.seglist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.segitem {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b0f17;
}

.segmeta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.segchip {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #cfe0ff;
  font-size: 13px;
}

.segbtn {
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--btn2);
  color: var(--fg);
  font-weight: 800;
}
