:root {
  --bg: #fbfbf9; --surface: #ffffff; --text: #1d2125; --muted: #5d6670;
  --border: #e3e5e8; --accent: #0a6ed1; --accent-soft: #e8f1fb;
  --tcode-bg: #fff4d6; --tcode-text: #7a4b00; --tcode-border: #f0d48a;
  --exam-bg: #fdecef; --exam-border: #e8a2b0; --exam-text: #8a1c33;
  --tip-bg: #e9f7ef; --tip-border: #9fd5b4; --new-bg: #efeafd; --new-border: #b9a7ef;
  --code-bg: #f3f4f6;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181c; --surface: #1d2126; --text: #e6e8eb; --muted: #9aa3ad;
    --border: #2f353c; --accent: #5aa9f0; --accent-soft: #1d2d3f;
    --tcode-bg: #3a2e12; --tcode-text: #ffd479; --tcode-border: #6b5520;
    --exam-bg: #3a1c24; --exam-border: #7a3646; --exam-text: #ffb3c2;
    --tip-bg: #17311f; --tip-border: #2f6a42; --new-bg: #261f40; --new-border: #4c3e85;
    --code-bg: #262b31;
  }
}
:root[data-theme="dark"] {
  --bg: #15181c; --surface: #1d2126; --text: #e6e8eb; --muted: #9aa3ad;
  --border: #2f353c; --accent: #5aa9f0; --accent-soft: #1d2d3f;
  --tcode-bg: #3a2e12; --tcode-text: #ffd479; --tcode-border: #6b5520;
  --exam-bg: #3a1c24; --exam-border: #7a3646; --exam-text: #ffb3c2;
  --tip-bg: #17311f; --tip-border: #2f6a42; --new-bg: #261f40; --new-border: #4c3e85;
  --code-bg: #262b31;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface);
  border-bottom: 1px solid var(--border); padding: 10px 16px; display: flex;
  gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar .brand { font-weight: 700; color: var(--text); }
.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; display: grid;
  grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
.wrap.single { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
aside.toc { position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 80px);
  overflow: auto; font-size: 14px; border-right: 1px solid var(--border); padding-right: 16px; }
aside.toc ol, aside.toc ul { padding-left: 18px; margin: 4px 0; }
aside.toc li { margin: 3px 0; }
main { min-width: 0; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.45rem; margin: 48px 0 12px; padding-top: 12px; border-top: 2px solid var(--border); }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }
h4 { font-size: 1rem; margin: 20px 0 6px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.objectives { background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; }
.objectives h4 { margin-top: 0; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14.5px; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); }
code { font-family: var(--mono); background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.tcode { font-family: var(--mono); font-weight: 700; font-size: .9em; background: var(--tcode-bg);
  color: var(--tcode-text); border: 1px solid var(--tcode-border); padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.fiori { font-size: .9em; font-style: italic; background: var(--accent-soft); padding: 0 6px; border-radius: 4px; }
.callout { border-left: 4px solid; border-radius: 6px; padding: 10px 14px; margin: 16px 0; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout.exam { background: var(--exam-bg); border-color: var(--exam-border); }
.callout.exam .label { color: var(--exam-text); }
.callout.tip { background: var(--tip-bg); border-color: var(--tip-border); }
.callout.new { background: var(--new-bg); border-color: var(--new-border); }
.callout .label { font-weight: 700; display: block; margin-bottom: 4px; }
ol.steps { counter-reset: s; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 36px; margin: 8px 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0; font-size: 14px; }
.flow span { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.flow i { color: var(--muted); font-style: normal; }
.config-path { font-family: var(--mono); font-size: 13.5px; background: var(--code-bg); padding: 6px 10px;
  border-radius: 6px; display: block; overflow-x: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.card h3 { margin-top: 0; }
.card ol { padding-left: 20px; margin: 6px 0; font-size: 14.5px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 16px;
  border-top: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
input.search { width: 100%; padding: 8px 12px; font-size: 15px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); color: var(--text); }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 24px 16px; border-top: 1px solid var(--border); }
@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  aside.toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 12px; }
}
