/* accsys tutorial. Same page layout as the other Data Spec tutorials; each page takes the colour of the app section it
   teaches (Home deep blue and yellow, Entries sapphire, Accounts amethyst, Reports rose, Settings slate). */
:root {
  --bg: #eef0f6;
  --surface: #ffffff;
  --ink: #17203a;
  --muted: #4f5a75;
  --line: #d5dae8;
  --spark: #ffc81e;
  --tip: #e3f3ee;
  --tip-line: #0c6e5a;
  --warn: #fbeadb;
  --warn-line: #a04708;
  --bezel: #17203a;
}
.sec-home, .home { --bar: #0b3d78; --accent: #0b3d78; --accent-ink: #ffffff; --tint: #fff1c4; }
.sec-entries, .entries { --bar: #35507f; --accent: #2f5fd0; --accent-ink: #ffffff; --tint: #e3eaf9; }
.sec-accounts, .accounts { --bar: #4a3e78; --accent: #7447c4; --accent-ink: #ffffff; --tint: #ece5f8; }
.sec-reports, .reports { --bar: #7b3f55; --accent: #b8365f; --accent-ink: #ffffff; --tint: #f8e3ea; }
.sec-settings, .settings { --bar: #3b4766; --accent: #4f5e7a; --accent-ink: #ffffff; --tint: #e4e8f0; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #151c31;
    --ink: #edf0f8;
    --muted: #a6b0c8;
    --line: #2a3350;
    --tip: #10302a;
    --tip-line: #3fae92;
    --warn: #35240f;
    --warn-line: #d98a3f;
    --bezel: #000000;
  }
  .sec-home, .home { --bar: #0a2a52; --accent: #ffc81e; --accent-ink: #17203a; --tint: #2b2a1c; }
  .sec-entries, .entries { --bar: #111c40; --accent: #8faaff; --accent-ink: #0b1020; --tint: #1d2a52; }
  .sec-accounts, .accounts { --bar: #1d1339; --accent: #bba0f5; --accent-ink: #0b1020; --tint: #2a2150; }
  .sec-reports, .reports { --bar: #2e1221; --accent: #f59bb6; --accent-ink: #0b1020; --tint: #3d1d30; }
  .sec-settings, .settings { --bar: #161e36; --accent: #b3bdd6; --accent-ink: #0b1020; --tint: #26304c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
html[lang="hi"] body { line-height: 1.75; }
a { color: var(--accent); }
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 57px; padding: 0 16px; background: var(--bar); color: #fff; border-bottom: 3px solid var(--spark); }
header.top strong { font-size: 18px; }
header.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
header.top .brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
header.top .brand > span { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
header.top .sub { color: rgba(255,255,255,.85); font-size: 14px; }
header.top .links { margin-left: auto; display: flex; gap: 6px; }
header.top .links a, header.top .lang { font-size: 14px; font-weight: 600; text-decoration: none; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.55); color: #fff; white-space: nowrap; }
header.top a.lang { background: var(--spark); border-color: var(--spark); color: #17203a; }
header.top .links a:hover { background: rgba(255,255,255,.2); }
#menuBtn { display: none; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.16); color: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; }
.layout { display: flex; max-width: 1180px; margin: 0 auto; }
nav.toc { flex: 0 0 260px; position: sticky; top: 57px; align-self: flex-start; height: calc(100vh - 57px); overflow-y: auto; padding: 20px 12px 40px 16px; font-size: 14px; }
nav.toc h4 { margin: 18px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
nav.toc a { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
nav.toc a:hover, nav.toc a.on { background: var(--tint); color: var(--ink); }
nav.toc a.on { font-weight: 700; }
.dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--accent); }
main { flex: 1; min-width: 0; padding: 20px 20px 80px; }
h1 { font-size: 30px; line-height: 1.3; margin: 4px 0 8px; }
h2 { font-size: 23px; line-height: 1.35; margin: 36px 0 6px; padding-top: 10px; border-top: 3px solid var(--accent); }
h3 { font-size: 18px; margin: 26px 0 6px; }
p.lead { font-size: 18px; color: var(--muted); }
.step { display: flex; gap: 24px; align-items: flex-start; margin: 18px 0; }
.step .txt { flex: 1; min-width: 0; }
.step.flip { flex-direction: row-reverse; }
figure { margin: 0; flex: 0 0 252px; min-width: 0; }
figure img { display: block; width: 100%; height: auto; cursor: zoom-in; }
figure.phone img { width: 252px; border: 6px solid var(--bezel); border-radius: 24px; }
figure.crop { flex: 0 0 330px; }
figure.crop img { width: 330px; border: 2px solid var(--line); border-radius: 14px; }
figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: flex-start; margin: 18px 0; }
.row figure.phone { flex: 0 1 240px; }
.row figure.crop { flex: 0 1 330px; }
.row img { max-width: 100%; }
.row figure.phone img, .row figure.crop img { width: 100%; }
ol, ul { padding-left: 22px; }
li { margin: 4px 0; }
.tip, .warn { border-left: 4px solid; border-radius: 6px; padding: 8px 14px; margin: 14px 0; }
.tip { background: var(--tip); border-color: var(--tip-line); }
.warn { background: var(--warn); border-color: var(--warn-line); }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--tint); }
.btn { display: inline-block; padding: 0 8px; border: 1px solid var(--accent); color: var(--accent); border-radius: 12px; font-size: 14px; font-weight: 600; }
.btn.fill { background: var(--accent); color: var(--accent-ink); }
.btn.add { background: var(--spark); border-color: var(--spark); color: #17203a; }
.in { color: var(--tip-line); font-weight: 700; }
.out { color: var(--warn-line); font-weight: 700; }
.small { font-size: 13px; color: var(--muted); }
ol.quick { counter-reset: q; list-style: none; padding: 0; }
ol.quick li { counter-increment: q; position: relative; padding: 10px 14px 10px 52px; margin: 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
ol.quick li::before { content: counter(q); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--spark); color: #17203a; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 12px; text-decoration: none; color: var(--ink); }
.card:hover { background: var(--tint); }
.card .g { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card b { font-size: 16px; color: var(--accent); }
.card span:last-child { font-size: 14px; color: var(--muted); }
.hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
.hero div { flex: 1 1 260px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; }
.pager a:hover { border-color: var(--accent); background: var(--tint); }
.pager small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pager .nxt { text-align: right; margin-left: auto; }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; }
#lightbox.on { display: flex; }
#lightbox img { max-height: 94vh; max-width: 94vw; border-radius: 16px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; }
@media (max-width: 860px) {
  #menuBtn { display: block; }
  header.top { gap: 8px; padding: 0 12px; }
  header.top .links { display: none; }
  header.top a.lang { margin-left: auto; }
  header.top .sub { display: none; }
  nav.toc { display: none; position: fixed; top: 57px; left: 0; right: 0; bottom: 0; background: var(--surface); z-index: 9; height: auto; }
  nav.toc.open { display: block; }
  nav.toc a { padding: 8px; }
  .layout { display: block; }
  main { padding: 16px 14px 60px; }
  .step, .step.flip { flex-direction: column; align-items: center; }
  .step .txt { width: 100%; }
  figure.crop { flex: 0 1 auto; max-width: 100%; }
  figure.crop img { width: 100%; max-width: 360px; }
  figure.phone { flex: 0 1 auto; }
  .row figure.phone { flex: 0 1 46%; }
  .row figure.phone img { width: 100%; }
  .row figure.crop { flex: 0 1 100%; display: flex; flex-direction: column; align-items: center; }
  main table { display: block; overflow-x: auto; }
  .pager a { max-width: 49%; padding: 8px 10px; }
  .pager b { font-size: 14px; }
}
@media print { header.top, nav.toc, .pager { display: none; } }
