  :root {
    --bg: #2F251D; --fg: #E7D6C8; --sub: #CECAC6; --dim: #8F7859; --faint: #6F5C45;
    --accent: #FABE7E; --line: #5B4B39; --on-accent: #2F251D; --on-accent-sub: #6B5238;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  body {
    background: var(--bg); color: var(--fg);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    display: flex; flex-direction: column; min-height: 100vh;
  }
  main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 32px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; }
  .left { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .brandbig { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
  .mark { width: 140px; height: auto; display: block; }
  .name { font-size: 82px; font-weight: 600; letter-spacing: 0.5px; line-height: 1; position: relative; top: -0.082em; }
  .lead { font-size: 24px; line-height: 1.4; }
  .sub { font-size: 16px; line-height: 1.7; color: var(--sub); margin-top: 6px; }
  .nos { display: grid; grid-template-columns: repeat(3, 175px); justify-items: center; margin-top: 16px; font-size: 19px; font-weight: 500; }
  .nos span { display: block; white-space: nowrap; line-height: 1.4; }
  .nos i { vertical-align: middle; position: relative; top: -0.04em; margin: 0 8px 0 -28px; color: var(--accent); font-size: 20px; }
  .dl {
    background: var(--accent); color: var(--on-accent); border: none; border-radius: 16px;
    padding: 22px 0; width: 400px; max-width: 100%; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; margin-top: 28px;
    font-family: inherit; text-align: left; cursor: pointer;
  }
  .dl i { font-size: 36px; grid-column: 2; margin: 0 -0.11em; }
  .dl .t { grid-column: 4; }
  .dl .t { display: flex; flex-direction: column; line-height: 1.25; gap: 2px; }
  .dl .t b { font-size: 27px; font-weight: 600; }
  .dl .t small { font-size: 15px; color: var(--on-accent-sub); }
  .dl:hover { filter: brightness(1.05); }
  .get-area { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; }
  .get-area .dl { margin-top: 0; }
  .terms { font-size: 13px; color: var(--sub); margin-top: 12px; }
  .terms a { color: var(--accent); text-underline-offset: 3px; }
  .feats { display: flex; flex-direction: column; width: 100%; max-width: 380px; text-align: left; }
  .feat { display: flex; align-items: center; gap: 16px; padding: 13px 0; }
  .feat + .feat { border-top: 0.5px solid var(--line); }
  .feat .ic { width: 44px; height: 44px; border-radius: 50%; background: #3A2E24; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 21px; flex: none; }
  .feat .tx { display: flex; flex-direction: column; gap: 3px; }
  .feat b { font-size: 16px; font-weight: 600; color: var(--fg); }
  .feat small { font-size: 13px; line-height: 1.5; color: var(--sub); }
  .bgwave { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .bgwave svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 55%; }
  .bgwave .w1 { animation: drift 38s linear infinite; }
  .bgwave .w2 { height: 42%; animation: drift 24s linear infinite reverse; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .bgwave svg { animation: none; } }
  header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 32px; border-bottom: 0.5px solid var(--line);
  }
  header .brand { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1; font-weight: 600; color: var(--fg); text-decoration: none; }
  header .brand svg { height: 24px; width: auto; display: block; transform: translateY(1px); }
  header nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
  header nav a { color: var(--sub); text-decoration: none; white-space: nowrap; }
  header nav a:hover { color: var(--fg); }
  header nav a.get { color: var(--on-accent); background: var(--accent); padding: 5px 12px; border-radius: 7px; font-weight: 600; }
  footer { width: 100%; padding: 0 32px 22px; }
  .row { border-top: 0.5px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
  .legal { color: var(--faint); }
  @media (max-width: 640px) {
    .nos { grid-template-columns: max-content; justify-items: start; text-align: left; }
    .nos i { margin-left: 0; }
  }
  @media (max-width: 900px) {
    main { padding: 40px 16px; }
    .hero { gap: 44px; }
  }
  @media (max-width: 480px) {
    header { padding: 10px 16px; } header nav { gap: 14px; } footer { padding: 0 16px 18px; }
    .nos { font-size: 17px; } .nos i { font-size: 18px; margin-right: 7px; }
    .dl { padding: 16px 0; border-radius: 12px; } .dl i { font-size: 28px; } .dl .t b { font-size: 21px; } .dl .t small { font-size: 13px; }
    .mark { width: 96px; } .name { font-size: 56px; } .brandbig { gap: 14px; } .lead { font-size: 20px; }
  }


  /* ---- Site additions (not part of the original design file) ---- */
  /* Inline SVG icons replace the Tabler webfont; they take the font size of the <i> like the glyphs did. */
  .ti { display: inline-block; width: 1em; height: 1em; line-height: 1; flex: none; }
  .ti svg { display: block; width: 100%; height: 100%; }
  .dl[aria-busy="true"] { cursor: progress; }
  .dl:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
  .ts { display: none; }
  .ts.show { display: flex; justify-content: center; margin-top: 14px; }
  /* Absolutely placed under the terms line so that a message never moves the centered layout. */
  .get-area { position: relative; }
  .status { position: absolute; top: 100%; left: 0; right: 0; font-size: 13px; color: var(--sub); margin-top: 8px; text-align: center; }
  .status:empty { display: none; }
  .status.err { color: var(--accent); }
  main.doc { justify-content: flex-start; align-items: stretch; }
  .prose { width: 100%; max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--sub); }
  .prose h1 { font-size: 34px; font-weight: 600; line-height: 1.2; color: var(--fg); margin: 8px 0 20px; }
  .prose h2 { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--fg); margin: 0 0 4px; }
  .prose h3 { font-size: 17px; font-weight: 600; color: var(--fg); margin: 22px 0 6px; }
  .prose h4, .prose h5, .prose h6 { font-size: 15px; font-weight: 600; color: var(--fg); margin: 18px 0 4px; }
  .prose p { margin: 0 0 12px; }
  .prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
  .prose li + li { margin-top: 6px; }
  .prose a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
  .prose code { font-family: Consolas, ui-monospace, monospace; font-size: 0.92em; color: var(--fg); background: #3A2E24; padding: 1px 5px; border-radius: 4px; }
  .prose pre { background: #3A2E24; border-radius: 8px; padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; }
  .prose pre code { background: none; padding: 0; }
  .prose strong { color: var(--fg); font-weight: 600; }
  .release { padding: 22px 0; }
  .release + .release { border-top: 0.5px solid var(--line); }
  .release .date { font-size: 13px; color: var(--dim); margin: 0 0 12px; }
  .legaltext { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-family: inherit; }
  .notices { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, ui-monospace, monospace; font-size: 12px; line-height: 1.55; margin: 0; }
  .prose .actions { margin-top: 22px; }
  @media (max-width: 480px) { .prose h1 { font-size: 28px; } }
  /* ---- /third-party-notices: credits roll, component details, license texts ---- */
  .nintro { margin: 0 0 16px; }
  .ntools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; font-size: 13px; }
  .ntools input { flex: 1 1 220px; max-width: 320px; background: transparent; color: var(--fg); border: 0.5px solid var(--line); border-radius: 7px; padding: 6px 10px; font: inherit; }
  .ntools input::placeholder { color: var(--dim); }
  .ntools input:focus-visible, .roll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  #ncount { color: var(--dim); min-width: 5em; }
  .ntools .dlink { margin-left: auto; color: var(--dim); }
  .ntools .dlink:hover { color: var(--accent); }
  .credits { border: 0.5px solid var(--line); border-radius: 12px; background: #3A2E24; overflow: hidden; }
  .prose .credits h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; color: var(--dim); margin: 0; padding: 16px 20px; border-bottom: 0.5px solid var(--line); }
  .roll { height: min(62vh, 520px); overflow-y: auto; padding: 28px 24px; scrollbar-width: thin; scrollbar-color: #6B5640 transparent; scrollbar-gutter: stable both-edges; }
  .roll::-webkit-scrollbar, .prose pre::-webkit-scrollbar { width: 8px; }
  .roll::-webkit-scrollbar-track, .prose pre::-webkit-scrollbar-track { background: transparent; }
  .roll::-webkit-scrollbar-thumb, .prose pre::-webkit-scrollbar-thumb { background: #6B5640; border-radius: 4px; }
  .roll::-webkit-scrollbar-thumb:hover, .prose pre::-webkit-scrollbar-thumb:hover { background: #8F7859; }
  .prose pre { scrollbar-width: thin; scrollbar-color: #6B5640 transparent; }
  .roll ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 10px; }
  .roll li { margin: 0; line-height: 1.35; min-width: 0; }
  .roll li + li { margin-top: 0; }
  .roll li.l { grid-column: 1; text-align: right; }
  .roll li.r { grid-column: 2; text-align: left; }
  .roll li[hidden], .none[hidden], details.ltext[hidden] { display: none; }
  .prose .roll a { color: var(--fg); text-decoration: none; font-size: 16px; }
  .prose .roll a:hover, .prose .roll a:focus-visible { color: var(--accent); }
  .v { color: var(--dim); font-size: 0.85em; }
  .none { text-align: center; color: var(--dim); margin: 0; }
  .cdetail { display: none; margin-top: 22px; padding: 18px 20px; border: 0.5px solid var(--line); border-radius: 12px; scroll-margin-top: 16px; }
  .cdetail:target { display: block; }
  .prose .cdetail h2 { margin: 0 0 10px; overflow-wrap: anywhere; }
  .cdetail dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 0 0 12px; font-size: 14px; }
  .cdetail dt { color: var(--dim); }
  .cdetail dd { margin: 0; overflow-wrap: anywhere; }
  .cdetail .back { margin: 12px 0 0; font-size: 13px; }
  .ctext details summary { cursor: pointer; color: var(--fg); margin-bottom: 8px; }
  .prose .th { margin-top: 36px; scroll-margin-top: 16px; }
  .tlist { border-top: 0.5px solid var(--line); margin-bottom: 8px; }
  .ltext { border-bottom: 0.5px solid var(--line); scroll-margin-top: 16px; }
  .ltext summary { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; cursor: pointer; color: var(--fg); font-size: 14px; }
  .ltext summary:hover { color: var(--accent); }
  .ltext .n { color: var(--dim); white-space: nowrap; }
  .ltext .users { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 12px; line-height: 1.3; }
  .prose .ltext .users a { padding: 3px 8px; border: 0.5px solid var(--line); border-radius: 999px; color: var(--sub); text-decoration: none; }
  .prose .ltext .users a:hover { color: var(--accent); border-color: var(--accent); }
  .prose .ltext pre, .prose .ctext pre { font-family: Consolas, ui-monospace, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 84ch; max-height: 70vh; overflow-y: auto; margin: 0 0 14px; }
  @media (max-width: 640px) {
    .roll { padding: 22px 16px; }
    .roll ul { grid-template-columns: 1fr; row-gap: 12px; }
    .roll li.l, .roll li.r { grid-column: 1; text-align: center; }
    .ntools .dlink { margin-left: 0; }
    .ltext summary { flex-direction: column; gap: 2px; }
    .cdetail dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .cdetail dd { margin-bottom: 8px; }
  }

html { scrollbar-color: #6B5640 #2F251D; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #2F251D; }
html::-webkit-scrollbar-thumb { background: #6B5640; border-radius: 5px; border: 2px solid #2F251D; }
html::-webkit-scrollbar-thumb:hover { background: #8F7859; }
