:root,
body[data-md-color-primary] {
  --md-text-font: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --md-code-font: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --md-primary-fg-color: #1b78a0;
  --md-primary-fg-color--light: #4aa3c5;
  --md-primary-fg-color--dark: #135a78;
  --md-primary-bg-color: #fbfdfe;
  --md-primary-bg-color--light: rgba(251, 253, 254, 0.88);
  --md-accent-fg-color: #135a78;
  --md-accent-fg-color--transparent: rgba(19, 90, 120, 0.12);
  --md-accent-bg-color: #fbfdfe;
  --md-accent-bg-color--light: rgba(251, 253, 254, 0.88);
  --md-default-fg-color: #10202a;
  --md-default-fg-color--light: #5f6f78;
  --md-default-fg-color--lighter: #92a2aa;
  --md-default-fg-color--lightest: #c8d5dc;
  --md-default-bg-color: #edf3f6;
  --md-default-bg-color--light: #f5f8fa;
  --md-default-bg-color--lighter: #fbfdfe;
  --md-default-bg-color--lightest: #ffffff;
  --md-code-fg-color: #10202a;
  --md-code-bg-color: #dfe9ee;
  --md-code-hl-color: #1b78a0;
  --md-code-hl-color--light: rgba(27, 120, 160, 0.12);
  --md-typeset-color: #10202a;
  --md-typeset-a-color: #1b78a0;
  --md-typeset-table-color: #c8d5dc;
  --md-typeset-table-color--light: rgba(27, 120, 160, 0.06);
  --md-admonition-fg-color: #10202a;
  --md-admonition-bg-color: #fbfdfe;
  --md-footer-fg-color: #fbfdfe;
  --md-footer-fg-color--light: rgba(251, 253, 254, 0.72);
  --md-footer-fg-color--lighter: rgba(251, 253, 254, 0.44);
  --md-footer-bg-color: #10202a;
  --md-footer-bg-color--dark: #081219;
  --md-shadow-z1: 0 0.2rem 0.5rem rgba(16, 32, 42, 0.08), 0 0 0.05rem rgba(16, 32, 42, 0.12);
  --md-shadow-z2: 0 0.2rem 0.5rem rgba(16, 32, 42, 0.12), 0 0 0.05rem rgba(16, 32, 42, 0.16);
  --md-shadow-z3: 0 0.2rem 0.5rem rgba(16, 32, 42, 0.18), 0 0 0.05rem rgba(16, 32, 42, 0.22);
  --manual-accent: #1b78a0;
  --manual-panel: #fbfdfe;
  --manual-page: #edf3f6;
  --manual-border: rgba(27, 120, 160, 0.2);
  --manual-shadow: 0 14px 36px rgba(16, 32, 42, 0.1);
}

body {
  background: var(--manual-page);
}

a.md-header__button.md-logo {
  display: none;
}

.md-header__title .md-header__topic:not([data-md-component="header-topic"]) {
  position: relative;
  height: 100%;
  flex: 0 0 auto;
  align-items: center;
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.md-header__title .md-header__topic:not([data-md-component="header-topic"]) .md-ellipsis {
  display: flex;
  height: 100%;
  align-items: center;
}

.md-header__title > .md-header__ellipsis {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  gap: 0.35rem;
}

.md-header__home-link {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-inline-start: 0;
  padding-inline: 0.55rem;
  border-radius: 1rem;
  color: inherit;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.md-header__home-link:hover,
.md-header__home-link:focus-visible {
  color: inherit;
  background-color: rgba(255, 255, 255, 0.14);
}

.md-header__home-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.md-header__home-link svg {
  display: block;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.md-header__home-label {
  font-size: 0.68rem;
  font-weight: 500;
}

.md-header__title .md-header__topic[data-md-component="header-topic"] {
  position: relative;
  z-index: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}

.md-header__title .md-header__topic[data-md-component="header-topic"] .md-ellipsis {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-header__breadcrumb-link {
  color: inherit;
  text-decoration: none;
}

.md-header__breadcrumb-link:hover,
.md-header__breadcrumb-link:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.md-header__breadcrumb-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.md-typeset {
  font-size: 0.82rem;
  line-height: 1.9;
}

.md-typeset h1 {
  font-weight: 800;
  letter-spacing: 0;
}

.md-typeset h2 {
  margin-top: 2.2em;
  padding-top: 0.3em;
  border-top: 1px solid var(--manual-border);
  font-weight: 760;
  letter-spacing: 0;
}

.md-typeset h3 {
  font-weight: 730;
  letter-spacing: 0;
}

.md-typeset .symptom-anchor {
  scroll-margin-top: 4rem;
}

.md-typeset p,
.md-typeset li {
  letter-spacing: 0;
}

.md-typeset table:not([class]) {
  font-size: 0.76rem;
  border: 1px solid var(--manual-border);
  border-radius: 6px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: color-mix(in srgb, var(--md-primary-fg-color) 8%, white);
}

.md-typeset .admonition {
  font-size: 0.78rem;
  border-color: var(--manual-accent);
  box-shadow: none;
}

.md-typeset ol > li::marker {
  color: var(--md-accent-fg-color);
  font-weight: 800;
}

.md-typeset code {
  border: 1px solid var(--manual-border);
}

.md-typeset .partition-diagram,
.md-typeset .guide-diagram {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto 0.8rem;
  border: 1px solid var(--manual-border);
  border-radius: 6px;
  background: #fbfdfe;
  cursor: zoom-in;
}

.md-typeset .guide-diagram-link {
  display: block;
  width: 100%;
}

.guide-image-lightbox {
  position: fixed;
  inset: 0;
  width: 96vw;
  max-width: 96vw;
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: 3.5rem 1rem 1rem;
  overflow: auto;
  border: 1px solid var(--manual-border);
  border-radius: 8px;
  color: var(--md-default-fg-color);
  background: var(--manual-panel);
  box-shadow: var(--manual-shadow);
}

.guide-image-lightbox::backdrop {
  background: rgba(5, 15, 22, 0.84);
}

.guide-image-lightbox__image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  max-height: calc(100dvh - 6rem);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.guide-image-lightbox__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--md-primary-bg-color);
  background: var(--md-primary-fg-color);
  font: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.guide-image-lightbox__close:hover {
  background: var(--md-primary-fg-color--dark);
}

.guide-image-lightbox__close:focus-visible {
  outline: 3px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .guide-image-lightbox {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    max-height: calc(100vh - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
    padding: 3.25rem 0.5rem 0.5rem;
  }

  .guide-image-lightbox__image {
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
  }
}

.md-typeset .card-log-scroll {
  max-width: 100%;
  margin: 0.75rem 0 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--manual-border);
  border-radius: 6px;
}

.md-typeset .card-log-scroll:focus-visible {
  outline: 3px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.md-typeset table.card-log-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.76rem;
}

.md-typeset table.card-log-table th,
.md-typeset table.card-log-table td {
  min-width: 10rem;
  max-width: 15rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  border-right: 1px solid var(--manual-border);
  border-bottom: 1px solid var(--manual-border);
}

.md-typeset table.card-log-table th:first-child,
.md-typeset table.card-log-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 8rem;
  max-width: 8rem;
  background: var(--manual-panel);
}

.md-typeset table.card-log-table thead th {
  background: var(--md-default-bg-color--lighter);
}

.md-typeset table.card-log-table thead th:first-child {
  z-index: 2;
}

.md-typeset table.card-log-table caption {
  padding: 0.65rem 0.75rem;
  color: var(--md-default-fg-color--light);
  text-align: left;
  font-weight: 700;
}

.md-typeset table.card-log-path-table {
  min-width: 64rem;
}

.md-typeset table.card-log-schema-table {
  min-width: 128rem;
}

.md-typeset .app-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.25rem;
}

.md-typeset .app-platform-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--manual-border);
  border-radius: 12px;
  color: var(--md-default-fg-color);
  background: var(--manual-panel);
  text-decoration: none;
  box-shadow: var(--md-shadow-z1);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.md-typeset a.app-platform-card:hover {
  border-color: var(--manual-accent);
  color: var(--md-default-fg-color);
  box-shadow: var(--md-shadow-z2);
  transform: translateY(-1px);
}

.md-typeset a.app-platform-card:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.md-typeset .app-platform-icon {
  display: block;
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 22%;
  object-fit: cover;
}

.md-typeset .app-platform-card--web .app-platform-icon {
  border: 1px solid var(--manual-border);
}

.md-typeset .app-platform-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  line-height: 1.45;
}

.md-typeset .app-platform-title {
  font-size: 0.92rem;
  font-weight: 760;
}

.md-typeset .app-platform-detail,
.md-typeset .app-platform-note {
  color: var(--md-default-fg-color--light);
  font-size: 0.72rem;
}

.md-typeset .app-platform-action {
  margin-top: 0.2rem;
  color: var(--manual-accent);
  font-size: 0.73rem;
  font-weight: 760;
}

.md-typeset .app-platform-card--planned .app-platform-action {
  color: var(--md-default-fg-color--light);
}

.md-typeset a.github-source-card {
  display: block;
  max-width: 35rem;
  margin: 1.1rem 0;
  overflow: hidden;
  border: 1px solid var(--manual-border);
  border-radius: 12px;
  color: var(--md-default-fg-color);
  background: var(--manual-panel);
  text-decoration: none;
  box-shadow: var(--md-shadow-z1);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.md-typeset a.github-source-card:hover {
  border-color: var(--manual-accent);
  color: var(--md-default-fg-color);
  box-shadow: var(--md-shadow-z2);
  transform: translateY(-1px);
}

.md-typeset a.github-source-card:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.md-typeset .github-source-card img {
  display: block;
  width: 100%;
  height: auto;
}

.md-typeset .github-source-card__body {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 1rem 0.85rem;
  line-height: 1.5;
}

.md-typeset .github-source-card__body strong {
  font-size: 0.9rem;
}

.md-typeset .github-source-card__body > span {
  color: var(--manual-accent);
  font-size: 0.77rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .md-typeset .app-platform-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep nested guide sections inside the mobile side panel instead of sliding to a subpanel. */
@media screen and (max-width: 76.234375em) {
  .md-nav--primary .md-nav__item--nested > .md-nav__toggle:not(:checked) ~ .md-nav {
    display: none;
  }

  .md-nav--primary .md-nav__item--nested > .md-nav__toggle:checked ~ .md-nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    transform: none;
    overflow: visible;
    z-index: auto;
    transition: none;
    background: transparent;
  }

  .md-nav--primary .md-nav__item--nested > .md-nav > .md-nav__title {
    display: none;
  }

  .md-nav--primary .md-nav__item--nested > .md-nav > .md-nav__list {
    max-height: none;
    margin-inline-start: 0.8rem;
    padding: 0.15rem 0 0.4rem 0.55rem;
    overflow: visible;
    border-inline-start: 2px solid var(--manual-border);
    box-shadow: none;
    scroll-snap-type: none;
  }

  .md-nav--primary .md-nav__item--nested > .md-nav > .md-nav__list > .md-nav__item {
    border-top: 0;
  }

  .md-nav--primary .md-nav__item--nested > .md-nav > .md-nav__list .md-nav__link {
    font-size: 0.75rem;
  }
}
