*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --border: #dde3ea;
  --text: #10233d;
  --text-dim: #4c6079;
  --text-faint: #8291a3;
  --accent: #1a73e8;
  --accent-strong: #1557b0;
  --accent-soft: rgba(26, 115, 232, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 40px -22px rgba(16, 24, 40, 0.16);
  --max: 480px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

h1 { font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; overflow-wrap: break-word; }
p { margin: 0; color: var(--text-dim); }
.muted { color: var(--text-faint); font-size: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.field {
  display: flex;
  gap: 8px;
}
.field input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.dev-box {
  border: 1px dashed var(--text-faint);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.85rem;
}
.dev-box .label { color: var(--text-faint); margin-bottom: 8px; }

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.progress-track {
  height: 10px;
  background: var(--accent-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.badge.warn { background: #fdecea; color: #b3261e; }

.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: #fbfcfe;
}

.error { color: #b3261e; font-size: 0.85rem; }
.hidden { display: none !important; }

.install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}
.install-section { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.install-section--highlight {
  border: 2px solid #d93025;
  background: #fdecea;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.10);
}
.install-section--highlight .install-banner__body {
  font-size: 0.95rem;
  color: #b3261e;
  font-weight: 700;
}

#youtube-recheck-btn { font-size: 0.8rem; padding: 10px 16px; }
.install-banner__body { color: var(--text); line-height: 1.5; }
.install-banner__actions { display: flex; gap: 8px; align-items: center; }
.install-banner__install { flex: 1; padding: 10px; }
.install-banner__close {
  border: none;
  background: none;
  color: var(--text-faint);
  font-size: 1rem;
  padding: 8px 10px;
  cursor: pointer;
}
