:root {
  color-scheme: light;
  --header-height: 72px;
  --bg: #f5f6f5;
  --surface: #ffffff;
  --surface-soft: #f3f4f3;
  --surface-green: #eef5f0;
  --text: #181b19;
  --muted: #606762;
  --line: #d9ddda;
  --line-strong: #bec5c0;
  --primary: #0b8043;
  --primary-dark: #075f32;
  --primary-soft: #e7f2ea;
  --accent: #0b8043;
  --amber: #b45309;
  --rose: #be123c;
  --shadow: 0 14px 36px rgba(17, 24, 20, 0.085);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f6f5;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

::selection {
  background: #ccebd6;
  color: #123d24;
}

button,
input {
  font: inherit;
}

.manual-shell {
  min-height: 100vh;
}

.manual-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  padding: 11px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(17, 24, 20, 0.05), 0 6px 22px rgba(17, 24, 20, 0.055);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #17a75a, #08763d);
  color: white;
  box-shadow: 0 7px 18px rgba(11, 128, 67, 0.22);
}

.brand-grid {
  position: relative;
  display: block;
  width: 19px;
  height: 23px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255, 255, 255, 0.9) 32% 38%, transparent 39% 63%, rgba(255, 255, 255, 0.9) 64% 70%, transparent 71%),
    linear-gradient(180deg, transparent 29%, rgba(255, 255, 255, 0.9) 30% 36%, transparent 37% 61%, rgba(255, 255, 255, 0.9) 62% 68%, transparent 69%);
}

.brand-name {
  color: #111412;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: #5f6762;
  font-size: 12px;
  font-weight: 600;
}

.audience-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #b8ddc4;
  border-radius: 999px;
  background: #e6f4ea;
  color: #086435;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(42vw, 430px);
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f4f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.search-box:focus-within {
  border-color: #80bd95;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(19, 138, 74, 0.1);
}

.search-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-submit {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #202522;
  border-radius: 8px;
  background: #202522;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.search-submit:hover,
.search-submit:focus-visible {
  border-color: #0b8043;
  background: #0b8043;
  outline: none;
}

.menu-toggle,
.page-button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--primary-dark);
}

.menu-toggle-icon {
  position: relative;
  width: 16px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-toggle-icon::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 11px;
  border-top: 2px solid currentColor;
  content: "";
}

.manual-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  max-width: 1520px;
  margin: 0 auto;
}

.manual-nav {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: auto;
  padding: 18px 13px 34px;
  border-right: 1px solid #d5dad7;
  background: #ffffff;
  scrollbar-color: #aeb6b1 transparent;
  scrollbar-width: thin;
}

.manual-nav::-webkit-scrollbar {
  width: 7px;
}

.manual-nav::-webkit-scrollbar-thumb {
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #aeb6b1;
}

.manual-nav::before {
  display: block;
  margin: 0 3px 12px;
  padding: 8px 10px;
  border: 1px solid #1d211e;
  border-radius: 10px;
  background: #202522;
  color: #ffffff;
  content: "ご利用メニュー";
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-align: center;
}

.nav-group {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e5e3;
}

.nav-group:last-child {
  border-bottom: 0;
}

.nav-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 8px;
  color: #202522;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.035em;
}

.nav-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 1px solid #cbd2cd;
  border-radius: 8px;
  background: #ffffff;
  color: #176a3d;
}

.nav-group-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-group:has(.nav-item.is-active) .nav-group-title,
.nav-group:has(.nav-item.has-active-child) .nav-group-title {
  color: #111412;
}

.nav-group:has(.nav-item.is-active) .nav-group-icon,
.nav-group:has(.nav-item.has-active-child) .nav-group-icon {
  border-color: #202522;
  background: #202522;
  color: #ffffff;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 2px 0;
  padding: 8px 31px 8px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #272c29;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  border-color: #d5dad7;
  background: #f3f4f3;
  box-shadow: 0 4px 13px rgba(17, 24, 20, 0.06);
  color: #111412;
  outline: none;
  transform: translateX(2px);
}

.nav-item.is-active {
  border-color: #086c39;
  background: #0b8043;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(11, 128, 67, 0.2);
  font-weight: 850;
}

.nav-item.is-active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #171a18;
  content: "";
}

.nav-item.is-active::after {
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  opacity: 0.7;
  transform: rotate(45deg);
}

.nav-item.has-active-child {
  background: #f0f2f0;
  color: #111412;
}

.nav-depth-1 {
  padding-left: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.nav-depth-2 {
  padding-left: 10px;
  font-size: 12px;
  font-weight: 700;
}

.nav-children {
  display: grid;
  gap: 1px;
  margin: 2px 0 4px 17px;
  padding-left: 9px;
  border-left: 1px solid #c9d0cb;
}

.nav-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #9da6a0;
  box-shadow: 0 0 0 3px transparent;
}

.nav-item.is-active .nav-dot {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.nav-depth-1 .nav-dot,
.nav-depth-2 .nav-dot {
  width: 5px;
  height: 5px;
}

.manual-main {
  min-width: 0;
  padding: 32px clamp(20px, 4vw, 54px) 48px;
}

.manual-content {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
  outline: none;
}

.manual-content.has-section-cards {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.manual-intro-card,
.manual-section-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 24, 20, 0.07);
  padding: clamp(20px, 3vw, 32px);
}

.manual-intro-card {
  margin-bottom: 16px;
  border-top: 4px solid #202522;
}

.manual-section-card {
  margin: 16px 0;
  scroll-margin-top: 18px;
}

.manual-section-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d9ddda;
}

.manual-section-card-header h2 {
  margin: 0;
}

.manual-page-title-with-anchor {
  display: flex;
  align-items: center;
  gap: 6px;
}

.manual-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.manual-section-card > :last-child,
.manual-intro-card > :last-child {
  margin-bottom: 0;
}

.manual-content h1,
.manual-content h2,
.manual-content h3 {
  color: #171a18;
  line-height: 1.35;
  letter-spacing: 0;
}

.manual-content h1 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d6dbd7;
  font-size: 30px;
}

.manual-content h2 {
  margin: 32px 0 12px;
  font-size: 21px;
  color: #171a18;
}

.manual-content h3 {
  margin: 22px 0 8px;
  font-size: 16px;
}

.manual-content h1[id],
.manual-content h2[id],
.manual-content h3[id],
.manual-section-card[id] {
  scroll-margin-top: 18px;
}

.manual-anchor-copy {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.manual-anchor-copy:hover,
.manual-anchor-copy:focus-visible {
  background: transparent;
  color: var(--primary-dark);
  outline: none;
}

.manual-anchor-copy.is-copied {
  background: transparent;
  color: var(--primary-dark);
}

.manual-link-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.manual-link-icon::before,
.manual-link-icon::after {
  position: absolute;
  top: 5px;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 8px;
  content: "";
  transform: rotate(-35deg);
}

.manual-link-icon::before {
  left: 1px;
}

.manual-link-icon::after {
  right: 1px;
}

.manual-page-title-with-anchor > .manual-anchor-copy {
  transform: translateY(1px);
}

.manual-content h2 > .manual-anchor-copy,
.manual-content h3 > .manual-anchor-copy {
  vertical-align: middle;
}

.manual-copy-toast {
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  bottom: 24px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #123c24;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.manual-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.manual-content p {
  margin: 0 0 14px;
}

.manual-content ul,
.manual-content ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.manual-content li {
  margin: 5px 0;
}

.manual-content strong {
  font-weight: 850;
}

.manual-content blockquote {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: #f2f4f2;
  color: #27352c;
}

.manual-content code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #eef2f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.manual-content pre {
  overflow-x: auto;
  margin: 14px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.manual-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.manual-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #ffffff;
}

.manual-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.manual-content thead {
  background: #eef0ee;
}

.manual-content th,
.manual-content td {
  min-width: 140px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.manual-content th {
  color: #202522;
  font-size: 12px;
  font-weight: 900;
}

.manual-content tr:last-child td {
  border-bottom: 0;
}

.manual-content tbody tr:nth-child(even) {
  background: #fafbfa;
}

.manual-content tbody tr:hover {
  background: #f2f4f2;
}

.manual-content a {
  color: var(--accent);
  font-weight: 750;
}

.manual-search-page {
  min-height: 520px;
}

.search-page-heading {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9ddda;
}

.search-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #202522;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.manual-search-page .search-page-heading h1 {
  margin-bottom: 10px;
}

.search-page-heading > p {
  max-width: 780px;
  color: #4f5752;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.search-page-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #aeb7b1;
  border-radius: 10px;
  background: #ffffff;
  color: #181b19;
  font-size: 15px;
  outline: none;
}

.search-page-form input:focus {
  border-color: #0b8043;
  box-shadow: 0 0 0 3px rgba(11, 128, 67, 0.12);
}

.search-page-form button {
  min-width: 92px;
  min-height: 48px;
  padding: 9px 18px;
  border: 1px solid #0b8043;
  border-radius: 10px;
  background: #0b8043;
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.search-page-form button:hover,
.search-page-form button:focus-visible {
  border-color: #075f32;
  background: #075f32;
  outline: none;
}

.search-result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  color: #505853;
  font-size: 13px;
}

.search-result-summary strong {
  color: #171a18;
  font-size: 20px;
}

.search-result-list {
  display: grid;
  gap: 12px;
}

.manual-content .search-result-card {
  position: relative;
  display: block;
  padding: 18px 52px 18px 20px;
  border: 1px solid #d5dad7;
  border-left: 4px solid #0b8043;
  border-radius: 12px;
  background: #ffffff;
  color: #202522;
  box-shadow: 0 5px 16px rgba(17, 24, 20, 0.045);
  font-weight: 400;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.manual-content .search-result-card::after {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #0b8043;
  border-right: 2px solid #0b8043;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.manual-content .search-result-card:hover,
.manual-content .search-result-card:focus-visible {
  border-color: #95bda3;
  box-shadow: 0 9px 24px rgba(11, 128, 67, 0.11);
  outline: none;
  transform: translateY(-2px);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #5d6660;
  font-size: 11px;
  font-weight: 750;
}

.search-result-meta span:first-child {
  padding: 2px 7px;
  border-radius: 999px;
  background: #202522;
  color: #ffffff;
}

.manual-content .search-result-card h2 {
  margin: 0 0 7px;
  color: #171a18;
  font-size: 17px;
}

.manual-content .search-result-card p {
  margin: 0 0 9px;
  color: #454d48;
  font-size: 13px;
  line-height: 1.75;
}

.search-result-card mark {
  padding: 0 2px;
  border-radius: 3px;
  background: #c8f0d5;
  color: #103b20;
  font-weight: 850;
}

.search-result-link {
  color: #08713c;
  font-size: 12px;
  font-weight: 850;
}

.search-empty-state {
  padding: 34px 24px;
  border: 1px dashed #aeb7b1;
  border-radius: 12px;
  background: #f7f8f7;
  text-align: center;
}

.manual-content .search-empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.search-empty-state p {
  margin: 0;
  color: #59615c;
}

.manual-screen-image {
  margin: 14px 0 24px;
}

.manual-screen-image figcaption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.screen-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f4f7fb;
}

.screen-phone {
  width: min(100%, 390px);
  margin: 0 auto;
  border: 6px solid #2c2c2c;
  border-radius: 2px;
  background: #f7fafc;
  color: #12213a;
  font-size: 12px;
  line-height: 1.35;
}

.screen-appnav {
  display: grid;
  grid-template-columns: 32px repeat(4, 1fr) 34px;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 6px 10px;
  border-bottom: 1px solid #dce5ef;
  background: #ffffff;
}

.screen-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #101827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.screen-navitem {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #415066;
  font-size: 9px;
  font-weight: 800;
}

.screen-navitem::before {
  content: "";
  width: 16px;
  height: 14px;
  border-radius: 4px 4px 3px 3px;
  background: #415066;
}

.screen-navitem.is-current {
  color: #0f8f64;
}

.screen-navitem.is-current::before {
  background: #10a76f;
}

.screen-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.75) 46%, transparent 47%),
    repeating-linear-gradient(90deg, #0f766e 0 4px, #f97316 4px 8px, #2563eb 8px 12px);
  border: 2px solid #e2e8f0;
}

.screen-pagebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #e5edf6;
  background: #fbfdff;
}

.screen-title {
  min-width: 0;
  flex: 1 1 auto;
  color: #069267;
  font-size: 17px;
  font-weight: 900;
}

.screen-menu-icon,
.screen-square-icon,
.screen-icon-button,
.screen-edit-icon,
.screen-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #d8e2f0;
  border-radius: 7px;
  background: #ffffff;
  color: #2a3d58;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  font-weight: 900;
}

.screen-menu-icon,
.screen-square-icon {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.screen-card {
  position: relative;
  margin: 0 8px 10px;
  padding: 8px;
  border: 1px solid #dce6f2;
  border-radius: 9px;
  background: #ffffff;
}

.screen-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.screen-kpis span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #27415f;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.screen-mini-table {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 8px;
}

.screen-mini-table span {
  min-height: 34px;
  padding: 8px;
  border-bottom: 1px solid #e8eef6;
  color: #12213a;
  font-size: 12px;
  font-weight: 800;
}

.screen-mini-table span:nth-child(1),
.screen-mini-table span:nth-child(2) {
  background: #edf3ff;
  color: #0b5485;
  font-weight: 900;
}

.screen-mini-table span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.screen-toolbar,
.screen-editbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.screen-icon-button {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.screen-input,
.screen-select,
.screen-value,
.screen-textarea {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid #cfd9e8;
  border-radius: 6px;
  background: #f8fafc;
  color: #344055;
  font-size: 12px;
  font-weight: 750;
}

.screen-toolbar .screen-input {
  flex: 1 1 auto;
}

.screen-tree {
  display: grid;
  gap: 0;
}

.screen-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 8px;
  border-bottom: 1px solid #e8eef6;
  color: #12213a;
  font-size: 13px;
  font-weight: 800;
}

.screen-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-category {
  min-height: 35px;
  border-left: 3px solid #54b5ff;
  background: #edf3ff;
  color: #0b5485;
  font-weight: 900;
}

.screen-category.is-selected {
  background: #d7e9ff;
}

.screen-work {
  background: #ffffff;
}

.screen-indent-1 {
  padding-left: 34px;
}

.screen-indent-2 {
  padding-left: 52px;
}

.screen-version {
  color: #718198;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.screen-create {
  width: 30px;
  height: 30px;
  margin-left: auto;
  color: #34445c;
}

.screen-create.is-disabled {
  color: #cbd5e1;
  background: #f4f7fb;
}

.screen-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 9px;
  background: #ffffff;
}

.screen-panel.is-muted {
  opacity: 0.45;
}

.screen-mode-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid #ffd38a;
  border-radius: 999px;
  background: #fffaf0;
  color: #c2410c;
  font-weight: 900;
}

.screen-mode-title span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
}

.screen-label {
  margin-top: 6px;
  color: #718198;
  font-size: 11px;
  font-weight: 900;
}

.screen-select,
.screen-value {
  border: 0;
  background: transparent;
  color: #12213a;
  font-size: 14px;
  padding: 0;
}

.screen-textarea {
  min-height: 52px;
  align-items: flex-start;
  background: #ffffff;
}

.screen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.screen-button,
.screen-primary,
.screen-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #d8e2f0;
  border-radius: 7px;
  background: #ffffff;
  color: #12213a;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.screen-primary {
  border-color: #67d5f7;
  background: #6bd4f5;
  color: #ffffff;
}

.screen-danger {
  margin-left: auto;
  border-color: #ef4444;
  background: #ef4444;
  color: #ffffff;
}

.screen-editbar .screen-primary {
  margin-left: auto;
  background: #6bd4f5;
  border-color: #6bd4f5;
}

.screen-edit-icon {
  width: 28px;
  height: 24px;
  margin-left: auto;
  font-size: 12px;
}

.screen-badge {
  padding: 1px 6px;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  color: #e11d48;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.screen-menu-demo {
  min-height: 520px;
}

.screen-dropdown {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 2;
  display: grid;
  gap: 4px;
  width: min(74%, 270px);
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.screen-dropdown-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.screen-menu-item {
  display: block;
  padding: 6px 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.screen-menu-item.screen-danger {
  justify-content: flex-start;
  min-height: auto;
  margin-left: 0;
  border: 0;
  background: transparent;
  color: #e11d48;
  box-shadow: none;
}

.screen-divider {
  height: 1px;
  margin: 6px -14px;
  background: #e2e8f0;
}

.screen-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.screen-flow span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.screen-flow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  color: #64748b;
}

.screen-prompt {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: #242424;
}

.screen-prompt-card {
  display: grid;
  gap: 12px;
  max-width: 450px;
  padding: 20px;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  background: #1f1f1f;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.screen-prompt-host {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.screen-prompt-question {
  font-size: 12px;
  font-weight: 800;
}

.screen-prompt-input {
  min-height: 36px;
  padding: 8px 10px;
  border: 2px solid #9ec2ff;
  border-radius: 8px;
  color: #ffffff;
  background: #202124;
  font-size: 13px;
  font-weight: 800;
}

.screen-prompt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.screen-prompt-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #9ec2ff;
  color: #08224a;
  font-size: 12px;
  font-weight: 900;
}

.screen-prompt-actions span:last-child {
  background: #075985;
  color: #ffffff;
}

.page-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.page-button {
  min-height: 44px;
  padding: 0 17px;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.page-button:not(:disabled):hover,
.page-button:not(:disabled):focus-visible {
  border-color: #9bc8aa;
  color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(11, 128, 67, 0.09);
  outline: none;
}

#nextPage:not(:disabled) {
  border-color: #0b8043;
  background: #0b8043;
  color: #ffffff;
}

#nextPage:not(:disabled):hover,
#nextPage:not(:disabled):focus-visible {
  border-color: #075f32;
  background: #075f32;
  color: #ffffff;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-search {
  margin: 8px;
  padding: 14px 12px;
  border: 1px dashed #bcc5bf;
  border-radius: 10px;
  background: #f5f6f5;
  color: var(--muted);
  font-size: 13px;
}

.nav-backdrop {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --header-height: 64px;
  }

  .manual-header {
    padding: 8px 14px;
  }

  .search-box {
    min-width: 0;
    width: min(50vw, 320px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .manual-layout {
    display: block;
  }

  .manual-nav {
    position: fixed;
    inset: var(--header-height) auto 0 0;
    z-index: 45;
    width: min(88vw, 344px);
    height: calc(100vh - var(--header-height));
    border-radius: 0 16px 16px 0;
    transform: translateX(-105%);
    transition: transform 190ms ease;
    box-shadow: 16px 0 38px rgba(22, 65, 36, 0.2);
  }

  .manual-nav.is-open {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 40;
    display: block;
    border: 0;
    background: rgba(18, 40, 25, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 190ms ease;
    backdrop-filter: blur(1px);
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .manual-main {
    padding: 20px 14px 34px;
  }

  .screen-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .brand-sub {
    display: none;
  }

  .search-box {
    width: min(40vw, 200px);
    padding: 0 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 14px;
  }

  .manual-content {
    padding: 18px;
  }

  .manual-content h1 {
    font-size: 24px;
  }

  .manual-content h2 {
    font-size: 18px;
  }

  .search-submit {
    padding-inline: 9px;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }

  .search-page-form button {
    width: 100%;
  }

  .manual-content .search-result-card {
    padding: 16px 38px 16px 16px;
  }

  .manual-content .search-result-card::after {
    right: 16px;
  }

  .page-button {
    max-width: 48%;
    height: auto;
    padding: 9px 12px;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .manual-header {
    gap: 8px;
    padding-inline: 10px;
  }

  .brand-name {
    display: none;
  }

  .header-tools {
    flex: 1 1 auto;
    gap: 6px;
  }

  .search-box {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .menu-toggle {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-item,
  .manual-nav,
  .nav-backdrop,
  .page-button {
    transition: none;
  }
}
