/* Illustrated, labelled choices; colors follow the user's theme. */
.visual-choice{min-width:0;display:grid;gap:10px}
.choice-title{font-size:15px;font-weight:650;color:var(--ink)}
.choice-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none;clip-path:inset(50%)}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.choice-card,.choice-check{position:relative;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:0;text-align:left;overflow:hidden;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s;font:inherit}
.choice-card .choice-picture{height:92px}
.choice-ability .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.choice-ability .choice-card .choice-picture{height:auto;aspect-ratio:4/3}
.choice-picture{display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;background:var(--soft);color:var(--gold)}
.choice-picture>img{width:100%;height:100%;max-width:100%;object-fit:cover;display:block;margin:0;border:0;border-radius:0}
.choice-picture.choice-portrait>img{object-position:50% 15%}
.choice-picture>.ui-icon{width:46px;height:46px}
.choice-picture>.item-art{width:64px;height:64px;margin:0;background-color:transparent;border:0;box-shadow:none}
.choice-copy{min-width:0;display:grid;gap:4px;padding:11px 13px}
.choice-copy strong{font-size:15px;font-weight:650;line-height:1.3;overflow-wrap:break-word}
.choice-copy small{font-size:13px;line-height:1.4;color:var(--muted)}
.choice-mark{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--green);color:var(--on-accent);font-size:13px;opacity:0;transform:scale(.75);transition:opacity .16s,transform .16s;box-shadow:0 1px 4px #0002}
.choice-card[aria-checked=true],.choice-check:has(input:checked){border-color:var(--green);background:var(--highlight);box-shadow:0 0 0 1px var(--green)}
.choice-card[aria-checked=true] .choice-mark,.choice-check:has(input:checked) .choice-mark{opacity:1;transform:scale(1)}
.choice-card:focus-visible,.choice-disclosure>summary:focus-visible,.choice-check:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:3px}
.choice-card:disabled{opacity:.45;cursor:default}
.choice-card:active:not(:disabled),.choice-check:active{transform:scale(.98)}
.choice-card[hidden],.choice-no-results[hidden]{display:none}
.choice-dice .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.choice-dice .choice-picture{height:62px;background:var(--soft)}
.choice-dice .choice-picture>img,.choice-mode .choice-picture>img{object-fit:contain;padding:6px}
.choice-dice .choice-disclosure>summary .choice-picture>img{object-fit:contain;padding:4px}
.choice-dice .choice-copy{padding:8px 10px;text-align:center}
.choice-dice .choice-copy small{font-size:12px}
.choice-mode .choice-grid,.choice-role .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.choice-mode .choice-picture{height:64px}
.choice-role .choice-picture,.choice-slot .choice-picture{height:70px}
.choice-event .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.choice-event .choice-card .choice-picture{height:136px}
.choice-event .choice-picture>img{object-position:50% 25%}
.choice-entity .choice-card{flex-direction:row;align-items:center}
.choice-entity .choice-picture{height:64px;width:60px;border-right:1px solid var(--line)}
.choice-entity .choice-copy{padding:10px;flex:1}
.choice-entity .choice-mark{width:18px;height:18px;top:5px;right:5px;font-size:11px}
.choice-check{display:flex;flex-direction:row;align-items:center;min-height:70px}
.choice-check input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.choice-check .choice-picture{height:70px;width:62px;border-right:1px solid var(--line)}
.choice-check .choice-copy{flex:1;padding:10px 30px 10px 12px}
.choice-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:12px;border:1px solid var(--line);border-radius:12px}
.choice-targets>legend{font-size:14px;font-weight:600;padding:0 5px;color:var(--muted)}
details.choice-targets{display:block}
details.choice-targets .choice-check{margin-top:10px}
.choice-disclosure{border:0;padding:0;min-width:0;position:relative}
.choice-disclosure>summary{list-style:none;display:flex;align-items:center;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-height:56px;cursor:pointer;overflow:hidden;gap:0;text-align:left}
.choice-disclosure>summary .choice-copy strong{text-align:left}
.choice-disclosure>summary::-webkit-details-marker{display:none}
.choice-disclosure>summary .choice-picture{width:52px;height:56px}
.choice-disclosure>summary .choice-copy{flex:1;padding:9px 12px}
.choice-disclosure>summary .choice-copy small{display:none}
.choice-disclosure>summary .choice-mark{display:none}
.choice-chevron{margin:0 14px 0 0;color:var(--muted)}
.choice-picker-panel{margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel);max-height:340px;overflow:auto;overscroll-behavior:contain;display:grid;gap:10px}
.choice-picker-panel>input{width:100%;font-size:16px}
.choice-picker-panel .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.choice-dice .choice-picker-panel .choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.plot-role-row .visual-choice{flex:1}
#human-compose .visual-choice{width:100%}
.human-table-toolbar .visual-choice{min-width:160px;max-width:310px}
.human-table-toolbar .choice-title{display:none}
@media (hover:hover){.choice-card:not(:disabled):hover,.choice-check:hover{border-color:var(--gold);background:var(--hover);transform:translateY(-2px)}.choice-disclosure>summary:hover{border-color:var(--gold);background:var(--hover)}}
@media(max-width:600px){.choice-ability .choice-grid,.choice-event .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-mode .choice-grid,.choice-role .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-card .choice-picture{height:82px}.choice-dice .choice-picture{height:54px}.choice-dice .choice-copy{padding:8px 4px}.choice-dice .choice-copy small{display:none}.choice-copy{padding:10px}.choice-copy strong{font-size:15px}.choice-copy small{font-size:12px}.choice-targets{padding:8px;gap:8px}.choice-check .choice-picture{width:46px}.choice-check .choice-copy{padding:8px 24px 8px 8px}.choice-check .choice-copy strong{font-size:14px}.choice-picker-panel .choice-grid{grid-template-columns:1fr}.human-table-toolbar .visual-choice{max-width:none;flex:1}.choice-entity .choice-card .choice-picture{height:64px}}
@media(prefers-reduced-motion:reduce){.choice-card,.choice-check,.choice-mark{transition:none}.choice-card:hover,.choice-check:hover{transform:none}}
@media(max-width:600px){.choice-targets{grid-template-columns:1fr}.choice-event .choice-card .choice-picture{height:104px}.choice-check .choice-copy{padding:10px 28px 10px 12px}}
@media(max-width:420px){.choice-mode .choice-grid{grid-template-columns:1fr}.choice-mode .choice-card{flex-direction:row;align-items:center}.choice-mode .choice-card .choice-picture{width:68px;height:74px}.choice-mode .choice-copy{flex:1;padding-right:28px}}
html[data-motion=off] .choice-card,html[data-motion=off] .choice-check,html[data-motion=off] .choice-mark{transition:none}
html[data-motion=off] .choice-card:hover,html[data-motion=off] .choice-check:hover,html[data-motion=off] .choice-card:active,html[data-motion=off] .choice-check:active{transform:none}
html[data-sheet-effects=off] .choice-card,html[data-sheet-effects=off] .choice-check,html[data-sheet-effects=off] .choice-mark{transition:none}
html[data-sheet-effects=off] .choice-card:hover,html[data-sheet-effects=off] .choice-check:hover,html[data-sheet-effects=off] .choice-card:active,html[data-sheet-effects=off] .choice-check:active{transform:none}
