.snd-app{--snd-primary:var(--wp--preset--color--primary,#244b35);--snd-accent:var(--wp--preset--color--secondary,#c5a451);--snd-text:var(--wp--preset--color--contrast,#20352a);--snd-muted:#68756d;--snd-surface:var(--wp--preset--color--base,#fff);--snd-soft:#f3f5f1;--snd-border:#dfe5dc;color:var(--snd-text);font-family:var(--snd-font,inherit);direction:rtl;line-height:1.7;max-width:1240px;margin:0 auto;padding:clamp(12px,2.5vw,30px);box-sizing:border-box}
.snd-app *{box-sizing:border-box}.snd-app button,.snd-app input,.snd-app textarea,.snd-app select{font:inherit}.snd-section{margin:0 0 clamp(44px,7vw,88px)}.snd-section-head{text-align:center;max-width:760px;margin:0 auto 28px}.snd-section-head h2{font-size:clamp(26px,4vw,42px);line-height:1.25;margin:8px 0 10px;color:var(--snd-primary);font-weight:800}.snd-section-head p,.snd-tool-copy p{color:var(--snd-muted);margin:0}.snd-kicker{display:inline-flex;padding:5px 14px;border-radius:999px;background:color-mix(in srgb,var(--snd-accent) 18%,white);color:var(--snd-primary);font-size:13px;font-weight:700}.snd-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:var(--snd-soft);border:1px solid var(--snd-border);padding:16px;border-radius:18px;margin:24px 0}.snd-filters label,.snd-card-editor label,.snd-form-grid label,.snd-share-fields>label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:14px;flex:1;min-width:160px}.snd-app input:not([type=checkbox]):not([type=radio]):not([type=file]),.snd-app textarea,.snd-app select{width:100%;border:1px solid var(--snd-border);border-radius:11px;background:#fff;color:var(--snd-text);padding:11px 13px;min-height:44px;outline:none}.snd-app input:focus,.snd-app textarea:focus,.snd-app select:focus{border-color:var(--snd-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--snd-accent) 20%,transparent)}.snd-app textarea{resize:vertical}.snd-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.snd-event-card,.snd-wall-card{background:var(--snd-surface);border:1px solid var(--snd-border);border-radius:18px;overflow:hidden;box-shadow:0 8px 26px rgba(20,45,30,.06)}.snd-event-image{display:block;width:100%;height:190px;object-fit:cover}.snd-event-content{padding:18px}.snd-event-date{display:inline-flex;background:color-mix(in srgb,var(--snd-accent) 18%,white);color:var(--snd-primary);border-radius:999px;padding:4px 10px;font-size:13px;font-weight:700}.snd-event-content h3{font-size:21px;margin:12px 0 8px;color:var(--snd-primary)}.snd-event-content p{margin:5px 0;color:var(--snd-muted)}.snd-event-place{font-weight:700;color:var(--snd-text)!important}.snd-event-description{margin:12px 0}.snd-button,.snd-reset{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--snd-primary);background:var(--snd-primary);color:#fff!important;padding:11px 20px;border-radius:12px;text-decoration:none;font-weight:700;cursor:pointer;transition:transform .15s,opacity .15s}.snd-button:hover,.snd-reset:hover{opacity:.9;transform:translateY(-1px)}.snd-button:disabled{opacity:.55;cursor:wait}.snd-button-outline,.snd-reset{background:transparent;color:var(--snd-primary)!important}.snd-empty,.snd-no-results{grid-column:1/-1;padding:28px;text-align:center;border:1px dashed var(--snd-border);border-radius:16px;color:var(--snd-muted)}.snd-event-submit{margin-top:34px;background:var(--snd-soft);border:1px solid var(--snd-border);border-radius:20px;padding:clamp(18px,3vw,30px)}.snd-event-submit h3{margin:0 0 4px;color:var(--snd-primary);font-size:23px}.snd-event-submit>p{margin-top:0;color:var(--snd-muted)}.snd-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.snd-wide{grid-column:1/-1}.snd-consent{display:flex;align-items:flex-start;gap:9px;margin:14px 0;color:var(--snd-muted);font-size:14px}.snd-consent input{margin-top:6px;accent-color:var(--snd-primary)}.snd-form-message{margin-top:10px;font-weight:700}.snd-form-message.is-success{color:#176b3b}.snd-form-message.is-error{color:#a32e2e}.snd-tool-tabs{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;background:var(--snd-soft);padding:7px;border-radius:15px;margin:24px auto;max-width:900px}.snd-tool-tabs button{border:0;background:transparent;color:var(--snd-primary);padding:12px 20px;border-radius:11px;font-weight:700;cursor:pointer}.snd-tool-tabs button.is-active{background:var(--snd-primary);color:#fff}.snd-tool-panel{display:none;background:var(--snd-surface);border:1px solid var(--snd-border);border-radius:22px;padding:clamp(16px,3vw,28px);box-shadow:0 10px 35px rgba(20,45,30,.06)}.snd-tool-panel.is-active{display:block}.snd-tool-copy{text-align:center;margin-bottom:22px}.snd-tool-copy h3{font-size:24px;color:var(--snd-primary);margin:0 0 5px}.snd-tool-controls,.snd-card-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end;margin-bottom:18px}.snd-tool-controls label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:14px}.snd-tool-controls input[type=range]{width:100%;accent-color:var(--snd-accent)}.snd-upload{border:1px dashed var(--snd-accent);padding:12px 16px;border-radius:12px;text-align:center;color:var(--snd-primary);cursor:pointer}.snd-upload input{display:block;max-width:100%;margin-top:6px}.snd-hint,.snd-privacy-note{color:var(--snd-muted);font-size:13px;text-align:center}.snd-canvas-wrap{width:min(100%,520px);margin:18px auto 22px;background:#edf1ed;border:1px solid var(--snd-border);border-radius:16px;overflow:hidden}.snd-canvas-wrap canvas{display:block;width:100%;height:auto;touch-action:none}.snd-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.snd-design-choices{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.snd-design-choices>span{font-weight:700}.snd-design-choices label{display:block;cursor:pointer}.snd-design-choices input{position:absolute;opacity:0}.snd-design-choices img{width:72px;height:92px;object-fit:cover;border-radius:10px;border:2px solid transparent}.snd-design-choices input:checked+img{border-color:var(--snd-accent);box-shadow:0 0 0 2px var(--snd-accent)}.snd-share-fields{max-width:520px;margin:20px auto 0;padding:18px;border-radius:15px;background:var(--snd-soft);border:1px solid var(--snd-border)}.snd-share-fields[hidden]{display:none}.snd-wall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.snd-wall-card img{display:block;width:100%;max-height:420px;object-fit:contain;background:#eef1ed}.snd-wall-card>div{padding:16px}.snd-wall-card h3{margin:6px 0;color:var(--snd-primary);font-size:19px}.snd-wall-type{font-size:12px;color:var(--snd-accent);font-weight:800}.snd-wall-card p{margin:5px 0}.snd-wall-card{break-inside:avoid}
@media(max-width:900px){.snd-event-grid,.snd-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.snd-app{padding:10px}.snd-event-grid,.snd-wall-grid,.snd-form-grid,.snd-tool-controls,.snd-card-editor{grid-template-columns:1fr}.snd-wide{grid-column:auto}.snd-event-image{height:170px}.snd-tool-tabs{display:grid;grid-template-columns:1fr}.snd-tool-tabs button{width:100%}.snd-actions{display:grid}.snd-actions .snd-button{width:100%}.snd-filters label{min-width:100%}.snd-section-head h2{font-size:27px}}

/* v0.2.0: compact landing page and focused modal workflows */
.snd-app,.snd-app *{font-family:'Cairo',sans-serif!important}
.snd-app{max-width:1240px}
.snd-event-actions{display:flex;justify-content:flex-start;margin-top:22px}
.snd-event-submit{display:none!important}
.snd-tool-launchers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.snd-tool-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;text-align:right;min-height:112px;padding:22px;border:1px solid var(--snd-border);border-radius:16px;background:var(--snd-surface);color:var(--snd-primary);cursor:pointer;box-shadow:0 5px 18px rgba(20,45,30,.05);transition:transform .18s,box-shadow .18s,border-color .18s}
.snd-tool-tile:hover{transform:translateY(-2px);border-color:var(--snd-accent);box-shadow:0 10px 26px rgba(20,45,30,.1)}
.snd-tool-tile strong{font-size:19px;font-weight:800}.snd-tool-tile span{font-size:14px;color:var(--snd-muted)}
.snd-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:18px;direction:rtl}
.snd-modal.is-open{display:flex}
.snd-modal-backdrop{position:absolute;inset:0;background:rgba(8,27,17,.72);backdrop-filter:blur(7px)}
.snd-modal-dialog{position:relative;z-index:1;width:min(100%,760px);max-height:min(94vh,1000px);overflow:auto;background:#fbfdfb;color:#183528;border-radius:24px;border-top:5px solid var(--snd-accent);box-shadow:0 24px 80px rgba(0,0,0,.28);scrollbar-width:thin;scrollbar-color:#9a9d99 transparent}
.snd-modal-content{padding:30px clamp(18px,4vw,42px) 34px}
.snd-modal-close{position:sticky;top:12px;float:left;margin:12px 12px 0 12px;width:42px;height:42px;border:0;border-radius:13px;background:#eef1ef;color:#173629;font-size:28px;line-height:1;cursor:pointer;z-index:3}
.snd-modal-content>.snd-kicker{margin:0 0 8px}.snd-modal-content h2{font-size:clamp(25px,3vw,34px);line-height:1.35;color:#163b29;margin:10px 0 8px;font-weight:800}
.snd-modal-intro{font-size:16px;color:#77827b;margin:0 0 22px;line-height:1.8}
.snd-modal .snd-tool-panel{display:block;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.snd-modal .snd-tool-copy{display:none}
.snd-modal .snd-tool-controls,.snd-modal .snd-card-editor{margin:0 0 16px;gap:14px}
.snd-modal .snd-canvas-wrap{margin:18px auto 22px;width:min(100%,440px);border-radius:16px;background:#edf1ed}
.snd-modal .snd-canvas-wrap canvas{width:100%;height:auto}
.snd-modal .snd-design-choices{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.snd-modal .snd-design-choices>span{width:100%;color:#6e7b72}
.snd-modal .snd-design-choices img{width:76px;height:96px;object-fit:cover;border-radius:10px}
.snd-modal .snd-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.snd-modal .snd-actions .snd-button{min-height:52px}
.snd-modal .snd-share-fields{max-width:none;margin-top:18px}
.snd-modal .snd-form-grid{margin:12px 0 18px;gap:14px}
.snd-modal .snd-form-grid label{font-size:16px;color:#344b3d}
.snd-modal .snd-app input:not([type=checkbox]):not([type=radio]):not([type=file]),.snd-modal input:not([type=checkbox]):not([type=radio]):not([type=file]),.snd-modal textarea,.snd-modal select{min-height:54px;border:1.5px solid #dedccf;border-radius:14px;background:#fff;padding:12px 15px;font-size:16px;color:#203b2d}
.snd-modal textarea{min-height:120px}
.snd-modal .snd-submit-wide{width:100%;min-height:58px;font-size:19px;margin-top:4px}
.snd-modal .snd-privacy-note{text-align:right;margin-top:14px}
.snd-modal .snd-consent{align-items:flex-start;line-height:1.7}
.snd-modal .snd-consent input{width:18px;height:18px;flex:0 0 18px}
body.snd-modal-open{overflow:hidden}
.snd-event-card[hidden]{display:none!important}
@media(max-width:760px){.snd-tool-launchers{grid-template-columns:1fr}.snd-tool-tile{min-height:84px;padding:16px}.snd-modal{padding:8px}.snd-modal-dialog{max-height:96vh;border-radius:18px}.snd-modal-content{padding:22px 16px 26px}.snd-modal .snd-form-grid,.snd-modal .snd-tool-controls,.snd-modal .snd-card-editor{grid-template-columns:1fr}.snd-modal .snd-wide{grid-column:auto}.snd-modal .snd-actions{grid-template-columns:1fr}.snd-event-actions .snd-button{width:100%}}

/* v0.3.0 visual refinement: closer to the supplied Syrianinusa reference */
.snd-app{max-width:1600px!important;width:100%;padding:clamp(12px,2vw,24px)!important;border-radius:18px;background:linear-gradient(145deg,#153b2d 0%,#1d4936 52%,#102f25 100%);color:#f7f4e8;overflow:hidden}
.snd-app .snd-section{margin:0 0 26px}
.snd-app .snd-section-head{max-width:900px;margin:0 auto 20px;text-align:center}
.snd-app .snd-section-head h2,.snd-app .snd-section-head h1{color:#f7f4e8!important;text-shadow:0 2px 12px rgba(0,0,0,.16);letter-spacing:-.4px}
.snd-app .snd-section-head p{color:rgba(247,244,232,.78)!important}
.snd-app .snd-kicker{background:#f4efd9;color:#234532;border:1px solid rgba(197,164,81,.35);padding:6px 16px;font-size:13px}
.snd-events-hero{text-align:center;padding:22px 14px 12px;position:relative}
.snd-events-hero h1{font-size:clamp(28px,4vw,46px);line-height:1.25;margin:12px 0 6px;color:#f7f4e8}
.snd-events-hero>p{margin:0 auto;color:rgba(247,244,232,.78);font-size:16px}
.snd-countdown{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;width:min(100%,520px);margin:20px auto 8px;padding:13px 18px;border:1px solid rgba(220,204,148,.34);border-radius:16px;background:rgba(8,29,21,.28);backdrop-filter:blur(6px)}
.snd-countdown-title{width:100%;font-size:13px;color:#e8dcae}.snd-countdown>div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:68px;padding:7px 12px;border-radius:12px;background:rgba(255,255,255,.09)}
.snd-countdown strong{font-size:27px;line-height:1.1;color:#e9d18b}.snd-countdown small{font-size:12px;color:rgba(247,244,232,.8)}
.snd-city-chips{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 15px}.snd-city-chips>span{font-size:13px;font-weight:800;color:#e8d28d}.snd-city-chips button{border:1px solid rgba(238,226,184,.36);background:rgba(255,255,255,.08);color:#f8f5e9;border-radius:999px;padding:7px 13px;font-size:13px;cursor:pointer}.snd-city-chips button:hover,.snd-city-chips button.is-active{background:#c6a552;color:#18392a}
.snd-filters{display:flex;justify-content:flex-start;align-items:end;gap:14px;flex-wrap:wrap;margin:14px 0 22px;padding:15px 18px;background:#f6f6ef;border:1px solid rgba(218,213,193,.85);border-radius:18px;color:#203b2d}
.snd-filters label{flex:0 1 220px;min-width:170px;color:#234532}.snd-filters input,.snd-filters select{background:#fff!important;border-color:#ded9c5!important;border-radius:12px!important;min-height:46px!important;color:#1c3529!important}
.snd-reset{min-height:45px;border-radius:12px!important;border-color:#345b43!important;color:#244b35!important;padding:9px 18px!important}
.snd-event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.snd-event-card{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto;background:#f8f8f1;border:1px solid rgba(235,229,204,.7);border-radius:15px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.12);color:#203b2d;min-height:116px}
.snd-event-datebox{grid-column:1;grid-row:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#2b523b;color:#f6f2df;padding:10px 5px;text-align:center}
.snd-event-datebox strong{font-size:27px;line-height:1.1}.snd-event-datebox span{font-size:11px;color:#e3cf8f}
.snd-event-image{grid-column:2;width:100%;height:112px;object-fit:cover}
.snd-event-content{grid-column:2;padding:13px 15px 14px}.snd-event-content h3{font-size:17px;line-height:1.5;margin:0 0 4px;color:#203b2d}.snd-event-content p{font-size:13px;color:#788078;margin:3px 0}.snd-event-content .snd-event-place{color:#435b4b!important}
.snd-event-actions{justify-content:flex-start;margin:18px 0 4px}.snd-event-actions .snd-button{background:#c4a24f;color:#183528!important;border-color:#c4a24f;border-radius:12px;padding:12px 20px}
.snd-empty,.snd-no-results{color:#f4efdc;border-color:rgba(240,230,191,.5);background:rgba(255,255,255,.04)}
.snd-tool-launchers{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%;margin:18px 0 26px}
.snd-tool-tile{width:100%;min-width:0;min-height:94px!important;padding:17px 20px!important;border:1px solid rgba(220,204,148,.42)!important;border-radius:15px!important;background:rgba(255,255,255,.10)!important;color:#fff!important;box-shadow:0 6px 18px rgba(0,0,0,.08)!important;align-items:flex-start!important}
.snd-tool-tile strong{color:#fff!important;font-size:18px!important}.snd-tool-tile span{color:rgba(247,244,232,.75)!important}
.snd-wall{padding:18px;border-radius:17px;background:rgba(5,28,20,.27);border:1px solid rgba(226,210,156,.22)}
.snd-wall .snd-section-head{margin-bottom:14px}.snd-wall .snd-section-head h2{font-size:28px}.snd-wall-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.snd-wall-card{background:rgba(255,255,255,.08)!important;border:1px solid rgba(220,204,148,.22)!important;color:#f7f4e8!important;box-shadow:none!important}.snd-wall-card img{max-height:220px;background:rgba(0,0,0,.12)}.snd-wall-card>div{padding:10px}.snd-wall-card h3,.snd-wall-card p{color:#f7f4e8!important}
/* Compact, centered modal dimensions matching the supplied references */
.snd-modal{padding:12px!important}
.snd-modal-dialog{width:min(540px,calc(100vw - 24px))!important;max-height:92vh!important;border:0!important;border-top:4px solid #c5a451!important;border-radius:21px!important;background:#fbfdfb!important;box-shadow:0 24px 80px rgba(0,0,0,.32)!important;overflow-y:auto!important}
.snd-modal[data-snd-modal="memory"] .snd-modal-dialog{width:min(610px,calc(100vw - 24px))!important}
.snd-modal-content{padding:18px 20px 22px!important}
.snd-modal-close{position:sticky!important;top:0!important;margin:0 0 -38px 0!important;width:36px!important;height:36px!important;border-radius:11px!important;font-size:24px!important;float:left!important}
.snd-modal-content>.snd-kicker{display:table;margin:0 0 7px auto!important}
.snd-modal-content h2{font-size:23px!important;line-height:1.4!important;margin:8px 0 5px!important;color:#183b2a!important}
.snd-modal-intro{font-size:14px!important;line-height:1.65!important;margin:0 0 15px!important;color:#7b837e!important}
.snd-modal .snd-form-grid{gap:10px!important;margin:10px 0 13px!important}
.snd-modal .snd-form-grid label,.snd-modal .snd-card-editor label{font-size:14px!important;gap:5px!important;color:#5f6d64!important}
.snd-modal input:not([type=checkbox]):not([type=radio]):not([type=file]),.snd-modal textarea,.snd-modal select{min-height:43px!important;padding:9px 12px!important;border-radius:12px!important;font-size:14px!important;border:1px solid #e2dfd2!important;background:#fff!important}
.snd-modal textarea{min-height:104px!important}
.snd-modal .snd-submit-wide{min-height:48px!important;font-size:16px!important;border-radius:12px!important}
.snd-modal .snd-canvas-wrap{width:min(100%,320px)!important;margin:13px auto 16px!important;border-radius:14px!important}
.snd-modal[data-snd-modal="portrait"] .snd-canvas-wrap{width:min(100%,360px)!important;order:1}
.snd-modal[data-snd-modal="portrait"] .snd-tool-panel{display:flex!important;flex-direction:column!important}
.snd-modal[data-snd-modal="portrait"] .snd-tool-controls{order:2;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important}
.snd-modal[data-snd-modal="portrait"] .snd-tool-controls label{font-size:13px!important}
.snd-modal[data-snd-modal="portrait"] .snd-tool-controls .snd-upload{grid-column:1/-1;order:5;padding:9px 12px!important;background:#f3f4ef}
.snd-modal[data-snd-modal="portrait"] .snd-tool-controls .snd-range-label{grid-column:1/-1;order:4}
.snd-modal[data-snd-modal="portrait"] .snd-tool-controls .snd-hint{grid-column:1/-1;order:3;margin:0}
.snd-modal[data-snd-modal="portrait"] .snd-tool-controls .snd-design-choices{grid-column:1/-1;order:2;gap:7px!important}
.snd-modal[data-snd-modal="portrait"] .snd-actions{order:3}
.snd-modal .snd-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
.snd-modal .snd-actions .snd-button{min-height:45px!important;padding:9px 12px!important;font-size:14px!important}
.snd-modal .snd-privacy-note{font-size:12px!important;margin:10px 0 0!important}
.snd-modal .snd-share-fields{padding:13px!important;margin-top:12px!important}
.snd-modal .snd-design-choices img{width:62px!important;height:78px!important;border-radius:9px!important}
.snd-modal .snd-card-editor{display:flex!important;flex-direction:column!important;gap:10px!important}
.snd-modal .snd-card-editor>label{width:100%}
.snd-modal .snd-card-editor .snd-design-choices{width:100%}
.snd-modal[data-snd-modal="letter"] .snd-canvas-wrap,.snd-modal[data-snd-modal="memory"] .snd-canvas-wrap{width:min(100%,300px)!important}
@media(max-width:900px){.snd-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.snd-wall-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.snd-app{padding:10px!important}.snd-event-grid{grid-template-columns:1fr}.snd-tool-launchers{grid-template-columns:1fr!important}.snd-tool-tile{min-height:76px!important}.snd-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.snd-filters label{flex:1 1 100%}.snd-modal{padding:7px!important}.snd-modal-dialog,.snd-modal[data-snd-modal="memory"] .snd-modal-dialog{width:calc(100vw - 14px)!important;max-height:95vh!important;border-radius:17px!important}.snd-modal-content{padding:16px 14px 18px!important}.snd-modal .snd-actions{grid-template-columns:1fr!important}.snd-modal[data-snd-modal="portrait"] .snd-tool-controls{grid-template-columns:1fr!important}.snd-modal[data-snd-modal="portrait"] .snd-tool-controls>*{grid-column:1/-1!important}}

/* v0.4.0: simplified event directory controls */
.snd-app .snd-countdown,.snd-app .snd-filters{display:none!important}
.snd-app .snd-events-hero{margin-bottom:12px!important}
.snd-app .snd-city-chips{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:14px auto 18px;padding:0;background:transparent;border:0}
.snd-app .snd-city-chips>strong{font-size:14px;font-weight:800;color:#e8d28d;margin-inline-start:5px}
.snd-app .snd-city-chips button{min-width:0;border:1px solid rgba(238,226,184,.42);background:rgba(255,255,255,.09);color:#f8f5e9;border-radius:9px;padding:6px 12px;font-family:'Cairo',sans-serif;font-size:12px;line-height:1.4;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.snd-app .snd-city-chips button:hover,.snd-app .snd-city-chips button.is-active{background:#c6a552;border-color:#c6a552;color:#18392a}
.snd-app .snd-event-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap;margin:17px 0 4px}
.snd-app .snd-event-actions .snd-button{min-height:36px;padding:7px 14px;border-radius:9px;font-family:'Cairo',sans-serif;font-size:12px;line-height:1.35;font-weight:700;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.snd-app .snd-event-actions .snd-action-add{background:#c4a24f;border-color:#c4a24f;color:#183528!important}
.snd-app .snd-event-actions .snd-action-photo{background:rgba(255,255,255,.10);border-color:rgba(238,226,184,.4);color:#f8f5e9!important}
.snd-app .snd-event-actions .snd-action-share{background:rgba(255,255,255,.07);border-color:rgba(238,226,184,.35);color:#f8f5e9!important}
@media(max-width:640px){.snd-app .snd-event-actions{justify-content:center;gap:7px}.snd-app .snd-event-actions .snd-button{flex:1 1 auto;width:auto;min-width:0;padding:8px 9px;font-size:11px}.snd-app .snd-city-chips{gap:6px}.snd-app .snd-city-chips>strong{width:100%;text-align:center;margin:0 0 3px}}


/* v0.4.2: keep event-directory controls unchanged; compact only the three interactive tool tiles */
.snd-app .snd-event-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:17px 0 4px!important;
}
.snd-app .snd-event-actions .snd-button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:36px!important;
  padding:7px 14px!important;
  border-radius:9px!important;
  font-family:'Cairo',sans-serif!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.snd-app .snd-tool-launchers{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
  margin:14px 0 22px!important;
}
.snd-app .snd-tool-launchers .snd-tool-tile{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  padding:9px 12px!important;
  gap:3px!important;
  border-radius:11px!important;
  font-family:'Cairo',sans-serif!important;
  text-align:right!important;
}
.snd-app .snd-tool-launchers .snd-tool-tile strong{
  font-size:13px!important;
  line-height:1.35!important;
}
.snd-app .snd-tool-launchers .snd-tool-tile span{
  font-size:10px!important;
  line-height:1.35!important;
}
@media(max-width:640px){
  .snd-app .snd-event-actions{
    flex-direction:row!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
  }
  .snd-app .snd-event-actions .snd-button{
    width:auto!important;
  }
  .snd-app .snd-tool-launchers{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .snd-app .snd-tool-launchers .snd-tool-tile{
    min-height:48px!important;
    padding:9px 12px!important;
  }
}

/* v0.4.3: responsive interactive tiles - desktop/tablet horizontal, phones stacked */
.snd-app .snd-tools .snd-tool-launchers{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  align-items:stretch!important;
  justify-items:stretch!important;
  gap:12px!important;
  width:100%!important;
  margin:14px 0 22px!important;
}
.snd-app .snd-tools .snd-tool-launchers > .snd-tool-tile{
  display:flex!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:66px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 14px!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
  white-space:normal!important;
  text-align:right!important;
  border-radius:12px!important;
  font-family:'Cairo',sans-serif!important;
}
.snd-app .snd-tools .snd-tool-launchers > .snd-tool-tile strong{
  display:block!important;
  font-size:14px!important;
  line-height:1.4!important;
  margin:0!important;
}
.snd-app .snd-tools .snd-tool-launchers > .snd-tool-tile span{
  display:block!important;
  font-size:11px!important;
  line-height:1.4!important;
  margin:0!important;
}
@media screen and (max-width:600px){
  .snd-app .snd-tools .snd-tool-launchers{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
  }
  .snd-app .snd-tools .snd-tool-launchers > .snd-tool-tile{
    min-height:58px!important;
    padding:9px 12px!important;
  }
}


/* v0.5.1: flexible tool tiles; support direct buttons and optional paragraph wrappers */
.snd-app .snd-tools {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 18px 0 26px !important;
}
.snd-app .snd-tools .snd-tool-launchers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.snd-app .snd-tools .snd-tool-launchers br {
  display: none !important;
}
.snd-app .snd-tools .snd-tool-launchers p {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
}
.snd-app .snd-tools .snd-tool-launchers .snd-tool-tile {
  box-sizing: border-box !important;
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  min-height: 92px !important;
  height: auto !important;
  padding: 18px 22px !important;
  margin: 0 !important;
  gap: 5px !important;
  border: 1px solid rgba(220, 204, 148, 0.38) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  text-align: right !important;
  direction: rtl !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer !important;
}
.snd-app .snd-tools .snd-tool-launchers .snd-tool-tile:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #c5a451 !important;
}
.snd-app .snd-tools .snd-tool-launchers .snd-tool-tile strong {
  display: block !important;
  width: 100% !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #ffffff !important;
  margin: 0 !important;
}
.snd-app .snd-tools .snd-tool-launchers .snd-tool-tile span {
  display: block !important;
  width: 100% !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: rgba(247, 244, 232, 0.75) !important;
  margin: 0 !important;
}
@media (max-width: 768px) {
  .snd-app .snd-tools .snd-tool-launchers {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  .snd-app .snd-tools .snd-tool-launchers p,
  .snd-app .snd-tools .snd-tool-launchers .snd-tool-tile {
    width: 100% !important;
    min-height: 76px !important;
  }
}

/* v0.5.5 — refined event directory and event submission form */
.snd-app .snd-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;align-items:stretch!important}
.snd-app .snd-event-card{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;grid-template-rows:auto!important;min-height:190px!important;border:1px solid rgba(220,204,148,.34)!important;border-radius:20px!important;background:linear-gradient(145deg,#fff 0%,#f7f8f3 100%)!important;box-shadow:0 10px 28px rgba(8,31,19,.13)!important;overflow:hidden!important;transition:transform .2s ease,box-shadow .2s ease!important}
.snd-app .snd-event-card:hover{transform:translateY(-3px)!important;box-shadow:0 16px 34px rgba(8,31,19,.18)!important}
.snd-app .snd-event-datebox{grid-column:1!important;grid-row:1/-1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:100%!important;gap:7px!important;padding:18px 8px!important;background:linear-gradient(180deg,#244d37 0%,#163a29 100%)!important;border-left:3px solid #c5a451!important}
.snd-app .snd-event-datebox strong{display:block!important;font-size:32px!important;font-weight:800!important;line-height:1.15!important;direction:inherit!important;font-family:inherit!important;font-variant-numeric:normal!important}
.snd-app .snd-event-datebox span{display:block!important;width:100%!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;color:#e8d49a!important;white-space:normal!important}
.snd-app .snd-event-card .snd-event-image{grid-column:2!important;grid-row:1!important;display:block!important;width:100%!important;height:104px!important;max-height:104px!important;min-height:0!important;object-fit:contain!important;object-position:center!important;padding:8px!important;background:#f1f3ee!important;border-bottom:1px solid #e7e8df!important;box-sizing:border-box!important;align-self:start!important}
.snd-app .snd-event-content{grid-column:2!important;padding:17px 19px 19px!important;min-width:0!important}
.snd-app .snd-event-content h3{font-size:19px!important;line-height:1.45!important;margin:0 0 9px!important;color:#1d402d!important;font-weight:800!important}
.snd-app .snd-event-content p{font-size:13px!important;line-height:1.7!important;margin:5px 0!important;color:#69776e!important;overflow-wrap:anywhere!important}
.snd-app .snd-event-content .snd-event-place{font-size:14px!important;color:#315a40!important;font-weight:800!important}
.snd-app .snd-event-content .snd-event-time{display:inline-flex!important;background:#edf2eb!important;color:#244b35!important;padding:5px 10px!important;border-radius:8px!important;font-weight:700!important}
.snd-app .snd-event-description{margin:10px 0!important;font-size:13px!important;line-height:1.8!important;color:#56645b!important}
.snd-app .snd-event-content .snd-button{margin-top:8px!important;min-height:38px!important;padding:8px 14px!important;border-radius:10px!important;font-size:13px!important}
.snd-app .snd-events-hero{padding-bottom:20px!important}
.snd-app .snd-city-chips{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;flex-wrap:wrap!important;margin:18px auto 22px!important}
.snd-app .snd-city-chips button{border:1px solid rgba(220,204,148,.42)!important;background:rgba(255,255,255,.09)!important;color:#f7f4e8!important;border-radius:999px!important;padding:7px 14px!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important}
.snd-app .snd-city-chips button.is-active{background:#c5a451!important;color:#183528!important;border-color:#c5a451!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-modal-dialog{width:min(680px,calc(100vw - 28px))!important;border-top:5px solid #c5a451!important;background:#f8faf7!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-modal-content{padding:28px clamp(18px,3.5vw,34px) 30px!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-modal-content h2{font-size:27px!important;letter-spacing:-.3px!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;margin:20px 0 16px!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid label{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;padding:11px 12px!important;border:1px solid #e5e9e2!important;border-radius:13px!important;background:#fff!important;color:#355342!important;font-size:13px!important;font-weight:800!important;box-shadow:0 3px 10px rgba(26,55,36,.035)!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid label.snd-wide{grid-column:1/-1!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid input:not([type=checkbox]),.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid select,.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid textarea{width:100%!important;min-height:44px!important;border:1px solid #dfe5dd!important;border-radius:9px!important;background:#fbfcfa!important;padding:9px 11px!important;color:#233e2e!important;font-size:14px!important;box-shadow:none!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid input:focus,.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid select:focus,.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid textarea:focus{border-color:#b99a4e!important;box-shadow:0 0 0 3px rgba(197,164,81,.15)!important;outline:0!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-consent{padding:12px 14px!important;border-radius:12px!important;background:#eef3ed!important;color:#53675a!important;font-size:12px!important;line-height:1.8!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-submit-wide{width:100%!important;min-height:52px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#c9aa5d,#b58e36)!important;color:#183528!important;font-size:16px!important;font-weight:800!important;box-shadow:0 7px 18px rgba(181,142,54,.2)!important}
.snd-app .snd-modal[data-snd-modal="event"] .snd-privacy-note{font-size:11px!important;color:#7a877e!important}
@media(max-width:760px){.snd-app .snd-event-grid{grid-template-columns:1fr!important;gap:13px!important}.snd-app .snd-event-card{grid-template-columns:72px minmax(0,1fr)!important;min-height:160px!important}.snd-app .snd-event-datebox{padding:13px 5px!important}.snd-app .snd-event-datebox strong{font-size:27px!important}.snd-app .snd-event-content{padding:13px!important}.snd-app .snd-event-content h3{font-size:16px!important}.snd-app .snd-event-card .snd-event-image{height:96px!important;max-height:96px!important}.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid{grid-template-columns:1fr!important;gap:9px!important}.snd-app .snd-modal[data-snd-modal="event"] .snd-form-grid label.snd-wide{grid-column:auto!important}.snd-app .snd-modal[data-snd-modal="event"] .snd-modal-content h2{font-size:23px!important}}

/* إلغاء تأثير وسم code المغلف للأزرار وجعلها تصطف أفقياً */
.snd-app .snd-tools .snd-tool-launchers > code {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.snd-app .snd-tools .snd-tool-launchers > code > button.snd-tool-tile {
    flex: 1 1 0% !important;
    width: 33.33% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: 92px !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    gap: 5px !important;
    border: 1px solid rgba(220, 204, 148, 0.38) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    text-align: right !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
}

.snd-app .snd-tools .snd-tool-launchers > code > button.snd-tool-tile strong {
    display: block !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.snd-app .snd-tools .snd-tool-launchers > code > button.snd-tool-tile span {
    display: block !important;
    font-size: 13px !important;
    color: rgba(247, 244, 232, 0.75) !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .snd-app .snd-tools .snd-tool-launchers > code {
        flex-direction: column !important;
    }
    .snd-app .snd-tools .snd-tool-launchers > code > button.snd-tool-tile {
        width: 100% !important;
        min-height: 76px !important;
    }
}

/* v0.5.7: compact three-column event directory on desktop */
@media (min-width: 1100px){
  .snd-app .snd-event-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
  .snd-app .snd-event-card{grid-template-columns:66px minmax(0,1fr)!important;min-height:154px!important;border-radius:15px!important}
  .snd-app .snd-event-datebox{padding:12px 5px!important;gap:5px!important}
  .snd-app .snd-event-datebox strong{font-size:26px!important}
  .snd-app .snd-event-datebox span{font-size:10px!important}
  .snd-app .snd-event-card .snd-event-image{height:82px!important;max-height:82px!important;padding:5px!important}
  .snd-app .snd-event-content{padding:10px 12px!important;min-width:0!important}
  .snd-app .snd-event-content h3{font-size:15px!important;line-height:1.5!important;margin:5px 0!important}
  .snd-app .snd-event-content p{font-size:11px!important;line-height:1.5!important;margin:3px 0!important}
  .snd-app .snd-event-content .snd-button{font-size:11px!important;padding:6px 9px!important;min-height:32px!important}
  .snd-app .snd-event-description{font-size:11px!important;line-height:1.55!important;margin:6px 0!important}
}
@media (min-width: 761px) and (max-width: 1099px){
  .snd-app .snd-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  .snd-app .snd-event-card{grid-template-columns:72px minmax(0,1fr)!important;min-height:165px!important}
}

/* City filter: respect the native hidden state of filtered event cards. */
.snd-app .snd-event-card[hidden],
.snd-app .snd-no-results[hidden] { display: none !important; }


/* City filter layout: heading first, city buttons on the row below. */
.snd-app .snd-city-filter{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;margin:14px auto 20px}
.snd-app .snd-city-filter-title{display:block;width:100%;margin:0;text-align:center;font-size:15px;font-weight:800;color:#e8d28d}
.snd-app .snd-city-filter .snd-city-chips{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;width:100%;margin:0;padding:0}
.snd-app .snd-city-filter .snd-city-chips button{min-width:76px}
.snd-app .snd-city-filter .snd-city-chips button[aria-pressed="true"]{background:#c6a552!important;border-color:#c6a552!important;color:#18392a!important}
@media(max-width:640px){.snd-app .snd-city-filter{gap:8px}.snd-app .snd-city-filter .snd-city-chips{gap:6px}}

/* Portrait editor: image area is the primary upload control. */
.snd-modal[data-snd-modal="portrait"] [data-snd-canvas="portrait"]{
    display:block;
    cursor:pointer;
    outline:none;
    touch-action:none;
}
.snd-modal[data-snd-modal="portrait"] [data-snd-canvas="portrait"]:focus-visible{
    outline:3px solid var(--snd-accent,#c5a451);
    outline-offset:4px;
}
.snd-modal [data-snd-download]:disabled,
.snd-modal [data-snd-share]:disabled{
    opacity:.48!important;
    cursor:not-allowed!important;
    filter:grayscale(.25);
}
.snd-modal [data-snd-zoom]:disabled{
    opacity:.45;
    cursor:not-allowed;
}
.snd-modal .snd-design-choices [data-snd-frame-options]{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}
.snd-modal .snd-design-choices [data-snd-frame-options] label{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    cursor:pointer;
}
.snd-modal .snd-design-choices [data-snd-frame-options] input{accent-color:var(--snd-accent,#c5a451)}
.snd-modal .snd-design-choices [data-snd-frame-options] img{
    width:76px;height:96px;object-fit:cover;border:2px solid transparent;border-radius:10px;
}
.snd-modal .snd-design-choices [data-snd-frame-options] input:checked+img{
    border-color:var(--snd-accent,#c5a451);box-shadow:0 0 0 2px rgba(197,164,81,.2);
}

/* Community wall cards: consistent, responsive presentation. */
.snd-app .snd-wall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.snd-app .snd-wall-card{min-width:0;overflow:hidden}
.snd-app .snd-wall-card img{width:100%;height:230px;max-height:230px;object-fit:contain}
@media(max-width:900px){.snd-app .snd-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.snd-app .snd-wall-grid{grid-template-columns:1fr}}


/* Public wall portrait cards: smaller centered artwork and compact captions. */
.snd-app .snd-wall-card-portrait{
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    text-align:center;padding:12px 10px 14px;
}
.snd-app .snd-wall-card-portrait>img{
    display:block;width:min(72%,190px)!important;height:150px!important;max-height:150px!important;
    margin:2px auto 10px!important;object-fit:contain!important;background:transparent!important;
    border-radius:10px;
}
.snd-app .snd-wall-card-portrait .snd-wall-portrait-caption{
    width:100%;padding:2px 4px 0!important;text-align:center;
}
.snd-app .snd-wall-card-portrait .snd-wall-type{
    display:block;color:#d9bd72!important;font-size:14px;line-height:1.5;font-weight:800;
}
.snd-app .snd-wall-card-portrait .snd-wall-display-name{
    margin:5px 0 0!important;color:#fff!important;font-size:16px!important;
    line-height:1.45;font-weight:700;overflow-wrap:anywhere;
}
@media(max-width:640px){
    .snd-app .snd-wall-card-portrait>img{width:min(68%,170px)!important;height:132px!important;max-height:132px!important}
    .snd-app .snd-wall-card-portrait .snd-wall-type{font-size:13px}
    .snd-app .snd-wall-card-portrait .snd-wall-display-name{font-size:15px!important}
}


/* v0.5.16 — compact four-column community wall */
.snd-app .snd-wall .snd-wall-grid,
.snd-app .snd-wall-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:14px!important;
    align-items:start!important;
}
.snd-app .snd-wall-card{
    width:100%!important;
    min-width:0!important;
    padding:10px!important;
    border-radius:14px!important;
    overflow:hidden!important;
}
.snd-app .snd-wall-card-portrait{
    min-height:0!important;
    height:auto!important;
    justify-content:flex-start!important;
}
.snd-app .snd-wall-card-portrait>img{
    width:min(94%,190px)!important;
    max-width:190px!important;
    height:150px!important;
    max-height:150px!important;
    object-fit:contain!important;
    margin:0 auto 7px!important;
}
.snd-app .snd-wall-card-portrait .snd-wall-portrait-caption{
    width:100%!important;
    padding:0!important;
}
.snd-app .snd-wall-card-portrait .snd-wall-type{
    font-size:12px!important;
    line-height:1.35!important;
}
.snd-app .snd-wall-card-portrait .snd-wall-display-name{
    margin-top:3px!important;
    font-size:14px!important;
    line-height:1.35!important;
}
@media(max-width:1050px){
    .snd-app .snd-wall .snd-wall-grid,
    .snd-app .snd-wall-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
    .snd-app .snd-wall .snd-wall-grid,
    .snd-app .snd-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
    .snd-app .snd-wall-card{padding:8px!important}
    .snd-app .snd-wall-card-portrait>img{height:130px!important;max-height:130px!important}
}
@media(max-width:420px){
    .snd-app .snd-wall .snd-wall-grid,
    .snd-app .snd-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* v0.5.17 — deter casual copying of community wall images */
.snd-app .snd-wall-image-protect{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    max-width:100%!important;
    margin:0 auto 7px!important;
    isolation:isolate!important;
    user-select:none!important;
    -webkit-user-select:none!important;
    -webkit-touch-callout:none!important;
}
.snd-app .snd-wall-image-protect img{
    display:block!important;
    pointer-events:none!important;
    user-select:none!important;
    -webkit-user-drag:none!important;
    -webkit-touch-callout:none!important;
    max-width:100%!important;
}
.snd-app .snd-wall-watermark{
    position:absolute!important;
    inset:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px!important;
    color:rgba(255,255,255,.72)!important;
    font-size:clamp(10px,1.2vw,15px)!important;
    font-weight:800!important;
    letter-spacing:.04em!important;
    text-align:center!important;
    text-shadow:0 1px 4px rgba(0,0,0,.65)!important;
    background:repeating-linear-gradient(-28deg,transparent 0 68px,rgba(16,57,43,.10) 69px 71px,transparent 72px 136px)!important;
    opacity:.72!important;
    pointer-events:none!important;
    user-select:none!important;
}
.snd-app .snd-wall-image-protect:after{
    content:"الجالية السورية في السويد"!important;
    position:absolute!important;
    right:8px!important;
    bottom:8px!important;
    z-index:2!important;
    padding:3px 7px!important;
    border-radius:5px!important;
    color:#fff!important;
    background:rgba(12,48,37,.58)!important;
    font-size:9px!important;
    line-height:1.4!important;
    pointer-events:none!important;
}
.snd-app .snd-wall-image-protect img::selection{background:transparent!important}


/* v0.5.18 — gold feature headings */
.snd-app .snd-events .snd-events-hero h1{
    color:#d9bd72!important;
}
.snd-app .snd-tools .snd-section-head h2{
    color:#d9bd72!important;
}


/* v0.5.20 — no visible watermark; retain casual copy deterrence */
.snd-app .snd-wall-watermark,
.snd-app .snd-wall-image-protect:after{
    display:none!important;
    content:none!important;
}
.snd-app .snd-wall-image-protect{
    background:transparent!important;
}
.snd-app .snd-wall-image-protect img{
    opacity:1!important;
    filter:none!important;
}


/* v0.5.21 — unify wall image dimensions and typography for every submission type */
.snd-app .snd-wall-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    min-width:0!important;
}
.snd-app .snd-wall-card .snd-wall-image-protect{
    width:100%!important;
    height:210px!important;
    min-height:210px!important;
    max-height:210px!important;
    flex:0 0 210px!important;
    padding:0!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    background:rgba(0,0,0,.10)!important;
    border-radius:10px!important;
}
.snd-app .snd-wall-card .snd-wall-image-protect img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
}
.snd-app .snd-wall-card .snd-wall-card-content,
.snd-app .snd-wall-card .snd-wall-portrait-caption{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    flex:1 1 auto!important;
    padding:12px 10px!important;
    margin:0!important;
    text-align:center!important;
    font-family:Cairo, sans-serif!important;
}
.snd-app .snd-wall-card .snd-wall-type{
    display:block!important;
    margin:0!important;
    color:var(--snd-accent)!important;
    font-family:Cairo, sans-serif!important;
    font-size:12px!important;
    line-height:1.5!important;
    font-weight:800!important;
}
.snd-app .snd-wall-card .snd-wall-card-content h3,
.snd-app .snd-wall-card .snd-wall-display-name{
    display:block!important;
    width:100%!important;
    margin:0!important;
    color:#f7f4e8!important;
    font-family:Cairo, sans-serif!important;
    font-size:15px!important;
    line-height:1.55!important;
    font-weight:800!important;
    overflow-wrap:anywhere!important;
}
.snd-app .snd-wall-card .snd-wall-card-description,
.snd-app .snd-wall-card .snd-wall-card-description p{
    margin:0!important;
    color:#f7f4e8!important;
    font-family:Cairo, sans-serif!important;
    font-size:13px!important;
    line-height:1.65!important;
    font-weight:500!important;
    overflow-wrap:anywhere!important;
}
.snd-app .snd-wall .snd-section-head h2{
    color:#d9bd72!important;
}
@media(max-width:700px){
    .snd-app .snd-wall-card .snd-wall-image-protect{
        height:170px!important;
        min-height:170px!important;
        max-height:170px!important;
        flex-basis:170px!important;
    }
    .snd-app .snd-wall-card .snd-wall-card-content,
    .snd-app .snd-wall-card .snd-wall-portrait-caption{
        padding:9px 7px!important;
    }
    .snd-app .snd-wall-card .snd-wall-card-content h3,
    .snd-app .snd-wall-card .snd-wall-display-name{font-size:13px!important}
}


/* v0.5.22 — show the complete uploaded image without cropping or compressing it */
.snd-app .snd-wall-card .snd-wall-image-protect{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:0 0 auto!important;
    aspect-ratio: 4 / 3!important;
    padding:8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    background:rgba(0,0,0,.10)!important;
}
.snd-app .snd-wall-card .snd-wall-image-protect img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
}
@media(max-width:700px){
    .snd-app .snd-wall-card .snd-wall-image-protect{
        aspect-ratio: 4 / 3!important;
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        flex-basis:auto!important;
    }
}


/* v0.5.23 — taller wall image frame to reveal more image detail */
.snd-app .snd-wall-card .snd-wall-image-protect{
    aspect-ratio: 3 / 4!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex-basis:auto!important;
}
.snd-app .snd-wall-card .snd-wall-image-protect img{
    object-fit:contain!important;
    object-position:center!important;
}
@media(max-width:700px){
    .snd-app .snd-wall-card .snd-wall-image-protect{
        aspect-ratio: 3 / 4!important;
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        flex-basis:auto!important;
    }
}


/* v0.5.24 — balanced square image frame between the previous 4:3 and 3:4 sizes */
.snd-app .snd-wall-card .snd-wall-image-protect{
    aspect-ratio:1 / 1!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex-basis:auto!important;
}
.snd-app .snd-wall-card .snd-wall-image-protect img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
}
@media(max-width:700px){
    .snd-app .snd-wall-card .snd-wall-image-protect{
        aspect-ratio:1 / 1!important;
        height:auto!important;
        min-height:0!important;
        max-height:none!important;
        flex-basis:auto!important;
    }
}


/* Letter card preview uses the same square dimensions as the profile-photo tool. */
.snd-modal[data-snd-modal="letter"] .snd-canvas-wrap{width:min(100%,520px)!important;}
.snd-modal[data-snd-modal="letter"] .snd-canvas-wrap canvas{width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:contain;}


/* v0.5.29 — clear and reliable template selection in card tools */
.snd-app .snd-design-choices .snd-design-options{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    gap:12px!important;
    width:100%!important;
}
.snd-app .snd-design-choices .snd-design-option{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    gap:5px!important;
    padding:7px!important;
    border:2px solid rgba(197,164,81,.35)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.06)!important;
    cursor:pointer!important;
    transition:border-color .15s ease,background .15s ease,box-shadow .15s ease!important;
}
.snd-app .snd-design-choices .snd-design-option input{
    position:absolute!important;
    inset:8px auto auto 8px!important;
    width:18px!important;
    height:18px!important;
    opacity:1!important;
    z-index:2!important;
    accent-color:#c5a451!important;
    cursor:pointer!important;
}
.snd-app .snd-design-choices .snd-design-option img{
    display:block!important;
    width:82px!important;
    height:104px!important;
    object-fit:cover!important;
    border:1px solid rgba(255,255,255,.25)!important;
    border-radius:8px!important;
    pointer-events:none!important;
}
.snd-app .snd-design-choices .snd-design-option small{
    color:inherit!important;
    font-size:11px!important;
    font-weight:700!important;
}
.snd-app .snd-design-choices .snd-design-option:has(input:checked){
    border-color:var(--snd-accent,#c5a451)!important;
    background:rgba(197,164,81,.16)!important;
    box-shadow:0 0 0 2px rgba(197,164,81,.22)!important;
}
.snd-app .snd-design-choices .snd-design-option:focus-within{
    outline:2px solid var(--snd-accent,#c5a451)!important;
    outline-offset:2px!important;
}


/* v0.5.30 — unified selectable template cards for Letter and Memory tools */
.snd-app .snd-card-editor .snd-design-choices{
    display:block!important;
    width:100%!important;
    margin:18px 0 22px!important;
}
.snd-app .snd-card-editor .snd-design-choices>span{
    display:block!important;
    margin:0 0 12px!important;
    font-size:16px!important;
    font-weight:800!important;
    color:var(--snd-primary)!important;
}
.snd-app .snd-card-editor .snd-design-options{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
    gap:12px!important;
    width:100%!important;
    align-items:stretch!important;
}
.snd-app .snd-card-editor .snd-design-option{
    position:relative!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    min-width:0!important;
    padding:10px!important;
    border:2px solid rgba(197,164,81,.35)!important;
    border-radius:14px!important;
    background:#f8faf8!important;
    color:#244b35!important;
    cursor:pointer!important;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.snd-app .snd-card-editor .snd-design-option input[type="radio"]{
    position:absolute!important;
    top:9px!important;
    inset-inline-start:9px!important;
    width:19px!important;
    height:19px!important;
    margin:0!important;
    opacity:1!important;
    z-index:2!important;
    accent-color:#c5a451!important;
    cursor:pointer!important;
}
.snd-app .snd-card-editor .snd-design-option img{
    display:block!important;
    width:100%!important;
    max-width:112px!important;
    height:142px!important;
    object-fit:contain!important;
    object-position:center!important;
    border:1px solid rgba(36,75,53,.12)!important;
    border-radius:9px!important;
    background:#e9eee9!important;
    pointer-events:none!important;
}
.snd-app .snd-card-editor .snd-design-option small{
    display:block!important;
    color:#244b35!important;
    font-size:12px!important;
    font-weight:800!important;
    text-align:center!important;
}
.snd-app .snd-card-editor .snd-design-option:has(input:checked){
    border-color:#c5a451!important;
    background:rgba(197,164,81,.12)!important;
    box-shadow:0 0 0 2px rgba(197,164,81,.2)!important;
}
.snd-app .snd-card-editor .snd-design-option:focus-within{
    outline:2px solid #c5a451!important;
    outline-offset:2px!important;
}
@media(max-width:600px){
    .snd-app .snd-card-editor .snd-design-options{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
        gap:9px!important;
    }
    .snd-app .snd-card-editor .snd-design-option img{
        height:132px!important;
    }
}


/* v0.5.31 — consistent, accessible close control across every modal */
.snd-modal-dialog{
    position:relative!important;
}
.snd-modal-close{
    position:absolute!important;
    top:13px!important;
    right:13px!important;
    left:auto!important;
    float:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(197,164,81,.55)!important;
    border-radius:50%!important;
    background:#173f2d!important;
    color:#f4d77d!important;
    font-family:Arial,sans-serif!important;
    font-size:27px!important;
    font-weight:400!important;
    line-height:1!important;
    text-align:center!important;
    box-shadow:0 3px 12px rgba(0,0,0,.16)!important;
    cursor:pointer!important;
    z-index:20!important;
    transition:transform .15s ease,background .15s ease,box-shadow .15s ease!important;
    -webkit-tap-highlight-color:transparent!important;
}
.snd-modal-close:hover,
.snd-modal-close:focus-visible{
    background:#c5a451!important;
    color:#173f2d!important;
    box-shadow:0 4px 15px rgba(0,0,0,.2)!important;
    outline:2px solid rgba(197,164,81,.35)!important;
    outline-offset:2px!important;
}
.snd-modal-close:active{
    transform:scale(.94)!important;
}
.snd-modal-content{
    padding-top:66px!important;
}
@media(max-width:600px){
    .snd-modal-close{
        top:10px!important;
        right:10px!important;
        width:42px!important;
        height:42px!important;
        min-width:42px!important;
        min-height:42px!important;
    }
    .snd-modal-content{padding-top:62px!important}
}


/* v0.5.32 — close control at the far left without changing modal height */
.snd-modal-close{
    top:13px!important;left:13px!important;right:auto!important;
    float:none!important;position:absolute!important;
}
.snd-modal-content{padding-top:30px!important}
@media(max-width:600px){
    .snd-modal-close{top:10px!important;left:10px!important;right:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
    .snd-modal-content{padding-top:18px!important}
}

/* Letter and memory templates: compact thumbnails directly under the message */
.snd-app .snd-card-editor .snd-design-choices{margin:12px 0 16px!important}
.snd-app .snd-card-editor .snd-design-choices>span{margin:0 0 8px!important}
.snd-app .snd-card-editor .snd-design-options{
    display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:flex-start!important;gap:8px!important;
}
.snd-app .snd-card-editor .snd-design-option{
    flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;
    padding:4px!important;gap:3px!important;border-width:1px!important;border-radius:9px!important;
}
.snd-app .snd-card-editor .snd-design-option img{
    width:39px!important;height:50px!important;max-width:39px!important;object-fit:contain!important;border-radius:5px!important;
}
.snd-app .snd-card-editor .snd-design-option input{width:13px!important;height:13px!important;inset:5px auto auto 5px!important}
.snd-app .snd-card-editor .snd-design-option small{font-size:9px!important;line-height:1.2!important}

/* حقول قصة وين كنت يوم التحرير: عمود مرتب بعرض موحد أسفل القصة */
.snd-app .snd-memory-fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    margin-top: 18px !important;
}
.snd-app .snd-memory-fields > label,
.snd-app .snd-memory-fields > label.snd-wide {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
}
.snd-app .snd-memory-fields input {
    width: 100% !important;
    box-sizing: border-box !important;
}
