/* seel.ink studio — reference-aligned Operate surface */
:root {
  --studio-ink: #202321;
  --studio-muted: #626864;
  --studio-line: #e5e8e6;
  --studio-ground: #f5f8f7;
  --studio-selected: #f0f2f1;
  --studio-accent: #7524df;
  --studio-focus: #5920b0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --control-radius: 10px;
  --dialog-radius: 20px;
  --studio-elevation: 0 16px 48px #1c302014;
  --font-ui: "Schibsted Grotesk", "Noto Sans", sans-serif;
}
body {
  background: var(--studio-ground);
  color: var(--studio-ink);
  font: 15px/1.5 var(--font-ui);
  overflow: hidden;
}
#studio .panel :is(h1, h2, h3, h4),
.dialog :is(h1, h2, h3, h4) {
  font-family: var(--font-ui);
  letter-spacing: -0.025em;
}
#studio .panel h1 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 650;
}
#studio .panel h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 650;
}
#studio .panel h3 {
  font-size: 18px;
  line-height: 1.4;
}
#studio .helper,
.dialog .helper {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--studio-muted);
}
::selection {
  background: #e3d4f6;
  color: #261237;
}
:is(button, input, select, textarea) {
  accent-color: var(--studio-accent);
  caret-color: var(--studio-accent);
}
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--studio-focus);
  outline-offset: 3px;
}
button {
  min-height: 44px;
  border-color: #dce0dd;
  border-radius: var(--control-radius);
  padding: 10px 16px;
  font-weight: 500;
  line-height: 1.35;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}
button:hover {
  background: #f1f3f2;
  border-color: #bdc4be;
}
button.primary {
  background: #202321;
  border-color: #202321;
  color: white;
}
button.primary:hover {
  background: #353c37;
  border-color: #353c37;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button .studio-icon {
  vertical-align: middle;
}
.studio-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
  display: inline-block;
}
button.primary > .studio-icon {
  filter: brightness(0) invert(1);
}
button.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 50%;
}
button.icon-button:hover {
  background: #edf0ee;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--studio-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}
.studio-top {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--studio-line);
  background: #fff;
  position: relative;
  z-index: 12;
}
.studio-project,
.studio-brand,
.top-actions,
.history-actions {
  display: flex;
  align-items: center;
}
.studio-project {
  gap: 20px;
  min-width: 0;
}
.studio-brand {
  gap: 5px;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -0.04em;
  font-weight: 800;
  flex: none;
  line-height: 1;
}
.studio-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 28px;
  overflow: hidden;
}
.studio-brand-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.studio-brand-name {
  padding-bottom: 2px;
}
.project-separator {
  height: 28px;
  border-left: 1px solid var(--studio-line);
}
.studio-top .page-title {
  width: 180px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
  font-weight: 550;
  text-overflow: ellipsis;
}
.project-type {
  display: none;
}
.top-actions {
  gap: 8px;
  flex-wrap: nowrap;
}
.top-actions > button {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.top-actions .publish-button {
  background: var(--studio-accent);
  border-color: var(--studio-accent);
  color: #fff;
}
.top-actions .publish-button:hover {
  background: #6020bd;
}
.save-status {
  font-size: 12px;
  color: var(--studio-muted);
  min-width: 0;
  white-space: nowrap;
}
.publication-status {
  font-size: 12px;
  color: var(--studio-muted);
  text-underline-offset: 3px;
  white-space: nowrap;
  margin: 0 12px 0 0;
  background: none !important;
}
.history-actions {
  border-left: 1px solid var(--studio-line);
  padding-left: 8px;
  margin-left: 4px;
}
.history-actions button {
  border: 0;
  padding: 8px;
  min-height: 40px;
  width: 36px;
  background: transparent;
}
.history-actions .studio-icon {
  width: 18px;
  height: 18px;
}
#account {
  width: 40px;
  padding: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.35fr) minmax(400px, 1fr);
  height: calc(100dvh - 64px);
  background: var(--studio-ground);
  gap: 0;
}
.studio-rail {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 8px 20px;
  background: var(--studio-ground);
  border: 0;
  z-index: 10;
}
.rail-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-top: 8px;
}
.rail-tabs > button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 64px;
  min-height: 72px;
  padding: 4px;
  color: var(--studio-muted);
  font-size: 11px;
  border-radius: 12px;
}
.rail-tabs > button > .studio-icon {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 12px;
  background: #eaf0ed;
  border-radius: 50%;
}
.rail-tabs > button[aria-selected="true"] {
  color: var(--studio-ink);
  font-weight: 600;
}
.rail-tabs > button[aria-selected="true"] > .studio-icon {
  background: #e2e6e3;
  outline: 2px solid var(--studio-ink);
  outline-offset: 3px;
}
.rail-tabs > button:hover {
  background: #eaf0ed;
}
.rail-back {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--studio-muted);
  text-decoration: none;
  font-size: 12px;
}
.rail-back span {
  display: none;
}
.panel {
  background: #fff;
  border: 0;
  min-width: 0;
  padding: 32px;
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.left-panel,
.properties {
  width: auto;
  max-width: none;
  grid-column: 2;
  grid-row: 1;
  margin: 20px 0 20px 0;
  border-radius: 20px;
  box-shadow: 0 2px 18px #22302606;
}
#left-content {
    max-width: 620px;
  margin: 0 auto;
  min-width: 0;
}
.properties {
  position: static;
  display: none;
  border: 0;
  padding: 24px 32px 40px;
}
.show-properties .properties {
  display: block;
}
.show-properties .left-panel {
  display: none;
}
#properties {
  max-width: 420px;
  margin: 0 auto;
}
#studio:is([data-editor-tab="header"], [data-editor-tab="design"]) #properties {
    max-width: 620px;
}
.inspector-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 8px;
  min-height: 44px;
  color: var(--studio-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
#close-inspector {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 8px;
}
.inspector-top #close-inspector:hover {
  background: #f0f3f1;
}
#properties > h2 {
  margin: 0 0 20px;
}
.panel
  :is(
    input:not(
      [type="checkbox"],
      [type="radio"],
      [type="range"],
      [type="color"]
    ),
    textarea,
    select
  ),
.dialog
  :is(
    input:not(
      [type="checkbox"],
      [type="radio"],
      [type="range"],
      [type="color"]
    ),
    textarea,
    select
  ) {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8ded9;
  border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
  font: inherit;
  color: var(--studio-ink);
  margin-top: 8px;
}
.panel textarea,
.dialog textarea {
  resize: vertical;
  min-height: 100px;
}
.panel label,
.dialog label {
  font-size: 14px;
  color: var(--studio-ink);
  line-height: 1.5;
}
.panel .field-pair {
  gap: 12px;
}
.property-media {
  margin: 24px 0;
}
.property-media > img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.property-image-source {
  margin-top: 16px;
  font-size: 13px;
}
.property-image-source summary {
  cursor: pointer;
  color: var(--studio-muted);
}
.property-details {
  border-top: 1px solid var(--studio-line);
  padding: 20px 0;
  margin-top: 24px;
}
.property-details > summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
}
#properties .row-actions {
  gap: 8px;
  margin-bottom: 24px;
}
#properties .row-actions button {
  font-size: 13px;
}
#properties #delete-block {
  color: #a43024;
}
#properties .block-inspector {
  border-bottom: 1px solid var(--studio-line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
#properties .block-layout-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
#properties [data-block-layout][aria-pressed="true"] {
  border-color: var(--studio-ink);
  background: var(--studio-selected);
}
.content-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.content-heading h1 {
  margin: 0;
}
.profile-card {
  padding: 0 0 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.profile-main {
  display: flex;
  gap: 16px;
  align-items: center;
}
.identity-image {
  position: relative;
  flex: none;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  overflow: visible;
  background: #edf1ee;
}
.identity-image > img:not(.studio-icon) {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.identity-image > .studio-icon {
  width: 30px;
  height: 30px;
}
.identity-edit {
  position: absolute;
  bottom: -2px;
  right: -3px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 2px 8px #10201424;
  border-radius: 50%;
  width: 26px;
  height: 26px;
}
.identity-edit .studio-icon {
  width: 14px;
  height: 14px;
}
.profile-fields {
  flex: 1;
  min-width: 0;
}
.profile-name {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  min-height: 28px;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}
.profile-name:hover {
  background: transparent;
  text-decoration: underline;
}
.profile-address {
  display: block;
  font-size: 12px;
  color: var(--studio-muted);
  margin-top: 0;
}
.social-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.social-shortcuts > button {
  display: grid;
  place-items: center;
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  padding: 5px;
}
.social-shortcuts > button .studio-icon {
  width: 20px;
  height: 20px;
}
.social-shortcuts > button:not(.connected):not(#social-more) > .studio-icon {
  opacity: 0.5;
}
.social-shortcuts > button:hover {
  background: #edf0ee;
}
.social-shortcuts #social-more {
  background: #edf0ee;
  width: 32px;
}
.shortcut-plus {
  position: absolute;
  right: -1px;
  top: 0;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
.shortcut-plus .studio-icon {
  width: 8px !important;
  height: 8px !important;
}
.profile-summary {
  font-size: 14px;
  color: var(--studio-muted);
  margin: 16px 0 0;
  max-width: 60ch;
  overflow-wrap: anywhere;
}
.content-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--studio-line);
  margin-bottom: 24px;
}
.content-tabs > button {
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  position: relative;
  font-size: 15px;
  color: var(--studio-muted);
}
.content-tabs > button[aria-selected="true"] {
  color: var(--studio-ink);
  font-weight: 600;
}
.content-tabs > button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--studio-ink);
}
.content-tabs span {
  font-size: 11px;
  margin-left: 6px;
  background: #f0f2f1;
  padding: 2px 5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.content-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  margin-bottom: 16px;
}
.content-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 24px;
  background: #ecefed;
  font-size: 14px;
}
.content-actions > button.primary {
  background: #202321;
}
.content-actions .studio-icon {
  width: 18px;
  height: 18px;
}
.layer-search {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px !important;
  border-bottom: 1px solid var(--studio-line);
  padding: 0 4px;
}
.layer-search > .studio-icon {
  width: 16px;
  height: 16px;
  opacity: 0.65;
}
.panel .layer-search input {
  border: 0 !important;
  box-shadow: none;
  background: transparent;
  margin: 0;
  padding: 10px 4px;
  min-height: 42px;
  font-size: 13px;
}
.content-row-wrap {
  margin-left: calc(var(--depth) * 16px);
  position: relative;
}
.layer {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 76px;
  padding: 10px 12px 10px 4px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
  position: relative;
}
.layer:hover {
  border-color: #bbc5bd;
  background: #fcfdfc;
}
.layer.selected {
  border-color: #777f79;
  background: #f8faf9;
  box-shadow: none;
}
.layer.is-hidden {
  background: #f7f8f7;
}
.layer.is-hidden .layer-label {
  opacity: 0.65;
}
.layer > button[data-select] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  text-align: left;
  border: 0;
  padding: 0;
  background: transparent;
}
.layer-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;
  opacity: 0.4;
  cursor: grab;
}
.layer-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f0f3f1;
  overflow: hidden;
}
.layer-symbol > .studio-icon {
  width: 22px;
  height: 22px;
}
.layer-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layer-label {
  display: block;
  min-width: 0;
  flex: 1;
}
.layer-label strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layer-label small {
  display: block;
  font-size: 12px;
  color: var(--studio-muted);
  margin-top: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.layer-visibility {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  margin: 0 !important;
  flex: none;
}
.layer-visibility input[type="checkbox"] {
  appearance: none;
  display: block;
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #c5ccc7;
  border: 0;
  margin: 0 !important;
  cursor: pointer;
  transition: background 0.15s;
}
.layer-visibility input:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #10201420;
  transition: transform 0.15s;
}
.layer-visibility input:checked {
  background: #21944d;
}
.layer-visibility input:checked:before {
  transform: translateX(14px);
}
.layer-visibility input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.layer-menu {
  position: relative;
  flex: none;
}
.layer-menu > summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  cursor: pointer;
  border-radius: 8px;
}
.layer-menu > summary::-webkit-details-marker {
  display: none;
}
.layer-menu > summary .studio-icon {
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
}
.layer-menu > summary:hover {
  background: #eaf0ec;
}
.layer-menu-popover {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 30;
  width: 210px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px #1a30252e;
}
.layer-menu-popover button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  padding: 10px;
  min-height: 42px;
}
.layer-menu-popover .studio-icon {
  width: 16px;
  height: 16px;
}
.layer-menu-popover .destructive {
  color: #a43024;
}
.layer .layer-collapse,
.layer .layer-add {
  width: 32px;
  min-width: 32px;
  padding: 7px;
}
.layer .layer-collapse .studio-icon {
  width: 16px;
  height: 16px;
}
.layer [aria-expanded="false"] > .studio-icon {
  transform: rotate(-90deg);
}
.layer.drag-over {
  outline: 2px solid var(--studio-accent);
  outline-offset: 1px;
}
.layer.drag-over[data-drop-position="before"]{box-shadow:0 -3px 0 var(--studio-accent);outline:0}
.layer.drag-over[data-drop-position="after"]{box-shadow:0 3px 0 var(--studio-accent);outline:0}
.layer.is-dragging {
  opacity: 0.4;
}
.empty-block-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  margin: -4px 0 16px;
  min-height: 52px;
  border-style: dashed;
  color: var(--studio-muted);
}
.profile-blocks-toggle {
  display: block;
  padding: 4px 0;
  min-height: 36px;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: var(--studio-muted);
}
.content-footer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  margin-top: 24px;
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
}
.content-footer-card strong {
  font-size: 14px;
  display: block;
  font-weight: 550;
}
.content-footer-card .text-button {
  display: block;
  min-height: 32px;
}
.social-manage {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 16px 4px;
  font-size: 13px;
  text-align: left;
  color: var(--studio-muted);
}
.social-manage span {
  margin-left: auto;
}
.social-manage > .studio-icon:last-child {
  width: 16px;
  height: 16px;
}
.content-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--studio-muted);
}
.content-empty > .studio-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}
.content-empty h2 {
  font-size: 20px !important;
  color: var(--studio-ink);
}
.content-empty p {
  font-size: 14px;
}
.canvas-area {
  grid-column: 3;
  grid-row: 1;
  padding: 0;
  min-width: 0;
  overflow: auto;
  background: var(--studio-ground);
  background-image: none;
  position: relative;
  overscroll-behavior: contain;
}
.canvas-tools {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 12px 16px;
  margin: 0;
  min-height: 76px;
  background: var(--studio-ground);
  border: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 5;
}
.canvas-tool-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.canvas-tools :is(button, select) {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
}
.canvas-tools button:hover {
  background: #e5ece8;
}
.canvas-tools button[aria-pressed="true"] {
  background: #e3eae5;
  color: var(--studio-ink);
  font-weight: 600;
}
.canvas-caption {
  display: none;
  font-size: 12px;
}
.canvas-tools #zoom {
    width: 112px;
}
.canvas-tools #history {
  font-size: 12px;
}
.canvas-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 8px 24px 24px;
  overflow: visible;
}
.canvas-wrap {
  flex: none;
  width: 390px;
  max-width: none;
  min-height: 680px;
  max-height: calc(100dvh - 224px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--studio-elevation);
  margin: 0;
  scrollbar-width: thin;
}
.canvas-wrap:before,
.canvas-wrap:after {
  display: none !important;
}
.canvas-wrap.desktop-canvas {
  min-height: 760px;
  border-radius: 16px;
}
.canvas-wrap.editing [data-block-id]:hover {
  outline: 1px dashed #686e69;
  outline-offset: 2px;
}
.canvas-wrap.editing [data-block-id].is-selected {
  outline: 2px solid var(--studio-accent);
  outline-offset: 2px;
}
.canvas-wrap.editing .canvas-drop-before {
  box-shadow: inset 0 4px var(--studio-accent) !important;
}
.canvas-wrap.editing .canvas-drop-after {
  box-shadow: inset 0 -4px var(--studio-accent) !important;
}
.canvas-wrap.editing [data-block-id].canvas-drop-inside,
.canvas-wrap.editing.canvas-drop-end,
.canvas-wrap [contenteditable="true"] {
  outline-color: var(--studio-accent);
}
.canvas-note {
  text-align: center;
  font-size: 12px;
  color: var(--studio-muted);
  margin: 0 0 24px;
}
.studio-preview .studio-rail,
.studio-preview .left-panel,
.studio-preview .properties {
  display: none;
}
.studio-preview .workspace {
  grid-template-columns: 1fr;
}
.studio-preview .canvas-area {
  grid-column: 1;
}
.studio-preview .canvas-stage {
  padding-top: 16px;
}
.mobile-panel-toggle {
  display: none;
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18201c70;
  padding: 24px;
}
.dialog {
  width: min(620px, calc(100vw - 48px));
  max-width: none;
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  border-radius: var(--dialog-radius);
  background: #fff;
  padding: 0 28px 28px;
  box-shadow: 0 24px 80px #111c2133;
  font-size: 15px;
}
.dialog > header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-height: 72px;
  border-bottom: 1px solid var(--studio-line);
  margin: 0 -28px 24px;
  padding: 16px 72px;
}
.dialog > header h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  text-align: center;
}
.dialog > header #close-dialog {
  position: absolute;
  right: 16px;
  top: 14px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 12px;
  border-radius: 50%;
  background: transparent;
}
.dialog > header #close-dialog:hover {
  background: #f0f3f1;
}
.dialog p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--studio-muted);
}
.dialog .row-actions {
  margin-top: 24px;
  gap: 12px;
}
.dialog .error {
  color: #a43024;
}
.dialog [hidden],
#studio [hidden] {
  display: none !important;
}
.content-dialog {
  width: min(1040px, calc(100vw - 48px));
  padding: 0 32px 16px;
  height: min(760px, 90dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.content-dialog > header {
  margin: 0 -32px 16px;
  flex: none;
  min-height: 64px;
}
.content-picker {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.picker-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 28px;
  background: #f1f3f1;
  padding: 0 18px;
  flex: none;
  margin: 0 8px 28px;
}
.picker-search:focus-within {
  border-color: #8d9990;
}
.picker-search > .studio-icon {
  width: 22px;
  height: 22px;
}
.dialog .picker-search .block-search {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 12px 0;
  height: 52px;
  min-height: 52px;
  box-shadow: none;
  font-size: 16px;
}
.dialog .picker-search .block-search:focus-visible {
  outline: none;
}
.picker-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.picker-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  padding: 4px 0;
}
.picker-categories > button {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 15px;
  min-height: 44px;
}
.picker-categories > button[aria-selected="true"] {
  background: #f0f2f0;
}
.picker-categories > button:hover {
  background: #f6f8f6;
}
.picker-categories .studio-icon {
  width: 21px;
  height: 21px;
}
.picker-main {
  min-width: 0;
  overflow: auto;
  padding: 4px 8px 16px 0;
}
.picker-main > h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 20px 12px 12px;
}
.picker-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.picker-quick-actions button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: #f1f3f1;
  font-size: 14px;
}
.picker-quick-actions button:hover {
  background: #e7ece8;
}
.picker-quick-actions .studio-icon {
  width: 23px;
  height: 23px;
}
.picker-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.content-choice:hover {
  background: #f4f6f4;
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #eff2ef;
}
.choice-icon > .studio-icon {
  width: 24px;
  height: 24px;
}
.choice-youtube {
  background: #fff0ef;
}
.choice-youtube > .studio-icon {
  filter: invert(14%) sepia(89%) saturate(5190%) hue-rotate(354deg)
    brightness(99%) contrast(119%);
}
.choice-instagram {
  background: #f8e8f0;
}
.choice-tiktok {
  background: #e9f0f0;
}
.choice-send {
  background: #202321;
}
.choice-send > .studio-icon {
  filter: invert(1);
}
.content-choice > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.content-choice strong {
  display: block;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
}
.content-choice small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--studio-muted);
  line-height: 1.45;
}
.content-choice > .choice-plus {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}
.picker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--studio-line);
  padding-top: 12px;
  margin-top: 12px;
  flex: none;
}
.picker-placement {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 12px !important;
  color: var(--studio-muted) !important;
}
.picker-placement input {
  width: 16px;
  height: 16px;
}
.picker-footer-actions {
  display: flex;
  gap: 8px;
}
.picker-footer-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-height: 40px;
  padding: 8px 12px;
}
.paste-link-result {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--studio-line);
  background: #f5f8f5;
  width: 100%;
  padding: 16px;
  text-align: left;
}
.paste-link-result span {
  flex: 1;
  min-width: 0;
}
.paste-link-result strong,
.paste-link-result small {
  display: block;
}
.paste-link-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  white-space: nowrap;
  color: var(--studio-muted);
}
.picker-empty {
  padding: 32px 12px;
}
.configure-dialog {
  width: min(560px, calc(100vw - 48px));
}
.configure-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.configure-intro p {
  margin: 0;
}
.content-configure > label {
  display: block;
  margin: 20px 0;
}
.configure-media {
  margin: 24px 0;
}
.configure-media > img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}
.configure-media button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.configure-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.configure-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
}
.block-dialog {
  width: min(760px, calc(100vw - 48px));
}
.block-builder > p {
  margin-bottom: 24px;
}
.block-builder > label {
  display: block;
  margin-bottom: 28px;
}
.block-layout-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.block-layout-choice {
  position: relative;
  margin: 0 !important;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  padding: 10px !important;
  cursor: pointer;
  overflow: hidden;
}
.block-layout-choice:hover {
  border-color: #87928b;
  background: #fafcfa;
}
.block-layout-choice:has(input:checked) {
  border-color: var(--studio-ink);
  background: #f5f8f5;
  box-shadow: 0 2px 4px #14201a10;
}
.block-layout-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.block-layout-choice:has(input:focus-visible) {
  outline: 2px solid var(--studio-focus);
  outline-offset: 3px;
}
.block-layout-choice > strong {
  display: block;
  font-size: 14px;
  margin: 12px 2px 4px;
  font-weight: 600;
}
.block-layout-choice > small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: var(--studio-muted);
  min-height: 32px;
  margin: 0 2px;
}
.layout-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #14201a20;
}
.layout-check img {
  width: 16px;
  height: 16px;
}
.block-layout-choice:has(input:checked) .layout-check {
  display: grid;
}
.layout-preview {
  height: 124px;
  display: flex;
  gap: 5px;
  border-radius: 6px;
  background: #e6f0e9;
  padding: 10px;
  overflow: hidden;
}
.layout-preview-item {
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  flex: none;
}
.layout-preview-item > img {
  width: 26px;
  height: 30px;
  object-fit: cover;
}
.layout-preview-item > span {
  display: block;
  min-width: 0;
}
.layout-preview-item b {
  display: block;
  font-size: 5px;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0;
}
.layout-preview-item small {
  display: block;
  font-size: 4px;
  color: #626864;
  line-height: 1.4;
}
.layout-preview-list {
  flex-direction: column;
  justify-content: center;
}
.layout-preview-list .layout-preview-item {
  height: 28px;
  padding: 3px;
}
.layout-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-content: start;
}
.layout-preview-grid .layout-preview-item {
  display: block;
  padding: 3px;
}
.layout-preview-grid .layout-preview-item > img {
  width: 100%;
  height: 35px;
}
.layout-preview-grid .layout-preview-item:last-child {
  display: none;
}
.layout-preview-carousel {
  align-items: center;
  padding-right: 0;
}
.layout-preview-carousel .layout-preview-item {
  display: block;
  width: 68%;
  padding: 4px;
}
.layout-preview-carousel .layout-preview-item > img {
  width: 100%;
  height: 60px;
}
.layout-preview-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.layout-preview-showcase .layout-preview-item {
  display: block;
  padding: 3px;
}
.layout-preview-showcase .layout-preview-item:first-child {
  grid-row: span 2;
}
.layout-preview-showcase .layout-preview-item > img {
  width: 100%;
  height: 22px;
}
.layout-preview-showcase .layout-preview-item:first-child > img {
  height: 64px;
}
.drawer.dragging-content {
  pointer-events: none;
  background: transparent;
}
.drawer.dragging-content .dialog {
  opacity: 0.15;
}
.inspector-welcome {
  padding: 28px 0;
  color: var(--studio-muted);
}
.inspector-welcome h2 {
  color: var(--studio-ink);
  margin-top: 24px;
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}
.welcome-actions button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.welcome-actions button > .studio-icon:last-child {
  margin-left: auto;
}
.inspector-tip {
  font-size: 13px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  max-width: min(520px, calc(100vw - 32px));
  border-radius: 12px;
  padding: 14px 20px;
  background: #202a23;
  color: white;
  box-shadow: 0 8px 30px #14201a22;
  font-size: 14px;
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 200px minmax(0, 1.35fr) minmax(460px, 1fr);
  }
  .studio-rail {
    align-items: stretch;
    padding: 32px 16px 20px;
  }
  .rail-tabs {
    gap: 8px;
  }
  .rail-tabs > button {
    width: 100%;
    min-height: 56px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 12px;
    gap: 12px;
    font-size: 14px;
  }
  .rail-tabs > button > .studio-icon {
    width: 20px;
    height: 20px;
    padding: 6px;
    border-radius: 8px;
    background: transparent;
  }
  .rail-tabs > button[aria-selected="true"] {
    background: #eaf0ec;
  }
  .rail-tabs > button[aria-selected="true"] > .studio-icon {
    outline: none;
    background: transparent;
  }
  .rail-back {
    justify-content: flex-start;
    padding: 0 12px;
  }
  .rail-back span {
    display: block;
  }
  .panel {
    padding: 32px 40px;
  }
  .properties {
    padding: 24px 40px 40px;
  }
  .canvas-tools {
    padding-top: 24px;
  }
}
@media (max-width: 1180px) and (min-width: 851px) {
  .workspace {
    grid-template-columns: 76px minmax(0, 1.2fr) minmax(360px, 1fr);
  }
  .panel {
    padding: 28px 24px;
  }
  .properties {
    padding: 20px 24px 32px;
  }
  .studio-top {
    padding: 0 16px;
    gap: 12px;
  }
  .studio-top .page-title {
    width: 130px;
  }
  .top-actions .save-status {
    display: none;
  }
  .publication-status {
    font-size: 11px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-actions > button {
    padding: 8px 12px;
  }
  .canvas-stage {
    padding: 8px 12px 24px;
  }
  .layer {
    padding-right: 6px;
  }
  .layer-symbol {
    width: 36px;
    height: 36px;
  }
  .layer > button[data-select] {
    gap: 8px;
  }
  .layer-visibility {
    min-width: 36px;
  }
  .layer-grip {
    width: 10px;
  }
}
@media (max-width: 850px) {
  body {
    overflow: hidden;
  }
  .studio-top {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }
  .studio-project {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .studio-brand {
    font-size: 20px;
  }
  .studio-brand-icon,
  .studio-brand-mark {
    width: 23px;
    height: 23px;
  }
  .project-separator,
  .project-type,
  .studio-top .page-title {
    display: none;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions > button {
    font-size: 13px;
    min-height: 40px;
    padding: 9px 12px;
  }
  .top-actions .save-status,
  .top-actions .history-actions,
  #account,
  #share {
    display: none;
  }
  .top-actions #save-status {
    display: block;
    position: absolute;
    left: 12px;
    bottom: 2px;
    font-size: 10px;
    line-height: 12px;
    color: var(--studio-muted);
  }
  .top-actions #publication-status {
    display: block;
    position: absolute;
    left: 140px;
    bottom: 2px;
    font-size: 10px;
    line-height: 12px;
    background: transparent;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .studio-top .studio-brand {
    margin-top: -8px;
  }
  .workspace {
    display: block;
    height: calc(100dvh - 128px);
  }
  .studio-rail {
    display: none;
  }
  .left-panel,
  .properties {
    position: fixed;
    inset: 64px 0 64px;
    z-index: 10;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 24px;
    display: none;
    box-shadow: none;
    overflow: auto;
  }
  .show-layers:not(.show-properties) .left-panel {
    display: block;
  }
  .show-properties .properties {
    display: block;
  }
  .properties {
    padding: 16px 24px 32px;
  }
  .inspector-top {
    margin-bottom: 16px;
  }
  .canvas-area {
    height: 100%;
    width: 100%;
    padding: 0;
  }
  .canvas-tools {
    padding: 16px 8px;
    min-height: 64px;
    gap: 4px;
  }
  .canvas-stage {
    padding: 8px 16px 20px;
  }
  .canvas-wrap {
    min-height: 620px;
    max-height: calc(100dvh - 240px);
    border-radius: 20px;
  }
  .canvas-note {
    font-size: 12px;
  }
  .mobile-panel-toggle {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--studio-line);
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-panel-toggle > button {
    border: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    font-size: 10px;
    min-height: 56px;
    padding: 6px 2px;
    color: var(--studio-muted);
  }
  .mobile-panel-toggle .studio-icon {
    width: 21px;
    height: 21px;
  }
  #studio[data-editor-tab="layers"].show-layers #mobile-layers,
  #studio[data-editor-tab="header"].show-properties #mobile-header,
  #studio[data-editor-tab="design"].show-properties #mobile-design {
    color: var(--studio-ink);
    font-weight: 700;
    background: #f3f6f4;
  }
  .studio-preview .canvas-area {
    display: block;
  }
  .studio-preview .left-panel,
  .studio-preview .properties {
    display: none;
  }

  .dialog {
    max-height: 94dvh;
  }
  .content-dialog {
    width: calc(100vw - 32px);
    height: min(820px, 94dvh);
    padding: 0 20px 16px;
  }
  .content-dialog > header {
    margin: 0 -20px 16px;
  }
  .picker-body {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
  }
  .picker-categories > button {
    font-size: 13px;
    padding: 10px 12px;
    gap: 10px;
  }
  .picker-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .picker-quick-actions button {
    min-height: 80px;
  }
  .content-choice {
    padding: 10px 4px;
  }
  .content-choice small {
    font-size: 12px;
  }
  .block-layout-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .block-layout-choice small {
    min-height: 16px;
  }
  .block-dialog {
    width: calc(100vw - 32px);
  }
  .toast {
    bottom: 80px;
  }
}
@media (max-width: 560px) {
  .left-panel {
    padding: 24px 20px;
  }
  .properties {
    padding: 12px 20px 32px;
  }
  .content-heading {
    margin-bottom: 20px;
  }
  .content-heading h1 {
    font-size: 24px !important;
  }
  .profile-card {
    padding-bottom: 20px;
  }
  .content-tabs {
    margin-bottom: 20px;
  }
  .content-actions {
    gap: 8px;
  }
  .content-actions > button {
    font-size: 13px;
    padding: 10px;
  }
  .layer-search {
    margin-bottom: 16px !important;
  }
  .layer {
    padding: 8px 4px;
    gap: 2px;
    min-height: 76px;
  }
  .layer > button[data-select] {
    gap: 8px;
  }
  .layer-symbol {
    width: 36px;
    height: 36px;
  }
  .layer-label strong {
    font-size: 13px;
  }
  .layer-label small {
    font-size: 11px;
  }
  .layer-grip {
    width: 10px;
  }
  .layer-visibility {
    min-width: 36px;
  }
  .layer-menu > summary {
    width: 30px;
  }
  .layer .layer-add,
  .layer .layer-collapse {
    width: 28px;
    min-width: 28px;
    padding: 5px;
  }
  .content-row-wrap {
    margin-left: calc(var(--depth) * 10px);
  }
  .content-footer-card {
    padding: 20px 8px;
  }
  .drawer {
    padding: 0;
  }
  .dialog {
    width: 100%;
    height: auto;
    max-height: 100dvh;
    border-radius: 20px 20px 0 0;
    align-self: flex-end;
    padding: 0 20px 24px;
  }
  .dialog > header {
    margin: 0 -20px 20px;
    padding: 16px 60px;
    min-height: 64px;
  }
  .dialog > header #close-dialog {
    right: 8px;
    top: 10px;
  }
  .content-dialog {
    height: 100dvh;
    border-radius: 0;
    max-height: 100dvh;
    padding: 0 16px 12px;
  }
  .content-dialog > header {
    margin: 0 -16px 16px;
  }
  .picker-search {
    margin: 0 0 16px;
  }
  .dialog .picker-search .block-search {
    font-size: 14px;
  }
  .picker-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .picker-categories {
    flex-direction: row;
    gap: 4px;
    overflow: auto;
    min-height: 44px;
    flex: none;
    padding: 0 0 4px;
  }
  .picker-categories > button {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px;
    gap: 6px;
  }
  .picker-categories .studio-icon {
    width: 16px;
    height: 16px;
  }
  .picker-main {
    flex: 1;
    padding-right: 0;
  }
  .picker-quick-actions {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .picker-quick-actions button {
    font-size: 11px;
    min-height: 84px;
    padding: 12px;
    border-radius: 14px;
  }
  .picker-quick-actions .studio-icon {
    width: 20px;
    height: 20px;
  }
  .picker-main > h3 {
    font-size: 14px;
    margin-top: 20px;
  }
  .content-choice {
    min-height: 74px;
    padding: 12px 4px;
    gap: 12px;
  }
  .content-choice strong {
    font-size: 15px;
  }
  .content-choice small {
    font-size: 12px;
  }
  .picker-footer {
    gap: 8px;
  }
  .picker-footer-actions {
    gap: 4px;
  }
  .picker-footer-actions button {
    padding: 8px;
    font-size: 10px;
    min-height: 40px;
  }
  .picker-placement {
    font-size: 10px !important;
    gap: 4px;
  }
  .picker-footer-actions .studio-icon {
    width: 14px;
    height: 14px;
  }
  .block-layout-options {
    gap: 10px;
  }
  .block-dialog .layout-preview {
    height: 112px;
  }
  .block-dialog {
    max-height: 100dvh;
  }
  .configure-actions {
    position: sticky;
    bottom: -24px;
    background: #fff;
    padding: 12px 0;
    margin-top: 20px;
  }
  .configure-dialog {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
