*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #5865f2;
  --primary-dk: #4752c4;
  --bg:         #f0f2f5;
  --surface:    #ffffff;
  --border:     #e2e5eb;
  --text:       #1a1b2e;
  --muted:      #6b7280;
  --online:     #22c55e;
  --error:      #ef4444;
  --nav-bg:     #1a1b2e;
  --radius:     10px;
  --sidebar-w:  220px;
  --topbar-h:   48px;
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--nav-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,0.18);
}

.sidebar-logo {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  padding: 22px 20px 18px;
  flex-shrink: 0;
}

.sidebar-logo span { color: var(--primary); }

.sidebar-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 6px;
}

.sidebar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-username {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav { flex: 1; padding-bottom: 8px; }

.tree { list-style: none; }

.tree-link {
  display: block;
  padding: 7px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s, background 0.15s;
}

.tree-link:hover { color: #fff; background: rgba(255,255,255,0.07); }

.tree-link.active {
  color: var(--primary);
  background: rgba(88,101,242,0.15);
  border-left: 3px solid var(--primary);
  padding-left: 17px;
}

.tree-group { margin-top: 6px; }

.tree-group__label {
  padding: 5px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  user-select: none;
}

.tree-children {
  list-style: none;
  padding-bottom: 4px;
}

.tree-children .tree-link { padding-left: 32px; }
.tree-children .tree-link.active { padding-left: 29px; }

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.sidebar-logout {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  transition: color 0.15s;
}

.sidebar-logout:hover { color: rgba(255,255,255,0.8); }

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.topbar-item + .topbar-item::before {
  content: '';
  width: 1px;
  height: 14px;
  background: var(--border);
  margin-right: 13px;
}

.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  background: var(--nav-bg);
}

.login-wrap {
  text-align: center;
  padding: 48px 40px;
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.login-logo {
  display: block;
  height: 100px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.login-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.login-title span { color: var(--primary); }

.login-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.btn-chzzk-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s, transform 0.12s;
  box-shadow: 0 4px 14px rgba(88,101,242,0.4);
}

.btn-chzzk-login:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
}

.btn-chzzk-login:active { transform: translateY(0); }

.error-msg {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.dashboard-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.bot-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bot-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.bot-status--online     { background: #dcfce7; color: #16a34a; }
.bot-status--offline    { background: #f3f4f6; color: #9ca3af; }
.bot-status--connecting { background: #fef9c3; color: #b45309; }
.bot-status--error      { background: #fee2e2; color: var(--error); }

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
}

.bot-account-section { margin-bottom: 32px; }

.bot-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 400px;
}

.bot-account-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-account-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.bot-account-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 20px;
}

.bot-account-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 400px;
}

.bot-account-empty p {
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1;
}

.avatar--sm {
  width: 36px;
  height: 36px;
  border-width: 2px;
  flex-shrink: 0;
}

.avatar--placeholder {
  background: var(--border);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.plugin-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plugin-card--on {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88,101,242,0.12);
}

.plugin-card__name {
  font-weight: 700;
  font-size: 0.975rem;
}

.plugin-card__desc {
  color: var(--muted);
  font-size: 0.8rem;
  flex: 1;
  line-height: 1.5;
}

.toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 6px;
}

.toggle__input { display: none; }

.toggle__track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}

.toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle__input:checked + .toggle__track {
  background: var(--primary);
}

.toggle__input:checked + .toggle__track::after {
  transform: translateX(20px);
}

.toggle--sm .toggle__track {
  width: 34px;
  height: 19px;
  border-radius: 10px;
}

.toggle--sm .toggle__track::after {
  width: 13px;
  height: 13px;
  top: 3px;
  left: 3px;
}

.toggle--sm .toggle__input:checked + .toggle__track::after {
  transform: translateX(15px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  background: #e5e7eb;
  color: var(--text);
}

.btn:hover { opacity: 0.82; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(88,101,242,0.35);
}

.btn--danger {
  background: #fee2e2;
  color: var(--error);
}

.btn--sm { padding: 4px 10px; font-size: 0.8rem; border-radius: 5px; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cmd-table th,
.cmd-table td {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.cmd-table th {
  background: #f8f9fb;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table tbody tr:hover td { background: #fafbfd; }
.cmd-table .table-empty { text-align: center; color: var(--muted); padding: 28px 16px; }

.response-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.flash--success { background: #dcfce7; color: #166534; }
.flash--error   { background: #fee2e2; color: #991b1b; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] { display: none; }
[hidden] { display: none !important; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 480px;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-input { resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tab-bar {
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text); }

.tab-btn--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.section-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8f9fb;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.section-block__title {
  font-size: 0.875rem;
  font-weight: 700;
}

.section-block__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e0e3ff;
  color: var(--primary);
}

.section-block__badge--custom {
  background: #f0fdf4;
  color: #16a34a;
}

.section-block__empty {
  padding: 24px 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 5px;
}

.badge--default {
  background: #e0e3ff;
  color: var(--primary);
}

.badge--builtin {
  background: #f3f4f6;
  color: var(--muted);
}

.perm-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.perm-badge--everyone {
  background: rgba(99,102,241,0.12);
  color: #818cf8;
}
.perm-badge--manager {
  background: rgba(234,179,8,0.12);
  color: #ca8a04;
}
.perm-badge--streamer {
  background: rgba(74,222,128,0.12);
  color: #16a34a;
}

.vars-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.vars-intro strong { color: var(--text); }

.vars-section {
  margin-bottom: 32px;
}
.vars-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.vars-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  font-size: 0.875rem;
}
.vars-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #f8f9fb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.vars-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  line-height: 1.6;
}
.vars-table tr:last-child td { border-bottom: none; }
.vars-table tbody tr:hover td { background: #fafbfd; }

.var-code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  background: #eef0fe;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
  font-weight: 600;
}
.vars-example {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Consolas', monospace;
}
.vars-arrow {
  color: var(--primary);
  font-family: sans-serif;
}

.vars-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.vars-ex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.vars-ex-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.vars-ex-card__code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.8rem;
  color: var(--primary);
  background: #eef0fe;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.6;
  word-break: break-all;
}
.vars-ex-card__result {
  font-size: 0.82rem;
  color: var(--text);
  background: #f8f9fb;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.6;
  border-left: 3px solid var(--primary);
}

.cal-lunar-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.cal-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.cal-grid {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  overflow: hidden;
}
.cal-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--border);
}
.cal-weekday {
  text-align: center;
  padding: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.cal-weekday--sun { color: #ef4444; }
.cal-weekday--sat { color: var(--primary); }
.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 100px;
  padding: 6px;
  cursor: pointer;
  transition: background 0.1s;
  overflow: hidden;
}
.cal-cell:hover { background: #f8f9fb; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell--empty {
  background: #fafbfc;
  cursor: default;
}
.cal-cell--empty:hover { background: #fafbfc; }
.cal-cell--today { background: #eef0fe; }
.cal-cell--today:hover { background: #e6e8fd; }
.cal-cell__head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.cal-cell__num {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cal-cell--today .cal-cell__num {
  background: var(--primary);
  color: #fff;
}
.cal-cell--sun .cal-cell__num { color: #ef4444; }
.cal-cell--sat .cal-cell__num { color: var(--primary); }
.cal-cell--today.cal-cell--sun .cal-cell__num,
.cal-cell--today.cal-cell--sat .cal-cell__num { color: #fff; }
.cal-cell__lunar {
  font-size: 0.6rem;
  color: var(--muted);
}
.cal-cell__holiday {
  font-size: 0.62rem;
  color: #ef4444;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  transition: opacity 0.1s;
  line-height: 1.6;
}
.cal-event:hover { opacity: 0.75; }

.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  outline: none;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch--active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor;
  transform: scale(1.1);
}

.ev-date-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.code-block {
  background: #1e2130;
  color: #a8b5d6;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  text-align: left;
  margin: 16px auto 0;
  max-width: 520px;
  white-space: pre;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px dashed var(--border);
}

.empty-state__icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.empty-state__title {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state__desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.sr-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.sr-player-col {
  flex: 0 0 460px;
  max-width: 460px;
}
.sr-info-col {
  flex: 1;
  min-width: 0;
}
@media (max-width: 860px) {
  .sr-layout { flex-direction: column; }
  .sr-player-col { flex: none; max-width: 100%; width: 100%; }
}

.sr-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.sr-video-wrap #yt-player {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}
.sr-no-video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0d0f1a;
  color: var(--muted);
  pointer-events: none;
}
.sr-no-video__icon { font-size: 2.2rem; margin-bottom: 8px; }
.sr-no-video__text { font-size: 0.85rem; }

.sr-cmd-section {
  margin-top: 24px;
}
.sr-cmd-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.sr-cmd-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 4px;
  font-family: 'Consolas','Monaco',monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 4px;
  white-space: nowrap;
}

.sr-cmd-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.sr-cmd-note__hint {
  opacity: 0.7;
}

.sr-example {
  font-family: 'Consolas','Monaco',monospace;
  font-size: 0.78rem;
  color: #c9d1d9;
  line-height: 2;
}
.sr-example__cmd {
  color: var(--accent);
  font-weight: 600;
}

.sr-toggle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--online);
  transition: color 0.2s;
}

.sr-vol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.sr-mute-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px;
  line-height: 1;
  color: var(--fg);
  flex-shrink: 0;
}
.sr-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: #1e2035;
  outline: none;
  cursor: pointer;
}
.sr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
  transition: transform 0.1s;
}
.sr-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.sr-slider::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: #1e2035;
}
.sr-slider::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--accent);
}
.sr-slider::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.sr-vol-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.sr-now-playing {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.sr-now-playing__label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.sr-now-playing__thumb {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}
.sr-now-playing__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 3px;
  word-break: break-word;
}
.sr-now-playing__meta { font-size: 0.77rem; color: var(--muted); }

.sr-btns { display: flex; gap: 8px; margin-bottom: 16px; }

.sr-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.sr-queue-count { font-weight: 400; }

.sr-queue-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
}
.sr-queue-empty {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 14px 0;
  text-align: center;
}

.sr-queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.13s;
}
.sr-queue-item--playing {
  border-color: var(--accent);
  background: rgba(99,102,241,0.06);
}
.sr-queue-item__num {
  font-size: 0.72rem;
  color: var(--muted);
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.sr-queue-item--playing .sr-queue-item__num { color: var(--accent); }
.sr-queue-item__thumb {
  width: 48px; height: 34px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.sr-queue-item__thumb--empty {
  background: var(--border);
}
.sr-queue-item__body { flex: 1; min-width: 0; }
.sr-queue-item__title {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-queue-item__meta { font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.sr-queue-item__del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.13s, background 0.13s;
}
.sr-queue-item__del:hover { color: #f87171; background: rgba(248,113,113,0.1); }

.var-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}
.var-chips__label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-right: 2px;
  white-space: nowrap;
}
.var-chip {
  padding: 2px 8px;
  background: #eef0fe;
  border: 1px solid #c7cbf9;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: 'Consolas','Monaco',monospace;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s;
  line-height: 1.7;
}
.var-chip:hover {
  background: #dde0fc;
  border-color: var(--primary);
}

.info-box {
  background: rgba(88,101,242,0.07);
  border: 1.5px solid rgba(88,101,242,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.info-box code {
  background: rgba(88,101,242,0.13);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Consolas', 'Monaco', monospace;
}

.copy-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-group .form-input {
  flex: 1;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  cursor: text;
}

.settings-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-section__header {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.875rem;
  background: #f8f9fb;
}

.settings-section__body {
  padding: 20px;
}

.stat-row {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  min-width: 120px;
}

.stat-card--online { border-color: rgba(34,197,94,0.4); }

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card--online .stat-card__value { color: var(--online); }

.stat-card__label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.admin-table .avatar--sm {
  display: block;
  margin: 0 auto;
}

.lp-body {
  padding: 0;
  background: #fff;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;
}

.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 16, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
  padding: 0 24px;
}

.lp-nav__inner {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.lp-hero {
  position: relative;
  min-height: 70vh;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #1e2260 0%, #0f1020 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lp-hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88,101,242,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lp-hero__inner {
  position: relative;
  text-align: center;
  padding: 72px 24px 60px;
  max-width: 680px;
}

.lp-hero__logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 40px;
}

.lp-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.lp-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 40px;
}

.lp-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 32px rgba(88,101,242,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.lp-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(88,101,242,0.55);
}

.lp-hero__cta-arrow {
  transition: transform 0.15s;
}

.lp-hero__cta:hover .lp-hero__cta-arrow {
  transform: translateX(4px);
}

.lp-hero__free {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

.lp-section {
  padding: 96px 24px;
}

.lp-section--light { background: #f4f5f9; }
.lp-section--white { background: #ffffff; }

.lp-section__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.lp-section__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 10px;
}

.lp-section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.lp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.lp-step {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  padding: 16px;
}

.lp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.lp-step__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.lp-step__title {
  font-weight: 700;
  font-size: 0.975rem;
  margin-bottom: 6px;
}

.lp-step__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.lp-step__divider {
  width: 48px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 16px;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.lp-feature-card {
  background: #f8f9fc;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lp-feature-card:hover {
  border-color: rgba(88,101,242,0.35);
  box-shadow: 0 4px 20px rgba(88,101,242,0.08);
}

.lp-feature-card__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.lp-feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.lp-feature-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.lp-feature-card__desc code {
  background: rgba(88,101,242,0.1);
  color: var(--primary);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Consolas', 'Monaco', monospace;
}

.lp-cta {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, #1e2260 0%, #0f1020 70%);
  padding: 100px 24px;
  text-align: center;
}

.lp-cta__inner {
  max-width: 560px;
  margin: 0 auto;
}

.lp-cta__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.lp-cta__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  line-height: 1.7;
}

.lp-footer {
  background: #0a0b14;
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

@media (max-width: 640px) {
  .lp-nav { padding: 0 20px; }
  .lp-step__divider { display: none; }
  .lp-steps { gap: 16px; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-section { padding: 64px 20px; }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  body { padding-left: 0; padding-top: var(--topbar-h); }

  .sidebar { display: none; }

  .topbar { left: 0; }

  .container { padding: 20px 14px; }

  .login-wrap { padding: 36px 24px; margin: 20px; max-width: none; }

  .plugin-grid { grid-template-columns: 1fr 1fr; }

  .cmd-table th:nth-child(3),
  .cmd-table td:nth-child(3),
  .cmd-table th:nth-child(4),
  .cmd-table td:nth-child(4) { display: none; }
}
