:root {
  --theme-color: #8c0012;
  --oksi-burgundy: #8c0012;
  --oksi-burgundy-dark: #68000d;
  --oksi-burgundy-soft: #f8eef0;
  --oksi-border: #e5e1df;
  --oksi-muted: #6a6664;
  --oksi-surface: #fbfaf9;
  --oksi-surface-strong: #f5f2f0;
}

body {
  font-size: 16.5px;
  line-height: 1.62;
}

.markdown-section {
  max-width: 920px;
  padding-right: 32px;
  padding-left: 32px;
  padding-top: 32px;
  padding-bottom: 48px;
}

.markdown-section h1 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.22;
}

.markdown-section h2 {
  margin: 34px 0 13px;
  font-size: 24px;
  line-height: 1.3;
}

.markdown-section h3 {
  margin: 26px 0 11px;
  font-size: 19px;
  line-height: 1.35;
}

.markdown-section p {
  margin: 0 0 12px;
}

.markdown-section ul,
.markdown-section ol {
  margin-top: 8px;
  margin-bottom: 14px;
}

.markdown-section li {
  margin: 3px 0;
}

.markdown-section code {
  font-size: .92em;
  padding: .12em .34em;
  border: 1px solid #ebe7e5;
  border-radius: 4px;
  background: #f6f4f3;
  color: #5f1b24;
}

.markdown-section figure {
  margin: 22px 0 28px;
}

.markdown-section figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  cursor: zoom-in;
}

.markdown-section figure.mobile-screen img {
  width: auto;
  max-width: min(100%, 560px);
  max-height: 760px;
}

.markdown-section figure.mobile-screen .oksi-screen-preview {
  width: 100%;
  overflow: hidden;
}

.markdown-section figure.mobile-screen .oksi-screen-preview img {
  width: 100%;
  max-height: none;
}

.markdown-section figcaption {
  margin-top: 8px;
  color: #666;
  font-size: 14.5px;
  line-height: 1.45;
}

.markdown-section table {
  display: table;
  width: 100%;
  margin: 14px 0 24px;
  font-size: 16px;
  line-height: 1.5;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--oksi-border);
  border-radius: 7px;
}

.markdown-section th,
.markdown-section td {
  padding: 11px 13px;
  border-color: var(--oksi-border);
}

.markdown-section th {
  background: var(--oksi-surface-strong);
  color: #3f3b39;
  font-weight: 600;
}

@media (hover: hover) {
  .markdown-section .oksi-table tbody tr:hover {
    background: #fdf9f9;
  }
}

.problem-card {
  position: relative;
  margin: 16px 0;
  padding: 18px 21px 19px;
  border: 1px solid var(--oksi-border);
  border-left: 3px solid #8c0012;
  border-radius: 0 7px 7px 0;
  background: var(--oksi-surface);
}

.problem-card h2 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
}

.problem-card p {
  margin: 7px 0 0;
}

.problem-label {
  display: block;
  margin-top: 10px;
  color: #8c0012;
  font-size: 15px;
  font-weight: 600;
}

.sidebar {
  font-size: 15.5px;
  line-height: 1.5;
  border-right: 1px solid #eeeae8;
  background: #fff;
}

.sidebar-toggle {
  display: none;
}

/* Premium Docs UX V2 */

.app-nav {
  right: 24px;
  margin: 18px 0 0;
  max-width: calc(100vw - 360px);
}

.app-nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 6px;
  margin: 0;
}

.app-nav a {
  padding: 7px 9px;
  color: #4f4a48;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .025em;
}

.app-nav a:hover,
.app-nav a:focus-visible {
  color: var(--oksi-burgundy);
}

.app-nav a.active:not(.oksi-current) {
  color: #4f4a48;
  border-bottom-color: transparent;
}

.app-nav a.oksi-current {
  color: var(--oksi-burgundy);
  border-bottom: 2px solid var(--oksi-burgundy);
}

.sidebar .app-name {
  padding: 18px 16px 10px;
}

.sidebar .app-name img {
  max-width: 188px;
}

.sidebar .search {
  margin: 0 16px 15px;
  padding: 0;
  border: 1px solid #ded9d7;
  border-radius: 7px;
  background: #fff;
}

.sidebar .search input {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  font-size: 14.5px;
}

.sidebar .search input:focus {
  outline: 2px solid rgba(140, 0, 18, .17);
  outline-offset: 1px;
}

.sidebar .search .clear-button {
  padding: 8px;
}

.oksi-search-page {
  margin-top: 12px;
  color: var(--oksi-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sidebar-nav {
  padding: 0 8px 32px 10px;
}

.sidebar-nav > ul > li > p {
  margin: 20px 10px 6px;
  color: #77716e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
}

.sidebar .sidebar-nav li a {
  margin: 1px 0;
  padding: 5px 10px;
  border-radius: 5px;
  color: #4b4745;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.5;
}

.sidebar-nav li.active > a {
  position: relative;
  background: var(--oksi-burgundy-soft);
  color: var(--oksi-burgundy);
  font-weight: 600;
}

.sidebar-nav li.active > a::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--oksi-burgundy);
  content: '';
}

.oksi-sidebar-toggle {
  position: relative;
  display: block;
  width: calc(100% - 8px);
  margin: 7px 0 3px;
  padding: 4px 24px 4px 10px;
  border: 0;
  background: transparent;
  color: #4d4846;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.oksi-sidebar-toggle::after {
  position: absolute;
  top: 5px;
  right: 7px;
  color: #8c8582;
  content: '−';
}

.oksi-sidebar-collapsed > .oksi-sidebar-toggle::after {
  content: '+';
}

.oksi-sidebar-collapsed > ul {
  display: none;
}

.sidebar-nav .oksi-sidebar-branch {
  position: relative;
}

.sidebar-nav .oksi-sidebar-branch > a {
  padding-right: 38px;
}

.oksi-sidebar-toggle.oksi-sidebar-toggle--icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
}

.oksi-sidebar-toggle--icon::after {
  top: 5px;
  right: 12px;
}

.oksi-sidebar-toggle:focus-visible {
  outline: 2px solid var(--oksi-burgundy);
  outline-offset: 1px;
}

.markdown-section > p:first-of-type {
  color: #4f4a48;
  font-size: 17px;
  line-height: 1.65;
}

.oksi-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
  margin: 0 0 13px;
  color: #7a7471;
  font-size: 13.5px;
}

.oksi-breadcrumbs > :not(:last-child)::after {
  margin-left: 7px;
  color: #b5afac;
  content: '/';
}

.oksi-breadcrumbs a {
  color: var(--oksi-burgundy);
  text-decoration: none;
}

.oksi-breadcrumbs a:hover {
  text-decoration: underline;
}

.oksi-breadcrumbs [aria-current='page'] {
  color: #4f4a48;
}


.oksi-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 34px;
}

.oksi-task-grid a {
  display: flex;
  min-height: 94px;
  padding: 16px 17px;
  border: 1px solid var(--oksi-border);
  border-top: 2px solid var(--oksi-burgundy);
  border-radius: 7px;
  background: #fff;
  color: #342f2d;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.oksi-task-grid a:hover,
.oksi-task-grid a:focus-visible {
  border-color: #c9aeb2;
  background: #fdf9f9;
  transform: translateY(-1px);
}

.oksi-task-grid strong {
  margin-bottom: 4px;
  color: var(--oksi-burgundy);
  font-size: 17px;
  font-weight: 650;
}

.oksi-task-grid span {
  color: var(--oksi-muted);
  font-size: 14.5px;
  line-height: 1.4;
}

.oksi-home-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 6px 0 32px;
}

.oksi-home-columns > section {
  min-width: 0;
}

.oksi-home-columns h2 {
  margin-top: 0;
}

.oksi-popular-links,
.oksi-faq-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 28px;
}

.oksi-popular-links a,
.oksi-faq-popular a {
  padding: 7px 10px;
  border: 1px solid var(--oksi-border);
  border-radius: 5px;
  background: #fff;
  color: #5f1b24;
  font-size: 14px;
  text-decoration: none;
}

.oksi-popular-links a:hover,
.oksi-faq-popular a:hover {
  border-color: #c9aeb2;
  background: var(--oksi-burgundy-soft);
}

.markdown-section details {
  margin: 10px 0;
  border: 1px solid var(--oksi-border);
  border-radius: 7px;
  background: #fff;
}

.markdown-section details[open] {
  border-color: #d6c3c6;
  background: #fefcfc;
}

.markdown-section details summary {
  position: relative;
  padding: 14px 48px 14px 16px;
  color: #36312f;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.markdown-section details summary::-webkit-details-marker {
  display: none;
}

.markdown-section details summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 22px;
  height: 22px;
  border: 1px solid #dcc5c9;
  border-radius: 50%;
  color: var(--oksi-burgundy);
  font-size: 17px;
  font-weight: 400;
  line-height: 19px;
  text-align: center;
  transform: translateY(-50%);
  content: '+';
}

.markdown-section details[open] summary::after {
  content: '−';
}

.markdown-section details > div {
  padding: 0 16px 15px;
  border-top: 1px solid #eee9e7;
}

.markdown-section details > div p:first-child {
  margin-top: 13px;
}

.oksi-steps {
  padding: 0;
  counter-reset: oksi-step;
  list-style: none;
}

.oksi-steps > li {
  position: relative;
  min-height: 48px;
  margin: 0;
  padding: 6px 0 20px 58px;
  counter-increment: oksi-step;
}

.oksi-steps > li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #dec8cb;
  border-radius: 50%;
  background: var(--oksi-burgundy-soft);
  color: var(--oksi-burgundy);
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  content: counter(oksi-step, decimal-leading-zero);
}

.oksi-steps > li:not(:last-child)::after {
  position: absolute;
  top: 40px;
  bottom: -2px;
  left: 18px;
  width: 1px;
  background: #e6d7d9;
  content: '';
}

/* Compact workflows reuse the article's numbered steps and brand colours. */
.oksi-flow > li > strong,
.oksi-flow > li > span {
  display: block;
}

.oksi-flow > li > span {
  margin-top: 5px;
  color: var(--oksi-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

@media screen and (min-width: 1000px) {
  .oksi-steps.oksi-flow {
    display: flex;
    margin: 24px 0;
  }

  .oksi-steps.oksi-flow > li {
    flex: 1;
    min-width: 0;
    padding: 54px 16px 0 0;
  }

  .oksi-steps.oksi-flow > li:not(:last-child)::after {
    top: 21px;
    right: 12px;
    bottom: auto;
    left: 44px;
    width: auto;
    height: 1px;
  }
}

.oksi-figure {
  position: relative;
  padding-top: 29px;
}

.oksi-shot-label {
  position: absolute;
  top: 0;
  left: 0;
  color: #6f6966;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.oksi-figure img:focus-visible {
  outline: 3px solid rgba(140, 0, 18, .25);
  outline-offset: 3px;
}

.markdown-section .oksi-diagram {
  padding-top: 0;
}

.oksi-diagram picture,
.markdown-section .oksi-diagram img {
  display: block;
  width: 100%;
}

.markdown-section .oksi-revision-date {
  margin-top: -13px;
  margin-bottom: 22px;
  color: var(--oksi-muted);
  font-size: 14px;
  line-height: 1.5;
}

.medium-zoom-overlay {
  background: rgba(255, 255, 255, .96) !important;
  z-index: 99;
}

.medium-zoom-image--opened {
  z-index: 100;
}

.oksi-system-pair {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin: 18px 0 30px;
  padding: 18px;
  border: 1px solid var(--oksi-border);
  border-top: 2px solid var(--oksi-burgundy);
  border-radius: 7px;
  background: var(--oksi-surface);
}

.oksi-system-pair > section {
  min-width: 0;
  padding: 0 2px;
}

.oksi-system-pair > section + section {
  padding-left: 18px;
  border-left: 1px solid #e4ddda;
}

.oksi-system-pair h3 {
  margin: 0 0 3px;
  color: var(--oksi-burgundy);
  font-size: 17px;
}

.oksi-system-pair > section > p {
  color: var(--oksi-muted);
  font-size: 14px;
}

.oksi-system-pair figure {
  margin: 15px 0 10px;
}

.oksi-settings-table {
  border: 0 !important;
  border-radius: 0 !important;
}

.oksi-settings-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.oksi-settings-table tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.oksi-settings-table tr {
  display: block;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--oksi-border);
  border-radius: 7px;
  background: #fff;
}

.oksi-settings-table td {
  display: block;
  padding: 0;
  border: 0;
}

.oksi-settings-table td:first-child {
  margin-bottom: 6px;
  color: #4d1119;
  font-size: 16px;
  font-weight: 650;
}

.oksi-settings-table td:last-child {
  color: #595351;
  font-size: 15px;
}

.oksi-callout {
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid var(--oksi-border);
  border-left: 3px solid #8d8581;
  border-radius: 0 6px 6px 0;
  background: #f8f7f6;
  color: #403b39;
}

.oksi-callout--important,
.oksi-callout--error {
  border-left-color: var(--oksi-burgundy);
  background: var(--oksi-burgundy-soft);
}

.oksi-callout--tip {
  border-left-color: #70625d;
  background: #f5f2f0;
}

.oksi-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.oksi-support-actions a {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cdb5b9;
  border-radius: 6px;
  background: #fff;
  color: var(--oksi-burgundy);
  font-weight: 600;
  align-items: center;
  text-decoration: none;
}

.oksi-support-actions a:hover {
  background: var(--oksi-burgundy-soft);
}

.oksi-support-strip {
  margin: 42px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--oksi-border);
  border-left: 3px solid var(--oksi-burgundy);
  border-radius: 0 7px 7px 0;
  background: var(--oksi-surface);
}

.oksi-support-strip > strong {
  color: #4a151c;
  font-size: 16px;
}

.oksi-support-strip p {
  margin: 5px 0 8px;
  color: #595351;
  font-size: 14.5px;
}

.oksi-support-links {
  display: flex;
  gap: 16px;
  font-size: 14.5px;
}

.pagination-item {
  margin-top: 34px;
  padding-top: 20px;
  border-top-color: var(--oksi-border);
}

.pagination-item-label {
  color: #837c79;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pagination-item-title {
  color: var(--oksi-burgundy);
  font-size: 16px;
}

@media screen and (min-width: 1500px) {
  .content.oksi-has-toc {
    padding-right: 245px;
  }

  .oksi-inline-toc {
    display: none;
  }

  .oksi-page-toc {
    position: fixed;
    top: 96px;
    right: 24px;
    z-index: 2;
    width: 205px;
    max-height: calc(100vh - 125px);
    padding-left: 15px;
    overflow: auto;
    border-left: 1px solid var(--oksi-border);
    background: rgba(255, 255, 255, .96);
  }

  .oksi-page-toc__title {
    margin-bottom: 9px;
    color: #4e4947;
    font-size: 13px;
    font-weight: 700;
  }

  .oksi-page-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .oksi-page-toc li {
    margin: 0 0 7px;
    line-height: 1.28;
  }

  .oksi-page-toc a {
    color: #77716e;
    font-size: 12.5px;
    text-decoration: none;
  }

  .oksi-page-toc a:hover {
    color: var(--oksi-burgundy);
  }

  .oksi-page-toc ul ul {
    margin: 7px 0 0 10px;
    padding-left: 9px;
    border-left: 1px solid var(--oksi-border);
  }
}

@media screen and (max-width: 1499px) {
  .oksi-page-toc {
    display: none;
  }
}

@media screen and (max-width: 1100px) {
  .app-nav > ul > li {
    margin: 0;
  }

  .app-nav {
    right: 16px;
    max-width: calc(100vw - 330px);
  }

  .app-nav a {
    padding: 6px;
    font-size: 12px;
  }

  .oksi-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oksi-home-columns {
    gap: 22px;
  }
}

@media screen and (min-width: 769px) and (max-width: 850px) {
  .markdown-section {
    padding-top: 54px;
  }
}

@media screen and (max-width: 768px) {
  .oksi-settings-table-multi,
  .oksi-settings-table-multi tbody,
  .oksi-settings-table-multi tr,
  .oksi-settings-table-multi td {
    display: block;
    width: 100%;
  }

  .oksi-settings-table-multi thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .oksi-settings-table-multi tr {
    margin: 0 0 12px;
    padding: 13px 15px;
    border: 1px solid var(--oksi-border);
    border-radius: 7px;
    background: #fff;
  }

  .oksi-settings-table-multi td {
    padding: 5px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .oksi-settings-table-multi td + td {
    border-top: 1px solid var(--oksi-border);
  }

  .oksi-settings-table-multi td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--oksi-muted);
    font-size: 12px;
    font-weight: 600;
    content: attr(data-label);
  }

  .app-nav {
    display: none;
  }

  .sidebar-nav .app-sub-sidebar {
    display: none;
  }

  .sidebar-toggle {
    display: block;
    top: 12px;
    bottom: auto;
    left: 12px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid #e2dcda;
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 8px rgba(55, 42, 38, .08);
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .markdown-section {
    padding: 70px 16px 40px;
  }

  .markdown-section > p:first-of-type {
    font-size: 16.5px;
  }

  .markdown-section h1 {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .markdown-section h2 {
    margin-top: 29px;
    font-size: 22px;
  }

  .markdown-section h3 {
    font-size: 18px;
  }

  .markdown-section table {
    display: block;
    overflow-x: auto;
    font-size: 16px;
  }

  .oksi-task-grid,
  .oksi-home-columns,
  .oksi-settings-table tbody,
  .oksi-system-pair {
    grid-template-columns: 1fr;
  }

  .oksi-task-grid {
    gap: 9px;
  }

  .oksi-task-grid a {
    min-height: 78px;
    padding: 13px 14px;
  }

  .oksi-home-columns {
    gap: 8px;
  }

  .oksi-home-columns > section + section {
    margin-top: 8px;
  }

  .oksi-system-pair {
    padding: 15px;
  }

  .oksi-system-pair > section + section {
    padding-top: 16px;
    padding-left: 2px;
    border-top: 1px solid #e4ddda;
    border-left: 0;
  }

  .oksi-breadcrumbs {
    font-size: 12.5px;
  }

  .oksi-steps > li {
    padding-left: 52px;
  }

  .oksi-support-actions {
    display: grid;
  }

  .oksi-support-actions a {
    justify-content: center;
  }

  .markdown-section figure.mobile-screen img {
    max-height: none;
  }

  .problem-card {
    padding: 14px 15px 15px;
  }
}

@media screen and (max-width: 420px) {
  .markdown-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .markdown-section h1 {
    font-size: 27px;
  }

  .markdown-section details summary {
    padding-right: 43px;
    font-size: 16.5px;
  }

  .oksi-popular-links a,
  .oksi-faq-popular a {
    width: 100%;
  }

  .oksi-support-links {
    flex-wrap: wrap;
  }
}
