/* Card rules retained from the exact approved UI baseline, scoped to the new family. */
@scope (.choice-task) {
.board-card{background:rgba(20,20,20,.85);border:1px solid #ffffff1a;border-radius:12px;overflow:hidden}.board-card:hover{border-color:var(--cyan)}.board-card-head{display:flex;justify-content:space-between;align-items:start;gap:20px;background:#0006;padding:20px;border-bottom:1px solid var(--line)}.board-identity{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.board-identity .badge{font-size:9px}.board-identity code{color:#64748b;font:11px ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.board-card-head h2{font:22px/1.4 'Noto Serif JP',serif;letter-spacing:.03em;margin:0 0 5px}.board-card-head p{font-size:14px;color:#94a3b8;margin:0}.board-card-head>.badge{white-space:nowrap;font-size:10px}.board-card .good{color:var(--green);background:#0aff001a;border-color:#0aff004d}.board-card .warn{color:var(--yellow)}.board-card .cyan{color:var(--cyan)}.board-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#ffffff1a;border-bottom:1px solid var(--line)}.board-metrics>div{padding:22px 15px;text-align:center;background:#101010}.board-metrics>div>span{text-transform:uppercase;letter-spacing:.1em;font-size:9px;color:#64748b;display:block}.board-metrics strong{font:700 13px ui-monospace,Consolas,monospace;display:block;margin-top:12px}.board-metrics p{font-size:10px;color:#94a3b8;line-height:1.5;margin:8px 0 0}.board-card-body{padding:24px;background:#0006}.board-definition{padding:20px;background:#050505;border:1px solid #1e293bcc;border-radius:4px}.board-definition>h3{font:700 14px ui-monospace,Consolas,monospace;padding-bottom:12px;border-bottom:1px solid #334155;margin-bottom:20px}.board-definition-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;min-width:0}.board-definition-grid>div{min-width:0}.board-definition h4{color:var(--cyan);letter-spacing:.1em;font-size:10px;margin:0 0 10px}.board-label{display:block;color:#64748b;font-size:10px;margin-bottom:6px}.board-definition code{display:block;border:1px solid var(--line);background:#ffffff0d;padding:6px;color:var(--cyan);font-size:11px;overflow-wrap:anywhere}.board-definition p{font-size:12px}.board-definition details{padding:12px;font-size:12px}.board-reward{padding:16px;background:#111;border:1px solid #2d2d2d;border-radius:4px;align-self:start}.board-reward>small{font-size:9px;color:#64748b;letter-spacing:.1em}.board-reward>strong{display:block;font-size:22px;color:var(--green);margin:5px 0 16px}.board-reward>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:8px 0;border-bottom:1px solid #ffffff0d}.board-reward>div>span:first-child{color:#64748b}.board-reward>p{color:#94a3b8;font-size:11px;margin:14px 0 0}.board-card-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid var(--line);padding:20px;background:#0006}@media(max-width:700px){.board-hero h1{font-size:32px}.board-hero p{font-size:12px}.board-card-head{flex-wrap:wrap}.board-definition-grid{grid-template-columns:1fr}.board-card-body{padding:16px}.board-definition{padding:16px}.board-search{flex-wrap:wrap}.board-search label{width:100%}.board-metrics>div{padding:15px 7px}.board-metrics strong{font-size:11px}.board-card-actions button{width:100%}.board-types button{font-size:10px;padding:9px 10px}.board-top-controls>.board-state{flex:1}.board-top-controls>button{width:100%}.board-disclosure>summary{font-size:12px}.board-disclosure>summary span{font-size:10px;white-space:nowrap}.board-identity code{font-size:10px}.board-hero{margin-bottom:28px}}
.board-viewing .shell>header{position:sticky;top:0;z-index:4}
.board-metrics>div>span{display:flex;align-items:center;justify-content:center;gap:4px}.board-metric-icon{display:inline-block;width:12px;height:12px;flex-shrink:0}.board-metrics .deadline-orange{color:#fb923c}.board-metrics .reward-green{color:#0aff00}
.board-card-actions{align-items:flex-end}.board-secondary-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.board-secondary-actions button{font-size:11px}.board-summary-button{margin-left:auto}.summary-list-icon{width:16px;height:16px;flex-shrink:0}
:scope{background:rgba(20,20,20,.85);border:1px solid #ffffff1a;border-radius:12px;overflow:hidden;--cyan:#00f2ff;--green:#0aff00;--yellow:#f2cf69;--line:#283033;font-family:ui-monospace,Consolas,monospace}.badge{display:inline-block;padding:3px 9px;border:1px solid var(--line);border-radius:3px;color:var(--cyan)}.quote{white-space:pre-wrap;overflow-wrap:anywhere}.spacer{margin-top:20px}.board-definition details{margin-top:12px;border:1px solid var(--line)}.board-definition summary{cursor:pointer}.board-definition a{display:block;color:var(--cyan);font-size:12px;margin:12px 0}.board-definition code{max-width:100%}.board-metrics>div>span{min-height:27px}.board-card-actions{padding:20px}.board-card-actions button{white-space:normal}
}
/* Approved results and summaries are distinct surfaces. Scope all corrections to Choice. */
.choice-detail{--cyan:#00f2ff;--line:#283033;--muted:#94a3b8;--ink:#edf2f6;color:var(--ink);font:14px/1.65 'JetBrains Mono',Consolas,monospace;min-width:0}
.choice-detail .hero{display:block;margin:24px 0}.choice-detail .hero>small{color:var(--cyan)}.choice-detail h2{font-size:21px;line-height:1.5;margin:12px 0}.choice-detail h3{font-size:16px;margin:12px 0}.choice-detail h4{font-size:14px;margin:12px 0}.choice-detail p{margin:10px 0}.choice-detail .muted,.choice-detail .help{color:var(--muted);font-size:12px}
.choice-detail .panel,.choice-detail .result{background:rgba(20,20,20,.85);border:1px solid var(--line);border-radius:10px;padding:24px;margin:20px 0;min-width:0}
.choice-detail .status-title,.choice-detail .result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.choice-detail .status-title h2{flex:1;min-width:180px;margin:0}.choice-detail .badge,.choice-detail .pill{display:inline-block;border:1px solid var(--line);border-radius:4px;padding:4px 9px;font-size:12px;color:var(--cyan)}
.choice-detail .metrics,.choice-detail .facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.choice-detail .metric{border:1px solid var(--line);padding:16px;text-align:center}.choice-detail .metric b{font-size:25px;color:var(--cyan)}.choice-detail .metric span,.choice-detail .metric b,.choice-detail .facts small,.choice-detail .facts strong{display:block}.choice-detail .metric span,.choice-detail .facts small{font-size:11px;color:var(--muted)}.choice-detail .facts strong{font-size:14px;margin-top:5px}
.choice-detail .notice{border:1px solid var(--line);padding:18px;background:#0b1014;margin:16px 0}.choice-detail .private-note{border-left:3px solid #a855f7;background:#a855f70a}.choice-detail .private{color:#c084fc}.choice-detail .warning,.choice-detail .warn{color:#f2cf69}.choice-detail .good,.choice-detail .success{color:#8de986}
.choice-detail details{border:1px solid var(--line);padding:16px;margin:16px 0;background:#080b0d}.choice-detail summary{cursor:pointer;color:var(--cyan);font-weight:600}.choice-detail .review-candidate{border-top:1px solid var(--line);margin-top:16px;padding-top:8px}
.choice-detail .tabs{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.choice-detail .tabs [aria-pressed=true]{background:#00f2ff1a;border-color:var(--cyan)}.choice-detail .paid-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.choice-detail button{font-size:12px;line-height:1.6;padding:10px 14px;white-space:normal}.choice-detail button:disabled{opacity:.45;cursor:not-allowed}
.choice-detail .quote{white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid #334155;padding:12px 16px;background:#07090c}.choice-detail .candidate-url,.choice-detail .transaction,.choice-detail .muted,.choice-detail .result-head strong,.choice-detail .status-title h2,.choice-detail dd{overflow-wrap:anywhere}.choice-detail dl>div{margin:12px 0}.choice-detail dt{color:var(--muted);font-size:12px}.choice-detail dd{margin:4px 0;white-space:pre-wrap}
.choice-detail .choice-results-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line)}
.choice-detail .choice-results-scroll{container-type:inline-size}.choice-detail .choice-results-table [colspan] dl{position:sticky;left:14px;width:min(850px,calc(100cqw - 32px))}.choice-detail .result-head strong{display:block}
.choice-detail .hero h1{font:normal clamp(30px,3.4vw,44px)/1.2 Georgia,serif;margin:10px 0 16px}.choice-detail .notice{border-left:3px solid var(--cyan)}.choice-detail .notice.private-note{border-left-color:#a855f7}.choice-detail .notice.warning{border-left-color:#f2cf69}.choice-detail .notice.success{border-left-color:#8de986}
.choice-detail .status-title h2.choice-question{font:400 14px/1.65 'JetBrains Mono',Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.choice-summary-detailgrid small{display:block;margin:0 0 6px;color:#91a0b4;font-size:11px}.choice-summary-value{white-space:pre-wrap;overflow-wrap:anywhere}
.choice-detail .choice-results-table{width:100%;min-width:1100px;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.6}
.choice-detail .choice-results-table th,.choice-detail .choice-results-table td{padding:14px;vertical-align:top;word-break:normal;overflow-wrap:break-word}
.choice-detail .choice-results-table th{white-space:normal;color:var(--cyan)}.choice-detail .choice-results-table th:first-child{width:240px}.choice-detail .choice-results-table th:nth-child(2){width:160px}.choice-detail .choice-results-table th:nth-child(3){width:130px}.choice-detail .choice-results-table th:nth-child(4),.choice-detail .choice-results-table th:nth-child(6){width:180px}.choice-detail .choice-results-table th:nth-child(5){width:200px}.choice-detail .choice-results-table th:last-child{width:110px}
.choice-detail .choice-results-table td p{max-width:none;word-break:normal;overflow-wrap:anywhere}.choice-detail .choice-results-table button{white-space:nowrap;word-break:normal;min-width:80px;clip-path:none}.choice-detail .choice-results-table [colspan] dl{max-width:900px}.choice-detail .choice-results-table [colspan] dd{max-width:850px}
@media(max-width:700px){.choice-detail .panel,.choice-detail .result{padding:16px}.choice-detail .metrics,.choice-detail .facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.choice-detail h2{font-size:19px}.choice-detail .paid-actions>button{max-width:100%}.choice-detail .choice-results-table [colspan] dl{max-width:270px}.choice-detail .choice-results-table [colspan] dd{max-width:270px}.choice-detail .result-head{display:block}.choice-detail .result-head .pill{margin-top:10px}.choice-detail .metric{padding:12px}}
.choice-detail .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:4px;overflow:hidden}.choice-detail .metric{background:#0c0c0c;border:0;padding:18px;text-align:left}.choice-detail .metric b{font-size:27px;color:var(--ink)}
.choice-detail .empty{text-align:center;padding:38px 20px;color:var(--muted)}.choice-detail .empty h3{color:var(--ink)}.choice-detail .eyebrow{color:var(--cyan);letter-spacing:.1em}.choice-detail details li{font-size:12px;color:var(--muted)}.choice-detail details li+li{margin-top:8px}
@media(max-width:540px){.choice-detail .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-detail .metric{padding:14px}}
/* The wallet chooser lives in the top layer under body, outside .choice-detail. */
dialog.choice-wallet-dialog{color-scheme:dark;box-sizing:border-box;width:calc(100% - 32px);max-width:640px;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid #ffffff1a;border-radius:12px;background:rgba(20,20,20,.98);color:#cbd5e1;font:14px/1.65 'JetBrains Mono',Consolas,monospace;backdrop-filter:blur(10px)}
.choice-wallet-dialog::backdrop{background:#000c}.choice-wallet-dialog .choice-wallet-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.choice-wallet-dialog h2{color:#00f2ff;font:700 16px/1.5 'JetBrains Mono',Consolas,monospace;letter-spacing:.08em;margin:0}.choice-wallet-dialog p{margin:0 0 18px;color:#94a3b8}.choice-wallet-dialog button{font:inherit;min-height:44px;cursor:pointer}.choice-wallet-dialog button:focus-visible{outline:2px solid #00f2ff;outline-offset:4px}.choice-wallet-dialog .choice-wallet-providers{display:grid;gap:12px}.choice-wallet-dialog .choice-wallet-provider{display:flex;align-items:flex-start;width:100%;padding:14px 16px;border:1px solid #00f2ff59;border-radius:6px;background:#00f2ff0f;color:#fff;text-align:left;white-space:normal;overflow-wrap:anywhere;text-transform:none;letter-spacing:normal;clip-path:none}.choice-wallet-dialog .choice-wallet-provider:hover{background:#00f2ff1f;border-color:#00f2ff;box-shadow:none}.choice-wallet-dialog .choice-wallet-close{flex-shrink:0;min-width:44px;padding:0 10px;border:0;border-radius:4px;background:transparent;color:#94a3b8;font-size:24px}.choice-wallet-dialog .choice-wallet-actions{display:flex;gap:12px;margin-top:24px}.choice-wallet-dialog .choice-wallet-cancel{padding:10px 16px;border:1px solid #3c4650;border-radius:4px;background:#151b1d;color:#cbd5e1}.choice-wallet-dialog .choice-wallet-close:hover,.choice-wallet-dialog .choice-wallet-cancel:hover{color:#00f2ff;border-color:#00f2ff;background:#143033}
.choice-detail .choice-proof-action{max-width:100%}.choice-detail .choice-proof-progress{max-width:640px;color:#f2cf69;font-size:12px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}.choice-detail .choice-proof-progress:empty{display:none}
@media(max-width:540px){dialog.choice-wallet-dialog{padding:20px}.choice-wallet-dialog h2{font-size:14px}.choice-wallet-dialog .choice-wallet-cancel{width:100%}}
