/* STL-feliratozó — munkaterület. Telefon (álló): nézet felül, panel alatta; ≥1024 px: nézet + jobb oldali panel. */
body.app { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view { position: relative; flex: 0 0 52vh; background: radial-gradient(ellipse at 50% 35%, #ffffff, #e7eaf4 78%); }
#cv { display: block; width: 100%; height: 100%; touch-action: none; }
.panel { flex: 1; overflow-y: auto; border-top: 1px solid var(--line); background: var(--white);
         padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .work { flex-direction: row; }
  .view { flex: 1; }
  .panel { flex: 0 0 380px; border-top: 0; border-left: 1px solid var(--line); }
}
.drop { position: absolute; inset: 16px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); padding: 16px; background: rgba(251,251,253,.75); }
.drop.over { border-color: var(--green); color: var(--ink); background: var(--ice); }
.drop b { font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.drop small { color: var(--muted); }
.drop[hidden] { display: none; }
.hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: var(--green); color: var(--white);
        font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; pointer-events: none; max-width: calc(100% - 24px); text-align: center; }
.busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(251,251,253,.7); font-weight: 700; color: var(--ink); }
.busy[hidden], .hint[hidden] { display: none; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.vtools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vtools .btn { background: rgba(255,255,255,.9); }

.blk { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.blk:last-child { border-bottom: 0; }
.lbl { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
       letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); }
.mono { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }
.adds { display: flex; gap: 6px; flex-wrap: wrap; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.items li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.items li.on { border-color: var(--green); background: var(--ice); }
.items .sw { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.15); }
.items .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.items .md { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.items .warn { color: var(--bad); font-size: 12px; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f > label, .f label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.row2 { display: flex; gap: 6px; } .row2 select { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--white); }
.seg button { flex: 1; background: none; border: 0; color: var(--ink-2); padding: 8px 4px; font: 600 13px var(--font-body); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--green); color: var(--white); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.note { color: var(--muted); font-size: 12px; }
.fils { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fils label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); }
.act { display: grid; grid-template-columns: 1fr 1fr; }
.act #bCalc, .act .note { grid-column: 1 / -1; }
#ePlace.on { background: var(--orange); color: var(--ink); border-color: var(--orange); }

.note.warn { color: var(--bad); font-weight: 600; }
.note.ok { color: var(--ok); }
