#calendar-visualizer { background: #edf5fa; color: #123954; }
main[data-service-hidden] #calendar-visualizer { display: none; }
#calendar-visualizer [hidden] { display: none !important; }
.cv-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.cv-heading h2 { margin: 0; }
.cv-heading > p { max-width: 410px; margin: 0; color: #49677a; }
.cv-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.cv-controls, .cv-preview { min-width: 0; border: 1px solid #d4e4ee; border-radius: 18px; background: #fff; box-shadow: 0 9px 28px #153b5410; }
.cv-controls { display: grid; gap: 18px; padding: clamp(18px, 2.7vw, 28px); }
.cv-controls > label, .cv-selects label { display: grid; gap: 6px; color: #314f64; font-size: 14px; font-weight: 700; }
.cv-controls input[type="text"], .cv-controls select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #b9d0de; border-radius: 9px; background: #fff; color: #123954; font: inherit; box-sizing: border-box; }
.cv-controls input:focus-visible, .cv-controls select:focus-visible, .cv-file-button:focus-within, .cv-controls button:focus-visible, .cv-preview button:focus-visible, .cv-dialog button:focus-visible { outline: 2px solid #1474a9; outline-offset: 3px; }
.cv-controls input[type="color"] { width: 75px; height: 42px; padding: 2px; border: 1px solid #b9d0de; border-radius: 8px; background: #fff; cursor: pointer; }
.cv-types { min-width: 0; margin: 0; padding: 0; border: 0; }
.cv-types legend { margin-bottom: 9px; font-size: 14px; font-weight: 800; }
.cv-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cv-type { position: relative; min-width: 0; cursor: pointer; }
.cv-type input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cv-type span { display: grid; gap: 3px; min-height: 73px; padding: 12px; border: 1px solid #cbdde8; border-radius: 10px; background: #f8fbfd; box-sizing: border-box; }
.cv-type strong { color: #133e5a; font-size: 14px; line-height: 1.2; }
.cv-type small { color: #627c8c; font-size: 11px; line-height: 1.3; }
.cv-type input:checked + span { border-color: #1683b7; background: #e7f6fc; box-shadow: inset 0 0 0 1px #1683b7; }
.cv-type input:focus-visible + span { outline: 2px solid #1474a9; outline-offset: 3px; }
.cv-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cv-file-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cv-file-button, .cv-remove, .cv-zoom { min-height: 40px; padding: 9px 14px; border: 1px solid #b8d1df; border-radius: 8px; background: #f5fbfe; color: #14516f; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.cv-file-button { display: inline-flex; align-items: center; }
.cv-file-button:hover, .cv-remove:hover, .cv-zoom:hover { background: #dff1fa; }
.cv-file-status { margin: -12px 0 0; color: #627c8c; font-size: 12px; }
.cv-order { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 17px; border-top: 1px solid #d9e7ef; }
.cv-order > div { display: grid; gap: 1px; }
.cv-order span { color: #647e8f; font-size: 12px; }
.cv-order strong { color: #123954; font-size: 21px; }
.cv-order small { max-width: 250px; color: #647e8f; line-height: 1.3; }
.cv-order .button { min-height: 44px; }
.cv-preview { position: sticky; top: 86px; overflow: hidden; }
.cv-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #d9e7ef; }
.cv-preview-head > div { display: grid; gap: 2px; }
.cv-preview-kicker { margin: 0; color: #678395; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cv-preview-name { font-size: 16px; }
.cv-scene { display: grid; place-items: center; min-height: 510px; overflow: auto; padding: 28px; background: radial-gradient(circle at 80% 10%, #cce3f2, transparent 34%), linear-gradient(135deg, #d7e7f1, #f5f9fc 55%, #d4e6ef); box-sizing: border-box; }
.cv-piece { width: min(100%, 510px); display: grid; place-items: center; }
.cv-caption { margin: 0; padding: 14px 20px; color: #687f8d; font-size: 12px; line-height: 1.4; }
.cv-product { --cv-accent: #146ca2; position: relative; width: min(100%, 390px); padding: 0 0 4px; border: 1px solid #b9cbd6; border-radius: 4px; background: #fff; box-shadow: 0 20px 34px #153b5433, 0 3px 8px #153b5422; box-sizing: border-box; }
.cv-binding { position: relative; z-index: 2; height: 15px; margin: -7px 19px -7px; background: repeating-linear-gradient(90deg, transparent 0 12px, #8da4b0 12px 16px, #dce9ef 16px 20px, transparent 20px 28px); }
.cv-cover { position: relative; min-height: 105px; overflow: hidden; color: #fff; background: var(--cv-accent); }
.cv-art { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(110deg, #123e65b9, #164d740e), linear-gradient(160deg, #e2f5fc 0 25%, #a4d9ec 25% 40%, #397eac 40% 60%, #13517f 60% 100%); }
.cv-art::before { position: absolute; inset: -60% 38% 25% -20%; border: 30px solid #ffffff44; border-radius: 50%; content: ""; }
.cv-art::after { position: absolute; top: -15%; right: -4%; width: 35%; height: 150%; border: 20px solid #ffffff32; transform: rotate(25deg); content: ""; }
.cv-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv-cover-text { position: relative; z-index: 1; display: flex; align-items: end; flex-direction: column; justify-content: space-between; height: 105px; padding: 14px 19px; background: linear-gradient(0deg, #082b4db8, transparent 70%); box-sizing: border-box; text-align: right; text-shadow: 0 1px 4px #082b4d99; }
.cv-cover-mark { align-self: start; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.cv-cover-text strong { max-width: 90%; overflow-wrap: anywhere; font-size: clamp(16px, 2vw, 27px); line-height: 1; }
.cv-cover-text > span:last-child { font-size: 11px; font-weight: 800; }
.cv-sheets { display: grid; gap: 8px; padding: 13px 16px 17px; }
.cv-month-card { min-width: 0; padding: 7px 11px 9px; border: 1px solid #dbe5ea; background: #fff; }
.cv-month-title { padding-bottom: 6px; color: var(--cv-accent); font-size: 13px; font-weight: 900; }
.cv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; font-variant-numeric: tabular-nums; }
.cv-days span { display: grid; place-items: center; min-height: 18px; font-size: 10px; line-height: 1; }
.cv-weekday { color: #7892a1; font-weight: 800; }
.cv-day { color: #203e51; }
.cv-day--weekend { color: #d05154; }
.cv-product--trio .cv-sheets { gap: 7px; }
.cv-product--trio .cv-month-card { padding-top: 4px; padding-bottom: 4px; }
.cv-product--mono .cv-cover { min-height: 138px; }
.cv-product--mono .cv-cover-text { height: 138px; }
.cv-product--mono .cv-month-card { padding: 16px 24px; }
.cv-product--mono .cv-days span { min-height: 27px; font-size: 13px; }
.cv-product--wall .cv-cover { min-height: 220px; }
.cv-product--wall .cv-cover-text { height: 220px; }
.cv-product--wall .cv-month-card { padding: 14px 24px; }
.cv-product--wall .cv-days span { min-height: 26px; font-size: 12px; }
.cv-product--desk { max-width: 430px; transform: perspective(900px) rotateX(6deg); }
.cv-product--desk::after { position: absolute; top: 100%; right: 6%; left: 6%; height: 28px; background: #a4bac7; transform: skewX(-24deg); transform-origin: top; content: ""; }
.cv-product--desk .cv-cover { min-height: 140px; }
.cv-product--desk .cv-cover-text { height: 140px; }
.cv-product--desk .cv-days span { min-height: 27px; font-size: 12px; }
.cv-product--pocket { max-width: 315px; border-radius: 12px; }
.cv-product--pocket .cv-binding, .cv-product--poster .cv-binding { display: none; }
.cv-product--pocket .cv-cover { min-height: 90px; border-radius: 11px 11px 0 0; }
.cv-product--pocket .cv-cover-text { height: 90px; }
.cv-product--poster { max-width: 500px; }
.cv-product--poster .cv-cover { min-height: 115px; }
.cv-product--poster .cv-cover-text { height: 115px; }
.cv-sheets--year { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 9px; }
.cv-month-card--small { padding: 3px 2px; border: 0; }
.cv-month-card--small .cv-month-title { padding-bottom: 3px; font-size: 9px; }
.cv-month-card--small .cv-days { gap: 0; }
.cv-month-card--small .cv-days span { min-height: 10px; font-size: 6px; }
.cv-product--poster .cv-month-card--small .cv-month-title { font-size: 10px; }
.cv-product--poster .cv-month-card--small .cv-days span { min-height: 13px; font-size: 8px; }
.cv-dialog { width: min(94vw, 820px); max-height: 94vh; padding: 55px 30px 30px; border: 0; border-radius: 18px; background: #edf5fa; box-shadow: 0 35px 90px #001a2c77; }
.cv-dialog::backdrop { background: #071d30c9; }
.cv-dialog-piece { display: grid; place-items: center; min-height: 590px; overflow: auto; }
.cv-dialog-piece .cv-product { width: min(100%, 600px); }
.cv-dialog-piece .cv-product--pocket { max-width: 390px; }
.cv-dialog-piece .cv-product--poster { max-width: 650px; }
.cv-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: #fff; color: #133e5a; font-size: 26px; cursor: pointer; }
@media (max-width: 850px) { .cv-layout { grid-template-columns: 1fr; } .cv-preview { position: static; } .cv-scene { min-height: 450px; } }
@media (max-width: 520px) { .cv-heading { display: block; } .cv-heading > p { margin-top: 10px; } .cv-type-grid { gap: 6px; } .cv-type span { padding: 9px; min-height: 76px; } .cv-type strong { font-size: 12px; } .cv-preview-head { padding: 12px; } .cv-scene { min-height: 430px; padding: 22px 10px; } .cv-piece { width: 100%; } .cv-product--mono .cv-days span, .cv-product--wall .cv-days span { min-height: 20px; font-size: 10px; } .cv-dialog { padding: 55px 9px 15px; } }
