.df-page { --df-soft:#f1f6fa; --df-white:#fff; min-width:0; }
.df-header { padding:clamp(1rem,3vw,1.8rem); border:1px solid var(--line); border-radius:18px; background:var(--df-soft); margin-bottom:1.35rem; }
.df-header h1 { color:var(--blue); font-size:clamp(1.7rem,4vw,2.65rem); margin:0 0 1.1rem; }
.df-steps { list-style:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.35rem; margin:0; padding:0; max-width:360px; }
.df-steps li { min-height:5px; border-radius:6px; background:#d4e0eb; }
.df-steps li.df-step-done { background:var(--blue); }
.df-steps li[aria-current] { background:var(--gold); }
.df-stage { min-width:0; }
.df-stage h2 { font-size:clamp(1.35rem,3vw,2rem); margin-bottom:.5rem; }
.df-stage h2:focus, .df-review-header h3:focus { outline:none; }
.df-stage .lead { margin:.4rem 0 1rem; }
.df-edit-list, .df-review-list { display:grid; gap:.8rem; }
.df-edit-card, .df-rating-card, .df-note, .df-overview-panel { border:1px solid var(--line); border-radius:14px; background:var(--df-white); padding:clamp(.8rem,2.2vw,1.2rem); min-width:0; }
.df-edit-heading { display:flex; justify-content:space-between; align-items:center; gap:.75rem; margin-bottom:.25rem; }
.df-edit-heading h3, .df-rating-card h3 { color:var(--blue); overflow-wrap:anywhere; }
.df-edit-heading .df-remove { min-height:38px; }
.df-page label:not(.comparison-choice) { display:block; font-weight:700; margin:.55rem 0 .2rem; }
.df-page label .description { font-weight:400; }
.df-page input[type="text"], .df-page select, .df-page textarea { width:100%; min-width:0; box-sizing:border-box; min-height:44px; border:1px solid #a6b8c8; border-radius:9px; padding:.55rem .7rem; font:inherit; color:var(--ink); background:#fff; }
.df-page textarea { display:block; resize:vertical; }
.df-detail, .df-note-copy { margin:.25rem 0 0; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.df-add-row { display:flex; align-items:center; flex-wrap:wrap; gap:.55rem 1rem; margin-top:.9rem; }
.df-add-row .button { min-height:44px; }
.df-footer { padding-top:1rem; margin-top:1.25rem; border-top:1px solid var(--line); }

.df-priority .priority-item { min-width:0; }
.df-priority-text { min-width:0; overflow-wrap:anywhere; }
.df-options h3 { font-size:1.05rem; color:var(--blue); margin:0 0 .3rem; }
.df-switcher { margin:0 0 1rem; max-width:540px; }
.df-review-header { display:flex; justify-content:space-between; align-items:center; gap:.5rem 1rem; flex-wrap:wrap; background:var(--df-soft); border-radius:12px; padding:.8rem 1rem; }
.df-review-header .eyebrow { margin:0 0 .2rem; }
.df-review-header h3 { font-size:1.25rem; overflow-wrap:anywhere; scroll-margin-top:8rem; }
.df-review-header .link-button { min-height:36px; text-align:left; }
.df-reviewed { margin:.6rem 0; }
.df-ratings { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin-top:.7rem; }
.df-rating, .df-badge { display:flex; align-items:center; gap:.4rem; min-width:0; font:inherit; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.df-rating { justify-content:center; min-height:52px; padding:.42rem .45rem; border:1px solid #c2ced9; border-radius:9px; background:#fff; color:var(--ink); font-size:.87rem; }
.df-rating:hover { background:#edf4fa; border-color:#8da9c0; }
.df-rating[aria-pressed="true"], .df-badge { color:var(--df-rating-ink); background:var(--df-rating-bg); }
.df-rating[aria-pressed="true"] { border-color:var(--df-rating-ink); box-shadow:inset 0 0 0 1px var(--df-rating-ink); }
.df-rating svg, .df-badge svg { width:21px; height:21px; flex:0 0 21px; }
.df-yes { --df-rating-bg:#e6f4eb; --df-rating-ink:#20573a; }
.df-partly { --df-rating-bg:#fff2cf; --df-rating-ink:#695015; }
.df-no { --df-rating-bg:#faeae9; --df-rating-ink:#8e3835; }
.df-unknown { --df-rating-bg:#e8f1fa; --df-rating-ink:#214e76; }
.df-rating-hint { margin:.6rem 0 1rem; }
.df-note label:not(.comparison-choice) { margin-top:0; }

.df-table-wrap { max-width:100%; overflow:auto; border:1px solid var(--line); border-radius:12px; background:#fff; }
.df-table-wrap:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.df-table { width:100%; border-collapse:separate; border-spacing:0; }
.df-table th, .df-table td { min-width:160px; padding:.65rem .7rem; vertical-align:top; text-align:left; border-bottom:1px solid var(--line); border-right:1px solid var(--line); overflow-wrap:anywhere; }
.df-table th:last-child, .df-table td:last-child { border-right:0; }
.df-table tbody tr:last-child th, .df-table tbody tr:last-child td { border-bottom:0; }
.df-table thead th { background:var(--df-soft); color:var(--blue); }
.df-table thead .description { display:block; font-size:.76rem; font-weight:500; margin-bottom:.2rem; }
.df-table th:first-child { position:sticky; left:0; z-index:1; min-width:150px; max-width:240px; background:#f5f8fb; }
.df-table tbody th { font-size:.92rem; }
.df-table .df-detail { font-size:.82rem; }
.df-badge { display:inline-flex; padding:.3rem .45rem; border-radius:7px; font-size:.83rem; }
.df-badge svg { width:17px; height:17px; flex-basis:17px; }
.df-unrated { color:var(--muted); font-size:.88rem; }
.df-overview-panel { margin-top:1rem; }
.df-overview-panel h3 { color:var(--blue); margin:0 0 .5rem; }
.df-scores { margin-bottom:1rem; }
.df-score-explanation { max-width:740px; margin:.6rem 0 1.2rem; }
.df-score-explanation p + p { margin-top:.65rem; }
.df-follow-up-copy { margin:.35rem 0; line-height:1.5; overflow-wrap:anywhere; }
#df-follow-up-status:empty { display:none; }
.df-score-guidance { margin:0 0 .7rem; }
.df-score-list { display:grid; gap:.4rem; list-style:none; margin:0; padding:0; }
.df-score-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,auto); align-items:start; gap:.35rem .85rem; padding:.55rem .7rem; border-radius:8px; background:#f5f8fb; overflow-wrap:anywhere; }
.df-score-top { background:#e6f4eb; }
.df-score-name, .df-score-value { display:grid; gap:.15rem; }
.df-score-value { text-align:right; }
.df-score-tag { color:#20573a; font-size:.84rem; font-weight:700; }
.df-point-scale { margin-top:.75rem; }
.df-point-scale summary { color:var(--blue); cursor:pointer; font-weight:700; }
.df-point-scale p { margin:.4rem 0; }
.df-point-scale ul { margin:.3rem 0 0; padding-left:1.2rem; }
.df-followup + .df-followup { margin-top:.6rem; padding-top:.6rem; border-top:1px solid var(--line); }
.df-followup ul { margin:.25rem 0 .15rem; padding-left:1.2rem; overflow-wrap:anywhere; }
.df-overview-hint { display:none; }
.df-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

@media (max-width:700px) {
  .df-ratings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .df-rating { justify-content:flex-start; }
  .df-overview-hint { display:block; margin:.45rem 0; }
  .df-table th:first-child { min-width:120px; max-width:150px; }
  .df-table th, .df-table td { min-width:135px; padding:.55rem; }
}
@media (max-width:500px) {
  .df-score-row { grid-template-columns:minmax(0,1fr) minmax(0,.85fr); }
  .df-review-header h3 { scroll-margin-top:10rem; }
}
