.wsd {
    display: grid;
    gap: 20px;
    min-width: 0;
}
.wsd .wf-panel { margin: 0; }
.wsd .wf-btn { min-height: 42px; }
.wsd .wf-btn:focus-visible, .wsd summary:focus-visible, .wsd-pillar:focus-visible, .wsd-option:focus-within {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.wsd .wsd-workspace, .wsd .wsd-pillar-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 30%);
    gap: 18px;
}
.wsd .wsd-question, .wsd .wsd-intro { display: grid; gap: 16px; padding: clamp(16px, 3vw, 32px); }
.wsd .wsd-intro { align-content: center; min-height: 300px; }
.wsd h3, .wsd h4, .wsd p, .wsd dl, .wsd dd { margin: 0; }
.wsd p, .wsd small { color: var(--muted-text); }
.wsd h3 { font-size: clamp(18px, 2vw, 25px); line-height: 1.3; }
.wsd h4 { font-size: 15px; line-height: 1.4; }
.wsd .wsd-step, .wsd .wsd-actions, .wsd .wsd-report-tools, .wsd .wsd-form-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.wsd .wsd-step, .wsd .wsd-report-tools { justify-content: space-between; }
.wsd .wsd-step strong { color: var(--brand-deep); }
.wsd progress { width: 100%; height: 8px; accent-color: var(--brand); }
.wsd .wsd-options { display: grid; gap: 8px; }
.wsd .wsd-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    cursor: pointer;
}
.wsd .wsd-option:hover, .wsd .wsd-option.selected { border-color: var(--brand); }
.wsd .wsd-option.selected { color: var(--brand-deep); background: var(--brand-faint); }
.wsd .wsd-option input, .wsd .wsd-answer .wf-check input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--brand);
}
.wsd .wsd-answer { display: grid; gap: 12px; }
.wsd .wsd-answer .wf-check { gap: 9px; }
.wsd .wsd-answer .wf-field { max-width: 32rem; }
.wsd .wsd-invalid, .wsd .wsd-issue p { color: var(--danger); }
.wsd .wsd-issue {
    display: grid;
    justify-items: start;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--danger);
    border-radius: 12px;
    padding: 12px 16px;
}
.wsd .wsd-save-state { margin-left: auto; font-size: 12px; color: var(--muted-text); }
.wsd .wsd-form-links { padding-top: 10px; border-top: 1px solid var(--line); }
.wsd .wsd-progress { display: grid; gap: 8px; }
.wsd .wsd-progress h3 { font-size: 16px; margin-bottom: 4px; }
.wsd .wsd-pillar {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 53px;
    padding: 9px;
    text-align: left;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}
.wsd .wsd-pillar:disabled { opacity: .72; cursor: default; }
.wsd .wsd-pillar.active { border-color: var(--brand); background: var(--brand-faint); color: var(--brand-deep); }
.wsd .wsd-pillar strong, .wsd .wsd-pillar small { display: block; }
.wsd .wsd-pillar-mark {
    display: grid;
    place-items: center;
    height: 31px;
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--brand-deep);
    font-weight: 700;
}
.wsd .wsd-pillar-count { font-size: 11px; color: var(--muted-text); }
.wsd .wsd-report { display: grid; gap: 18px; }
.wsd .wsd-report-tools small { display: block; margin-top: 4px; }
.wsd .wsd-profile h3, .wsd .wsd-report section > h3 { margin-bottom: 12px; }
.wsd .wsd-profile dl, .wsd .wsd-plan {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.wsd .wsd-profile dl div { background: var(--surface-2); padding: 12px; border-radius: 10px; overflow-wrap: anywhere; }
.wsd dt { font-size: 12px; color: var(--muted-text); }
.wsd dd { font-weight: 600; overflow-wrap: anywhere; }
.wsd .wsd-analysis {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid var(--brand);
    border-radius: 14px;
    background: var(--brand-faint);
}
.wsd .wsd-analysis > div:last-child { flex: 1 1 235px; min-width: 0; overflow-wrap: anywhere; }
.wsd .wsd-analysis h3 { margin-bottom: 8px; }
.wsd .wsd-analysis p { color: var(--text); }
.wsd .wsd-score { display: flex; align-items: baseline; gap: 5px; color: var(--brand-deep); }
.wsd .wsd-score strong { font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.wsd .wsd-analysis .wsd-priority { margin-top: 10px; }
.wsd .wsd-pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wsd .wsd-pillar-list details + details { border-top: 1px solid var(--line); }
.wsd .wsd-pillar-list summary { cursor: pointer; padding: 11px 0; }
.wsd .wsd-pillar-list ul { padding-left: 20px; color: var(--muted-text); overflow-wrap: anywhere; }
.wsd .wsd-pillar-list li + li { margin-top: 8px; }
.wsd .wsd-pillar-score, .wsd .wsd-priority {
    display: inline-block;
    margin: 0 8px 0 4px;
    padding: 4px 8px;
    border-radius: 12px;
    color: var(--brand-deep);
    background: var(--brand-faint);
    font-size: 12px;
    font-weight: 600;
}
.wsd .wsd-priority.high { color: var(--warning, var(--brand-deep)); border: 1px solid currentColor; background: var(--surface); }
.wsd .wsd-radar { display: grid; justify-items: center; }
.wsd .wg-radar { width: min(100%, 410px); height: auto; }
.wsd .wsd-plan article { display: grid; gap: 10px; align-content: start; overflow-wrap: anywhere; }
.wsd .wsd-plan dt { margin-top: 8px; }
.wsd .wsd-plan dd { margin-top: 2px; font-weight: 500; }
.wsd-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wsd-history li {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.wsd-history li small { display: block; color: var(--muted-text); }
.wsd-history + .wsd-actions, .wsd-actions:has(+ .wsd-history) { display: flex; gap: 8px; margin-top: 12px; }

@media (max-width: 900px) {
    .wsd .wsd-profile dl, .wsd .wsd-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .wsd .wsd-workspace, .wsd .wsd-pillar-grid, .wsd .wsd-plan { grid-template-columns: minmax(0, 1fr); }
    .wsd .wsd-report-tools { align-items: flex-start; }
    .wsd .wsd-actions > button { min-height: 44px; }
    .wsd .wsd-save-state { order: 3; width: 100%; }
    .wsd .wsd-intro { min-height: 225px; }
}
