:host{color-scheme:light;--paper:#f5f3f1;--ink:#242123;--accent:#a51624;--line:#dacfd0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
body{margin:0;line-height:1.5}
.wrap{width:min(1024px,calc(100% - 40px));margin:auto}
header{background:#252123;color:#fff;border-bottom:4px solid #bd192b}
.mast{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0}
.mast strong{font-size:1.04rem;letter-spacing:.08em}
.mast span{font-size:.88rem;color:#ece2e3}
main{padding:35px 0}
h1{font-size:clamp(1.85rem,4vw,3rem);line-height:1.07;margin:0 0 13px}
h2{font-size:1.25rem;margin:0 0 10px}
p{margin:0 0 12px}
.intro{max-width:65ch}
form,.summary,.card,.table-wrap{border:1px solid var(--line);background:#fff;border-radius:8px;padding:18px}
form{margin:22px 0}
label{font-weight:700;display:block;margin-bottom:8px}
.input-line{display:flex;gap:8px}
input,button{font:inherit;border-radius:6px;min-height:44px}
input{width:100%;min-width:0;border:1px solid #97888a;padding:8px 11px}
button{cursor:pointer;flex:none;border:1px solid var(--accent);background:var(--accent);color:white;font-weight:650;padding:7px 13px}
button:hover{filter:brightness(.92)}
button.secondary,.examples button,.card button{background:white;color:#821320;border-color:#a67e82}
button:disabled{cursor:wait;opacity:.65}
a{color:#861624;text-underline-offset:3px}
:focus-visible{outline:3px solid #8a1823;outline-offset:3px}
.examples{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.examples button{min-height:38px}
.hint{color:#564d50;font-size:.9rem;margin-top:9px}
.hint:empty{display:none}
#status{font-weight:650}
.cards{display:grid;gap:10px}
.card p:last-child,.summary p:last-child{margin-bottom:0}
.card h2{margin-bottom:6px}
.card button{min-height:35px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:470px}
th,td{vertical-align:top;padding:12px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
thead th{border-bottom:2px solid var(--accent)}
tbody th{width:22%}
.summary{margin-top:14px}
.footer{margin-top:24px}
[hidden]{display:none!important}
@media(max-width:550px){.wrap{width:calc(100% - 28px)}main{padding:26px 0}.mast{align-items:baseline}.mast span{font-size:.77rem}.input-line{flex-wrap:wrap}.input-line input{flex-basis:100%}form,.summary,.card,.table-wrap{padding:13px}}
:host{display:block;margin:22px auto;width:min(1200px,calc(100% - 32px));background:transparent;line-height:1.5}
.wrap{width:100%;padding:16px 19px;background:white;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:6px}
.pick-title{font-size:clamp(1.22rem,2.4vw,1.55rem);line-height:1.2;margin:0 0 9px}
form{margin:0;padding:0;border:0}
#query{flex:1}
.pick-hint{font-size:.88rem;color:#564d50;margin:6px 0 0}
#status{margin-top:12px}
#status:empty{display:none}
#close-results{margin-top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:550px){
  .wrap{padding:12px}
  #query{flex:1 0 100%}
  .table-wrap{overflow-x:auto}
}
.card-detail{margin-top:9px}
.card-detail summary{cursor:pointer;font-weight:650;color:var(--accent);width:fit-content;padding:6px 0}
.card-section{margin:.75rem 0}
.card-section h3{font-size:1rem;margin:0 0 .5rem}
.card-section p{margin-bottom:.6rem}
.card-table{max-width:100%;overflow:auto;margin:.5rem 0;border:1px solid var(--line);border-radius:4px}
.card-table table{min-width:0;width:100%}
.card-table th,.card-table td{padding:6px 8px;overflow-wrap:normal}
.table-wrap>table{min-width:720px;table-layout:fixed}
.table-wrap>table>tbody>tr>th{width:18%}
.table-wrap>table>thead>tr>th:first-child{width:18%}
.table-wrap>table>tbody>tr>td{min-width:0}
.task-clarification,.task-partial{margin:12px 0}
.task-clarification p{margin:0}
.task-partial>summary{cursor:pointer;font-weight:650;color:var(--accent);padding:8px 0}
.task-missing{color:#724222}
