.dse-wrap {
    --dse-primary: #FF6B35;
    --dse-navy: #0F1B2D;
    --dse-border: #e5e7eb;
    --dse-muted: #64748b;
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: #1f2937;
    margin: 0 0 40px;
}

.dse-wrap * { box-sizing: border-box; }

.dse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.dse-hero {
    background: linear-gradient(135deg, #0F1B2D 0%, #1a2d45 60%, #0d2438 100%);
    color: #fff;
    padding: 48px 0 56px;
    margin-bottom: 24px;
}

.dse-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 12px;
    margin-bottom: 16px;
}

.dse-hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 12px;
}

.dse-hero-title span { color: var(--dse-primary); }

.dse-hero-desc {
    color: rgba(255,255,255,.65);
    margin: 0 0 24px;
    line-height: 1.6;
}

.dse-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
    font-family: inherit;
}

.dse-btn-primary {
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255,107,53,.35);
}

.dse-btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none;
}

.dse-btn-outline {
    background: #fff;
    border: 2px solid var(--dse-border);
}

.dse-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,.55);
}

.dse-btn-block { width: 100%; }

.dse-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.dse-panel-left { flex: 1; min-width: 0; }
.dse-panel-right { width: 320px; flex-shrink: 0; }

.dse-card {
    background: #fff;
    border: 1px solid var(--dse-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.dse-hidden { display: none !important; }

.dse-step-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dse-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #ff8c5a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.dse-step-head h2 {
    margin: 0;
    font-size: 16px;
}

.dse-step-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--dse-muted);
}

.dse-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dse-cat-btn {
    border: 2px solid var(--dse-border);
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: .15s;
}

.dse-cat-btn.active {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.dse-cat-btn span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.dse-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #f1f5f9;
}

.dse-item-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dse-item-btn {
    text-align: left;
    border: 2px solid var(--dse-border);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    cursor: pointer;
    transition: .15s;
}

.dse-item-btn.active {
    background: rgba(255,107,53,.06);
}

.dse-item-btn strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.dse-item-btn small {
    color: var(--dse-muted);
    font-size: 11px;
    line-height: 1.4;
}

.dse-field {
    border: 1px solid var(--dse-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fafafa;
}

.dse-field label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.dse-opt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dse-opt-grid.many { display: grid; grid-template-columns: repeat(3, 1fr); }

.dse-opt-btn {
    border: 2px solid var(--dse-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: .15s;
}

.dse-opt-btn.active {
    border-color: var(--dse-primary);
    background: rgba(255,107,53,.08);
    color: var(--dse-primary);
}

.dse-opt-btn small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--dse-muted);
}

.dse-number-input {
    width: 100%;
    height: 40px;
    border: 2px solid var(--dse-border);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.dse-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--dse-muted);
    line-height: 1.4;
}

.dse-remark {
    margin-top: 12px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    font-size: 13px;
}

.dse-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dse-qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--dse-border);
    border-radius: 12px;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

#dse-quantity {
    width: 80px;
    height: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid var(--dse-border);
    border-radius: 12px;
}

.dse-qty-unit { color: var(--dse-muted); font-weight: 600; }

.dse-notice {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--dse-border);
    border-radius: 12px;
    font-size: 12px;
    color: var(--dse-muted);
    line-height: 1.6;
}

.dse-price-panel {
    background: linear-gradient(160deg, #0F1B2D 0%, #162538 50%, #0d2438 100%);
    color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 40px rgba(15,27,45,.35);
}

@media (min-width: 992px) {
    .dse-price-panel {
        position: sticky;
        top: 80px;
        z-index: 20;
        max-height: calc(100vh - 96px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .dse-price-summary {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.25) transparent;
    }

    .dse-price-summary::-webkit-scrollbar {
        width: 6px;
    }

    .dse-price-summary::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 999px;
    }
}

.dse-price-panel::before {
    content: '';
    display: block;
    height: 4px;
    margin: -20px -20px 16px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #FF6B35, #ff8c5a, #FF6B35);
}

.dse-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 6px;
    animation: dse-pulse 1.5s infinite;
}

@keyframes dse-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.dse-price-head {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin-bottom: 4px;
}

.dse-price-panel h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.dse-price-summary {
    min-height: 100px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(255,255,255,.65);
}

.dse-price-summary .dse-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.dse-price-empty {
    text-align: center;
    color: rgba(255,255,255,.35);
    padding: 24px 0;
    line-height: 1.6;
}

.dse-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 14px;
    color: rgba(255,255,255,.7);
}

.dse-price-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px 0 16px;
}

.dse-price-total > div {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
}

.dse-price-total em {
    font-style: normal;
    font-size: 36px;
    font-weight: 900;
    color: var(--dse-primary);
    line-height: 1;
}

.dse-price-total span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.dse-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: linear-gradient(135deg, #0F1B2D, #1a2d45);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 12px 0;
}

.dse-mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dse-mobile-bar small {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: 11px;
}

.dse-mobile-bar strong {
    color: var(--dse-primary);
    font-size: 22px;
    font-weight: 900;
}

.dse-mobile-spacer { height: 80px; }

.dse-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dse-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dse-modal-head {
    background: linear-gradient(135deg, #0F1B2D, #1a2d45);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dse-modal-head h2 { margin: 0; font-size: 18px; }
.dse-modal-head p { margin: 4px 0 0; font-size: 12px; opacity: .6; }

.dse-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.dse-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.dse-modal-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dse-border);
    font-size: 14px;
}

.dse-modal-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--dse-border);
    display: flex;
    gap: 12px;
}

.dse-modal-foot .dse-btn { flex: 1; }

@media (max-width: 991px) {
    .dse-panel-right { display: none; }
    .dse-layout { display: block; }
    .dse-category-grid { grid-template-columns: repeat(4, 1fr); }
    .dse-mobile-bar:not(.dse-hidden) { display: block; }
}

@media (max-width: 575px) {
    .dse-category-grid { grid-template-columns: repeat(3, 1fr); }
    .dse-item-grid { grid-template-columns: 1fr; }
    .dse-opt-grid.many { grid-template-columns: repeat(2, 1fr); }
}

@media print {
    #hd, #ft, .dse-hero, .dse-panel-left, .dse-mobile-bar, .dse-modal-foot, .sign-hd-admin { display: none !important; }
    .dse-modal { position: static; background: none; }
    .dse-modal-box { max-height: none; box-shadow: none; }
}

.dse-opt-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dse-inline-price {
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid var(--dse-border);
    border-radius: 4px;
    text-align: right;
    box-sizing: border-box;
}

.dse-inline-price.dse-price-saving {
    opacity: 0.6;
    background: #fef9c3;
}

.dse-inline-price.dse-price-saved {
    background: #dcfce7;
    border-color: #22c55e;
}
