[hidden] {display:none!important}
#card, #list, #workspace {min-width:0; overflow-wrap:anywhere}
#card code {display:block; overflow-wrap:anywhere; font-size:.8rem}
#card .version {margin:1rem 0}
#card a {display:inline-block; padding:.6rem 0}
#card label, #card button, #list button {margin:.35rem 0}
#card input, #create input {max-width:100%; min-width:0}
#card button {margin-right:.5rem}
summary {cursor:pointer; padding:.8rem 0}
@media(max-width:600px) {header {flex-wrap:wrap} header h1 {margin:0}}
main {max-width:1320px}
#matrix {background:white;border:1px solid var(--line);border-radius:12px;padding:1rem}
.matrix-tools {display:flex;align-items:end;gap:1rem;flex-wrap:wrap}
.matrix-tools label:first-child {flex:1;min-width:12rem}
.matrix-tools select {font:inherit;padding:.7rem;border:1px solid var(--line);border-radius:4px}
.matrix-tools output {color:var(--muted);padding-bottom:.6rem}
.matrix-scroll {overflow:auto;max-height:25rem;margin-top:1rem}
#matrix table {width:100%;border-collapse:separate;border-spacing:0;text-align:left}
caption {text-align:left;font:1.45rem Georgia,serif;padding:.2rem .5rem .65rem}
th {position:sticky;top:0;background:#f4f1eb;z-index:1;font-size:.8rem;color:#514e47}
th,td {padding:.6rem;border-bottom:1px solid var(--line)}
tr.selected {background:#faf4ef}
#list button {background:transparent;color:var(--ink);font-size:1rem;padding:.3rem 0;text-align:left;text-decoration:underline;text-underline-offset:3px}
small {display:block;color:var(--muted)}
.chip {display:inline-block;width:1rem;height:1rem;border-radius:50%;vertical-align:middle;margin-right:.45rem;border:1px solid #0002}
.badge {display:inline-block;background:#f0eeea;color:#514e47;border-radius:5px;padding:.2rem .5rem;font-size:.85rem}
.badge.done {background:#e4f2e9;color:#2b5a41}.badge.fix {background:#f9e3d9;color:#843f29}
#card {margin-top:2rem;scroll-margin-top:1rem}
#card>p:first-child {color:var(--muted);margin-bottom:.35rem}
#card h2 {margin-bottom:.6rem}
.card-actions-bar {display:flex;flex-wrap:wrap}
.card-actions-bar button {background:transparent;border:1px solid var(--line);color:var(--ink)}
.base-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.version {border-radius:10px;min-width:0}
.fitting {background:#f6f4f0;border-left:3px solid #b19b7c;padding:1rem;margin:.8rem 0}
.fitting h4 {margin:0}
.gallery {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(9rem,100%),1fr));gap:.6rem}
.gallery figure {margin:0;min-width:0}
.gallery img,.gallery video {width:100%;max-height:15rem;object-fit:contain;background:#ece8e2}
@media(max-width:700px){
 .base-columns {grid-template-columns:1fr;gap:0}
 .matrix-scroll {max-height:20rem}
 #matrix thead {position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
 #matrix table,#matrix tbody {display:block}
 #matrix tr {display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:.4rem}
 #matrix td {border:0;padding:.2rem;min-width:0}
 #matrix td:nth-child(3)::before {content:'54 · ' }
 #matrix td:nth-child(4)::before {content:'60 · ' }
 #matrix td:last-child {grid-column:1/-1}
 .matrix-tools {gap:.4rem}
 .matrix-tools label {width:100%;min-width:0}
}
