
:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#16283a;background:#f3f6f8}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}header{background:#10283e;color:#fff;padding:20px clamp(20px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:20px}header strong{font-size:1.35rem;letter-spacing:-.03em}header strong span{color:#dab576}header small{color:#d1dbe2;font-size:.9rem}main{max-width:1480px;margin:auto;padding:34px clamp(16px,3vw,48px) 64px}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:#9b6b2c;font-size:.78rem;font-weight:800}.intro h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(2rem,3vw,3.2rem);line-height:1.06;margin:9px 0}.intro p{margin:0;color:#5d6b76;font-size:1rem}.step{background:#e6edf2;color:#31495d;padding:9px 14px;border-radius:30px;white-space:nowrap;font-weight:650;font-size:.85rem}.layout{display:grid;grid-template-columns:minmax(330px,1.05fr) minmax(350px,.95fr);gap:24px;align-items:start}.panel,.preview-panel{background:white;border:1px solid #dce4e9;border-radius:18px;box-shadow:0 10px 35px rgba(16,40,62,.045)}.panel{padding:28px}.section{border-bottom:1px solid #e3e9ed;padding-bottom:27px;margin-bottom:27px}.section:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.section h2,.preview-panel h2{font-size:1.08rem;margin:0 0 18px;letter-spacing:-.01em}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}label{font-size:.9rem;font-weight:650;color:#31465a}input,textarea,select{width:100%;border:1px solid #bfcbd4;background:#fff;border-radius:9px;padding:12px 13px;color:#142b40;min-height:46px;outline:none}input:focus,textarea:focus,select:focus{border-color:#a36f29;box-shadow:0 0 0 3px #e9d9bc}textarea{resize:vertical;min-height:78px}.hint{font-size:.85rem;color:#61717d;line-height:1.5;margin:5px 0 16px}.guest-list{display:grid;gap:10px}.guest-row{display:flex;align-items:center;gap:10px}.guest-row span{width:68px;flex:none;color:#687884;font-size:.85rem}.guest-row input{min-width:0}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.btn{border:1px solid #bdcbd5;background:#fff;color:#1b374d;border-radius:9px;padding:11px 15px;font-weight:700}.btn:hover{background:#f1f5f7}.btn.primary{background:#173c56;color:#fff;border-color:#173c56}.btn.primary:hover{background:#102b40}.preview-panel{position:sticky;top:18px;padding:24px;background:#edf2f5}.preview-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.preview-head h2{margin:3px 0 5px}.preview-head p{color:#657684;margin:0 0 18px;font-size:.87rem}.count{background:#fff;border:1px solid #d6e1e7;border-radius:30px;padding:7px 11px;white-space:nowrap;font-size:.83rem;font-weight:700}[hidden]{display:none!important}.invite-art{position:relative;width:100%;aspect-ratio:1338/1888;container-type:inline-size;box-shadow:0 13px 25px #16344b25;background:white}.invite-art img{display:block;width:100%;height:100%}.art-text{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;overflow-wrap:normal;color:#111;font:italic 4cqi/1.15 Georgia,serif;overflow:hidden}.art-guest{left:17%;width:66%;top:31%;height:8%;font-size:4.5cqi}.art-date{left:20%;width:30%;top:59.5%;height:5%}.art-time{left:67%;width:27%;top:59.5%;height:5%}.art-venue{left:18%;width:64%;top:74%;height:10%}.art-reply{left:19%;width:31%;top:90%;height:4%}.art-phone{left:62%;width:30%;top:90%;height:4%}.card{aspect-ratio:1.46;min-height:315px;background:radial-gradient(circle at 50% 0%,#224963,#0e273a 68%);color:#f9f5ed;padding:24px;border:7px solid #e4c88d;outline:1px solid #ad8e54;outline-offset:-15px;display:flex;flex-direction:column;text-align:center;justify-content:space-between;overflow:hidden;box-shadow:0 13px 25px #16344b25}.card .small{font-family:Georgia,serif;text-transform:uppercase;letter-spacing:.28em;font-size:.72rem;color:#e6c991}.card .age{font-family:Georgia,serif;font-size:clamp(3.8rem,8vw,6.5rem);line-height:.95;color:#e8cb92}.card .inv{font-family:Georgia,serif;font-size:clamp(1.3rem,2.3vw,2rem);line-height:1.15}.card .guest{min-height:1.5em;color:#e8cb92;font-family:Georgia,serif;font-size:1.25rem;overflow-wrap:anywhere}.card .meta{font-size:.88rem;line-height:1.45;overflow-wrap:anywhere}.card .meta b{color:#e8cb92}.preview-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px}.pager{display:flex;gap:8px;align-items:center;font-size:.87rem;color:#475d6d}.pager button{width:36px;height:36px;border:1px solid #cbd9e1;border-radius:8px;background:#fff;color:#173c56;font-size:1.1rem}.pager button:disabled{opacity:.4;cursor:default}.note{font-size:.83rem;line-height:1.4;color:#647585;margin:16px 0 0}.summary{font-size:.85rem;color:#4d6070}.view-switch{display:flex;gap:8px;margin-bottom:18px}.view-switch button[aria-pressed="true"]{background:#173c56;color:white;border-color:#173c56}.seller-tag{font-size:.77rem;letter-spacing:.1em;text-transform:uppercase;color:#9b6b2c;font-weight:800;margin:0 0 8px}.customer-view .seller-only{display:none}.customer-view .customer-only{display:block}.customer-only{display:none}.locked-details{background:#e9f0f4;border:1px solid #d5e1e8;border-radius:10px;padding:14px 16px;color:#355066;line-height:1.5;margin-bottom:27px}.notice{margin-top:20px;background:#e8f3ed;border:1px solid #b8d9c5;padding:14px;border-radius:9px;color:#23553c;display:none}.notice.visible{display:block}@media(max-width:960px){.layout{grid-template-columns:1fr}.preview-panel{position:static}}@media(max-width:560px){header small,.step{display:none}.intro{display:block}.panel,.preview-panel{padding:18px}.grid{grid-template-columns:1fr}.field.full{grid-column:auto}.card{min-height:285px;padding:18px}.card .age{font-size:4.2rem}.card .inv{font-size:1.5rem}.preview-foot{align-items:start;flex-direction:column}}

/* New ShopDecor server panels */
.login-shell{min-height:calc(100vh - 68px);display:grid;place-items:center;padding:24px}.login-card{width:min(480px,100%);background:#fff;border:1px solid #dce4e9;border-radius:18px;padding:36px;box-shadow:0 16px 50px #10283e12}.login-card h1{font-family:Georgia,serif;font-weight:400;font-size:2.3rem;margin:0 0 12px}.login-card p{color:#657684;line-height:1.5}.login-card .field{margin:24px 0 16px}.error{color:#9e2929;font-weight:700;min-height:1.4em}.toplinks{display:flex;gap:20px;align-items:center}.toplinks button{background:none;border:0;color:#e6c991;font-weight:650}.status{display:inline-block;border-radius:99px;padding:5px 10px;font-size:.82rem;font-weight:750;background:#e6edf2;color:#31495d}.status.ready{background:#dcefe3;color:#236044}.orders{display:grid;gap:12px}.order{border:1px solid #dae4ea;border-radius:12px;padding:16px;background:#fff}.order-line{display:flex;gap:12px;justify-content:space-between;align-items:start;flex-wrap:wrap}.order h3{margin:0 0 7px;font-size:1rem}.order p{color:#5d6b76;font-size:.9rem;margin:0 0 10px}.order a{font-size:.86rem;overflow-wrap:anywhere}.order .btn{padding:8px 11px;font-size:.85rem;margin:8px 6px 0 0}.linkbox{margin-top:18px;border:1px solid #b9d4c4;background:#eaf5ed;border-radius:10px;padding:15px;overflow-wrap:anywhere}.linkbox strong{display:block;margin-bottom:8px}.linkbox a{color:#1c5947}.section .sub{color:#5d6b76;font-size:.9rem;line-height:1.45;margin:-7px 0 18px}.notice.visible{display:block}.notice.error-notice{background:#fff0ef;color:#8b2c29;border-color:#e9b6b0}.customer-summary{background:#e6edf2;border:1px solid #d7e2e9;border-radius:10px;padding:12px 15px;margin-bottom:20px;color:#31495d}.guest-row input{min-width:0}.invite-art{margin:auto;max-width:600px}.locked{text-align:center;background:#fff;border:1px solid #dce4e9;border-radius:18px;padding:40px;max-width:720px;margin:45px auto}.locked h1{font-family:Georgia,serif;font-weight:400}.login-card .btn{display:inline-block;text-decoration:none}.preview-panel{top:18px}.preview-head p{line-height:1.4}.order-list-panel{margin-top:24px}.setup-hint{font-size:.84rem;color:#657684;margin-top:12px;line-height:1.5}@media(max-width:560px){.toplinks{font-size:.82rem;gap:8px}header{padding:16px}.login-card{padding:24px}}

.art-fields{position:absolute;inset:0}.art-fields .art-text{position:absolute;white-space:nowrap;overflow-wrap:normal}.editor-controls{margin-top:22px;border-top:1px solid #d6e1e8;padding-top:18px}.editor-controls h3{font-size:1rem;margin:0 0 12px}.editor-controls .grid{gap:10px}.editor-field{border:1px dashed #a46e25;background:transparent;cursor:grab;touch-action:none;user-select:none;overflow:hidden;line-height:1.12;display:flex;align-items:center;justify-content:center}.editor-field.active{outline:3px solid #2172a8;z-index:2;background:transparent}.editor-field:active{cursor:grabbing}.editor-field span{white-space:nowrap;flex:none;font:inherit;color:inherit;background:transparent;border-radius:0;padding:0;line-height:1.1}.custom-fields{margin-top:18px}.editor-controls input{min-height:40px}@media(max-width:560px){.editor-field span{padding:1px}}

.create-link-btn{display:block;margin:22px auto 0}
.guest-row .first-name,.guest-row .last-name{flex:1;min-width:0}
@media(max-width:560px){.guest-row:has(.first-name){display:grid;grid-template-columns:1fr 1fr}.guest-row:has(.first-name) span{grid-column:1/-1;width:auto}}

.password-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 40px);border:1px solid #dce4e9;border-radius:16px;padding:26px;box-shadow:0 20px 60px #10283e40;color:#16283a}.password-dialog::backdrop{background:#10283e99}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dialog-head h2{margin:0;font-size:1.2rem}.dialog-head .btn{padding:4px 12px;font-size:1.4rem}

.fold-guide{position:absolute;left:0;right:0;top:50%;height:0;border-top:1px dashed rgba(28,62,84,.36);z-index:1;pointer-events:none}.fold-guide span{position:absolute;right:5px;top:-15px;background:rgba(255,255,255,.82);color:#4b6170;font:600 10px/1.3 Inter,system-ui,sans-serif;padding:1px 4px;border-radius:3px}.fold-note{font-size:.82rem;color:#526a7a;line-height:1.45;margin:12px 0 0}

.fold-guide.vertical{left:50%;right:auto;top:0;bottom:0;height:auto;width:0;border-top:0;border-left:1px dashed rgba(28,62,84,.36)}
.fold-guide.vertical span{left:6px;right:auto;top:7px}
/* Zdjęcie w magnesie, pole wyznaczone na wzorze 99 × 69 mm. */
#magnet-photo-preview{position:absolute;left:8.57%;top:17.52%;width:37.65%;height:66.19%;object-fit:fill;border-radius:7.5% / 5.8%;z-index:1}
.magnet-photo-crop{margin-top:14px;max-width:290px}
.magnet-photo-crop canvas{display:block;width:100%;aspect-ratio:1000/1225;touch-action:none;cursor:grab;border-radius:18px;background:#edf2f5}
.magnet-photo-crop canvas:active{cursor:grabbing}
.magnet-photo-crop label{display:block;margin-top:12px}
.magnet-photo-crop input[type=range]{padding:0;min-height:32px}
#art-fields{z-index:2;pointer-events:none}
