body:not(.is-editing) #deck:has(>.model-overview.active){overflow:hidden;scrollbar-gutter:auto}
body:not(.is-editing) #deck>.model-overview.active{height:calc(100dvh - var(--nav) - 2 * var(--frame));min-height:0;overflow:hidden;gap:18px}
.model-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;flex:1;min-height:0;width:100%;border:0;background:transparent;padding:0;box-shadow:none;text-align:center}
.model-family{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.model-family>img{width:clamp(100px,12vw,180px);height:clamp(100px,12vw,180px);object-fit:contain;color-scheme:light}
.model-family>strong{font-size:clamp(28px,2.8vw,44px);font-weight:750;line-height:1.2}
.model-list{display:flex;flex-direction:column;gap:8px;font-size:clamp(24px,2vw,32px);font-weight:600;line-height:1.3}
.model-list small{font-size:16px;font-weight:500;white-space:nowrap;color:var(--muted)}
.model-sources{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:16px;color:var(--muted);flex:none}
.model-sources nav{display:flex;gap:18px;flex-wrap:wrap}
dialog#model-reference-dialog{position:fixed;inset:0;margin:auto;width:calc(100vw - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;border:0;padding:16px;background:#fff;border-radius:12px;overflow:hidden}
#model-reference-dialog::backdrop{background:#000b}
#model-reference-dialog img{display:block;width:100%;height:100%;object-fit:contain}
#model-reference-dialog .model-reference-close{position:absolute;right:12px;top:12px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:1px solid #ddd;background:#fff;border-radius:50%;font-size:30px;padding:0}
@media(max-height:700px){.model-family{gap:8px}.model-family>img{width:110px;height:110px}.model-list{gap:5px;font-size:24px}.model-family>strong{font-size:30px}}
@media(max-width:650px){.model-family>img{width:70px;height:70px}.model-family>strong{font-size:23px}.model-list{font-size:18px;gap:10px}.model-list small{display:block;font-size:13px}.model-sources{font-size:13px;align-items:flex-start}.model-sources nav{gap:8px}}
@media(max-height:500px){body:not(.is-editing) #deck>.model-overview.active{padding-top:66px;padding-bottom:12px;gap:10px}.model-overview h2{font-size:32px}.model-family{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;text-align:left;padding:0 12px}.model-family>img{width:64px;height:64px}.model-family>strong{font-size:24px}.model-list{grid-column:1/-1;font-size:20px;gap:2px}.model-sources{font-size:12px}}

dialog#model-reference-dialog[open]{display:grid;place-items:center}
#model-reference-dialog .model-reference-image{position:relative;display:block;width:min(100%,calc((100dvh - 64px) * 1200 / 1999));aspect-ratio:1200 / 1999;height:auto;min-height:0;max-height:100%;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer}
#model-reference-dialog .model-reference-image img{width:100%;height:100%;object-fit:contain}
#model-reference-dialog .model-reference-highlight{position:absolute;left:2%;top:93.2466%;width:96%;height:6.2031%;border:4px solid #ff2525;pointer-events:none;box-sizing:border-box}
