.sv-section {
  margin-top: clamp(46px, 6vw, 76px);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #cee2ed;
  border-radius: 18px;
  background: linear-gradient(140deg, #fff 0%, #f2f9fd 100%);
  box-shadow: 0 20px 50px #13466c0b;
}
.sv-section [hidden] { display: none !important; }
.sv-section button:focus-visible, .sv-section input:focus-visible, .sv-section select:focus-visible,
.sv-dialog button:focus-visible { outline: 3px solid #0075aa; outline-offset: 3px; }
.sv-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.sv-heading h2 { max-width: 18ch; font-size: clamp(27px, 3.1vw, 42px); letter-spacing: -.05em; }
.sv-heading > p { max-width: 34ch; color: #536d80; font-size: 15px; }
.sv-layout { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(0, 1.4fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.sv-controls { display: grid; gap: 17px; }
.sv-controls label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: #20425b; }
.sv-controls input[type="text"], .sv-controls select, .sv-controls input[type="color"] {
  width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #b8d3e1;
  border-radius: 7px; background: #fff; color: #173c59; font: inherit; font-size: 15px;
}
.sv-controls input[type="color"] { padding: 5px; cursor: pointer; }
.sv-controls-row { display: grid; grid-template-columns: minmax(0, 1fr) 94px; gap: 12px; }
.sv-size-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sv-day-choice { display: flex; gap: 5px; width: fit-content; padding: 4px; border-radius: 9px; background: #e6f2f9; }
.sv-day-choice button {
  min-height: 39px; padding: 7px 17px; border: 0; border-radius: 6px;
  background: transparent; color: #35556e; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.sv-day-choice button[aria-pressed="true"] { color: #fff; background: #0b4f78; box-shadow: 0 3px 9px #0b4f7830; }
.sv-day-choice button:not([aria-pressed="true"]):hover { background: #d1eaf6; }
.sv-controls .sv-file {
  padding: 11px 12px 12px; border: 1px dashed #9ec7da; border-radius: 8px;
  background: #f5fbfe; cursor: pointer;
}
.sv-file input { display: block; width: 100%; min-width: 0; font-size: 12px; font-weight: 400; color: #365b72; }
.sv-file input::file-selector-button {
  margin-right: 8px; padding: 7px 9px; border: 1px solid #a5cadb; border-radius: 5px;
  background: #fff; color: #0b5179; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.sv-file span { color: #637b8d; font-size: 11px; font-weight: 400; line-height: 1.4; }
.sv-clear { width: fit-content; margin-top: -10px; padding: 0; border: 0; background: none; color: #0d668f; font: inherit; font-size: 12px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.sv-status { min-height: 2.8em; color: #586f80; font-size: 12px; line-height: 1.45; }
.sv-preview-col { min-width: 0; }
.sv-scene { position: relative; width: 100%; aspect-ratio: 1585 / 1024; margin: 0; overflow: hidden; border-radius: 12px; background: #314051; box-shadow: 0 18px 36px #173e5a2b; isolation: isolate; }
.sv-facade { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease; }
.sv-scene::after { position: absolute; z-index: 1; inset: 0; content: ""; pointer-events: none; opacity: 0; background: linear-gradient(#0b1a4480, #081f4b39 52%, #03132e90); transition: opacity .35s ease; }
.sv-scene[data-mode="night"] .sv-facade { filter: brightness(.42) saturate(.67) contrast(1.13); }
.sv-scene[data-mode="night"]::after { opacity: 1; }
.sv-sign-plane {
  position: absolute; z-index: 2; top: 18.3%; left: 14%; width: 72%; height: 17%;
  display: flex; align-items: center; justify-content: center; gap: 3%;
  padding: 1.2% 2%; color: var(--sv-sign-color, #b8edff); font-family: var(--sv-font, Arial, sans-serif);
  text-align: center;
}
.sv-sign-plane .sv-text { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; font-size: 28px; font-weight: 900; line-height: 1.1; letter-spacing: .035em; }
.sv-logo { display: block; flex: none; max-width: 31%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px #1119); }
.sv-logo-only .sv-logo { max-width: 86%; }
.sv-scene[data-kind="box"] .sv-sign-plane, .sv-scene[data-kind="panel"] .sv-sign-plane {
  background: linear-gradient(125deg, #edf9fcf5, #bedfeaeb);
  color: #164663; border: 1px solid #e4f9ff; border-radius: 2px;
  box-shadow: 0 3px 7px #091a2a80, inset 0 0 15px #fff9;
}
.sv-scene[data-kind="panel"] .sv-sign-plane { height: 14%; top: 20%; border-radius: 3px; }
.sv-scene[data-kind="letters"] .sv-sign-plane .sv-text,
.sv-scene[data-kind="console"] .sv-sign-plane .sv-text { color: #e7f9ff; text-shadow: 1px 2px 0 #0b2d49, 3px 4px 2px #091b2b; }
.sv-scene[data-kind="console"] .sv-sign-plane {
  left: 53%; width: 38%; transform: perspective(500px) rotateY(-19deg);
  border: 2px solid #a9dbe8; border-radius: 4px; background: #1d425c;
  box-shadow: 10px 2px 0 #102a3e, 12px 4px 10px #061829aa;
}
.sv-scene[data-mode="night"] .sv-sign-plane .sv-text { color: var(--sv-sign-color, #b8edff); text-shadow: 0 0 5px var(--sv-sign-color, #b8edff), 0 0 17px var(--sv-sign-color, #b8edff), 0 0 29px #0a7da8; }
.sv-scene[data-mode="night"][data-kind="box"] .sv-sign-plane,
.sv-scene[data-mode="night"][data-kind="panel"] .sv-sign-plane {
  background: linear-gradient(125deg, #b9eafbcb, #5aadd1c9);
  box-shadow: 0 0 10px #6bcfffab, 0 0 28px #53bfff9c, inset 0 0 18px #ddf8ff;
}
.sv-scene[data-mode="night"][data-kind="box"] .sv-sign-plane .sv-text,
.sv-scene[data-mode="night"][data-kind="panel"] .sv-sign-plane .sv-text { color: #fff; text-shadow: 0 0 5px var(--sv-sign-color, #b8edff), 0 0 16px var(--sv-sign-color, #b8edff); }
.sv-scene figcaption {
  position: absolute; z-index: 3; right: 14px; bottom: 13px; left: 14px;
  width: fit-content; max-width: calc(100% - 28px); padding: 7px 10px; border-radius: 5px;
  background: #061d34b8; color: #f0f8fd; font-size: 11px; line-height: 1.35;
}
.sv-preview-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.sv-zoom {
  min-height: 42px; padding: 8px 13px; border: 1px solid #a5c6d7; border-radius: 7px;
  background: #fff; color: #0c597f; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.sv-zoom:hover { background: #e8f5fb; }
.sv-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.sv-price small { color: #637a8c; font-size: 11px; }
.sv-price output { color: #123c5a; font-size: 20px; font-weight: 900; }
.sv-price a { color: #08719f; font-size: 12px; font-weight: 800; text-decoration: none; }
.sv-price a:hover { text-decoration: underline; }
.sv-dialog { width: min(1130px, calc(100vw - 36px)); max-width: none; max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 14px; background: #ecf6fb; color: #163c5a; box-shadow: 0 30px 80px #071e3b75; }
.sv-dialog::backdrop { background: #071b32d9; backdrop-filter: blur(5px); }
.sv-dialog-inner { padding: 14px; }
.sv-dialog .sv-scene { max-height: calc(100vh - 100px); }
.sv-close { display: block; min-height: 36px; margin: 0 0 10px auto; padding: 4px 12px; border: 0; border-radius: 6px; background: #0b4f78; color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
@media (max-width: 820px) {
  .sv-heading { display: block; }
  .sv-heading > p { margin-top: 12px; }
  .sv-layout { grid-template-columns: 1fr; }
  .sv-preview-col { grid-row: 1; }
  .sv-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-controls > label:first-child, .sv-size-controls, .sv-controls-row, .sv-day-choice, .sv-status { grid-column: 1 / -1; }
}
@media (max-width: 530px) {
  .sv-section { margin-inline: -8px; padding: 16px; }
  .sv-controls { grid-template-columns: 1fr; }
  .sv-controls > * { grid-column: 1 / -1; }
  .sv-preview-actions { align-items: start; }
  .sv-price output { font-size: 16px; }
  .sv-scene figcaption { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-facade, .sv-scene::after { transition: none; }
}
