:root {
  --bg: #ffffff;
  --text: #2c313d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #00b6b1;
  --off: #c7ccd4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2329;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --line: #3a3f47;
    --off: #555b64;
  }
}

* { box-sizing: border-box; }

body {
  width: 320px;
  margin: 0;
  padding: 14px 16px 12px;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

h1 { margin: 0; font-size: 16px; }

.feature { padding: 12px 0; border-bottom: 1px solid var(--line); }

.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.text strong { display: block; margin-bottom: 2px; }
.text small { color: var(--muted); font-size: 12px; }

.switch {
  appearance: none;
  flex: none;
  position: relative;
  width: 36px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 10px;
  background: var(--off);
  cursor: pointer;
  transition: background .15s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

fieldset {
  display: flex;
  gap: 16px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}
fieldset:disabled { opacity: .45; }
legend { float: left; margin-right: 4px; color: var(--muted); }
fieldset label { cursor: pointer; }
input[type="radio"] { accent-color: var(--accent); }

.hint { margin: 10px 0 0; color: var(--muted); font-size: 11.5px; }

.accent { margin-top: 10px; }
.accent.is-disabled { opacity: .45; pointer-events: none; }
.accent-label { display: block; margin-bottom: 6px; color: var(--muted); }
.accent-label small { font-size: 11px; }
.swatches { display: flex; gap: 4px; }
.accent-row { margin-top: 10px; }
.accent-note { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  cursor: pointer;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, .15);
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .12s;
}
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.media-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.media-name { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 56px; height: 32px; border-radius: 4px; object-fit: cover; border: 1px solid var(--line); }
.pick, .btn {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pick:hover, .btn:hover { border-color: var(--accent); }
.pick { margin-left: auto; }
.slider { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.slider input { flex: 1; accent-color: var(--accent); }

.textin {
  width: 100%;
  margin-top: 10px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.textin:focus { border-color: var(--accent); }
.textin:disabled { opacity: .45; }
.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 8px;
  background: #32D27D;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}

/* 첫차, 막차 알림: 밀리초 보기 */
.row.sub-check { margin-top: 6px; padding-left: 2px; }
.row.sub-check input { width: 16px; height: 16px; accent-color: #6e5ae6; }
