@font-face {
    font-family: "SMCal Segoe";
    src: local("Segoe Script Bold"), local("SegoeScript-Bold");
    font-weight: 700;
}
@font-face {
    font-family: "SMCal Preview";
    src: url("DancingScript.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
.smcal {
    max-width: 1330px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 58px);
    color: #242328;
}
.smcal h1 { font-size: clamp(2rem,4vw,3.4rem); margin: 0 0 24px; }
.smcal--product {
    clear: both;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: clamp(28px, 4vw, 52px) 0;
    scroll-margin-top: 120px;
}
.smcal--product h2 { margin: 0 0 24px; }
.smcal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(295px, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.smcal-proof {
    display: grid;
    padding: clamp(12px, 3vw, 40px);
    background: #f0eee7;
    border-radius: 20px;
}
.smcal-proof canvas,.smcal-confirmed {
    width: 100%; height: auto; display: block;
    filter: drop-shadow(0 8px 14px #28241926);
    border-radius: 3.45% / 3.39%;
}
.smcal-proof canvas { touch-action: pan-y; }
.smcal-proof canvas.smcal-drag { touch-action: none; cursor: grab; }
.smcal [hidden] { display: none; }
.smcal-controls,.smcal-names { display: grid; gap: 12px; }
.smcal-controls p { font-size: 15px; margin: 0; }
.smcal-controls label { display: grid; gap: 5px; font-size: 15px; font-weight: 600; }
.smcal-controls input,.smcal-controls select {
    border: 1px solid #bcb8ad; padding: 8px 10px; border-radius: 5px;
    width: 100%; min-width: 0; font: inherit; background: #fff; color: inherit;
}
.smcal-controls input[type="range"] { padding: 0; accent-color: #355a46; }
.smcal-pan,.smcal-names { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.smcal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.smcal button { padding: 9px 13px; border: 1px solid #355a46; border-radius: 6px; background: #355a46; color: white; font: inherit; cursor: pointer; }
.smcal button:disabled { opacity: .48; cursor: default; }
.smcal-message { min-height: 1.5em; }
.smcal-message[data-error="true"] { color: #a71f2d; }
.smcal-operator { font-family: system-ui,sans-serif; background: #f6f5f0; margin: 0; }
.smcal-table { overflow: auto; }
.smcal table { width: 100%; border-collapse: collapse; background: #fff; }
.smcal th,.smcal td { text-align: left; padding: 9px; border-bottom: 1px solid #ddd; }
@media (max-width: 760px) {
    .smcal-layout { grid-template-columns: 1fr; }
    .smcal-proof { max-width: 530px; width: 100%; box-sizing: border-box; }
}
