/* Thumbnail maker (/hq/thumbs): on top of rooms.css + tools.css, 360 px and up. */
body.embed .hero { display:none; } /* the office panel already shows the title */
.tm-drops { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr); gap:12px; }
@media (max-width:820px) { .tm-drops { grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); } .tm-drops .main { grid-column:1 / -1; } } /* phones: one drop per row when two would squeeze their buttons (N1) */
@media (max-width:400px) { .tm-drops { gap:8px; } }
.tm-drop { border:2px dashed var(--edge); border-radius:14px; padding:14px 12px; text-align:center; display:grid; gap:8px; justify-items:center; align-content:center; min-width:0; min-height:150px; background:var(--panel); }
.tm-drop.has { border-style:solid; }
.tm-drop.over { border-color:var(--lit); background:#1a2b57; }
.tm-drop b { font:800 15px/1.2 var(--display); overflow-wrap:anywhere; }
.tm-drop.main b { font-size:18px; }
.tm-in { max-width:100%; max-height:120px; border-radius:8px; display:block; object-fit:contain; background:#0b1838; }
.tm-drop.main .tm-in { max-height:150px; }
.tm-mini { justify-content:center; gap:8px; }
.tm-names { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
@media (max-width:720px) { .tm-names { grid-template-columns:minmax(0,1fr); } }
.tm-ed { display:grid; grid-template:"crop look" auto "words look" 1fr / minmax(0,1fr) minmax(0,1.15fr); gap:14px 16px; align-items:start; }
.tm-crop { grid-area:crop; } .tm-words { grid-area:words; } .tm-look { grid-area:look; position:sticky; top:8px; }
@media (max-width:860px) { .tm-ed { grid-template:"crop" auto "look" auto "words" auto / minmax(0,1fr); } .tm-look { position:static; } }
.check.hidden { display:none !important; }
.tm-ctl, .tm-look { display:grid; gap:10px; min-width:0; }
.tm-bar { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; justify-content:space-between; }
.tm-seg { flex-wrap:wrap; overflow:visible; padding:0; }
.tm-seg button { min-height:40px; }
.tm-lab { font:800 13px var(--body); display:grid; gap:5px; min-width:0; }
.tm-lab input[type=range] { width:100%; accent-color:var(--lit); min-height:40px; }
.tm-lab output { color:var(--lit); }
.tm-stagebox { display:grid; justify-items:center; background:#0b1838; border:1.5px solid var(--edge); border-radius:12px; padding:8px; min-width:0; }
.tm-stage { position:relative; display:inline-block; max-width:100%; line-height:0; cursor:crosshair; }
.tm-stage canvas { max-width:100%; max-height:340px; width:auto; height:auto; border-radius:6px; display:block; }
.tm-dot { position:absolute; width:44px; height:44px; margin:-22px 0 0 -22px; padding:0; background:none; border-radius:50%; cursor:grab; touch-action:none; }
.tm-dot::before { content:''; position:absolute; inset:9px; border-radius:50%; border:3px solid #fff; background:rgba(255,178,26,.55); box-shadow:0 0 0 2px #14072b, 0 2px 8px #000a; }
.tm-dot:active { cursor:grabbing; }
.tm-key { margin:0; }
.tm-key i.l { background:#ffd27a; } .tm-key i.p { background:#5fe0a0; } .tm-key i.b { background:#7cc4ff; }
.tm-prev { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:start; }
.tm-pv { margin:0; display:grid; gap:4px; min-width:0; }
.tm-pv canvas { width:100%; height:auto; border-radius:10px; border:1.5px solid var(--edge); background:#0b1838; display:block; }
.tm-pv.port canvas { max-height:250px; width:auto; max-width:100%; margin:0 auto; }
.tm-pv.logo canvas { background:repeating-conic-gradient(#24386c 0 25%,#1a2b57 0 50%) 0 0 / 22px 22px; }
.tm-pv figcaption { font:800 12.5px/1.25 var(--body); }
.tm-pv.off { opacity:.45; }
.tm-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
@media (max-width:760px) { .tm-checks { grid-template-columns:minmax(0,1fr); } }
.tm-both { grid-column:1 / -1; }
.tm-cks { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:7px; font-size:13.5px; line-height:1.4; }
.tm-ck { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:7px; align-items:start; }
.tm-ck b { font:800 12px/1.6 var(--body); min-width:32px; }
.tm-ck .ic { margin-top:2px; }
.tm-ck.is-ok .ic, .tm-ck.is-ok b { color:var(--go); } .tm-ck.is-warn .ic, .tm-ck.is-warn b { color:var(--mid); } .tm-ck.is-bad .ic, .tm-ck.is-bad b { color:var(--bad); }
.tm-rules { margin:0; padding-left:18px; display:grid; gap:5px; font-size:13.5px; line-height:1.45; }
.tm-rules a { white-space:nowrap; }
.tm-files { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
@media (max-width:900px) { .tm-files { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .tm-files { grid-template-columns:minmax(0,1fr); } }
.tm-file { background:var(--panel); border:1.5px solid var(--edge); border-radius:12px; padding:10px; display:grid; grid-template-columns:92px minmax(0,1fr); gap:10px; align-items:center; min-width:0; }
.tm-file img { width:92px; height:72px; object-fit:contain; border-radius:6px; background:#0b1838; display:block; }
.tm-file img.logo { background:repeating-conic-gradient(#24386c 0 25%,#1a2b57 0 50%) 0 0 / 14px 14px; }
.tm-file > div { display:grid; gap:2px; min-width:0; overflow-wrap:anywhere; }
.tm-file b { font:800 14px/1.2 var(--body); }
.tm-dl { display:inline-flex; gap:6px; align-items:center; font:800 13px var(--body); padding:4px 0; }
.tm-over { color:var(--bad); font:800 12.5px var(--body); }
.tm-p { margin:0; }
.tm-next { display:grid; gap:6px; justify-items:start; }
#results { display:grid; gap:12px; min-width:0; }
#results > * { min-width:0; }
#results .sbtn { max-width:100%; white-space:normal; }
#resh { scroll-margin-top:12px; outline:none; font-size:19px; }
.tm-paid { display:grid; gap:8px; border-color:#a9761f; background:#1c2340; }
.tm-paidh { display:flex; flex-wrap:wrap; gap:4px 10px; align-items:center; }
.tm-paidh .ic { color:var(--lit); }
.tm-paidh b { font:800 18px/1.2 var(--display); }
.tm-price { font:800 16px/1.2 var(--display); color:var(--lit); }
.tm-sz td:first-child, .tm-sz th:first-child { font-weight:800; }
.tm-sz td, .tm-sz th { text-align:left !important; }
.tm-sz small { display:block; color:var(--mid); }
/* the free tools under the maker (thumbtools.js): a tab row, two columns from 860 px, one below */
.tm-also { font-size:13.5px; }
.tm-tabs button[aria-selected=true] { background:linear-gradient(180deg,#ffdc8d,#f5b84a); color:#3b2605; border-color:#a9761f; }
.tm-seg button[disabled] { opacity:.45; cursor:default; }
.tm-tool { display:grid; gap:12px; min-width:0; }
.tm-tgrid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:14px 16px; align-items:start; }
.tm-tlook { position:sticky; top:8px; } /* the preview stays in sight beside the longer controls */
@media (max-width:860px) { .tm-tgrid { grid-template-columns:minmax(0,1fr); } .tm-tlook { position:static; } }
.tm-tdrop { min-height:130px; }
.tm-bad { color:var(--bad); font-weight:800; }
.tm-pv.tm-chk canvas { background:repeating-conic-gradient(#24386c 0 25%,#1a2b57 0 50%) 0 0 / 22px 22px; }
#rz-pv canvas, #bg-pv { max-height:360px; width:auto; max-width:100%; margin:0 auto; }
.tm-sw { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.tm-sw canvas { max-height:150px; width:auto; max-width:100%; margin:0 auto; }
.tm-sw .tm-dark canvas { background:#0b1530; }
.tm-sw .tm-light canvas { background:#f2f4f8; border-color:#c9d3ea; }
.tm-res { display:grid; gap:6px; justify-items:start; }
.tm-res b { font:800 16px/1.2 var(--display); outline:none; }
.tm-colrow { gap:8px; }
.tm-color { width:52px; height:38px; padding:2px; border:1.5px solid var(--edge); border-radius:9px; background:var(--panel); cursor:pointer; flex:none; }
.tm-lobby { margin:0; display:grid; gap:6px; min-width:0; }
.tm-lobby canvas { width:100%; height:auto; border-radius:12px; border:1.5px solid var(--edge); background:#0b1838; display:block; }
.tm-lobby.phone canvas { border:7px solid #1a2b57; border-radius:26px; box-shadow:0 0 0 1.5px var(--edge); }
