*{box-sizing:border-box}body{margin:0;background:#edf1f2;color:#17242b;font:15px/1.5 Inter,Segoe UI,Arial}header{height:76px;background:#10191e;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;position:sticky;top:0;z-index:20}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none}.brand>b{width:42px;height:42px;border:1px solid #7895a0;border-radius:12px;display:grid;place-items:center}.brand small{display:block;color:#91a4ad}nav{display:flex;gap:6px}nav button,nav a,.buttons button,.toolbar button{border:0;background:transparent;color:#c9d4d9;padding:10px 12px;border-radius:9px;text-decoration:none;cursor:pointer}nav button.active,nav button:hover,nav a:hover{background:#edf4f6;color:#14242b}main{max-width:1480px;margin:auto;padding:50px 4vw 80px}.hero{margin-bottom:35px}.hero>span{color:var(--accent);font-size:11px;letter-spacing:2px;font-weight:800}.hero h1{font:600 clamp(40px,5vw,70px) Georgia;margin:10px 0}.hero p{color:#68777e;font-size:18px;max-width:850px}.tab{display:none}.tab.active{display:block}.layout{display:grid;grid-template-columns:380px 1fr;gap:20px;align-items:start}.panel{background:#fff;border:1px solid #d5dfe2;border-radius:20px;padding:22px;box-shadow:0 18px 50px #172a3412}.controls{position:sticky;top:94px;max-height:calc(100vh - 110px);overflow:auto}.upload{height:145px;border:2px dashed #8ea3ad;border-radius:16px;display:grid;place-content:center;text-align:center;cursor:pointer}.upload input{display:none}.upload small{color:#73828a}.controls h3{border-top:1px solid #e4eaec;padding-top:16px;margin-top:18px}.controls label{display:block;font-size:12px;color:#5e6c73;margin:10px 0}.controls input,.controls select{width:100%;margin-top:5px}.controls label>input[type=checkbox]{width:auto}.controls output{float:right}.buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.buttons button:last-child{grid-column:1/-1;background:#263d47;color:#fff}.toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px}.toolbar span{color:#6c7a81}.toolbar button{background:#e9eef0;color:#263a43}.stage{min-height:600px;background:repeating-conic-gradient(#edf1f2 0 25%,#e0e6e8 0 50%) 50%/22px 22px;border-radius:17px;display:grid;place-items:center;overflow:auto;position:relative;padding:18px}.stage canvas{max-width:100%;max-height:72vh;box-shadow:0 15px 45px #17242b55}.stage canvas.pick{cursor:crosshair}.horizon-help{display:none;background:#fff3cb;padding:10px;border-radius:10px;margin-top:10px}.horizon-help.on{display:block}.primary{width:100%;margin-top:14px;border:0;border-radius:11px;background:var(--accent);color:#fff;padding:13px;font-weight:700}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.help-grid article{background:#fff;border:1px solid #d5dfe2;border-radius:18px;padding:22px}.help-grid b{width:40px;height:40px;border-radius:11px;background:var(--accent);color:#fff;display:grid;place-items:center}footer{padding:25px;text-align:center;color:#6b787e}@media(max-width:950px){.layout{grid-template-columns:1fr}.controls{position:static;max-height:none}.help-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){header{height:auto;min-height:76px;flex-wrap:wrap;padding:13px 4vw}nav{width:100%;overflow:auto}.stage{min-height:350px;padding:8px}.help-grid{grid-template-columns:1fr}}

/* v1.1 – iPad és tablet szerkesztőnézet */
.toolbar>div:first-child{display:flex;flex-direction:column;gap:2px}.toolbar small{font-size:11px;color:#87959b}.toolbar small.rendering{color:var(--accent);font-weight:700}
@media (min-width:701px) and (max-width:1180px){
  main{padding:28px 2.2vw 48px;max-width:none}.hero{margin-bottom:18px}.hero h1{font-size:clamp(34px,5vw,52px);margin:6px 0 10px}.hero p{font-size:15px;margin:0}.layout{grid-template-columns:minmax(300px,38vw) minmax(0,1fr);gap:12px;align-items:stretch}.controls{position:sticky;top:88px;max-height:calc(100vh - 100px);overflow:auto;padding:16px}.preview{position:sticky;top:88px;align-self:start;padding:14px}.stage{min-height:calc(100vh - 190px);height:calc(100vh - 190px);padding:8px}.stage canvas{max-height:100%;max-width:100%;object-fit:contain}.upload{height:105px}.controls h3{margin:12px 0 7px;padding-top:11px}.controls label{margin:7px 0}.toolbar{margin-bottom:8px}.primary{margin-top:9px;padding:11px}.hero+section{scroll-margin-top:90px}
}
@media (min-width:701px) and (max-width:900px) and (orientation:portrait){
  .layout{grid-template-columns:310px minmax(0,1fr)}.hero{display:none}.stage{min-height:calc(100vh - 175px);height:calc(100vh - 175px)}
}
@media (max-width:700px){
  main{padding:22px 3vw 45px}.hero{margin-bottom:18px}.hero h1{font-size:36px}.layout{display:flex;flex-direction:column}.preview{order:1;position:sticky;top:74px;z-index:8;padding:10px}.controls{order:2}.stage{min-height:42vh;height:42vh}.stage canvas{max-height:100%}.toolbar{margin-bottom:7px}.toolbar span{font-size:12px}.controls{padding:16px}.upload{height:100px}.hero p{font-size:14px}.primary{margin-top:8px}
}

/* v1.2 – automatikus horizontvágás */
.crop-note{
  margin:8px 0 2px;
  padding:9px 10px;
  border-radius:10px;
  background:#eef3f5;
  color:#66777f;
  font-size:11px;
  line-height:1.45;
  border:1px solid #d7e1e4;
}
.crop-note.active{
  background:#e7f4eb;
  color:#356044;
  border-color:#bddbc6;
}

/* v1.3 – iPad élő előnézet */
input[type="range"]{
  touch-action: pan-y;
}
@media (min-width:768px) and (max-width:1180px){
  input[type="range"]{
    min-height:38px;
  }
  .render-state.rendering{
    color:#2f6a80;
    font-weight:700;
  }
}

/* v1.4 – stabil iPad élő előnézet */
@media (min-width:768px) and (max-width:1180px){
  .stage canvas{
    image-rendering:auto;
  }
  input[type="range"]{
    touch-action:pan-y;
  }
}

/* v1.5 – egységes pixelalapú iPad/PC előnézet */
@media (min-width:768px) and (max-width:1180px){
  .stage canvas{max-height:62vh}
}
