.docsstation-learning-block {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid #dfe5ee;
  border-left: 4px solid #155eef;
  border-radius: 10px;
  background: #f8fbff;
  color: #334155;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.docsstation-learning-block__heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: #0f172a;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.docsstation-learning-block__icon {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #155eef;
  flex-shrink: 0;
}

.docsstation-learning-block__content > *:first-child {
  margin-top: 0;
}

.docsstation-learning-block__content > *:last-child {
  margin-bottom: 0;
}

.docsstation-learning-formula {
  overflow: auto;
  margin: 0.35rem 0;
  padding: 0.9rem 1.05rem;
  background: #eef4ff;
  border-radius: 8px;
  color: #0f172a;
  font-family: "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9rem;
}

.docsstation-learning-block--formula {
  border-color: #e9d7fe;
  border-left-color: #7f56d9;
  background: #fbfaff;
}

.docsstation-learning-block--formula .docsstation-learning-block__icon {
  background: #7f56d9;
}

.docsstation-learning-block--important {
  border-color: #fedf89;
  border-left-color: #f79009;
  background: #fffaeb;
}

.docsstation-learning-block--important .docsstation-learning-block__icon {
  background: #f79009;
}

.docsstation-learning-block--warning,
.docsstation-learning-block--common-mistake {
  border-color: #fecdca;
  border-left-color: #d92d20;
  background: #fff8f7;
}

.docsstation-learning-block--warning .docsstation-learning-block__icon,
.docsstation-learning-block--common-mistake .docsstation-learning-block__icon {
  background: #d92d20;
}

.docsstation-learning-block--tip,
.docsstation-learning-block--shortcut {
  border-color: #abefc6;
  border-left-color: #12b76a;
  background: #f3fcf7;
}

.docsstation-learning-block--tip .docsstation-learning-block__icon,
.docsstation-learning-block--shortcut .docsstation-learning-block__icon {
  background: #12b76a;
}

.docsstation-learning-block-editor {
  padding: 1rem;
  border: 1px dashed #98a2b3;
  border-radius: 8px;
  background: #f8fafc;
}

.docsstation-learning-block-editor p {
  margin-bottom: 0;
}

/* Code Snippet Block */
.docsstation-code-snippet {
  margin: 1.75rem 0;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #101827;
  color: #dbe7f7;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.docsstation-code-snippet__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #263650;
  background: linear-gradient(180deg, #1d2a40, #172438);
  color: #aab8cc;
  font-size: 0.78rem;
}

.docsstation-code-snippet__traffic,
.docsstation-code-snippet-editor__traffic {
  display: flex;
  gap: 0.35rem;
}

.docsstation-code-snippet__traffic i,
.docsstation-code-snippet-editor__traffic i {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #f97068;
}

.docsstation-code-snippet__traffic i:nth-child(2),
.docsstation-code-snippet-editor__traffic i:nth-child(2) {
  background: #fdb022;
}

.docsstation-code-snippet__traffic i:nth-child(3),
.docsstation-code-snippet-editor__traffic i:nth-child(3) {
  background: #32d583;
}

.docsstation-code-snippet__filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8fafc;
  font-weight: 650;
}

.docsstation-code-snippet__language {
  margin-left: auto;
  padding: 0.24rem 0.55rem;
  border: 1px solid #344761;
  border-radius: 999px;
  background: #111b2d;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.docsstation-code-snippet__copy {
  min-width: 62px;
  border: 1px solid #40516d;
  border-radius: 7px;
  padding: 0.4rem 0.65rem;
  background: transparent;
  color: #dbe7f7;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.docsstation-code-snippet__copy:hover {
  border-color: #84adff;
  background: #263a5f;
}

.docsstation-code-snippet pre {
  overflow: auto;
  margin: 0;
  padding: 1.25rem !important;
  background: #0b1220 !important;
  color: #e6edf7 !important;
  tab-size: 4;
  -moz-tab-size: 4;
}

.docsstation-code-snippet pre code,
.docsstation-code-snippet pre code[class*="language-"] {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  font: 0.875rem/1.75 "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace !important;
  white-space: pre !important;
  word-break: normal !important;
}

.docsstation-code-token--keyword { color: #c4a7ff; }
.docsstation-code-token--string { color: #a7e3b1; }
.docsstation-code-token--comment { color: #8293ad; font-style: italic; }
.docsstation-code-token--number { color: #f7c873; }

/* Code Snippet Block Editor */
.docsstation-code-snippet-editor {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #0f172a;
  color: #dbe7f7;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.docsstation-code-snippet-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #263650;
  background: linear-gradient(180deg, #1d2a40, #172438);
  color: #aab8cc;
  font-size: 0.82rem;
}

.docsstation-code-snippet-editor__toolbar strong {
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 650;
}

.docsstation-code-snippet-editor__toolbar > span:last-child {
  margin-left: auto;
  padding: 0.24rem 0.55rem;
  border: 1px solid #344761;
  border-radius: 999px;
  background: #111b2d;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docsstation-code-snippet-editor__traffic i {
  width: 11px !important;
  height: 11px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.docsstation-code-snippet-editor__settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: end;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #263650;
  background: #172438;
}

.docsstation-code-snippet-editor .components-base-control,
.docsstation-code-snippet-editor__filename {
  margin: 0;
  display: block;
}

.docsstation-code-snippet-editor .components-base-control__field {
  margin: 0;
}

.docsstation-code-snippet-editor__settings .components-base-control__label,
.docsstation-code-snippet-editor__filename > .components-base-control__label {
  display: block;
  margin: 0 0 0.38rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 650;
}

.docsstation-code-snippet-editor__settings .components-text-control__input,
.docsstation-code-snippet-editor__settings .components-select-control__input,
.docsstation-code-snippet-editor__filename .components-text-control__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  border: 1px solid #40516d;
  border-radius: 7px;
  background: #0f172a !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.docsstation-code-snippet-editor__settings .components-select-control__input {
  padding-right: 2rem;
}

.docsstation-code-snippet-editor__settings .components-text-control__input:focus,
.docsstation-code-snippet-editor__settings .components-select-control__input:focus,
.docsstation-code-snippet-editor__filename .components-text-control__input:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18) !important;
}

.docsstation-code-snippet-editor__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 230px !important;
  margin: 0 !important;
  padding: 1.1rem 1.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: #0b1220 !important;
  color: #e2e8f0 !important;
  font: 13.5px/1.75 "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
  resize: vertical;
  tab-size: 4;
  caret-color: #93c5fd;
  box-shadow: none !important;
}

.docsstation-code-snippet-editor__input:focus {
  box-shadow: inset 0 0 0 1px #60a5fa !important;
}

.docsstation-code-snippet-editor__input::placeholder {
  color: #64748b;
}

@media (max-width: 782px) {
  .docsstation-code-snippet-editor__settings {
    grid-template-columns: 1fr;
  }

  .docsstation-code-snippet-editor__toolbar,
  .docsstation-code-snippet__header {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .docsstation-code-snippet-editor__input {
    min-height: 190px !important;
    padding: 1rem !important;
  }
}
