/* ============================================================
   tools3d.css — extras for the shared 3D tool page (tool3d.php).
   Base look comes from tools.css + room-designer.css (rd-*).
   ============================================================ */
.t3-app .rd-panel{max-height:min(78vh,760px)}
.t3-app .rd-stage{height:min(78vh,760px)}
.t3-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.t3-body>.rd-pane{flex:1 1 auto}
.rd-tabs[hidden]{display:none}
.rd-tabs button{font-size:.8rem;padding:0 .3rem;gap:.3rem}

/* live results */
.t3-stats{padding:.75rem 1.1rem;border-top:1px solid var(--line-soft);background:#fff}
.t3-stats-h{display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--rd-red,#d7141a);margin-bottom:.4rem}
.t3-stats dl{display:grid;grid-template-columns:1fr 1fr;gap:.35rem .8rem;margin:0}
.t3-stats dl>div{min-width:0}
.t3-stats dt{font-size:.7rem;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t3-stats dd{margin:0;font:600 .9rem/1.25 var(--ff-sans);color:var(--ink,#16161a)}
.t3-stats .is-hi{grid-column:1/-1}
.t3-stats .is-hi dd{font-size:1.05rem;color:var(--rd-red,#d7141a)}

/* controls the room designer doesn't have */
.t3-cards{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
.t3-cards .rd-preset span{min-width:0;hyphens:auto;overflow-wrap:break-word}
.t3-select,.t3-num{margin-bottom:.7rem}
.t3-select select,.t3-num input{width:100%}
.t3-list{max-height:220px;overflow:auto}
.t3-list li{display:flex;align-items:center;gap:.3rem}
.t3-list li.is-on{background:var(--rd-red-wash,rgba(215,20,26,.08))}
.t3-li-main{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:0;background:none;padding:.35rem .4rem;text-align:left;cursor:pointer;color:inherit;font:inherit;min-width:0}
.t3-li-main b{font-size:.82rem;font-weight:600}
.t3-li-main small{font-size:.72rem;color:var(--muted)}
.t3-li-x{border:0;background:none;color:var(--muted);width:30px;height:30px;border-radius:8px;cursor:pointer}
.t3-li-x:hover{background:var(--rd-red,#d7141a);color:#fff}
.t3-empty{font-size:.8rem;color:var(--muted);padding:.3rem 0}

/* toast over the canvas */
.t3-toast{position:absolute;left:50%;bottom:64px;transform:translate(-50%,12px);background:#16161a;color:#fff;padding:.55rem .95rem;border-radius:10px;font:600 .82rem/1.2 var(--ff-sans);opacity:0;pointer-events:none;transition:all .25s;z-index:6;max-width:90%;text-align:center}
.t3-toast.is-on{opacity:1;transform:translate(-50%,0)}
.rd-hint.is-gone{opacity:0;pointer-events:none}
.rd-tbtn.is-on{background:#16161a;color:#fff}
.rd-stage-wrap:fullscreen{border-radius:0}
.rd-stage-wrap:fullscreen .rd-stage{height:100vh}

/* SEO "good to know" cards */
.t3-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.t3-about-card{background:#fff;border:1px solid var(--line-soft);border-radius:18px;padding:1.3rem 1.4rem}
.t3-about-card h3{font-size:1.05rem;margin:0 0 .45rem}
.t3-about-card p{font-size:.92rem;color:var(--muted);margin:0;line-height:1.6}

@media (max-width:1040px){
  .t3-app .rd-panel{max-height:none}
  .t3-app .rd-stage{height:62vh;min-height:360px}
  .t3-about-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .t3-about-grid{grid-template-columns:1fr}
  .t3-fs{display:none}
}
