.dp-dsh-shell {
    --dsh-bg: #f4f7fb;
    --dsh-surface: rgba(255, 255, 255, 0.88);
    --dsh-surface-strong: #ffffff;
    --dsh-line: rgba(15, 23, 42, 0.08);
    --dsh-text: #10243a;
    --dsh-muted: #62748a;
    --dsh-primary: #0b5cab;
    --dsh-primary-deep: #08365f;
    --dsh-accent: #f28c34;
    --dsh-success: #15a05d;
    --dsh-danger: #dc3545;
    --dsh-radius-xl: 18px;
    --dsh-radius-lg: 16px;
    --dsh-radius-md: 14px;
    width: 100%;
    color: var(--dsh-text);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.dp-dsh-app {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    width: 100%;
    min-height: 880px;
    padding: 18px;
    align-items: stretch;
    background:
        radial-gradient(circle at top left, rgba(11, 92, 171, 0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(242, 140, 52, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--dsh-bg) 100%);
    border: 1px solid var(--dsh-line);
    border-radius: 18px;
    box-sizing: border-box;
    overflow: hidden;
}

.dp-dsh-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    align-self: stretch;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(11, 92, 171, 0.08);
    border-radius: var(--dsh-radius-xl);
    background: linear-gradient(180deg, rgba(8, 54, 95, 0.96) 0%, rgba(10, 81, 144, 0.94) 100%);
    color: #ffffff;
    box-sizing: border-box;
}

.dp-dsh-brand {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.dp-dsh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.dp-dsh-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.14);
}

.dp-dsh-title {
    margin: 14px 0 8px 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
}

.dp-dsh-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

.dp-dsh-menu {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dp-dsh-menu-group {
    display: grid;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.dp-dsh-menu-btn {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: transform 1.81s cubic-bezier(0.22, 1, 0.36, 1), background-color 1.74s ease, border-color 1.74s ease, box-shadow 1.74s ease;
}

.dp-dsh-menu-btn.is-child {
    width: 100%;
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transform-origin: left center;
    opacity: 1;
    transform: translateY(-24px);
}

.dp-dsh-menu-submenu {
    display: grid;
    gap: 10px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    will-change: opacity, transform, max-height;
    transition: max-height 0.75s linear, opacity 0.52s ease, transform 0.70s linear, margin-top 0.65s linear;
}

.dp-dsh-menu-group.is-open .dp-dsh-menu-submenu {
    max-height: 170px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    margin-top: 14px;
}

.dp-dsh-menu-group.is-open .dp-dsh-menu-btn.is-child {
    animation: dpDshRevealFromTop 0.74s linear forwards;
}

@keyframes dpDshRevealFromTop {
    0% {
        transform: translateY(-28px);
    }
    100% {
        transform: translateY(0);
    }
}

.dp-dsh-menu-btn:hover,
.dp-dsh-menu-btn:focus {
    transform: translateX(6px);
    background: rgba(242, 140, 52, 0.34);
    border-color: rgba(242, 140, 52, 0.62);
    box-shadow: 0 16px 30px rgba(5, 18, 34, 0.20);
    outline: none;
}

.dp-dsh-menu-btn:hover .dp-dsh-menu-icon,
.dp-dsh-menu-btn:focus .dp-dsh-menu-icon {
    background: rgba(242, 140, 52, 0.38);
}

.dp-dsh-menu-btn.is-active {
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(242,140,52,0.22) 100%);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.dp-dsh-menu-btn.is-active:hover,
.dp-dsh-menu-btn.is-active:focus {
    background: linear-gradient(135deg, rgba(242,140,52,0.34) 0%, rgba(242,140,52,0.50) 100%);
    border-color: rgba(242, 140, 52, 0.72);
}

.dp-dsh-menu-btn.is-active:hover .dp-dsh-menu-icon,
.dp-dsh-menu-btn.is-active:focus .dp-dsh-menu-icon {
    background: rgba(242, 140, 52, 0.44);
}

.dp-dsh-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
}

.dp-dsh-menu-btn.is-child .dp-dsh-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
}

.dp-dsh-menu-title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 3px;
}

.dp-dsh-menu-copy {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.74);
}

.dp-dsh-sidebar-note {
    margin-top: auto;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.dp-dsh-sidebar-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.dp-dsh-sidebar-note span {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.74);
}

.dp-dsh-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    height: 100%;
    align-self: stretch;
    align-items: start;
}

.dp-dsh-topbar,
.dp-dsh-panel,
.dp-dsh-kpi,
.dp-dsh-card {
    border: 1px solid var(--dsh-line);
    background: var(--dsh-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.dp-dsh-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 27px;
    padding: 2px 10px;
    border-radius: var(--dsh-radius-xl);
    align-self: start;
}

.dp-dsh-topbar > div:first-child {
    display: grid;
    gap: 0;
    min-width: 0;
}

.dp-dsh-topbar h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: var(--dsh-primary-deep);
}

.dp-dsh-topbar p {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    color: var(--dsh-muted);
}

.dp-dsh-top-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.dp-dsh-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 3px 9px;
    border: 1px solid var(--dsh-line);
    border-radius: 999px;
    background: var(--dsh-surface-strong);
    color: var(--dsh-primary-deep);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease;
}

.dp-dsh-top-btn:hover,
.dp-dsh-top-btn:focus {
    transform: translateY(-1px);
    border-color: rgba(11, 92, 171, 0.24);
    outline: none;
}

.dp-dsh-top-btn.is-primary {
    background: linear-gradient(135deg, var(--dsh-primary) 0%, #0a73cf 100%);
    border-color: transparent;
    color: #ffffff;
}

.dp-dsh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--dsh-danger);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.dp-dsh-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.dp-dsh-kpi {
    grid-column: span 3;
    padding: 12px 14px;
    border-radius: var(--dsh-radius-lg);
    min-height: 0;
}

.dp-dsh-kpi-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dsh-muted);
}

.dp-dsh-kpi-value {
    display: block;
    margin-bottom: 4px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--dsh-primary-deep);
}

.dp-dsh-kpi-copy {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: var(--dsh-muted);
}

.dp-dsh-panel {
    grid-column: span 8;
    padding: 14px;
    border-radius: var(--dsh-radius-xl);
    animation: dshPanelIn .32s ease;
}

.dp-dsh-panel.is-side {
    grid-column: span 4;
}

.dp-dsh-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid var(--dsh-line);
}

.dp-dsh-panel-head > div:first-child {
    display: grid;
    gap: 0;
    min-width: 0;
}

.dp-dsh-panel-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1;
    color: var(--dsh-primary-deep);
}

.dp-dsh-panel-head p {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    color: var(--dsh-muted);
}

.dp-dsh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(21, 160, 93, 0.10);
    color: var(--dsh-success);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dp-dsh-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dp-dsh-web-preview {
    display: grid;
    gap: 14px;
}

.dp-dsh-web-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--dsh-line);
    border-radius: var(--dsh-radius-xl);
    background: linear-gradient(135deg, rgba(11,92,171,0.12) 0%, rgba(255,255,255,0.95) 48%, rgba(242,140,52,0.12) 100%);
}

.dp-dsh-web-hero h4 {
    margin: 0 0 10px 0;
    font-size: 26px;
    line-height: 1.1;
    color: var(--dsh-primary-deep);
}

.dp-dsh-web-hero p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--dsh-muted);
}

.dp-dsh-web-brand {
    padding: 16px;
    border: 1px solid rgba(11,92,171,0.10);
    border-radius: var(--dsh-radius-lg);
    background: rgba(255,255,255,0.86);
}

.dp-dsh-web-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(11,92,171,0.10);
    color: var(--dsh-primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.dp-dsh-web-brand h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--dsh-primary-deep);
}

.dp-dsh-web-brand p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--dsh-muted);
}

.dp-dsh-web-section {
    padding: 16px;
    border: 1px solid var(--dsh-line);
    border-radius: var(--dsh-radius-lg);
    background: rgba(255,255,255,0.90);
}

.dp-dsh-web-section h5 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--dsh-primary-deep);
}

.dp-dsh-web-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--dsh-muted);
}

.dp-dsh-web-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dp-dsh-web-editor {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    gap: 18px;
    align-items: start;
}

.dp-dsh-web-editor-panel {
    display: grid;
    gap: 16px;
}

.dp-dsh-web-editor-group {
    padding: 16px;
    border: 1px solid var(--dsh-line);
    border-radius: var(--dsh-radius-lg);
    background: rgba(255,255,255,0.92);
}

.dp-dsh-web-editor-group h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--dsh-primary-deep);
}

.dp-dsh-web-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dp-dsh-web-form-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dp-dsh-web-field {
    display: grid;
    gap: 6px;
}

.dp-dsh-web-field-full {
    grid-column: 1 / -1;
}

.dp-dsh-web-field span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dsh-muted);
}

.dp-dsh-web-field input,
.dp-dsh-web-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: var(--dsh-primary-deep);
    font: inherit;
    box-sizing: border-box;
}

.dp-dsh-web-field textarea {
    resize: vertical;
    min-height: 88px;
}

.dp-dsh-web-live-preview {
    position: sticky;
    top: 18px;
}

.dp-dsh-store-preview {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--dsh-line);
    border-radius: var(--dsh-radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,252,0.96) 100%);
}

.dp-dsh-store-preview-hero {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(7, 43, 74, 0.94) 0%, rgba(10, 81, 144, 0.90) 62%, rgba(242, 140, 52, 0.78) 100%);
    color: #ffffff;
}

.dp-dsh-store-preview-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-dsh-store-preview-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.14);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dp-dsh-store-preview-brand strong,
.dp-dsh-store-preview-brand span {
    display: block;
}

.dp-dsh-store-preview-brand strong {
    font-size: 16px;
    line-height: 1.1;
}

.dp-dsh-store-preview-brand span {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.76);
}

.dp-dsh-store-preview-copy h4 {
    margin: 0 0 10px 0;
    font-size: 26px;
    line-height: 1.08;
    color: #ffffff;
}

.dp-dsh-store-preview-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.86);
}

.dp-dsh-store-preview-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 2px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dp-dsh-store-preview-nav span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(11,92,171,0.08);
    color: var(--dsh-primary-deep);
    font-size: 12px;
    font-weight: 700;
}

.dp-dsh-store-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dp-dsh-store-preview-tile {
    min-height: 156px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
}

.dp-dsh-store-preview-tile h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--dsh-primary-deep);
}

.dp-dsh-store-preview-tile p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--dsh-muted);
}

.dp-dsh-card {
    padding: 18px;
    border-radius: var(--dsh-radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(246,250,254,0.94) 100%);
    transition: transform .18s ease, border-color .18s ease;
}

.dp-dsh-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 92, 171, 0.18);
}

.dp-dsh-card h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    color: var(--dsh-primary-deep);
}

.dp-dsh-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dsh-muted);
}

.dp-dsh-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.dp-dsh-list li {
    padding: 14px 15px;
    border: 1px solid var(--dsh-line);
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
}

.dp-dsh-list strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--dsh-primary-deep);
}

.dp-dsh-list span {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    color: var(--dsh-muted);
}

.dp-dsh-panel-body {
    display: none;
    min-height: 0;
}

.dp-dsh-panel-body.is-active {
    display: block;
    height: 100%;
    min-height: calc(100% + 25px);
    animation: dshPanelIn .28s ease;
}

.dp-dsh-panel-body > .dp-dsh-panel,
.dp-dsh-panel-body > .dp-dsh-grid {
    height: 100%;
    min-height: 0;
}

@keyframes dshPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .dp-dsh-app {
        grid-template-columns: 1fr;
    }

    .dp-dsh-sidebar {
        position: static;
    }

    .dp-dsh-kpi,
    .dp-dsh-panel,
    .dp-dsh-panel.is-side {
        grid-column: span 12;
    }
}

@media (max-width: 720px) {
    .dp-dsh-app {
        padding: 12px;
        gap: 14px;
    }

    .dp-dsh-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dp-dsh-top-actions {
        justify-content: flex-start;
    }

    .dp-dsh-grid,
    .dp-dsh-card-grid,
    .dp-dsh-web-editor,
    .dp-dsh-web-form-grid,
    .dp-dsh-web-grid,
    .dp-dsh-web-hero,
    .dp-dsh-store-preview-grid {
        grid-template-columns: 1fr;
    }

    .dp-dsh-web-form-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-dsh-web-live-preview {
        position: static;
    }

    .dp-dsh-kpi {
        grid-column: span 12;
    }
}
