@font-face {
  font-family: Montserrat;
  src: url("/static/assets/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ui: #f8f9fc;
  --surface: #fff;
  --stage: #e9ebf1;
  --ink: #262b3b;
  --muted: #737989;
  --line: #e8eaf0;
  --accent: #6954a0;
  --accent-soft: #f0ecf8;
  --accent-dark: #513e82;
  --danger: #ac3c4c;
  --font: Montserrat, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 12px/1.6 var(--font);
  color: var(--ink);
  background: var(--ui);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button,
a,
input,
textarea,
select,
summary {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.studio {
  display: grid;
  height: 100dvh;
  overflow: hidden;
  grid-template-columns: 64px 246px minmax(250px, 1fr) 290px;
  grid-template-rows: 76px minmax(0, 1fr);
}
.topbar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: white;
  z-index: 4;
}
.studio-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.studio-brand strong {
  font-weight: 500;
  color: var(--muted);
}
.studio-mark {
  width: 34px;
  height: 37px;
  display: grid;
  place-items: center;
  font:
    italic 28px Georgia,
    serif;
  background: var(--accent);
  color: #fff;
  border-radius: 13px 13px 13px 2px;
}
.top-divider {
  height: 24px;
  width: 1px;
  background: var(--line);
  flex-shrink: 0;
}
.project-name {
  font-weight: 500;
}
.draft-label {
  font-size: 10px;
  background: #f2f3f7;
  color: #666d7f;
  padding: 3px 8px;
  border-radius: 5px;
}
.save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  padding: 6px;
  white-space: nowrap;
}
.status-dot,
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b947a;
  flex-shrink: 0;
}
.save-status.error {
  color: var(--danger);
}
.save-status.error .status-dot {
  background: var(--danger);
}
.save-status.saving .status-dot {
  background: #b39a54;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-btn {
  width: 32px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
}
.icon-btn:hover {
  background: var(--ui);
}
.primary,
.secondary,
.quiet {
  border-radius: 7px;
  min-height: 36px;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}
.primary:hover {
  background: var(--accent-dark);
}
.secondary {
  background: white;
  border: 1px solid #dce0e9;
}
.secondary:hover {
  background: var(--ui);
}
.quiet:hover {
  background: var(--ui);
}
.tool-rail {
  border-right: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 19px 9px;
  gap: 13px;
}
.rail-button {
  height: 42px;
  width: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #858a99;
}
.rail-button:hover {
  background: var(--ui);
  color: var(--accent);
}
.rail-button.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.rail-button svg {
  width: 21px;
  height: 21px;
}
.help-button {
  margin-top: auto;
}
.library {
  background: white;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-height: 0;
}
.panel-heading {
  padding: 26px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.small-label {
  display: block;
  color: #8c91a0;
  font-size: 10px;
  margin-bottom: 4px;
}
.panel-heading h1 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.panel-content {
  overflow-y: auto;
  padding: 0 14px 18px;
  flex: 1;
  scrollbar-width: thin;
}
.library-footer {
  padding: 14px 17px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}
.panel-description {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.85;
  padding: 0 6px;
  margin-bottom: 21px;
}
.page-item {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 7px;
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 5px 21px;
  font-size: 11px;
  font-weight: 550;
}
.page-item span:last-child {
  margin-left: auto;
  color: #969aab;
  font-weight: 400;
  font-size: 9px;
}
.section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-row {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  position: relative;
  margin: 3px 0;
}
.section-row.active {
  background: var(--accent-soft);
  border-color: #ded5ed;
}
.section-row.dragging {
  opacity: 0.4;
}
.section-select {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 9px 3px;
}
.section-select svg {
  width: 16px;
  height: 16px;
  color: #8c91a2;
}
.section-row.active .section-select svg {
  color: var(--accent);
}
.section-select span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.section-row.invisible .section-select {
  text-decoration: line-through;
  color: #9599a3;
}
.drag-handle {
  color: #a9adbb;
  cursor: grab;
  padding: 2px;
  display: flex;
}
.drag-handle svg {
  width: 10px;
  height: 18px;
}
.section-row .row-eye {
  opacity: 0;
  width: 24px;
  padding: 4px;
}
.section-row:hover .row-eye,
.section-row:focus-within .row-eye,
.section-row.invisible .row-eye {
  opacity: 1;
}
.row-eye svg {
  width: 14px;
  height: 14px;
}
.section-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 4px 0;
  padding: 10px 12px;
  width: calc(100% - 8px);
  border: 1px dashed #d5cde3;
  border-radius: 7px;
  color: var(--accent);
  font-size: 11px;
}
.section-add svg {
  width: 15px;
  height: 15px;
}
.side-note {
  padding: 14px 12px;
  margin: 30px 5px 0;
  background: #f7f6fb;
  border-radius: 8px;
  font-size: 10px;
  color: #7f7891;
  line-height: 1.9;
}
.side-note strong {
  color: #5f5574;
  font-weight: 550;
  display: block;
  margin-bottom: 4px;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--stage);
}
.canvas-toolbar {
  height: 58px;
  flex-shrink: 0;
  background: #f7f8fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 22px;
  border-bottom: 1px solid #dde1eb;
}
.page-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #8a8f9d;
}
.page-crumb strong {
  color: #545b6d;
  font-weight: 500;
}
.home-icon {
  display: flex;
}
.home-icon svg {
  width: 14px;
  height: 14px;
}
.crumb-slash {
  margin: 0 3px;
  color: #c7cbd4;
}
.device-switch {
  display: flex;
  border: 1px solid #e0e3eb;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
}
.device-switch .icon-btn {
  height: 27px;
  width: 32px;
  color: #9298a6;
}
.device-switch .active {
  background: white;
  color: #5f4b94;
  box-shadow: 0 1px 3px #26304915;
}
.device-switch svg {
  width: 17px;
  height: 17px;
}
.canvas-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.canvas-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 25px;
  background-image: radial-gradient(#d3d7e2 0.7px, transparent 0.7px);
  background-size: 10px 10px;
}
.frame-wrap {
  background: white;
  box-shadow: 0 8px 45px #222e4e12;
  border: 1px solid #d7dce8;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
  overflow: hidden;
}
.frame-browser {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid #edf0f5;
  font-size: 8px;
  color: #9a9eaa;
  position: relative;
  background: #fff;
}
.frame-browser > span:not(.frame-address):not(#frame-width) {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dce0e7;
}
.frame-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #727988;
  white-space: nowrap;
}
.frame-address span {
  color: #a3a8b4;
}
#frame-width {
  margin-left: auto;
}
#frame-viewport {
  overflow: hidden;
  position: relative;
}
#site-frame {
  border: 0;
  display: block;
  background: #fff;
  transform-origin: top left;
}
.canvas-footer {
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #f7f8fb;
  border-top: 1px solid #dde1eb;
  color: #8b91a0;
  font-size: 9px;
  gap: 10px;
}
.zoom-label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.zoom-label select {
  border: 0;
  background: transparent;
  color: #686f80;
  font-size: 10px;
}
.inspector {
  background: white;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.inspector-heading {
  padding: 26px 22px 21px;
}
.inspector-heading h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin-bottom: 5px;
}
.inspector-heading p {
  font-size: 10px;
  color: #9196a2;
}
.inspector-tabs {
  display: flex;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.inspector-tabs button {
  flex: 1;
  padding: 12px 6px;
  font-size: 10px;
  color: #8e93a1;
  border-bottom: 2px solid transparent;
}
.inspector-tabs [aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.inspector-content {
  padding: 22px;
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 500;
  color: #586071;
}
.field input,
.field textarea,
.field select,
.search-field {
  width: 100%;
  border: 1px solid #e0e3eb;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: #404757;
  font-size: 11px;
  line-height: 1.65;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 76px;
}
.field input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field input[type="color"] {
  height: 36px;
  padding: 3px;
  width: 42px;
  flex-shrink: 0;
}
.field .helper,
.helper {
  display: block;
  color: #989daa;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.8;
}
.field-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.field-value {
  font-weight: 400;
  color: #9196a4;
}
.field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.field-row input:not([type="color"]) {
  flex: 1;
  min-width: 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.property-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.property-heading h3 {
  font-size: 11px;
  font-weight: 600;
}
.image-picker {
  display: block;
  width: 100%;
  height: 116px;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f2f6;
  margin-bottom: 15px;
}
.image-picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-picker span {
  position: absolute;
  bottom: 9px;
  right: 9px;
  background: white;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 9px;
  box-shadow: 0 2px 9px #0002;
  color: #4d4b55;
}
.danger {
  color: var(--danger);
}
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.section-actions button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 9px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.section-actions svg {
  width: 13px;
  height: 13px;
}
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin: 20px 0;
  gap: 10px;
}
.toggle-field input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.layout-options,
.motion-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.option-tile {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 7px;
  text-align: center;
  font-size: 9px;
  color: #7a8090;
}
.option-tile.active {
  background: var(--accent-soft);
  border-color: #b9a9d5;
  color: var(--accent);
}
.option-tile svg {
  display: block;
  margin: 0 auto 7px;
  width: 25px;
  height: 25px;
  stroke-width: 1.3;
}
.motion-tile {
  height: 72px;
  position: relative;
  padding-top: 11px;
}
.motion-glyph {
  display: block;
  margin: 0 auto 8px;
  width: 28px;
  height: 16px;
  background: #b7a5d0;
  border-radius: 3px;
}
.motion-tile[data-motion="rise"] .motion-glyph {
  box-shadow: 0 -5px 0 #b7a5d030;
}
.motion-tile[data-motion="reveal"] .motion-glyph {
  background: linear-gradient(90deg, #b7a5d0 55%, #e3daee 55%);
}
.motion-tile[data-motion="parallax"] .motion-glyph {
  transform: skewY(-8deg);
  box-shadow: 4px 4px 0 #b7a5d040;
}
.motion-tile.active .motion-glyph {
  animation: sample-motion 1.7s ease both;
}
@keyframes sample-motion {
  0% {
    opacity: 0.15;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.note {
  padding: 12px;
  background: #f7f6fb;
  color: #81788e;
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.9;
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.template {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  transition: border-color 0.15s;
}
.template:hover {
  border-color: #b7a5d0;
}
.template-art {
  height: 69px;
  background: #f4f3f8;
  border-radius: 4px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  color: #a79bbd;
  overflow: hidden;
}
.template-art svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.1;
}
.template strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
}
.template > span {
  font-size: 8px;
  color: #9a9eaa;
}
.preset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  margin: 0 4px 11px;
  display: block;
  width: calc(100% - 8px);
  text-align: left;
}
.preset.active {
  border-color: #b7a5d0;
  background: #faf8ff;
}
.preset-art {
  height: 70px;
  padding: 14px;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preset-art span {
  font:
    21px/1.2 Georgia,
    serif;
  letter-spacing: -1px;
  max-width: 100px;
}
.preset-art i {
  display: block;
  width: 32px;
  height: 40px;
  border-radius: 18px 18px 1px 1px;
  opacity: 0.7;
}
.preset strong {
  font-size: 11px;
  font-weight: 550;
}
.preset small {
  display: block;
  color: #9297a4;
  font-size: 9px;
  margin-top: 3px;
}
.brand-controls {
  margin: 24px 5px 0;
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px;
  text-align: left;
  overflow: hidden;
}
.media-card img {
  width: 100%;
  height: 93px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  background: #f5f5f8;
}
.media-card span {
  font-size: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 7px 3px;
}
.upload-btn {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.search-field {
  margin-bottom: 14px;
  font-size: 10px;
}
.version {
  padding: 13px 7px;
  border-bottom: 1px solid var(--line);
}
.version strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.version time {
  display: block;
  font-size: 9px;
  color: #9a9eaa;
  margin: 4px 0 9px;
}
.version button {
  font-size: 9px;
  color: var(--accent);
  padding: 0;
}
.item-editor {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 9px;
  padding: 0 10px;
}
.item-editor summary {
  padding: 11px 0;
  font-size: 10px;
  font-weight: 550;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.item-editor .field {
  margin-bottom: 12px;
}
.item-editor .field input,
.item-editor .field textarea {
  font-size: 10px;
  padding: 8px;
}
.item-editor .secondary {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 9px;
  margin-bottom: 10px;
}
.item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.item-actions button {
  padding: 3px;
  color: #868b99;
}
.item-actions svg {
  width: 14px;
  height: 14px;
}
.empty-inspector {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.empty-inspector svg {
  width: 35px;
  height: 35px;
  margin-bottom: 15px;
  color: #aa9abb;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #333044;
  color: white;
  box-shadow: 0 7px 25px #0002;
  padding: 12px 21px;
  border-radius: 8px;
  z-index: 20;
  font-size: 11px;
  max-width: 90vw;
}
.toast.error {
  background: #8b3444;
}
dialog {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 100px #20203530;
  width: min(620px, calc(100% - 32px));
  max-height: 85dvh;
  color: var(--ink);
  font: 12px/1.8 var(--font);
}
dialog::backdrop {
  background: #27283755;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-top h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
.modal-copy {
  font-size: 12px;
  color: #7d8290;
  line-height: 1.9;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}
.modal-info {
  background: #f6f4fa;
  padding: 14px;
  border-radius: 7px;
  margin: 15px 0;
  color: #736784;
  font-size: 11px;
}
.modal-info strong {
  color: #51455f;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.guide-grid h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.guide-grid p {
  font-size: 11px;
  color: #828795;
}
.kbd {
  background: #eeedf4;
  border: 1px solid #dedce6;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
}
.loading,
.login {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.loading .studio-mark,
.login .studio-mark {
  width: 48px;
  height: 50px;
  font-size: 38px;
}
.login form {
  width: min(380px, calc(100vw - 40px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.login h1 {
  font:
    24px/1.4 Georgia,
    serif;
  color: var(--ink);
  margin: 22px 0 10px;
}
.login label {
  display: block;
  font-size: 11px;
  margin: 23px 0 15px;
}
.login input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.login .primary {
  width: 100%;
  margin-top: 15px;
}
.login [role="alert"] {
  color: var(--danger);
}
.previewing {
  grid-template-columns: 64px 246px minmax(250px, 1fr) 0;
}
.previewing .inspector {
  display: none;
}
.previewing .tool-rail,
.previewing .library {
  opacity: 0.45;
  pointer-events: none;
}
.previewing .canvas-hint {
  color: var(--accent);
}
@media (min-width: 1600px) {
  .studio {
    grid-template-columns: 72px 266px minmax(250px, 1fr) 310px;
  }
  .panel-heading {
    padding-inline: 24px;
  }
  .panel-content {
    padding-inline: 18px;
  }
  .inspector-content {
    padding: 25px;
  }
  .previewing {
    grid-template-columns: 72px 266px minmax(250px, 1fr) 0;
  }
}
@media (max-width: 1250px) {
  .studio {
    grid-template-columns: 52px 210px minmax(250px, 1fr) 260px;
  }
  .topbar {
    gap: 10px;
    padding: 0 16px;
  }
  .project-name {
    display: none;
  }
  .top-actions {
    gap: 4px;
  }
  .save-status {
    font-size: 9px;
  }
  .top-actions .quiet {
    font-size: 10px;
    padding: 6px 9px;
  }
  .inspector-content {
    padding: 18px;
  }
  .inspector-heading {
    padding: 24px 18px 20px;
  }
  .panel-heading {
    padding-inline: 16px;
  }
  .canvas-toolbar {
    padding-inline: 14px;
  }
  .canvas-stage {
    padding: 20px 15px;
  }
  .previewing {
    grid-template-columns: 52px 210px minmax(250px, 1fr) 0;
  }
  .rail-button {
    width: 36px;
    height: 38px;
  }
  .tool-rail {
    padding-inline: 7px;
  }
}
@media (max-width: 1000px) {
  .studio {
    grid-template-columns: 48px 190px minmax(200px, 1fr) 240px;
  }
  .studio-brand {
    font-size: 14px;
  }
  .save-status {
    margin-left: auto;
  }
  .top-actions {
    margin-left: 0;
  }
  .top-actions .top-divider,
  .top-actions .quiet,
  .draft-label {
    display: none;
  }
  .topbar {
    height: 66px;
  }
  .studio {
    grid-template-rows: 66px minmax(0, 1fr);
  }
  .device-switch {
    margin-left: auto;
  }
  .page-crumb {
    display: none;
  }
  .panel-content {
    padding-inline: 9px;
  }
  .panel-heading h1 {
    font-size: 14px;
  }
  .canvas-footer #canvas-hint {
    font-size: 8px;
  }
  .inspector-heading h2 {
    font-size: 14px;
  }
  .top-actions .primary,
  .top-actions .secondary {
    padding: 7px 9px;
    font-size: 10px;
  }
  .previewing {
    grid-template-columns: 48px 190px minmax(200px, 1fr) 0;
  }
}
@media (max-width: 760px) {
  .studio {
    grid-template-columns: 46px minmax(0, 1fr) 236px;
    grid-template-rows: 62px minmax(0, 1fr) 240px;
  }
  .topbar {
    height: 62px;
    padding: 0 10px;
    gap: 7px;
  }
  .topbar > .top-divider,
  .studio-brand > span:last-child,
  .save-status .status-dot,
  .save-status {
    display: none;
  }
  .studio-brand .studio-mark {
    width: 30px;
    height: 32px;
    font-size: 24px;
  }
  .top-actions {
    margin-left: auto;
  }
  .tool-rail {
    grid-row: 2/4;
    gap: 8px;
  }
  .library {
    grid-column: 2;
    grid-row: 3;
    border-top: 1px solid var(--line);
  }
  .panel-heading {
    padding: 12px 15px;
  }
  .panel-content {
    padding-bottom: 12px;
  }
  .library-footer {
    display: none;
  }
  .workspace {
    grid-column: 2;
    grid-row: 2;
  }
  .inspector {
    grid-column: 3;
    grid-row: 2/4;
  }
  .inspector-heading {
    padding: 18px 14px;
  }
  .inspector-content {
    padding: 14px;
  }
  .canvas-stage {
    padding: 14px 9px;
  }
  .canvas-toolbar {
    height: 45px;
    padding-inline: 7px;
  }
  .canvas-footer {
    padding-inline: 8px;
    height: 30px;
  }
  .canvas-footer #canvas-hint {
    display: none;
  }
  .canvas-tools #replay {
    display: none;
  }
  .frame-browser {
    height: 23px;
  }
  .frame-address {
    font-size: 7px;
  }
  .frame-address span,
  #frame-width {
    display: none;
  }
  .canvas-tools .secondary {
    font-size: 8px;
    padding: 4px;
  }
  .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .template-art {
    height: 40px;
  }
  .section-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 5px;
  }
  .section-row {
    margin: 0;
  }
  .page-item,
  .side-note,
  .panel-content > .panel-description {
    display: none;
  }
  .section-select span {
    font-size: 9px;
  }
  .section-select svg {
    display: none;
  }
  .section-row .row-eye {
    display: none;
  }
  .section-add {
    margin-top: 6px;
    font-size: 9px;
  }
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .media-card img {
    height: 50px;
  }
  .preset-art {
    display: none;
  }
  .preset {
    display: inline-block;
    width: 45%;
    margin: 3px;
  }
  .brand-controls {
    margin: 8px;
  }
  .previewing {
    grid-template-columns: 46px minmax(0, 1fr) 0;
  }
  .previewing .library {
    display: none;
  }
  .previewing .workspace {
    grid-row: 2/4;
  }
}
@media (max-width: 470px) {
  .studio {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: 56px minmax(220px, 1fr) 250px;
  }
  .top-actions #undo,
  .top-actions #redo {
    width: 27px;
  }
  .topbar {
    height: 56px;
  }
  .library {
    display: none;
  }
  .inspector {
    grid-column: 2;
    grid-row: 3;
    border-top: 1px solid var(--line);
  }
  .inspector-heading {
    padding: 10px 15px;
    display: flex;
    gap: 9px;
    align-items: center;
  }
  .inspector-heading .small-label,
  .inspector-heading p {
    display: none;
  }
  .inspector-heading h2 {
    font-size: 12px;
    margin: 0;
  }
  .inspector-tabs {
    position: absolute;
    right: 12px;
    margin-top: 0;
    border: 0;
  }
  .inspector-tabs button {
    font-size: 8px;
    padding: 12px 7px;
  }
  .inspector-content {
    padding: 8px 15px;
  }
  .inspector-content > .field {
    margin-bottom: 12px;
  }
  .tool-rail {
    padding: 10px 3px;
  }
  .rail-button {
    width: 32px;
    height: 34px;
  }
  .top-actions .primary {
    font-size: 9px;
  }
  .top-actions .secondary {
    font-size: 9px;
  }
  .studio.show-panel .library {
    display: flex;
    position: fixed;
    inset: 56px 0 0 40px;
    z-index: 5;
  }
  .studio.show-panel .library .panel-content {
    padding: 0 18px 20px;
  }
  .studio.show-panel .library .panel-heading {
    padding: 20px;
  }
  .studio.show-panel .section-list {
    display: block;
  }
  .studio.show-panel .section-select span {
    font-size: 12px;
  }
  .studio.show-panel .page-item,
  .studio.show-panel .panel-description {
    display: flex;
  }
  .studio.show-panel .template-grid {
    grid-template-columns: 1fr 1fr;
  }
  .studio.show-panel .template-art {
    height: 90px;
  }
  .studio.show-panel .section-row .row-eye {
    display: block;
  }
  .previewing {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .top-actions {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .studio {
    grid-template-columns: 48px minmax(240px, 1fr) 260px;
  }
  .library {
    display: none;
    position: fixed;
    left: 48px;
    top: 66px;
    bottom: 0;
    width: 246px;
    z-index: 6;
    box-shadow: 14px 0 35px #252c4012;
  }
  .studio.show-panel .library {
    display: flex;
  }
  .workspace {
    grid-column: 2;
    grid-row: 2;
  }
  .inspector {
    grid-column: 3;
    grid-row: 2;
  }
  .previewing {
    grid-template-columns: 48px minmax(240px, 1fr) 0;
  }
  .previewing .library {
    display: none;
  }
  .canvas-stage {
    padding: 24px 18px;
  }
  .canvas-toolbar {
    padding: 0 18px;
  }
  .page-crumb {
    display: flex;
  }
  .device-switch {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .topbar .save-status {
    display: flex;
    width: 12px;
    padding: 0;
  }
  .topbar .save-status .status-dot {
    display: block;
  }
  .topbar #save-text {
    display: none;
  }
}
.studio.canvas-focused {
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
}
.canvas-focused .workspace {
  grid-column: 2;
  grid-row: 2;
}
.canvas-focused .library,
.canvas-focused .inspector {
  display: none;
}
.canvas-gesturing #canvas-hint {
  color: var(--accent);
}
#canvas-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.canvas-gesturing .save-status .status-dot {
  background: #b39a54;
}
#canvas-focus[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 1000px) {
  .studio.canvas-focused {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: 66px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .studio.canvas-focused {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: 62px minmax(0, 1fr);
  }
}
@media (max-width: 470px) {
  .studio.canvas-focused {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: 56px minmax(0, 1fr);
  }
}
