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

body {
  font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: #19181D;
  color: #fff;
  margin: 0 auto;
   min-height: 100vh;
  padding: 16px;
}

.phone {
  max-width: 375px;
  margin: 0 auto;
}

header h1 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 24px;
  text-align: left;
}

.tab-menu {
  display: flex;
  gap: 12px;
  margin: 10px 0 24px;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
  background: #2a2a2e;
  color: #fff;
  font-weight: 700;
  transition: background .2s;
}

.tab.active[data-target="kbs"] {
  background: #ff4b7b;
}

.tab.active[data-target="mbc"] {
  background: #7c4dff;
}

.tab.active[data-target="sbs"] {
  background: #27bf62;
}

.notice {
  background: #fff;
  color: #000;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.notice h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.notice ul {
  margin: 0 0 8px 16px;
}

.notice li {
  margin: 4px 0;
}

.extra {
  font-size: 0.82rem;
  color: #b10000;
}

.template-box {
  background: #2c2c2f;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  
}

.template-box h3 {
  font-size: .95rem;
  margin-bottom: 8px;
  opacity: .9;
 
}

.template-box textarea {
  width: 100%;
  min-height: 72px;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.94rem;
  background: #1f1f22;
  color: #fff;
  outline: none;
}

.radio-list h3.center-4 {
  text-align: center;     /* 중앙정렬 */
  margin-bottom: 12px;     /* 아래 간격 4px */
}

/* 라디오 리스트 스크롤 + 커스텀 스크롤바 */
.radio-list {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #999999 #1a1a1e;
}

.radio-list.show {
  display: block;
  opacity: 1;
  margin-bottom: 48px;
}

.radio-list::-webkit-scrollbar {
  width: 8px;
}

.radio-list::-webkit-scrollbar-track {
  background: #1a1a1e;
  border-radius: 10px;
}

.radio-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c4dff, #bb77ff);
  border-radius: 10px;
}

.radio-list h3 {
  margin: 8px 0 10px;
  font-size: 1rem;
}
.extra .green-bold {
  color: #3fa9f5;
  font-weight: 600; /* 굵게 */
}
.highlight {
  color: #3fa9f5;
  font-weight: 800;
}

.sub-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}

.sub-tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 999px;
  background: #2a2a2e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.sub-tab.active {
  background: #27bf62;
}

.radio-item {
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}

.radio-item.gray {
  background: #d9d9dd;
  color: #000;
}

.radio-item.green {
  background: #3fa9f5;
  color: #fff;
}

.time {
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.radio-title {
  margin-bottom: 10px;
  font-size: 0.92rem;
   font-weight: 600;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btns button {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.edit {
  background: #ffffff;
  color: #000;
}

.send {
  background: #bb77ff;
  color: #fff;
}

.copy {
  background: #f2f2f2;
  color: #000;
}

.board {
  background: #f2f2f2;
  color: #000;
}

.spacer {
  height: 24px;
}

/* 토스트 스타일 */
.toast {
  visibility: hidden;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 60px;
}