*{box-sizing:border-box}body{margin:0;background:#edf0f2;color:#1c252b;font-family:Inter,Segoe UI,Arial,sans-serif;line-height:1.5}button,input,select,textarea{font:inherit}header{min-height:76px;padding:0 4vw;background:#151b20;color:#fff;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:20}.brand{display:flex;gap:12px;align-items:center}.brand>span{width:43px;height:43px;border:1px solid #81919a;border-radius:12px;display:grid;place-items:center;font-weight:800}.brand b,.brand small{display:block}.brand small{font-size:11px;color:#98a5ac;letter-spacing:1px}header button{background:#25313a;color:#fff;border:1px solid #4a5962;border-radius:10px;padding:10px 13px}.hero{max-width:1500px;margin:auto;padding:52px 4vw;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}.hero em{font-style:normal;font-size:11px;letter-spacing:2px;font-weight:800;color:#4f6a79}.hero h1{font:600 clamp(40px,5vw,70px)/1.04 Georgia,serif;margin:12px 0}.hero p{font-size:18px;color:#66747c}.sample{border:12px solid #555;background:#e8e8e8;padding:18px;box-shadow:0 25px 65px #18242c33}.sample h3{text-align:center;margin:0 0 8px;border-bottom:2px solid #777}.sample>div{display:grid;grid-template-columns:repeat(3,1fr)}.sample i{font-style:normal;border:1px solid #777;padding:4px;display:flex;justify-content:space-between;font-family:Georgia,serif}.sample small{display:block;text-align:center;margin-top:8px;font-weight:700}.work{max-width:1500px;margin:auto;padding:0 4vw 80px;display:grid;grid-template-columns:minmax(330px,440px) 1fr;gap:22px;align-items:start}.panel{background:#fff;border:1px solid #d4dde1;border-radius:22px;padding:22px;box-shadow:0 16px 50px #18242c12}.controls{position:sticky;top:92px;max-height:calc(100vh - 110px);overflow:auto}.types{display:grid;grid-template-columns:1fr 1fr;gap:10px}.types label{border:1px solid #c9d4d9;border-radius:13px;padding:12px;background:#f7f9fa}.types label.active{border-color:#315d73;background:#eaf3f7}.types input{display:none}.types b,.types span,.types small{display:block}.types span{font-size:18px;color:#315266}fieldset{border:0;border-top:1px solid #e2e8eb;margin:18px 0 0;padding:16px 0 0}legend{font-weight:800}label{display:block;font-size:12px;color:#5d6b73;margin:9px 0}input,select,textarea{width:100%;padding:10px;border:1px solid #c8d2d7;border-radius:9px;margin-top:5px}.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.three button,.previewhead button{border:1px solid #c8d2d7;background:#f5f8f9;border-radius:9px;padding:8px}.danger{color:#913333}.switch{display:flex;gap:8px;align-items:center;background:#f5f7f8;padding:8px;border-radius:9px}.switch input{width:auto;margin:0}.hint,.note{font-size:12px;color:#6e7c84}.stats{display:flex;flex-wrap:wrap;gap:6px}.stats span{font-size:11px;background:#f0f4f6;border-radius:99px;padding:5px 8px}.previewhead{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.previewhead small{display:block;color:#718089}.stage{min-height:680px;background:repeating-conic-gradient(#e8edf0 0 25%,#dae2e6 0 50%) 50%/24px 24px;border-radius:16px;padding:22px;display:grid;place-items:center;overflow:auto}.stage canvas{max-width:100%;max-height:74vh;box-shadow:0 18px 55px #1116;background:#fff}.stage.actual canvas{max-width:none;max-height:none}.ok,.warn,.bad{padding:10px;border-radius:9px;margin-top:12px;font-size:12px}.ok{background:#e8f4eb;color:#386047}.warn{background:#fff2d4;color:#775719}.bad{background:#fde7e7;color:#8c3535}.exports{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.exports button{border:0;background:#273b47;color:#fff;border-radius:10px;padding:11px 15px}.exports .primary{background:#2f657e}.modal{position:fixed;inset:0;background:#091116cc;display:grid;place-items:center;padding:20px;z-index:100}.modal.hidden{display:none}.modal>div{width:min(620px,100%);background:#fff;border-radius:20px;padding:28px;position:relative}.modal>div>button{position:absolute;right:12px;top:10px;border:0;border-radius:50%;width:38px;height:38px;font-size:24px}footer{padding:25px 4vw;background:#151b20;color:#9aa7ae;display:flex;justify-content:space-between}@media(max-width:1050px){.work,.hero{grid-template-columns:1fr}.controls{position:static;max-height:none}}@media(max-width:700px){.two,.three,.types{grid-template-columns:1fr}.stage{min-height:360px;padding:8px}.exports{flex-direction:column}.exports button{width:100%}footer{flex-direction:column;gap:8px}}

/* v1.2 – külön név- és hívószám-szerkesztő */
.name-call-editors{
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(90px,1fr);
  gap:10px;
  align-items:start;
}
.name-call-editors textarea{
  min-height:360px;
  white-space:pre;
  overflow:auto;
}
#callNumbers{
  text-align:center;
  font-family:"Courier New",monospace;
  font-variant-numeric:tabular-nums;
}
@media(max-width:620px){
  .name-call-editors{grid-template-columns:minmax(0,2fr) minmax(82px,1fr)}
  .name-call-editors textarea{min-height:300px}
}

/* v1.3 – párosított név/hívószám sorok és PhotoLand visszalépés */
.header-actions{display:flex;align-items:center;gap:9px}
.photoland-back{display:inline-flex;align-items:center;border:1px solid #52616a;background:#202a31;color:#fff;border-radius:11px;padding:10px 14px;text-decoration:none;font-size:14px}
.photoland-back:hover{background:#e1e7ea;color:#182127}
.resident-editor-head,.resident-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 105px 38px;
  gap:7px;
  align-items:center;
}
.resident-editor-head{
  padding:0 5px 6px;
  color:#697881;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
}
.resident-rows{
  max-height:460px;
  overflow:auto;
  border:1px solid #c9d3d8;
  border-radius:13px;
  background:#f5f8f9;
  padding:7px;
}
.resident-row{
  padding:5px;
  margin-bottom:5px;
  background:#fff;
  border:1px solid #d8e0e4;
  border-radius:9px;
}
.resident-row:last-child{margin-bottom:0}
.resident-index{
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:8px;
  background:#273b46;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.resident-row input{margin:0;min-width:0}
.resident-call{
  text-align:center;
  font-family:"Courier New",monospace;
  font-variant-numeric:tabular-nums;
  font-weight:700;
}
.remove-resident{
  width:32px;
  height:32px;
  margin:0;
  padding:0;
  border-radius:8px;
  border:1px solid #e2c5c5;
  background:#fff1f1;
  color:#962f2f;
  cursor:pointer;
}
.resident-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.resident-actions button{width:auto;margin:0}
@media(max-width:720px){
  header{align-items:flex-start;gap:10px}
  .header-actions{flex-direction:column;align-items:stretch}
  .photoland-back,#helpOpen{padding:8px 10px;font-size:12px}
  .resident-editor-head,.resident-row{grid-template-columns:34px minmax(0,1fr) 78px 32px;gap:5px}
}

output{float:right;font-weight:700;color:#2f6178} input[type=range]{accent-color:#2f6178}


/* v1.8 – szerkeszthető alsó mezőfelirat */
.editable-caption{position:relative}
.caption-input{
  width:100%;
  margin:0 0 5px;
  padding:2px 5px;
  border:1px dashed transparent;
  border-radius:6px;
  background:transparent;
  color:#5d6b73;
  font-size:12px;
  line-height:1.45;
}
.caption-input:hover{border-color:#b9c8cf;background:#f7fafb}
.caption-input:focus{
  outline:none;
  border-color:#2f657e;
  background:#eef6f9;
  color:#244b5e;
  box-shadow:0 0 0 2px #2f657e1f;
}
