    :root {
      --primary: hsl(160 84% 39%);
      --primary-dark: hsl(160 70% 30%);
      --primary-soft: hsl(160 60% 95%);
      --ink: #16211D;
      --ink-2: #4C5A55;
      --ink-3: #7C8A85;
      --line: #DDE4E0;
      --ground: #F7F9F7;
      --surface: #FCFDFC;
      --warn-soft: #F7F1E4;
      --warn: #7A5B1E;
      --steel: #2B3A35;
      --on-primary: #F4FBF8;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0; background: var(--ground); color: var(--ink);
      font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
      font-size: 17px; line-height: 1.8; letter-spacing: 0; -webkit-text-size-adjust: 100%;
    }
    .wrap { max-width: 46rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem) 4rem; }
    header.top {
      background: var(--surface); border-bottom: 1px solid var(--line);
      padding: .7rem clamp(1rem, 4vw, 2rem); display: flex; align-items: center; justify-content: space-between;
    }
    header.top a.brand { font-weight: 700; color: var(--primary-dark); text-decoration: none; font-size: 1.05rem; }
    header.top a.back { font-size: .85rem; color: var(--ink-3); text-decoration: none; }
    header.top a.back:hover { color: var(--primary-dark); }
    h1, h2, h3, .total .v, .areaVal { font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; }
    h1 {
      font-size: clamp(1.6rem, 5.6vw, 2.4rem); font-weight: 800; line-height: 1.4;
      margin: 2.2rem 0 0; text-wrap: balance;
    }
    .updated { color: var(--ink-3); font-size: .82rem; margin: .6rem 0 0; }
    .lead { color: var(--ink-2); font-size: 1.02rem; margin: 1rem 0 0; max-width: 40rem; }
    h2 { font-size: 1.3rem; font-weight: 800; margin: 2.8rem 0 .8rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); text-wrap: balance; }
    h3 { font-size: 1.02rem; font-weight: 700; margin: 1.4rem 0 .4rem; }
    p { margin: .6rem 0; }
    .calc {
      background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
      padding: clamp(1rem, 3vw, 1.6rem); margin-top: 1.6rem;
    }
    .lbl { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 1.1rem 0 .45rem; display: block; }
    .lbl:first-child { margin-top: 0; }
    .seg { display: flex; gap: .45rem; flex-wrap: wrap; }
    .seg button {
      flex: 1 1 auto; min-width: 6.5rem; font-family: inherit; font-size: .9rem; font-weight: 600;
      padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--line);
      background: var(--ground); color: var(--ink-2); cursor: pointer; transition: all .15s;
    }
    .seg button:hover { border-color: var(--primary); }
    .seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
    .seg button:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 1px; }
    .areaRow { display: flex; align-items: center; gap: 1rem; }
    input[type="range"] { flex: 1; accent-color: var(--primary); height: 2rem; }
    .areaVal {
      font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem;
      min-width: 6.2rem; text-align: center; background: var(--primary-soft);
      border-radius: 10px; padding: .35rem .5rem; color: var(--primary-dark); direction: ltr;
    }
    .checks { display: flex; gap: .5rem 1.4rem; flex-wrap: wrap; }
    .checks label { display: flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
    .checks input { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
    .out { margin-top: 1.5rem; border-top: 2px dashed var(--line); padding-top: 1.1rem; }
    table.br { width: 100%; border-collapse: collapse; font-size: .92rem; }
    table.br td { padding: .5rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
    table.br td.v { font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; text-align: start; color: var(--ink-2); }
    table.br td .d { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 400; }
    table.br td:first-child { font-weight: 500; }
    .total {
      display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
      margin-top: 1rem; padding: .9rem 1rem; background: var(--primary-soft); border-radius: 12px;
    }
    .total .t { font-weight: 700; }
    .total .v { font-size: clamp(1.15rem, 4vw, 1.5rem); font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; direction: ltr; white-space: nowrap; }
    .counts { color: var(--ink-3); font-size: .84rem; margin-top: .7rem; }
    .cta {
      display: flex; align-items: center; justify-content: center; gap: .6rem;
      margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 12px;
      background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 1rem;
      text-decoration: none; transition: background .15s;
    }
    .cta:hover { background: var(--primary-dark); }
    .cta svg { flex: none; }
    .note { font-size: .8rem; color: var(--ink-3); margin-top: .8rem; line-height: 1.7; }
    dl.items { margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
    dl.items dt {
      font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 1.02rem;
      margin: 0; padding: 1rem 0 .15rem;
    }
    dl.items dd {
      margin: 0 0 1rem; padding: 0 0 1rem; color: var(--ink-2); font-size: .93rem;
      border-bottom: 1px solid var(--line);
    }
    dl.items dt:last-of-type { color: var(--primary-dark); }
    dl.items dd:last-of-type { border-bottom: none; padding-bottom: 0; }
    .tbl { overflow-x: auto; }
    table.info { width: 100%; border-collapse: collapse; font-size: .87rem; margin: .8rem 0; }
    table.info th, table.info td { text-align: right; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
    table.info th { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
    table.info td.v { font-variant-numeric: tabular-nums; direction: ltr; text-align: start; white-space: nowrap; font-weight: 500; }
    table.info td:nth-child(2) { color: var(--ink-3); font-size: .82rem; }
    @media (max-width: 30rem) {
      table.info th:nth-child(2), table.info td:nth-child(2) { display: none; }
      table.info td:first-child .ex { display: block; color: var(--ink-3); font-size: .78rem; }
    }
    .disc { background: var(--warn-soft); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; font-size: .87rem; color: var(--warn); margin: 1.4rem 0; }
    details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: .6rem 0; }
    details.faq summary { padding: .85rem 1.05rem; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; }
    details.faq summary::-webkit-details-marker { display: none; }
    details.faq summary::after { content: "+"; float: left; color: var(--ink-3); }
    details.faq[open] summary::after { content: "−"; }
    details.faq .a { padding: 0 1.05rem 1rem; font-size: .9rem; color: var(--ink-2); }
    footer.pg { margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
    footer.pg a { color: var(--primary-dark); }
    @media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }