:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1c2930;background:#f5f7f7}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.site-header{height:76px;border-bottom:1px solid #e3e9e8;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1180px)/2))}.brand{display:flex;align-items:center;gap:12px;font-weight:750}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#183f42;color:#fff;font-size:14px}.header-link{font-size:14px;color:#326b6b}.site-footer{text-align:center;color:#768589;font-size:12px;padding:32px 20px}.page-shell,.admin-shell{max-width:1180px;margin:auto;padding:50px 24px 20px}.intro{max-width:650px;margin-bottom:32px}.eyebrow{display:block;color:#4b8881;font-size:11px;font-weight:800;letter-spacing:.14em;margin-bottom:12px}h1{font-size:clamp(30px,4vw,42px);line-height:1.13;margin:0 0 12px;letter-spacing:-.045em}h2{font-size:18px;margin:0 0 4px;letter-spacing:-.025em}p{margin:0;line-height:1.55;color:#687a7f}.form-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:38px;align-items:start}.panel{background:#fff;border:1px solid #e2e9e8;border-radius:18px;box-shadow:0 12px 38px rgba(29,56,57,.035)}.form-panel{padding:32px}.section-heading,.preview-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:26px}.step-number{background:#dff0eb;color:#39776e;width:31px;height:31px;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:800;flex:none}.step-number.muted{background:#e5ebed;color:#71848a}.section-heading p,.preview-heading p{font-size:13px}.field{margin-bottom:22px}.field label{display:block;font-size:13px;font-weight:700;margin-bottom:9px}.field input:not([type=file]),.search-form input{display:block;width:100%;height:45px;border:1px solid #d7e0df;border-radius:9px;background:#fff;padding:0 14px;color:#1c2930;outline:none}.field input:focus,.search-form input:focus{border-color:#4b9087;box-shadow:0 0 0 3px #dcefeb}.field input::placeholder{color:#a1afb1}.hint,.error{display:block;font-size:12px;margin-top:7px}.hint{color:#88999b}.error{color:#b94442;min-height:1px}.upload-row{display:flex;align-items:center;gap:14px;min-height:45px}.upload-row span{font-size:13px;color:#718389;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-button,.secondary-button{border:1px solid #cddbd9;background:#fff;border-radius:9px;padding:11px 16px;color:#285a58;font-weight:700;font-size:13px;white-space:nowrap}.upload-button:hover,.secondary-button:hover{background:#f2f9f7}.primary-button{border:0;background:#245d5b;color:#fff;border-radius:9px;padding:13px 21px;font-weight:750;font-size:14px;min-height:46px}.primary-button:hover{background:#1b4d4b}.primary-button:disabled{opacity:.65;cursor:wait}#submitButton{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;margin-top:20px}.privacy-note{text-align:center;font-size:12px;margin-top:12px}.alert{border-radius:9px;padding:12px 14px;margin-bottom:20px;font-size:13px}.alert.success{background:#e5f4e8;color:#276039}.alert.error-alert,#formStatus.error-alert{background:#fce9e8;color:#933c39}.alert[hidden]{display:none}.crop-section{border:1px solid #e3e9e8;border-radius:12px;padding:16px;margin:4px 0 16px}.crop-top,.zoom-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.crop-top{font-size:13px;margin-bottom:13px}.crop-top span{color:#809196;font-size:12px}#cropCanvas{display:block;width:min(100%,320px);height:auto;aspect-ratio:1;background:#e7eded;touch-action:none;cursor:grab;border-radius:8px;margin:auto;outline:none}#cropCanvas:active{cursor:grabbing}.zoom-row{margin-top:16px;font-size:12px;font-weight:700}.zoom-row input{flex:1;accent-color:#357a72}.zoom-row span{min-width:38px;color:#68817e}.crop-help{font-size:11px;margin-top:9px}.preview-column{padding:18px 4px}.preview-heading{margin-bottom:24px}.sample-card{width:100%;aspect-ratio:1.67;border-radius:18px;background:linear-gradient(135deg,#e7eeec,#f7f9f7 62%,#e3e9e6);border:1px solid #d5dedd;box-shadow:0 19px 35px rgba(24,51,51,.13);padding:23px;display:flex;flex-direction:column;overflow:hidden;position:relative}.sample-card:before{content:"";position:absolute;width:85%;aspect-ratio:1;border:1px solid rgba(75,131,125,.13);border-radius:50%;right:-30%;top:-55%}.card-top,.card-bottom{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;color:#617b79;font-size:10px;letter-spacing:.12em;font-weight:800}.sample-badge{border:1px solid #5f8d86;color:#467a72;padding:5px 8px;border-radius:4px;font-size:9px}.card-body{position:relative;z-index:1;display:flex;align-items:center;gap:22px;flex:1;min-height:0}.card-photo{width:30%;aspect-ratio:1;background:#dbe4e1;border:1px solid #cbd8d4;border-radius:7px;display:grid;place-items:center;overflow:hidden;color:#96aaa5;font-size:12px;letter-spacing:.1em;flex:none}.card-photo img{width:100%;height:100%;object-fit:cover}.card-data{display:flex;flex-direction:column;min-width:0}.card-label{color:#6b8985;font-size:9px;font-weight:800;letter-spacing:.13em;margin-bottom:5px}.card-data strong{font-size:clamp(12px,1.7vw,20px);line-height:1.25;overflow-wrap:anywhere;margin-bottom:17px;max-height:2.5em;overflow:hidden}.card-data strong:last-child{font-size:clamp(11px,1.5vw,17px);letter-spacing:.045em;margin:0}.card-bottom{letter-spacing:.03em;text-transform:none}.preview-note{font-size:12px;margin:18px 8px;max-width:390px}.login-shell{max-width:450px;margin:8vh auto;padding:0 24px}.login-panel{padding:36px}.login-panel p{margin-bottom:26px}.login-panel .primary-button{width:100%}.admin-head,.admin-actions{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-head{margin-bottom:28px}.admin-actions{margin-bottom:18px}.search-form{display:flex;gap:10px;flex:1;max-width:560px}.export-button{white-space:nowrap}.table-panel{overflow:hidden}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{background:#f8faf9;color:#64777a;font-size:11px;letter-spacing:.1em;text-transform:uppercase}th,td{padding:13px 18px;border-bottom:1px solid #edf1f0}td{font-size:14px}tr:last-child td{border-bottom:0}.thumbnail{width:52px;height:52px;object-fit:cover;border-radius:7px;background:#e1e8e6}.id-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.empty-state{text-align:center;color:#839394;padding:35px}.pagination{margin-top:20px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.spinner{width:15px;height:15px;border:2px solid #fff8;border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:850px){.form-grid{grid-template-columns:1fr;gap:12px}.preview-column{padding:18px 0}.sample-card{max-width:590px}.page-shell,.admin-shell{padding-top:34px}}@media(max-width:560px){.site-header{height:65px;padding:0 18px}.brand{font-size:14px}.page-shell,.admin-shell{padding:28px 16px 10px}.form-panel{padding:23px 18px}.sample-card{padding:16px;border-radius:13px}.card-body{gap:13px}.card-data strong{margin-bottom:10px}.admin-head,.admin-actions{align-items:stretch;flex-direction:column}.admin-head form,.admin-actions form,.admin-actions button{width:100%}.search-form{max-width:none}.search-form input{min-width:0}}
:where([hidden]){display:none!important}

/* The artwork and every overlay use the same 5:3 coordinate space. */
.template-card{position:relative;container-type:inline-size;width:100%;aspect-ratio:5/3;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 19px 35px rgba(24,51,51,.13)}
.template-art{display:block;width:100%;height:100%;object-fit:fill}
.template-photo{position:absolute;aspect-ratio:1;background:#fff;overflow:hidden;border:2px solid #fff;box-shadow:0 2px 7px #172f6040}
.template-photo img{display:block;width:100%;height:100%;object-fit:cover}
.template-text{position:absolute;display:flex;align-items:center;justify-content:flex-end;overflow:hidden;padding:0 .25%;background:rgba(255,255,255,.97);color:#1a3261;font-family:Tahoma,Arial,sans-serif;font-weight:800;line-height:1.12;text-align:right;white-space:nowrap}
.template-name{direction:rtl}
.template-id{direction:ltr;font-variant-numeric:tabular-nums;letter-spacing:.015em}
