.stamp-type-switch {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.stamp-text-editor{margin:0 0 22px;padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.58)}
.stamp-text-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
.stamp-text-editor-heading h3{margin:0;font-size:1rem}.stamp-text-editor-heading p{margin:4px 0 0;color:var(--muted);font-size:.72rem;line-height:1.6}
.stamp-add-text{display:flex;align-items:center;gap:5px;flex:0 0 auto;padding:8px 10px;border:1px solid #bfd6d0;border-radius:10px;background:#f6fffc;color:#226d62;font:inherit;font-size:.72rem;font-weight:800;cursor:pointer}
.stamp-add-text span{font-size:1rem;line-height:1}
.stamp-text-layers{display:grid;gap:10px}
.stamp-text-layer{padding:12px;border:1px solid #d9e3df;border-radius:13px;background:#fff}
.stamp-text-layer-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.stamp-text-layer-head strong{font-size:.78rem}.stamp-remove-text{border:0;background:transparent;color:#8c605b;font:inherit;font-size:.7rem;text-decoration:underline;cursor:pointer}
.stamp-text-layer-input{box-sizing:border-box;width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.stamp-text-layer-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
.stamp-control-block{display:grid;align-content:start;justify-items:center;gap:6px}
.stamp-control-block>span{justify-self:start;color:#52655b;font-size:.68rem;font-weight:800}
.stamp-arrow-pad{display:grid;grid-template-columns:34px 34px 34px;grid-template-rows:34px 34px 34px;gap:3px}
.stamp-arrow-pad button,.stamp-size-stepper button{display:grid;place-items:center;border:1px solid #cfddd8;border-radius:8px;background:#f7faf9;color:#244f47;font:inherit;font-size:1rem;font-weight:900;cursor:pointer;touch-action:manipulation}
.stamp-arrow-pad button[data-direction="up"]{grid-column:2}.stamp-arrow-pad button[data-direction="left"]{grid-column:1;grid-row:2}.stamp-arrow-pad output{display:grid;grid-column:2;grid-row:2;place-items:center;color:#789087;font-size:.58rem}.stamp-arrow-pad button[data-direction="right"]{grid-column:3;grid-row:2}.stamp-arrow-pad button[data-direction="down"]{grid-column:2;grid-row:3}
.stamp-size-stepper{display:grid;grid-template-columns:38px minmax(54px,1fr) 38px;gap:5px;width:100%;max-width:150px}
.stamp-size-stepper button{min-height:38px}.stamp-size-stepper output{display:grid;place-items:center;border:1px solid #d9e3df;border-radius:8px;color:#35544b;font-size:.72rem;font-weight:800}
.stamp-layer-position{min-height:16px;color:#789087;font-size:.6rem}
.stamp-weight-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.stamp-weight-control{display:grid;gap:8px;padding:13px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.62)}
.stamp-weight-control>strong{color:#52655b;font-size:.74rem}
.stamp-global-stepper{display:grid;grid-template-columns:42px 1fr 42px;gap:6px}
.stamp-global-stepper button{min-height:40px;border:1px solid #cfddd8;border-radius:9px;background:#f7faf9;color:#244f47;font:inherit;font-size:1.1rem;font-weight:900;cursor:pointer;touch-action:manipulation}
.stamp-global-stepper output{display:grid;place-items:center;border:1px solid #d9e3df;border-radius:9px;background:#fff;color:#35544b;font-size:.76rem;font-weight:800}
.stamp-save-ready{border-color:#2a9c76!important;background:linear-gradient(135deg,#239b72,#4ac99e)!important;color:#fff!important;box-shadow:0 12px 28px rgba(35,155,114,.24)}
@media(max-width:520px){.stamp-text-editor-heading{display:grid}.stamp-add-text{justify-self:start}.stamp-text-layer-controls{grid-template-columns:1fr 1fr;gap:8px}.stamp-text-editor{padding:13px}}
@media(max-width:420px){.stamp-weight-controls{grid-template-columns:1fr}}
.stamp-next-tool{display:flex;align-items:center;justify-content:space-between;gap:28px;max-width:1180px;margin:28px auto;padding:28px 32px;border:1px solid rgba(44,167,141,.24);border-radius:24px;background:linear-gradient(135deg,rgba(239,249,255,.94),rgba(232,253,246,.94));box-shadow:0 18px 42px rgba(26,91,77,.08)}.stamp-next-tool .eyebrow{margin:0 0 7px}.stamp-next-tool h2{margin:0 0 8px;color:var(--ink);font-size:1.3rem}.stamp-next-tool p:last-child{margin:0;color:var(--muted);font-size:.84rem;line-height:1.8}.stamp-next-tool .button{flex:0 0 auto;text-align:center}
@media(max-width:700px){.stamp-next-tool{align-items:stretch;flex-direction:column;margin:22px 16px;padding:22px}.stamp-next-tool .button{width:100%}}
