.omni-xxl, .omni-xxl__dialog {
  --ox-ink: #1d2b43;
  --ox-muted: #58667a;
  --ox-line: #d9e1eb;
  --ox-blue: #2457ca;
  --ox-blue-dark: #173f9f;
  --ox-surface: #f4f7fc;
  color: var(--ox-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
}
.omni-xxl *, .omni-xxl__dialog * { box-sizing: border-box; }
.omni-xxl { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); align-items: start; margin: 28px auto; max-width: 1150px; }
.omni-xxl__preview { flex: 4 1 420px; min-width: 0; padding: clamp(8px, 1vw, 12px); border: 1px solid #dedede; border-radius: 5px; background: #efefef; }
.omni-xxl__preview img { display: block; width: 100%; height: auto; background: white; border-radius: 5px; box-shadow: 0 4px 20px #223b5a12; }
.omni-xxl__actions { flex: 1 1 230px; min-width: 0; padding-top: clamp(5px, 2vw, 24px); display: grid; gap: 12px; }
.omni-xxl__intro { margin-bottom: 10px; }
.omni-xxl__eyebrow { display: block; color: #315cb2; font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.3; }
.omni-xxl__intro strong { display: block; margin: 8px 0 3px; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.2; letter-spacing: -.025em; }
.omni-xxl__intro p, .omni-xxl__notice { margin: 0; color: var(--ox-muted); font-size: 14px; }
.omni-xxl button, .omni-xxl summary, .omni-xxl__dialog button { font-family: inherit; cursor: pointer; }
.omni-xxl button:focus-visible, .omni-xxl summary:focus-visible, .omni-xxl__dialog :is(button, input, select, canvas):focus-visible { outline: 3px solid #e29212; outline-offset: 3px; }
.omni-xxl__action, .omni-xxl button.omni-xxl__action { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1px solid #d4dfed; border-radius: 5px; background: #fff; color: var(--ox-ink); text-align: left; text-decoration: none; box-shadow: 0 3px 10px #15355808; transition: border-color .18s, box-shadow .18s, background-color .18s; }
.omni-xxl__action:hover, .omni-xxl button.omni-xxl__action:hover { border-color: #7e9fd9; background: #f8faff; color: var(--ox-ink); }
.omni-xxl__action svg { width: 24px; height: 24px; flex: 0 0 24px; }
.omni-xxl__action > span:not(.omni-xxl__chevron) { min-width: 0; flex: 1; }
.omni-xxl__action b, .omni-xxl__action small { display: block; color: inherit; }
.omni-xxl__action b { font-size: 16px; line-height: 1.3; }
.omni-xxl__action small { margin-top: 3px; color: #000; font-size: 15px; line-height: 1.3; opacity: 1; }
.omni-xxl button[data-omni-action="print-a4"] > span:not(.omni-xxl__chevron) { color: #000; }
.omni-xxl__chevron { margin-left: auto; font-size: 25px; line-height: 1; }
.omni-xxl__details { margin: 0; }
.omni-xxl__details summary { list-style: none; }
.omni-xxl__details summary::-webkit-details-marker { display: none; }
.omni-xxl__details[open] .omni-xxl__chevron { transform: rotate(180deg); }
.omni-xxl__formats { padding: 14px 4px 4px; }
.omni-xxl__formats p { margin: 0 0 9px; font-size: 14px; font-weight: 700; }
.omni-xxl__formats > div { display: flex; gap: 8px; }
.omni-xxl__formats button { flex: 1; min-height: 54px; padding: 8px; border: 1px solid #bccce2; border-radius: 10px; background: white; color: var(--ox-ink); font-size: 18px; font-weight: 700; }
.omni-xxl__formats button:hover { background: #edf3ff; }
.omni-xxl__formats button small { display: block; padding-top: 8px; color: #000; font-size: 15px; font-weight: 400; }
.omni-xxl__formats > small { display: block; margin-top: 10px; color: #000; line-height: 1.4; }
.omni-xxl__notice:empty, .omni-xxl__editor-notice:empty { display: none; }
.omni-xxl__notice:not(:empty), .omni-xxl__editor-notice:not(:empty) { color: #8b2828; }
.omni-xxl__dialog { width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 22px 80px #07152c70; overflow: auto; }
.omni-xxl__dialog.is-expanded, .omni-xxl__dialog:fullscreen { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
.omni-xxl__dialog::backdrop { background: #101f39b8; }
.omni-xxl__dialog-inner { padding: clamp(16px, 2.5vw, 28px); }
.omni-xxl__dialog-inner:fullscreen { width: 100vw; height: 100vh; height: 100dvh; overflow: auto; background: #fff; }
.omni-xxl__dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--ox-line); }
.omni-xxl__dialog-header h2 { margin: 4px 0 0; color: var(--ox-ink); font-size: 24px; line-height: 1.2; }
.omni-xxl__header-actions { display: flex; align-items: center; gap: 8px; }
.omni-xxl button.omni-xxl__fullscreen { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid #aabed9; border-radius: 12px; background: #f4f7fd; color: #1b3c7a; font-size: 14px; font-weight: 700; line-height: 1.2; }
.omni-xxl button.omni-xxl__fullscreen:hover { background: #e6efff; color: #1b3c7a; }
.omni-xxl__fullscreen svg { width: 19px; height: 19px; flex: none; }
.omni-xxl__icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--ox-line); border-radius: 12px; background: white; color: var(--ox-ink); }
.omni-xxl__icon-button:hover { background: var(--ox-surface); }
.omni-xxl__icon-button svg, .omni-xxl__history svg, .omni-xxl__save svg { width: 20px; height: 20px; flex: none; }
.omni-xxl__workspace { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; padding-top: 22px; }
.omni-xxl__paper-area { min-width: 0; padding: 18px; border-radius: 14px; background: #eef3f9; text-align: center; }
.omni-xxl__loading { padding: 40px 0; color: var(--ox-muted); }
.omni-xxl__paper { position: relative; isolation: isolate; width: min(100%, 600px); margin: 0 auto; background: #fff; box-shadow: 0 4px 16px #2037541f; }
.omni-xxl__dialog.is-expanded .omni-xxl__paper { width: min(100%, 1100px, max(240px, calc((100dvh - 205px) * var(--omni-art-aspect, .707)))); }
.omni-xxl__paper[hidden] { display: none; }
.omni-xxl__line-art { position: relative; z-index: 4; display: block; width: 100%; height: auto; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.omni-xxl__canvas { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.omni-xxl__marker-preview { position: absolute; z-index: 3; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.omni-xxl__marker-preview[hidden] { display: none; }
.omni-xxl__cursor { position: absolute; z-index: 5; display: none; width: 14px; height: 14px; border: 2px solid #222; border-radius: 50%; box-shadow: 0 0 0 2px #fff; transform: translate(-50%, -50%); pointer-events: none; }
.omni-xxl__paper.is-keyboard .omni-xxl__cursor { display: block; }
.omni-xxl__hint { margin: 14px 0 0; color: var(--ox-muted); font-size: 12px; line-height: 1.45; }
.omni-xxl__tools { display: grid; align-content: start; gap: 20px; }
.omni-xxl__tool-group > label, .omni-xxl__label { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ox-ink); font-weight: 700; font-size: 14px; }
.omni-xxl__tool-group output { color: var(--ox-muted); font-weight: 500; }
.omni-xxl__tool-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.omni-xxl .omni-xxl__tool-picker button { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 7px 5px; border: 1px solid #b7c8dd; border-radius: 10px; background: #fff; color: #203554; font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; }
.omni-xxl .omni-xxl__tool-picker button:hover { border-color: #2457ca; background: #f0f5ff; }
.omni-xxl .omni-xxl__tool-picker button[aria-pressed="true"] { border: 2px solid #2457ca; background: #eaf1ff; color: #173f9f; }
.omni-xxl__tool-picker svg { width: 22px; height: 22px; flex: none; }
.omni-xxl__tool-description { min-height: 34px; margin: 8px 0 0; color: #44556e; font-size: 12px; line-height: 1.4; }
.omni-xxl__dialog .omni-xxl__tool-group input[type="range"] { -webkit-appearance: none !important; appearance: none !important; display: block; width: 100%; height: 32px !important; margin: 2px 0; padding: 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; cursor: pointer; }
.omni-xxl__dialog .omni-xxl__tool-group input[type="range"]::-webkit-slider-runnable-track { height: 8px; border: 0; border-radius: 99px; background: #2457ca !important; }
.omni-xxl__dialog .omni-xxl__tool-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none !important; width: 24px; height: 24px; margin-top: -8px; border: 3px solid #fff !important; border-radius: 50%; background: #d65308 !important; box-shadow: 0 0 0 2px #a63900; }
.omni-xxl__dialog .omni-xxl__tool-group input[type="range"]::-moz-range-track { height: 8px; border: 0; border-radius: 99px; background: #2457ca !important; }
.omni-xxl__dialog .omni-xxl__tool-group input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #fff !important; border-radius: 50%; background: #d65308 !important; box-shadow: 0 0 0 2px #a63900; }
.omni-xxl__palette { display: flex; flex-wrap: wrap; gap: 8px; }
.omni-xxl__palette button.omni-xxl__swatch { position: relative; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #aebbc9; }
.omni-xxl__palette button.omni-xxl__swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ox-blue); }
.omni-xxl__palette button.omni-xxl__swatch[aria-pressed="true"]::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 19px; font-weight: bold; line-height: 36px; text-align: center; text-shadow: 0 1px 3px #000; }
.omni-xxl__custom-color { position: relative; width: 44px; height: 44px; overflow: hidden; border: 1px solid #aebbc9; border-radius: 50%; background: conic-gradient(#ef4444, #facc15, #22c55e, #0ea5e9, #a855f7, #ef4444); }
.omni-xxl__custom-color:focus-within { outline: 3px solid #e29212; outline-offset: 3px; }
.omni-xxl__custom-color input { position: absolute; inset: -5px; width: 54px; height: 54px; padding: 0; border: 0; opacity: .04; cursor: pointer; }
.omni-xxl__history { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.omni-xxl__history button, .omni-xxl__save { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 9px; border: 1px solid #bccce2; border-radius: 10px; background: white; color: var(--ox-ink); font-size: 14px; font-weight: 700; }
.omni-xxl__history button:hover:not(:disabled) { background: #edf3ff; }
.omni-xxl__history button:disabled, .omni-xxl__save:disabled { cursor: not-allowed; opacity: .46; }
.omni-xxl button.omni-xxl__save { width: 100%; border-color: var(--ox-blue); background: var(--ox-blue); color: white; }
.omni-xxl button.omni-xxl__save:hover:not(:disabled) { background: var(--ox-blue-dark); color: white; }
.omni-xxl__tool-note, .omni-xxl__editor-notice { margin: -10px 0 0; color: var(--ox-muted); font-size: 12px; }
.omni-xxl .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .omni-xxl { gap: 18px; }
  .omni-xxl__actions { padding-top: 0; }
  .omni-xxl__workspace { grid-template-columns: 1fr; }
  .omni-xxl__tools { grid-row: 1; gap: 14px; }
  .omni-xxl__palette { gap: 6px; }
  .omni-xxl__dialog { width: calc(100% - 16px); max-height: calc(100% - 16px); border-radius: 14px; }
  .omni-xxl__paper-area { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .omni-xxl__action { transition: none; } }
