.mw-studio {
  --mw-ink: #19282b;
  --mw-sub: #536365;
  --mw-line: #d5dbd8;
  --mw-accent: #a74422;
  --mw-tint: #f5f6f3;
  max-width: 1520px;
  margin: auto;
  padding: 28px clamp(16px, 4.2vw, 72px) 72px;
  color: var(--mw-ink);
  font-family: inherit;
  line-height: 1.45;
}
.mw-studio * {
  box-sizing: border-box;
}
.mw-studio h1,
.mw-studio h2,
.mw-studio h3,
.mw-studio p,
.mw-studio figure {
  margin: 0;
}
.mw-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.mw-head h1 {
  font-size: clamp(36px, 4.7vw, 68px);
  letter-spacing: -0.052em;
  line-height: 1.07;
  margin: 22px 0 10px;
  font-weight: 600;
}
.mw-head p,
.mw-caption {
  color: var(--mw-sub);
  max-width: 70ch;
}
.mw-breadcrumb,
.mw-breadcrumb a {
  font-size: 14px;
  color: var(--mw-sub);
}
.mw-mode-link,
.mw-studio a {
  color: inherit;
  text-underline-offset: 4px;
}
.mw-mode-link {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.mw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(295px, 0.78fr);
  gap: 20px;
  align-items: start;
}
.mw-panel {
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.mw-panel + .mw-panel {
  margin-top: 14px;
}
.mw-title,
.mw-bar {
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mw-title h2,
.mw-title h3,
.mw-section h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.mw-title p {
  font-size: 14px;
}
.mw-bar {
  border-top: 1px solid var(--mw-line);
  justify-content: flex-start;
  padding-block: 12px;
}
.mw-studio button,
.mw-studio .mw-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  border: 1px solid #bbc4c1;
  background: white;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 570;
  line-height: 1.24;
  color: var(--mw-ink);
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
}
.mw-studio button:hover:not(:disabled),
.mw-studio button[aria-pressed="true"] {
  background: #e6ece8;
  border-color: #8fa29c;
}
.mw-studio button:disabled {
  opacity: 0.48;
  cursor: default;
}
.mw-studio button.mw-primary,
.mw-studio a.mw-primary {
  background: var(--mw-ink);
  color: white;
  border-color: var(--mw-ink);
}
.mw-studio :focus-visible {
  outline: 3px solid #3275af;
  outline-offset: 2px;
}
.mw-studio input:not([type="checkbox"]),
.mw-studio select,
.mw-studio textarea {
  font: inherit;
  font-size: 16px;
  min-width: 0;
  width: 100%;
  border: 1px solid #b6bfbb;
  background: white;
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--mw-ink);
  min-height: 40px;
}
.mw-studio select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%234b5c55' stroke-width='1.6'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
}
.mw-studio textarea {
  resize: vertical;
  min-height: 75px;
}
.mw-studio label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: 570;
  min-width: 0;
}
.mw-studio .mw-check {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  min-height: 36px;
}
.mw-studio input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--mw-ink);
}
.mw-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mw-wide {
  grid-column: 1/-1;
}
.mw-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mw-canvas-space {
  background-color: #e7ebe8;
  background-image: radial-gradient(#a9b6ae 0.75px, transparent 0.8px);
  background-size: 14px 14px;
  border-block: 1px solid var(--mw-line);
  min-height: 310px;
  height: clamp(310px, 37vw, 540px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mw-canvas-space canvas {
  display: block;
  max-width: 76%;
  max-height: 70%;
  height: auto;
  width: auto;
  filter: drop-shadow(0 10px 8px #23372d33);
  touch-action: none;
  cursor: move;
}
.mw-stage-label {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font:
    500 13px/1.4 ui-monospace,
    monospace;
  color: #33483d;
  background: #e7ebe8d9;
  padding: 3px 6px;
  border-radius: 3px;
}
.mw-panel details {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--mw-line);
  border-radius: 0;
  background: transparent;
}
.mw-panel details:first-child {
  border-top: 0;
}
.mw-panel summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 630;
  padding: 16px 19px;
}
.mw-panel details > div,
.mw-pad {
  padding: 0 18px 17px;
}
.mw-caption,
.mw-studio .mw-note {
  font-size: 14px;
}
.mw-note {
  margin: 11px 0 !important;
  color: var(--mw-sub);
}
.mw-alert {
  margin: 10px 0 !important;
  color: #8a351b;
  font-size: 14px;
  white-space: pre-line;
}
.mw-alert:empty,
.mw-status:empty {
  display: none;
}
.mw-status {
  margin: 10px 0 !important;
  background: #edf2ed;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 15px;
}
.mw-studio [hidden] {
  display: none !important;
}
.mw-layer-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}
.mw-layer-row label {
  flex: 1;
}
.mw-section {
  padding: 17px 18px;
  border-top: 1px solid var(--mw-line);
}
.mw-section:first-child {
  border-top: 0;
}
.mw-section h2 {
  margin: 0 0 12px;
}
.mw-scroll {
  overflow: auto;
  max-height: 300px;
  margin-top: 10px;
}
.mw-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: start;
}
.mw-scroll td,
.mw-scroll th {
  border-bottom: 1px solid var(--mw-line);
  padding: 8px 10px;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mw-scroll th {
  background: var(--mw-tint);
  position: sticky;
  top: 0;
}
.mw-scroll .mw-current td {
  background: #edf2ed;
}
.mw-data-preview .mw-canvas-space {
  height: 300px;
  min-height: 220px;
}
.mw-studio progress {
  width: 100%;
}
@media (max-width: 850px) {
  .mw-layout {
    grid-template-columns: 1fr;
  }
  .mw-canvas-space {
    height: 350px;
  }
  .mw-head {
    align-items: start;
  }
  .mw-mode-link {
    margin-top: 4px;
  }
}
@media (max-width: 550px) {
  .mw-studio {
    padding: 18px 12px 45px;
  }
  .mw-head {
    display: block;
  }
  .mw-head p {
    line-height: 1.5;
  }
  .mw-mode-link {
    display: inline-block;
    margin-top: 12px;
  }
  .mw-panel {
    border-radius: 8px;
  }
  .mw-title,
  .mw-bar,
  .mw-panel summary,
  .mw-section {
    padding: 12px;
  }
  .mw-panel details > div,
  .mw-pad {
    padding: 0 12px 12px;
  }
  .mw-layout {
    gap: 12px;
  }
  .mw-canvas-space {
    height: 285px;
    min-height: 240px;
  }
  .mw-canvas-space canvas {
    max-width: 83%;
  }
  .mw-studio .mw-actions {
    gap: 5px;
  }
  .mw-studio button {
    min-height: 42px;
  }
  .mw-studio label {
    font-size: 14px;
  }
}
