.draft-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 27px 0 18px; }
.draft-intro h1 { font-size: clamp(31px, 5.2vw, 58px); margin: 1px 0 0; }
.draft-intro .intro-subtitle { max-width: 60ch; margin-top: 6px; }
.draft-share { flex: none; }
.draft-arms { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.draft-arms a { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 650; }
.draft-arms a:hover, .draft-arms a:focus-visible { border-color: var(--accent); color: var(--ink); }
.draft-arms a[aria-current] { color: #ffe0d5; background: #382729; border-color: #ab685a; }
.draft-share-status { color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.draft-share-status:empty { display: none; }
.draft-phases ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; }
.draft-phases li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.draft-phases li[aria-current] { border-color: #965c52; background: #2a2022; }
.draft-phases li p { color: var(--muted); font-size: 12px; line-height: 1.35; }
.draft-phases li strong { font-size: 13px; }
.draft-workspace { display: grid; grid-template-columns: minmax(240px, 290px) minmax(0, 1fr); gap: 12px; align-items: start; }
.draft-controls { padding: 14px; min-width: 0; }
.draft-controls h2, .draft-section-head h2 { margin: 0 0 4px; font-size: 17px; }
.draft-controls form { display: grid; gap: 8px; font-size: 13px; }
.draft-controls label, .draft-controls legend { font-weight: 650; color: #ddd8dc; }
.draft-controls select, .draft-controls input { width: 100%; min-width: 0; min-height: 38px; padding: 6px 8px; color: var(--ink); background-color: var(--input); border: 1px solid var(--line); border-radius: 5px; }
.draft-priority { display: grid; gap: 4px; }
.draft-helper { color: var(--muted); font-size: 12px; line-height: 1.4; }
.draft-pick-field { border: 0; border-bottom: 1px solid var(--line-soft); margin: 6px 0; padding: 0 0 8px; min-width: 0; }
.draft-pick-field legend { margin-bottom: 4px; }
.draft-entry { display: grid; align-items: end; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px; margin-top: 6px; }
.draft-entry label { display: block; margin-bottom: 2px; font-size: 11px; }
.draft-search { position: relative; min-width: 0; }
.draft-suggestions {
  position: absolute; inset: calc(100% + 4px) auto auto 0; z-index: 3;
  min-width: 100%; width: max-content; max-width: min(215px, 60vw); max-height: 230px;
  overflow: auto; padding: 4px; margin: 0; list-style: none; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / .06);
}
.draft-suggestions li { display: flex; align-items: center; gap: 6px; min-height: 35px; padding: 4px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.draft-suggestions [data-hero] { cursor: pointer; }
.draft-suggestions [data-hero]:hover, .draft-suggestions [aria-selected="true"] { background: #382729; }
.draft-suggestions .portrait { width: 32px; height: 22px; flex: none; }
.draft-no-match { color: var(--muted); max-width: 18ch; }
.draft-clear { border: 0; background: none; color: #e6b9ac; text-decoration: underline; font-size: 12px; min-height: 32px; padding: 0; text-underline-offset: 2px; }
.draft-button { min-height: 38px; border: 1px solid #8b5346; background: #55382f; border-radius: 6px; color: #ffe0d5; padding: 4px 8px; font-weight: 680; }
.draft-button:hover:not(:disabled) { background-color: #71463b; }
.draft-button:disabled { opacity: .55; }
.draft-update { margin-top: 6px; background: #e8947d; color: #261712; border-color: #eaa18c; }
.draft-update:hover:not(:disabled) { background: #f4a690; }
.draft-field-status { color: #eebcab; font-size: 12px; margin-block: 4px; }
.draft-field-status:empty, .draft-hints:empty, #draft-picks:empty { display: none; }
#draft-picks { display: grid; gap: 4px; }
#draft-picks section { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
#draft-picks section > span { font-size: 11px; color: var(--muted); margin-right: 4px; }
.draft-chip, .draft-hint { border: 1px solid var(--line); border-radius: 5px; min-height: 30px; padding: 4px 6px; color: var(--ink); background: var(--surface); font-size: 11px; text-align: start; }
.draft-chip:hover, .draft-hint:hover, .draft-hint[aria-pressed="true"] { border-color: var(--accent); }
.draft-chip span { color: #e3a998; margin-left: 4px; }
.draft-hints { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.draft-hints p { flex: 0 0 100%; color: var(--muted); font-size: 11px; }
.draft-hints small { display: block; font-size: 10px; color: var(--muted); }
.draft-time { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 4px; }
.draft-time input { margin-top: 4px; }
.draft-output { min-width: 0; display: grid; gap: 12px; }
.draft-output[aria-busy="true"] { opacity: .78; }
.draft-shortlist, .draft-detail { min-width: 0; }
.draft-rubric, .draft-ratings { min-width: 0; }
.draft-rubric .draft-section-head { padding-bottom: 8px; }
.draft-rubric-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); gap: 6px; padding: 0 12px 8px; list-style: none; margin: 0; }
.draft-rubric-criteria li { border: 1px solid var(--line); border-radius: 5px; padding: 6px 6px; font-size: 11px; line-height: 1.4; }
.draft-rubric-criteria li p { color: var(--muted); }
.draft-rubric-criteria li strong { display: block; color: var(--ink); }
.draft-rubric-criteria li small { color: #eec0aa; }
.draft-rubric-rating { font-size: 11px; color: var(--muted); padding: 0 12px 10px; }
.draft-ratings { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.draft-ratings h3 { margin: 0 0 4px; font-size: 14px; }
.draft-ratings table { min-width: 500px; }
.draft-ratings th, .draft-ratings td { padding: 6px 6px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.draft-ratings th:first-child { font-weight: 650; color: var(--ink); }
.draft-ratings td:nth-child(2) { white-space: nowrap; }
.draft-ratings > p { margin-top: 6px; }
.draft-milestone { margin-top: 4px; border-left: 2px solid #68a48b; padding-left: 6px; color: #cbe5d6; }
.draft-milestone.is-short { border-left-color: #b58c63; color: #f0cda7; }
.draft-milestone small { color: var(--muted); display: block; }
.draft-section-head { padding: 12px 14px 6px; }
.draft-section-head p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.draft-shortlist > .draft-field-status { padding: 0 14px 6px; }
.draft-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(172px, 100%), 1fr)); gap: 6px; padding: 0 12px 10px; }
.draft-hero { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; min-height: 55px; text-align: start; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #202126; color: var(--ink); }
.draft-hero:hover { border-color: #ab685a; }
.draft-hero[aria-pressed="true"] { background: #382729; border-color: #ab685a; }
.draft-hero .portrait { width: 35px; height: 24px; }
.draft-hero strong { display: block; overflow-wrap: anywhere; font-size: 12px; }
.draft-hero small { display: block; color: var(--muted); font-size: 10px; }
.draft-coverage { border-top: 1px solid var(--line-soft); padding: 8px 14px 10px; color: var(--muted); font-size: 11px; }
.draft-coverage strong { color: var(--ink); font-weight: 650; }
.draft-detail-head { padding: 12px; }
.draft-detail-head h2 { margin: 0 0 4px; font-size: 18px; }
.draft-detail-head p { color: var(--muted); font-size: 12px; }
.draft-plan-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 0 14px 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.draft-plan-context strong { color: var(--ink); }
.draft-plan-context a { color: #e6b9ac; margin-inline-start: 4px; white-space: normal; }
.draft-builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
.draft-build { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 8px; font-size: 12px; background: #1d1e23; }
.draft-build h3 { font-size: 14px; margin: 0 0 2px; }
.draft-build-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; align-items: baseline; }
.draft-build:nth-child(1) h3 { color: #f0b3ba; }
.draft-build:nth-child(2) h3 { color: #efd097; }
.draft-build:nth-child(3) h3 { color: #a3ddba; }
.draft-budget { font-variant-numeric: tabular-nums; color: #e5c29a; font-weight: 700; }
.draft-farm-rate { color: var(--muted); font-size: 11px; }
.draft-timing { margin-block: 6px 2px; line-height: 1.4; }
.draft-build-note { color: var(--muted); margin: 4px 0 0; line-height: 1.4; }
.draft-change { color: #ecc0aa; border-left: 2px solid #a96354; padding-left: 6px; }
.draft-build ol { margin: 6px 0 0; padding-left: 16px; }
.draft-later { margin-top: 8px; border-top: 1px solid var(--line); line-height: 1.45; }
.draft-later summary { color: var(--ink); cursor: pointer; padding-block: 5px; }
.draft-later summary span { color: #f0cda7; font-size: 11px; display: block; }
.draft-build li { padding-block: 3px; border-top: 1px solid var(--line-soft); }
.draft-build li:first-child { border: 0; }
.draft-step-line { display: flex; align-items: flex-start; gap: 4px; line-height: 1.35; }
.draft-step-line .item-icon { width: 23px; height: 16px; flex: none; }
.draft-step-line span:last-child { min-width: 0; overflow-wrap: anywhere; }
.draft-build li small { color: var(--muted); display: block; font-size: 10px; line-height: 1.4; }
.draft-step-later { color: var(--muted); }
.draft-step-condition { color: #f3c3ad; }
.draft-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.draft-evidence section { min-width: 0; }
.draft-evidence h3 { margin: 0 0 4px; font-size: 13px; }
.draft-evidence ul { margin: 4px 0; padding-left: 16px; }
.draft-evidence li + li { margin-top: 4px; }
.draft-evidence table th, .draft-evidence table td { padding: 4px 4px; border-top: 1px solid var(--line-soft); }
.draft-evidence p { color: var(--muted); margin-block: 3px; line-height: 1.45; }
.draft-evidence table { margin-block: 5px; }
.draft-method { margin-top: 14px; }
.draft-method ul { margin: 0; padding-left: 16px; }

@media (max-width: 900px) {
  .draft-workspace { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); }
  .draft-evidence { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 690px) {
  .draft-intro { align-items: start; flex-direction: column; gap: 6px; padding: 14px 0 10px; }
  .draft-intro .intro-subtitle { font-size: 13px; }
  .draft-phases li { padding: 6px; }
  .draft-phases li p { display: none; }
  .draft-workspace, .draft-builds { grid-template-columns: minmax(0, 1fr); }
}
