.panel-explorer {
    padding-top: 12px;
}

.panel-explorer-heading {
    max-width: 680px;
    margin-bottom: 23px;
}

.panel-explorer-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.panel-explorer-card {
    --panel-exterior: #77a2cb;
    --panel-core: #cda36a;
    --panel-interior: #d9e4eb;
    --panel-edge: #48b3ac;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.panel-explorer-toolbar {
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.panel-explorer-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.panel-explorer button {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 7px 13px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
}

.panel-explorer-modes button:hover {
    background: #edf3fd;
}

.panel-explorer-modes button[aria-pressed='true'] {
    border-color: #c6d9f7;
    background: #e8f0fc;
    color: var(--blue-deep);
}

.panel-explorer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(237px, 29%);
}

.panel-explorer-stage {
    display: grid;
    min-width: 0;
    min-height: 380px;
    overflow: hidden;
    border-radius: 0 0 0 5px;
    background: #122638;
    color: #e2ebf6;
}

.panel-explorer-interactive {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.panel-explorer-viewport,
.panel-explorer-fallback {
    background:
        repeating-linear-gradient(0deg, #e0edfa0c 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, #e0edfa0c 0 1px, transparent 1px 26px),
        radial-gradient(ellipse at center, #2d4c68 0%, #162b41 69%, #122638);
}

.panel-explorer-viewport {
    position: relative;
    flex: 1 0 auto;
    height: clamp(280px, 36vw, 410px);
    cursor: grab;
    touch-action: pan-y;
}

.panel-explorer-viewport:active { cursor: grabbing; }
.panel-explorer-viewport:focus-visible { outline-offset: -4px; }
.panel-explorer-viewport canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.panel-explorer-viewbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    min-height: 62px;
    padding: 8px 14px;
    border-top: 1px solid #d0e6ff25;
    background: #132335;
}

.panel-explorer-viewbar p {
    color: #cfdaed;
    font-size: 13px;
}

.panel-explorer-rotation {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.panel-explorer-rotation button {
    min-width: 44px;
    border-color: #e0edfa55;
    padding-inline: 8px;
    color: #eff5ff;
}

.panel-explorer-rotation button:hover {
    background: #294865;
}

.panel-explorer-reset {
    margin-left: 3px;
}

.panel-explorer-parts {
    padding: 22px 23px 24px;
}

.panel-explorer-caption {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.panel-explorer-caption:empty { display: none; }

.panel-explorer-parts dl > div {
    position: relative;
    padding: 11px 0 11px 21px;
    border-bottom: 1px solid var(--line);
}

.panel-explorer-parts dl > div:last-child { border-bottom: 0; }
.panel-explorer-parts dt { font-size: 14px; font-weight: 750; }
.panel-explorer-parts dd { color: var(--muted); font-size: 13px; line-height: 1.5; }

.panel-explorer-swatch {
    position: absolute;
    inset: 17px auto auto 0;
    width: 11px;
    height: 11px;
    border: 1px solid #13233560;
    border-radius: 2px;
}

.panel-explorer-exterior { background: var(--panel-exterior); }
.panel-explorer-core { background: var(--panel-core); }
.panel-explorer-interior { background: var(--panel-interior); }
.panel-explorer-edge { background: var(--panel-edge); }

.panel-explorer-fallback {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 28px 22px;
    font-size: 13px;
}

.panel-explorer-static-sample {
    display: grid;
    grid-template-rows: 12px 48px 12px;
    width: min(325px, 53vw);
    border: 1px solid #b7ccdb;
}

.panel-explorer-static-sample span:first-child { background: var(--panel-exterior); }
.panel-explorer-static-sample span:nth-child(2) {
    border-inline: 10px solid var(--panel-edge);
    background: repeating-linear-gradient(133deg, #b18850 0 1px, transparent 1px 5px), var(--panel-core);
}
.panel-explorer-static-sample span:last-child { background: var(--panel-interior); }

@media (max-width: 760px) {
    .panel-explorer-layout { grid-template-columns: minmax(0, 1fr); }
    .panel-explorer-stage { min-height: 0; border-radius: 0; }
    .panel-explorer-viewport { flex: auto; height: clamp(264px, 70vw, 340px); }
    .panel-explorer-fallback { min-height: 222px; }
    .panel-explorer-viewbar { padding-inline: 12px; }
    .panel-explorer-parts { padding: 17px 16px; }
}

@media (max-width: 380px) {
    .panel-explorer button { padding-inline: 9px; font-size: 13px; }
}
