.report-summary {
    --summary-edge: #bdabd9;
    --summary-depth: #dfd1ee;
    --summary-ink: #28204a;
    --summary-muted: #5b4f70;
    --summary-violet: #5631b5;
    margin: 0 auto 24px;
    max-width: 1080px;
    min-width: 0;
    color: var(--summary-ink);
    font-family: var(--sticker-type, system-ui, sans-serif);
}
.report-summary[hidden] { display: none; }
.report-summary.report-visuals { margin: 0 0 16px; }
.summary-radar-label {
    fill: var(--summary-muted);
    font: 550 13px/1 var(--sticker-type, system-ui, sans-serif);
    dominant-baseline: middle;
}

.report-summary :is(.summary-radar-panel,.summary-timing) {
    margin-top: 13px;
    border: 1px solid var(--summary-edge);
    border-radius: 18px;
    padding: clamp(12px, 2.4vw, 22px);
    background: #fff;
    box-shadow: 0 2px 0 var(--summary-depth);
}
.report-summary .summary-visual-title {
    margin: 0;
    font: 850 clamp(15px, 2.4vw, 19px)/1.35 var(--sticker-type, system-ui, sans-serif);
    color: var(--summary-ink);
}
.summary-radar-plot { display: block; width: 100%; max-width: 375px; height: auto; margin: 5px auto 0; }
.summary-radar-grid { fill: none; stroke: #d1c4e6; stroke-width: 1; }
.summary-radar-spoke { stroke: #dfd5ed; stroke-width: 1; }
.summary-radar-area { fill: #9267e7; fill-opacity: .27; }
.summary-radar-area { stroke: #6c42cb; stroke-width: 2; stroke-linejoin: round; }
.summary-radar-dot { fill: #8053dc; stroke: #fff; stroke-width: 1.5; }
.summary-timing-line,.summary-timing-pair { display: grid; gap: 5px; margin-top: 7px; }
.summary-timing-line { grid-template-columns: repeat(3,minmax(0,1fr)); }
.summary-timing-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.report-summary .summary-timing-node {
    display: grid;
    gap: 3px;
    min-height: 48px;
    align-content: center;
    border: 1px solid var(--summary-edge);
    border-radius: 11px;
    background: #f8f3fc;
    color: var(--summary-ink);
    text-align: start;
    padding: 5px 9px;
    font: inherit;
    font-size: 12px;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.summary-timing-node:first-child { background: #fff2c5; }
.summary-timing-pair .summary-timing-node:nth-child(1) { background: #def3e8; }
.summary-timing-pair .summary-timing-node:nth-child(2) { background: #ffebe4; }
.report-summary .summary-timing-node:focus-visible { outline: 2px solid var(--summary-violet); outline-offset: 2px; }

.summary-radar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.report-share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f2eaff;
    color: #5631b5;
    font: 800 13px/1.3 var(--sticker-type,system-ui,sans-serif);
    text-align: start;
    cursor: pointer;
}
.report-share-icon::before { content: '↗'; }
.report-share-trigger:hover { border-color: #c2aee3; }
.report-share-dialog {
    position: fixed;
    inset: 0;
    width: min(calc(100% - 24px), 460px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #bdabd9;
    border-radius: 21px;
    background: #fbf7ff;
    color: #28204a;
    box-shadow: 0 12px 40px #35215438;
    font-family: var(--sticker-type,system-ui,sans-serif);
}
.report-share-dialog::backdrop { background: #30234b88; }
.report-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px 7px 16px;
    border-bottom: 1px solid #d6c6eb;
    background: #ede3fb;
}
.report-share-header h2 { margin: 0; font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
.report-share-close {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: 700 24px/1 system-ui,sans-serif;
    cursor: pointer;
}
.report-share-close:hover { background: #e3d4f6; }
.report-share-preview:has(img) { display: grid; place-items: center; padding: 12px 12px 4px; }
.report-share-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(63dvh, 510px);
    border-radius: 12px;
    box-shadow: 0 3px 0 #e2d4f0;
}
.report-share-status { margin: 10px 16px; color: #5e5375; font-size: 13px; }
.report-share-status:empty { display: none; }
.report-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 12px 13px;
}
.report-share-actions[hidden] { display: none; }
.report-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #c4b2db;
    border-radius: 11px;
    background: #fff;
    color: #5631b5;
    font: 800 13px/1.35 var(--sticker-type,system-ui,sans-serif);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.report-share-save, .report-share-native {
    border-color: #5833b8;
    background: #6340c6;
    color: #fff;
}
.report-share-native + .report-share-save { border-color: #c4b2db; background: #fff; color: #5631b5; }
:is(.report-share-trigger,.report-share-close,.report-share-action):focus-visible {
    outline: 2px solid #5631b5;
    outline-offset: 2px;
}
