.dpm { font: 400 14px/1.6 Pretendard, sans-serif; color: #35362e; }
.dpm[hidden] { display: none; }
.dpm *, .dpm *::before, .dpm *::after { box-sizing: border-box; }
.dpm button, .dpm select { font: inherit; cursor: pointer; color: inherit; }
.dpm button { border: 0; }
.dpm button:focus-visible, .dpm select:focus-visible { outline: 3px solid #75845b; outline-offset: 3px; }
.dpm-tools { position: fixed; right: 20px; bottom: 88px; z-index: 10002; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 240px; padding: 10px; background: #fffef9; border: 1px solid #ceccc2; border-radius: 14px; box-shadow: 0 6px 24px #0002; }
.dpm-tools button, .dpm-tools select { border-radius: 7px; padding: 7px 8px; background: #efeee6; font-size: 12px; }
.dpm-tools .dpm-open { grid-column: 1/-1; background: #353b30; color: #fffef9; font-size: 14px; font-weight: 650; }
.dpm-tools .dpm-dismiss { position: absolute; top: -14px; right: -6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #ceccc2; border-radius: 50%; background: #fffef9; color: #35362e; font-size: 21px; line-height: 1; box-shadow: 0 2px 8px #0002; }
.dpm-tools .dpm-dismiss:hover { background: #efeee6; }
.dpm-count { text-align: center; align-self: center; font-size: 12px; }
.dpm-label { position: fixed; z-index: 10002; top: 50%; left: 24px; transform: translateY(-50%); width: 272px; max-height: 65dvh; overflow: auto; background: #fffef9; border: 1px solid #ceccc2; border-left: 3px solid #7c7767; padding: 18px 20px; box-shadow: 0 6px 24px #0001; pointer-events: auto; }
.dpm-label[hidden] { display: none; }
.dpm-eyebrow, .dpm-number { display: block; font-size: 10px; letter-spacing: .12em; color: #7c7767; }
.dpm-number { margin: 8px 0; }
.dpm-label h3 { font-size: 17px; font-weight: 650; line-height: 1.5; }
.dpm-label h4 { margin-top: 14px; border-top: 1px solid #ceccc2; padding-top: 12px; font-size: 12px; }
.dpm-label p { margin-top: 8px; font-size: 12px; }
.dpm-label b { margin-right: 10px; }
.dpm-dialog { position: fixed; inset: 0; margin: auto; width: min(1120px, calc(100% - 48px)); max-width: none; max-height: 86dvh; padding: 32px; border: 1px solid #ceccc2; border-radius: 20px; color: #35362e; background: #f7f6ef; overflow: auto; overscroll-behavior: contain; }
.dpm-dialog::backdrop { background: #18201999; backdrop-filter: blur(6px); }
.dpm-heading { position: relative; padding-right: 72px; }
.dpm-heading h2 { margin: 8px 0; font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.dpm-heading p { color: #737469; font-size: 13px; }
.dpm-close { position: absolute; right: 0; top: 0; background: #e8e7dc; border-radius: 8px; padding: 8px 12px; }
.dpm-all { display: block; margin: 28px auto 0; padding: 12px 24px; background: #353b30; color: #fffef9 !important; border-radius: 8px; }
.dpm-page { display: block; position: relative; margin: 24px auto; padding: 10px 22px; background: #e7e8dc; border: 1px solid #a5ab93 !important; border-radius: 8px; }
.dpm-page::before { content: ''; position: absolute; height: 24px; border-left: 1px solid #bcbfb0; bottom: 100%; left: 50%; }
.dpm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.dpm-item { border: 1px solid #d8d8cc; border-radius: 10px; background: #fffef9; overflow: hidden; }
.dpm-section { display: flex; flex-direction: column; text-align: left; width: 100%; height: 100%; padding: 18px; background: transparent; }
.dpm-item:has(.dpm-slides) .dpm-section { height: auto; }
.dpm-section:hover { background: #eeefe4; }
.dpm-section strong { font-size: 15px; line-height: 1.5; margin: 0 0 12px; word-break: keep-all; overflow-wrap: anywhere; }
.dpm-detail { display: block; font-size: 12px; line-height: 1.7; color: #737469; }
.dpm-slides { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; }
.dpm-slides button { font-size: 11px; border-radius: 5px; padding: 5px 8px; background: #e7e8dc; text-align: left; }
.dpm-footnote { margin: 24px 0 0; color: #737469; font-size: 11px; }
.dpm-status { position: fixed; z-index: 10003; bottom: 260px; right: 20px; max-width: 260px; background: #fffef9; padding: 10px 14px; border-radius: 8px; font-size: 12px; }
.dpm-status:empty { display: none; }
@media (max-width: 900px) { .dpm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dpm-label { width: 220px; left: 16px; } }
@media (max-width: 520px) {
  .dpm-tools { right: 12px; bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px)); width: 200px; padding: 8px; }
  .dpm-dialog { width: calc(100% - 24px); max-height: 90dvh; padding: 20px 14px; border-radius: 14px; }
  .dpm-heading h2 { font-size: 25px; } .dpm-heading p { font-size: 12px; }
  .dpm-grid { grid-template-columns: 1fr; gap: 10px; }
  .dpm-section { padding: 14px; } .dpm-label { width: 180px; left: 12px; padding: 12px; top: 100px; transform: none; max-height: calc(100dvh - 340px); }
  .dpm-label h3 { font-size: 14px; }
}
