/* Shared registration/editor UI used by both entry points. */
.my-dialog { width: 420px; max-width: calc(100vw - 32px); border: 0; border-radius: 16px; padding: 22px 24px 24px; color: var(--ink-2); box-shadow: 0 20px 60px rgba(40, 30, 120, .3); }
.my-dialog::backdrop { background: rgba(20, 18, 60, .45); }
.my-dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.my-dialog__title { font-size: 19px; font-weight: 800; color: var(--ink); }
.my-dialog__close { width: 32px; height: 32px; font-size: 24px; line-height: 1; border-radius: 8px; color: #6b70cf; }
.my-dialog__close:hover { background: #eef0fd; }
.my-dialog__desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.my-choice { display: grid; gap: 8px; }
.my-choice__item { display: flex; align-items: center; gap: 12px; }
.my-choice__item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.my-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #d7d8fc; background: #fbfbff; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.my-btn:hover { background: #f0f1fe; }
.my-choice__item.my-btn { justify-content: flex-start; }
.my-btn--primary { border: 0; color: #fff; background: linear-gradient(90deg, #9b5cf8, #6a4ef5); }
.my-form { display: grid; gap: 12px; }
.my-photo { display: flex; align-items: center; gap: 16px; }
.my-photo__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #e6e3fd; }
.my-photo input { display: none; }
.my-btn--primary:hover { background: linear-gradient(90deg, #8b4cf0, #5b3fe6); }
.my-photo .my-btn { cursor: pointer; }
.my-field { display: grid; gap: 5px; font-size: 14px; font-weight: 700; color: var(--ink); }
.my-field input, .my-field textarea, .my-field select, .email-field input, .email-field select { width: 100%; padding: 9px 12px; border: 1px solid #d7d8fc; border-radius: 9px; background: #fbfbff; color: #222; font-weight: 500; font-size: 15px; resize: vertical; }
.my-field input:focus, .my-field textarea:focus, .my-field select:focus, .email-field input:focus, .email-field select:focus { outline: 2px solid #9b7cf8; border-color: transparent; }
.my-form__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.my-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 12px; background: #1f1b5a; color: #fff; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 10; }
.my-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.my-dialog { max-height: 88vh; overflow-y: auto; }
.my-dialog--wide { width: 760px; }
.my-dialog--gateway { width: 720px; padding: 38px; }
.my-dialog--gateway .my-dialog__title { font-size: 28px; }
.preview-kicker { color: #986bd1; font-size: 12px; letter-spacing: 2px; margin-bottom: 12px; }
.preview-note { color: #87869e; font-size: 12px; line-height: 1.6; margin: 18px 0 12px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.role-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 25px; border: 1px solid #dedaed; border-radius: 16px; text-align: left; background: linear-gradient(140deg,#fcfaff,#f2f3ff); }
.role-card:hover { border-color: #a381d1; background: #f0eafb; }
.role-card strong { font-size: 24px; color: #454069; align-self: center; text-align: center; }
.role-card span { font-size: 14px; color: #8a829c; line-height: 1.65; }
.role-symbol { font-size: 28px !important; color: #9b78c7 !important; align-self: center; height: 46.2px; display: flex; align-items: center; justify-content: center; }
.role-symbol svg { width: 44px; height: 44px; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.tag-picker button, .tag-picker button:hover { padding: 10px 17px; border: 1px solid #dedaed; border-radius: 24px; background: #faf9ff; }
.tag-picker button[aria-pressed=true] { color: #fff; background: #9473c4; border-color: #9473c4; }
.my-form select { padding: 10px; border: 1px solid #d7d8fc; border-radius: 9px; background: #fbfbff; }
.my-form__error { color: #a53254; font-size: 13px; line-height: 1.5; }
.upload-grid { display: grid; grid-template-columns: minmax(0, 360px); gap: 14px; }
.upload { display: grid; align-content: start; gap: 8px; font-size: 12px; }
.upload-preview { height: 96px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #c9c3df; border-radius: 10px; background: #f7f5fc; color: #a8a0be; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload:first-child .upload-preview { width: 100%; height: auto; aspect-ratio: 16/10; border-radius: 10px; }
.upload input { width: 100%; font-size: 10px; color: #827b98; }
.upload .my-btn { min-height: 27px; font-size: 11px; padding: 3px 5px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notification-option { display: flex; gap: 10px; padding: 12px 0; }
.empty-state { border: 1px dashed #dedaed; border-radius: 14px; padding: 30px; text-align: center; color: #9187a6; line-height: 1.7; font-size: 14px; }
button:disabled { opacity: .5; cursor: default; }
.upload-preview { padding: 0; width: 100%; cursor: pointer; }
.upload-preview:hover, .upload-preview.is-dragging { border-color: #9473c4; background: #eee8f8; }
.upload-preview:focus-visible { outline: 2px solid #9473c4; outline-offset: 3px; }
/* Registration/editor styling only; keep the main design intact. */
.my-dialog:has(.my-form) { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.my-form .my-btn:hover:not(.tag-picker button) { background: #fbfbff; }
.my-form .my-btn--primary, .my-form .my-btn--primary:hover { background: linear-gradient(90deg, #9b5cf8, #6a4ef5); }
.detail-tags { padding: 16px; margin: 16px 0; border: 1px solid #e7e3f0; border-radius: 12px; background: #faf9fd; }
.detail-tags .tag-picker { margin: 8px 0 14px; gap: 7px; }
.detail-tags .tag-picker button, .tag-picker button:hover { padding: 7px 12px; font-size: 13px; }
.detail-tags .selected-tags button { background: #eee7fa; }
.tag-group-title { font-size: 13px; font-weight: 700; }
.detail-tags > .my-btn { margin-top: 8px; }
.registration-group { border: 1px solid #e5dff0; border-radius: 12px; margin: 12px 0; }
.registration-group__title { margin: 0; font-size: 14px; padding: 15px 18px; font-weight: 700; color: #6c5590; }
.registration-group__body { padding: 0 18px 18px; display: grid; gap: 12px; }
.registration-group .detail-tags { margin: 0; }
.my-form > .preview-note { order: 1; }
.my-dialog { font: 15px/1.6 "Malgun Gothic", sans-serif; --ink: #302d37; --muted: #82798a; --accent: #715185; --line: #cec4d8; --surface: #f8f6fa; margin: auto; color: var(--ink); background: var(--surface); --ink-2: var(--ink); --ink-soft: var(--muted); max-height: 88dvh; }
.my-dialog::backdrop { background: #25202b99; }
.my-dialog .my-dialog__title { color: var(--ink); }
.my-dialog .preview-kicker, .my-dialog .role-symbol { color: var(--accent) !important; }
.my-dialog .preview-note, .my-dialog .role-card span { color: var(--muted); }
.my-dialog .role-card { background: #f5f1f7; border-color: var(--line); }
.my-dialog .role-card:hover { background: #e7ddec; border-color: var(--accent); }
.my-dialog .role-card strong { color: var(--ink); }
.my-dialog .my-btn { margin-top: 8px; }
.my-dialog .my-btn--primary, .my-dialog .my-btn--primary:hover { background: var(--accent); }
.my-dialog .tag-picker button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: white; }
.my-dialog [hidden] { display: none !important; }
.my-dialog input, .my-dialog textarea, .my-dialog select { min-width: 0; max-width: 100%; font: inherit; }
.my-dialog button:disabled { opacity: .5; cursor: default; }
.my-dialog .my-field { min-width: 0; }
.my-dialog .my-form__error { position: sticky; bottom: 0; background: var(--surface); }
.my-toast { max-width: calc(100vw - 32px); background: var(--ink); }
@media(max-width:700px) {
 .my-dialog, .my-dialog--gateway { padding: 24px; }
 .my-dialog--gateway .my-dialog__title { font-size: 25px; }
 .my-dialog .role-grid, .my-dialog .field-grid, .my-dialog .upload-grid { grid-template-columns: 1fr; }
 .my-dialog .role-card { padding: 20px; gap: 8px; }
}

.broadcast-addresses__rows { display: grid; gap: 12px; }
.broadcast-addresses__row { display: flex; align-items: end; gap: 10px; }
.broadcast-addresses__row .my-field { flex: 1; }
.broadcast-addresses__row > .my-btn { flex-shrink: 0; }

:root{--profile-backdrop:#fff}
.upload .upload-preview{position:relative;background:var(--profile-backdrop)}
.upload .upload-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;transform-origin:center bottom;pointer-events:none}
.upload .upload-preview.is-empty{background:var(--profile-backdrop)}
.upload-preview>span{z-index:1;background:#faf8fce6;border-radius:6px;padding:3px 8px}

.upload-preview:not(.is-empty){touch-action:none;cursor:grab}
.upload-preview:not(.is-empty):active{cursor:grabbing}

.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}

.my-dialog button { font-family: inherit; }

.broadcast-addresses--verified .broadcast-addresses__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.broadcast-addresses--verified .broadcast-addresses__row > select { grid-column: 1 / -1; width: 100%; }
.broadcast-addresses--verified .broadcast-addresses__row input { width: 100%; }

.channel-connections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* 사진 선택 전에 크기와 파일 조건을 확인할 수 있도록 표시한다. */
.my-dialog .photo-guidance { color: #51405e; font-size: 13px; line-height: 1.7; margin: 12px 0; white-space: pre-line; }

.schedule-editor{border:1px solid #e2d6e9;border-radius:14px;padding:18px;margin:12px 0;background:#fbf8fd}.schedule-editor legend{font-weight:700;color:#594269;padding:0 5px}.schedule-editor .preview-note{margin:0 0 14px}.schedule-choices{display:flex;gap:10px;flex-wrap:wrap}.schedule-choice{display:flex;align-items:center;gap:7px;padding:10px 13px;background:#fff;border:1px solid #ddd0e6;border-radius:9px;cursor:pointer}.schedule-choice input,.schedule-days input{accent-color:#785993}.schedule-regular{margin-top:18px}.schedule-regular[hidden]{display:none}.schedule-regular p{font-weight:700;font-size:13px;margin:0 0 9px}.schedule-days{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.schedule-days label{display:flex;align-items:center;gap:3px;background:white;border:1px solid #dfd5e7;border-radius:8px;padding:8px}.schedule-regular .my-field{max-width:220px}

/* Confirmed debut information belongs to the private application. */
.debut-details{padding:20px;border:1px solid #ddcde8;border-radius:14px;background:#f4eef8}
.debut-details h4{font-size:18px;margin:0 0 12px}
.debut-details .my-field{margin:16px 0}
.debut-warning{margin-top:22px;padding:18px;border:1px solid #d6a564;border-radius:12px;background:#fff8ec;color:#704817;font-size:14px;line-height:1.75}
.debut-warning>p{margin:8px 0 14px}
.debut-warning label{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.debut-warning input[type=checkbox]{flex:none;width:19px;height:19px;margin-top:4px;accent-color:#76568c}
@media(max-width:600px){.debut-details{padding:16px}.debut-warning{padding:14px}}

/* Split email entry: keep the ID, @ and provider readable on small screens. */
.email-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.email-field legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.email-field__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.email-field input, .email-field select { width: 100%; min-width: 0; box-sizing: border-box; }
.email-field > input { margin-top: 8px; }
.email-field > input[hidden] { display: none; }

.registration-media-note{color:#554660;font-size:13px;line-height:1.6;margin:0 0 16px}.registration-media-note p{margin:2px 0}.registration-media-note summary{color:#76538d;cursor:pointer;margin-top:5px}.registration-media-note details[open]{margin-top:8px}.registration-media-note details>p{margin:8px 0}
