.she-canvas-shell,
.she-canvas-shell * {
  box-sizing: border-box;
}

.she-canvas-shell {
  position: fixed;
  z-index: 9990;
  top: calc(var(--sc-usable-top, 0px) + var(--wp-admin--admin-bar--height, 0px));
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
  height: calc(var(--sc-usable-vh, 100svh) - var(--wp-admin--admin-bar--height, 0px));
  min-height: 0;
  margin: 0;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overscroll-behavior: none;
}

body.admin-bar .she-canvas-shell {
  height: calc(var(--sc-usable-vh, 100svh) - var(--wp-admin--admin-bar--height, 32px));
}

.sc-app {
  --sc-library-top: 82px;
  --sc-mobile-library-width: clamp(176px, 52vw, 218px);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f7;
}

.sc-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: default;
  background-color: #f5f5f7;
  touch-action: none;
  overscroll-behavior: none;
}

.sc-viewport[data-background-pattern="grid"] {
  background-image:
    linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .025) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

.sc-viewport[data-background-pattern="dots"] {
  background-image: radial-gradient(circle, rgba(0, 0, 0, .18) 1.25px, transparent 1.4px);
  background-size: 24px 24px;
}

.sc-viewport[data-background-pattern="blank"] {
  background-image: none;
}

.sc-viewport.is-space-down {
  cursor: grab;
}

.sc-viewport.is-panning {
  cursor: grabbing;
}

.sc-viewport.is-shape-drawing {
  cursor: crosshair;
}

.sc-app.is-connecting .sc-viewport,
.sc-app.is-connecting .sc-item {
  cursor: crosshair;
}

.sc-item.is-connector-source {
  outline: calc(3px * var(--sc-control-scale, 1)) solid #34c759;
  outline-offset: calc(4px * var(--sc-control-scale, 1));
}

.sc-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
}

.sc-panel {
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(250, 250, 252, .78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.sc-library {
  position: absolute;
  z-index: 30;
  left: 14px;
  top: var(--sc-library-top);
  bottom: 14px;
  width: 306px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  transition: transform .22s ease, opacity .22s ease;
  background: rgba(250, 250, 252, .98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sc-library-toggle {
  position: absolute;
  z-index: 45;
  left: 276px;
  top: calc(var(--sc-library-top) + 12px);
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  transition: left .22s ease, transform .22s ease;
}

.sc-app.is-library-collapsed .sc-library {
  transform: translateX(calc(-100% - 34px));
  opacity: 0;
  pointer-events: none;
}

.sc-app.is-library-collapsed .sc-library-toggle {
  left: 14px;
}

.sc-app.is-library-collapsed .sc-toolbar {
  left: 14px;
}

.sc-app.is-toolbar-collapsed .sc-library {
  top: 14px;
}

.sc-app.is-toolbar-collapsed .sc-library-toggle {
  top: 26px;
}

.sc-library-head {
  padding: 16px 16px 12px;
  display: grid;
  gap: 11px;
}

.sc-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.sc-subtitle {
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.35;
}

.sc-library-actions {
  display: flex;
  gap: 8px;
}

.sc-asset-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  grid-auto-flow: row;
  align-content: start;
  align-items: start;
  gap: 12px;
  padding: 0 14px 16px;
}

.sc-library-resizer {
  position: relative;
  flex: 0 0 14px;
  width: 100%;
  min-width: 100%;
  height: 14px;
  min-height: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
}

.sc-library-resizer::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .1);
  transform: translateY(-.5px);
}

.she-canvas-shell .sc-library-resizer:hover,
.she-canvas-shell .sc-library-resizer.is-dragging {
  background: transparent;
}

.sc-asset-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .64);
  cursor: pointer;
  padding: 0;
  color: #1d1d1f;
  display: block;
  align-self: start;
}

.she-canvas-shell button.sc-asset-card,
.she-canvas-shell .sc-asset-card {
  display: block;
  height: auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  line-height: normal;
}

.sc-asset-card:hover {
  border-color: rgba(0, 122, 255, .42);
  background: rgba(255, 255, 255, .88);
}

.sc-asset-card img,
.sc-asset-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

.sc-asset-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  color: #6e6e73;
  font-size: 22px;
  font-weight: 700;
}

.sc-asset-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 18px 34px 9px 10px;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, .56), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.sc-asset-status {
  position: absolute;
  left: 6px;
  top: 6px;
  max-width: calc(100% - 42px);
  padding: 4px 7px;
  border-radius: 7px;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.sc-asset-delete {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(232, 232, 237, .92);
  color: #b42318;
  font-size: 16px;
  line-height: 1;
}

.sc-layers {
  flex: 0 0 var(--sc-layer-pane-height, 34%);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 11px 12px 12px;
}

.sc-layer-head {
  padding: 0 4px 8px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 700;
}

.sc-layer-list {
  overflow: auto;
  display: grid;
  gap: 7px;
}

.sc-layer-empty {
  color: #8e8e93;
  font-size: 12px;
  padding: 8px 4px;
}

.sc-layer-row {
  display: grid;
  grid-template-columns: 30px 30px minmax(0, 1fr) 30px 30px;
  gap: 5px;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
}

.sc-layer-row.is-active {
  background: rgba(0, 122, 255, .12);
}

.sc-layer-row.is-group-child {
  margin-left: 20px;
  width: calc(100% - 20px);
  position: relative;
}

.sc-layer-row.is-group-child::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -7px;
  bottom: -7px;
  width: 1px;
  background: rgba(0, 0, 0, .1);
}

.sc-layer-group {
  grid-template-columns: 30px 30px 30px minmax(0, 1fr) 30px 30px;
  font-weight: 650;
  background: rgba(255, 255, 255, .42);
}

.sc-layer-row.is-touch-drop-target {
  box-shadow: inset 0 0 0 2px rgba(0, 122, 255, .55);
}

.sc-layer-group .sc-group-name {
  font-weight: 650;
}

.sc-layer-row.is-hidden-layer .sc-layer-pick {
  color: #8e8e93;
  text-decoration: line-through;
}

.sc-layer-row.is-locked-layer .sc-layer-pick {
  color: #6e6e73;
}

.she-canvas-shell .sc-layer-row button {
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 10px;
  font-size: 12px;
}

.she-canvas-shell .sc-layer-row .sc-layer-pick {
  justify-content: flex-start;
  padding: 0 9px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sc-layer-eye svg,
.sc-layer-lock svg,
.sc-layer-disclosure svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-layer-disclosure svg path:last-child {
  fill: rgba(0, 122, 255, .12);
}

.she-canvas-shell .sc-asset-delete {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
}

.sc-toolbar {
  position: absolute;
  z-index: 35;
  top: 14px;
  left: 14px;
  right: 14px;
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  max-height: min(32vh, 176px);
  overflow: auto;
  transition: transform .22s ease, opacity .18s ease;
  background: rgba(250, 250, 252, .98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sc-language {
  flex: 0 0 auto;
  width: 78px;
}

.sc-shape-tools .sc-connector-only {
  display: none;
}

.sc-shape-tools.is-connector-selected .sc-connector-only {
  display: inline-flex;
}

.sc-shape-tools.is-connector-selected [data-fill-color] {
  opacity: .45;
  pointer-events: none;
}

.sc-zoom-value {
  width: 74px;
  height: 34px;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  padding: 0 5px 0 8px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 9px;
  background: transparent;
  color: #3a3a3c;
  font-size: 12px;
}

.she-canvas-shell .sc-zoom-value input {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
}

.sc-zoom-value input::-webkit-inner-spin-button,
.sc-zoom-value input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.sc-toolbar-toggle {
  position: absolute;
  z-index: 46;
  top: calc(var(--sc-library-top) - 30px);
  right: 28px;
  width: 32px;
  height: 28px;
  min-width: 32px;
  padding: 0;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .14);
  transition: top .22s ease, transform .22s ease;
}

.sc-toolbar-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-app.is-toolbar-collapsed .sc-toolbar {
  transform: translateY(calc(-100% - 22px));
  opacity: 0;
  pointer-events: none;
}

.sc-app.is-toolbar-collapsed .sc-toolbar-toggle {
  top: 8px;
}

.sc-group {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  padding-right: 10px;
  border-right: 1px solid rgba(0, 0, 0, .08);
}

.sc-group:last-child {
  border-right: 0;
}

.sc-brand {
  flex: 0 0 auto;
  width: 148px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 4px;
  border-right: 1px solid rgba(0, 0, 0, .08);
}

.sc-brand img {
  display: block;
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
}

.she-canvas-shell .sc-table-insert [data-add-table] {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.sc-table-insert .sc-field input {
  width: 48px;
}

.sc-spacer {
  flex: 1 1 auto;
}

.sc-canvas-tools {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}

.she-canvas-shell .sc-canvas-tools [data-new-canvas] {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.sc-new-canvas svg,
.sc-canvas-menu-toggle svg,
.sc-canvas-row-delete svg,
.sc-table-insert button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-canvas-picker {
  position: relative;
}

.she-canvas-shell .sc-canvas-menu-toggle {
  width: 154px;
  max-width: 154px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.sc-canvas-menu-toggle span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sc-canvas-menu {
  position: absolute;
  z-index: 74;
  width: min(280px, calc(100vw - 24px));
  max-height: min(360px, calc(100vh - 120px));
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 14px;
  background: rgba(250, 250, 252, .96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(24px) saturate(170%);
}

.sc-canvas-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.sc-canvas-row:hover,
.sc-canvas-row.is-current {
  background: rgba(0, 122, 255, .1);
}

.sc-canvas-row-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}

.she-canvas-shell .sc-canvas-row-delete {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  color: #d70015;
  background: transparent;
}

.she-canvas-shell .sc-canvas-rename {
  width: 100%;
  height: 30px;
  min-width: 0;
  padding: 4px 7px;
}

.sc-canvas-menu-empty {
  padding: 12px;
  color: #6e6e73;
  font-size: 12px;
}

.sc-status {
  max-width: 220px;
  color: #6e6e73;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.she-canvas-shell [data-account-open] {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.she-canvas-shell button,
.she-canvas-shell select,
.she-canvas-shell input {
  font: inherit;
  letter-spacing: 0;
}

.she-canvas-shell button {
  height: 36px;
  min-width: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(232, 232, 237, .82);
  color: #1d1d1f;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.she-canvas-shell button:hover {
  background: rgba(209, 209, 214, .9);
}

.she-canvas-shell button:disabled {
  opacity: .45;
  cursor: default;
}

.she-canvas-shell button.sc-primary {
  background: #007aff;
  color: #fff;
}

.she-canvas-shell button.sc-danger {
  color: #d70015;
}

.she-canvas-shell input,
.she-canvas-shell select {
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: rgba(232, 232, 237, .82);
  color: #1d1d1f;
  padding: 0 10px;
  outline: none;
}

.she-canvas-shell input[type="number"] {
  width: 64px;
}

.she-canvas-shell input[type="color"] {
  width: 36px;
  padding: 3px;
}

.she-canvas-shell select {
  min-width: 84px;
  max-width: 128px;
}

.sc-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6e6e73;
  font-size: 12px;
  white-space: nowrap;
}

.sc-file {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sc-marquee {
  position: absolute;
  z-index: 12;
  left: 0;
  top: 0;
  border: 1px solid rgba(0, 122, 255, .72);
  background: rgba(0, 122, 255, .12);
  border-radius: 8px;
  pointer-events: none;
}

.sc-item {
  position: absolute;
  min-width: 26px;
  min-height: 26px;
  transform-origin: 50% 50%;
  user-select: none;
  touch-action: none;
  background: transparent;
  border-radius: 8px;
}

.sc-item.is-locked {
  cursor: default;
}

.sc-item.is-locked .sc-handle,
.sc-item.is-locked .sc-line-point,
.sc-item.is-locked .sc-rotate {
  display: none !important;
}

.sc-item.is-connector .sc-handle,
.sc-item.is-connector .sc-line-point,
.sc-item.is-connector .sc-rotate {
  display: none !important;
}

.sc-surface,
.sc-text,
.sc-shape-surface {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: inherit;
}

.sc-surface {
  overflow: hidden;
}

.sc-type-image,
.sc-type-video,
.sc-type-pdf,
.sc-type-file,
.sc-type-image .sc-surface,
.sc-type-video .sc-surface,
.sc-type-pdf .sc-pdf,
.sc-type-file .sc-doc,
.sc-type-file .sc-file-tile {
  border-radius: 0;
}

.sc-shape-surface svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sc-surface img,
.sc-surface video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
}

.sc-surface video.sc-video-native {
  pointer-events: auto;
}

.sc-file-tile {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.sc-file-ext {
  font-size: 22px;
  font-weight: 800;
  color: #007aff;
}

.sc-file-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3a3a3c;
  font-size: 12px;
}

.sc-file-hint {
  max-width: 100%;
  color: #8e8e93;
  font-size: 11px;
  line-height: 1.35;
}

.sc-doc {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  background: #fff;
  border-radius: 12px;
  color: #1d1d1f;
}

.sc-doc-pages {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  min-width: 520px;
  padding: 26px;
  background: #fff;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.48;
}

.sc-doc-pages table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}

.sc-doc-pages td,
.sc-doc-pages th {
  border: 1px solid #d1d1d6;
  padding: 6px 8px;
  min-width: 76px;
  max-width: 240px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.sc-doc-pages iframe {
  width: 960px;
  height: 540px;
  border: 0;
  display: block;
  pointer-events: none;
  background: #fff;
}

.sc-text {
  outline: 0;
  padding: 0;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.18;
  user-select: text;
  text-shadow: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sc-text:empty::before {
  content: "输入文字";
  color: rgba(60, 60, 67, .38);
}

.sc-pdf {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  background: transparent;
}

.sc-pdf-pages {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}

.sc-pdf canvas {
  display: block;
  background: #fff;
  pointer-events: none;
}

.sc-pdf-page {
  position: relative;
  overflow: hidden;
  contain: strict;
  background: #fff;
}

.sc-pdf-placeholder {
  width: 100%;
  height: min(100%, 620px);
  min-height: min(100%, 240px);
  display: grid;
  place-items: start center;
  padding: 10px;
  color: #3a3a3c;
  pointer-events: none;
}

.sc-pdf-placeholder-page {
  width: min(100%, 440px);
  aspect-ratio: 0.74;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, .13);
  background:
    linear-gradient(rgba(0, 0, 0, .055), rgba(0, 0, 0, .055)) 18% 32% / 64% 2px no-repeat,
    linear-gradient(rgba(0, 0, 0, .045), rgba(0, 0, 0, .045)) 18% 39% / 54% 2px no-repeat,
    linear-gradient(rgba(0, 0, 0, .045), rgba(0, 0, 0, .045)) 18% 46% / 60% 2px no-repeat,
    #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  text-align: center;
}

.sc-pdf-placeholder-page strong {
  color: #ff3b30;
  font-size: 22px;
}

.sc-pdf-placeholder-cover {
  width: 100%;
  max-height: 360px;
  display: block;
  border: 0;
  object-fit: contain;
  background: #fff;
}

.sc-pdf-placeholder-page span {
  max-width: 100%;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-pdf-placeholder-page small {
  color: #8e8e93;
  font-size: 11px;
}

.sc-pdf-placeholder.is-error .sc-pdf-placeholder-page {
  border-color: rgba(255, 59, 48, .28);
}

.sc-table-surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: #fff;
}

.sc-editable-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: var(--sc-table-line-width, 1px) solid var(--sc-table-color, #007aff);
  background: #fff;
  color: #1d1d1f;
  font-size: 14px;
  text-rendering: geometricPrecision;
}

.sc-editable-table td {
  position: relative;
  min-width: 0;
  padding: 7px 9px;
  border: var(--sc-table-line-width, 1px) solid var(--sc-table-color, #007aff);
  outline: 0;
  overflow: hidden;
  vertical-align: middle;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

.sc-editable-table tr:first-child td {
  background: color-mix(in srgb, var(--sc-table-color, #007aff) 15%, #fff);
  font-weight: 600;
}

.sc-editable-table td:focus {
  box-shadow: inset 0 0 0 2px var(--sc-table-color, #007aff);
}

.sc-editable-table td.is-active {
  box-shadow: inset 0 0 0 2px var(--sc-table-color, #007aff);
}

.sc-editable-table td.is-range-selected {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sc-table-color, #007aff) 78%, #fff);
}

.sc-table-cell-text {
  min-width: 20px;
  min-height: 1.35em;
  outline: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

.sc-table-cell-image {
  position: relative;
  width: fit-content;
  max-width: 100%;
  display: block;
  margin: 0 auto 6px;
}

.sc-table-cell-image img {
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.sc-table-image-resizer {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #007aff;
  box-shadow: 0 2px 8px rgba(0, 122, 255, .32);
  cursor: nwse-resize;
  touch-action: none;
}

.she-canvas-shell .sc-table-image-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 50%;
  color: #d70015;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.sc-table-resizers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sc-table-col-resizer,
.sc-table-row-resizer {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: auto;
}

.sc-table-col-resizer {
  top: 0;
  bottom: 0;
  width: calc(8px * var(--sc-control-scale, 1));
  transform: translateX(-50%);
  cursor: col-resize;
}

.sc-table-row-resizer {
  left: 0;
  right: 0;
  height: calc(8px * var(--sc-control-scale, 1));
  transform: translateY(-50%);
  cursor: row-resize;
}

.sc-video-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  pointer-events: none;
  font-size: 13px;
}

.sc-handle {
  position: absolute;
  z-index: 4;
  width: calc(18px * var(--sc-control-scale, 1));
  height: calc(18px * var(--sc-control-scale, 1));
  display: none;
  border: calc(2px * var(--sc-control-scale, 1)) solid #fff;
  border-radius: 999px;
  background: #007aff;
  box-shadow: 0 2px 8px rgba(0, 122, 255, .35);
}

.is-selected .sc-handle {
  display: block;
}

.sc-line-point {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: calc(22px * var(--sc-control-scale, 1));
  height: calc(22px * var(--sc-control-scale, 1));
  display: none;
  border: calc(2px * var(--sc-control-scale, 1)) solid #fff;
  border-radius: 999px;
  background: #34c759;
  box-shadow: 0 2px 8px rgba(52, 199, 89, .35);
  cursor: crosshair;
}

.is-selected.is-line-shape .sc-line-point {
  display: block;
}

.sc-line-point[data-line-point="start"] { left: 0; transform: translate(-50%, -50%); }
.sc-line-point[data-line-point="end"] { right: 0; transform: translate(50%, -50%); }

.sc-handle[data-handle="nw"] { left: 0; top: 0; transform: translate(-50%, -50%); cursor: nwse-resize; }
.sc-handle[data-handle="n"] { left: 50%; top: 0; transform: translate(-50%, -50%); cursor: ns-resize; }
.sc-handle[data-handle="ne"] { right: 0; top: 0; transform: translate(50%, -50%); cursor: nesw-resize; }
.sc-handle[data-handle="e"] { right: 0; top: 50%; transform: translate(50%, -50%); cursor: ew-resize; }
.sc-handle[data-handle="se"] { right: 0; bottom: 0; transform: translate(50%, 50%); cursor: nwse-resize; }
.sc-handle[data-handle="s"] { left: 50%; bottom: 0; transform: translate(-50%, 50%); cursor: ns-resize; }
.sc-handle[data-handle="sw"] { left: 0; bottom: 0; transform: translate(-50%, 50%); cursor: nesw-resize; }
.sc-handle[data-handle="w"] { left: 0; top: 50%; transform: translate(-50%, -50%); cursor: ew-resize; }

.sc-rotate {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: -42px;
  width: 25px;
  height: 25px;
  display: none;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  color: #007aff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  cursor: grab;
}

.sc-rotate::before {
  content: "↻";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.is-selected .sc-rotate {
  display: block;
}

.sc-item[data-edit-badge]::after {
  content: attr(data-edit-badge);
  position: absolute;
  left: 0;
  top: -28px;
  max-width: 180px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 149, 0, .92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(255, 149, 0, .24);
}

.sc-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(60, 60, 67, .32);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 700;
  pointer-events: none;
}

.sc-hidden {
  display: none !important;
}

.sc-app.is-auth-required .sc-toolbar,
.sc-app.is-auth-required .sc-library,
.sc-app.is-auth-required .sc-library-toggle,
.sc-app.is-auth-required .sc-toolbar-toggle,
.sc-app.is-auth-required .sc-viewport,
.sc-app.is-auth-required .sc-empty {
  filter: blur(2px);
  pointer-events: none;
}

.sc-context-menu {
  position: fixed;
  z-index: 95;
  width: 218px;
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 14px;
  background: rgba(250, 250, 252, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.she-canvas-shell .sc-context-menu > button {
  width: 100%;
  height: 34px;
  justify-content: flex-start;
  border-radius: 9px;
  background: transparent;
}

.she-canvas-shell .sc-context-menu > button:hover {
  color: #fff;
  background: #007aff;
}

.sc-background-menu {
  width: 294px;
  gap: 8px;
  padding: 12px;
}

.sc-context-label {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 700;
}

.sc-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(118, 118, 128, .12);
}

.she-canvas-shell .sc-segment button {
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
}

.she-canvas-shell .sc-segment button.is-active {
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
}

.sc-background-color-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.sc-background-color-row input[type="text"] {
  width: 100%;
  min-width: 0;
}

.she-canvas-shell .sc-background-color-row button {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.sc-background-color-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-app.is-auth-required .sc-modal {
  z-index: 110;
}

.sc-app.is-auth-required .sc-modal-close {
  display: none;
}

.sc-app.is-comment-share .sc-library,
.sc-app.is-comment-share .sc-library-toggle,
.sc-app.is-comment-share .sc-owner-table-tool,
.sc-app.is-comment-share .sc-edit-tools,
.sc-app.is-comment-share .sc-history-tools,
.sc-app.is-comment-share .sc-inspector-tools,
.sc-app.is-comment-share [data-share-open],
.sc-app.is-comment-share .sc-status,
.sc-app.is-view-share .sc-library,
.sc-app.is-view-share .sc-library-toggle,
.sc-app.is-view-share .sc-markup-tools,
.sc-app.is-view-share .sc-owner-table-tool,
.sc-app.is-view-share .sc-edit-tools,
.sc-app.is-view-share .sc-history-tools,
.sc-app.is-view-share .sc-inspector-tools,
.sc-app.is-view-share .sc-text-tools,
.sc-app.is-view-share .sc-shape-tools,
.sc-app.is-view-share [data-share-open],
.sc-app.is-view-share .sc-status {
  display: none !important;
}

.sc-app.is-comment-share .sc-viewport,
.sc-app.is-comment-share .sc-empty,
.sc-app.is-view-share .sc-viewport,
.sc-app.is-view-share .sc-empty {
  left: 0;
}

.sc-app.is-comment-share .sc-toolbar,
.sc-app.is-view-share .sc-toolbar {
  left: 14px;
  right: 14px;
  max-width: none;
}

.sc-modal {
  position: absolute;
  z-index: 80;
  inset: 50%;
  width: min(420px, calc(100vw - 32px));
  height: max-content;
  transform: translate(-50%, -50%);
  border-radius: 24px;
}

.sc-modal-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
}

.she-canvas-shell .sc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
}

.sc-modal input,
.sc-modal select {
  width: 100%;
}

.sc-modal-card h2 {
  margin: 0;
  font-size: 22px;
}

.sc-modal-card p,
.sc-modal-card a,
.sc-wechat {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
}

.sc-auth-login,
.sc-auth-register,
.sc-auth-lost,
.sc-auth-reset,
.sc-auth-user {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.sc-auth-message {
  padding: 9px 11px;
  border-radius: 10px;
  color: #3a3a3c;
  background: rgba(142, 142, 147, .12);
  font-size: 13px;
  line-height: 1.4;
}

.sc-auth-message:empty {
  display: none;
}

.sc-auth-message.is-error {
  color: #b42318;
  background: rgba(215, 0, 21, .1);
}

.sc-auth-message.is-success {
  color: #166534;
  background: rgba(52, 199, 89, .12);
}

.sc-share-line,
.sc-share-output-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sc-share-line select {
  max-width: none;
}

.sc-share-output-row button {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.sc-share-output-row svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-wechat {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed rgba(0, 0, 0, .16);
  border-radius: 14px;
  text-align: center;
  line-height: 1.4;
  background: rgba(255, 255, 255, .5);
}

.sc-support-dock {
  position: absolute;
  z-index: 45;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.she-canvas-shell .sc-support-dock button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(250, 250, 252, .9);
  box-shadow: 0 9px 26px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px);
}

.sc-support-dock svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-share-download {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a3a3c;
  font-size: 13px;
}

.sc-share-download input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.sc-share-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 4px;
}

.sc-share-qr img {
  width: min(260px, 68vw);
  aspect-ratio: 1;
  display: block;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
}

.sc-share-qr div {
  max-width: 100%;
  overflow: hidden;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-table-tools button.is-active {
  color: #fff;
  background: #007aff;
}

.sc-support-card {
  justify-items: center;
}

.sc-support-card h2 {
  justify-self: start;
}

.sc-payment-amounts,
.sc-payment-methods {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.sc-payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.she-canvas-shell .sc-payment-amounts button,
.she-canvas-shell .sc-payment-methods button {
  min-width: 0;
  padding: 0 8px;
}

.she-canvas-shell .sc-payment-amounts button.is-active,
.she-canvas-shell .sc-payment-methods button.is-active {
  color: #fff;
  background: #007aff;
}

.sc-payment-qr {
  width: 224px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 14px;
  color: #6e6e73;
  background: #fff;
  font-size: 13px;
}

.sc-payment-qr img,
.sc-contact-qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sc-contact-qr {
  width: min(290px, 72vw);
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
}

.sc-contact-email {
  color: #007aff !important;
  font-size: 15px !important;
}

@media (max-width: 980px) {
  .she-canvas-shell {
    min-height: 0;
  }

  .sc-library {
    width: 246px;
  }

  .sc-library-toggle {
    left: 216px;
  }

  .sc-viewport,
  .sc-empty {
    left: 0;
  }

  .sc-toolbar {
    left: 14px;
    right: 14px;
    align-items: flex-start;
    overflow-x: auto;
  }

  .sc-toolbar-toggle {
    right: 20px;
  }

  .sc-group {
    flex: 0 0 auto;
  }

  .sc-status,
  .sc-field span {
    display: none;
  }
}

@media (max-width: 640px) {
  .she-canvas-shell,
  body.admin-bar .she-canvas-shell {
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
    height: calc(var(--sc-usable-vh, 100svh) - var(--wp-admin--admin-bar--height, 0px));
    min-height: 0;
  }

  .sc-library {
    top: 172px;
    left: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: var(--sc-mobile-library-width);
    border-radius: 18px;
  }

  .sc-library-toggle {
    top: 184px;
    left: calc(8px + var(--sc-mobile-library-width) - 42px);
    right: auto;
  }

  .sc-app.is-library-collapsed .sc-library-toggle {
    top: 172px;
    left: 8px;
    right: auto;
  }

  .sc-viewport,
  .sc-empty,
  .sc-app.is-library-collapsed .sc-viewport,
  .sc-app.is-library-collapsed .sc-empty {
    left: 0;
  }

  .sc-toolbar,
  .sc-app.is-library-collapsed .sc-toolbar {
    top: 8px;
    left: 8px;
    right: 8px;
    height: 152px;
    min-height: 152px;
    max-height: 152px;
    padding: 10px 48px 10px 10px;
    align-content: flex-start;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sc-toolbar-toggle {
    top: 16px;
    right: 16px;
  }

  .sc-support-dock {
    right: max(6px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }

  .she-canvas-shell .sc-support-dock button {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .she-canvas-shell .sc-canvas-menu-toggle {
    width: 136px;
    max-width: 136px;
  }

  .sc-app.is-toolbar-collapsed .sc-toolbar-toggle {
    top: 8px;
    right: 12px;
  }

  .sc-brand {
    width: 112px;
  }

  .sc-app.is-comment-share .sc-toolbar,
  .sc-app.is-view-share .sc-toolbar {
    left: 8px;
    right: 8px;
    max-width: calc(100vw - 16px);
  }

  .sc-layer-pick,
  .sc-layer-group .sc-group-name {
    touch-action: none;
  }

  .sc-library {
    touch-action: pan-y;
  }
}
