.playground-wrap {
  width: min(1440px, calc(100% - 80px));
  margin-inline: auto;
}
.playground-page .site-header {
  min-height: 94px;
}
.playground-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.identity-divider {
  font-size: 24px;
  font-weight: 300;
  color: #a1b1c7;
}
.product-name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.playground-page .site-header nav {
  font-size: 12px;
}
.playground-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-block: 54px 36px;
}
.playground-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 14px;
}
.playground-heading h1 {
  font-size: clamp(35px, 4vw, 55px);
  margin: 0;
}
.playground-heading p:not(.eyebrow) {
  font-size: 13px;
  margin-top: 17px;
}
.execution-note {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 19px;
  max-width: 780px;
}
.execution-note strong {
  color: var(--ink);
  font-weight: 650;
}
.playground-about-link {
  color: var(--blue);
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 3px;
  text-underline-offset: 4px;
}
.playground-about-link:hover {
  text-decoration: underline;
}
.playground-workspace {
  border: 1px solid #c6d3e5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 50px -38px #253e7055;
  scroll-margin-top: 24px;
}
.playground-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  background: #e8eef7;
  border-bottom: 1px solid #c6d3e5;
}
.example-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
}
.example-tabs button {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.example-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--orange);
}
.example-tabs button:hover {
  color: var(--blue);
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.plain-action {
  border: 0;
  background: none;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 11px;
}
.plain-action:hover {
  color: var(--blue);
}
.run-button {
  font-size: 11px;
  min-height: 37px;
  padding: 7px 14px;
  gap: 9px;
  border-radius: 5px;
}
.run-button span {
  font-size: 17px;
  line-height: 1;
}
.workspace-panes {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  min-height: 584px;
}
.editor-pane {
  min-width: 0;
  background: var(--code);
  color: #e6edf7;
  display: flex;
  flex-direction: column;
}
.pane-heading {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 19px;
  font: 10px var(--mono);
  border-bottom: 1px solid #ffffff18;
  color: #b8c7dc;
  gap: 10px;
}
.pane-heading > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pane-heading > div {
  display: flex;
  gap: 7px;
}
.pane-heading .copy-button {
  font-size: 9px;
  min-width: 45px;
  min-height: 28px;
}
.edit-shortcuts {
  padding: 13px 19px 15px;
  border-bottom: 1px solid #ffffff18;
  font: 9px/1.6 var(--mono);
  color: #a1b4ce;
}
.edit-shortcuts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 7px;
}
.edit-shortcuts button {
  border: 1px solid #6e85a354;
  border-radius: 4px;
  background: #31425e;
  color: #d3e3fb;
  font: 9px/1.5 var(--mono);
  padding: 5px 7px;
}
.edit-shortcuts button:hover {
  background: #3c5478;
  color: white;
}
.edit-shortcuts button:focus-visible {
  outline-color: #a7c2f2;
}
.source-editor {
  display: flex;
  position: relative;
  flex: 1;
  height: 490px;
  min-height: 490px;
  overflow: hidden;
}
.line-numbers {
  font: 11px/1.85 var(--mono);
  text-align: right;
  color: #8699b7;
  min-width: 46px;
  padding: 23px 12px 23px 0;
  background: #1c2a40;
  overflow: hidden;
  user-select: none;
  white-space: pre;
  transform: translateY(var(--editor-scroll, 0px));
  align-self: flex-start;
  margin: 0;
}
#source-editor {
  resize: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 490px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dfebfc;
  font: 11px/1.85 var(--mono);
  padding: 23px 20px 28px 17px;
  tab-size: 4;
  overflow: auto;
  white-space: pre;
  caret-color: #f1b69f;
  outline-offset: -4px;
}
#source-editor:focus-visible {
  outline: 2px solid #83a4e4;
}
#source-editor::selection {
  background: #567ab877;
}
.editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid #ffffff18;
  color: #a1b4ce;
  font: 9px var(--mono);
}
.preview-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fbfcff;
}
.preview-pane-heading {
  color: var(--muted);
  border-bottom-color: var(--line);
  background: #f4f7fc;
}
.preview-status {
  font: 9px var(--mono);
  gap: 6px !important;
}
.preview-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
.preview-status[data-phase="edited"]::before {
  background: var(--orange);
}
.preview-status[data-phase="error"]::before {
  background: #ad2d32;
}
.playground-preview {
  padding: 40px 35px 24px;
  flex: 1;
  overflow-wrap: anywhere;
}
.playground-preview .brand {
  font-size: 27px;
  margin-bottom: 37px;
}
.playground-preview .brand img {
  width: 32px;
  height: 32px;
}
.playground-preview h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}
.playground-preview > p {
  font-size: 12px;
  line-height: 1.9;
}
.playground-preview .eyebrow {
  font-size: 9px;
  margin-bottom: 14px;
}
.preview-counter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}
.preview-counter output {
  font-family: var(--mono);
  font-size: 57px;
  line-height: 1.15;
  letter-spacing: -0.06em;
  min-width: 1.3em;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.preview-counter .button {
  padding: 9px 19px;
  min-height: 42px;
  font-size: 13px;
}
.preview-form {
  margin-top: 29px;
}
.preview-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
}
.preview-form > div {
  display: flex;
  gap: 8px;
}
.preview-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid #b8c9e0;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  padding: 10px 12px;
}
.preview-form .button {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 10px;
  white-space: normal;
}
.greeting-output {
  margin-top: 20px;
}
.preview-toggle {
  margin-top: 32px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  padding: 19px 0;
  border-block: 1px solid var(--line);
}
.preview-toggle button {
  min-width: 46px;
  min-height: 27px;
  border: 1px solid #a2b6d2;
  border-radius: 20px;
  background: #dce5f2;
  padding: 3px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.preview-toggle button::after {
  content: "";
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #172c4e30;
  transition: transform 0.15s;
}
.preview-toggle button[aria-checked="true"] {
  background: var(--blue);
  border-color: var(--blue);
}
.preview-toggle button[aria-checked="true"]::after {
  transform: translateX(18px);
}
.preview-toggle p {
  font-size: 12px;
  color: var(--ink);
  min-width: 0;
  flex: 1;
}
.preview-message {
  font: 9px/1.8 var(--mono);
  color: var(--muted);
  min-height: 39px;
  margin: 0 35px 16px;
  overflow-wrap: anywhere;
}
.lesson-hint {
  border-top: 1px solid var(--line);
  background: #f1f5fb;
  padding: 22px 28px;
}
.lesson-hint .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.lesson-hint > p:last-child {
  font-size: 11px;
  line-height: 1.9;
}
.lesson-hint code {
  font: 10px var(--mono);
  color: var(--ink);
  background: #e5ecf7;
  padding: 1px 4px;
  border-radius: 3px;
}
.playground-diagnostics {
  padding: 21px 24px;
  background: #fff3ef;
  border-top: 1px solid #e3c9c0;
}
.playground-diagnostics > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: baseline;
}
.playground-diagnostics strong {
  font-size: 12px;
  color: #983923;
}
.playground-diagnostics span {
  font-size: 10px;
  color: #794f44;
}
.playground-diagnostics p {
  font: 11px/1.9 var(--mono);
  color: #873824;
  white-space: pre-wrap;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.playground-about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  margin-block: 65px 70px;
}
.playground-about .eyebrow {
  font-size: 9px;
  margin-bottom: 15px;
}
.playground-about h2 {
  font-size: 37px;
}
.playground-about h3 {
  font-size: 16px;
  margin-bottom: 13px;
}
.playground-about p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 12px;
}
.playground-about code {
  font: 11px var(--mono);
}
.playground-about .local-command {
  background: #e6edf7;
  padding: 14px 17px;
  border-radius: 5px;
  margin-block: 16px;
  overflow: auto;
  color: var(--ink);
}
.playground-about details {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 16px;
}
.playground-about summary {
  font-size: 12px;
}
.playground-about li {
  font-size: 11px;
  color: var(--muted);
  margin-block: 6px;
}
.no-script-note {
  padding: 20px;
  background: #fff3ef;
  border: 1px solid #e3c9c0;
  margin-bottom: 20px;
  font-size: 13px;
}
.no-script-note a {
  text-decoration: underline;
  color: var(--blue);
}
.playground-page button:disabled {
  opacity: 0.5;
}
@media (max-width: 1100px) {
  .playground-wrap {
    width: calc(100% - 56px);
  }
  .workspace-panes {
    grid-template-columns: 1.1fr 1fr;
  }
  .playground-preview {
    padding-inline: 25px;
  }
  .playground-preview h2 {
    font-size: 30px;
  }
  .preview-message {
    margin-inline: 25px;
  }
  .source-editor,
  #source-editor {
    min-height: 465px;
  }
  #source-editor,
  .line-numbers {
    font-size: 10px;
  }
  .editor-footer {
    font-size: 8px;
  }
  .lesson-hint {
    padding-inline: 23px;
  }
  .playground-about {
    gap: 60px;
  }
}
@media (max-width: 820px) {
  .playground-wrap {
    width: calc(100% - 40px);
  }
  .playground-heading {
    padding-block: 39px 28px;
  }
  .playground-heading h1 {
    font-size: 40px;
  }
  .playground-about-link {
    font-size: 10px;
  }
  .playground-toolbar {
    padding: 12px 16px;
  }
  .example-tabs {
    gap: 19px;
  }
  .workspace-panes {
    grid-template-columns: 1fr;
  }
  .source-editor,
  #source-editor {
    height: 410px;
    min-height: 410px;
    flex: none;
  }
  .editor-pane {
    min-height: 0;
  }
  #source-editor,
  .line-numbers {
    font-size: 12px;
  }
  .editor-footer {
    font-size: 9px;
  }
  .playground-preview {
    min-height: 300px;
    padding: 30px;
  }
  .playground-preview .brand {
    margin-bottom: 25px;
  }
  .playground-preview h2 {
    font-size: 33px;
  }
  .preview-message {
    margin-inline: 30px;
  }
  .preview-pane-heading {
    min-height: 46px;
  }
  .lesson-hint {
    padding: 20px 30px;
  }
  .preview-form {
    max-width: 410px;
  }
  .preview-toggle {
    max-width: 400px;
  }
  .playground-about {
    gap: 30px;
    margin-block: 49px;
  }
  .playground-about h2 {
    font-size: 33px;
  }
}
@media (max-width: 560px) {
  .playground-page .site-header {
    min-height: 79px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .playground-page .brand {
    font-size: 27px;
  }
  .playground-page .brand img {
    width: 32px;
    height: 32px;
  }
  .playground-identity {
    gap: 12px;
  }
  .identity-divider {
    font-size: 20px;
  }
  .product-name {
    font-size: 11px;
  }
  .playground-page .site-header nav .back-to-site {
    display: block;
    font-size: 10px;
    white-space: nowrap;
  }
  .back-to-site span {
    display: none;
  }
  .playground-heading {
    display: block;
    padding-block: 35px 25px;
  }
  .playground-heading h1 {
    font-size: 36px;
  }
  .playground-heading .eyebrow {
    font-size: 8px;
  }
  .playground-heading p:not(.eyebrow) {
    font-size: 12px;
    margin-top: 13px;
  }
  .playground-about-link {
    display: inline-block;
    margin-top: 17px;
    font-size: 10px;
  }
  .playground-toolbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px;
  }
  .example-tabs {
    gap: 23px;
    justify-content: space-between;
    width: 100%;
  }
  .example-tabs button {
    font-size: 11px;
    padding: 7px 0;
  }
  .editor-actions {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .run-button {
    font-size: 11px;
    gap: 10px;
  }
  .plain-action {
    font-size: 10px;
  }
  .pane-heading {
    padding: 10px 12px;
    font-size: 9px;
  }
  .pane-heading .copy-button {
    font-size: 8px;
    min-width: 40px;
    min-height: 26px;
    padding: 4px 6px;
  }
  .source-editor,
  #source-editor {
    height: 365px;
    min-height: 365px;
  }
  #source-editor,
  .line-numbers {
    font-size: 11px;
    line-height: 1.9;
  }
  .line-numbers {
    min-width: 32px;
    padding-right: 7px;
  }
  #source-editor {
    padding-left: 10px;
    padding-right: 13px;
  }
  .editor-footer {
    padding: 10px 12px;
    font-size: 8px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .playground-preview {
    padding: 25px 20px;
    min-height: 285px;
  }
  .playground-preview .brand {
    margin-bottom: 29px;
  }
  .playground-preview h2 {
    font-size: 29px;
  }
  .playground-preview > p {
    font-size: 11px;
  }
  .preview-counter {
    gap: 20px;
    margin-top: 27px;
  }
  .preview-counter output {
    font-size: 48px;
  }
  .preview-counter .button {
    font-size: 12px;
    min-height: 39px;
    padding: 8px 15px;
  }
  .preview-form > div {
    flex-wrap: wrap;
  }
  .preview-form .button {
    min-height: 37px;
    width: 100%;
  }
  .preview-message {
    margin-inline: 20px;
    font-size: 8px;
  }
  .lesson-hint {
    padding: 19px 20px;
  }
  .lesson-hint > p:last-child {
    font-size: 10px;
  }
  .playground-about {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-block: 39px 49px;
  }
  .playground-about h2 {
    font-size: 34px;
  }
  .playground-about h2 br {
    display: none;
  }
  .playground-about h2 br::after {
    content: " ";
  }
  .playground-about .local-command {
    padding: 12px;
    font-size: 10px;
  }
  .playground-diagnostics {
    padding: 17px;
  }
  .playground-diagnostics > div {
    display: block;
  }
  .playground-diagnostics span {
    display: block;
    margin-top: 6px;
    line-height: 1.7;
  }
  .playground-diagnostics p {
    font-size: 10px;
  }
  .playground-page .site-footer > p {
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  .playground-identity {
    gap: 8px;
  }
  .identity-divider {
    display: none;
  }
}
