*{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}

.hero.compact{margin-bottom:28px}.hero-summary{background:#fff;border:1px solid #d7e0e4;border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:5px;box-shadow:0 14px 40px #17232b12}.hero-summary strong{font-size:22px}.hero-summary span{color:#31566a;font-weight:700}.hero-summary small{color:#71818a}.four{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.important{background:#f4f8fa;border-color:#b9cbd4}.profile-note{background:#fff5d9;border:1px solid #ead49a;padding:10px;border-radius:10px;color:#71571b}.hidden{display:none!important}details{border-top:1px solid #e4e9ec;margin-top:18px;padding-top:12px}details summary{cursor:pointer;font-weight:800;color:#2b4654;padding:8px 0}.resident-actions button{padding:7px 9px}.exports{align-items:center}.exports button{white-space:nowrap}.template-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px;border:1px solid #d9e1e5;border-radius:10px;margin:8px 0}.template-item div{display:flex;gap:7px}.template-item button{padding:7px 10px}@media(max-width:900px){.four{grid-template-columns:1fr 1fr}.header-actions{flex-wrap:wrap}}@media(max-width:620px){.four{grid-template-columns:1fr 1fr}.hero-summary{padding:16px}}

/* NameTable Pro v1.1 */
:root{--pro-accent:#c79735;--pro-deep:#15212a}
body{background:linear-gradient(180deg,#e8edf0,#f4f5f5 520px)}
header{background:linear-gradient(100deg,#111920,#1d2a33);box-shadow:0 12px 35px #0a111655}
.pro-badge{font-style:normal;font-size:9px;letter-spacing:.8px;color:#16120a;background:linear-gradient(135deg,#f2d078,#bd8125);padding:3px 6px;border-radius:999px;vertical-align:middle;margin-left:5px}
.hero.compact{background:radial-gradient(circle at 80% 20%,#dbe8ee 0,transparent 38%);border-bottom:1px solid #d6e0e4}
.hero-summary{border-top:4px solid var(--pro-accent);background:linear-gradient(145deg,#fff,#f6f8f9)}
.work{grid-template-columns:minmax(360px,470px) minmax(0,1fr)}
.panel{border-color:#ccd7dc;box-shadow:0 24px 70px #17283216}
.controls h2{font:700 30px Georgia,serif;margin-top:0}
fieldset{background:#fff;border:1px solid #dde5e8;border-radius:16px;padding:16px;margin-top:14px}
fieldset legend{padding:0 8px;color:#263f4c}
fieldset.important{border:1px solid #a9c3d0;background:linear-gradient(145deg,#f1f8fb,#fff)}
details{border:1px solid #d7e2e6;border-radius:16px;padding:0 15px 12px;background:#fbfcfc}
details summary{font-size:15px}
.resident-row{transition:.16s}.resident-row:hover{border-color:#7fa2b2;box-shadow:0 5px 15px #21394412}
.resident-row.duplicate{border-color:#d79a36;background:#fff8e9}
.resident-row.missing-call{border-left:4px solid #bd5555}
.row-tools{display:flex;gap:3px}.row-tool{width:26px;height:28px;padding:0;border:1px solid #d4dde1;background:#f5f8f9;border-radius:7px;cursor:pointer;font-size:11px}.row-tool.delete{color:#982f2f;background:#fff0f0}
.resident-editor-head,.resident-row{grid-template-columns:42px minmax(0,1fr) 105px 88px}
.data-quality{margin-top:10px;padding:11px;border:1px solid #d9e2e5;background:#f7fafb;border-radius:12px;font-size:12px}
.data-quality strong{color:#2d596c}.data-quality .issue{color:#8c4f18}
.preview{position:sticky;top:92px}
.preview-status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.preview-status-grid>div{background:#f5f8f9;border:1px solid #dbe3e6;border-radius:12px;padding:10px}
.preview-status-grid span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:#74838b}
.preview-status-grid strong{font-size:14px;color:#294d5e}
.exports{flex-wrap:wrap}
.exports button{transition:.18s;box-shadow:0 5px 14px #182b3522}.exports button:hover{transform:translateY(-1px);filter:brightness(1.08)}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.modal-actions button{position:static!important;width:auto!important;height:auto!important;border-radius:9px!important;padding:10px 14px!important;font-size:14px!important}
#bulkText{min-height:280px;font-family:Consolas,monospace}
input[type=color]{height:42px;padding:4px}
@media(max-width:1050px){.preview{position:static}.work{grid-template-columns:1fr}}
@media(max-width:700px){.preview-status-grid{grid-template-columns:1fr}.resident-editor-head,.resident-row{grid-template-columns:34px minmax(0,1fr) 74px 74px}.row-tool{width:22px}}

/* v1.3 FIXED – projektkezelő, a stabil v1.2 felületére építve */
.project-manager{
  margin-top:14px;
  padding:15px;
  border:1px solid #cfdbe0;
  border-radius:15px;
  background:linear-gradient(145deg,#f6f9fa,#ffffff);
}
.project-manager-head{margin-bottom:10px}
.project-manager-head strong{display:block;color:#243f4c;font-size:16px}
.project-manager-head span{display:block;color:#718088;font-size:11px;margin-top:2px}
.project-manager label{margin:0 0 10px}
.project-buttons{display:flex;flex-wrap:wrap;gap:8px}
.project-buttons button{
  width:auto;
  padding:10px 13px;
  border:1px solid #bfcdd3;
  border-radius:9px;
  background:#fff;
  color:#294552;
  cursor:pointer;
}
.project-buttons button:hover{background:#eaf2f5}
.project-folder-status{
  margin-top:10px;
  padding:9px 11px;
  border-radius:10px;
  border:1px solid #d9e2e5;
  background:#f3f6f7;
  color:#687880;
  font-size:11px;
}
.project-folder-status.active{
  border-color:#b8d9c2;
  background:#eaf5ed;
  color:#356044;
}
@media(max-width:700px){
  .project-buttons{display:grid;grid-template-columns:1fr 1fr}
  .project-buttons button{width:100%}
}

/* v1.5 – csak a kért módosítások */
.editable-label-row{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);
  gap:10px;
  margin-bottom:10px;
}
.editable-label-row label{min-width:0}
.editable-label-row input{width:100%}
@media(max-width:720px){
  .editable-label-row{grid-template-columns:1fr}
}
