/* Additive licensing UI only. No selectors alter existing screens. */
#xw-license-watermark {
  position: fixed !important; inset: 0 !important; margin: 0 !important;
  width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22330%22%20height%3D%22220%22%3E%3Ctext%20x%3D%22165%22%20y%3D%22110%22%20text-anchor%3D%22middle%22%20dominant-baseline%3D%22middle%22%20transform%3D%22rotate%28-45%20165%20110%29%22%20font-family%3D%22-apple-system%2CBlinkMacSystemFont%2CPingFang%20SC%2Csans-serif%22%20font-size%3D%2214%22%20fill%3D%22%23777%22%20fill-opacity%3D%22.46%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.3%22%20stroke-width%3D%22.6%22%20paint-order%3D%22stroke%22%3E%E6%9C%AA%E6%BF%80%E6%B4%BB%EF%BC%8C%E8%AF%B7%E6%BF%80%E6%B4%BB%E4%BB%A5%E4%BD%BF%E7%94%A8%E5%AE%8C%E6%95%B4%E5%8A%9F%E8%83%BD%3C%2Ftext%3E%3C%2Fsvg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22330%22%20height%3D%22220%22%3E%3Ctext%20x%3D%22165%22%20y%3D%22110%22%20text-anchor%3D%22middle%22%20dominant-baseline%3D%22middle%22%20transform%3D%22rotate%28-45%20165%20110%29%22%20font-family%3D%22-apple-system%2CBlinkMacSystemFont%2CPingFang%20SC%2Csans-serif%22%20font-size%3D%2214%22%20fill%3D%22%23777%22%20fill-opacity%3D%22.46%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.3%22%20stroke-width%3D%22.6%22%20paint-order%3D%22stroke%22%3E%E6%9C%AA%E6%BF%80%E6%B4%BB%EF%BC%8C%E8%AF%B7%E6%BF%80%E6%B4%BB%E4%BB%A5%E4%BD%BF%E7%94%A8%E5%AE%8C%E6%95%B4%E5%8A%9F%E8%83%BD%3C%2Ftext%3E%3C%2Fsvg%3E");
  background-color: transparent !important; background-repeat: repeat-y !important;
  background-size: 330px 220px !important;
  /* One vertical column on the left and one on the right of the content. */
  background-position: calc(50% - min(25vw, 120px)) 0, calc(50% + min(25vw, 120px)) 0 !important;
  pointer-events: none !important; user-select: none !important; -webkit-user-select: none !important;
  z-index: 2147483647 !important; overflow: hidden !important;
  contain: strict; color-scheme: light;
}
#xw-license-watermark::backdrop { background: transparent; pointer-events: none; }
#xw-license-watermark[hidden] { display: none !important; }
#xw-license-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  width: min(360px, calc(100% - 32px)); max-width: calc(100% - 32px);
  height: fit-content; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
  padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #191919;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  overflow-y: auto; overscroll-behavior: contain; color-scheme: light;
  z-index: 2147483646;
}
#xw-license-dialog::backdrop { background: rgba(0,0,0,.45); }
#xw-license-dialog h2 { margin: 0 0 20px; color: #191919; font-size: 20px; font-weight: 600; text-align: center; }
#xw-license-dialog label { display: block; color: #191919; margin-bottom: 8px; }
#xw-license-dialog input {
  box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 46px;
  padding: 10px; border: 1px solid #ddd; border-radius: 6px; background: #f7f7f7;
  color: #191919; -webkit-text-fill-color: #191919; font: inherit; font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
#xw-license-dialog input::placeholder { color: #999; -webkit-text-fill-color: #999; }
#xw-license-dialog p { min-height: 24px; margin: 10px 0 18px; color: #777; overflow-wrap: anywhere; }
#xw-license-dialog p[data-error='true'] { color: #c33; }
#xw-license-dialog .xw-license-actions { display: flex; gap: 12px; }
#xw-license-dialog button {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px;
  color: #191919; -webkit-text-fill-color: #191919; background: #f2f2f2; font: inherit;
  text-align: center; cursor: pointer;
}
#xw-license-dialog button[type='submit'] { background: #07c160; color: #fff; -webkit-text-fill-color: #fff; }
#xw-license-dialog button:disabled { opacity: .55; cursor: wait; }
#xw-license-dialog :focus-visible { outline: 2px solid #07c160; outline-offset: 3px; }
@media (max-height: 400px) { #xw-license-dialog { padding: 16px; } #xw-license-dialog h2 { margin-bottom: 8px; } }
