:root {
  --ink:#12202f;
  --ink-strong:#071625;
  --muted:#627286;
  --line:#d9e4ea;
  --line-strong:#c4d4dd;
  --paper:#fff;
  --canvas:#f5f8fa;
  --green:#00a76f;
  --green-dark:#006b4d;
  --green-soft:#e5f8f0;
  --blue:#2563eb;
  --blue-soft:#eaf1ff;
  --amber:#c77904;
  --amber-soft:#fff5de;
  --coral:#e25555;
  --violet:#7c3aed;
  --sidebar:#102436;
  --sidebar-2:#15384a;
  --shadow-sm:0 6px 18px rgba(15,31,44,.08);
  --shadow:0 18px 48px rgba(15,31,44,.12);
  --shadow-strong:0 28px 70px rgba(8,22,34,.22);
  --radius:8px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:
    linear-gradient(135deg, rgba(0,167,111,.10), transparent 34%),
    linear-gradient(225deg, rgba(37,99,235,.11), transparent 38%),
    linear-gradient(180deg, #f9fbfc 0%, var(--canvas) 42%, #edf4f2 100%);
  font:16px/1.64 "Segoe UI", Inter, Arial, Helvetica, sans-serif;
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(18,32,47,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,32,47,.035) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.12));
}
a { color:inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline:3px solid rgba(0,167,111,.28);
  outline-offset:3px;
}

.skip-link {
  position:absolute;
  left:-999px;
  top:10px;
  z-index:30;
  padding:9px 13px;
  color:#fff;
  background:var(--ink-strong);
  border-radius:6px;
  text-decoration:none;
}
.skip-link:focus { left:12px; }

.topbar {
  height:72px;
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  gap:18px;
  padding:0 30px;
  background:rgba(255,255,255,.82);
  border-bottom:1px solid rgba(217,228,234,.82);
  box-shadow:0 10px 28px rgba(16,36,54,.06);
  backdrop-filter:blur(16px);
}
.brand {
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:46px;
  padding-left:58px;
  color:var(--ink-strong);
  text-decoration:none;
  font-size:17px;
  font-weight:900;
  letter-spacing:0;
}
.brand::before {
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:42px;
  height:42px;
  transform:translateY(-50%);
  border-radius:8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.45), transparent 52%),
    linear-gradient(135deg, var(--green), #11c7a3 58%, #2f7cf6);
  box-shadow:0 12px 24px rgba(0,167,111,.24);
}
.brand::after {
  content:"";
  position:absolute;
  left:12px;
  top:50%;
  width:18px;
  height:15px;
  transform:translateY(-50%);
  border:2px solid #fff;
  border-radius:4px;
  box-shadow:7px 5px 0 -1px rgba(255,255,255,.78);
}
.brand span {
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  line-height:1.25;
}
.topbar-actions { margin-left:auto; display:flex; align-items:center; gap:10px; }
.erp-link,.print-button,.menu-toggle {
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 14px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.erp-link {
  color:#fff;
  background:linear-gradient(135deg, var(--green), #0696a8);
  box-shadow:0 12px 24px rgba(0,167,111,.22);
}
.erp-link::before { content:""; width:9px; height:9px; border:2px solid currentColor; border-radius:3px; }
.print-button {
  color:var(--green-dark);
  background:#fff;
  border-color:var(--line);
  box-shadow:var(--shadow-sm);
}
.print-button::before { content:""; width:14px; height:11px; border:2px solid currentColor; border-radius:3px; box-shadow:0 -5px 0 -2px currentColor; }
.erp-link:hover,.print-button:hover,.menu-toggle:hover {
  transform:translateY(-1px);
  box-shadow:var(--shadow);
}
.menu-toggle { display:none; color:var(--ink); background:#fff; border-color:var(--line); }

.layout {
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  max-width:1580px;
  margin:0 auto;
}
.sidebar {
  position:sticky;
  top:72px;
  height:calc(100vh - 72px);
  padding:22px 16px;
  overflow:auto;
  color:#d8e6ee;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 26%),
    linear-gradient(160deg, var(--sidebar), var(--sidebar-2));
  border-right:1px solid rgba(255,255,255,.08);
  box-shadow:14px 0 42px rgba(10,26,40,.14);
}
.sidebar::-webkit-scrollbar { width:8px; }
.sidebar::-webkit-scrollbar-thumb { background:rgba(255,255,255,.20); border-radius:99px; }
.sidebar nav { display:grid; gap:4px; }
.sidebar nav p {
  margin:20px 10px 7px;
  color:#8db3c3;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sidebar nav p:first-child { margin-top:0; }
.sidebar a {
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:38px;
  padding:8px 10px;
  border-radius:8px;
  color:#dce9ef;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}
.sidebar a::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  opacity:0;
  background:linear-gradient(90deg, rgba(0,167,111,.22), rgba(47,124,246,.12));
  transition:opacity .18s ease;
}
.sidebar a svg {
  position:relative;
  width:18px;
  height:18px;
  flex:0 0 18px;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
  color:#95bed0;
}
.sidebar a:hover,.sidebar a:focus,.sidebar a.is-active {
  color:#fff;
  transform:translateX(2px);
  outline:none;
}
.sidebar a:hover::before,.sidebar a:focus::before,.sidebar a.is-active::before { opacity:1; }
.sidebar a:hover svg,.sidebar a:focus svg,.sidebar a.is-active svg { color:#65f0bf; }
.sidebar-note {
  margin:26px 10px 0;
  padding:14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  color:#b9ced9;
  background:rgba(255,255,255,.06);
  font-size:12px;
}

.content {
  width:min(100%, 1120px);
  padding:44px clamp(22px,4vw,64px) 78px;
}
.article { scroll-margin-top:96px; margin:0 0 64px; }
.hero {
  position:relative;
  margin:0 0 46px;
  padding:38px clamp(20px,4vw,42px);
  overflow:hidden;
  border:1px solid rgba(196,212,221,.88);
  border-radius:8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.78)),
    linear-gradient(135deg, rgba(0,167,111,.18), rgba(37,99,235,.14));
  box-shadow:var(--shadow);
}
.hero::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(90deg, rgba(18,32,47,.045) 1px, transparent 1px),
    linear-gradient(rgba(18,32,47,.045) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(110deg, rgba(0,0,0,.34), transparent 60%);
}
.hero > * { position:relative; }
.breadcrumb {
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.eyebrow {
  width:max-content;
  max-width:100%;
  margin:0 0 9px;
  padding:5px 9px;
  color:var(--green-dark);
  background:var(--green-soft);
  border:1px solid rgba(0,167,111,.18);
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}
.lead {
  max-width:790px;
  color:#415368;
  font-size:19px;
}
h1,h2,h3 { line-height:1.16; letter-spacing:0; color:var(--ink-strong); }
h1 { margin:0; font-size:clamp(34px,4vw,54px); }
h2 { margin:0 0 15px; font-size:30px; }
h3 { margin:30px 0 11px; font-size:20px; }
p { margin:0 0 15px; }
ol,ul { padding-left:24px; }
li { margin:7px 0; }

.search { position:relative; display:block; max-width:780px; margin-top:28px; }
.search span {
  display:block;
  margin-bottom:8px;
  color:var(--ink-strong);
  font-size:14px;
  font-weight:900;
}
.search input {
  width:100%;
  min-height:52px;
  padding:14px 16px 14px 46px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  color:var(--ink);
  background:
    linear-gradient(90deg, transparent 37px, rgba(217,228,234,.8) 38px, transparent 39px),
    #fff;
  box-shadow:var(--shadow-sm);
  font:inherit;
}
.search::after {
  content:"";
  position:absolute;
  left:16px;
  bottom:18px;
  display:block;
  width:15px;
  height:15px;
  border:2px solid var(--green-dark);
  border-radius:999px;
  box-shadow:8px 8px 0 -6px var(--green-dark);
  pointer-events:none;
}
.search input:focus { border-color:var(--green); box-shadow:0 0 0 4px rgba(0,167,111,.14), var(--shadow); outline:none; }
.search-results { max-width:780px; }
.search-results:not(:empty) {
  margin-top:14px;
  padding:14px 16px;
  border:1px solid rgba(0,167,111,.18);
  border-left:4px solid var(--green);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
}
.search-results a { display:block; color:var(--blue); text-decoration:none; padding:5px 0; font-weight:700; }
.search-results a:hover { color:var(--green-dark); }

.start-panel {
  margin:34px 0 38px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-sm);
}
.start-panel h2 { font-size:23px; }
.start-flow {
  counter-reset:start-step;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.start-flow a {
  counter-increment:start-step;
  position:relative;
  min-height:62px;
  display:flex;
  align-items:center;
  padding:12px 14px 12px 52px;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--ink-strong);
  background:#fff;
  box-shadow:0 8px 18px rgba(15,31,44,.05);
  text-decoration:none;
  font-weight:900;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.start-flow a::before {
  content:counter(start-step);
  position:absolute;
  left:13px;
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#fff;
  background:linear-gradient(135deg, var(--green), var(--blue));
  font-size:13px;
  font-weight:900;
}
.start-flow a:hover,.start-flow a:focus {
  transform:translateY(-2px);
  border-color:rgba(0,167,111,.45);
  box-shadow:var(--shadow);
  outline:none;
}

.quick-grid,.term-grid,.problem-grid,.profile-grid,.glossary {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:20px 0 38px;
}
.quick-grid a,.profile-grid a {
  position:relative;
  min-height:124px;
  padding:50px 16px 16px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-grid a::before,.profile-grid a::before {
  content:"";
  position:absolute;
  top:16px;
  left:16px;
  width:25px;
  height:25px;
  border-radius:7px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.46), transparent),
    linear-gradient(135deg, var(--green), #0aa6b7);
  box-shadow:0 10px 20px rgba(0,167,111,.18);
}
.quick-grid a:nth-child(2n)::before { background:linear-gradient(135deg, var(--blue), #52a7ff); }
.quick-grid a:nth-child(3n)::before { background:linear-gradient(135deg, var(--amber), #f5b84b); }
.quick-grid a:nth-child(4n)::before { background:linear-gradient(135deg, var(--coral), #ff8a69); }
.profile-grid { grid-template-columns:repeat(3,1fr); }
.profile-grid a { min-height:116px; }
.profile-grid a::before { background:linear-gradient(135deg, var(--violet), var(--blue)); }
.quick-grid a:hover,.profile-grid a:hover {
  transform:translateY(-3px);
  border-color:rgba(0,167,111,.38);
  box-shadow:var(--shadow);
}
.quick-grid strong,.quick-grid span,.profile-grid strong,.profile-grid span { display:block; }
.quick-grid span,.profile-grid span {
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  line-height:1.42;
}

.flow {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0;
  font-size:14px;
  font-weight:800;
}
.flow span {
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  box-shadow:0 6px 14px rgba(15,31,44,.05);
}
.flow b { color:var(--green); }

.steps {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:20px 0;
}
.steps div {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:2px 13px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .18s ease, border-color .18s ease;
}
.steps div:hover { border-color:rgba(37,99,235,.24); box-shadow:var(--shadow); }
.steps b {
  grid-row:1 / span 2;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(135deg, var(--green), var(--blue));
  box-shadow:0 10px 20px rgba(37,99,235,.16);
}
.steps strong { display:block; color:var(--ink-strong); }
.steps p { margin:2px 0 0; color:var(--muted); font-size:14px; }

.table-wrap {
  overflow-x:auto;
  margin:14px 0;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
table { width:100%; border-collapse:separate; border-spacing:0; background:#fff; }
th,td { padding:12px 14px; border:0; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
tr:last-child td { border-bottom:0; }
th {
  color:#365168;
  background:linear-gradient(180deg, #f5f9fb, #edf4f6);
  font-size:13px;
  font-weight:900;
}
td:first-child { font-weight:800; color:var(--ink-strong); }
tbody tr:hover td { background:#fbfdfd; }

.callout {
  position:relative;
  margin:24px 0;
  padding:16px 18px 16px 54px;
  border:1px solid rgba(37,99,235,.18);
  border-left:4px solid var(--blue);
  border-radius:8px;
  background:linear-gradient(135deg, var(--blue-soft), #fff);
  box-shadow:var(--shadow-sm);
}
.callout::before {
  content:"";
  position:absolute;
  left:17px;
  top:17px;
  width:21px;
  height:21px;
  border-radius:7px;
  background:var(--blue);
  box-shadow:inset 0 0 0 6px rgba(255,255,255,.32);
}
.callout.success {
  border-color:rgba(0,167,111,.2);
  border-left-color:var(--green);
  background:linear-gradient(135deg, var(--green-soft), #fff);
}
.callout.success::before { background:var(--green); }
.callout.warning {
  border-color:rgba(199,121,4,.22);
  border-left-color:var(--amber);
  background:linear-gradient(135deg, var(--amber-soft), #fff);
}
.callout.warning::before { background:var(--amber); }
.callout a,.problem-grid a { color:var(--blue); font-weight:900; }

.formula {
  display:inline-block;
  margin:6px 0 18px;
  padding:11px 14px;
  border:1px solid #b7d5ec;
  border-radius:8px;
  color:#163752;
  background:linear-gradient(135deg, #eff8ff, #fff);
  box-shadow:var(--shadow-sm);
  font-family:Consolas, "Courier New", monospace;
  font-size:14px;
}
.term-grid div,.problem-grid div,.glossary div {
  position:relative;
  padding:17px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.term-grid div::before,.problem-grid div::before,.glossary div::before {
  content:"";
  display:block;
  width:24px;
  height:4px;
  margin-bottom:12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--green), var(--blue));
}
.term-grid p,.problem-grid p,.glossary p {
  margin:6px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}
.problem-grid { grid-template-columns:repeat(2,1fr); }
.problem-grid strong { display:block; color:var(--ink-strong); }
.problem-grid a { display:inline-block; margin-top:9px; font-size:13px; text-decoration:none; }
.glossary { grid-template-columns:repeat(3,1fr); }

.checklist-demo {
  display:grid;
  gap:9px;
  max-width:580px;
  margin:16px 0 24px;
}
.checklist-demo label,.checklist-demo span {
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:0 6px 16px rgba(15,31,44,.05);
  font-weight:800;
}
.checklist-demo input { accent-color:var(--green); }
.checklist-demo .done { color:var(--green-dark); border-color:#a8dec7; background:var(--green-soft); }
.checklist-demo .pending { color:var(--amber); border-color:#f1cf8e; background:var(--amber-soft); }

.screenshot {
  max-width:820px;
  margin:28px 0;
}
.screenshot-button {
  display:block;
  width:100%;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow);
  cursor:zoom-in;
}
.screenshot img {
  display:block;
  width:100%;
  height:auto;
  transition:transform .22s ease;
}
.screenshot-button:hover img { transform:scale(1.015); }
.screenshot figcaption { margin-top:8px; color:var(--muted); font-size:13px; }

footer {
  margin-top:64px;
  padding-top:22px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
dialog {
  width:min(94vw,1120px);
  max-height:90vh;
  padding:48px 14px 14px;
  border:0;
  border-radius:8px;
  background:#fff;
  box-shadow:var(--shadow-strong);
}
dialog::backdrop { background:rgba(8,18,22,.72); backdrop-filter:blur(4px); }
dialog img { display:block; max-width:100%; max-height:calc(90vh - 62px); margin:auto; border-radius:6px; }
.close-lightbox {
  position:absolute;
  top:10px;
  right:12px;
  min-height:34px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:6px 11px;
  background:#fff;
  font-weight:800;
  cursor:pointer;
}

.is-filtered { display:none; }

@media (prefers-reduced-motion:no-preference) {
  .article { animation:fade-up .38s ease both; }
  @keyframes fade-up {
    from { opacity:0; transform:translateY(10px); }
    to { opacity:1; transform:none; }
  }
}

@media (max-width:1050px) {
  .start-flow,.quick-grid,.term-grid { grid-template-columns:repeat(2,1fr); }
  .layout { grid-template-columns:1fr; }
  .sidebar {
    position:fixed;
    z-index:9;
    top:72px;
    left:0;
    width:min(322px,88vw);
    height:calc(100vh - 72px);
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:18px 0 44px rgba(8,22,34,.28);
  }
  .sidebar.is-open { transform:translateX(0); }
  .menu-toggle { display:inline-flex; }
  .content { margin:0 auto; }
}

@media (max-width:680px) {
  body { font-size:15px; }
  .topbar { height:66px; display:grid; grid-template-columns:auto minmax(0,1fr); padding:0 13px; gap:9px; }
  .brand { min-width:0; min-height:40px; padding-left:47px; font-size:14px; }
  .brand::before { width:36px; height:36px; }
  .brand::after { left:10px; width:15px; height:12px; }
  .brand span { font-size:10px; }
  .topbar-actions { display:none; }
  .erp-link,.print-button,.menu-toggle { min-height:34px; padding:6px 9px; font-size:12px; }
  .content { padding:28px 16px 52px; }
  .hero { padding:26px 17px; }
  .start-panel { padding:16px; }
  .start-flow,.quick-grid,.term-grid,.problem-grid,.profile-grid,.glossary,.steps { grid-template-columns:1fr; }
  .start-flow a { min-height:56px; }
  .flow { gap:6px; }
  .flow span { padding:7px 9px; font-size:12px; }
  h1 { font-size:34px; }
  h2 { font-size:25px; }
  h3 { font-size:18px; }
  th,td { padding:10px; }
  .callout { padding-left:48px; }
  .sidebar { top:66px; height:calc(100vh - 66px); }
}

@media print {
  body { background:#fff; font-size:11pt; }
  body::before,.topbar,.sidebar,.quick-grid,.profile-grid,.search,dialog { display:none!important; }
  .layout { display:block; }
  .content { width:auto; padding:0; }
  .article { break-inside:avoid; margin-bottom:26px; animation:none!important; }
  .hero { padding:0; border:0; box-shadow:none; background:#fff; }
  .hero::before { display:none; }
  .screenshot { max-width:600px; }
  .hero h1 { font-size:29pt; }
  a { text-decoration:none; }
  .callout,.steps div,.term-grid div,.problem-grid div,.glossary div,.table-wrap { break-inside:avoid; box-shadow:none; }
}
