.greeting-shell{width:min(1180px,100%);margin:auto;padding:clamp(34px,6vw,72px) clamp(16px,5vw,48px) 72px}
.greeting-hero{max-width:880px;margin:0 auto 32px;text-align:center}
.greeting-hero h1{font-size:clamp(2.6rem,7vw,5.2rem)}
.greeting-hero h1 em{color:var(--orange);font-style:normal}
.greeting-hero p{color:var(--muted);line-height:1.7;font-size:1.08rem}
.greeting-badge{display:inline-block;margin-bottom:14px;padding:8px 16px;border-radius:999px;background:var(--orange);color:#fff;font-weight:900;letter-spacing:.06em;text-transform:uppercase;font-size:.78rem}
.greeting-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:24px;align-items:start}
.greeting-controls,.greeting-preview-card{padding:clamp(22px,4vw,38px);border:1px solid var(--line);border-radius:32px;background:var(--paper);box-shadow:var(--shadow)}
.greeting-controls fieldset{border:0;margin:0 0 28px;padding:0}
.greeting-controls legend{margin-bottom:14px;font-size:1.18rem;font-weight:900;letter-spacing:-.02em}
.occasion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.occasion-button,.greeting-motif,.greeting-color{border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;cursor:pointer;transition:.18s}
.occasion-button{min-height:52px;padding:10px;border-radius:16px;font-weight:850}
.occasion-button[aria-pressed="true"],.greeting-motif[aria-pressed="true"],.greeting-color[aria-pressed="true"]{border-color:var(--orange);box-shadow:0 10px 24px rgba(232,93,63,.18);background:#fff4ee}
.greeting-motif-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.greeting-motif{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border-radius:18px;font-size:.78rem;font-weight:800;line-height:1.2;text-align:center}
.greeting-motif img{width:100%;height:64px;object-fit:contain}
.greeting-color-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.greeting-color{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:16px;font-size:.72rem;font-weight:800;line-height:1.15;text-align:center}
.greeting-swatch{width:34px;height:34px;border:1px solid rgba(52,35,29,.18);border-radius:50%}
.greeting-selected{margin:14px 0 0;color:var(--orange-dark);font-weight:850}
.greeting-fields{display:grid;gap:16px}
.greeting-fields label,.greeting-caption-label{font-weight:850}
.greeting-fields label span{color:var(--muted);font-size:.86rem;font-weight:700}
.greeting-fields input,.greeting-fields textarea,.greeting-caption{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:14px 16px;border:1px solid #dfc2b4;border-radius:16px;background:#fff;color:var(--ink);font:inherit;line-height:1.55}
.greeting-fields textarea,.greeting-caption{resize:vertical}
.greeting-privacy{margin:20px 0 0;color:var(--muted);line-height:1.65}
.greeting-preview-card{position:sticky;top:96px}
.greeting-preview-card h2{font-size:1.7rem;margin-bottom:16px}
#greetingCanvas{display:block;width:min(100%,430px);height:auto;margin:auto;border:1px solid var(--line);border-radius:26px;background:#fff;box-shadow:0 16px 38px rgba(116,62,38,.16)}
.greeting-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.greeting-actions .button{border:0;cursor:pointer;font:inherit;padding-inline:12px;text-align:center}
.greeting-caption-label{display:block;margin-bottom:2px}
.greeting-status{min-height:26px;color:var(--orange-dark);font-weight:800;line-height:1.55}
@media(max-width:940px){.greeting-layout{grid-template-columns:1fr}.greeting-preview-card{position:static}}
@media(max-width:620px){.greeting-shell{padding-inline:12px}.occasion-grid{grid-template-columns:repeat(2,1fr)}.greeting-motif-grid{grid-template-columns:repeat(3,1fr)}.greeting-color-grid{grid-template-columns:repeat(4,1fr)}.greeting-actions{grid-template-columns:1fr}}
