/* ======== Reset / base (옛 아이팟 사파리 호환: 최신 CSS 기능 안 씀) ======== */
* { -webkit-box-sizing: border-box; box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  color: #f0f0f0;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(255,255,255,0.1);
}
body { min-height: 100%; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
a { color: #a5b4fc; text-decoration: none; }
img { border: 0; }

.hidden { display: none !important; }

/* ======== 잠금 화면 ======== */
.screen { min-height: 100vh; padding: 40px 20px; text-align: center; }
.lock-inner { max-width: 320px; margin: 0 auto; padding-top: 60px; }
.lock-logo {
  background: transparent; border: 0; padding: 0;
  display: block; margin: 0 auto 20px auto; -webkit-appearance: none;
}
.lock-emoji {
  width: 80px; height: 80px; line-height: 80px; margin: 0 auto;
  background: #4f46e5; color: #fff; border-radius: 40px;
  font-size: 36px; font-weight: bold; text-align: center;
}
.lock-title { margin: 12px 0 0 0; font-size: 22px; color: #c7d2fe; }
.lock-hint { color: #888; font-size: 14px; margin: 24px 0 16px 0; }
.lock-form input {
  display: block; width: 100%; padding: 12px 14px; margin-bottom: 12px;
  background: #2a2a2a; color: #f0f0f0; border: 1px solid #444;
  border-radius: 10px; font-size: 16px; -webkit-appearance: none;
}
.lock-form input:focus { outline: none; border-color: #6366f1; }
.lock-error { color: #f87171; font-size: 12px; min-height: 16px; margin: 4px 0 12px 0; }
.btn-primary {
  display: block; width: 100%; padding: 14px;
  background: #4f46e5; color: #fff; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: bold; -webkit-appearance: none;
}
.btn-primary:active { background: #4338ca; }

/* ======== PIN 패드 ======== */
.pin-inner { max-width: 320px; margin: 0 auto; padding-top: 40px; }
.pin-dots {
  height: 32px; line-height: 32px; font-size: 22px;
  letter-spacing: 10px; color: #c7d2fe;
  margin: 16px 0 4px 0; text-align: center;
}
.pin-pad {
  margin: 12px auto 0 auto; max-width: 270px;
  font-size: 0; /* inline-block 공백 제거 */
  text-align: center;
}
.pin-btn, .pin-fn {
  display: inline-block; vertical-align: top;
  width: 70px; height: 70px; margin: 6px;
  border-radius: 35px;
  font-size: 24px; font-weight: bold;
  text-align: center; line-height: 70px;
  border: 1px solid #444;
  background: #2a2a2a; color: #f0f0f0;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(255,255,255,0.15);
}
.pin-btn:active, .pin-fn:active { background: #4f46e5; border-color: #4f46e5; }
.pin-ok { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.pin-ok:active { background: #4338ca; }

/* ======== 앱 틀 ======== */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; }

.header {
  background: #4f46e5; color: #fff; padding: 14px 12px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.header-inner {
  position: relative; text-align: center; min-height: 32px;
  max-width: 536px; margin: 0 auto;
}
.header-title {
  margin: 0; font-size: 18px; font-weight: bold; line-height: 32px;
  padding: 0 118px 0 44px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-manage, .header-back, .header-help, .header-add, .header-remember {
  position: absolute; top: 0; width: 32px; height: 32px; line-height: 32px;
  background: rgba(255,255,255,0.2); border: 0; color: #fff;
  border-radius: 16px; text-align: center; font-size: 18px; font-weight: bold;
  padding: 0; -webkit-appearance: none;
}
.header-manage { left: 0; font-size: 16px; }
.header-back { left: 0; font-size: 22px; line-height: 30px; }
.header-add { right: 80px; font-size: 22px; line-height: 30px; background: #16a34a; }
.header-add:active { background: #15803d; }
.header-remember { right: 40px; }
.header-help { right: 0; }
.header-manage:active, .header-back:active, .header-help:active,
.header-remember:active { background: rgba(255,255,255,0.35); }
.header-remember.active { background: #f59e0b; color: #1f1300; }

.content { padding: 12px; padding-top: 72px; min-height: 60vh; }
.footer { text-align: center; color: #555; font-size: 11px; padding: 20px 12px; }

.loading { text-align: center; color: #888; padding: 60px 20px; }
.error-box { text-align: center; padding: 40px 20px; }
.error-box p { color: #f87171; margin: 0 0 12px 0; }
.error-box button {
  background: transparent; border: 1px solid #6366f1; color: #a5b4fc;
  padding: 8px 16px; border-radius: 8px; -webkit-appearance: none;
}

/* ======== 섹션 제목 / 목록 ======== */
.section-title {
  margin: 14px 4px 8px 4px; font-size: 12px; color: #888;
  font-weight: bold; letter-spacing: 0.06em; text-transform: uppercase;
}
.list { list-style: none; margin: 0; padding: 0; }
.list li { margin-bottom: 8px; }
.list-item {
  display: block; padding: 14px; background: #2a2a2a;
  border: 1px solid #333; border-radius: 10px; color: #f0f0f0;
  text-decoration: none; position: relative;
  -webkit-tap-highlight-color: rgba(255,255,255,0.05);
}
.list-item:active { background: #333; }
.list-item .li-title {
  display: inline-block; font-weight: 500; vertical-align: middle;
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.list-item .li-meta {
  position: absolute; right: 30px; top: 50%; margin-top: -10px;
  color: #888; font-size: 12px;
}
.list-item .li-arrow {
  position: absolute; right: 12px; top: 50%; margin-top: -10px;
  color: #666; font-size: 18px;
}
.list-item .li-icon {
  display: inline-block; width: 28px; margin-right: 8px; text-align: center;
  vertical-align: middle; color: #a5b4fc; font-weight: bold;
}

.all-link {
  display: block; padding: 14px; background: #312e81;
  border: 1px solid #3730a3; border-radius: 10px; color: #fff;
  margin-bottom: 12px; text-decoration: none; position: relative;
}
.all-link .al-title { font-weight: bold; }
.all-link .li-meta { color: #c7d2fe; }

/* ======== 처리 중 알림 상자(홈) ======== */
.jobs-box {
  background: #172554; border: 1px solid #1e40af; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 12px;
}
.jobs-box p { margin: 2px 0; font-size: 12px; color: #bfdbfe; }
.jobs-box .jobs-title {
  font-weight: bold; color: #dbeafe; font-size: 12px;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.jobs-box .job-err { color: #fca5a5; }

/* ======== 곡 카드 ======== */
.song {
  background: #2a2a2a; border: 1px solid #333; border-radius: 10px;
  margin-bottom: 10px; overflow: hidden;
}
.song-head { padding: 10px 12px 6px 12px; }
.song-title {
  margin: 0; font-size: 14px; font-weight: 500; color: #f0f0f0;
  word-break: break-word;
}
.song-type { margin: 4px 0 0 0; font-size: 11px; color: #777; }

.song-player { padding: 0 10px 4px 10px; }
.song-player audio { display: block; width: 100%; }
.song-status {
  padding: 10px 12px; font-size: 12px; color: #93c5fd;
  background: #1f2937; border-radius: 8px;
}
.song-status.err { color: #fca5a5; }
.song-status .retry-btn {
  margin-left: 8px; padding: 4px 10px; font-size: 11px;
  background: #374151; border: 1px solid #4b5563; color: #e5e7eb;
  border-radius: 6px; -webkit-appearance: none;
}

.song-actions { padding: 6px 8px 10px 8px; border-top: 1px solid #333; }
.song-actions button, .song-actions .open-link {
  display: inline-block; margin: 4px 4px 0 0; padding: 8px 12px;
  background: #3a3a3a; border: 1px solid #444; color: #ddd;
  border-radius: 8px; font-size: 12px; text-decoration: none;
  -webkit-appearance: none;
}
.song-actions button:active, .song-actions .open-link:active { background: #555; }
.song-actions button.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.song-actions .lyrics-btn { background: #312e81; border-color: #4338ca; color: #c7d2fe; }
.song-actions .lyrics-btn:active { background: #4338ca; color: #fff; }
.song-actions .image-btn { background: #3b2f14; border-color: #7c5c14; color: #fcd34d; }
.song-actions .image-btn:active { background: #7c5c14; color: #fff; }
.song-actions .pencil-btn { background: #333; }
.song-actions .add-btn { background: #14532d; border-color: #166534; color: #bbf7d0; }
.song-actions .add-btn:active { background: #166534; color: #fff; }
.song-actions .remove-btn { background: #4c1d2c; border-color: #7f1d1d; color: #fda4af; }
.song-actions .remove-btn:active { background: #7f1d1d; color: #fff; }

.video-frame {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
  background: #000; border-radius: 8px; overflow: hidden; margin-top: 6px;
}
.video-frame iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ======== 전체화면 뷰(가사·이미지) ======== */
.fs {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #111; z-index: 500; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fs-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 510;
  background: rgba(20,20,20,0.95); border-bottom: 1px solid #2a2a2a;
  padding: 10px 12px; min-height: 52px;
}
.fs-header-inner { position: relative; max-width: 560px; margin: 0 auto; min-height: 32px; }
.fs-title {
  margin: 0; font-size: 15px; font-weight: bold; line-height: 32px;
  color: #e5e5e5; text-align: center; padding: 0 44px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fs-close, .fs-pencil {
  position: absolute; top: 0; width: 32px; height: 32px; line-height: 32px;
  border: 0; border-radius: 16px; text-align: center; font-size: 18px;
  padding: 0; -webkit-appearance: none;
}
.fs-close { left: 0; background: #333; color: #fff; font-size: 22px; line-height: 30px; }
.fs-pencil { right: 0; background: #333; color: #fcd34d; font-size: 15px; }
.fs-close:active, .fs-pencil:active { background: #4b5563; }

.fs-body { max-width: 560px; margin: 0 auto; padding: 68px 20px 110px 20px; }
.fs-lyrics {
  font-size: 19px; line-height: 1.8; color: #fde68a;
  white-space: pre-wrap; word-break: break-word;
}
.fs-lyrics-empty { color: #777; text-align: center; padding: 80px 10px; font-size: 15px; }
.fs-edit textarea {
  display: block; width: 100%; min-height: 320px; padding: 12px;
  background: #1f1f1f; color: #fde68a; border: 1px solid #444;
  border-radius: 10px; font-size: 16px; line-height: 1.7;
  font-family: inherit; -webkit-appearance: none;
}
.fs-edit-actions { margin-top: 10px; }
.fs-edit-actions button {
  display: inline-block; padding: 12px 18px; margin-right: 8px;
  border: 0; border-radius: 10px; font-size: 14px; font-weight: bold;
  -webkit-appearance: none;
}
.fs-save { background: #16a34a; color: #fff; }
.fs-save:active { background: #15803d; }
.fs-cancel { background: #333; color: #ccc; }
.fs-cancel:active { background: #444; }

.fs-image-wrap { text-align: center; }
.fs-image-wrap img {
  max-width: 100%; height: auto; border-radius: 10px;
  background: #000;
}
.fs-image-empty { color: #777; text-align: center; padding: 80px 10px; font-size: 15px; }
.fs-img-actions { margin-top: 14px; text-align: center; }
.fs-img-actions .fs-file-btn {
  display: inline-block; padding: 12px 18px; margin: 4px;
  background: #4f46e5; color: #fff; border: 0; border-radius: 10px;
  font-size: 14px; font-weight: bold; -webkit-appearance: none;
}
.fs-img-actions .fs-img-del {
  display: inline-block; padding: 12px 18px; margin: 4px;
  background: #7f1d1d; color: #fecaca; border: 0; border-radius: 10px;
  font-size: 14px; font-weight: bold; -webkit-appearance: none;
}
.fs-img-note { color: #888; font-size: 12px; margin-top: 10px; }

/* 하단 재생 바(전체화면 안) */
.fs-playbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 510;
  background: rgba(20,20,20,0.97); border-top: 1px solid #2a2a2a;
  padding: 12px;
}
.fs-playbar-inner { max-width: 560px; margin: 0 auto; position: relative; }
.fs-play-btn {
  display: block; width: 100%; padding: 14px;
  background: #16a34a; color: #fff; border: 0; border-radius: 12px;
  font-size: 16px; font-weight: bold; -webkit-appearance: none;
}
.fs-play-btn:active { background: #15803d; }
.fs-play-btn.playing { background: #b45309; }
.fs-play-none {
  display: block; width: 100%; padding: 14px; text-align: center;
  background: #262626; color: #777; border-radius: 12px; font-size: 13px;
}

/* ======== 관리(폴더 트리) 페이지 ======== */
.tree-folder {
  background: #2a2a2a; border: 1px solid #333; border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.tree-folder-head { position: relative; padding: 13px 92px 13px 12px; }
.tree-folder-head .tf-toggle {
  background: transparent; border: 0; color: #f0f0f0; padding: 0;
  font-size: 14px; font-weight: bold; -webkit-appearance: none;
  text-align: left; width: 100%;
}
.tree-folder-head .tf-count { color: #888; font-weight: normal; font-size: 12px; }
.tree-folder-head .tf-del {
  position: absolute; right: 8px; top: 50%; margin-top: -14px;
  padding: 5px 10px; font-size: 11px; background: #4c1d2c;
  border: 1px solid #7f1d1d; color: #fda4af; border-radius: 8px;
  -webkit-appearance: none;
}
.tree-songs { border-top: 1px solid #333; }
.tree-song {
  position: relative; padding: 11px 130px 11px 26px;
  border-bottom: 1px solid #262626; font-size: 13px; color: #ddd;
  word-break: break-word;
}
.tree-song:last-child { border-bottom: 0; }
.tree-song .ts-btns { position: absolute; right: 8px; top: 50%; margin-top: -14px; }
.tree-song .ts-btns button {
  padding: 5px 10px; font-size: 11px; margin-left: 4px;
  background: #3a3a3a; border: 1px solid #444; color: #ddd;
  border-radius: 8px; -webkit-appearance: none;
}
.tree-song .ts-btns .ts-del { background: #4c1d2c; border-color: #7f1d1d; color: #fda4af; }
.tree-new-folder { margin: 14px 0; position: relative; padding-right: 80px; min-height: 42px; }
.tree-new-folder input {
  display: block; width: 100%; padding: 11px 12px;
  background: #1f1f1f; border: 1px solid #444; border-radius: 8px;
  color: #f0f0f0; font-size: 13px; -webkit-appearance: none;
}
.tree-new-folder #nf-go {
  position: absolute; right: 0; top: 0; height: 40px; padding: 0 12px;
  background: #4f46e5; color: #fff; border: 0; border-radius: 8px;
  font-size: 13px; font-weight: bold; -webkit-appearance: none;
}

/* ======== 도움말 ======== */
.help-lang { margin: 4px 0 14px 0; }
.help-lang-btn {
  display: inline-block; width: 49%; padding: 8px 0;
  background: #2a2a2a; border: 1px solid #444; color: #aaa;
  border-radius: 8px; font-size: 14px; font-weight: bold; -webkit-appearance: none;
}
.help-lang-btn.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.help-section {
  background: #2a2a2a; border: 1px solid #333; border-radius: 10px;
  padding: 14px 16px; margin: 12px 0;
}
.help-section h2 { margin: 0 0 8px 0; font-size: 15px; color: #c7d2fe; }
.help-section p { color: #ccc; font-size: 13px; line-height: 1.6; margin: 6px 0; }
.help-section ul, .help-section ol {
  color: #ccc; font-size: 13px; padding-left: 20px; margin: 6px 0; line-height: 1.6;
}
.help-section li { margin: 3px 0; }
.help-note {
  background: #1f1f1f; border: 1px solid #333; border-radius: 8px;
  padding: 8px 10px; font-size: 12px; color: #aaa; margin-top: 8px;
}

/* ======== 빈 상태 ======== */
.empty { text-align: center; padding: 60px 20px; color: #888; }
.empty-emoji { font-size: 32px; margin-bottom: 8px; }
.empty-sub { color: #666; font-size: 12px; margin-top: 4px; }

/* ======== 마이 플레이리스트 행 ======== */
.my-pl-row { position: relative; margin-bottom: 8px; }
.my-pl-row .my-pl-link {
  display: block; background: #2a2a2a; border: 1px solid #312e81;
  border-radius: 10px; color: #f0f0f0; text-decoration: none;
  position: relative; padding: 14px 56px 14px 14px;
}
.my-pl-row .my-pl-link .li-arrow { display: none; }
.my-pl-row .my-pl-link .li-meta { right: 56px; }
.my-pl-row .my-pl-link:active { background: #333; }
.my-pl-del {
  position: absolute; top: 50%; right: 6px; margin-top: -16px;
  width: 32px; height: 32px; line-height: 28px; text-align: center;
  background: transparent; border: 1px solid #444; color: #aaa;
  border-radius: 16px; font-size: 14px; font-weight: bold; padding: 0;
  -webkit-appearance: none; cursor: pointer;
}
.my-pl-del:active { background: #4c1d2c; color: #fda4af; }

/* ======== 이어재생(Play All) 바 ======== */
.play-all-bar { margin-bottom: 10px; }
.play-all-btn {
  display: block; width: 100%; padding: 14px; background: #15803d;
  color: #fff; border: 0; border-radius: 10px; font-size: 15px;
  font-weight: bold; -webkit-appearance: none;
}
.play-all-btn:active { background: #166534; }
.play-all-disabled { background: #3a3a3a; color: #888; font-weight: normal; }
.play-all-now {
  background: #052e16; border: 1px solid #166534; border-radius: 10px;
  padding: 10px 12px; position: relative; min-height: 56px;
}
.play-all-now-info { padding-right: 80px; }
.pa-now-label {
  margin: 0; font-size: 11px; color: #86efac;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pa-now-title {
  margin: 4px 0 0 0; font-size: 13px; color: #dcfce7;
  font-weight: 500; word-break: break-word;
}
.pa-stop-btn {
  position: absolute; top: 50%; right: 10px; margin-top: -16px;
  padding: 6px 12px; background: #7f1d1d; color: #fecaca; border: 0;
  border-radius: 8px; font-size: 12px; font-weight: bold; -webkit-appearance: none;
}
.pa-stop-btn:active { background: #991b1b; }
.song-active { -webkit-box-shadow: 0 0 0 2px #16a34a; box-shadow: 0 0 0 2px #16a34a; }
.song-dim { opacity: 0.4; }

/* ======== 팝업 공통 ======== */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65); z-index: 999;
}
.modal-sheet {
  position: absolute; bottom: 0; left: 0; right: 0; max-width: 560px;
  margin: 0 auto; background: #2a2a2a; border-top: 1px solid #333;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  padding: 16px; max-height: 85%; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-confirm {
  position: absolute; top: 50%; left: 16px; right: 16px; margin-top: -100px;
  max-width: 360px; margin-left: auto; margin-right: auto;
  background: #2a2a2a; border: 1px solid #333; border-radius: 14px;
  padding: 18px 16px;
}
.modal-flash {
  position: absolute; top: 50%; left: 50%; width: 220px;
  margin-left: -110px; margin-top: -50px; background: #2a2a2a;
  border: 1px solid #333; border-radius: 14px; padding: 18px; text-align: center;
}
.modal-flash-icon { margin: 0; font-size: 22px; color: #16a34a; font-weight: bold; }
.modal-flash-text { margin: 6px 0 0 0; font-size: 14px; color: #f0f0f0; }
.modal-title { margin: 0 0 4px 0; font-size: 16px; font-weight: bold; color: #f0f0f0; }
.modal-sub { margin: 0 0 12px 0; font-size: 12px; color: #888; word-break: break-word; }
.modal-list { list-style: none; margin: 0 0 10px 0; padding: 0; }
.modal-list li { margin-bottom: 6px; }
.modal-pl-btn {
  display: block; width: 100%; text-align: left; padding: 12px;
  background: #333; border: 1px solid #444; border-radius: 10px;
  color: #f0f0f0; font-size: 13px; position: relative; -webkit-appearance: none;
}
.modal-pl-btn:active { background: #3730a3; color: #fff; }
.modal-pl-btn.selected { background: #3730a3; border-color: #6366f1; color: #fff; }
.modal-pl-icon {
  display: inline-block; width: 22px; color: #a5b4fc;
  margin-right: 6px; vertical-align: middle;
}
.modal-pl-name {
  display: inline-block; vertical-align: middle; max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-pl-count {
  position: absolute; right: 12px; top: 50%; margin-top: -8px;
  font-size: 11px; color: #888;
}
.modal-empty { text-align: center; color: #888; font-size: 13px; padding: 20px 0; margin: 0 0 10px 0; }
.modal-create-btn {
  display: block; width: 100%; padding: 12px; background: #4f46e5;
  color: #fff; border: 0; border-radius: 10px; font-size: 13px;
  font-weight: bold; margin-bottom: 8px; -webkit-appearance: none;
}
.modal-create-btn:active { background: #4338ca; }
.modal-create-row { margin-bottom: 8px; position: relative; padding-right: 80px; min-height: 40px; }
.modal-create-row input {
  display: block; width: 100%; padding: 10px 12px; background: #1f1f1f;
  border: 1px solid #444; border-radius: 8px; color: #f0f0f0;
  font-size: 13px; -webkit-appearance: none;
}
.modal-create-go {
  position: absolute; right: 0; top: 0; height: 38px; padding: 0 12px;
  background: #4f46e5; color: #fff; border: 0; border-radius: 8px;
  font-size: 13px; font-weight: bold; -webkit-appearance: none;
}
.modal-create-go:active { background: #4338ca; }
.modal-cancel {
  display: block; width: 100%; padding: 12px; background: #333;
  color: #ccc; border: 0; border-radius: 10px; font-size: 13px;
  -webkit-appearance: none;
}
.modal-cancel:active { background: #444; }
.modal-confirm-actions { margin-top: 12px; }
.modal-confirm-actions .modal-danger {
  display: block; width: 100%; padding: 12px; background: #b91c1c;
  color: #fff; border: 0; border-radius: 10px; font-size: 13px;
  font-weight: bold; margin-bottom: 8px; -webkit-appearance: none;
}
.modal-confirm-actions .modal-danger:active { background: #991b1b; }

/* ======== 곡 추가 팝업 전용 ======== */
.add-field { margin-bottom: 14px; }
.add-label {
  display: block; font-size: 12px; color: #9ca3af; font-weight: bold;
  margin-bottom: 6px; letter-spacing: 0.04em;
}
.add-field input[type=text] {
  display: block; width: 100%; padding: 11px 12px;
  background: #1f1f1f; border: 1px solid #444; border-radius: 8px;
  color: #f0f0f0; font-size: 14px; -webkit-appearance: none;
}
.opt-row {
  display: block; width: 100%; text-align: left; padding: 11px 12px;
  background: #333; border: 1px solid #444; border-radius: 10px;
  color: #ddd; font-size: 13px; margin-bottom: 6px; position: relative;
  -webkit-appearance: none;
}
.opt-row.selected { background: #3730a3; border-color: #6366f1; color: #fff; }
.opt-row.disabled { opacity: 0.4; }
.opt-row .opt-sub { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.opt-row.selected .opt-sub { color: #c7d2fe; }
.modal-submit {
  display: block; width: 100%; padding: 14px; background: #16a34a;
  color: #fff; border: 0; border-radius: 10px; font-size: 15px;
  font-weight: bold; margin-bottom: 8px; -webkit-appearance: none;
}
.modal-submit:active { background: #15803d; }
.modal-err { color: #f87171; font-size: 12px; margin: 6px 0; min-height: 14px; }

/* ======== 입력란 지우기(x) 버튼 ======== */
.clear-wrap { position: relative; display: block; }
.clear-x {
  position: absolute; right: 6px; top: 50%; margin-top: -13px;
  width: 26px; height: 26px; line-height: 24px; text-align: center;
  background: #4b4b4b; color: #ddd; border: 0; border-radius: 13px;
  font-size: 15px; font-weight: bold; padding: 0; -webkit-appearance: none;
}
.clear-x:active { background: #666; }
