.dt-notice { display: flex; align-items: center; gap: 18px; margin-top: clamp(24px, 2.6vw, 32px); padding: 20px 22px; background: #fff; border: 1px solid var(--c-border); border-radius: 15px; }
.dt-notice-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--c-main-rgb), .1); color: var(--c-main); }
.dt-notice-icon .lu { width: 22px; height: 22px; }
.dt-notice-text { flex: 1 1 auto; min-width: 0; }
.ud-body .dt-notice-text h2 { margin: 0 0 4px; font-family: var(--font-body); font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--c-black); }
.ud-body .dt-notice-text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--c-text); }
.ud-body .dt-trigger { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 30px; border: 1px solid rgba(var(--c-main-rgb), .35); background: rgba(var(--c-main-rgb), .06); color: var(--c-secondary); font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.ud-body .dt-trigger:hover { background: var(--c-main); border-color: var(--c-main); color: #fff; }
.ud-body .dt-trigger:focus-visible { outline: 3px solid rgba(var(--c-main-rgb), .35); outline-offset: 2px; }
.dt-trigger .lu { width: 18px; height: 18px; }
.ud-body .dt-note a { font-weight: 600; }

html.dt-lock { overflow: hidden; }
html.dt-lock body { padding-right: var(--dt-scrollbar, 0px); }

.dt-modal { width: min(660px, calc(100vw - 32px)); max-width: none; max-height: min(92vh, 940px); max-height: min(92dvh, 940px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--c-black); box-shadow: 0 40px 100px -20px rgba(4, 22, 48, .45), 0 0 0 1px rgba(6, 40, 75, .06); overflow: hidden; font-family: var(--font-body); }
.dt-modal[open] { display: flex; flex-direction: column; animation: dtIn .32s var(--ease, ease) backwards; }
.dt-modal.is-settling { transition: transform .28s var(--ease, ease); }
.dt-modal.is-leaving { transition: transform .22s ease-in; }
.dt-modal::backdrop { background: rgba(4, 22, 48, .56); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: dtFade .25s ease both; }
@keyframes dtIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dtFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dtSheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dtSpin { to { transform: rotate(360deg); } }

.dt-sheet { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.dt-hp { position: absolute; bottom: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.dt-head { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--c-border); background: linear-gradient(180deg, #F5F9FF 0%, #fff 100%); }
.dt-head-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--c-main-rgb), .12); color: var(--c-main); transition: background .25s, color .25s; }
.dt-head-icon .lu { width: 22px; height: 22px; }
.dt-head-text { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.ud-body .dt-modal .dt-heading { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--c-black); }
.ud-body .dt-head p { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; line-height: 1.4; color: var(--c-text); }
.dt-subject { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px; background: rgba(var(--c-main-rgb), .1); color: var(--c-main); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.dt-head p strong { min-width: 0; font-weight: 600; color: var(--c-black); overflow-wrap: anywhere; }
.dt-close { flex: 0 0 auto; width: 40px; height: 40px; margin: -4px -6px 0 0; border: 1px solid var(--c-border); border-radius: 12px; background: #fff; color: var(--c-black); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dt-close:hover { background: var(--c-soft); border-color: #DCE3EA; }
.dt-close .lu { width: 20px; height: 20px; }

.dt-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 8px; scrollbar-width: thin; }
.dt-group + .dt-group, .dt-kinds + .dt-group, .dt-group + .dt-section, .dt-grid + .dt-consent { margin-top: 20px; }
.ud-body .dt-modal .dt-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-black); }
.dt-label b { color: #D92D20; font-weight: 600; }
.dt-label em { font-style: normal; font-weight: 400; font-size: 13px; color: #6B7A90; }

.dt-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-size: 14px; line-height: 1.5; }
.dt-alert[hidden] { display: none; }
.dt-alert .lu { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

.dt-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.dt-kinds legend { grid-column: 1 / -1; float: left; width: 100%; }
.dt-kind { position: relative; display: block; cursor: pointer; }
.dt-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dt-kind-box { position: relative; display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 14px 40px 14px 14px; border: 1.5px solid #DCE3EA; border-radius: 14px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.dt-kind:hover .dt-kind-box { border-color: rgba(var(--c-main-rgb), .45); }
.dt-kind-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-soft); color: var(--c-secondary); transition: background .2s, color .2s; }
.dt-kind-icon .lu { width: 19px; height: 19px; }
.dt-kind-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dt-kind-text strong { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--c-black); }
.dt-kind-text small { font-size: 13px; line-height: 1.4; color: #5B6B80; }
.dt-kind-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #CBD5E1; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.dt-kind-check .lu { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.dt-kind input:checked + .dt-kind-box { border-color: var(--c-main); background: rgba(var(--c-main-rgb), .04); box-shadow: 0 0 0 3px rgba(var(--c-main-rgb), .1); }
.dt-kind input:checked + .dt-kind-box .dt-kind-icon { background: var(--c-main); color: #fff; }
.dt-kind input:checked + .dt-kind-box .dt-kind-check { background: var(--c-main); border-color: var(--c-main); }
.dt-kind input:checked + .dt-kind-box .dt-kind-check .lu { opacity: 1; }
.dt-kind-remove input:checked + .dt-kind-box { border-color: #D92D20; background: #FFFBFA; box-shadow: 0 0 0 3px rgba(217, 45, 32, .1); }
.dt-kind-remove input:checked + .dt-kind-box .dt-kind-icon, .dt-kind-remove input:checked + .dt-kind-box .dt-kind-check { background: #D92D20; border-color: #D92D20; }
.dt-kind input:focus-visible + .dt-kind-box { outline: 3px solid rgba(var(--c-main-rgb), .35); outline-offset: 2px; }

.dt-modal.is-remove .dt-head { background: linear-gradient(180deg, #FFF6F5 0%, #fff 100%); }
.dt-modal.is-remove .dt-head-icon { background: rgba(217, 45, 32, .1); color: #D92D20; }
.dt-when-remove, .dt-modal.is-remove .dt-when-edit { display: none; }
.dt-modal.is-remove .dt-when-remove { display: inline-flex; }
.dt-when-edit { display: inline-flex; }

.dt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-chip { position: relative; display: inline-flex; cursor: pointer; }
.dt-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dt-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #DCE3EA; border-radius: 30px; background: #fff; color: var(--c-black); font-size: 14px; line-height: 1.25; transition: background .2s, border-color .2s, color .2s, padding .2s; }
.dt-chip .dt-chip-tick { width: 0; height: 15px; stroke-width: 3; opacity: 0; transition: width .2s, opacity .2s; }
.dt-chip:hover span { border-color: rgba(var(--c-main-rgb), .45); }
.dt-chip input:checked + span { background: rgba(var(--c-main-rgb), .1); border-color: var(--c-main); color: var(--c-main); font-weight: 600; }
.dt-chip input:checked + span .dt-chip-tick { width: 15px; opacity: 1; }
.dt-chip input:focus-visible + span { outline: 3px solid rgba(var(--c-main-rgb), .35); outline-offset: 2px; }

.dt-modal input[type=text], .dt-modal input[type=email], .dt-modal input[type=tel], .dt-modal select, .dt-modal textarea { display: block; width: 100%; margin: 0; padding: 12px 14px; border: 1px solid #D5DDE6; border-radius: 12px; background: #fff; color: var(--c-black); font: inherit; font-size: 16px; line-height: 1.45; outline: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.dt-modal textarea { min-height: 120px; resize: vertical; }
.dt-modal input::placeholder, .dt-modal textarea::placeholder { color: #98A2B3; }
.dt-modal input:focus, .dt-modal select:focus, .dt-modal textarea:focus { border-color: var(--c-main); box-shadow: 0 0 0 4px rgba(var(--c-main-rgb), .12); }
.dt-modal [aria-invalid="true"] { border-color: #F04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, .1); }
.dt-modal [aria-invalid="true"]:focus { border-color: #F04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, .18); }
.dt-select { position: relative; }
.dt-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid #667085; border-bottom: 2px solid #667085; transform: rotate(45deg); pointer-events: none; }
.dt-select select { padding-right: 40px; cursor: pointer; }
.dt-help { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 6px; }
.dt-count { flex: 0 0 auto; font-size: 12px; color: #98A2B3; font-variant-numeric: tabular-nums; }
.dt-count.is-near { color: #B54708; }
.ud-body .dt-modal .dt-error { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #D92D20; }
.ud-body .dt-modal .dt-help .dt-error { margin: 0; }
.dt-error:empty { display: none; }

.dt-kvkk { display: flex; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; background: #F0F7FF; border: 1px solid rgba(var(--c-main-rgb), .18); }
.dt-kvkk-icon { flex: 0 0 auto; color: var(--c-main); }
.dt-kvkk-icon .lu { width: 22px; height: 22px; }
.dt-kvkk strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--c-secondary); }
.ud-body .dt-kvkk p { margin: 0; font-size: 13px; line-height: 1.55; color: #3E4C5E; }

.dt-section { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px dashed #E3E8EF; }
.dt-section-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--c-black); }
.dt-section-hint { font-size: 13px; color: #6B7A90; }
.dt-section + .dt-grid { margin-top: 14px; }
.dt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dt-grid .dt-group + .dt-group { margin-top: 0; }
.dt-span { grid-column: 1 / -1; }

.dt-consent { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--c-bg); cursor: pointer; }
.dt-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dt-consent-box { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid #B8C4D2; border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.dt-consent-box .lu { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.dt-consent input:checked + .dt-consent-box { background: var(--c-main); border-color: var(--c-main); }
.dt-consent input:checked + .dt-consent-box .lu { opacity: 1; }
.dt-consent input:focus-visible + .dt-consent-box { outline: 3px solid rgba(var(--c-main-rgb), .35); outline-offset: 2px; }
.dt-consent input[aria-invalid="true"] + .dt-consent-box { border-color: #F04438; }
.dt-consent-text { font-size: 13px; line-height: 1.55; color: #3E4C5E; }
.ud-body .dt-consent-text a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--c-border); background: #FAFBFD; }
.ud-body .dt-foot-note { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; margin: 0; font-size: 12px; line-height: 1.4; color: #6B7A90; }
.dt-foot-note .lu { width: 14px; height: 14px; flex: 0 0 auto; }
.dt-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; margin-left: auto; }
.dt-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 1px solid transparent; border-radius: 30px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.dt-btn .lu { width: 18px; height: 18px; }
.dt-btn-ghost { background: #fff; border-color: #D5DDE6; color: var(--c-black); }
.dt-btn-ghost:hover { background: var(--c-soft); }
.dt-btn-primary { background: var(--c-main); color: #fff; box-shadow: 0 10px 22px -8px rgba(var(--c-main-rgb), .6); }
.dt-btn-primary:hover { background: #0062C8; }
.dt-modal.is-remove .dt-btn-primary { background: var(--c-secondary); box-shadow: 0 10px 22px -8px rgba(6, 40, 75, .55); }
.dt-modal.is-remove .dt-btn-primary:hover { background: #0A3A6B; }
.dt-btn:focus-visible, .dt-close:focus-visible { outline: 3px solid rgba(var(--c-main-rgb), .35); outline-offset: 2px; }
.dt-btn[aria-disabled="true"] { cursor: progress; opacity: .85; }
.dt-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: dtSpin .7s linear infinite; }
.dt-btn.is-busy .dt-spinner { display: inline-block; }
.dt-btn.is-busy .lu-send { display: none; }

.dt-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 28px 36px; outline: none; }
.dt-done[hidden] { display: none; }
.dt-done-icon { width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 182, 122, .12); color: #00A06B; box-shadow: 0 0 0 10px rgba(0, 182, 122, .06); }
.dt-done-icon .lu { width: 38px; height: 38px; }
.ud-body .dt-done .dt-heading { font-size: 24px; margin-bottom: 10px; }
.ud-body .dt-done-ref { margin: 0 0 12px; font-size: 15px; color: var(--c-text); }
.dt-done-ref strong { display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 8px; background: var(--c-soft); color: var(--c-secondary); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .04em; }
.ud-body .dt-done-text { max-width: 440px; margin: 0 auto 24px; font-size: 15px; line-height: 1.6; color: var(--c-text); }
.dt-done .dt-btn { min-width: 160px; }
.dt-modal.is-done .dt-head, .dt-modal.is-done .dt-body, .dt-modal.is-done .dt-foot { display: none; }

@media (pointer: coarse) {
    .dt-chip span { min-height: 40px; padding: 9px 15px; }
}

@media (max-width: 767px) {
    .dt-notice { flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 18px; }
    .dt-notice-text { flex-basis: calc(100% - 62px); }
    .ud-body .dt-notice .dt-trigger { width: 100%; white-space: normal; }
    .dt-foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .ud-body .dt-foot-note { justify-content: center; text-align: center; }
    .dt-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin-left: 0; }
}

@media (max-width: 575px) {
    .dt-modal { width: 100%; max-height: 94vh; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .dt-modal[open] { animation: dtSheet .34s var(--ease, ease) backwards; }
    .dt-modal::before { content: ""; position: absolute; top: 8px; left: 50%; z-index: 2; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #D0D5DD; pointer-events: none; }
    .dt-head { padding: 24px 16px 16px; gap: 12px; touch-action: none; }
    .dt-head-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .ud-body .dt-modal .dt-heading { font-size: 20px; }
    .dt-close { margin: -6px -2px 0 0; }
    .dt-body { padding: 18px 16px 8px; }
    .dt-kinds, .dt-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .dt-grid { gap: 16px; }
    .dt-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .dt-actions { display: flex; }
    .dt-actions .dt-btn-ghost { display: none; }
    .dt-actions .dt-btn-primary { flex: 1 1 auto; }
    .dt-btn { padding-inline: 18px; }
    .dt-done { padding: 40px 20px calc(28px + env(safe-area-inset-bottom)); }
}

@media (max-height: 520px) and (min-width: 576px) {
    .dt-modal { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
    .dt-head { align-items: center; padding: 12px 20px; }
    .dt-head-icon { display: none; }
    .ud-body .dt-modal .dt-head .dt-heading { font-size: 18px; }
    .ud-body .dt-head p { flex-wrap: nowrap; margin-top: 2px; }
    .dt-head p strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dt-close { margin: 0 -6px 0 0; }
    .dt-body { padding-top: 14px; }
    .dt-foot { padding: 10px 20px; }
    .ud-body .dt-foot-note { display: none; }
    .dt-btn { min-height: 42px; padding-block: 9px; }
}

@media (max-width: 359px) {
    .dt-btn { white-space: normal; }
    .dt-actions .lu-send { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dt-modal[open], .dt-modal::backdrop { animation: none; }
    .dt-modal.is-settling, .dt-modal.is-leaving { transition: none; }
    .dt-spinner { animation-duration: 1.6s; }
}
