/* WPCM PDF Studio Web — interface familiar a editores vetoriais de desktop. */
html:has(body.wpcm-studio-standalone) {
  margin: 0 !important;
  background: #e8edf5;
}

body.wpcm-studio-standalone {
  min-width: 280px;
  min-height: 100dvh;
  margin: 0;
  color: #1f2937;
  background:
    radial-gradient(circle at 12% 12%, rgb(37 99 235 / 12%), transparent 34rem),
    linear-gradient(145deg, #f8fafc, #dce5f1);
  font: 15px/1.55 Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wpcm-studio-page-shell {
  display: flex;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
}

.wpcm-studio-page-shell,
.wpcm-studio-page-shell *,
.wpcm-studio-page-shell *::before,
.wpcm-studio-page-shell *::after {
  box-sizing: border-box;
}

.wpcm-studio-page-shell > .wpcm-studio-root {
  flex: 1 1 auto;
}

.wpcm-access-card {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: clamp(26px, 6vw, 44px);
  background: rgb(255 255 255 / 94%);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgb(30 41 59 / 18%);
  backdrop-filter: blur(10px);
}

.wpcm-access-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #1d4ed8 58%, #172554);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgb(37 99 235 / 28%);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.wpcm-access-card h1 {
  margin: 0 0 8px;
  color: #172033;
  font-size: clamp(25px, 6vw, 33px);
  line-height: 1.18;
  text-align: center;
}

.wpcm-access-card > p {
  margin: 0 0 24px;
  color: #5b6472;
  text-align: center;
}

.wpcm-access-card #loginform {
  display: grid;
  margin: 0;
  gap: 14px;
}

.wpcm-access-card #loginform p {
  margin: 0;
}

.wpcm-access-card #loginform label {
  display: grid;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}

.wpcm-access-card #loginform input[type="text"],
.wpcm-access-card #loginform input[type="email"],
.wpcm-access-card #loginform input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #aeb8c6;
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgb(15 23 42 / 5%);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.wpcm-access-card #loginform input:focus-visible,
.wpcm-access-card a.button:focus-visible {
  outline: 3px solid rgb(37 99 235 / 28%);
  outline-offset: 1px;
  border-color: #2563eb;
}

.wpcm-access-card #loginform .login-remember label {
  display: flex;
  align-items: center;
  font-weight: 500;
  gap: 8px;
}

.wpcm-access-card #loginform input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.wpcm-access-card #loginform input[type="submit"],
.wpcm-access-card a.button {
  display: inline-grid;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  place-items: center;
  color: #fff;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
  box-shadow: 0 5px 14px rgb(37 99 235 / 22%);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.wpcm-access-card #loginform input[type="submit"]:hover,
.wpcm-access-card a.button:hover {
  color: #fff;
  background: #1d4ed8;
}

.wpcm-studio-root {
  --wpcm-bg: #4c515b;
  --wpcm-panel: #f1f2f4;
  --wpcm-panel-strong: #e1e4e9;
  --wpcm-border: #aeb4bf;
  --wpcm-border-dark: #737b88;
  --wpcm-text: #20242b;
  --wpcm-muted: #5f6773;
  --wpcm-accent: #2563eb;
  --wpcm-accent-soft: #dbeafe;
  --wpcm-danger: #b42318;
  --wpcm-page: #fff;
  --wpcm-shadow: 0 8px 24px rgb(0 0 0 / 32%);
  --wpcm-ruler-size: 22px;
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 100%;
  height: max(640px, calc(100dvh - var(--wp-admin--admin-bar--height, 0px)));
  min-height: 640px;
  overflow: hidden;
  color: var(--wpcm-text);
  background: var(--wpcm-panel);
  font: 13px/1.35 Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
  outline: none;
  isolation: isolate;
}

.wpcm-studio-root *,
.wpcm-studio-root *::before,
.wpcm-studio-root *::after {
  box-sizing: inherit;
}

.wpcm-studio-root button,
.wpcm-studio-root input,
.wpcm-studio-root textarea,
.wpcm-studio-root select {
  margin: 0;
  font: inherit;
}

.wpcm-studio-root button {
  color: inherit;
}

.wpcm-studio-root:focus-visible,
.wpcm-studio-root button:focus-visible,
.wpcm-studio-root input:focus-visible,
.wpcm-studio-root textarea:focus-visible,
.wpcm-studio-root summary:focus-visible,
.wpcm-studio-root [tabindex]:focus-visible {
  outline: 2px solid var(--wpcm-accent);
  outline-offset: 1px;
}

.wpcm-studio-root:focus-visible {
  outline-offset: -3px;
}

.wpcm-studio-root [hidden] {
  display: none !important;
}

.wpcm-app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--wpcm-panel);
}

.wpcm-top {
  z-index: 20;
  min-width: 0;
  background: var(--wpcm-panel);
  border-bottom: 1px solid var(--wpcm-border-dark);
  box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
}

.wpcm-titlebar {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  color: #f8fafc;
  background: linear-gradient(#343944, #292e37);
  gap: 12px;
}

.wpcm-brand {
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.wpcm-brand > span {
  color: #60a5fa;
}

.wpcm-document-title {
  overflow: hidden;
  color: #d7dce4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpcm-user {
  max-width: 180px;
  overflow: hidden;
  color: #cbd5e1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpcm-menubar {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0 4px;
  overflow: visible;
  background: #eceef1;
  border-bottom: 1px solid #c5cad2;
}

.wpcm-menubar details {
  position: relative;
}

.wpcm-menubar summary {
  padding: 5px 9px;
  border-radius: 2px;
  cursor: default;
  list-style: none;
  user-select: none;
}

.wpcm-menubar summary::-webkit-details-marker {
  display: none;
}

.wpcm-menubar details[open] > summary,
.wpcm-menubar summary:hover {
  background: #d5d9e0;
}

.wpcm-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 1px);
  left: 0;
  display: grid;
  width: max-content;
  min-width: 230px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--wpcm-border);
  border-radius: 3px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 24%);
}

.wpcm-menu button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: default;
  gap: 24px;
}

.wpcm-menu button:hover:not(:disabled),
.wpcm-menu button:focus-visible {
  color: #fff;
  background: var(--wpcm-accent);
}

.wpcm-menu hr {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  background: #d7dae0;
  border: 0;
}

.wpcm-menu kbd {
  color: var(--wpcm-muted);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.2;
}

.wpcm-menu button:hover kbd,
.wpcm-menu button:focus-visible kbd {
  color: #dbeafe;
}

.wpcm-commandbar {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 6px;
  overflow-x: auto;
  background: linear-gradient(#f7f8f9, #e5e8ec);
  scrollbar-width: thin;
  gap: 2px;
}

.wpcm-commandbar button,
.wpcm-panel-actions button {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  background: linear-gradient(#fff, #e6e9ed);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: default;
}

.wpcm-commandbar button:hover:not(:disabled),
.wpcm-panel-actions button:hover:not(:disabled) {
  border-color: var(--wpcm-border);
  background: #fff;
}

.wpcm-commandbar button:active:not(:disabled),
.wpcm-commandbar button[aria-pressed="true"],
.wpcm-panel-actions button:active:not(:disabled) {
  color: #0f3d91;
  background: var(--wpcm-accent-soft);
  border-color: #8bb5f4;
}

.wpcm-commandbar button:disabled,
.wpcm-panel-actions button:disabled,
.wpcm-menu button:disabled {
  opacity: .42;
}

.wpcm-commandbar .wpcm-toggle {
  width: auto;
  min-width: 52px;
  font-size: 11px;
}

.wpcm-separator {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: #c1c6ce;
}

.wpcm-command-spacer {
  flex: 1 0 12px;
}

.wpcm-page-indicator,
.wpcm-commandbar output {
  min-width: 48px;
  padding: 0 4px;
  color: #424955;
  text-align: center;
  white-space: nowrap;
}

.wpcm-editor-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 300px;
  min-height: 0;
  overflow: hidden;
  background: var(--wpcm-bg);
}

.wpcm-toolbox {
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 5px 4px;
  overflow-y: auto;
  background: linear-gradient(90deg, #eef0f3, #dfe2e7);
  border-right: 1px solid var(--wpcm-border-dark);
  gap: 3px;
}

.wpcm-toolbox button {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #343a45;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 20px;
  line-height: 1;
  cursor: default;
}

.wpcm-toolbox button:hover {
  background: #fff;
  border-color: #b9bec7;
}

.wpcm-toolbox button[aria-pressed="true"] {
  color: #0b4db3;
  background: #d7e7ff;
  border-color: #73a4e8;
  box-shadow: inset 0 0 0 1px #fff;
}

.wpcm-tool-separator {
  flex: 0 0 1px;
  width: 30px;
  margin: 3px 0;
  background: #bcc2cb;
}

.wpcm-workspace {
  position: relative;
  display: grid;
  grid-template-columns: var(--wpcm-ruler-size) minmax(0, 1fr);
  grid-template-rows: var(--wpcm-ruler-size) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--wpcm-bg);
}

.wpcm-ruler-corner {
  z-index: 5;
  grid-area: 1 / 1;
  background: #cdd1d8;
  border: solid #7a818d;
  border-width: 0 1px 1px 0;
}

.wpcm-ruler {
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  background: #d8dbe1;
}

.wpcm-ruler-horizontal {
  grid-area: 1 / 2;
  border-bottom: 1px solid #7a818d;
}

.wpcm-ruler-vertical {
  grid-area: 2 / 1;
  border-right: 1px solid #7a818d;
}

.wpcm-viewport {
  position: relative;
  grid-area: 2 / 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background-color: var(--wpcm-bg);
  background-image:
    linear-gradient(45deg, rgb(255 255 255 / 2%) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(255 255 255 / 2%) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(255 255 255 / 2%) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(255 255 255 / 2%) 75%);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
}

.wpcm-stage {
  display: grid;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  padding: 24px;
  place-items: start center;
}

.wpcm-page-frame {
  position: relative;
  flex: none;
  margin: auto;
  background: var(--wpcm-page);
  box-shadow: var(--wpcm-shadow), 0 0 0 1px rgb(0 0 0 / 30%);
}

.wpcm-page {
  position: absolute;
  inset: 0 auto auto 0;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--wpcm-page);
}

.wpcm-pdf-canvas,
.wpcm-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.wpcm-pdf-canvas {
  pointer-events: none;
}

.wpcm-overlay {
  overflow: visible;
  touch-action: none;
  user-select: none;
}

.wpcm-grid {
  pointer-events: none;
}

.wpcm-grid + g {
  isolation: isolate;
}

.wpcm-overlay [data-grid-path] {
  fill: none;
  stroke: #4382d5;
  stroke-width: .35;
  opacity: .45;
  vector-effect: non-scaling-stroke;
}

.wpcm-vector-object {
  pointer-events: visiblePainted;
}

.wpcm-vector-object:hover:not(.is-locked) {
  filter: drop-shadow(0 0 1px #2563eb);
}

.wpcm-vector-object.is-locked {
  cursor: not-allowed;
}

.wpcm-selection-box {
  fill: none;
  stroke: #1677ff;
  stroke-width: 1;
  stroke-dasharray: 4 2;
  pointer-events: none;
}

.wpcm-resize-handle {
  fill: #fff;
  stroke: #075dcc;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.wpcm-resize-handle[data-handle="n"],
.wpcm-resize-handle[data-handle="s"] { cursor: ns-resize; }
.wpcm-resize-handle[data-handle="e"],
.wpcm-resize-handle[data-handle="w"] { cursor: ew-resize; }
.wpcm-resize-handle[data-handle="ne"],
.wpcm-resize-handle[data-handle="sw"] { cursor: nesw-resize; }
.wpcm-resize-handle[data-handle="nw"],
.wpcm-resize-handle[data-handle="se"] { cursor: nwse-resize; }

.wpcm-marquee {
  fill: rgb(37 99 235 / 12%);
  stroke: #2563eb;
  stroke-width: 1;
  stroke-dasharray: 3 2;
  pointer-events: none;
}

.wpcm-bezier-preview {
  stroke-dasharray: 4 2;
  pointer-events: none;
}

.wpcm-node-preview {
  fill: #fff;
  stroke: #075dcc;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.wpcm-inspector {
  z-index: 9;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--wpcm-panel);
  border-left: 1px solid var(--wpcm-border-dark);
}

.wpcm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 34px;
  background: #d8dce2;
  border-bottom: 1px solid var(--wpcm-border);
}

.wpcm-tabs button {
  position: relative;
  padding: 7px 8px;
  background: transparent;
  border: 0;
  border-right: 1px solid #bcc2cb;
  cursor: default;
}

.wpcm-tabs button[aria-selected="true"] {
  font-weight: 600;
  background: #f7f8fa;
}

.wpcm-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--wpcm-accent);
  content: "";
}

.wpcm-panel {
  min-height: 0;
  overflow: auto;
  background: #f7f8fa;
}

.wpcm-panel-actions {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  padding: 4px;
  background: #e7e9ed;
  border-bottom: 1px solid #c4c9d1;
  gap: 2px;
}

.wpcm-object-list {
  padding: 4px;
}

.wpcm-object-row {
  display: grid;
  grid-template-columns: 26px 26px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  gap: 2px;
}

.wpcm-object-row:hover {
  background: #e9ecf1;
}

.wpcm-object-row[aria-current="true"] {
  background: var(--wpcm-accent-soft);
  border-color: #91baf4;
}

.wpcm-object-row > button {
  height: 25px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: default;
}

.wpcm-object-row > button:hover {
  background: rgb(255 255 255 / 75%);
}

.wpcm-object-name {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpcm-object-type {
  padding-right: 5px;
  color: var(--wpcm-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.wpcm-empty-panel {
  margin: 20px 12px;
  color: var(--wpcm-muted);
  text-align: center;
}

.wpcm-properties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px;
  gap: 9px;
}

.wpcm-field {
  display: grid;
  min-width: 0;
  color: #4b5360;
  font-size: 11px;
  gap: 3px;
}

.wpcm-field-wide,
.wpcm-properties > hr,
.wpcm-properties > .wpcm-check {
  grid-column: 1 / -1;
}

.wpcm-field input,
.wpcm-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  padding: 4px 6px;
  color: var(--wpcm-text);
  background: #fff;
  border: 1px solid #afb6c1;
  border-radius: 2px;
}

.wpcm-field input[type="color"] {
  padding: 2px;
}

.wpcm-field input[type="range"] {
  padding: 0;
}

.wpcm-field textarea {
  min-height: 64px;
  resize: vertical;
}

.wpcm-field output {
  color: var(--wpcm-muted);
  text-align: right;
}

.wpcm-check {
  display: flex;
  align-items: center;
  min-height: 26px;
  gap: 7px;
}

.wpcm-properties hr {
  width: 100%;
  height: 1px;
  margin: 3px 0;
  background: #d2d6dc;
  border: 0;
}

.wpcm-bottom {
  z-index: 15;
  min-width: 0;
  background: var(--wpcm-panel);
  border-top: 1px solid var(--wpcm-border-dark);
}

.wpcm-palette {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 6px;
  overflow-x: auto;
  background: #e9ebef;
  gap: 2px;
  scrollbar-width: thin;
}

.wpcm-swatch {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 22px;
  padding: 0;
  background: var(--swatch);
  border: 1px solid rgb(0 0 0 / 35%);
  border-radius: 1px;
}

.wpcm-swatch:hover,
.wpcm-swatch:focus-visible {
  z-index: 1;
  transform: scale(1.16);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px #111827;
}

.wpcm-swatch.is-none,
.wpcm-style-status > span.is-none {
  background:
    linear-gradient(135deg, transparent 43%, #dc2626 44%, #dc2626 56%, transparent 57%),
    #fff !important;
}

.wpcm-statusbar {
  display: grid;
  grid-template-columns: auto auto minmax(100px, 1fr) auto auto;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  color: #454c58;
  background: #d9dde3;
  border-top: 1px solid #b9bec7;
  font-size: 11px;
  gap: 12px;
}

.wpcm-style-status {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 4px;
}

.wpcm-style-status > span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgb(0 0 0 / 42%);
}

.wpcm-statusbar [data-status-message] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpcm-statusbar .is-error {
  color: var(--wpcm-danger);
  font-weight: 600;
}

.wpcm-toast-region {
  position: absolute;
  z-index: 1000;
  right: 18px;
  bottom: 68px;
  display: grid;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
  gap: 8px;
}

.wpcm-toast {
  padding: 10px 13px;
  color: #fff;
  background: #334155;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 30%);
}

.wpcm-toast.is-success { background: #166534; }
.wpcm-toast.is-error { background: #991b1b; }

.wpcm-studio-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: #475569;
  background: #f1f5f9;
  gap: 12px;
}

.wpcm-studio-loading > span {
  width: 34px;
  height: 34px;
  border: 3px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: wpcm-spin .8s linear infinite;
}

@keyframes wpcm-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .wpcm-editor-body {
    grid-template-columns: 42px minmax(0, 1fr) 250px;
  }

  .wpcm-user,
  .wpcm-style-status b {
    display: none;
  }

  .wpcm-statusbar {
    grid-template-columns: auto auto minmax(80px, 1fr) auto;
  }

  .wpcm-statusbar [data-coordinate-status] {
    display: none;
  }
}

@media (max-width: 760px) {
  .wpcm-studio-root {
    height: 100dvh;
    min-height: 520px;
  }

  .wpcm-titlebar {
    grid-template-columns: auto minmax(60px, 1fr);
  }

  .wpcm-user {
    display: none;
  }

  .wpcm-menubar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .wpcm-menubar details {
    flex: 0 0 auto;
  }

  .wpcm-commandbar {
    min-height: 34px;
  }

  .wpcm-commandbar button {
    height: 26px;
  }

  .wpcm-commandbar .wpcm-toggle,
  .wpcm-commandbar .wpcm-command-spacer,
  .wpcm-commandbar [data-command="page-prev"],
  .wpcm-commandbar [data-command="page-next"],
  .wpcm-commandbar .wpcm-page-indicator {
    display: none;
  }

  .wpcm-editor-body {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 205px;
  }

  .wpcm-toolbox {
    grid-area: 1 / 1;
  }

  .wpcm-workspace {
    grid-area: 1 / 2;
  }

  .wpcm-inspector {
    grid-area: 2 / 1 / 3 / 3;
    border-top: 1px solid var(--wpcm-border-dark);
    border-left: 0;
  }

  .wpcm-panel {
    overflow: auto;
  }

  .wpcm-object-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .wpcm-properties {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .wpcm-field-wide,
  .wpcm-properties > hr,
  .wpcm-properties > .wpcm-check {
    grid-column: auto;
  }

  .wpcm-field[data-text-field] {
    grid-column: span 2;
  }

  .wpcm-statusbar {
    grid-template-columns: minmax(80px, 1fr) auto;
  }

  .wpcm-style-status,
  .wpcm-statusbar [data-coordinate-status] {
    display: none;
  }
}

@media (max-width: 480px) {
  .wpcm-access-card {
    width: calc(100% - 20px);
    padding: 24px 20px;
    border-radius: 10px;
  }

  .wpcm-titlebar {
    min-height: 28px;
  }

  .wpcm-brand {
    font-size: 12px;
  }

  .wpcm-menubar summary {
    padding-inline: 7px;
  }

  .wpcm-commandbar .wpcm-separator,
  .wpcm-commandbar [data-command="zoom-page"] {
    display: none;
  }

  .wpcm-editor-body {
    grid-template-rows: minmax(0, 1fr) 180px;
  }

  .wpcm-properties {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }

  .wpcm-bottom .wpcm-palette {
    min-height: 27px;
  }

  .wpcm-swatch {
    flex-basis: 22px;
    width: 22px;
    height: 20px;
  }
}

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

  .wpcm-studio-loading > span {
    animation: none;
    border-color: #2563eb;
  }
}

@media (forced-colors: active) {
  .wpcm-page-frame,
  .wpcm-toolbox button[aria-pressed="true"],
  .wpcm-object-row[aria-current="true"] {
    outline: 2px solid Highlight;
  }

  .wpcm-swatch {
    forced-color-adjust: none;
  }
}
