:root {
  --sms-ink: #18181e;
  --sms-muted: #77777d;
  --sms-line: #dedee2;
  --sms-paper: #f4f4f5;
  --sms-white: #fff;
  --sms-danger: #df3f3f;
  --sms-motion-enter: 300ms;
  --sms-motion-exit: 300ms;
  --sms-motion-panel: 300ms;
  --sms-motion-ease: cubic-bezier(.22, 1, .36, 1);
  --sms-tool-motion: 450ms;
  --sms-tool-ease: cubic-bezier(.25, 1, .5, 1);
}

.sms-launch { display: grid; gap: 10px; }
.sms-launch,
.sms-launch * { box-sizing: border-box; }
.sms-product-legal-notice {
  display: grid;
  gap: 4px;
  margin: 2px 0 10px;
  padding: 12px 14px;
  color: var(--sms-muted);
  background: #f7f7f8;
  border-left: 2px solid var(--sms-ink);
  font-size: 11px;
  line-height: 1.55;
}
.sms-product-legal-notice strong {
  color: var(--sms-ink);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sms-product-legal-notice span { display: block; }
.sms-open.button.alt,
.sms-quote-open.button.alt {
  width: 100%;
  min-height: 50px;
  margin: 12px 0;
  padding: 13px 20px;
  color: #fff !important;
  background: var(--sms-ink) !important;
  border: 1px solid var(--sms-ink) !important;
  border-radius: 0;
  box-shadow: none;
  font: 500 11px/1.2 inherit;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  transition: color 300ms ease, background-color 300ms ease, transform 300ms var(--sms-motion-ease);
}
.sms-quote-open.button.alt { display: block !important; }
.sms-open.button.alt:hover,
.sms-open.button.alt:focus,
.sms-quote-open.button.alt:hover,
.sms-quote-open.button.alt:focus-visible {
  color: var(--sms-ink) !important;
  background: #fff !important;
  border-color: var(--sms-ink) !important;
}
.sms-open.button.alt:active,
.sms-quote-open.button.alt:active { transform: translateY(1px); }
.sms-quote-only {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  flex: 0 0 100%;
}
.sms-quote-only .sms-quote-open { width: 100%; min-height: 60px; margin: 0; }
.sms-launch > .sms-quote-open { min-height: 60px; margin: 0; }
form.cart:has(> .sms-quote-only),
.woocommerce-variation-add-to-cart:has(> .sms-quote-only) { flex-wrap: wrap !important; }
.sms-studio-actions,
form.cart:has(> .sms-launch),
.woocommerce-variation-add-to-cart:has(> .sms-launch) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.sms-studio-actions > .sms-launch,
form.cart:has(> .sms-launch) > .sms-launch,
.woocommerce-variation-add-to-cart:has(> .sms-launch) > .sms-launch { min-width: 0; }
.sms-studio-actions .sms-open.button.alt,
form.cart:has(> .sms-launch) .sms-open.button.alt,
.woocommerce-variation-add-to-cart:has(> .sms-launch) .sms-open.button.alt {
  min-height: 60px;
  margin: 0;
}
.sms-studio-actions > .quantity,
.sms-studio-actions > .single_add_to_cart_button,
form.cart:has(> .sms-launch) > .quantity,
form.cart:has(> .sms-launch) > .single_add_to_cart_button,
.woocommerce-variation-add-to-cart:has(> .sms-launch) > .quantity,
.woocommerce-variation-add-to-cart:has(> .sms-launch) > .single_add_to_cart_button { display: none !important; }
.sms-studio-actions > .wcboost-wishlist-single-button,
.sms-studio-actions > .add-to-wishlist-button,
form.cart:has(> .sms-launch) > .wcboost-wishlist-single-button,
form.cart:has(> .sms-launch) > .add-to-wishlist-button,
.woocommerce-variation-add-to-cart:has(> .sms-launch) > .wcboost-wishlist-single-button,
.woocommerce-variation-add-to-cart:has(> .sms-launch) > .add-to-wishlist-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.sms-studio-actions .wcboost-wishlist-button__text,
.sms-studio-actions .add-to-wishlist-button__text,
form.cart:has(> .sms-launch) .wcboost-wishlist-button__text,
form.cart:has(> .sms-launch) .add-to-wishlist-button__text { display: none !important; }
.sms-open.button.alt:disabled,
.sms-open.button.alt:disabled:hover,
.sms-open.button.alt:disabled:focus,
.sms-quote-open.button.alt:disabled,
.sms-quote-open.button.alt:disabled:hover,
.sms-quote-open.button.alt:disabled:focus {
  color: #fff !important;
  background: var(--sms-ink) !important;
  border-color: var(--sms-ink) !important;
  box-shadow: none !important;
  opacity: .38;
  cursor: not-allowed;
  transform: none;
}
body.sms-modal-open,
body.sms-quote-open { overflow: hidden !important; }

.sms-modal[hidden],
.sms-guide[hidden],
.sms-draft-dialog[hidden],
.sms-upload-screen[hidden],
.sms-editor-screen[hidden],
.sms-preview-screen[hidden],
.sms-tool-panel[hidden],
.sms-link-form[hidden],
.sms-file-input[hidden],
.sms-camera-input[hidden] { display: none !important; }
/* Sober tema globalno postavlja bijeli tekst + tamnu pozadinu na button:hover/focus;
   unutar modala to poništavamo kako ostala pravila odlučuju o izgledu. */
.sms-modal button:hover,
.sms-modal button:focus {
  color: inherit;
  background-color: transparent;
  box-shadow: none;
}
.sms-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  color: var(--sms-ink);
  background: var(--sms-white);
  font-family: inherit;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sms-motion-enter) var(--sms-motion-ease);
}
.sms-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sms-modal.is-closing {
  opacity: 0;
  pointer-events: none;
  transition-duration: var(--sms-motion-exit);
}
.sms-modal button,
.sms-modal input,
.sms-modal select { font: inherit; }
.sms-modal button { border-radius: 0; box-shadow: none; }
.sms-modal i.fas,
.sms-modal i.far { font-style: normal; pointer-events: none; }
.sms-modal__surface {
  overflow: hidden;
  transform: translateY(10px) scale(.995);
  transform-origin: center;
  transition: transform var(--sms-motion-enter) var(--sms-motion-ease);
}
.sms-modal.is-open .sms-modal__surface { transform: translateY(0) scale(1); }
.sms-modal.is-closing .sms-modal__surface {
  transform: translateY(6px) scale(.997);
  transition-duration: var(--sms-motion-exit);
}
.sms-modal__surface,
.sms-upload-screen,
.sms-preview-screen,
.sms-editor-screen { width: 100%; height: 100%; }

.sms-modal [data-sms-screen] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--sms-motion-panel) var(--sms-motion-ease),
    transform var(--sms-motion-enter) var(--sms-motion-ease);
}
.sms-modal [data-sms-screen].is-screen-visible {
  opacity: 1;
  transform: translateY(0);
}

.sms-quote-dialog {
  position: fixed;
  z-index: 1000002;
  inset: 0;
  width: min(680px, calc(100vw - 64px));
  max-width: 680px;
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  color: var(--sms-ink);
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
  font-family: inherit;
  overflow: auto;
}
.sms-quote-dialog:not([open]) { display: none !important; }
.sms-quote-dialog::backdrop { background: rgba(0,0,0,.7); }
.sms-quote-dialog button,
.sms-quote-dialog input,
.sms-quote-dialog select,
.sms-quote-dialog textarea { font: inherit; }
.sms-quote-dialog i.fas,
.sms-quote-dialog i.far { font-style: normal; pointer-events: none; }
.sms-quote-card { width: 100%; min-height: 100%; background: #fff; }
.sms-quote-header {
  display: flex;
  min-height: 76px;
  padding: 16px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--sms-line);
}
.sms-quote-header small {
  display: block;
  margin: 0 0 5px;
  color: #8a8a90;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sms-quote-header h2 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; line-height: 1.2; }
.sms-quote-close {
  display: inline-flex;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--sms-ink);
  background: transparent;
  border: 1px solid var(--sms-line);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.sms-quote-close:hover,
.sms-quote-close:focus-visible { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-quote-body { background: #fff; }
.sms-quote-form { padding: 32px 44px 40px; background: #fff; }
.sms-quote-lead { margin: 0 0 26px; color: #68686e; font-size: 14px; line-height: 1.65; }
.sms-quote-form .wpcf7 { margin: 0; }
.sms-quote-form .wpcf7-form > p { margin: 0 0 18px; }
.sms-quote-form label { display: block; color: var(--sms-ink); font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.sms-quote-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.sms-quote-form select,
.sms-quote-form textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 11px 13px;
  color: var(--sms-ink);
  background: #fff;
  border: 1px solid var(--sms-line);
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  transition: border-color 300ms ease;
}
.sms-quote-form textarea { min-height: 112px; resize: vertical; }
.sms-quote-form input:focus,
.sms-quote-form select:focus,
.sms-quote-form textarea:focus { border-color: var(--sms-ink); }
.sms-quote-form input[type="submit"],
.sms-quote-form button[type="submit"] {
  width: 100%;
  height: auto !important;
  min-height: 52px;
  padding: 13px 20px;
  color: #fff;
  background: var(--sms-ink);
  border: 1px solid var(--sms-ink);
  border-radius: 0;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease;
}
.sms-quote-form input[type="submit"]:hover,
.sms-quote-form button[type="submit"]:hover { color: var(--sms-ink); background: #fff; }
.sms-quote-form .wpcf7-spinner { vertical-align: middle; }
.sms-quote-form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 14px; border-width: 1px; font-size: 12px; }
.sms-guide-trigger {
  position: absolute;
  z-index: 32;
  top: 7px;
  right: 56px;
  display: inline-flex;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  color: #65656b;
  background: #fff;
  border: 1px solid var(--sms-line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.sms-guide-trigger:hover,
.sms-guide-trigger:focus-visible { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-draft-dialog {
  position: absolute;
  z-index: 75;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sms-motion-enter) var(--sms-motion-ease);
}
.sms-draft-dialog.is-open { opacity: 1; pointer-events: auto; }
.sms-draft-dialog__backdrop { position: absolute; inset: 0; background: rgba(24, 24, 30, .72); }
.sms-draft-dialog__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 42px 42px 38px;
  color: var(--sms-ink);
  background: #fff;
  border-top: 3px solid var(--sms-ink);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity var(--sms-motion-enter) var(--sms-motion-ease), transform var(--sms-motion-enter) var(--sms-motion-ease);
}
.sms-draft-dialog.is-open .sms-draft-dialog__panel { opacity: 1; transform: translateY(0) scale(1); }
.sms-draft-dialog__eyebrow { display: block; margin-bottom: 12px; color: #85858b; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.sms-draft-dialog h2 { margin: 0 0 13px; font-size: clamp(23px, 3vw, 31px); font-weight: 500; letter-spacing: -.035em; }
.sms-draft-dialog p { margin: 0; color: #66666d; font-size: 13px; line-height: 1.7; }
.sms-draft-dialog__time { display: block; min-height: 17px; margin-top: 8px; color: #98989e; font-size: 9px; letter-spacing: .04em; }
.sms-draft-dialog__actions { display: grid; margin-top: 30px; grid-template-columns: 1fr 1fr; gap: 10px; }
.sms-draft-dialog__actions button { min-height: 48px; padding: 0 17px; border: 1px solid var(--sms-line); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease; }
.sms-draft-discard { color: var(--sms-ink); background: #fff; }
.sms-draft-resume { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: var(--sms-ink); border-color: var(--sms-ink) !important; }
.sms-draft-discard:hover { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-draft-resume:hover { color: #fff; background: #34343b; }
.sms-guide {
  position: absolute;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(.22, 1, .36, 1);
}
.sms-guide.is-open { opacity: 1; pointer-events: auto; }
.sms-guide.is-closing { opacity: 0; transition-duration: 180ms; }
.sms-guide__mask { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; cursor: default; }
.sms-guide__mask-fill { fill: rgba(17, 17, 22, .76); }
.sms-guide__spotlight {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  box-sizing: border-box;
  border: 2px solid #fff;
  outline: 1px solid rgba(20, 20, 24, .92);
  outline-offset: 3px;
  pointer-events: none;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.sms-guide__dialog {
  --sms-guide-x: 12px;
  --sms-guide-y: 12px;
  --sms-guide-arrow: 50%;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: grid;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: visible;
  color: var(--sms-ink);
  background: #fff;
  border: 1px solid var(--sms-ink);
  border-top-width: 3px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translate3d(var(--sms-guide-x), var(--sms-guide-y), 0) scale(.94);
  transition: opacity 200ms cubic-bezier(.22, 1, .36, 1), transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.sms-guide__dialog[data-side='right'] { transform-origin: left center; }
.sms-guide__dialog[data-side='left'] { transform-origin: right center; }
.sms-guide__dialog[data-side='top'] { transform-origin: center bottom; }
.sms-guide__dialog[data-side='bottom'] { transform-origin: center top; }
.sms-guide.is-open .sms-guide__dialog { opacity: 1; transform: translate3d(var(--sms-guide-x), var(--sms-guide-y), 0) scale(1); }
.sms-guide.is-closing .sms-guide__dialog { opacity: 0; transform: translate3d(var(--sms-guide-x), var(--sms-guide-y), 0) scale(.98); transition-duration: 180ms; }
.sms-guide__arrow { position: absolute; z-index: -1; display: block; width: 12px; height: 12px; background: #fff; }
.sms-guide__dialog[data-side='right'] .sms-guide__arrow { top: var(--sms-guide-arrow); left: -7px; border-bottom: 1px solid var(--sms-ink); border-left: 1px solid var(--sms-ink); transform: translateY(-50%) rotate(45deg); }
.sms-guide__dialog[data-side='left'] .sms-guide__arrow { top: var(--sms-guide-arrow); right: -7px; border-top: 1px solid var(--sms-ink); border-right: 1px solid var(--sms-ink); transform: translateY(-50%) rotate(45deg); }
.sms-guide__dialog[data-side='bottom'] .sms-guide__arrow { top: -7px; left: var(--sms-guide-arrow); border-top: 1px solid var(--sms-ink); border-left: 1px solid var(--sms-ink); transform: translateX(-50%) rotate(45deg); }
.sms-guide__dialog[data-side='top'] .sms-guide__arrow { bottom: -7px; left: var(--sms-guide-arrow); border-right: 1px solid var(--sms-ink); border-bottom: 1px solid var(--sms-ink); transform: translateX(-50%) rotate(45deg); }
.sms-guide__header { display: flex; min-height: 46px; padding: 0 8px 0 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid #ededf0; }
.sms-guide__header > span { color: #7d7d84; font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.sms-guide__header b { margin-left: 6px; color: var(--sms-ink); font: 700 9px/1.2 monospace; letter-spacing: .08em; }
.sms-guide__close { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--sms-ink); background: transparent; border: 0; font-size: 14px; cursor: pointer; transition: color 180ms ease, background-color 180ms ease; }
.sms-guide__close:hover,
.sms-guide__close:focus-visible { color: #fff; background: var(--sms-ink); }
.sms-guide__content { display: grid; padding: 22px 22px 21px; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; transition: opacity 120ms ease, transform 120ms cubic-bezier(.22, 1, .36, 1); }
.sms-guide__dialog.is-updating .sms-guide__content { opacity: .35; transform: translateY(4px); }
.sms-guide__icon { display: grid; width: 36px; height: 36px; grid-row: 1 / span 2; place-items: center; color: #fff; background: var(--sms-ink); font-size: 14px; }
.sms-guide__title { margin: 0 0 8px; align-self: center; font-size: 20px; font-weight: 500; line-height: 1.18; letter-spacing: -.025em; }
.sms-guide__text { grid-column: 2; margin: 0; color: #66666d; font-size: 12px; line-height: 1.65; }
.sms-guide__progress { height: 2px; overflow: hidden; background: #e9e9ec; }
.sms-guide__track { display: block; width: 100%; height: 100%; }
.sms-guide__track i { display: block; width: 100%; height: 100%; background: var(--sms-ink); transform: scaleX(.0769); transform-origin: left center; transition: transform 240ms cubic-bezier(.22, 1, .36, 1); }
.sms-guide__footer { display: flex; min-height: 48px; border-top: 0; }
.sms-guide__previous,
.sms-guide__next,
.sms-guide__video { display: inline-flex; min-width: 0; min-height: 48px; padding: 0 18px; flex: 1 1 0; align-items: center; justify-content: center; gap: 9px; color: var(--sms-ink); background: #fff; border: 0; border-right: 1px solid var(--sms-line); text-decoration: none; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: color 180ms ease, background-color 180ms ease, opacity 180ms ease; }
.sms-guide__video { flex: 0 0 auto; }
.sms-guide__next { color: #fff; background: var(--sms-ink); border-right: 0; }
.sms-guide__previous:hover:not(:disabled),
.sms-guide__previous:focus-visible,
.sms-guide__video:hover,
.sms-guide__video:focus-visible { color: #fff; background: var(--sms-ink); }
.sms-guide__next:hover,
.sms-guide__next:focus-visible { color: var(--sms-ink); background: #fff; }
.sms-guide__previous:disabled { opacity: .25; cursor: default; }
.sms-guide-target { scroll-margin: 18px; }.sms-topbar {
  display: flex;
  height: 48px;
  padding: 0 10px 0 16px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--sms-line);
}
.sms-topbar strong { font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.sms-modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--sms-ink);
  background: transparent;
  border: 0;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
}
.sms-modal-close:hover { color: #fff; background: var(--sms-ink); }
.sms-modal-close:focus:not(:hover) { color: var(--sms-ink); background: transparent; }
.sms-modal-close .fa-times,
.sms-editor-header__action--exit .fa-times {
  width: 26px;
  height: 26px;
  font-size: 26px;
}

.sms-upload-screen { background: #fff; }
.sms-upload-content {
  display: flex;
  height: calc(100dvh - 48px);
  padding: 30px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.sms-upload-dropzone {
  display: grid;
  width: min(560px, calc(100vw - 40px));
  min-height: 350px;
  padding: 38px 32px;
  align-content: center;
  justify-items: center;
  gap: 18px;
  background: #fff;
  border: 1px dashed #cdcdcf;
  cursor: pointer;
  transition: border-color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}
.sms-upload-dropzone:hover,
.sms-upload-dropzone.is-dragover {
  background: #fafafa;
  border-color: var(--sms-ink);
  box-shadow: inset 0 0 0 1px var(--sms-ink);
}
.sms-upload-dropzone.is-full { opacity: .55; cursor: default; }
.sms-upload-dropzone > p { margin: 0; color: #9a9aa0; font-size: 12px; }
.sms-upload-dropzone > small { color: #a0a0a5; font-size: 9px; letter-spacing: .025em; }
.sms-upload-privacy {
  width: min(560px, calc(100vw - 40px));
  margin: 11px 0 0;
  color: var(--sms-muted);
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}
.sms-upload-privacy a {
  color: var(--sms-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sms-upload-privacy a:hover,
.sms-upload-privacy a:focus-visible { color: #55555b; }
.sms-upload-illustration {
  position: relative;
  display: block;
  width: 126px;
  height: 104px;
  color: #a7a7ac;
}
.sms-upload-illustration .fa-image {
  position: absolute;
  top: 28px;
  left: 18px;
  font-size: 68px;
  transform: rotate(-8deg);
}
.sms-upload-illustration .fa-images {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 72px;
  transform: rotate(8deg);
}
.sms-upload-illustration .fa-plus {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 55px;
  width: 24px;
  height: 24px;
  color: #fff;
  background: #a7a7ac;
  border-radius: 50%;
  font-size: 11px;
  line-height: 24px;
  text-align: center;
}
.sms-upload-pc {
  display: inline-flex;
  min-width: 204px;
  min-height: 48px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--sms-ink);
  border: 1px solid var(--sms-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}
.sms-upload-pc:hover:not(:disabled) { color: var(--sms-ink); background: #fff; }
.sms-upload-pc:disabled,
.sms-upload-sources button:disabled { cursor: not-allowed; opacity: .35; }
.sms-source-label { margin: 22px 0 12px; color: #96969b; font-size: 11px; }
.sms-upload-sources { display: flex; gap: 10px; }
.sms-upload-sources button {
  display: flex;
  width: 82px;
  min-height: 58px;
  padding: 8px 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  background: var(--sms-ink);
  border: 1px solid var(--sms-ink);
  cursor: pointer;
}
.sms-upload-sources button:hover:not(:disabled) { color: var(--sms-ink); background: #fff; }
.sms-upload-sources i { font-size: 18px; }
.sms-upload-sources small { color: inherit; font-size: 7px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.sms-link-form { width: min(560px, calc(100vw - 40px)); margin-top: 16px; }
.sms-link-form > label { display: block; margin-bottom: 7px; color: var(--sms-muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.sms-link-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; }
.sms-link-form input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--sms-line);
  border-radius: 0;
  box-shadow: none;
  font-size: 11px;
}
.sms-link-form button { min-height: 44px; padding: 0 16px; color: #fff; background: var(--sms-ink); border: 1px solid var(--sms-ink); cursor: pointer; }
.sms-link-form .sms-link-cancel { padding: 0; }
.sms-source-status,
.sms-upload-remaining { width: min(560px, calc(100vw - 40px)); margin: 8px 0 0; color: var(--sms-muted); font-size: 9px; text-align: center; }
.sms-source-status { min-height: 14px; }
.sms-source-status.is-error { color: #aa2d2d; }
.sms-upload-cancel {
  width: min(560px, calc(100vw - 40px));
  min-height: 48px;
  margin-top: 12px;
  color: #55555b;
  background: #efeff0;
  border: 1px solid #efeff0;
  font-size: 11px;
  cursor: pointer;
}
.sms-upload-cancel:hover { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-preview-layout {
  display: grid;
  height: calc(100dvh - 48px);
  grid-template-columns: minmax(520px, 1.08fr) minmax(390px, .92fr);
  gap: clamp(42px, 7vw, 110px);
  padding: clamp(20px, 3vw, 44px) clamp(22px, 4vw, 72px);
  align-items: start;
  overflow: auto;
}
.sms-design-grid {
  display: grid;
  width: 100%;
  max-width: 820px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.sms-design-grid.has-1 { grid-template-columns: minmax(220px, 400px); }
.sms-design-grid.has-2 { grid-template-columns: repeat(2, minmax(220px, 400px)); }
.sms-design-grid.has-3-plus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sms-design-card {
  position: relative;
  min-width: 0;
  aspect-ratio: var(--sms-card-ratio, var(--sms-ratio, 1 / 1));
  overflow: hidden;
  background: #f0f0f1;
  border: 1px solid #d2d2d6;
}
.sms-design-card.is-empty {
  display: grid;
  place-items: center;
  color: var(--sms-muted);
  background: #fafafa;
  border-style: dashed;
  cursor: pointer;
}
.sms-design-card.is-empty:hover { color: var(--sms-ink); border-color: var(--sms-ink); }
.sms-empty-inner { display: grid; gap: 7px; place-items: center; text-align: center; }
.sms-empty-inner span { font-size: 28px; font-weight: 200; line-height: 1; }
.sms-empty-inner small { font-size: 8px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.sms-design-card > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sms-card-safe {
  position: absolute;
  z-index: 1;
  inset: 7px;
  border: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--sms-danger) 0 6px, #fff 6px 12px),
    repeating-linear-gradient(90deg, var(--sms-danger) 0 6px, #fff 6px 12px),
    repeating-linear-gradient(0deg, var(--sms-danger) 0 6px, #fff 6px 12px),
    repeating-linear-gradient(0deg, var(--sms-danger) 0 6px, #fff 6px 12px);
  background-position: top left, bottom left, top left, top right;
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 2px, 2px 100%, 2px 100%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.70);
  pointer-events: none;
}
.sms-card-tools {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.sms-card-tools > div { display: flex; gap: 4px; }
.sms-card-tools button {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  color: #616168;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(24,24,30,.16);
  font-size: 15px;
  cursor: pointer;
  pointer-events: auto;
}
.sms-card-tools button:hover { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-card-quality {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  color: #8a3d00;
  background: #fff4df;
  border: 1px solid #e4a24c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}
.sms-card-format {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  display: inline-flex;
  min-height: 31px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  color: var(--sms-ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(24,24,30,.16);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
}
.sms-card-format:hover { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }

.sms-preview-summary {
  width: min(100%, 430px);
  margin: clamp(100px, 19vh, 230px) auto 0;
}
.sms-kicker { margin: 0 0 5px; color: var(--sms-muted); font-size: 9px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.sms-preview-summary h2 { margin: 0 0 42px; font-size: clamp(21px, 2vw, 27px); font-weight: 500; letter-spacing: -.025em; }
.sms-bleed-note { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.sms-bleed-note > span { position: relative; width: 44px; height: 44px; flex: 0 0 auto; overflow: hidden; background: rgba(0,0,0,.70); }
.sms-bleed-note > span::after {
  position: absolute;
  inset: 7px;
  content: '';
  background-color: #fff;
  background-image:
    repeating-linear-gradient(90deg, var(--sms-danger) 0 4px, #fff 4px 8px),
    repeating-linear-gradient(90deg, var(--sms-danger) 0 4px, #fff 4px 8px),
    repeating-linear-gradient(0deg, var(--sms-danger) 0 4px, #fff 4px 8px),
    repeating-linear-gradient(0deg, var(--sms-danger) 0 4px, #fff 4px 8px);
  background-position: top left, bottom left, top left, top right;
  background-repeat: no-repeat;
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
}
.sms-bleed-note p { margin: 0; color: #414147; font-size: 12px; line-height: 1.5; }
.sms-summary-hint { margin: 0 0 30px; color: #98989d; font-size: 9px; line-height: 1.55; }
.sms-selected { display: block; margin-bottom: 28px; font-size: 12px; font-weight: 600; }
.sms-add-cart {
  display: flex;
  width: 100%;
  min-height: 49px;
  padding: 12px 20px;
  color: #fff;
  background: var(--sms-ink);
  border: 1px solid var(--sms-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.sms-add-cart:hover:not(:disabled) { color: var(--sms-ink); background: #fff; }
.sms-add-cart:disabled { cursor: not-allowed; opacity: .3; }
.sms-add-cart.is-loading:disabled { cursor: wait; opacity: 1; }
.sms-save-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sms-save-spin 700ms linear infinite;
}
.sms-preview-screen.is-saving .sms-design-grid,
.sms-preview-screen.is-saving .sms-modal-close { pointer-events: none; }
@keyframes sms-save-spin {
  to { transform: rotate(360deg); }
}
.sms-upload-status { min-height: 18px; margin: 10px 0 0; color: var(--sms-muted); font-size: 10px; }
.sms-upload-status.is-error { color: #aa2d2d; }

.sms-editor-screen { position: relative; overflow: hidden; background: var(--sms-paper); }
.sms-editor-header {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 60px;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: #fff;
  border-bottom: 1px solid var(--sms-line);
}
.sms-editor-header__action {
  display: inline-flex;
  min-width: 126px;
  height: 60px;
  padding: 0 24px;
  align-items: center;
  gap: 10px;
  color: var(--sms-ink);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease;
}
.sms-editor-header__action--exit { justify-self: start; }
.sms-editor-header__left {
  display: flex;
  height: 60px;
  align-items: stretch;
  justify-self: start;
}
.sms-editor-history { display: flex; height: 60px; border-left: 1px solid var(--sms-line); }
.sms-editor-history button {
  display: grid;
  width: 46px;
  height: 60px;
  padding: 0;
  place-items: center;
  color: var(--sms-ink);
  background: #fff;
  border: 0;
  border-right: 1px solid var(--sms-line);
  font-size: 13px;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease, opacity 300ms ease;
}
.sms-editor-history button:hover:not(:disabled) { color: #fff; background: var(--sms-ink); }
.sms-editor-history button:disabled { color: #bdbdc2; opacity: .55; cursor: default; }
.sms-editor-header__actions {
  display: flex;
  height: 60px;
  align-items: stretch;
  justify-self: end;
}
.sms-draft-status {
  display: inline-flex;
  min-width: 76px;
  padding: 0 12px;
  align-items: center;
  justify-content: flex-end;
  color: #88888f;
  font-size: 8px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.sms-draft-status.is-error { color: #aa2d2d; }
.sms-editor-guide-trigger {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  height: 60px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--sms-line);
  border-radius: 0;
}
.sms-editor-header__action--approve {
  justify-self: auto;
  justify-content: flex-end;
  color: #fff;
  background: var(--sms-ink);
}
.sms-editor-header__action--exit:hover { color: #fff; background: var(--sms-ink); }
.sms-editor-header__action--approve:hover { color: #fff; background: #34343b; }
.sms-editor-header__title {
  display: flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.15;
  text-align: center;
}
.sms-editor-header__title small {
  margin-bottom: 3px;
  color: var(--sms-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sms-editor-header__title strong { color: var(--sms-ink); font-size: 13px; font-weight: 500; }
.sms-modal__surface:has(.sms-editor-screen:not([hidden])) > .sms-guide-trigger { display: none; }
.sms-editor-workspace {
  position: absolute;
  inset: 60px 0 190px;
  display: grid;
  padding: 18px;
  place-items: center;
  overflow: hidden;
  background: #f3f3f4;
  border: 1px solid #d9d9dc;
}
.sms-editor-canvas {
  display: block;
  width: auto;
  height: calc(100dvh - 286px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1200 / 760;
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(24, 24, 30, .38), 0 2px 10px rgba(24, 24, 30, .1);
  transition: width 280ms var(--sms-tool-ease), height 280ms var(--sms-tool-ease), max-height 280ms var(--sms-tool-ease);
  touch-action: none;
  cursor: default;
}
.sms-editor-canvas.is-crop-tool { cursor: move; }
.sms-editor-canvas.is-dragging { cursor: grabbing; }

.sms-tool-panel {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 68px;
  left: 0;
  display: flex;
  height: 122px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--sms-line);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--sms-tool-motion) var(--sms-tool-ease),
    transform var(--sms-tool-motion) var(--sms-tool-ease);
}
.sms-tool-panel.is-panel-visible {
  z-index: 6;
  opacity: 1;
  transform: translateY(0);
}
.sms-tool-panel.is-panel-leaving {
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.sms-crop-actions { display: flex; align-items: center; justify-content: flex-start; justify-content: safe center; gap: 10px; }
.sms-crop-actions > button {
  display: flex;
  width: 64px;
  height: 52px;
  padding: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--sms-ink);
  background: #f5f5f6;
  border: 1px solid transparent;
  cursor: pointer;
}
.sms-crop-actions > button:hover:not(:disabled) { background: #fff; border-color: var(--sms-ink); }
.sms-crop-actions > button:disabled { cursor: not-allowed; opacity: .3; }
.sms-crop-actions button span { font-size: 18px; line-height: 1; }
.sms-crop-actions button small { font-size: 7px; font-weight: 500; text-transform: uppercase; }

.sms-filters { display: flex; width: 100%; max-width: 1100px; gap: 9px; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.sms-adjustments { display: flex; width: 100%; max-width: 1180px; align-items: center; justify-content: flex-start; justify-content: safe center; }
.sms-adjustment-list {
  display: flex;
  width: 100%;
  padding: 4px;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.sms-adjustment-trigger,
.sms-adjustments-reset {
  position: relative;
  display: inline-flex;
  min-width: 108px;
  height: 42px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--sms-ink);
  background: #f4f4f5;
  border: 1px solid transparent;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.sms-adjustment-trigger i,
.sms-adjustments-reset i { width: 17px; font-size: 15px; text-align: center; }
.sms-adjustment-trigger:hover,
.sms-adjustment-trigger:focus-visible,
.sms-adjustments-reset:hover:not(:disabled) { border-color: var(--sms-ink); }
.sms-auto-enhance { color: #fff; background: var(--sms-ink); }
.sms-auto-enhance:hover,
.sms-auto-enhance:focus-visible { color: #fff; background: #34343b; border-color: #34343b; }
.sms-compare-original { touch-action: none; -webkit-user-select: none; user-select: none; }
.sms-compare-original.is-active { color: var(--sms-ink); background: #fff; border-color: var(--sms-ink); }
.sms-filters .sms-compare-original { flex: 0 0 auto; }
.sms-adjustment-trigger.is-changed::after {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 4px;
  height: 4px;
  content: '';
  background: var(--sms-ink);
  border-radius: 50%;
}
.sms-adjustment-trigger[data-adjustment-key="saturation"] i,
.sms-adjustment-trigger[data-adjustment-key="vibrance"] i {
  width: 16px;
  height: 16px;
  color: transparent;
  background: conic-gradient(#ff3131, #ffd21f, #20c866, #1e88ff, #9b3dff, #ff3131);
  border-radius: 50%;
}
.sms-adjustment-trigger[data-adjustment-key="vibrance"] i {
  background: linear-gradient(90deg, #17d8ff, #6f52ff 35%, #ff48b4 68%, #ffd52b);
}
.sms-adjustments-reset:disabled { cursor: not-allowed; opacity: .35; }

@media (min-width: 1025px) {
  .sms-adjustment-list {
    padding: 4px 6px;
    justify-content: flex-start;
    overflow-y: hidden;
  }
  .sms-adjustment-trigger,
  .sms-adjustments-reset {
    box-sizing: border-box;
    width: 108px;
    min-width: 108px;
    height: 60px;
    padding: 7px 8px 6px;
    flex: 0 0 108px;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
    border-radius: 9px;
    line-height: 1;
  }
  .sms-adjustment-trigger i,
  .sms-adjustments-reset i {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    font-size: 20px;
  }
  .sms-adjustment-trigger span,
  .sms-adjustments-reset span {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.sms-tool-panel.is-adjustment-detail {
  bottom: 0;
  height: 190px;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}
.sms-editor-screen.is-adjustment-detail .sms-editor-footer { display: none; }
.sms-adjustments.is-detail { max-width: none; height: 100%; align-items: stretch; }
.sms-adjustment-detail {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) 58px;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 300ms var(--sms-motion-ease),
    transform var(--sms-motion-panel) var(--sms-motion-ease);
}
.sms-adjustment-detail.is-detail-visible {
  opacity: 1;
  transform: translateY(0);
}
.sms-adjustment-ruler {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 30px 18px 10px;
  align-items: center;
}
.sms-adjustment-ruler::before {
  position: absolute;
  z-index: 0;
  top: calc(50% + 9px);
  right: 18px;
  left: 18px;
  height: 17px;
  content: '';
  opacity: .55;
  background: repeating-linear-gradient(90deg, #aaa 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 45%, transparent 45% 100%);
  mask-image: linear-gradient(to bottom, #000 0 45%, transparent 45% 100%);
  pointer-events: none;
}
.sms-adjustment-major-marks {
  position: absolute;
  z-index: 1;
  top: calc(50% + 9px);
  right: 18px;
  left: 18px;
  height: 34px;
  pointer-events: none;
}
.sms-adjustment-major-marks span {
  position: absolute;
  top: 0;
  color: var(--sms-ink);
  transform: translateX(-50%);
}
.sms-adjustment-major-marks span::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 2px;
  height: 20px;
  content: '';
  background: var(--sms-ink);
  transform: translateX(-50%);
}
.sms-adjustment-major-marks .is-middle::before { top: -13px; height: 26px; }
.sms-adjustment-major-marks small {
  position: absolute;
  top: 13px;
  left: 50%;
  font-size: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  transform: translateX(-50%);
}
.sms-adjustment-major-marks .is-start { transform: none; }
.sms-adjustment-major-marks .is-start::before { left: 0; transform: none; }
.sms-adjustment-major-marks .is-start small { left: 0; transform: none; }
.sms-adjustment-major-marks .is-end { transform: translateX(-100%); }
.sms-adjustment-major-marks .is-end::before { right: 0; left: auto; transform: none; }
.sms-adjustment-major-marks .is-end small { right: 0; left: auto; transform: none; }
.sms-adjustment-readout {
  position: absolute;
  z-index: 3;
  top: 10px;
  min-width: 84px;
  padding: 5px 9px;
  color: #fff;
  background: var(--sms-ink);
  font-size: 8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.sms-adjustment-readout::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  content: '';
  border: 4px solid transparent;
  border-top-color: var(--sms-ink);
  transform: translateX(-50%);
}
.sms-adjustment-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 46px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.sms-adjustment-slider::-webkit-slider-runnable-track { height: 1px; background: #c9c9cc; }
.sms-adjustment-slider::-moz-range-track { height: 1px; background: #c9c9cc; border: 0; }
.sms-adjustment-slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--sms-ink);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff;
  transition: box-shadow 300ms ease, transform 300ms ease;
}
.sms-adjustment-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--sms-ink);
  border: 5px solid #fff;
  border-radius: 50%;
  box-sizing: content-box;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.sms-adjustment-slider:active::-webkit-slider-thumb { transform: scale(.92); }
.sms-adjustment-slider:active::-moz-range-thumb { transform: scale(.92); }
.sms-adjustment-slider:focus-visible { outline: 0; }
.sms-adjustment-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px #fff, 0 0 0 7px #77777d; }
.sms-adjustment-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px #77777d; }
.sms-adjustment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--sms-line);
}
.sms-adjustment-actions button {
  min-width: 120px;
  height: 58px;
  padding: 0 18px;
  color: var(--sms-muted);
  background: #fff;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}
.sms-adjustment-actions .sms-adjustment-apply { color: var(--sms-ink); }
.sms-adjustment-actions button:hover { color: #fff; background: var(--sms-ink); }
.sms-filter {
  position: relative;
  width: 72px;
  min-width: 72px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  background: #eee center/cover no-repeat;
  border: 2px solid transparent;
  cursor: pointer;
}
.sms-filter::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px 2px;
  color: #fff;
  content: attr(data-label);
  background: rgba(0,0,0,.55);
  font-size: 7px;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.sms-filter.is-active { border-color: var(--sms-ink); }
.sms-filter-item {
  position: relative;
  width: 72px;
  min-width: 72px;
  height: 78px;
}
.sms-filter-item .sms-filter { width: 100%; min-width: 0; }
.sms-filter-strength-trigger {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  display: flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--sms-ink);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(24,24,30,.26);
  box-shadow: 0 2px 8px rgba(24,24,30,.18);
  cursor: pointer;
}
.sms-filter-strength-trigger i { font-size: 13px; }
.sms-filter-strength-trigger:hover,
.sms-filter-strength-trigger:focus-visible { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-tool-panel.is-filter-detail {
  bottom: 0;
  height: 190px;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}
.sms-editor-screen.is-filter-detail .sms-editor-footer { display: none; }
.sms-tool-panel.is-zoom-detail {
  bottom: 0;
  height: 190px;
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}
.sms-editor-screen.is-zoom-detail .sms-editor-footer,
.sms-tool-panel.is-zoom-detail .sms-crop-actions { display: none; }
.sms-tool-panel.is-zoom-detail .sms-editor-format-switch--toolbar { display: none !important; }
.sms-zoom-detail { width: 100%; }
.sms-filters.is-detail { max-width: none; height: 100%; overflow: hidden; align-items: stretch; }
.sms-filter-strength-detail { width: 100%; }

.sms-text-tools {
  display: flex;
  width: 100%;
  max-width: 1180px;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  gap: 7px;
  overflow-x: auto;
  white-space: nowrap;
}
.sms-add-text,
.sms-delete-text {
  min-width: 96px;
  height: 38px;
  padding: 0 11px;
  color: var(--sms-ink);
  background: transparent;
  border: 1px solid transparent;
  font-size: 9px;
  cursor: pointer;
}
.sms-add-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sms-delete-text { width: 38px; min-width: 38px; padding: 0; font-size: 16px; }
.sms-add-text:hover,
.sms-add-text:focus-visible,
.sms-delete-text:hover,
.sms-delete-text:focus-visible { border-color: var(--sms-ink); }
.sms-text-value {
  width: 132px;
  min-width: 120px;
  height: 34px;
  padding: 7px 9px;
  color: var(--sms-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sms-line);
}
.sms-text-font {
  width: 128px;
  min-width: 128px;
  height: 34px;
  padding: 5px 8px;
  color: var(--sms-ink);
  background: #fff;
  border: 1px solid var(--sms-line);
}
.sms-text-font option[value="Arial"] { font-family: Arial, sans-serif; }
.sms-text-font option[value="Georgia"] { font-family: Georgia, serif; }
.sms-text-font option[value="Courier New"] { font-family: "Courier New", monospace; }
.sms-text-font option[value="Pacifico"] { font-family: Pacifico, cursive; }
.sms-text-font option[value="Lobster"] { font-family: Lobster, cursive; }
.sms-text-font option[value="Caveat"] { font-family: Caveat, cursive; }
.sms-text-font option[value="Oswald"] { font-family: Oswald, sans-serif; }
.sms-text-font option[value="Playfair Display"] { font-family: "Playfair Display", serif; }
.sms-modal .sms-text-value:focus,
.sms-modal .sms-text-value:focus-visible,
.sms-modal .sms-text-font:focus,
.sms-modal .sms-text-font:focus-visible {
  outline: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.sms-text-style { display: flex; }
.sms-text-style button {
  width: 30px;
  height: 34px;
  padding: 0;
  color: var(--sms-ink);
  background: #fff;
  border: 1px solid var(--sms-line);
  border-right: 0;
  cursor: pointer;
}
.sms-text-style button:last-child { border-right: 1px solid var(--sms-line); }
.sms-text-style button.is-active { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-text-appearance {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.sms-text-colors { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.sms-text-colors button {
  width: 22px;
  height: 22px;
  padding: 0;
  background: var(--sms-color);
  border: 1px solid #aaa;
  border-radius: 5px;
  cursor: pointer;
}
.sms-text-colors button.is-active { outline: 2px solid var(--sms-ink); outline-offset: 2px; }
.sms-text-custom-color {
  position: relative;
  display: block;
  width: 22px;
  min-width: 22px;
  height: 22px;
  cursor: pointer;
}
.sms-text-color-picker { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sms-text-custom-color span {
  display: block;
  width: 22px;
  height: 22px;
  background: conic-gradient(#ff3131, #ffd21f, #20c866, #1e88ff, #9b3dff, #ff3131);
  border: 1px solid #aaa;
  border-radius: 5px;
}
.sms-text-custom-color.is-active span { outline: 2px solid var(--sms-ink); outline-offset: 2px; }
.sms-text-opacity {
  display: flex;
  width: 154px;
  min-width: 154px;
  height: 34px;
  align-items: center;
  gap: 8px;
  color: var(--sms-muted);
}
.sms-text-opacity i { font-size: 15px; }
.sms-text-opacity-input {
  width: 92px;
  height: 16px;
  margin: 0;
  padding: 0 !important;
  appearance: none;
  background: transparent;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.sms-text-opacity-input::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--sms-ink) 0 var(--sms-text-opacity, 100%), #d7d7da var(--sms-text-opacity, 100%) 100%);
  border-radius: 999px;
}
.sms-text-opacity-input::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  appearance: none;
  background: var(--sms-ink);
  border: 0;
  border-radius: 50%;
}
.sms-text-opacity-input::-moz-range-track {
  height: 4px;
  background: #d7d7da;
  border-radius: 999px;
}
.sms-text-opacity-input::-moz-range-progress {
  height: 4px;
  background: var(--sms-ink);
  border-radius: 999px;
}
.sms-text-opacity-input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: var(--sms-ink);
  border: 0;
  border-radius: 50%;
}
.sms-text-opacity-value {
  min-width: 32px;
  color: var(--sms-muted);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.sms-editor-footer {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 68px;
  grid-template-columns: 1fr;
  background: #fff;
  border-top: 1px solid var(--sms-line);
}
.sms-editor-tabs { display: flex; grid-column: 1; grid-row: 1; align-items: stretch; justify-content: center; }
.sms-editor-tabs button {
  display: flex;
  min-width: 76px;
  padding: 8px 12px 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #7e7e84;
  background: #fff;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.sms-editor-tabs button span { font-size: 17px; line-height: 1; }
.sms-editor-tabs button small { font-size: 7px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.sms-editor-tabs button.is-active { color: var(--sms-ink); border-bottom-color: var(--sms-ink); }

.sms-modal button:focus-visible,
.sms-modal input:focus-visible,
.sms-modal select:focus-visible { outline: 2px solid var(--sms-ink); outline-offset: 2px; }

@media (max-width: 1024px) {
  .sms-preview-layout { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 48px); gap: 28px; }
  .sms-editor-canvas { height: calc(100dvh - 266px); }
  .sms-design-grid { max-width: none; }
  .sms-preview-summary { width: 100%; max-width: 620px; margin: 0 auto; padding-bottom: 30px; }
  .sms-preview-summary h2 { margin-bottom: 22px; }
  .sms-summary-hint { margin-bottom: 20px; }
  .sms-editor-workspace { padding: 8px; }
}

@media (max-width: 1024px) {
  .sms-draft-dialog { padding: 10px; }
  .sms-draft-dialog__panel { padding: 30px 24px 24px; }
  .sms-draft-dialog__actions { grid-template-columns: 1fr; }
  .sms-guide__dialog { width: min(340px, calc(100% - 20px)); max-height: calc(100% - 20px); }
  .sms-guide__content { padding: 18px; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
  .sms-guide__icon { width: 32px; height: 32px; font-size: 13px; }
  .sms-guide__title { font-size: 18px; }
  .sms-guide__text { font-size: 11px; line-height: 1.55; }
  .sms-guide__previous,
  .sms-guide__next,
  .sms-guide__video { min-height: 44px; padding: 0 12px; }
  .sms-guide__video span { display: none; }
}
@media (max-width: 1024px) {
  .sms-guide-trigger { right: 50px; width: 36px; padding: 0; justify-content: center; }
  .sms-guide-trigger span { display: none; }
  .sms-upload-content { min-height: calc(100dvh - 48px); height: auto; padding: 22px 14px; justify-content: flex-start; }
  .sms-upload-dropzone { width: 100%; min-height: 270px; padding: 28px 18px; }
  .sms-link-form,
  .sms-source-status,
  .sms-upload-remaining,
  .sms-upload-cancel { width: 100%; }
  .sms-preview-layout { padding: 14px; }
  .sms-editor-canvas { height: calc(100dvh - 264px); }
  .sms-design-grid,
  .sms-design-grid.has-1,
  .sms-design-grid.has-2,
  .sms-design-grid.has-3-plus { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .sms-design-grid.has-1 { grid-template-columns: minmax(0, 1fr); }
  .sms-card-tools { right: 10px; bottom: 10px; left: 10px; }
  .sms-card-tools > div { gap: 8px; }
  .sms-card-tools button {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    font-size: 24px;
  }
  .sms-card-format { min-height: 42px; padding: 0 13px; gap: 9px; border-radius: 10px; }
  .sms-card-format i { font-size: 20px; }
  .sms-modal-close,
  .sms-quote-close { width: 46px; height: 46px; font-size: 24px; }
  .sms-preview-summary h2 { font-size: 20px; }
  .sms-bleed-note { margin-bottom: 18px; }
  .sms-tool-panel { height: 142px; bottom: 60px; padding: 10px; justify-content: flex-start; overflow-x: auto; }
  .sms-editor-header { height: 54px; grid-template-columns: 1fr auto 1fr; }
  .sms-editor-header__action { min-width: 92px; height: 54px; padding: 0 14px; gap: 7px; font-size: 9px; }
  .sms-editor-header__left,
  .sms-editor-history { height: 54px; }
  .sms-editor-header__action--exit { min-width: 68px; padding: 0 10px; }
  .sms-editor-header__action--approve { min-width: 76px; padding: 0 11px; }
  .sms-editor-history button { width: 34px; height: 54px; }
  .sms-draft-status { display: none; }
  .sms-editor-header__actions,
  .sms-editor-guide-trigger { height: 54px; }
  .sms-editor-header__title { min-width: 90px; }
  .sms-editor-header__title small { display: none; }
  .sms-editor-header__title strong { font-size: 11px; }
  .sms-editor-workspace { inset: 54px 0 202px; padding: 4px; }
  .sms-editor-footer { height: 60px; grid-template-columns: 1fr; }
  .sms-editor-tabs button { min-width: 52px; padding-right: 5px; padding-left: 5px; }
  .sms-editor-tabs button small { font-size: 6px; }
  .sms-crop-actions { min-width: 290px; justify-content: flex-start; }
  .sms-adjustment-list,
  .sms-filters,
  .sms-text-tools { min-width: max-content; justify-content: flex-start; }
  .sms-adjustments { min-width: 0; overflow: hidden; }
  .sms-tool-panel.is-adjustment-detail { bottom: 0; height: 202px; padding: 0; overflow: hidden; }
  .sms-tool-panel.is-filter-detail { bottom: 0; height: 202px; padding: 0; overflow: hidden; }
  .sms-tool-panel.is-zoom-detail { bottom: 0; height: 202px; padding: 0; overflow: hidden; }
  .sms-adjustments.is-detail { width: 100%; height: 100%; min-width: 0; }
  .sms-filters.is-detail { width: 100%; height: 100%; min-width: 0; }
  .sms-adjustment-ruler { padding-right: 12px; padding-left: 12px; }
  .sms-adjustment-ruler::before { right: 12px; left: 12px; }
  .sms-adjustment-major-marks { right: 12px; left: 12px; }
  .sms-adjustment-actions button { min-width: 96px; }
  .sms-text-tools { padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .sms-modal *, .sms-modal *::before, .sms-modal *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Studio editor layout 3.10.1 */
.sms-editor-screen {
  --sms-editor-header-height: 72px;
  --sms-editor-rail-width: 219px;
  --sms-editor-inspector-width: 281px;
  --sms-editor-tool-height: 84px;
  --sms-editor-footer-height: 78px;
}
.sms-editor-header {
  height: var(--sms-editor-header-height);
  grid-template-columns: minmax(230px, 1fr) auto minmax(360px, 1fr);
}
.sms-editor-header__left,
.sms-editor-header__actions,
.sms-editor-history { height: var(--sms-editor-header-height); }
.sms-editor-header__action,
.sms-editor-history button,
.sms-editor-guide-trigger { height: var(--sms-editor-header-height); }
.sms-editor-header__title { min-width: 240px; }
.sms-editor-header__title small { margin-bottom: 5px; letter-spacing: .22em; }
.sms-editor-header__title strong { font-size: 15px; }
.sms-editor-header__action--approve { justify-content: center; }
.sms-editor-body {
  position: absolute;
  inset: var(--sms-editor-header-height) 0 0;
  display: grid;
  min-width: 0;
  grid-template-columns: var(--sms-editor-rail-width) minmax(0, 1fr) var(--sms-editor-inspector-width);
  overflow: hidden;
  background: #f6f6f7;
}
.sms-editor-rail,
.sms-editor-inspector {
  position: relative;
  z-index: 4;
  min-width: 0;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.sms-editor-screen.is-screen-visible .sms-editor-rail,
.sms-editor-screen.is-screen-visible .sms-editor-inspector {
  opacity: 1;
  transform: translateY(0);
}
.sms-editor-rail {
  display: flex;
  padding: 22px 16px 18px;
  flex-direction: column;
  border-right: 1px solid var(--sms-line);
}
.sms-editor-rail__heading {
  padding: 0 5px 17px;
  border-bottom: 1px solid var(--sms-line);
}
.sms-editor-rail__heading small,
.sms-editor-inspector__heading small {
  display: block;
  margin-bottom: 5px;
  color: var(--sms-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sms-editor-rail__heading strong,
.sms-editor-inspector__heading strong {
  color: var(--sms-ink);
  font-size: 14px;
  font-weight: 600;
}
.sms-editor-magnets {
  display: grid;
  min-height: 0;
  padding: 12px 0;
  align-content: start;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
}
.sms-editor-magnet-item { display: block; min-width: 0; }
.sms-editor-magnet {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 9px;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: var(--sms-ink);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 300ms ease, border-color 300ms ease;
}
.sms-editor-magnet:hover,
.sms-editor-magnet:focus-visible { color: var(--sms-ink); background: #f7f7f8; border-color: #d8d8dc; }
.sms-editor-magnet.is-active { color: var(--sms-ink); background: #f7f7f8; border-color: var(--sms-ink); }
.sms-editor-magnet img {
  display: block;
  width: 62px;
  max-height: 84px;
  aspect-ratio: var(--sms-editor-thumb-ratio, 65 / 90);
  object-fit: cover;
  background: #ececef;
}
.sms-editor-magnet > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.sms-editor-magnet strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sms-editor-magnet small { color: var(--sms-muted); font-size: 9px; white-space: nowrap; }
.sms-editor-add-magnet {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sms-ink);
  background: #fff;
  border: 1px solid var(--sms-line);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.sms-editor-add-magnet:hover:not(:disabled) { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-editor-add-magnet:disabled { color: #aaaab0; cursor: not-allowed; opacity: .55; }
.sms-editor-workspace {
  position: relative;
  inset: auto;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: 22px 22px calc(var(--sms-editor-tool-height) + var(--sms-editor-footer-height) + 22px);
  place-items: center;
  overflow: hidden;
  background: #f5f5f6;
  border: 0;
}
.sms-editor-canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.sms-editor-inspector {
  padding: 30px 28px;
  border-left: 1px solid var(--sms-line);
}
.sms-editor-inspector__heading { padding-bottom: 22px; }
.sms-editor-inspector__heading strong { font-size: 16px; letter-spacing: .01em; }
.sms-editor-inspector__data { margin: 0; }
.sms-editor-inspector__data > div {
  padding: 20px 0;
  border-top: 1px solid var(--sms-line);
}
.sms-editor-inspector__data dt { margin-bottom: 7px; color: var(--sms-ink); font-size: 11px; font-weight: 600; }
.sms-editor-inspector__data dd { margin: 0; color: #626269; font-size: 14px; font-variant-numeric: tabular-nums; }
.sms-editor-format-label { display: block; }
.sms-editor-format-switch {
  display: flex;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--sms-line);
}
.sms-editor-format-switch button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  flex: 1 1 50%;
  color: #626269;
  background: #fff;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease;
}
.sms-editor-format-switch button + button { border-left: 1px solid var(--sms-line); }
.sms-editor-format-switch button:hover { color: var(--sms-ink); background: #f5f5f6; }
.sms-editor-format-switch button.is-active { color: #fff; background: var(--sms-ink); }
.sms-editor-format-switch--toolbar { display: none; width: 180px; min-width: 180px; margin: 0 12px 0 0; }
.sms-editor-quality.is-low { color: #aa2d2d; font-weight: 600; }
.sms-editor-inspector__3d {
  display: inline-flex;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--sms-ink);
  background: #fff;
  border: 1px solid var(--sms-ink);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease;
}
.sms-editor-inspector__3d { width: 100%; }
.sms-editor-inspector__3d:hover { color: #fff; background: var(--sms-ink); }
.sms-editor-delete-magnet {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #8b2f2f;
  background: #fff;
  border: 1px solid #decaca;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.sms-editor-delete-magnet:hover:not(:disabled) { color: #fff; background: #9f3030; border-color: #9f3030; }
.sms-editor-delete-magnet:disabled { cursor: not-allowed; opacity: .35; }
.sms-editor-delete-magnet--toolbar { display: none !important; }
.sms-editor-inspector .sms-editor-inspector__3d,
.sms-editor-inspector > .sms-editor-delete-magnet { font-size: 11px; }
.sms-editor-inspector__hint { margin: 28px 0 0; color: var(--sms-muted); font-size: 10px; line-height: 1.6; }
.sms-tool-panel {
  right: var(--sms-editor-inspector-width);
  bottom: var(--sms-editor-footer-height);
  left: var(--sms-editor-rail-width);
  height: var(--sms-editor-tool-height);
  padding: 10px 18px;
}
.sms-crop-actions { gap: 0; }
.sms-crop-actions > button {
  width: 84px;
  height: 54px;
  padding: 5px 12px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--sms-line);
}
.sms-crop-actions > button:first-child { border-left: 1px solid var(--sms-line); }
.sms-crop-actions > button:hover:not(:disabled) { color: #fff; background: var(--sms-ink); border-color: var(--sms-ink); }
.sms-editor-footer {
  right: var(--sms-editor-inspector-width);
  left: var(--sms-editor-rail-width);
  height: var(--sms-editor-footer-height);
}
.sms-editor-tabs { width: 100%; }
.sms-editor-tabs button {
  min-width: 104px;
  padding: 10px 18px 7px;
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.sms-editor-tabs button:hover { color: var(--sms-ink); background: #fafafa; }
.sms-editor-tabs button span { font-size: 18px; }
.sms-editor-tabs button small { font-size: 7px; letter-spacing: .09em; }
.sms-tool-panel.is-adjustment-detail,
.sms-tool-panel.is-filter-detail,
.sms-tool-panel.is-zoom-detail {
  right: var(--sms-editor-inspector-width);
  bottom: 0;
  left: var(--sms-editor-rail-width);
  height: 190px;
}
.sms-editor-screen.is-adjustment-detail .sms-editor-workspace,
.sms-editor-screen.is-filter-detail .sms-editor-workspace,
.sms-editor-screen:has(.sms-tool-panel.is-zoom-detail) .sms-editor-workspace { padding-bottom: 212px; }
.sms-editor-screen .sms-adjustment-list,
.sms-editor-screen .sms-filters,
.sms-editor-screen .sms-text-tools { max-width: min(1180px, calc(100vw - var(--sms-editor-rail-width) - var(--sms-editor-inspector-width) - 40px)); }

@media (max-width: 1180px) {
  .sms-editor-screen {
    --sms-editor-rail-width: 198px;
    --sms-editor-inspector-width: 249px;
  }
  .sms-editor-header { grid-template-columns: minmax(190px, 1fr) auto minmax(300px, 1fr); }
  .sms-editor-header__action { min-width: 106px; padding-right: 17px; padding-left: 17px; }
  .sms-editor-guide-trigger { padding-right: 13px; padding-left: 13px; }
  .sms-editor-rail { padding-right: 10px; padding-left: 10px; }
  .sms-editor-magnet { grid-template-columns: 44px minmax(0, 1fr); gap: 7px; }
  .sms-editor-magnet img { width: 44px; max-height: 62px; }
  .sms-editor-inspector { padding-right: 20px; padding-left: 20px; }
  .sms-editor-tabs button { min-width: 86px; padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 960px) {
  .sms-editor-screen { --sms-editor-rail-width: 118px; --sms-editor-inspector-width: 0px; }
  .sms-editor-inspector { display: none; }
  .sms-editor-header { grid-template-columns: minmax(180px, 1fr) auto minmax(265px, 1fr); }
  .sms-editor-header__title { min-width: 190px; }
  .sms-editor-workspace { padding-right: 14px; padding-left: 14px; }
  .sms-tool-panel[data-panel="crop"] { justify-content: flex-start; overflow-x: auto; }
  .sms-editor-format-switch--toolbar { display: flex; }
  .sms-editor-delete-magnet--toolbar { display: flex !important; width: 72px; margin-top: 0; padding: 5px 8px; color: #8b2f2f; border-color: var(--sms-line); }
  .sms-editor-tabs button { min-width: 78px; }
}

/* Telefoni (do 640 px) i tableti (641–1024 px) koriste isti canvas-first editor. */
@media (max-width: 1024px) {
  .sms-editor-screen {
    --sms-editor-header-height: 54px;
    --sms-editor-rail-width: 0px;
    --sms-editor-inspector-width: 0px;
    --sms-editor-tool-height: 116px;
    --sms-editor-footer-height: 68px;
  }
  .sms-editor-header { height: 54px; grid-template-columns: 1fr auto 1fr; }
  .sms-editor-header__left,
  .sms-editor-header__actions,
  .sms-editor-history,
  .sms-editor-header__action,
  .sms-editor-history button,
  .sms-editor-guide-trigger { height: 54px; }
  .sms-editor-header__action { min-width: 58px; padding: 0 10px; font-size: 11px; }
  .sms-editor-header__action--exit {
    width: 54px;
    min-width: 54px;
    padding: 0;
    justify-content: center;
  }
  .sms-editor-header__action--exit i { font-size: 26px; }
  .sms-editor-guide-trigger {
    width: 54px;
    min-width: 54px;
    padding: 0;
    justify-content: center;
  }
  .sms-editor-guide-trigger i { font-size: 25px; }
  .sms-editor-header__action--exit span,
  .sms-editor-header__action--approve i { display: none; }
  .sms-editor-header__title { min-width: 126px; }
  .sms-editor-header__title strong { font-size: 14px; }
  .sms-editor-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: 122px minmax(0, 1fr); }
  .sms-editor-rail {
    display: grid;
    padding: 7px 10px;
    grid-template-columns: minmax(0, 1fr) 46px;
    grid-template-rows: auto 86px;
    border-right: 0;
    border-bottom: 1px solid var(--sms-line);
  }
  .sms-editor-rail__heading {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 0 2px 7px;
    border-bottom: 0;
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .sms-editor-rail__heading small { margin: 0; font-size: 11px; letter-spacing: .12em; }
  .sms-editor-rail__heading strong { font-size: 14px; }
  .sms-editor-magnets { grid-column: 1; grid-row: 2; }
  .sms-editor-add-magnet { grid-column: 2; grid-row: 2; }
  .sms-editor-magnets { display: flex; padding: 0; gap: 7px; overflow-x: auto; overflow-y: hidden; }
  .sms-editor-magnets.has-overflow::after {
    content: "";
    position: sticky;
    right: 0;
    flex: 0 0 20px;
    width: 20px;
    margin-left: -20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%);
    pointer-events: none;
  }
  .sms-editor-magnets.has-overflow.is-at-end::after { display: none; }
  .sms-editor-magnet-item { width: 94px; min-width: 94px; flex-shrink: 0; }
  .sms-editor-magnet {
    width: 100%;
    height: 86px;
    min-height: 0;
    padding: 5px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 42px auto auto;
    gap: 2px;
    align-content: start;
  }
  .sms-editor-magnet img { width: 100%; height: 42px; max-height: none; object-fit: cover; }
  .sms-editor-magnet strong { font-size: 11px; }
  .sms-editor-magnet small { font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
  .sms-editor-add-magnet { width: 42px; height: 86px; min-height: 0; align-self: start; margin: 0 0 0 4px; padding: 0; font-size: 18px; }
  .sms-editor-add-magnet span { display: none; }
  .sms-editor-workspace {
    grid-row: 2;
    padding: 8px 8px calc(var(--sms-editor-tool-height) + var(--sms-editor-footer-height) + 8px);
  }
  .sms-editor-canvas.is-mobile-crop-focus {
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
  .sms-tool-panel { padding: 8px 10px; justify-content: flex-start; overflow-x: auto; }
  .sms-tool-panel[data-panel="crop"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 40px 56px;
    align-content: center;
    gap: 6px;
    overflow: hidden;
  }
  .sms-editor-format-switch--toolbar { display: flex; width: 100%; min-width: 0; margin: 0; }
  .sms-editor-format-switch button { min-height: 40px; font-size: 12px; }
  .sms-crop-actions {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
  }
  .sms-crop-actions > button {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 5px 2px;
    flex: none;
  }
  .sms-crop-actions button span { font-size: 25px; }
  .sms-crop-actions button small { font-size: 10px; letter-spacing: .02em; }
  .sms-editor-delete-magnet--toolbar {
    display: flex !important;
    width: 100%;
    margin-top: 0;
    color: #8b2f2f;
    border-color: var(--sms-line);
  }
  .sms-adjustment-trigger,
  .sms-adjustments-reset { min-width: 124px; height: 48px; font-size: 10px; }
  .sms-filter,
  .sms-filter-item { width: 84px; min-width: 84px; height: 88px; }
  .sms-filter::after { padding: 5px 3px; font-size: 9px; }
  .sms-add-text { min-width: 112px; height: 44px; font-size: 11px; }
  .sms-delete-text { width: 44px; min-width: 44px; height: 44px; }
  .sms-text-value,
  .sms-text-font { height: 44px; font-size: 16px; }
  .sms-editor-footer { height: 68px; }
  .sms-editor-tabs { overflow-x: hidden; justify-content: center; }
  .sms-editor-tabs button { min-width: 0; padding: 6px 4px 4px; flex: 1 1 0; }
  .sms-editor-tabs button span { font-size: 24px; }
  .sms-editor-tabs button small { font-size: 10px; line-height: 1.15; letter-spacing: .02em; }
  .sms-tool-panel.is-adjustment-detail,
  .sms-tool-panel.is-filter-detail,
  .sms-tool-panel.is-zoom-detail { right: 0; bottom: 0; left: 0; height: 202px; }
  .sms-editor-screen.is-adjustment-detail .sms-editor-workspace,
  .sms-editor-screen.is-filter-detail .sms-editor-workspace,
  .sms-editor-screen:has(.sms-tool-panel.is-zoom-detail) .sms-editor-workspace { padding-bottom: 210px; }
  .sms-editor-screen .sms-adjustment-list,
  .sms-editor-screen .sms-filters,
  .sms-editor-screen .sms-text-tools { max-width: none; }
}

@media (max-width: 470px) {
  .sms-editor-history { display: none; }
  .sms-editor-guide-trigger { width: 52px; min-width: 52px; padding: 0; }
  .sms-editor-header__action--approve { min-width: 64px; }
  .sms-editor-header__title { min-width: 118px; }
}

/* Na telefonu su korekcije jedan vodoravni touch red koji se pomiče prstom. */
@media (max-width: 640px) {
  .sms-tool-panel[data-panel="adjust"]:not(.is-adjustment-detail) {
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
  }
  .sms-tool-panel[data-panel="adjust"]:not(.is-adjustment-detail) .sms-adjustments {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 10px;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .sms-tool-panel[data-panel="adjust"]:not(.is-adjustment-detail) .sms-adjustments::-webkit-scrollbar { display: none; }
  .sms-tool-panel[data-panel="adjust"]:not(.is-adjustment-detail) .sms-adjustment-list {
    width: max-content;
    min-width: 100%;
    padding: 4px 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .sms-tool-panel[data-panel="adjust"]:not(.is-adjustment-detail) .sms-adjustment-trigger,
  .sms-tool-panel[data-panel="adjust"]:not(.is-adjustment-detail) .sms-adjustments-reset { flex: 0 0 auto; }
}

@media (max-width: 1024px) {
  .sms-quote-dialog { width: 100vw; max-width: none; max-height: 100dvh; min-height: 100dvh; margin: 0; }
  .sms-quote-header { min-height: 70px; padding: 14px 18px; }
  .sms-quote-header h2 { font-size: 19px; }
  .sms-quote-form { padding: 28px 20px 40px; }
  .sms-quote-lead { margin-bottom: 24px; }
}
