.layout-playground__hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(8, 145, 178, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(59, 130, 246, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.layout-playground__title.ant-typography {
  margin-top: 14px;
  margin-bottom: 8px;
}

.layout-playground__meta {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.layout-playground__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #155e75;
}

.layout-playground__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.layout-playground__control-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.layout-playground__control-card--wide {
  grid-column: 1 / -1;
}

.layout-playground__control-card .ant-input-number,
.layout-playground__control-card .ant-select {
  width: 100%;
}

.layout-playground__size-grid {
  display: grid;
  gap: 12px;
}

.layout-playground__size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 220px);
  align-items: center;
  gap: 12px;
}

.layout-playground__size-row-label {
  min-width: 0;
  color: #0f172a;
  font-size: 14px;
}

.layout-playground__size-row .ant-input-number,
.layout-playground__size-row-field {
  width: 100%;
}

.layout-playground__unit-toggle {
  min-width: 56px;
  font-weight: 600;
}

.layout-playground__size-help.ant-typography {
  margin-bottom: 0;
}

.layout-playground__preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.layout-playground__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.layout-playground__storage-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.92);
}

.layout-playground__storage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.layout-playground__storage-copy.ant-typography {
  margin-top: 6px;
  margin-bottom: 0;
}

.layout-playground__codex-chat-type-copy.ant-typography {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

.layout-playground__storage-input {
  width: 100%;
}

.layout-playground__bottom-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92)),
    rgba(255, 255, 255, 0.94);
}

.layout-playground__bottom-menu-copy {
  flex: 1;
  min-width: 0;
}

.layout-playground__bottom-menu-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.layout-playground__saved-item {
  padding-inline: 14px !important;
  border: 1px solid transparent;
  border-radius: 18px;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.layout-playground__saved-item:hover {
  background: rgba(248, 250, 252, 0.86);
  border-color: rgba(148, 163, 184, 0.18);
}

.layout-playground__saved-item--active {
  border-color: rgba(59, 130, 246, 0.28);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.layout-playground__saved-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layout-playground__preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.layout-playground__fullscreen-shell {
  display: flex;
  width: 100%;
  height: calc(100dvh - 92px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.layout-playground__fullscreen-shell--embedded {
  height: 100%;
}

.layout-playground__fullscreen-shell--saved-menu {
  overflow: hidden;
}

.layout-playground__fullscreen-shell--saved-fit {
  min-height: 0;
  overflow: hidden;
}

.layout-playground__fullscreen-shell--device {
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.layout-playground__preview-frame {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.layout-playground__preview-wrap .layout-playground__preview-frame {
  min-height: 0;
  height: clamp(360px, 58dvh, 620px);
  overflow: hidden;
}

.layout-playground__preview-wrap .layout-playground__preview-frame > * {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.layout-playground__preview-frame--fullscreen {
  min-height: 0;
  height: 100%;
}

.layout-playground__preview-frame--saved-detail {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.layout-playground__preview-frame--gallery {
  flex: 1;
  min-height: 0;
  padding: 10px;
  border-radius: 22px;
}

.layout-playground__saved-device-surface {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.layout-playground__saved-device-surface--record,
.layout-playground__saved-device-surface--record > *,
.layout-playground__saved-device-surface--record .layout-playground__splitter,
.layout-playground__saved-device-surface--record .layout-playground__splitter-frame,
.layout-playground__saved-device-surface--record .layout-playground__splitter-frame .ant-splitter-panel,
.layout-playground__saved-device-surface--record .layout-playground__pane,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-body,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-body > *,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-scroll-content,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-scroll-content > * {
  min-height: 0;
}

.layout-playground__saved-device-surface--record,
.layout-playground__saved-device-surface--record > *,
.layout-playground__saved-device-surface--record .layout-playground__splitter,
.layout-playground__saved-device-surface--record .layout-playground__splitter-frame,
.layout-playground__saved-device-surface--record .layout-playground__splitter-frame .ant-splitter-panel,
.layout-playground__saved-device-surface--record .layout-playground__pane,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-body,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-body > *,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-scroll-content,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-scroll-content > * {
  height: 100%;
}

.layout-playground__saved-device-surface--record .layout-playground__pane-component-body--content-height,
.layout-playground__saved-device-surface--record .layout-playground__pane-component-body--content-height > *,
.layout-playground__saved-device-surface--record
  .layout-playground__pane-component-body--content-height
  .layout-playground__pane-component-scroll-content--auto-height,
.layout-playground__saved-device-surface--record
  .layout-playground__pane-component-body--content-height
  .layout-playground__pane-component-scroll-content--auto-height
  > * {
  height: auto;
}

.layout-playground__saved-device-surface--record,
.layout-playground__saved-device-surface--record > * {
  overflow: hidden;
}

.layout-playground__saved-device-surface--menu {
  flex: 1 1 auto;
  height: 100%;
}

.layout-playground__saved-empty-surface,
.layout-playground__saved-card-empty {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(14, 116, 144, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.layout-playground__saved-empty-surface {
  flex-direction: column;
  border: none;
  border-radius: 0;
  background: transparent;
}

.layout-playground__saved-browser {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.layout-playground__saved-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  height: 100%;
  width: 100%;
  min-height: 0;
}

.layout-playground__saved-fit-viewport {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.layout-playground__saved-fit-stage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.layout-playground__saved-detail--fit {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  transform-origin: top left;
  will-change: transform;
}

.layout-playground__saved-detail--fit,
.layout-playground__saved-detail--fit > * {
  max-width: none;
}

.layout-playground__saved-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

.layout-playground__saved-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.layout-playground__saved-browser-layout {
  min-height: calc(100vh - 220px);
}

.layout-playground__saved-browser-preview {
  min-width: 0;
}

.layout-playground__saved-gallery {
  --layout-gallery-columns: 1;
  --layout-gallery-rows: 1;
  display: grid;
  grid-template-columns: repeat(var(--layout-gallery-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--layout-gallery-rows), minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  align-items: stretch;
}

.layout-playground__saved-card {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  flex: 1;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.layout-playground__saved-card:hover {
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
}

.layout-playground__saved-card--active {
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.1);
}

.layout-playground__saved-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}

.layout-playground__empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border: 1px dashed rgba(14, 116, 144, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.28), transparent 30%),
    rgba(255, 255, 255, 0.76);
}

.layout-playground__empty-state--fullscreen {
  flex: 1;
  min-height: 0;
  height: 100%;
}

.layout-playground__saved-browser-loading {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.layout-playground__saved-browser-loading .ant-list {
  flex: 1;
  min-height: 0;
}

.layout-playground__empty-state .ant-typography {
  margin-bottom: 0;
}

.layout-playground__editor-card.ant-card,
.layout-playground__editor-card.ant-card .ant-card-body,
.layout-playground__editor-stack.ant-space,
.layout-playground__editor-stack.ant-space .ant-space-item {
  min-height: 0;
}

.layout-playground__editor-card.ant-card {
  min-height: 100%;
}

.layout-playground__editor-card.ant-card .ant-card-body {
  height: 100%;
}

.layout-playground__editor-stack.ant-space {
  display: flex;
  height: 100%;
}

.layout-playground__splitter {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 420px;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
}

.layout-playground__splitter--preview {
  min-height: 0;
}

.layout-playground__splitter-frame {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: inherit;
  min-width: 0;
}

.layout-playground__splitter-frame .ant-splitter-panel {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.layout-playground__splitter-frame.ant-splitter-vertical > .ant-splitter-panel {
  align-self: stretch;
}

.layout-playground__splitter--collapsed {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: inherit;
}

.layout-playground__splitter--collapsed.layout-playground__splitter--preview {
  min-height: 0;
}

.layout-playground__splitter--collapsed-horizontal {
  flex-direction: row;
}

.layout-playground__splitter--collapsed-vertical {
  flex-direction: column;
}

.layout-playground__splitter--collapsed > :first-child {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.layout-playground__splitter-toggle-dock {
  --layout-toggle-button-size: 24px;
  --layout-toggle-inline-overlap: 12px;
  --layout-toggle-block-overlap: 10px;
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.layout-playground__splitter-toggle-dock .ant-btn {
  pointer-events: auto;
}

.layout-playground__splitter-toggle-button.ant-btn {
  width: var(--layout-toggle-button-size);
  min-width: var(--layout-toggle-button-size);
  height: var(--layout-toggle-button-size);
  padding: 0;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: none;
  color: #0f172a;
  backdrop-filter: none;
}

.layout-playground__splitter-toggle-button.ant-btn.ant-btn-primary {
  background: rgba(14, 116, 144, 0.88);
  border-color: rgba(14, 116, 144, 0.88);
  color: #f8fafc;
}

.layout-playground__splitter-toggle-dock--horizontal {
  top: 50%;
  left: 50%;
  flex-direction: column;
  min-width: calc(var(--layout-toggle-button-size) + 6px);
  border-radius: 999px;
  transform: translate(calc(-50% - var(--layout-toggle-inline-overlap)), -50%);
}

.layout-playground__splitter-toggle-dock--vertical {
  top: 50%;
  left: 50%;
  flex-direction: row;
  min-height: calc(var(--layout-toggle-button-size) + 6px);
  border-radius: 999px;
  transform: translate(-50%, calc(-50% + var(--layout-toggle-block-overlap)));
}

.layout-playground__splitter--depth-2 {
  background: rgba(186, 230, 253, 0.2);
}

.layout-playground__splitter--depth-3 {
  background: rgba(224, 231, 255, 0.24);
}

.layout-playground__splitter--depth-4 {
  background: rgba(254, 240, 138, 0.18);
}

.layout-playground__pane {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.layout-playground__pane:hover {
  background: rgba(255, 255, 255, 0.48);
}

.layout-playground__splitter-frame .ant-splitter-panel > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.layout-playground__pane--readonly {
  cursor: default;
}

.layout-playground__pane--readonly:hover {
  transform: none;
  box-shadow: none;
}

.layout-playground__pane--preview {
  gap: 0;
  padding: 0;
}

.layout-playground__pane--surface {
  gap: 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.layout-playground__pane:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.layout-playground__pane--interaction-target::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(14, 116, 144, 0.36);
  border-radius: 18px;
  pointer-events: none;
  animation: layout-playground-interaction-pulse 1.3s ease;
}

.layout-playground__pane-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 32px;
  position: relative;
  z-index: 1;
}

.layout-playground__pane-toolbar--overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  min-height: 0;
}

.layout-playground__pane-toolbar--surface-overlay {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 12px;
}

.layout-playground__pane-toolbar--compact {
  justify-content: flex-end;
}

.layout-playground__pane-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
}

.layout-playground__pane-toolbar-actions .ant-btn {
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 32px;
  white-space: normal;
  text-align: center;
}

.layout-playground__interaction-layer {
  position: absolute;
  inset: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.layout-playground__interaction-badges,
.layout-playground__interaction-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-playground__interaction-notes {
  justify-content: flex-end;
  margin-top: auto;
}

.layout-playground__interaction-badge.ant-tag {
  margin-inline-end: 0;
  padding-inline: 10px;
  padding-block: 4px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.layout-playground__interaction-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(280px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  opacity: 0.9;
  transform: translateY(6px);
}

.layout-playground__interaction-note--global {
  max-width: min(320px, calc(100% - 24px));
}

.layout-playground__interaction-note--active {
  opacity: 1;
  transform: translateY(0);
  animation: layout-playground-interaction-note-in 0.28s ease-out;
}

.layout-playground__interaction-note .ant-typography {
  margin-bottom: 0;
}

.layout-playground__saved-layout-summary-actions {
  margin-top: 0;
}

.layout-playground__global-interaction-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.layout-playground__saved-device-surface > .layout-playground__global-interaction-stack {
  top: 52px;
}

.layout-playground__global-interaction-stack--gallery {
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
}

.layout-playground__interaction-note--gallery {
  max-width: min(220px, calc(100% - 12px));
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.layout-playground__pane--selected:not(.layout-playground__pane--preview) .layout-playground__pane-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  justify-content: flex-end;
}

.layout-playground__interaction-implementation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}

.layout-playground__interaction-item-actions {
  margin-top: 4px;
}

.layout-playground__pane--primary {
  background: rgba(207, 250, 254, 0.42);
}

.layout-playground__pane--secondary {
  background: rgba(224, 231, 255, 0.4);
}

.layout-playground__pane--accent {
  background: rgba(254, 249, 195, 0.42);
}

.layout-playground__pane--neutral {
  background: rgba(226, 232, 240, 0.48);
}

.layout-playground__pane--surface.layout-playground__pane--primary,
.layout-playground__pane--surface.layout-playground__pane--secondary,
.layout-playground__pane--surface.layout-playground__pane--accent,
.layout-playground__pane--surface.layout-playground__pane--neutral,
.layout-playground__pane--hidden {
  background: transparent;
}

.layout-playground__pane-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
}

.layout-playground__pane-placeholder {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  justify-content: center;
  padding: 40px 0 4px;
}

.layout-playground__pane--preview .layout-playground__pane-placeholder {
  padding: 0;
}

.layout-playground__pane--surface .layout-playground__pane-placeholder {
  align-items: stretch;
  justify-content: stretch;
  padding: 12px 12px 72px;
}

.layout-playground__empty-pane-preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.layout-playground__empty-pane-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.layout-playground__empty-pane-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layout-playground__empty-pane-preview-copy .ant-typography {
  margin-bottom: 0;
}

.layout-playground__empty-pane-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.layout-playground__empty-pane-preview-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.layout-playground__empty-pane-preview-meta-item span {
  color: #475569;
  font-size: 12px;
}

.layout-playground__empty-pane-preview-meta-item strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}

.layout-playground__empty-pane-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-playground__empty-pane-preview-note.ant-input {
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  resize: none;
}

.layout-playground__pane-placeholder-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.layout-playground__pane-placeholder-card .ant-typography {
  margin-bottom: 0;
}

.layout-playground__saved-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  gap: 12px;
}

.layout-playground__saved-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.layout-playground__saved-selection-summary-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.layout-playground__saved-selection-summary-copy .ant-typography {
  margin-bottom: 0;
}

.layout-playground__saved-selection-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.layout-playground__saved-inspector-main,
.layout-playground__saved-pane-list {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.layout-playground__saved-inspector-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.layout-playground__saved-inspector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.layout-playground__saved-inspector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.layout-playground__saved-inspector-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}

.layout-playground__saved-inspector-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-playground__saved-inspector-path .ant-tag {
  margin-inline-end: 0;
  padding-inline: 10px;
  padding-block: 5px;
  border-radius: 999px;
}

.layout-playground__saved-pane-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.layout-playground__saved-pane-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.layout-playground__saved-pane-chip:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.92);
}

.layout-playground__saved-pane-chip--active {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(219, 234, 254, 0.74);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.layout-playground__saved-pane-chip-title {
  font-weight: 700;
}

.layout-playground__saved-pane-chip-meta {
  color: #64748b;
  font-size: 12px;
}

.layout-playground__pane-component-body {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.84);
}

.layout-playground__pane-component-body--scrollable {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.layout-playground__pane-component-body--content-height {
  flex: 0 0 auto;
  overflow: visible;
}

.layout-playground__pane-component-scroll-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  width: 100%;
}

.layout-playground__pane-component-scroll-content > * {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  min-width: 0;
  width: 100%;
}

.layout-playground__pane-component-scroll-content--auto-height {
  flex: 0 0 auto;
  height: auto;
  min-height: auto;
}

.layout-playground__pane-component-scroll-content--auto-height > * {
  flex: 0 0 auto;
  height: auto !important;
  min-height: auto !important;
}

.layout-playground__memo-widget-preview {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 14px 14px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 248, 216, 0.98) 0,
      rgba(255, 248, 216, 0.98) 37px,
      rgba(236, 221, 177, 0.76) 37px,
      rgba(236, 221, 177, 0.76) 38px
    );
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.layout-playground__memo-widget-preview--flat {
  gap: 10px;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.layout-playground__memo-widget-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.layout-playground__memo-widget-preview-head .ant-typography:first-child {
  color: #111827;
  font-size: 15px;
}

.layout-playground__memo-widget-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.layout-playground__memo-widget-preview-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
}

.layout-playground__memo-widget-preview-toolbar .ant-btn {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  color: #6b7280;
  font-size: 13px;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-toolbar .ant-btn:not(:disabled):hover {
  background: rgba(14, 116, 144, 0.08);
}

.layout-playground__memo-widget-preview-body {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.layout-playground__memo-widget-preview-body--list {
  overflow: hidden;
}

.layout-playground__memo-widget-preview-empty,
.layout-playground__memo-widget-preview-sheet,
.layout-playground__memo-widget-preview-editor {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
}

.layout-playground__memo-widget-preview-sheet {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.84);
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-sheet {
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.98);
}

.layout-playground__memo-widget-preview-empty {
  align-items: center;
  justify-content: center;
}

.layout-playground__memo-widget-preview-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
}

.layout-playground__memo-widget-preview-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.94);
  text-align: left;
  cursor: pointer;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-list {
  gap: 6px;
  padding: 8px;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-item {
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #fff;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-item--active {
  border-color: rgba(14, 116, 144, 0.22);
  background: rgba(240, 249, 255, 0.96);
}

.layout-playground__memo-widget-preview-item--active {
  background: rgba(254, 240, 138, 0.42);
}

.layout-playground__memo-widget-preview-item-time {
  color: rgba(100, 116, 139, 0.92);
  font-size: 12px;
}

.layout-playground__memo-widget-preview-item-copy {
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout-playground__memo-widget-preview-editor {
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-editor {
  border-radius: 16px;
}

.layout-playground__memo-widget-preview-editor .ant-input-textarea {
  display: flex;
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.layout-playground__memo-widget-preview-editor .ant-input-textarea textarea {
  height: 100% !important;
  max-height: 100% !important;
}

.layout-playground__memo-widget-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 6px 6px 0;
  color: rgba(100, 116, 139, 0.92);
  font-size: 12px;
  flex-wrap: nowrap;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-meta {
  min-height: 32px;
  padding: 10px 4px 0;
  color: #64748b;
}

.layout-playground__memo-widget-preview-meta > :first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-playground__memo-widget-preview-meta > :last-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.layout-playground__memo-widget-preview-input.ant-input,
.layout-playground__memo-widget-preview-editor .ant-input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  padding: 8px 6px calc(34px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  color: #3f3a2f;
  font-size: 16px;
  line-height: 38px;
  background: transparent;
  resize: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-input.ant-input,
.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-editor .ant-input {
  padding: 10px 4px calc(20px + env(safe-area-inset-bottom, 0px));
  color: #0f172a;
  line-height: 1.65;
}

.layout-playground__memo-widget-preview--flat .layout-playground__memo-widget-preview-editor .ant-input::placeholder {
  color: #94a3b8;
}

.layout-playground__action-preview {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92));
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.layout-playground__action-preview-button.ant-btn {
  height: 46px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(3, 105, 161, 0.18);
}

.layout-playground__action-preview-copy {
  font-size: 12px;
  text-align: center;
}

.layout-playground__select-preview {
  display: flex;
  flex: 1 1 0;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(186, 230, 253, 0.85), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 44px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  justify-content: stretch;
}

.layout-playground__select-preview .ant-select {
  width: 100%;
  height: 100%;
}

.layout-playground__select-preview .ant-select-selector {
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 12px !important;
}

.layout-playground__select-preview .ant-select-selection-wrap,
.layout-playground__select-preview .ant-select-selection-search,
.layout-playground__select-preview .ant-select-selection-item,
.layout-playground__select-preview .ant-select-selection-placeholder {
  display: flex;
  align-items: center;
}

.layout-playground__select-preview .ant-select-selection-item,
.layout-playground__select-preview .ant-select-selection-placeholder {
  font-weight: 600;
}

.layout-playground__base-input-preview {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
}

.layout-playground__base-input-preview .layout-playground__base-input-preview-field.ant-input,
.layout-playground__base-input-preview .layout-playground__base-input-preview-field.ant-input-outlined {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.layout-playground__base-input-preview .layout-playground__base-input-preview-field.ant-input::placeholder {
  color: #64748b;
}

.layout-playground__base-input-preview--fill {
  flex: 1 1 0;
  align-items: stretch;
  height: 100%;
  border-radius: 0;
  background:
    radial-gradient(circle at top right, rgba(186, 230, 253, 0.85), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 44px rgba(15, 23, 42, 0.08);
}

.layout-playground__base-input-preview--fill .layout-playground__base-input-preview-field.ant-input,
.layout-playground__base-input-preview--fill .layout-playground__base-input-preview-field.ant-input-outlined {
  height: 100%;
  min-height: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.layout-playground__pane--has-toolbar.layout-playground__pane--selected:not(.layout-playground__pane--preview) .layout-playground__pane-component-body,
.layout-playground__pane--has-toolbar.layout-playground__pane--selected:not(.layout-playground__pane--preview) .layout-playground__pane-placeholder {
  margin-top: 40px;
}

/* Saved-layout thumbnails must clamp nested sample scroll areas to the scaled preview box. */
.layout-playground__saved-detail--fit .layout-playground__preview-frame,
.layout-playground__saved-detail--fit .layout-playground__splitter,
.layout-playground__saved-detail--fit .layout-playground__splitter-frame,
.layout-playground__saved-detail--fit .layout-playground__splitter-frame .ant-splitter-panel,
.layout-playground__saved-detail--fit .layout-playground__pane,
.layout-playground__saved-detail--fit .layout-playground__pane-component-body,
.layout-playground__saved-detail--fit .layout-playground__pane-component-body > *,
.layout-playground__saved-detail--fit .ant-card,
.layout-playground__saved-detail--fit .ant-card-body,
.layout-playground__saved-detail--fit .ant-list,
.layout-playground__saved-detail--fit .ant-list-items,
.layout-playground__saved-detail--fit .ant-space,
.layout-playground__saved-detail--fit .ant-space-item {
  overflow: hidden;
}

.layout-playground__saved-detail--fit .layout-playground__saved-detail-bar {
  flex: 0 0 auto;
}

.layout-playground__saved-detail--fit .layout-playground__preview-frame--saved-detail {
  min-height: 0;
}

.layout-playground__saved-detail--fit .layout-playground__splitter,
.layout-playground__saved-detail--fit .layout-playground__splitter-frame,
.layout-playground__saved-detail--fit .layout-playground__splitter-frame .ant-splitter-panel,
.layout-playground__saved-detail--fit .layout-playground__pane,
.layout-playground__saved-detail--fit .layout-playground__pane-component-body,
.layout-playground__saved-detail--fit .layout-playground__pane-component-body > *,
.layout-playground__saved-detail--fit .ant-card,
.layout-playground__saved-detail--fit .ant-card-body,
.layout-playground__saved-detail--fit .ant-space,
.layout-playground__saved-detail--fit .ant-space-item {
  min-height: 0 !important;
  min-width: 0;
  max-height: none;
}

.layout-playground__saved-detail--fit .layout-playground__pane-component-body > * {
  height: 100%;
}

.layout-playground__saved-detail--fit * {
  scrollbar-width: none;
}

.layout-playground__saved-detail--fit *::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.layout-playground__saved-detail--fit .previewer-ui__scroll,
.layout-playground__saved-detail--fit .previewer-ui__pre,
.layout-playground__saved-detail--fit .previewer-ui__markdown pre,
.layout-playground__saved-detail--fit .codex-diff-previewer__diff-body,
.layout-playground__saved-detail--fit .codex-diff-previewer__diff-section--expanded .codex-diff-previewer__diff-body {
  overflow: hidden !important;
}

.layout-playground__saved-detail--fit .previewer-ui,
.layout-playground__saved-detail--fit .previewer-ui__body,
.layout-playground__saved-detail--fit .previewer-ui__editor,
.layout-playground__saved-detail--fit .previewer-ui__editor-body,
.layout-playground__saved-detail--fit .codex-diff-previewer,
.layout-playground__saved-detail--fit .codex-diff-previewer__diff-list,
.layout-playground__saved-detail--fit .codex-diff-previewer__diff-section,
.layout-playground__saved-detail--fit .embedded-map-ui,
.layout-playground__saved-detail--fit .embedded-map-ui__frame,
.layout-playground__saved-detail--fit .embedded-map-ui__slot {
  min-height: 0 !important;
  height: 100%;
}

.layout-playground__saved-detail--fit .embedded-map-ui__canvas {
  min-height: 0;
}

.layout-playground__pane--selected {
  border-color: rgba(37, 99, 235, 0.75);
  background: rgba(219, 234, 254, 0.5);
}

.layout-playground__pane--surface.layout-playground__pane--selected {
  background: transparent;
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.layout-playground__pane--hidden {
  border-color: transparent;
}

.layout-playground__divider.ant-divider {
  margin: 0;
}

.layout-playground__code {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layout-playground__code-block {
  margin: 0;
  padding: 18px 20px;
  overflow: auto;
  border-radius: 20px;
  background: #0f172a;
  color: #dbeafe;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.layout-playground__interaction-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.layout-playground__interaction-editor .ant-input,
.layout-playground__interaction-editor .ant-input-affix-wrapper,
.layout-playground__interaction-editor .ant-input-textarea,
.layout-playground__interaction-editor .ant-btn {
  width: 100%;
}

.layout-playground__interaction-editor .ant-input-textarea,
.layout-playground__interaction-editor .ant-btn {
  grid-column: 1 / -1;
}

.layout-playground__interaction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layout-playground__interaction-list-item,
.layout-playground__interaction-empty {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.72);
}

.layout-playground__auto-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layout-playground__auto-points--floating {
  position: absolute;
  top: 72px;
  left: 12px;
  z-index: 4;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 96px);
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.layout-playground__auto-points-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.layout-playground__auto-point-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.78);
}

.layout-playground__interaction-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.layout-playground__interaction-list-item .ant-typography {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .layout-playground__saved-inspector-head,
  .layout-playground__saved-selection-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-playground__saved-inspector {
    grid-template-columns: 1fr;
  }

  .layout-playground__saved-inspector-grid {
    grid-template-columns: 1fr;
  }

  .layout-playground__saved-selection-summary-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1280px) {
  .layout-playground__fullscreen-shell--device {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .layout-playground__saved-device-surface--record {
    flex: 0 0 clamp(320px, 52dvh, 640px);
    height: clamp(320px, 52dvh, 640px);
  }

  .layout-playground__saved-selection-summary,
  .layout-playground__saved-inspector {
    flex: 0 0 auto;
  }

  .layout-playground__saved-inspector {
    grid-template-columns: 1fr;
  }

  .layout-playground__saved-inspector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-playground__fullscreen-shell--saved-menu {
    overflow: hidden;
  }

  .layout-playground__fullscreen-shell--saved-menu .layout-playground__saved-device-surface--menu {
    flex: 1 1 auto;
    height: 100%;
  }
}

@keyframes layout-playground-interaction-pulse {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  35% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes layout-playground-interaction-note-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .layout-playground__saved-device-surface {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  .layout-playground__saved-device-surface--record {
    overflow: hidden;
    min-height: 0;
  }

  .layout-playground__interaction-editor {
    grid-template-columns: 1fr;
  }

  .layout-playground__interaction-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .layout-playground__interaction-note {
    max-width: 100%;
  }

  .layout-playground__auto-points--floating {
    top: 68px;
    width: calc(100% - 24px);
    max-height: 42%;
  }

  .layout-playground__hero {
    flex-direction: column;
  }

  .layout-playground__meta {
    min-width: 0;
  }

  .layout-playground__preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-playground__size-row {
    grid-template-columns: 1fr;
  }

  .layout-playground__bottom-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .layout-playground__bottom-menu-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .layout-playground__saved-browser-head {
    flex-direction: column;
  }

  .layout-playground__saved-detail-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-playground__saved-fit-viewport {
    align-items: flex-start;
  }

  .layout-playground__saved-device-surface {
    min-height: 100%;
  }

  .layout-playground__saved-browser-layout {
    min-height: auto;
  }

  .layout-playground__saved-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--layout-gallery-rows), minmax(0, 1fr));
    min-height: auto;
  }

  .layout-playground__saved-card-head {
    flex-direction: column;
  }

  .layout-playground__storage-head {
    flex-direction: column;
  }

  .layout-playground__pane-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout-playground__pane-toolbar--surface-overlay,
  .layout-playground__pane--selected .layout-playground__pane-toolbar--surface-overlay {
    position: absolute;
    inset: auto 12px 12px auto;
    width: auto;
    max-width: calc(100% - 24px);
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .layout-playground__pane-toolbar--surface-overlay .layout-playground__pane-toolbar-actions,
  .layout-playground__pane--selected .layout-playground__pane-toolbar--surface-overlay .layout-playground__pane-toolbar-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .layout-playground__pane-toolbar--surface-overlay .layout-playground__pane-toolbar-actions .ant-btn,
  .layout-playground__pane--selected .layout-playground__pane-toolbar--surface-overlay .layout-playground__pane-toolbar-actions .ant-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 12px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  }

  .layout-playground__pane-toolbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .layout-playground__pane-toolbar-actions .ant-btn {
    flex: 1 1 100%;
  }

  .layout-playground__memo-widget-preview-toolbar {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .layout-playground__memo-widget-preview-toolbar-group {
    flex: 1 1 0;
    justify-content: space-between;
  }

  .layout-playground__memo-widget-preview-toolbar-group .ant-btn {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }

  .layout-playground__pane-toolbar--overlay,
  .layout-playground__pane--selected .layout-playground__pane-toolbar {
    position: static;
    inset: auto;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .layout-playground__pane-toolbar.layout-playground__pane-toolbar--surface-overlay,
  .layout-playground__pane--selected .layout-playground__pane-toolbar.layout-playground__pane-toolbar--surface-overlay {
    position: absolute;
    inset: auto 12px 12px auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .layout-playground__pane--surface.layout-playground__pane--has-toolbar {
    gap: 8px;
    padding: 8px;
  }

  .layout-playground__pane--surface.layout-playground__pane--floating-toolbar {
    gap: 0;
    padding: 0;
  }

  .layout-playground__pane--surface.layout-playground__pane--has-toolbar .layout-playground__pane-component-body,
  .layout-playground__pane--surface.layout-playground__pane--has-toolbar .layout-playground__pane-placeholder,
  .layout-playground__pane--has-toolbar.layout-playground__pane--selected .layout-playground__pane-component-body,
  .layout-playground__pane--has-toolbar.layout-playground__pane--selected .layout-playground__pane-placeholder {
    margin-top: 0;
  }

  .layout-playground__pane--surface.layout-playground__pane--has-toolbar .layout-playground__pane-placeholder,
  .layout-playground__pane--has-toolbar.layout-playground__pane--selected .layout-playground__pane-placeholder {
    padding-bottom: 72px;
  }

  .layout-playground__empty-pane-preview {
    padding: 16px;
  }

  .layout-playground__empty-pane-preview-head {
    flex-direction: column;
  }

  .layout-playground__empty-pane-preview-meta {
    grid-template-columns: 1fr;
  }

  .layout-playground__preview-frame {
    min-height: 520px;
    padding: 12px;
  }

  .layout-playground__preview-wrap .layout-playground__preview-frame {
    min-height: 340px;
    height: min(62dvh, 560px);
  }

  .layout-playground__preview-frame--fullscreen {
    min-height: 0;
  }

  .layout-playground__preview-frame--gallery {
    min-height: 320px;
  }

  .layout-playground__splitter {
    min-height: 480px;
  }

  .layout-playground__splitter-toggle-dock {
    --layout-toggle-button-size: 22px;
    --layout-toggle-inline-overlap: 14px;
    --layout-toggle-block-overlap: 12px;
    width: fit-content;
    max-width: none;
    justify-content: center;
  }

  .layout-playground__splitter-toggle-dock--horizontal,
  .layout-playground__splitter-toggle-dock--vertical {
    transform: translate(-50%, -50%);
  }

  .layout-playground__splitter-toggle-dock--horizontal {
    flex-direction: column;
    transform: translate(calc(-50% - var(--layout-toggle-inline-overlap)), -50%);
  }

  .layout-playground__splitter-toggle-dock--vertical {
    flex-direction: row;
    transform: translate(-50%, calc(-50% + var(--layout-toggle-block-overlap)));
  }

  .layout-playground__splitter-toggle-dock .ant-btn {
    width: var(--layout-toggle-button-size);
    min-width: var(--layout-toggle-button-size);
  }
}
