/* =====================================================================
   Walkirya OS — «apps» skin
   /cabinet + /register (logon dialog → Control Panel), /donate («Донат.exe»),
   /tools (calculators + «Диспетчер задач» for bosses), /download («Мой компьютер»),
   /about, legal pages (/terms /privacy /refund /contacts), 404, and the CTA row of the
   /en·/pt·/es·/el·/pl landing (its db-* blocks belong to portal-os-db.css).

   Load order: portal.css → portal-os.css (core) → skins alphabetically (apps, db, fx, kb).
   Rules are still written to win by specificity, not by order (body.os-site.os-page-<x>
   … .os-wb ≥ 0,4,1 against the core's 0,2,1 / 0,2,2), so later skins and any future
   reordering can't silently undo them. Nothing here applies outside its page scope.

   Scopes (body classes from SeoRenderer.layoutI18n → os-page-<activeNav>):
     cabinet · donate · tools · download · about · terms · privacy · refund · contacts
     none  → 404 only (older builds also used it for download/legal: tolerated below)
     home  → foreign landing (renderLanding, inside .db-page; the RU desktop is os.css)

   Colours: only portal-os.css tokens, plus the same neutral greys/black the core
   uses in its gradients. Icons are SVG masks painted with tokens.
   JS hooks (portal-os-apps.js, optional): .ap-*, [data-ap-fx], [data-ap-tier], [data-ap-st].
   ===================================================================== */


/* =====================================================================
   0. Local tokens + icon set (masks, painted with currentColor/tokens)
   ===================================================================== */
body.os-site {
  --ap-tb: linear-gradient(#262a32, #15171c 60%, #101216);              /* = .os-tb */
  --ap-head: linear-gradient(rgba(255, 255, 255, .065), rgba(255, 255, 255, .012));
  --ap-redline: linear-gradient(90deg, transparent, var(--os-red) 18%, var(--os-red) 50%, transparent 82%);
  --ap-panel: linear-gradient(var(--os-2), #101216);
  --ap-field: #07080a;
  --ap-field-line: #2b303a;
  --ap-paper: #121419;
  --ap-blue-tile: linear-gradient(#6cbaff, var(--os-blue) 52%, #0f58a8);
  --ap-red-tile: linear-gradient(#ff6a60, var(--os-red) 52%, var(--os-red-lo));
  --ap-gold-tile: linear-gradient(#ffe08a, var(--os-gold) 52%, #b9800f);
  --ap-green-tile: linear-gradient(#8ff0ab, var(--os-green) 52%, #1f8f3e);

  --ap-i-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M27 22c-7-7-17-8-25-5 5 2 8 4 10 7-4 0-7 1-9 3 5 0 8 1 10 3-3 1-5 3-6 6 5-2 9-2 12 0-1 2-1 4 0 6 4-3 7-8 8-14zM37 22c7-7 17-8 25-5-3 2-4 4-4 7-2-1-4-1-6 0 1 2 1 4 0 6-2-1-4-1-6 0 1 2 0 4-1 6-1-1-3-2-5-2 1 2 0 4-1 6-1-4-2-9-2-18zM32 11l12 5v13c0 10-6 17-12 22-6-5-12-12-12-22V16z'/%3E%3C/svg%3E");
  --ap-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2l8 3v6.2c0 5-3.4 9.3-8 10.8-4.6-1.5-8-5.8-8-10.8V5zM10.6 15.6l-3.4-3.4 1.4-1.4 2 2 4.8-4.8 1.4 1.4z'/%3E%3C/svg%3E");
  --ap-i-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 6h20v4a2 2 0 000 4v4H2v-4a2 2 0 000-4zM15 7.5h1.6v2H15zM15 11h1.6v2H15zM15 14.5h1.6v2H15z'/%3E%3C/svg%3E");
  --ap-i-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M14.5 2.5a7 7 0 00-6.6 9.3L2 17.7V22h4.3v-2.2h2.2v-2.2h2.2l1.6-1.6a7 7 0 102.2-13.5zM16.8 5.7a2 2 0 110 4 2 2 0 010-4z'/%3E%3C/svg%3E");
  --ap-i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3a4 4 0 110 8 4 4 0 010-8zM1.5 20.5c0-3.6 3.4-6.5 7.5-6.5s7.5 2.9 7.5 6.5V21h-15zM17 4.5a3.3 3.3 0 110 6.6 3.3 3.3 0 010-6.6zM18.2 13.3c2.6.4 4.3 2.6 4.3 5.2V21H18v-.5c0-2.7-1.1-5.1-3-6.6 1-.5 2.1-.7 3.2-.6z'/%3E%3C/svg%3E");
  --ap-i-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 2h16v20l-2.7-1.6-2.6 1.6-2.7-1.6L9.3 22l-2.6-1.6L4 22zM7.5 6.5v2h9v-2zM7.5 10.5v2h9v-2zM7.5 14.5v2h6v-2z'/%3E%3C/svg%3E");
  --ap-i-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 3.5h20v13H2zM4 5.5v9h16v-9zM9 18.5h6l.8 2.5H8.2z'/%3E%3C/svg%3E");
  --ap-i-calc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 2h14v20H5zM7.5 4.5v4h9v-4zM7.5 11v2h2v-2zM11 11v2h2v-2zM14.5 11v2h2v-2zM7.5 14.5v2h2v-2zM11 14.5v2h2v-2zM14.5 14.5v5h2v-5zM7.5 18v2h2v-2zM11 18v2h2v-2z'/%3E%3C/svg%3E");
  --ap-i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.5 7 7 2.5-7 2.5-2.5 7-2.5-7-7-2.5 7-2.5zM19.5 16l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3C/svg%3E");
  --ap-i-skull: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2C6.8 2 3 5.7 3 10.4c0 2.7 1.2 4.8 3 6.1v3A2.5 2.5 0 008.5 22h7a2.5 2.5 0 002.5-2.5v-3c1.8-1.3 3-3.4 3-6.1C21 5.7 17.2 2 12 2zM8.3 8.8a2.2 2.2 0 110 4.4 2.2 2.2 0 010-4.4zM15.7 8.8a2.2 2.2 0 110 4.4 2.2 2.2 0 010-4.4zM12 13.8l1.6 2.6h-3.2zM9.6 18.8h1.6V22H9.6zM12.8 18.8h1.6V22h-1.6z'/%3E%3C/svg%3E");
  --ap-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 110 20 10 10 0 010-20zM10.8 10h2.4v8h-2.4zM10.8 6h2.4v2.4h-2.4z'/%3E%3C/svg%3E");
  --ap-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 5h20v14H2zM4 7.6V17h16V7.6l-8 5.6z'/%3E%3C/svg%3E");
  --ap-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 110 20 10 10 0 010-20zM8.4 6.7L12 10.3l3.6-3.6 1.7 1.7-3.6 3.6 3.6 3.6-1.7 1.7-3.6-3.6-3.6 3.6-1.7-1.7 3.6-3.6-3.6-3.6z'/%3E%3C/svg%3E");
  --ap-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 16.6L4.8 12.2l-1.7 1.7 6.1 6.1L21 8.1l-1.7-1.7z'/%3E%3C/svg%3E");
  --ap-i-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 4.5h7.5l2 2.5H22v12.5H2z'/%3E%3C/svg%3E");
  --ap-i-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 110 20 10 10 0 010-20zM12 5a7 7 0 100 14 7 7 0 000-14zM10.8 7.5h2.4v9h-2.4z'/%3E%3C/svg%3E");
  --ap-i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 2h9.5L19 6.5V22H5zM8 10.5V12h8v-1.5zM8 14v1.5h8V14zM8 17.5V19h5.5v-1.5z'/%3E%3C/svg%3E");
  --ap-i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 5C6.5 5 2.6 8.7 1 12c1.6 3.3 5.5 7 11 7s9.4-3.7 11-7c-1.6-3.3-5.5-7-11-7zM12 7.6a4.4 4.4 0 110 8.8 4.4 4.4 0 010-8.8zM12 10a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E");
  --ap-i-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 5C6.5 5 2.6 8.7 1 12c1.6 3.3 5.5 7 11 7s9.4-3.7 11-7c-1.6-3.3-5.5-7-11-7zM12 7.6a4.4 4.4 0 110 8.8 4.4 4.4 0 010-8.8zM12 10a2 2 0 100 4 2 2 0 000-4z'/%3E%3Cpath d='M3.5 2.1l18.4 18.4-1.4 1.4L2.1 3.5z'/%3E%3C/svg%3E");
  --ap-i-dl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.6 2.5h2.8v9.1l3.3-3.3 2 2L12 17l-6.7-6.7 2-2 3.3 3.3zM3.5 18.5h17v3h-17z'/%3E%3C/svg%3E");
  --ap-i-sword: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 2.5l-.6 3.6-9.4 9.4-3-3 9.4-9.4zM7.1 13.3l3.6 3.6-1.5 1.5-1-1-2.6 2.6.5 1.9-1.5 1.5-1.5-2.6-2.6-1.5 1.5-1.5 1.9.5 2.6-2.6-1-1z'/%3E%3C/svg%3E");
  /* coloured backgrounds (not masks): select chevron, search glass, valid tick */
  --ap-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9bfca' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --ap-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237d8595'%3E%3Cpath fill-rule='evenodd' d='M10 3a7 7 0 015.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1110 3zm0 2a5 5 0 100 10 5 5 0 000-10z'/%3E%3C/svg%3E");
  --ap-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc6a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}


/* =====================================================================
   1. Shared app primitives
   ===================================================================== */

/* native controls (date pickers, select popups, number spinners) follow the dark OS */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
  .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) { color-scheme: dark; }

/* page titles: one rhythm for every app window */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about) .os-wb .section-head h1 {
  margin: 0; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.12; text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about) .os-wb .section-head p {
  max-width: 82ch; margin-top: 8px; color: var(--os-text-2); font-size: 15px; line-height: 1.6;
}

/* ---- form fields (cabinet, donate, tools) ---- */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .form-label {
  margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--os-text-2); letter-spacing: .01em;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input {
  height: 42px; padding: 0 13px;
  font: 15.5px var(--os-ui); color: var(--os-text);
  background-color: var(--ap-field); border: 1px solid var(--ap-field-line); border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
  transition: border-color .15s, box-shadow .2s, background-color .15s;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:hover { border-color: #3d4350; }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:focus {
  outline: none; border-color: var(--os-red); background-color: #0a0b0e;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 43, 56, .22), 0 0 18px rgba(255, 43, 56, .16);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input::placeholder { color: var(--os-muted); opacity: 1; }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb select.input {
  -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: var(--ap-chev); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb select.input:disabled { cursor: not-allowed; opacity: .6; }
/* autofill keeps the black field instead of the browser's pastel */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:-webkit-autofill,
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--os-text); caret-color: var(--os-text);
  box-shadow: inset 0 0 0 60px var(--ap-field), inset 0 1px 3px rgba(0, 0, 0, .6);
  transition: background-color 9999s;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 60px var(--ap-field), 0 0 0 3px rgba(255, 43, 56, .22);
}
/* checkboxes: native, red, big enough to hit */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb input[type='checkbox'] {
  width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--os-red); cursor: pointer; vertical-align: -3px;
}

/* ---- buttons ---- */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
  .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .btn-gold {
  text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about) .os-wb .btn:disabled {
  opacity: .5; filter: grayscale(.5); transform: none; cursor: not-allowed;
}

/* ---- keyboard focus: a blue ring that never fights the red accent ---- */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
  .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none, .os-page-home) .os-wb :is(a, button, summary, [role='radio'], [role='tab']):focus-visible {
  outline: 2px solid var(--os-blue); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(47, 155, 255, .2);
}

/* ---- address bar: breadcrumbs become an Explorer path ---- */
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px;
  min-height: 36px; margin: 0 0 22px; padding: 5px 12px 5px 38px;
  font-size: 13.5px; color: var(--os-text-2);
  background: var(--ap-field); border: 1px solid var(--ap-field-line); border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6);
}
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px;
  background: var(--os-gold);
  -webkit-mask: var(--ap-i-folder) center / contain no-repeat; mask: var(--ap-i-folder) center / contain no-repeat;
}
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > a {
  padding: 2px 5px; border-radius: 3px; color: var(--os-text-2); transition: background .15s, color .15s;
}
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
/* the "/" separators turn into chevrons, the current page is bold */
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > span:not(:last-child) { font-size: 0; }
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > span:not(:last-child)::after {
  content: '›'; padding: 0 2px; font-size: 17px; line-height: 1; color: var(--os-muted);
}
body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > span:last-child { padding: 2px 5px; color: #fff; font-weight: 700; }

/* ---- glossy icon tiles on panel headers: host sets --ap-ic (+ --ap-ic-bg / --ap-ic-fg) ---- */
body.os-site.os-page-cabinet #cab-user .card > h3:first-child::before,
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card > h2:first-child::before,
body.os-site.os-page-tools #bosses .section-head::before,
body.os-site.os-page-donate .os-wb #don-packages-grid + .card::before,
body.os-site.os-page-download .os-wb .grid-3 + .card::before,
body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card::before {
  content: ''; position: absolute; left: var(--ap-tx, 16px); top: var(--ap-ty, 50%);
  width: 34px; height: 34px; margin-top: var(--ap-tm, -17px);
  border-radius: 8px; border: 1px solid rgba(0, 0, 0, .75);
  background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 52%), var(--ap-ic-bg, var(--ap-blue-tile));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(0, 0, 0, .45), 0 0 16px var(--ap-ic-glow, rgba(47, 155, 255, .28));
}
body.os-site.os-page-cabinet #cab-user .card > h3:first-child::after,
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card > h2:first-child::after,
body.os-site.os-page-tools #bosses .section-head::after,
body.os-site.os-page-donate .os-wb #don-packages-grid + .card::after,
body.os-site.os-page-download .os-wb .grid-3 + .card::after,
body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card::after {
  content: ''; position: absolute; left: calc(var(--ap-tx, 16px) + 8px); top: var(--ap-ty, 50%);
  width: 18px; height: 18px; margin-top: calc(var(--ap-tm, -17px) + 8px);
  background: var(--ap-ic-fg, #fff);
  -webkit-mask: var(--ap-ic, var(--ap-i-info)) center / contain no-repeat; mask: var(--ap-ic, var(--ap-i-info)) center / contain no-repeat;
}

/* ---- status LEDs inside badges ---- */
@keyframes ap-led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }


/* =====================================================================
   2. Cabinet — guest: Walkirya OS logon / setup dialog
   ===================================================================== */

/* the logon "screen": a soft glow behind the dialog while nobody is signed in */
body.os-site.os-page-cabinet #cab-page-root:has(> #cab-guest:not(.hidden)) {
  padding-top: clamp(28px, 6vh, 64px); padding-bottom: clamp(36px, 8vh, 80px);
  background:
    radial-gradient(520px 340px at 50% 36%, rgba(255, 43, 56, .14), transparent 70%),
    radial-gradient(900px 420px at 50% 115%, rgba(47, 155, 255, .07), transparent 62%);
}

/* dialog frame (inline max-width 520 + margin auto from SeoRenderer.renderCabinet) */
body.os-site.os-page-cabinet .os-wb #cab-guest {
  position: relative; overflow: hidden;
  padding: 56px 26px 24px;
  border: 1px solid #000; border-radius: 8px;
  background:
    radial-gradient(420px 220px at 50% -40px, rgba(255, 43, 56, .17), transparent 70%),
    linear-gradient(var(--os-2), var(--os-1) 170px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 43, 56, .14),
    0 30px 80px rgba(0, 0, 0, .75), 0 0 70px rgba(255, 43, 56, .08);
  animation: ap-dlg-in .42s var(--os-ease) both;
}
/* title strip (text follows the open tab) */
body.os-site.os-page-cabinet .os-wb #cab-guest::before {
  content: 'Вход в систему — Walkirya OS';
  position: absolute; left: 0; right: 0; top: 0; height: 36px; padding: 0 14px 0 38px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 700 13.5px/1 var(--os-ui); color: #e8ebf0; text-shadow: 0 1px 2px #000;
  background: var(--ap-redline) left bottom / 100% 1px no-repeat, var(--ap-tb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 #000;
}
body.os-site.os-page-cabinet .os-wb #cab-guest:has(#form-reg:not(.hidden))::before { content: 'Установка Walkirya — новая учётная запись'; }
body.os-site.os-page-cabinet .os-wb #cab-guest:has(#form-reset:not(.hidden))::before { content: 'Восстановление доступа — Walkirya OS'; }
/* emblem in the title strip */
body.os-site.os-page-cabinet .os-wb #cab-guest::after {
  content: ''; position: absolute; left: 12px; top: 8px; width: 19px; height: 19px;
  background: var(--os-red);
  -webkit-mask: var(--ap-i-mark) center / contain no-repeat; mask: var(--ap-i-mark) center / contain no-repeat;
}

/* heading with the account picture, Windows-7 logon style */
body.os-site.os-page-cabinet .os-wb #cab-guest > h1 {
  display: flex; align-items: center; gap: 16px;
  font-size: 23px; line-height: 1.15; color: #fff;
}
body.os-site.os-page-cabinet .os-wb #cab-guest > h1::before {
  content: ''; flex: none; width: 62px; height: 62px; margin: 5px; border-radius: 8px;
  background: url('/assets/img/v7/avatar-leader.webp') center / cover no-repeat, var(--os-3);
  box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(255, 255, 255, .12), 0 0 0 5px rgba(0, 0, 0, .7), 0 8px 18px rgba(0, 0, 0, .6);
}
body.os-site.os-page-cabinet .os-wb #cab-guest:has(#form-reg:not(.hidden)) > h1::before { background-image: url('/assets/img/v7/avatar-healer.webp'); }

/* property-sheet tabs: the active tab merges into the panel under it */
body.os-site.os-page-cabinet .os-wb #cab-guest .tabs {
  display: flex; gap: 3px; margin: 6px 0 0; padding: 0 6px; border-bottom: 1px solid #000;
}
body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 40px; padding: 8px 8px;
  font: 700 14px/1.2 var(--os-ui); color: var(--os-text-2);
  border: 1px solid #000; border-bottom: 0; border-radius: 5px 5px 0 0;
  background: linear-gradient(#23272e, #16181d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: color .15s, background .15s;
}
body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn:hover { color: #fff; background: linear-gradient(#2d323b, #1b1e24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn.active {
  z-index: 1; margin-bottom: -1px; color: #fff;
  background: var(--os-2);
  box-shadow: inset 0 2px 0 var(--os-red), inset 0 6px 14px rgba(255, 43, 56, .14);
}
/* tab panels */
body.os-site.os-page-cabinet .os-wb #cab-guest > :is(#form-login, #form-reg, #form-reset) {
  padding: 20px 18px 16px;
  background: var(--os-2); border: 1px solid #000; border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: inset 1px 0 0 var(--os-line), inset -1px 0 0 var(--os-line), inset 0 -1px 0 var(--os-line);
  animation: ap-pane-in .28s var(--os-ease) both;
}
body.os-site.os-page-cabinet .os-wb #cab-page-root .form-group { position: relative; margin-bottom: 15px; }
body.os-site.os-page-cabinet .os-wb #cab-page-root .input { height: 44px; }
/* live validation after the user touched a field (native constraints from the markup) */
body.os-site.os-page-cabinet .os-wb #cab-page-root .input:user-invalid {
  border-color: var(--os-red-hi); background-color: rgba(255, 43, 56, .06);
}
body.os-site.os-page-cabinet .os-wb #cab-guest .form-group:not(.ap-has-eye) .input:user-valid {
  padding-right: 40px; background-image: var(--ap-tick); background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
}
/* primary action */
body.os-site.os-page-cabinet .os-wb #cab-guest [type='submit'] { min-height: 46px; margin-top: 4px; font-size: 16px; letter-spacing: .02em; }
body.os-site.os-page-cabinet .os-wb #cab-guest .btn-gold[type='submit']::after {
  content: '→'; font-weight: 700; transition: transform .2s var(--os-ease);
}
body.os-site.os-page-cabinet .os-wb #cab-guest .btn-gold[type='submit']:hover::after { transform: translateX(4px); }
/* password reset = two numbered steps */
body.os-site.os-page-cabinet .os-wb #form-reset > form::before {
  display: block; margin: 0 0 12px;
  font: 700 11.5px/1.3 var(--os-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-2);
}
body.os-site.os-page-cabinet .os-wb #form-forgot::before { content: 'Шаг 1 · получить токен на почту'; }
body.os-site.os-page-cabinet .os-wb #form-consume-reset::before { content: 'Шаг 2 · токен из письма и новый пароль'; }

/* JS extras (portal-os-apps.js): secondary links, password eye, Caps Lock hint */
body.os-site.os-page-cabinet .os-wb #cab-guest .ap-alt { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb #cab-guest .ap-link {
  -webkit-appearance: none; appearance: none; padding: 9px 4px; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--os-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47, 155, 255, .45);
}
body.os-site.os-page-cabinet .os-wb #cab-guest .ap-link:hover { color: #8fc8ff; text-decoration-color: currentColor; }
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-has-eye .input { padding-right: 50px; }
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye {
  position: absolute; right: 1px; bottom: 1px; width: 46px; height: 42px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  color: var(--os-text-2); background: transparent; border: 0; border-left: 1px solid var(--ap-field-line); border-radius: 0 3px 3px 0;
  transition: color .15s, background .15s;
}
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye::before {
  content: ''; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--ap-i-eye) center / contain no-repeat; mask: var(--ap-i-eye) center / contain no-repeat;
}
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye[aria-pressed='true'] { color: var(--os-red-hi); }
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye[aria-pressed='true']::before { -webkit-mask-image: var(--ap-i-eye-off); mask-image: var(--ap-i-eye-off); }
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-caps {
  position: absolute; right: 0; top: 0; font: 700 11.5px/1.7 var(--os-mono); letter-spacing: .04em; color: var(--os-gold);
}


/* =====================================================================
   3. Cabinet — signed in: «Панель управления»
   ===================================================================== */

/* the panel "boots": sections rise one after another when #cab-user appears */
body.os-site.os-page-cabinet .os-wb #cab-user:not(.hidden) > * { animation: ap-rise .45s var(--os-ease) both; }
body.os-site.os-page-cabinet .os-wb #cab-user:not(.hidden) > :nth-child(2) { animation-delay: .06s; }
body.os-site.os-page-cabinet .os-wb #cab-user:not(.hidden) > :nth-child(3) { animation-delay: .12s; }
body.os-site.os-page-cabinet .os-wb #cab-user:not(.hidden) > :nth-child(4) { animation-delay: .18s; }

/* account banner with the user picture */
body.os-site.os-page-cabinet .os-wb #cab-user > .section-head {
  align-items: center; margin-bottom: 18px; padding: 16px 18px;
  border: 1px solid #000; border-radius: 8px;
  background:
    radial-gradient(620px 180px at 0 0, rgba(255, 43, 56, .17), transparent 70%),
    linear-gradient(var(--os-3), var(--os-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
}
body.os-site.os-page-cabinet .os-wb #cab-user > .section-head > div:first-child {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: center; min-width: 0;
}
body.os-site.os-page-cabinet .os-wb #cab-user > .section-head > div:first-child::before {
  content: ''; grid-row: 1 / span 2; width: 60px; height: 60px; margin: 2px; border-radius: 8px;
  background: url('/assets/img/v7/avatar-healer.webp') center / cover no-repeat, var(--os-3);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(255, 255, 255, .12), 0 6px 16px rgba(0, 0, 0, .55);
}
body.os-site.os-page-cabinet .os-wb #cab-user > .section-head h1 { font-size: clamp(22px, 2.6vw, 30px); overflow-wrap: anywhere; }
body.os-site.os-page-cabinet .os-wb #cab-user > .section-head p { margin-top: 3px; font-size: 14px; }
body.os-site.os-page-cabinet .os-wb #u-login { font-family: var(--os-mono); font-style: normal; font-weight: 700; text-shadow: 0 0 18px rgba(255, 194, 61, .3); }

/* applets */
body.os-site.os-page-cabinet .os-wb #cab-user .card {
  position: relative; padding: 16px;
  border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
  transition: box-shadow .2s;
}
body.os-site.os-page-cabinet .os-wb #cab-user .card:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 32px rgba(0, 0, 0, .5); }
body.os-site.os-page-cabinet .os-wb #cab-user .card > h3:first-child {
  position: relative; display: flex; align-items: center; min-height: 56px;
  margin: -16px -16px 16px; padding: 10px 16px 10px 64px;
  font: 700 16.5px/1.25 var(--os-logo); color: #fff;
  background: var(--ap-head); border-bottom: 1px solid #000; border-radius: 8px 8px 0 0;
  box-shadow: 0 1px 0 var(--os-line);
}
/* section icons (sections keep their ids since the 16.11.2026 layout: download, characters, donate, security, friends) */
body.os-site.os-page-cabinet .os-wb #cab-dl > h3 { --ap-ic: var(--ap-i-dl); --ap-ic-bg: var(--ap-green-tile); --ap-ic-fg: #062b12; --ap-ic-glow: rgba(61, 220, 106, .3); }
body.os-site.os-page-cabinet .os-wb #cab-chars > h3 { --ap-ic: var(--ap-i-sword); }
body.os-site.os-page-cabinet .os-wb #cab-donate > h3 { --ap-ic: var(--ap-i-coin); --ap-ic-bg: var(--ap-gold-tile); --ap-ic-fg: #2a1a00; --ap-ic-glow: rgba(255, 194, 61, .3); }
body.os-site.os-page-cabinet .os-wb #cab-sec > h3 { --ap-ic: var(--ap-i-shield); --ap-ic-bg: var(--ap-red-tile); --ap-ic-glow: var(--os-red-glow); }
body.os-site.os-page-cabinet .os-wb #cab-friends > h3 { --ap-ic: var(--ap-i-users); }

/* profile values = property list */
body.os-site.os-page-cabinet .os-wb #cab-user .cab-prop {
  margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px dashed var(--os-line-2);
  font-size: 14px; line-height: 1.55; color: var(--os-text-2); overflow-wrap: anywhere;
}
body.os-site.os-page-cabinet .os-wb #cab-user .cab-prop strong { color: #fff; }
body.os-site.os-page-cabinet .os-wb #u-ref { font-size: 13.5px; letter-spacing: .06em; padding: 2px 7px; }
/* promo code looks like a ticket stub until focused */
body.os-site.os-page-cabinet .os-wb #promo-code {
  font-family: var(--os-mono); letter-spacing: .08em; border-style: dashed; border-color: rgba(255, 194, 61, .45);
}
body.os-site.os-page-cabinet .os-wb #promo-code:focus { border-style: solid; }
body.os-site.os-page-cabinet .os-wb #cab-user .btn { min-height: 40px; }

/* list views */
body.os-site.os-page-cabinet .os-wb #cab-user .table-wrap { max-height: 380px; overflow: auto; }
body.os-site.os-page-cabinet .os-wb #cab-user thead th { position: sticky; top: 0; z-index: 1; padding: 8px 12px; }
body.os-site.os-page-cabinet .os-wb #cab-user tbody td { padding: 10px 12px; vertical-align: middle; }
body.os-site.os-page-cabinet .os-wb #cab-user tbody td[colspan] { padding: 26px 14px; text-align: center; font-style: italic; color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb #u-chars td:first-child strong { font-size: 14.5px; color: #fff; }
body.os-site.os-page-cabinet .os-wb #u-chars td:nth-child(2) { font: 700 14px var(--os-mono); color: var(--os-gold); }
body.os-site.os-page-cabinet .os-wb #u-chars td:nth-child(3),
body.os-site.os-page-cabinet .os-wb #u-orders td:nth-child(2),
body.os-site.os-page-cabinet .os-wb #u-hwids td:nth-child(2) { font-family: var(--os-mono); font-size: 13px; white-space: nowrap; }
body.os-site.os-page-cabinet .os-wb #u-orders td:nth-child(2) { color: var(--os-gold); }
body.os-site.os-page-cabinet .os-wb #u-orders td:nth-child(3) { color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb #u-hwids code { font-size: 12.5px; }

/* status badges with an LED */
body.os-site.os-page-cabinet .os-wb :is(#u-chars, #u-orders) .badge,
body.os-site.os-page-cabinet .os-wb #u-ver {
  position: relative; padding: 3px 9px 3px 22px; font-size: 11.5px; white-space: nowrap;
}
body.os-site.os-page-cabinet .os-wb :is(#u-chars, #u-orders) .badge::before,
body.os-site.os-page-cabinet .os-wb #u-ver::before {
  content: ''; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor;
}
body.os-site.os-page-cabinet .os-wb #u-ver:empty { display: none; }
body.os-site.os-page-cabinet .os-wb #u-chars .badge-green::before,
body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='pending']::before { animation: ap-led 1.8s ease-in-out infinite; }
/* amber = "needs attention" (email not confirmed) */
body.os-site.os-page-cabinet .os-wb .badge-amber { background: rgba(255, 194, 61, .1); border-color: rgba(255, 194, 61, .42); color: var(--os-gold); }
/* …but an offline character is just neutral */
body.os-site.os-page-cabinet .os-wb #u-chars .badge-amber { background: rgba(255, 255, 255, .04); border-color: var(--os-line-2); color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb #u-chars .badge-amber::before { background: transparent; border: 1.5px solid currentColor; box-shadow: none; }
/* order statuses: PENDING / PAID / DELIVERED / FAILED / REFUNDED (data-ap-st from the JS, class from portal.js) */
body.os-site.os-page-cabinet .os-wb #u-orders .badge { font-family: var(--os-mono); letter-spacing: .04em; }
body.os-site.os-page-cabinet .os-wb #u-orders .badge-gold { background: rgba(255, 194, 61, .1); border-color: rgba(255, 194, 61, .42); color: var(--os-gold); }
body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='paid'] { background: rgba(47, 155, 255, .13); border-color: rgba(47, 155, 255, .4); color: #8cc8ff; }
body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='failed'] { background: rgba(255, 43, 56, .14); border-color: rgba(255, 43, 56, .5); color: #ff8d86; }
body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='refunded'] { background: rgba(255, 255, 255, .05); border-color: var(--os-line-2); color: var(--os-text-2); }


/* =====================================================================
   3b. Cabinet — «Первые шаги» + section nav (owner, 16.11.2026)
   portal.js sets .is-done / .is-next on .cab-step, .is-folded / .is-complete / .is-welcome
   on #cab-steps and aria-current on the nav link of the section on screen.
   ===================================================================== */
/* clip (not hidden) keeps the rounded window but lets the section nav stick to the screen */
@supports (overflow: clip) { body.os-site.os-page-cabinet .os-win { overflow: clip; } }
body.os-site.os-page-cabinet .os-wb :is(#cab-steps, .cab-sec) { scroll-margin-top: 70px; }

/* ---- the «Приступая к работе» window ---- */
body.os-site.os-page-cabinet .os-wb #cab-steps {
  position: relative; margin: 0 0 18px; overflow: hidden;
  border: 1px solid #000; border-radius: 8px;
  background: radial-gradient(700px 220px at 100% 0, rgba(255, 43, 56, .13), transparent 70%), var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
  transition: box-shadow .3s;
}
body.os-site.os-page-cabinet .os-wb .cab-steps-head {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--ap-head); border-bottom: 1px solid #000;
}
body.os-site.os-page-cabinet .os-wb .cab-steps-ic {
  position: relative; width: 40px; height: 40px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .75);
  background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 52%), var(--ap-gold-tile);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(0, 0, 0, .45), 0 0 16px rgba(255, 194, 61, .3);
}
body.os-site.os-page-cabinet .os-wb .cab-steps-ic::after {
  content: ''; position: absolute; inset: 9px; background: #2a1a00;
  -webkit-mask: var(--ap-i-spark) center / contain no-repeat; mask: var(--ap-i-spark) center / contain no-repeat;
}
body.os-site.os-page-cabinet .os-wb #cab-steps.is-complete .cab-steps-ic { background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 52%), var(--ap-green-tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px rgba(0, 0, 0, .45), 0 0 16px rgba(61, 220, 106, .3); }
body.os-site.os-page-cabinet .os-wb #cab-steps.is-complete .cab-steps-ic::after { background: #062b12; -webkit-mask-image: var(--ap-i-check); mask-image: var(--ap-i-check); }
body.os-site.os-page-cabinet .os-wb .cab-steps-title { min-width: 0; }
body.os-site.os-page-cabinet .os-wb .cab-steps-title h2 { margin: 0; font: 700 18px/1.2 var(--os-logo); color: #fff; }
body.os-site.os-page-cabinet .os-wb .cab-steps-title p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb .cab-steps-meter { display: grid; gap: 5px; justify-items: end; font: 700 12.5px var(--os-mono); color: var(--os-text-2); white-space: nowrap; }
body.os-site.os-page-cabinet .os-wb .cab-steps-bar {
  position: relative; display: block; width: 150px; height: 12px; overflow: hidden;
  border: 1px solid #000; border-radius: 3px; background: #07080a; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7);
}
body.os-site.os-page-cabinet .os-wb .cab-steps-bar > i {
  position: relative; display: block; width: 0; height: 100%; overflow: hidden;
  background: linear-gradient(#9ff0b8, #3ddc6a 45%, #1f8f3e); box-shadow: 0 0 10px rgba(61, 220, 106, .45);
  transition: width .7s var(--os-ease);
}
/* the Windows 7 progress shine */
body.os-site.os-page-cabinet .os-wb .cab-steps-bar > i::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: cab-shine 2.6s ease-in-out infinite;
}
@keyframes cab-shine { 0% { left: -60%; } 60%, 100% { left: 110%; } }

body.os-site.os-page-cabinet .os-wb .cab-steps-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 12px; list-style: none; counter-reset: cabstep;
}
body.os-site.os-page-cabinet .os-wb #cab-steps.is-folded .cab-steps-list { display: none; }
body.os-site.os-page-cabinet .os-wb #cab-steps.is-folded .cab-steps-head { border-bottom-color: transparent; }
body.os-site.os-page-cabinet .os-wb .cab-step {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  margin: 0; padding: 11px 12px; counter-increment: cabstep;
  border: 1px solid var(--os-line); border-radius: 6px; background: rgba(255, 255, 255, .02);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
body.os-site.os-page-cabinet .os-wb .cab-step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font: 700 15px var(--os-mono); color: var(--os-text-2);
  border: 1.5px solid var(--os-line-2); background: rgba(255, 255, 255, .03);
}
body.os-site.os-page-cabinet .os-wb .cab-step-n::before { content: counter(cabstep); }
body.os-site.os-page-cabinet .os-wb .cab-step-b { min-width: 0; }
body.os-site.os-page-cabinet .os-wb .cab-step-h { font: 700 15px/1.3 var(--os-ui); color: #fff; }
body.os-site.os-page-cabinet .os-wb .cab-step-st {
  display: inline-block; margin-left: 4px; padding: 0 8px; vertical-align: 1px;
  font: 700 11px/1.7 var(--os-ui); letter-spacing: .02em; white-space: nowrap;
  color: var(--os-text-2); border: 1px solid var(--os-line-2); border-radius: 999px;
}
body.os-site.os-page-cabinet .os-wb .cab-step small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--os-text-2); overflow-wrap: anywhere; }
body.os-site.os-page-cabinet .os-wb .cab-step small code { font-size: 12.5px; }
body.os-site.os-page-cabinet .os-wb .cab-step small b { color: var(--os-text); }
body.os-site.os-page-cabinet .os-wb .cab-step-a .btn { min-height: 36px; white-space: nowrap; }
/* done: green tick, the action goes away */
body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-n { border-color: #1f8f3e; background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), var(--ap-green-tile); }
body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-n::before {
  content: ''; width: 18px; height: 18px; background: #062b12;
  -webkit-mask: var(--ap-i-check) center / contain no-repeat; mask: var(--ap-i-check) center / contain no-repeat;
}
body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-h { color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-st { color: var(--os-green); border-color: rgba(61, 220, 106, .45); background: rgba(61, 220, 106, .1); }
body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-a { display: none; }
/* next: the one thing to do now */
body.os-site.os-page-cabinet .os-wb .cab-step.is-next {
  border-color: rgba(255, 43, 56, .55);
  background: linear-gradient(rgba(255, 43, 56, .13), rgba(255, 43, 56, .04));
  box-shadow: 0 0 0 1px rgba(255, 43, 56, .22), 0 0 22px rgba(255, 43, 56, .14);
}
body.os-site.os-page-cabinet .os-wb .cab-step.is-next .cab-step-n { color: #fff; border-color: var(--os-red); background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), var(--ap-red-tile); }
body.os-site.os-page-cabinet .os-wb .cab-step.is-next .cab-step-st { color: #fff; background: #d6202d; border-color: transparent; animation: cab-pulse 1.8s ease-in-out infinite; }
@keyframes cab-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 43, 56, .45); } 50% { box-shadow: 0 0 0 5px rgba(255, 43, 56, 0); } }
/* a new account: a green ring round the window */
body.os-site.os-page-cabinet .os-wb #cab-steps.is-welcome { box-shadow: inset 0 0 0 1px var(--os-line), 0 0 0 2px rgba(61, 220, 106, .55), 0 0 30px rgba(61, 220, 106, .2), 0 12px 28px rgba(0, 0, 0, .4); }
body.os-site.os-page-cabinet .os-wb #cab-steps.is-welcome #cab-steps-sub { color: var(--os-green); font-weight: 700; }

/* ---- layout: the Control Panel task pane + sections ---- */
body.os-site.os-page-cabinet .os-wb .cab-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 18px; align-items: start; }
body.os-site.os-page-cabinet .os-wb .cab-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
body.os-site.os-page-cabinet .os-wb .cab-nav {
  position: sticky; top: 66px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border: 1px solid #000; border-radius: 8px;
  background: linear-gradient(var(--os-3), var(--os-2));
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
}
body.os-site.os-page-cabinet .os-wb .cab-nav > :is(a, button) {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px;
  font: 600 14px/1.25 var(--os-ui); color: var(--os-text-2); text-align: left; text-decoration: none;
  background: none; border: 1px solid transparent; border-radius: 5px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
body.os-site.os-page-cabinet .os-wb .cab-nav > [hidden] { display: none; }
body.os-site.os-page-cabinet .os-wb .cab-nav > :is(a, button)::before {
  content: ''; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--cab-ic, var(--ap-i-info)) center / contain no-repeat; mask: var(--cab-ic, var(--ap-i-info)) center / contain no-repeat;
}
body.os-site.os-page-cabinet .os-wb .cab-nav [data-ic='dl'] { --cab-ic: var(--ap-i-dl); }
body.os-site.os-page-cabinet .os-wb .cab-nav [data-ic='chars'] { --cab-ic: var(--ap-i-sword); }
body.os-site.os-page-cabinet .os-wb .cab-nav [data-ic='donate'] { --cab-ic: var(--ap-i-coin); }
body.os-site.os-page-cabinet .os-wb .cab-nav [data-ic='sec'] { --cab-ic: var(--ap-i-shield); }
body.os-site.os-page-cabinet .os-wb .cab-nav [data-ic='friends'] { --cab-ic: var(--ap-i-users); }
body.os-site.os-page-cabinet .os-wb .cab-nav [data-ic='steps'] { --cab-ic: var(--ap-i-spark); }
body.os-site.os-page-cabinet .os-wb .cab-nav > :is(a, button):hover { color: #fff; background: rgba(255, 255, 255, .06); }
body.os-site.os-page-cabinet .os-wb .cab-nav > a[aria-current] {
  color: #fff; border-color: rgba(255, 43, 56, .45);
  background: linear-gradient(rgba(255, 43, 56, .2), rgba(255, 43, 56, .07)); box-shadow: inset 3px 0 0 var(--os-red);
}
body.os-site.os-page-cabinet .os-wb .cab-nav em {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px;
  font: 700 11.5px/18px var(--os-mono); font-style: normal; text-align: center;
  color: var(--os-text-2); background: rgba(255, 255, 255, .08);
}
body.os-site.os-page-cabinet .os-wb .cab-nav em:empty { display: none; }
body.os-site.os-page-cabinet .os-wb .cab-nav em.is-warn { color: #2a1a00; background: var(--os-gold); }
body.os-site.os-page-cabinet .os-wb .cab-nav-steps { margin-top: 6px; border-top-color: var(--os-line); }

/* ---- download: one big green button + three plain steps ---- */
body.os-site.os-page-cabinet .os-wb .cab-dl { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 18px; align-items: center; }
body.os-site.os-page-cabinet .os-wb .cab-dl-big {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-width: 0;
  color: #fff; text-decoration: none; border: 1px solid #0b4a1f; border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 50%), linear-gradient(#168a3d, #0c5a25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 24px rgba(15, 106, 44, .35);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
body.os-site.os-page-cabinet .os-wb .cab-dl-big:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px rgba(15, 106, 44, .45), 0 0 24px rgba(61, 220, 106, .25); }
body.os-site.os-page-cabinet .os-wb .cab-dl-big:active { transform: none; filter: brightness(.96); }
body.os-site.os-page-cabinet .os-wb .cab-dl-ic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
body.os-site.os-page-cabinet .os-wb .cab-dl-ic::after {
  content: ''; position: absolute; inset: 11px; background: #fff;
  -webkit-mask: var(--ap-i-dl) center / contain no-repeat; mask: var(--ap-i-dl) center / contain no-repeat;
}
body.os-site.os-page-cabinet .os-wb .cab-dl-t { min-width: 0; }
body.os-site.os-page-cabinet .os-wb .cab-dl-t b { display: block; font: 700 19px/1.2 var(--os-logo); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
body.os-site.os-page-cabinet .os-wb .cab-dl-t small { display: block; margin-top: 3px; font: 600 12.5px/1.4 var(--os-mono); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); overflow-wrap: anywhere; }
body.os-site.os-page-cabinet .os-wb .cab-dl-how { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb .cab-dl-how li::marker { color: var(--os-gold); font-weight: 700; }
body.os-site.os-page-cabinet .os-wb .cab-dl-alt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--os-line-2); }

/* ---- shared bits of the sections ---- */
body.os-site.os-page-cabinet .os-wb .cab-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
body.os-site.os-page-cabinet .os-wb .cab-col { min-width: 0; }
body.os-site.os-page-cabinet .os-wb .cab-sub-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font: 700 14.5px/1.3 var(--os-ui); color: #fff; }
body.os-site.os-page-cabinet .os-wb .cab-cols + .cab-sub-h { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--os-line-2); }
body.os-site.os-page-cabinet .os-wb .cab-note { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--os-text-2); }
body.os-site.os-page-cabinet .os-wb .cab-ref { display: flex; gap: 8px; }
body.os-site.os-page-cabinet .os-wb .cab-ref .input { flex: 1; min-width: 0; font-family: var(--os-mono); font-size: 13.5px; }

@media (max-width: 1100px) {
  body.os-site.os-page-cabinet .os-wb .cab-steps-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  body.os-site.os-page-cabinet .os-wb :is(#cab-steps, .cab-sec) { scroll-margin-top: 136px; }
  body.os-site.os-page-cabinet .os-wb .cab-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.os-site.os-page-cabinet .os-wb .cab-nav {
    top: 52px; flex-direction: row; gap: 4px; padding: 6px; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  body.os-site.os-page-cabinet .os-wb .cab-nav::-webkit-scrollbar { display: none; }
  body.os-site.os-page-cabinet .os-wb .cab-nav > :is(a, button) { flex: none; width: auto; min-height: 40px; padding: 6px 12px; white-space: nowrap; }
  body.os-site.os-page-cabinet .os-wb .cab-nav-steps { margin-top: 0; }
  body.os-site.os-page-cabinet .os-wb .cab-dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.os-site.os-page-cabinet .os-wb .cab-steps-head { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px 12px; padding: 12px; }
  body.os-site.os-page-cabinet .os-wb .cab-steps-meter { grid-column: 1 / -1; grid-row: 2; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 10px; }
  body.os-site.os-page-cabinet .os-wb .cab-steps-bar { width: 100%; }
  body.os-site.os-page-cabinet .os-wb .cab-steps-list { padding: 8px; }
  body.os-site.os-page-cabinet .os-wb .cab-step { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 10px; padding: 10px; }
  body.os-site.os-page-cabinet .os-wb .cab-step-a { grid-column: 2; }
  body.os-site.os-page-cabinet .os-wb .cab-cols { grid-template-columns: minmax(0, 1fr); }
  body.os-site.os-page-cabinet .os-wb .cab-ref { flex-direction: column; }
  body.os-site.os-page-cabinet .os-wb .cab-dl-big { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.os-site.os-page-cabinet .os-wb .cab-steps-bar > i::after,
  body.os-site.os-page-cabinet .os-wb .cab-step.is-next .cab-step-st { animation: none; }
  body.os-site.os-page-cabinet .os-wb .cab-steps-bar > i { transition: none; }
}


/* =====================================================================
   4. Donate — «Донат.exe»: cash desk, receipt cards, honest terms
   (packages and gateway badges are re-rendered by portal.js every 15 s:
    no entry animations on them, only hover/focus)
   ===================================================================== */

/* cash desk: payment method + recipient */
body.os-site.os-page-donate .os-wb .section-head + .card {
  position: relative; overflow: hidden; padding: 52px 18px 18px;
  border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .4);
}
body.os-site.os-page-donate .os-wb .section-head + .card::before {
  content: 'Касса — способ оплаты и персонаж';
  position: absolute; left: 0; right: 0; top: 0; height: 36px; padding: 0 14px 0 38px;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 700 13.5px/1 var(--os-ui); color: #e8ebf0; text-shadow: 0 1px 2px #000;
  background: var(--ap-redline) left bottom / 100% 1px no-repeat, var(--ap-tb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 #000;
}
body.os-site.os-page-donate .os-wb .section-head + .card::after {
  content: ''; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; background: var(--os-gold);
  -webkit-mask: var(--ap-i-coin) center / contain no-repeat; mask: var(--ap-i-coin) center / contain no-repeat;
}
body.os-site.os-page-donate .os-wb .section-head + .card .flex-between { align-items: center; gap: 14px; }
body.os-site.os-page-donate .os-wb #don-gateways-status { gap: 8px; }
/* gateway status pills: green LED = works, gold LED = being connected */
body.os-site.os-page-donate .os-wb #don-gateways-status .badge {
  position: relative; padding: 6px 11px 6px 25px; border-radius: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--os-text-2);
  background: rgba(255, 255, 255, .04); border-color: var(--os-line-2);
}
body.os-site.os-page-donate .os-wb #don-gateways-status .badge::before {
  content: ''; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
}
body.os-site.os-page-donate .os-wb #don-gateways-status .badge-green::before { background: var(--os-green); box-shadow: 0 0 8px var(--os-green); animation: ap-led 2s ease-in-out infinite; }
body.os-site.os-page-donate .os-wb #don-gateways-status .badge-gold::before { background: var(--os-gold); box-shadow: 0 0 6px rgba(255, 194, 61, .6); }
body.os-site.os-page-donate .os-wb :is(#don-gateway, #don-char) { max-width: 100%; }

/* radio tiles built from #don-gateway by portal-os-apps.js (the select stays the source of truth) */
body.os-site.os-page-donate .os-wb .card.ap-pay-on { display: flex; flex-direction: column; gap: 14px; }
body.os-site.os-page-donate .os-wb .card.ap-pay-on .ap-pay { order: 0; }
body.os-site.os-page-donate .os-wb .card.ap-pay-on .flex-between { order: 1; justify-content: flex-start; padding-top: 14px; border-top: 1px dashed var(--os-line-2); }
body.os-site.os-page-donate .os-wb .card.ap-pay-on :is(#don-gateways-status, #don-gateway) { display: none; }
body.os-site.os-page-donate .os-wb .card.ap-pay-on .flex-between > .flex-row::before {
  content: 'Начислить на персонажа:'; font-size: 14px; font-weight: 700; color: var(--os-text-2);
}
body.os-site.os-page-donate .os-wb .ap-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
body.os-site.os-page-donate .os-wb .ap-pay-opt {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-content: start; gap: 3px 11px;
  min-height: 70px; padding: 12px 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--os-text);
  border: 1px solid #000; border-radius: 6px;
  background: linear-gradient(var(--os-3), var(--os-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px var(--os-line);
  transition: transform .15s var(--os-ease), box-shadow .2s, background .2s;
}
body.os-site.os-page-donate .os-wb .ap-pay-opt::before { /* the radio */
  content: ''; grid-row: 1 / span 3; align-self: start; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--ap-field); border: 2px solid #4a505c; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7);
  transition: background .15s, border-color .15s, box-shadow .2s;
}
body.os-site.os-page-donate .os-wb .ap-pay-name { grid-column: 2; font-weight: 700; font-size: 15px; line-height: 1.25; color: #fff; }
body.os-site.os-page-donate .os-wb .ap-pay-meta { grid-column: 2; font-size: 12.5px; line-height: 1.4; color: var(--os-text-2); }
body.os-site.os-page-donate .os-wb .ap-pay-st {
  grid-column: 2; justify-self: start; margin-top: 4px; padding: 1px 7px 1px 18px; position: relative;
  font: 700 11px/1.6 var(--os-mono); letter-spacing: .05em; text-transform: uppercase; color: #8ff0ab;
  border: 1px solid rgba(61, 220, 106, .35); border-radius: 3px; background: rgba(61, 220, 106, .08);
}
body.os-site.os-page-donate .os-wb .ap-pay-st::before {
  content: ''; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor;
}
body.os-site.os-page-donate .os-wb .ap-pay-opt.is-pending .ap-pay-st { color: var(--os-gold); border-color: rgba(255, 194, 61, .38); background: rgba(255, 194, 61, .08); }
body.os-site.os-page-donate .os-wb .ap-pay-opt:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .4); }
body.os-site.os-page-donate .os-wb .ap-pay-opt[aria-checked='true'] {
  background: linear-gradient(rgba(255, 43, 56, .16), rgba(255, 43, 56, .04)), linear-gradient(var(--os-3), var(--os-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px var(--os-red), 0 0 22px var(--os-red-glow);
}
body.os-site.os-page-donate .os-wb .ap-pay-opt[aria-checked='true']::before {
  border-color: var(--os-red); background: radial-gradient(circle, #fff 0 3px, var(--os-red) 3.5px); box-shadow: 0 0 10px var(--os-red-glow);
}
body.os-site.os-page-donate .os-wb .ap-pay-opt:disabled { cursor: not-allowed; background: var(--os-1); box-shadow: inset 0 0 0 1px var(--os-line); }
body.os-site.os-page-donate .os-wb .ap-pay-opt:disabled .ap-pay-name { color: var(--os-text-2); }
body.os-site.os-page-donate .os-wb .ap-pay-opt[data-ap-fx='pick'] { animation: ap-pick .25s var(--os-ease); }

/* package receipts */
body.os-site.os-page-donate .os-wb #don-packages-grid { counter-reset: ap-rc; gap: 26px 18px; }
body.os-site.os-page-donate .os-wb #don-packages-grid > .card {
  counter-increment: ap-rc;
  position: relative; display: flex; flex-direction: column;
  margin-bottom: 9px; padding: 46px 20px 66px;
  border: 1px solid #000; border-bottom: 0; border-radius: 4px 4px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 2px, transparent 2px 4px, rgba(255, 255, 255, .2) 4px 5px, transparent 5px 8px, rgba(255, 255, 255, .2) 8px 11px, transparent 11px 12px) center bottom 18px / 58% 22px no-repeat,
    linear-gradient(#171a20, var(--ap-paper) 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 1px 0 0 var(--os-line), inset -1px 0 0 var(--os-line), 0 14px 28px rgba(0, 0, 0, .45);
  transition: transform .22s var(--os-ease), box-shadow .22s;
}
/* torn receipt edge */
body.os-site.os-page-donate .os-wb #don-packages-grid > .card::after {
  content: ''; position: absolute; left: -1px; right: -1px; bottom: -9px; height: 9px;
  background: conic-gradient(from -45deg at 50% 100%, var(--ap-paper) 90deg, transparent 0) left top / 18px 9px repeat-x;
}
/* receipt header line */
body.os-site.os-page-donate .os-wb #don-packages-grid > .card::before {
  content: 'ПОЗИЦИЯ ' counter(ap-rc, decimal-leading-zero) ' · WALKIRYA';
  position: absolute; left: 20px; right: 20px; top: 15px; padding-bottom: 10px;
  font: 700 11px/1 var(--os-mono); letter-spacing: .14em; color: var(--os-text-2);
  border-bottom: 1px dashed var(--os-line-2);
}
body.os-site.os-page-donate .os-wb #don-packages-grid > .card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 1px 0 0 rgba(255, 43, 56, .45), inset -1px 0 0 rgba(255, 43, 56, .45), inset 0 1px 0 0 rgba(255, 43, 56, .45),
    0 20px 38px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 43, 56, .12);
}
/* the package badge is a rubber stamp */
body.os-site.os-page-donate .os-wb #don-packages-grid > .card > .badge {
  position: absolute; top: 7px; right: 12px; z-index: 1; margin: 0; padding: 4px 9px;
  font: 700 11.5px/1.3 var(--os-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--os-red-hi); background: rgba(255, 43, 56, .1);
  border: 2px solid var(--os-red); border-radius: 4px;
  box-shadow: 0 0 14px rgba(255, 43, 56, .25), inset 0 0 8px rgba(255, 43, 56, .16);
  transform: rotate(-4deg); transition: transform .25s var(--os-ease);
}
body.os-site.os-page-donate .os-wb #don-packages-grid > .card:hover > .badge { transform: rotate(-7deg) scale(1.06); }
body.os-site.os-page-donate .os-wb #don-packages-grid > .card > h3 { font: 700 17.5px/1.3 var(--os-ui); color: #fff; }
body.os-site.os-page-donate .os-wb #don-packages-grid > .card > p { color: var(--os-text-2); line-height: 1.5; }
/* total + action pinned to the receipt foot */
body.os-site.os-page-donate .os-wb #don-packages-grid > .card > .flex-between {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--os-line-2); align-items: flex-end;
}
body.os-site.os-page-donate .os-wb #don-packages-grid > .card > .flex-between > div:first-child::before {
  content: 'ИТОГО'; display: block; margin-bottom: 3px;
  font: 700 10.5px/1 var(--os-mono); letter-spacing: .16em; color: var(--os-text-2);
}
body.os-site.os-page-donate .os-wb #don-packages-grid .stat-value {
  font-family: var(--os-mono); font-style: normal; font-weight: 700; letter-spacing: -.01em;
  color: var(--os-gold); text-shadow: 0 0 18px rgba(255, 194, 61, .35);
}
body.os-site.os-page-donate .os-wb #don-packages-grid .stat-value + .muted { font-family: var(--os-mono); color: var(--os-text-2); }
body.os-site.os-page-donate .os-wb #don-packages-grid .btn { min-height: 42px; padding: 0 20px; }

/* payment terms — readable, never hidden */
body.os-site.os-page-donate .os-wb #don-packages-grid + .card {
  --ap-ic: var(--ap-i-info); --ap-ty: 22px; --ap-tm: 0px; --ap-tx: 20px;
  position: relative; padding: 22px 24px 22px 74px;
  border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .35);
}
body.os-site.os-page-donate .os-wb #don-packages-grid + .card h2 { color: #fff; line-height: 1.3; }
body.os-site.os-page-donate .os-wb #don-packages-grid + .card p { max-width: 92ch; font-size: 14.5px; line-height: 1.7; color: var(--os-text-2); }
body.os-site.os-page-donate .os-wb #don-packages-grid + .card a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47, 155, 255, .45); }
body.os-site.os-page-donate .os-wb #don-packages-grid + .card a:hover { text-decoration-color: currentColor; }
/* the consent sentence is a notice, so nobody misses it */
body.os-site.os-page-donate .os-wb #don-packages-grid + .card p:last-child {
  margin-bottom: 0; padding: 12px 14px; border-left: 3px solid var(--os-blue); border-radius: 0 4px 4px 0;
  background: rgba(47, 155, 255, .07); color: var(--os-text);
}


/* =====================================================================
   5. Tools — calculators as dialogs, bosses as «Диспетчер задач»
   ===================================================================== */
body.os-site.os-page-tools #tools-page-root > .grid-2 { align-items: start; }
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card {
  position: relative; padding: 18px;
  border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 14px 30px rgba(0, 0, 0, .42);
}
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card > h2:first-child {
  position: relative; display: flex; align-items: center; min-height: 56px;
  margin: -18px -18px 16px; padding: 10px 18px 10px 66px;
  font: 700 17.5px/1.25 var(--os-logo); color: #fff;
  background: var(--ap-head); border-bottom: 1px solid #000; border-radius: 8px 8px 0 0; box-shadow: 0 1px 0 var(--os-line);
}
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card:nth-child(1) > h2 { --ap-tx: 18px; --ap-ic: var(--ap-i-spark); --ap-ic-bg: var(--ap-red-tile); --ap-ic-glow: var(--os-red-glow); }
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card:nth-child(2) > h2 { --ap-tx: 18px; --ap-ic: var(--ap-i-calc); }
body.os-site.os-page-tools #tools-page-root .form-group { margin-bottom: 14px; }

/* ---- enchant: the forge screen ---- */
body.os-site.os-page-tools .os-wb .enchant-stage {
  --ap-glow: rgba(255, 255, 255, .07);
  position: relative; overflow: hidden; padding: 26px 18px 18px;
  border: 1px solid #000; border-radius: 6px;
  background:
    radial-gradient(260px 150px at 50% 30%, var(--ap-glow), transparent 70%),
    radial-gradient(120% 70% at 50% 125%, rgba(255, 43, 56, .16), transparent 60%),
    linear-gradient(#0b0c10, #07080a);
  box-shadow: inset 0 0 0 1px var(--os-line), inset 0 12px 30px rgba(0, 0, 0, .6);
  transition: background .4s;
}
body.os-site.os-page-tools .os-wb .enchant-stage > * { position: relative; z-index: 1; }
body.os-site.os-page-tools .os-wb .enchant-stage::after { /* flash layer, coloured per result */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 32%, var(--ap-flash, rgba(61, 220, 106, .35)), transparent 62%);
}
body.os-site.os-page-tools .os-wb #enc-level {
  font: italic 800 clamp(58px, 7vw, 78px)/1 var(--os-logo); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: #fff; text-shadow: 0 0 24px rgba(255, 255, 255, .22), 0 4px 0 rgba(0, 0, 0, .5);
  transition: color .3s, text-shadow .3s;
}
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='1'] { --ap-glow: rgba(47, 155, 255, .2); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='1'] #enc-level { color: #b5dcff; text-shadow: 0 0 28px rgba(47, 155, 255, .75), 0 4px 0 rgba(0, 0, 0, .5); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='2'] { --ap-glow: rgba(255, 43, 56, .24); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='2'] #enc-level { color: var(--os-red-hi); text-shadow: 0 0 30px rgba(255, 43, 56, .85), 0 4px 0 rgba(0, 0, 0, .5); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='3'] { --ap-glow: rgba(255, 194, 61, .26); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='3'] #enc-level { color: var(--os-gold); animation: ap-gold 1.6s ease-in-out infinite; }
body.os-site.os-page-tools .os-wb #enc-safe-label { font: 12.5px/1.5 var(--os-mono); color: var(--os-text-2); }
body.os-site.os-page-tools .os-wb .enchant-stage .flex-row { justify-content: center; gap: 8px; }
body.os-site.os-page-tools .os-wb .enchant-stage label { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; cursor: pointer; }
body.os-site.os-page-tools .os-wb #enc-log { min-height: 1.6em; margin-bottom: 4px; font: 700 13.5px/1.5 var(--os-mono); color: var(--os-text-2); transition: color .2s; }
body.os-site.os-page-tools .os-wb #enc-stats { font-family: var(--os-mono); color: var(--os-text-2); }
/* results (data-ap-fx from portal-os-apps.js) */
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx]::after { animation: ap-flash .7s ease-out; }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='ok'] #enc-level { animation: ap-pop .45s var(--os-ease); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='ok'] #enc-log { color: #8ff0ab; }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='fail'] { --ap-flash: rgba(255, 194, 61, .32); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='fail'] #enc-level { animation: ap-shake .45s; }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='fail'] #enc-log { color: var(--os-gold); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='break'] { --ap-flash: rgba(255, 43, 56, .5); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='break'] #enc-level { animation: ap-shake .55s; }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='break'] #enc-log { color: var(--os-red-hi); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='max'] { --ap-flash: rgba(255, 194, 61, .45); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='max'] #enc-level { animation: ap-pop .5s var(--os-ease); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='max'] #enc-log { color: var(--os-gold); }
body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='reset'] { --ap-flash: rgba(255, 255, 255, .14); }

/* Monte-Carlo run row */
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card:nth-child(1) > .flex-row { gap: 8px; }
body.os-site.os-page-tools #tools-page-root > .grid-2 > .card:nth-child(1) > .flex-row::before {
  content: 'Monte-Carlo · сколько свитков до цели'; flex: 0 0 100%;
  font: 700 11.5px/1.3 var(--os-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--os-text-2);
}
body.os-site.os-page-tools .os-wb #enc-sim-out:not(:empty) {
  padding: 10px 12px; border: 1px solid #000; border-radius: 4px; background: var(--ap-field);
  box-shadow: inset 0 0 0 1px var(--os-line); font-family: var(--os-mono); line-height: 1.55; color: var(--os-text);
}

/* ---- farm: LCD read-out ---- */
body.os-site.os-page-tools .os-wb #farm-calc .flex-row label { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; cursor: pointer; color: var(--os-text); }
body.os-site.os-page-tools .os-wb #farm-calc > .card {
  position: relative; overflow: hidden; padding: 16px 18px;
  border: 1px solid #000; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--os-line), inset 0 10px 26px rgba(0, 0, 0, .65);
}
body.os-site.os-page-tools .os-wb #farm-calc > .card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
body.os-site.os-page-tools .os-wb #farm-calc .stat-label { font: 700 11px/1.4 var(--os-mono); letter-spacing: .1em; color: var(--os-text-2); }
body.os-site.os-page-tools .os-wb #farm-res-adena {
  margin-top: 4px; font: 700 clamp(24px, 2.6vw, 30px)/1.15 var(--os-mono); font-style: normal;
  color: var(--os-gold); text-shadow: 0 0 16px rgba(255, 194, 61, .35);
}
body.os-site.os-page-tools .os-wb #farm-res-adena.ap-tick { animation: ap-tick .6s ease-out; }
body.os-site.os-page-tools .os-wb #farm-res-spoil { font: 14px/1.5 var(--os-mono); color: #8cc8ff; }
body.os-site.os-page-tools .os-wb #farm-res-scrolls { font-size: 13px; color: var(--os-text-2); }

/* ---- bosses: Task Manager ---- */
body.os-site.os-page-tools #bosses > .card {
  padding: 0; overflow: hidden; border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 14px 30px rgba(0, 0, 0, .42);
}
body.os-site.os-page-tools #bosses .section-head {
  --ap-tx: 18px; --ap-ic: var(--ap-i-skull); --ap-ic-bg: var(--ap-red-tile); --ap-ic-glow: var(--os-red-glow);
  position: relative; align-items: center; margin: 0; padding: 14px 16px 14px 68px;
  background: var(--ap-head); border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--os-line);
}
body.os-site.os-page-tools #bosses .section-head h2 { font-size: 19px; font-style: normal; }
body.os-site.os-page-tools #bosses .section-head h2::after { display: none; }
body.os-site.os-page-tools #bosses .section-head p { font-size: 13.5px; color: var(--os-text-2); }
body.os-site.os-page-tools #bosses .section-head .flex-row { gap: 8px; }
body.os-site.os-page-tools .os-wb #tools-boss-q {
  padding-left: 36px; background-image: var(--ap-search); background-repeat: no-repeat; background-position: 11px center; background-size: 17px;
}
body.os-site.os-page-tools #bosses .table-wrap {
  max-height: min(66vh, 620px); overflow: auto; border: 0; border-radius: 0; box-shadow: none; background: #0b0c0f;
}
body.os-site.os-page-tools #bosses thead th { position: sticky; top: 0; z-index: 1; padding: 8px 12px; white-space: nowrap; }
body.os-site.os-page-tools #bosses tbody td { padding: 8px 12px; vertical-align: middle; }
body.os-site.os-page-tools #bosses :is(th, td):nth-child(2) { text-align: center; font-family: var(--os-mono); }
body.os-site.os-page-tools #bosses :is(th, td):nth-child(5) { text-align: right; white-space: nowrap; font: 12.5px var(--os-mono); }
body.os-site.os-page-tools #bosses td:first-child :is(strong, a) { font-weight: 700; color: #fff; }
body.os-site.os-page-tools #bosses td:first-child a:hover { color: var(--os-red-hi); text-decoration: underline; text-underline-offset: 3px; }
body.os-site.os-page-tools #bosses td:first-child .muted { font: 11px/1.5 var(--os-mono); letter-spacing: .06em; color: var(--os-text-2); }
body.os-site.os-page-tools #tools-boss-rows .badge {
  position: relative; min-width: 82px; justify-content: center; padding: 4px 10px 4px 22px; border-radius: 3px;
  font: 700 11.5px/1.3 var(--os-mono); letter-spacing: .08em;
}
body.os-site.os-page-tools #tools-boss-rows .badge::before {
  content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 7px currentColor;
}
body.os-site.os-page-tools #tools-boss-rows .badge-green::before { animation: ap-led 1.8s ease-in-out infinite; }
body.os-site.os-page-tools #tools-boss-rows .badge-red { color: #ff8d86; }
/* a dead boss row goes quiet (still ≥ 4.5:1) */
body.os-site.os-page-tools #tools-boss-rows tr:has(.badge-red) td { color: var(--os-muted); }
body.os-site.os-page-tools #tools-boss-rows tr:has(.badge-red) td:first-child :is(strong, a) { color: var(--os-text-2); }
/* status bar (inserted by portal-os-apps.js) */
body.os-site.os-page-tools .os-wb .ap-tm-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 14px;
  font: 12.5px/1.4 var(--os-mono); color: var(--os-text-2);
  background: linear-gradient(#15171c, #0e1014); border-top: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
body.os-site.os-page-tools .os-wb .ap-tm-led { width: 8px; height: 8px; border-radius: 50%; background: var(--os-green); box-shadow: 0 0 8px var(--os-green); animation: ap-led 2s ease-in-out infinite; }
body.os-site.os-page-tools .os-wb .ap-tm-time { margin-left: auto; }


/* =====================================================================
   6. Download — «Мой компьютер › Загрузки»
   (body.os-page-download from renderDownload; the grid-3 becomes an Explorer list)
   ===================================================================== */
body.os-site.os-page-download .os-wb .grid-3 {
  grid-template-columns: minmax(0, 1fr); gap: 0;
  border: 1px solid #000; border-radius: 8px; overflow: hidden; background: #0b0c0f;
  box-shadow: inset 0 0 0 1px var(--os-line), 0 14px 32px rgba(0, 0, 0, .42);
}
/* list header + status bar */
body.os-site.os-page-download .os-wb .grid-3::before {
  content: 'Загрузки · Walkirya'; padding: 9px 16px;
  font: 700 12.5px/1.4 var(--os-ui); color: var(--os-text-2); letter-spacing: .02em;
  background: linear-gradient(#262a31, #1a1d22); border-bottom: 1px solid #000;
}
body.os-site.os-page-download .os-wb .grid-3::after {
  content: 'Элементов: 3 · все файлы скачиваются напрямую с walkirya.org'; padding: 8px 16px;
  font: 12.5px/1.4 var(--os-mono); color: var(--os-text-2);
  background: linear-gradient(#15171c, #0e1014); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* one file per row: icon | name + description | actions */
body.os-site.os-page-download .os-wb .grid-3 > .card {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 72px minmax(0, 1fr) minmax(220px, auto);
  grid-template-areas: 'ic badge act' 'ic title act' 'ic desc act';
  column-gap: 20px; padding: 18px 20px;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0;
  background: transparent; box-shadow: none; transition: background .2s;
}
body.os-site.os-page-download .os-wb .grid-3 > .card:hover { background: linear-gradient(90deg, rgba(255, 43, 56, .09), rgba(255, 43, 56, .015) 60%); }
body.os-site.os-page-download .os-wb .grid-3 > .card:first-child {
  background: linear-gradient(90deg, rgba(255, 43, 56, .1), transparent 55%); box-shadow: inset 3px 0 0 var(--os-red);
}
/* the file icon: dog-eared page with its type */
body.os-site.os-page-download .os-wb .grid-3 > .card::before {
  content: 'ZIP'; grid-area: ic; justify-self: center; align-self: center;
  display: flex; align-items: flex-end; justify-content: center; width: 58px; height: 70px; padding-bottom: 9px;
  font: 700 12px/1 var(--os-mono); letter-spacing: .08em; color: #fff;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
  background:
    linear-gradient(to left bottom, transparent 50%, rgba(255, 255, 255, .45) 0) right top / 17px 17px no-repeat,
    repeating-linear-gradient(transparent 0 3px, rgba(255, 255, 255, .55) 3px 5px) center 5px / 6px 30px no-repeat,
    linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .42)) left bottom 6px / 100% 19px no-repeat,
    var(--ap-file, linear-gradient(160deg, #ff6a60, var(--os-red) 40%, var(--os-red-lo)));
  transition: transform .25s var(--os-ease);
}
body.os-site.os-page-download .os-wb .grid-3 > .card:hover::before { transform: translateY(-3px) rotate(-2deg); }
body.os-site.os-page-download .os-wb .grid-3 > .card:nth-child(2)::before {
  content: 'EXE';
  background: /* a tiny window instead of the zipper */
    linear-gradient(to left bottom, transparent 50%, rgba(255, 255, 255, .45) 0) right top / 17px 17px no-repeat,
    linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)) 12px 14px / 26px 5px no-repeat,
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)) 12px 19px / 26px 17px no-repeat,
    linear-gradient(rgba(0, 0, 0, .42), rgba(0, 0, 0, .42)) left bottom 6px / 100% 19px no-repeat,
    linear-gradient(160deg, #6cbaff, var(--os-blue) 40%, #0f58a8);
}
body.os-site.os-page-download .os-wb .grid-3 > .card:nth-child(3) { --ap-file: linear-gradient(160deg, #6b717d, #3a3f49 45%, #22262d); }
body.os-site.os-page-download .os-wb .grid-3 > .card > .badge {
  grid-area: badge; justify-self: start; margin: 0 0 6px; font: 700 11.5px/1.3 var(--os-mono); letter-spacing: .06em;
}
body.os-site.os-page-download .os-wb .grid-3 > .card > h3 { grid-area: title; margin: 0; font-size: 19px; line-height: 1.25; color: #fff; }
body.os-site.os-page-download .os-wb .grid-3 > .card:first-child > h3::after {
  content: 'Рекомендуем'; display: inline-block; margin-left: 10px; padding: 3px 7px; vertical-align: 3px;
  font: 700 10.5px/1.2 var(--os-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  color: #fff; background: var(--os-red-lo); border-radius: 3px; box-shadow: 0 0 12px var(--os-red-glow);
}
body.os-site.os-page-download .os-wb .grid-3 > .card > p { grid-area: desc; max-width: 72ch; margin: 5px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--os-text-2); }
body.os-site.os-page-download .os-wb .grid-3 > .card > .flex-row {
  grid-area: act; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; text-align: center;
}
body.os-site.os-page-download .os-wb .grid-3 > .card .btn { min-height: 44px; }
body.os-site.os-page-download .os-wb .grid-3 > .card .btn-sm { min-height: 38px; }
/* «Что выбрать?» = help panel */
body.os-site.os-page-download .os-wb .grid-3 + .card {
  --ap-ic: var(--ap-i-info); --ap-tx: 20px; --ap-ty: 20px; --ap-tm: 0px;
  position: relative; padding: 22px 24px 22px 74px;
  border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .35);
}
body.os-site.os-page-download .os-wb .grid-3 + .card h3 { margin-top: 4px; color: #fff; }
body.os-site.os-page-download .os-wb .grid-3 + .card ul { margin: 0; padding: 0; list-style: none; }
body.os-site.os-page-download .os-wb .grid-3 + .card li {
  position: relative; margin-bottom: 10px; padding-left: 22px; line-height: 1.65; color: var(--os-text-2); max-width: 90ch;
}
body.os-site.os-page-download .os-wb .grid-3 + .card li::before {
  content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--os-red); box-shadow: 0 0 8px var(--os-red-glow);
}
body.os-site.os-page-download .os-wb .grid-3 + .card li strong { color: #fff; }
body.os-site.os-page-download .os-wb .grid-3 + .card code { overflow-wrap: anywhere; }


/* =====================================================================
   7. About — the concept as a readable document
   ===================================================================== */
body.os-site.os-page-about .os-wb .card {
  padding: 22px 24px; border: 1px solid #000; border-radius: 8px; background: var(--ap-panel);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 12px 28px rgba(0, 0, 0, .38);
}
body.os-site.os-page-about .os-wb .card > h2 {
  margin: 0 0 16px; padding-left: 14px; border-left: 3px solid var(--os-red);
  font-size: 21px; line-height: 1.25; color: #fff; box-shadow: -3px 0 12px -6px var(--os-red);
}
body.os-site.os-page-about .os-wb .card ul { margin: 0; padding: 0; list-style: none; }
body.os-site.os-page-about .os-wb .card li { position: relative; margin-bottom: 11px; padding-left: 22px; color: var(--os-text-2); max-width: 75ch; }
body.os-site.os-page-about .os-wb .card li::before {
  content: ''; position: absolute; left: 3px; top: .66em; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--os-red); box-shadow: 0 0 8px var(--os-red-glow);
}
body.os-site.os-page-about .os-wb .card li strong { color: #fff; }
/* rates table = property sheet */
body.os-site.os-page-about .os-wb .table-wrap td { padding: 11px 14px; line-height: 1.55; vertical-align: top; }
body.os-site.os-page-about .os-wb .table-wrap td:first-child { width: 36%; }
body.os-site.os-page-about .os-wb .table-wrap td:first-child strong { color: var(--os-text-2); }
body.os-site.os-page-about .os-wb .table-wrap td:last-child strong { color: var(--os-gold); }
body.os-site.os-page-about .os-wb .container > .flex-row { margin-top: 6px; gap: 10px; }
body.os-site.os-page-about .os-wb .container > .flex-row .btn { min-height: 44px; }


/* =====================================================================
   8. Legal — /terms /privacy /refund /contacts: document viewer
   (.article-prose is also the KB article body: never style it outside these scopes)
   ===================================================================== */
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose {
  position: relative; overflow: hidden; max-width: 900px; margin: 0 auto;
  padding: 62px clamp(18px, 4.5vw, 52px) 40px;
  border: 1px solid #000; border-radius: 8px;
  background: linear-gradient(#121419, #0c0d10);
  box-shadow: inset 0 0 0 1px var(--os-line), 0 22px 54px rgba(0, 0, 0, .5);
}
/* read-only info bar (Office "protected view", Walkirya edition) */
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose::before {
  content: 'Документ Walkirya · открыт только для чтения';
  position: absolute; left: 0; right: 0; top: 0; min-height: 38px; padding: 0 16px 0 44px;
  display: flex; align-items: center; font: 700 13px/1.3 var(--os-ui); color: #b5dcff;
  background: linear-gradient(rgba(47, 155, 255, .16), rgba(47, 155, 255, .07)); border-bottom: 1px solid rgba(47, 155, 255, .32);
}
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose::after {
  content: ''; position: absolute; left: 16px; top: 10px; width: 18px; height: 18px; background: var(--os-blue);
  -webkit-mask: var(--ap-i-doc) center / contain no-repeat; mask: var(--ap-i-doc) center / contain no-repeat;
}
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose > h1 {
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--os-line-2);
  font-size: clamp(26px, 3.3vw, 36px); line-height: 1.15; color: #fff;
}
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose h2 {
  margin: 34px 0 12px; padding-left: 14px; border-left: 3px solid var(--os-red);
  font: 700 20px/1.3 var(--os-logo); color: #fff;
}
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose :is(p, li) {
  max-width: 75ch; font-size: 16px; line-height: 1.75; color: var(--os-text-2);
}
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose strong { color: #fff; }
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose code { overflow-wrap: anywhere; }
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose a {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(47, 155, 255, .45);
}
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose a:hover { text-decoration-color: currentColor; }
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose li { position: relative; margin-bottom: 9px; padding-left: 24px; }
body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose li::before {
  content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--os-red); box-shadow: 0 0 8px var(--os-red-glow);
}
/* contacts: two "contact cards" inside the document */
body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card {
  --ap-ic: var(--ap-i-mail); --ap-tx: 18px; --ap-ty: 20px; --ap-tm: 0px;
  position: relative; padding: 20px 20px 18px 70px;
  border: 1px solid #000; border-radius: 6px; background: linear-gradient(var(--os-3), var(--os-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .35);
}
body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card:nth-child(2) { --ap-ic-bg: var(--ap-red-tile); --ap-ic-glow: var(--os-red-glow); }
body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card h3 { margin: 4px 0 8px; font-size: 17px; color: #fff; }
body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card p { font-size: 15px; }


/* =====================================================================
   9. 404 — Walkirya OS critical error (CSS only on renderNotFound markup)
   ===================================================================== */
body.os-site.os-page-none .os-wb:has(> .container > .card:only-child) {
  min-height: 64vh;
  background:
    radial-gradient(640px 360px at 50% 34%, rgba(255, 43, 56, .14), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    #07080a;
}
body.os-site.os-page-none .os-wb > .container > .card:only-child {
  position: relative; overflow: hidden; padding: 60px 28px 0;
  border: 1px solid #000; border-radius: 8px;
  background: linear-gradient(var(--os-2), var(--os-1) 180px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 43, 56, .28),
    0 30px 80px rgba(0, 0, 0, .8), 0 0 80px rgba(255, 43, 56, .14);
  animation: ap-dlg-in .4s var(--os-ease) both, ap-glitch .42s .5s steps(3) 1;
}
body.os-site.os-page-none .os-wb > .container > .card:only-child::before {
  content: 'Walkirya OS — критическая ошибка';
  position: absolute; left: 0; right: 0; top: 0; height: 36px; padding: 0 14px;
  display: flex; align-items: center; justify-content: flex-start;
  font: 700 13.5px/1 var(--os-ui); color: #e8ebf0; text-shadow: 0 1px 2px #000;
  background: var(--ap-redline) left bottom / 100% 1px no-repeat, var(--ap-tb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 #000;
}
/* stop code strip */
body.os-site.os-page-none .os-wb > .container > .card:only-child::after {
  content: 'STOP: 0x00000404 (PAGE_WENT_TO_CRYSTALS)';
  display: block; margin: 26px -28px 0; padding: 11px 20px;
  font: 12px/1.4 var(--os-mono); letter-spacing: .05em; color: #ff8d86; overflow-wrap: anywhere;
  background: rgba(0, 0, 0, .5); border-top: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 43, 56, .18);
}
body.os-site.os-page-none .os-wb > .container > .card:only-child > h1 {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; color: #fff;
}
/* glossy error orb with a white cross */
body.os-site.os-page-none .os-wb > .container > .card:only-child > h1::before {
  content: ''; width: 76px; height: 76px; border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 43%, #fff 43% 57%, transparent 57%) center / 34px 34px no-repeat,
    linear-gradient(-45deg, transparent 43%, #fff 43% 57%, transparent 57%) center / 34px 34px no-repeat,
    radial-gradient(circle at 50% 26%, #ff8a80 0, var(--os-red) 40%, var(--os-red-lo) 78%, #4d0408 100%);
  border: 1px solid #2a0003;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .4), inset 0 -6px 12px rgba(0, 0, 0, .35), 0 0 34px var(--os-red-glow);
}
body.os-site.os-page-none .os-wb > .container > .card:only-child > h1::after {
  content: 'Страница ушла в кристаллы: заточка адреса не удалась.';
  font: 400 16.5px/1.5 var(--os-ui); font-style: normal; letter-spacing: 0; color: var(--os-text);
}
body.os-site.os-page-none .os-wb > .container > .card:only-child > p { font-size: 15px; color: var(--os-text-2); }
body.os-site.os-page-none .os-wb > .container > .card:only-child > p code { overflow-wrap: anywhere; }
body.os-site.os-page-none .os-wb > .container > .card:only-child .btn { min-height: 42px; }


/* =====================================================================
   10. Foreign landing (/en /pt /es /el /pl, renderLanding → body.os-page-home .db-page)
   The db-* blocks (property sheet, steps, chips, FAQ, headings) are owned by
   portal-os-db.css, which styles every .db-page incl. these landings with
   translated pseudo-labels. Only the landing's own call-to-action row lives here.
   ===================================================================== */
body.os-site.os-page-home .os-wb .db-page > .flex { margin: 4px 0 6px; }
body.os-site.os-page-home .os-wb .db-page > .flex .btn { min-height: 46px; padding: 0 22px; font-size: 15.5px; }

/* =====================================================================
   11. Toasts + modal on app pages → tray balloons and OS dialogs
   (created by portal.js on <body>, so they sit outside .os-wb)
   ===================================================================== */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack { right: 18px; bottom: 18px; z-index: 120; gap: 10px; max-width: 400px; }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast {
  position: relative; min-height: 54px; padding: 14px 16px 14px 52px;
  font-size: 14px; line-height: 1.45; color: var(--os-text);
  border: 1px solid #000; border-radius: 6px;
  background: linear-gradient(#1f232b, #121419);
  box-shadow: inset 0 2px 0 var(--ap-toast, var(--os-blue)), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 18px 44px rgba(0, 0, 0, .7);
  animation: ap-toast-in .38s var(--os-ease) both; transition: opacity .22s, transform .22s;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast::before {
  content: ''; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 55%), var(--ap-toast-bg, var(--ap-blue-tile));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 12px var(--ap-toast, var(--os-blue));
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast::after {
  content: ''; position: absolute; left: 19px; top: 19px; width: 16px; height: 16px; background: #fff;
  -webkit-mask: var(--ap-toast-ic, var(--ap-i-info)) center / contain no-repeat; mask: var(--ap-toast-ic, var(--ap-i-info)) center / contain no-repeat;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast-ok { --ap-toast: var(--os-green); --ap-toast-bg: var(--ap-green-tile); --ap-toast-ic: var(--ap-i-check); }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast-err { --ap-toast: var(--os-red); --ap-toast-bg: var(--ap-red-tile); --ap-toast-ic: var(--ap-i-x); }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast-ok::after { background: #0b2a14; }

body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-backdrop {
  z-index: 110; background: radial-gradient(800px 500px at 50% 40%, rgba(255, 43, 56, .08), transparent 70%), rgba(3, 3, 4, .74);
  backdrop-filter: blur(3px) saturate(.8);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-backdrop .modal-card {
  padding: 0 20px 18px; border: 1px solid #000; border-radius: 8px;
  background: linear-gradient(var(--os-2), var(--os-1) 160px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 43, 56, .16), 0 30px 90px rgba(0, 0, 0, .85);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-backdrop.open .modal-card { animation: ap-dlg-in .26s var(--os-ease) both; }
/* first row (title + ✕) becomes the dialog's title bar */
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-card > .flex-between:first-child {
  position: sticky; top: 0; z-index: 2; flex-wrap: nowrap; min-height: 40px; margin: 0 -20px 16px; padding: 6px 6px 6px 16px;
  background: var(--ap-redline) left bottom / 100% 1px no-repeat, var(--ap-tb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 0 #000;
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) #fx-modal-title {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 14.5px/1.3 var(--os-ui); text-shadow: 0 1px 2px #000;
  color: #e8ebf0 !important; /* portal.js sets color inline */
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-card > .flex-between:first-child > .btn {
  flex: none; width: 46px; height: 26px; min-height: 0; padding: 0; border-radius: 3px;
  font-size: 14px; color: #fff; border-color: #3a0005;
  background: linear-gradient(#e2554c, var(--os-red-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-card > .flex-between:first-child > .btn:hover {
  background: linear-gradient(#ff7a70, var(--os-red)); box-shadow: 0 0 12px var(--os-red-glow);
}
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) #fx-modal-body > p { font-size: 15.5px; line-height: 1.6; color: var(--os-text); }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) #fx-modal-foot .btn { min-height: 40px; min-width: 110px; }
body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) :is(.modal-card, .toast-stack) :is(a, button):focus-visible {
  outline: 2px solid var(--os-blue); outline-offset: 2px;
}


/* =====================================================================
   12. States from portal-os-apps.js: busy buttons, success / error reactions
   (after the component rules on purpose: equal-specificity ties resolve here)
   ===================================================================== */
body.os-site.os-page-cabinet .os-wb #cab-page-root .btn.ap-busy { cursor: progress; }
body.os-site.os-page-cabinet .os-wb #cab-page-root .btn.ap-busy::after {
  content: ''; flex: none; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: ap-spin .7s linear infinite; transform: none;
}
body.os-site.os-page-cabinet .os-wb #cab-guest[data-ap-fx='err'],
body.os-site.os-page-cabinet .os-wb #cab-user .card[data-ap-fx='err'] { animation: ap-shake .5s; }
body.os-site.os-page-cabinet .os-wb #cab-guest[data-ap-fx='ok'],
body.os-site.os-page-cabinet .os-wb #cab-user .card[data-ap-fx='ok'] { animation: ap-ok .8s ease-out; }


/* =====================================================================
   13. Keyframes
   ===================================================================== */
@keyframes ap-dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ap-pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ap-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ap-shake {
  0%, 100% { transform: translateX(0); } 15% { transform: translateX(-10px); } 30% { transform: translateX(9px); }
  45% { transform: translateX(-7px); } 60% { transform: translateX(5px); } 75% { transform: translateX(-3px); } 90% { transform: translateX(1px); }
}
@keyframes ap-ok { from { outline: 2px solid rgba(61, 220, 106, .9); outline-offset: 0; } to { outline: 2px solid rgba(61, 220, 106, 0); outline-offset: 14px; } }
@keyframes ap-spin { to { rotate: 360deg; } }
@keyframes ap-pop { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes ap-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ap-gold {
  0%, 100% { text-shadow: 0 0 22px rgba(255, 194, 61, .55), 0 4px 0 rgba(0, 0, 0, .5); }
  50% { text-shadow: 0 0 38px rgba(255, 194, 61, .95), 0 4px 0 rgba(0, 0, 0, .5); }
}
@keyframes ap-tick { from { color: #fff; text-shadow: 0 0 24px rgba(255, 194, 61, .95); } to { color: var(--os-gold); text-shadow: 0 0 16px rgba(255, 194, 61, .35); } }
@keyframes ap-pick { from { transform: scale(.97); } to { transform: none; } }
@keyframes ap-toast-in { from { opacity: 0; transform: translateX(28px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ap-glitch { 0% { transform: translate(-3px, 1px); } 33% { transform: translate(3px, -1px); } 66% { transform: translate(-1px, 0); } 100% { transform: none; } }


/* =====================================================================
   14. Responsive
   ===================================================================== */
@media (max-width: 980px) {
  /* download rows: actions drop under the text */
  body.os-site.os-page-download .os-wb .grid-3 > .card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: 'ic badge' 'ic title' 'ic desc' '. act';
    row-gap: 0;
  }
  body.os-site.os-page-download .os-wb .grid-3 > .card > .flex-row { flex-direction: row; flex-wrap: wrap; margin-top: 14px; }
}

@media (max-width: 760px) {
  /* iOS: ≥16px inputs never zoom the page; ≥40px tap targets */
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input { height: 46px; font-size: 16px; }
  body.os-site.os-page-cabinet .os-wb #cab-page-root .input { height: 46px; }
  body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye { height: 44px; }
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
    .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .btn { min-height: 44px; }
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
    .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .btn-sm { min-height: 40px; }
  /* inline px widths from SeoRenderer → full width (inline styles need !important) */
  body.os-site:is(.os-page-donate, .os-page-tools) .os-wb :is(#don-gateway, #don-char, #tools-boss-filter, #tools-boss-q) { width: 100% !important; }
  body.os-site:is(.os-page-donate, .os-page-tools) .os-wb :is(.section-head, .flex-between) > .flex-row { width: 100%; }

  /* cabinet */
  body.os-site.os-page-cabinet .os-wb #cab-guest { padding: 52px 14px 16px; }
  body.os-site.os-page-cabinet .os-wb #cab-guest > h1 { gap: 12px; font-size: 20px; }
  body.os-site.os-page-cabinet .os-wb #cab-guest > h1::before { width: 50px; height: 50px; }
  body.os-site.os-page-cabinet .os-wb #cab-guest .tabs { padding: 0 2px; gap: 2px; }
  body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn { min-height: 46px; padding: 6px 4px; font-size: 13.5px; }
  body.os-site.os-page-cabinet .os-wb #cab-guest > :is(#form-login, #form-reg, #form-reset) { padding: 18px 12px 14px; }
  body.os-site.os-page-cabinet .os-wb #cab-user > .section-head { padding: 14px; }
  body.os-site.os-page-cabinet .os-wb #cab-user > .section-head > div:first-child { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  body.os-site.os-page-cabinet .os-wb #cab-user > .section-head > div:first-child::before { width: 46px; height: 46px; }
  body.os-site.os-page-cabinet .os-wb #cab-user > .section-head .flex-row { width: 100%; }
  body.os-site.os-page-cabinet .os-wb #cab-user > .section-head .flex-row > * { flex: 1 1 auto; }

  /* donate */
  body.os-site.os-page-donate .os-wb #don-packages-grid > .card::before { content: 'ПОЗ. ' counter(ap-rc, decimal-leading-zero); }
  body.os-site.os-page-donate .os-wb .card.ap-pay-on .flex-between > .flex-row::before { flex: 0 0 100%; }
  body.os-site.os-page-donate .os-wb .ap-pay { grid-template-columns: minmax(0, 1fr); }
  body.os-site.os-page-donate .os-wb #don-packages-grid + .card { padding: 66px 16px 18px; --ap-tx: 16px; --ap-ty: 18px; }

  /* tools */
  body.os-site.os-page-tools .os-wb .enchant-stage { padding: 20px 12px 14px; }
  body.os-site.os-page-tools .os-wb .enchant-stage .flex-row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  body.os-site.os-page-tools #tools-page-root > .grid-2 > .card:nth-child(1) > .flex-row > :is(input, select) { flex: 1 1 120px; max-width: none !important; /* beats inline max-width */ }
  body.os-site.os-page-tools #tools-page-root > .grid-2 > .card:nth-child(1) > .flex-row > .btn { flex: 1 1 100%; }
  body.os-site.os-page-tools #bosses .section-head { padding: 14px 14px 14px 62px; --ap-tx: 14px; --ap-ty: 34px; }
  body.os-site.os-page-tools #bosses .table-wrap { max-height: 70vh; }
  body.os-site.os-page-tools .os-wb .ap-tm-time { margin-left: 0; }

  /* download */
  body.os-site.os-page-download .os-wb .grid-3 > .card {
    grid-template-columns: 50px minmax(0, 1fr); grid-template-areas: 'ic badge' 'ic title' 'desc desc' 'act act';
    column-gap: 14px; padding: 16px 14px;
  }
  body.os-site.os-page-download .os-wb .grid-3 > .card::before { width: 46px; height: 56px; padding-bottom: 7px; font-size: 10.5px; transform: none; }
  body.os-site.os-page-download .os-wb .grid-3 > .card > p { margin-top: 10px; }
  body.os-site.os-page-download .os-wb .grid-3 > .card > .flex-row { flex-direction: column; }
  body.os-site.os-page-download .os-wb .grid-3 + .card { padding: 64px 16px 16px; --ap-tx: 16px; --ap-ty: 16px; }

  /* about + legal */
  body.os-site.os-page-about .os-wb .card { padding: 18px 16px; }
  body.os-site.os-page-about .os-wb .table-wrap td:first-child { width: 42%; }
  body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose :is(p, li) { font-size: 15.5px; }
  body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card { padding: 64px 16px 16px; --ap-tx: 16px; --ap-ty: 16px; }

  /* 404 */
  body.os-site.os-page-none .os-wb > .container > .card:only-child { padding: 56px 16px 0; }
  body.os-site.os-page-none .os-wb > .container > .card:only-child::after { margin: 22px -16px 0; padding: 10px 16px; }


  /* toasts span the screen */
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

@media (max-width: 560px) {
  /* Task Manager: HP column is the least useful on a phone */
  body.os-site.os-page-tools #bosses :is(th, td):nth-child(5) { display: none; }
  body.os-site.os-page-tools #bosses tbody td { padding: 8px 9px; }
  body.os-site.os-page-tools #tools-boss-rows .badge { min-width: 0; }
}


/* =====================================================================
   15. Reduced motion: no movement, state still shown by colour
   (!important is the standard override here: it must beat every animation above)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
    .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none, .os-page-home) *,
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
    .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none, .os-page-home) *::before,
  body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
    .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none, .os-page-home) *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
  /* the busy spinner must still read as "busy" without spinning */
  body.os-site.os-page-cabinet .os-wb #cab-page-root .btn.ap-busy::after { border-color: #fff; border-top-color: transparent; }
}


/* =====================================================================
   16. THEME «Синяя» — classic Windows 7 light apps (the default theme)
   html[data-theme="blue"]: portal-os-blue.css flips the --os-* tokens to light.
   This section flips the local --ap-* tokens and gives every hardcoded dark surface,
   light-on-dark text, dark glow and red-only accent above its light twin.
   Every selector starts with html[data-theme="blue"] and mirrors a dark rule plus
   (0,1,1), so it wins at any load order; sections 0–15 (theme «Тёмная») are untouched.
   Look = the home page apps in os.css: white bodies, Aero title strips (dark ink with a
   white glow, as in real Windows 7), silver buttons / blue primary (blue core), wizard
   panels .wz-*, paper receipt .receipt, Explorer rows .file, Task Manager .tm-*,
   message box .dlg, tray balloons .balloon. Text contrast ≥ 4.5:1 on its own surface.
   Mobile inputs keep the 16px size from section 14; reduced motion is section 15.
   ===================================================================== */

/* ---- 16.0 tokens ---- */
html[data-theme="blue"] body.os-site {
  --ap-tb: linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .14) 55%, rgba(255, 255, 255, 0)), linear-gradient(var(--win-f1), var(--win-f2));
  --ap-tb-ink: #0b1b2b;
  --ap-tb-glow: 0 0 8px rgba(255, 255, 255, .95), 0 0 2px #fff;
  --ap-tb-line: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)) 5px 100% / calc(100% - 10px) 1px no-repeat;
  --ap-frame: inset 0 0 0 5px var(--win-f2), inset 0 0 0 6px rgba(0, 0, 0, .3);     /* Aero frame round a white client area */
  --ap-head: linear-gradient(#ffffff, #edf3fa);
  --ap-redline: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3));
  --ap-panel: linear-gradient(#ffffff, #f7f9fc);
  --ap-line: #cfd8e3;                                                                /* panel border (os.css .card / .file) */
  --ap-line-2: #9aa7b8;                                                              /* list frame (os.css .tm-wrap) */
  --ap-field: #ffffff;
  --ap-field-line: #8c99a8;
  --ap-paper: #fffdf6;
  --ap-blue-tile: linear-gradient(#8cc6ff, #3b8fe8 52%, #1f5fbf);
  --ap-red-tile: linear-gradient(#ffa594, #e0503a 52%, #a8240f);                    /* a real red here: the accent token is blue */
  --ap-gold-tile: linear-gradient(#ffe9a6, #f0b63a 52%, #c98a12);
  --ap-green-tile: linear-gradient(#b4ef9a, #4cbf2a 52%, #2f9a1e);
  --ap-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(16, 40, 80, .08);
  --ap-shadow-2: inset 0 1px 0 #fff, 0 10px 26px rgba(16, 40, 80, .16);
  --ap-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a495c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --ap-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23627083'%3E%3Cpath fill-rule='evenodd' d='M10 3a7 7 0 015.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1110 3zm0 2a5 5 0 100 10 5 5 0 000-10z'/%3E%3C/svg%3E");
  --ap-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8f45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---- 16.1 shared primitives ---- */
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about,
  .os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) { color-scheme: light; }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools, .os-page-download, .os-page-about) .os-wb .section-head h1 { text-shadow: none; }

/* fields: white Windows 7 text boxes */
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input {
  color: var(--os-text); background-color: #fff; border-color: var(--ap-field-line); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:hover { border-color: #5794bf; }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:focus {
  border-color: #3c7fb1; background-color: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 3px rgba(60, 127, 177, .22);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input::placeholder { color: var(--os-muted); }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb select.input:disabled { background-color: #f2f3f5; }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:-webkit-autofill,
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:-webkit-autofill:hover {
  box-shadow: inset 0 0 0 60px #fff, inset 0 1px 2px rgba(0, 0, 0, .1);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .os-wb .input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 60px #fff, 0 0 0 3px rgba(60, 127, 177, .22);
}

/* address bar (breadcrumbs): Explorer's white path box */
html[data-theme="blue"] body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs {
  color: var(--os-text-2); background: linear-gradient(#fff, #f7f9fc); border-color: #a5b3c4;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 40, 80, .06);
}
html[data-theme="blue"] body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs::before { background: #d49a1e; }
html[data-theme="blue"] body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > a { color: var(--os-text-2); }
html[data-theme="blue"] body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > a:hover { color: #0b1b2b; background: #e5f1fb; box-shadow: inset 0 0 0 1px #b8d6fb; }
html[data-theme="blue"] body.os-site:is(.os-page-tools, .os-page-download, .os-page-about, .os-page-terms, .os-page-privacy,
  .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .breadcrumbs > span:last-child { color: #10263f; }

/* glossy icon tiles: a soft drop shadow instead of the dark glow */
html[data-theme="blue"] body.os-site.os-page-cabinet #cab-user .card > h3:first-child::before,
html[data-theme="blue"] body.os-site.os-page-tools #tools-page-root > .grid-2 > .card > h2:first-child::before,
html[data-theme="blue"] body.os-site.os-page-tools #bosses .section-head::before,
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid + .card::before,
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 + .card::before,
html[data-theme="blue"] body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card::before {
  border-color: rgba(0, 0, 0, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 5px rgba(16, 40, 80, .22);
}

/* ---- 16.2 cabinet, guest: logon dialog in an Aero frame ---- */
html[data-theme="blue"] body.os-site.os-page-cabinet #cab-page-root:has(> #cab-guest:not(.hidden)) {
  background:
    radial-gradient(520px 340px at 50% 36%, rgba(70, 150, 255, .16), transparent 70%),
    radial-gradient(900px 420px at 50% 115%, rgba(42, 111, 214, .08), transparent 62%);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest {
  border-color: rgba(0, 0, 0, .55); background: linear-gradient(#f3f8fe, #fff 150px);
  box-shadow: var(--ap-frame), 0 0 0 1px rgba(255, 255, 255, .45), 0 22px 60px rgba(16, 40, 80, .3), 0 0 30px rgba(70, 150, 255, .3);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest::before {
  color: var(--ap-tb-ink); text-shadow: var(--ap-tb-glow);
  background: var(--ap-tb-line), var(--ap-tb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest::after { background: #0f4aa8; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest > h1 { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest > h1::before {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 0 4px #fff, 0 0 0 5px #9fb4cc, 0 6px 14px rgba(16, 40, 80, .25);
}
/* property-sheet tabs */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest .tabs { border-bottom-color: #8e9cad; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn {
  color: #2b3a4a; border-color: #8e9cad; background: linear-gradient(#fbfcfd, #e6ebf1); box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn:hover {
  color: #0b1b2b; border-color: #3c7fb1; background: linear-gradient(#f2faff, #d9ecfc); box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest .tab-btn.active {
  color: #0b1b2b; border-color: #8e9cad; background: #fff; box-shadow: inset 0 2px 0 #3b8fe8;
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest > :is(#form-login, #form-reg, #form-reset) {
  background: #fff; border-color: #8e9cad; box-shadow: 0 1px 2px rgba(16, 40, 80, .06);
}
/* validation: a real red, not the (blue) accent */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-page-root .input:user-invalid { border-color: #c42b1c; background-color: #fff6f5; }
/* JS extras */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest .ap-link { color: #1d5fbf; text-decoration-color: rgba(29, 95, 191, .45); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-guest .ap-link:hover { color: #0b3f8f; text-decoration-color: currentColor; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye { color: #4a5868; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye[aria-pressed='true'] { color: #1d5fbf; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-page-root .ap-eye:hover { color: #0f4aa8; background: #e5effa; }

/* ---- 16.3 cabinet, signed in: «Панель управления» ---- */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-user > .section-head {
  border-color: #b9cde3;
  background: radial-gradient(620px 180px at 0 0, rgba(70, 150, 255, .18), transparent 70%), linear-gradient(#f4f9ff, #e3eefb);
  box-shadow: var(--ap-shadow);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-user > .section-head > div:first-child::before {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 0 3px #fff, 0 0 0 4px #9fb4cc, 0 4px 12px rgba(16, 40, 80, .22);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-login { text-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-user .card { border-color: var(--ap-line); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-user .card:hover { border-color: #9fb9d6; box-shadow: var(--ap-shadow-2); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-user .card > h3:first-child {
  color: #10263f; border-bottom-color: #d6e0eb; box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-user .cab-prop strong { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #promo-code { border-color: #a87d1e; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #promo-code:focus { border-color: #3c7fb1; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-chars td:first-child strong { color: #10263f; }
/* status pills on light (green / amber / blue / red / grey) */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .badge-amber { background: #fff3c4; border-color: #e5c463; color: #7a5200; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-chars .badge-amber { background: #f2f4f7; border-color: #c9d3df; color: #4a5868; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-orders .badge-gold { background: #fff3c4; border-color: #e5c463; color: #7a5200; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='paid'] { background: #e6f0fd; border-color: #9fc3ea; color: #0f4aa8; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='failed'] { background: #fdeceb; border-color: #f0a79c; color: #a8240f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #u-orders .badge[data-ap-st='refunded'] { background: #f2f4f7; border-color: #c9d3df; color: #4a5868; }

/* «Первые шаги» = Windows 7 «Приступая к работе»; section nav = the Control Panel task pane (colours only, sizes from 3b) */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-steps {
  border-color: var(--ap-line);
  background: radial-gradient(700px 220px at 100% 0, rgba(42, 111, 214, .08), transparent 70%), linear-gradient(#fff, #f7f9fc);
  box-shadow: var(--ap-shadow);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-steps-head { border-bottom-color: var(--ap-line); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-steps-ic { border-color: rgba(0, 0, 0, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 5px rgba(16, 40, 80, .22); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-steps.is-complete .cab-steps-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 5px rgba(16, 40, 80, .22); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-steps-title h2 { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-steps-meter { color: #33506f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-steps-bar { border-color: #b2b2b2; background: linear-gradient(#e6e6e6, #f7f7f7); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-steps-bar > i { background: linear-gradient(#c6f6b2, #4fd02b 50%, #2fae16); box-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step { border-color: #dbe3ec; background: #fff; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step-n { color: #4a5868; border-color: #b9c6d4; background: #f6f8fb; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step-h { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step small b { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step-st { color: #4a5868; border-color: #c9d3df; background: #f2f4f7; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-n { border-color: #2f9a1e; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-h { color: #4a5868; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step.is-done .cab-step-st { color: #22661a; border-color: #9ed58a; background: #e3f6dc; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step.is-next {
  border-color: #84acdd; background: linear-gradient(#f2f8ff, #dcecfd);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 2px 8px rgba(42, 111, 214, .15);
}
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step.is-next .cab-step-n { border-color: #1f5fbf; background: linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 52%), var(--ap-blue-tile); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-step.is-next .cab-step-st { color: #fff; background: #2a6fd6; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-steps.is-welcome { box-shadow: var(--ap-shadow), 0 0 0 2px rgba(76, 191, 42, .6), 0 0 26px rgba(76, 191, 42, .22); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-steps.is-welcome #cab-steps-sub { color: #22661a; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav { border-color: var(--ap-line); background: linear-gradient(#dfeaf8, #f4f8fd 60%, #fff); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav > :is(a, button) { color: #1e3a5f; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav > :is(a, button):hover { color: #0b3f8f; background: #e5f1fb; border-color: #b8d6fb; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav > a[aria-current] { color: #0b1b2b; border-color: #84acdd; background: linear-gradient(#f2f8ff, #dcecfd); box-shadow: inset 3px 0 0 #2a6fd6; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav em { color: #33506f; background: #e5effa; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav em.is-warn { color: #5a3c00; background: #ffe08a; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-nav-steps { border-top-color: var(--ap-line); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-dl-big { border-color: #0e6a2c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(15, 106, 44, .25); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-dl-big:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 24px rgba(15, 106, 44, .32); }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-dl-how li::marker { color: #a87d1e; }
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb .cab-sub-h { color: #10263f; }

/* ---- 16.4 donate: «Касса» window, payment tiles, paper receipts ---- */
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .section-head + .card {
  border-color: rgba(0, 0, 0, .55); background: #fff;
  box-shadow: var(--ap-frame), 0 0 0 1px rgba(255, 255, 255, .45), 0 10px 26px rgba(16, 40, 80, .18);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .section-head + .card::before {
  color: var(--ap-tb-ink); text-shadow: var(--ap-tb-glow);
  background: var(--ap-tb-line), var(--ap-tb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .section-head + .card::after { background: #8a5a00; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-gateways-status .badge { color: #3a495c; background: linear-gradient(#fff, #f1f4f8); border-color: #c3cdd9; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-gateways-status .badge-green::before { background: #2fbf4a; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 6px rgba(47, 191, 74, .7); }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-gateways-status .badge-gold::before { background: #f0b63a; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
/* payment tiles = Windows 7 command links with a radio */
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt {
  color: var(--os-text); border-color: #b5c0cc; background: linear-gradient(#ffffff, #eef2f7);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 40, 80, .06);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt::before { background: #fff; border-color: #8c99a8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-name { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-meta { color: #4a5868; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-st { color: #1d6e1d; border-color: #9bd39b; background: #e9f7e9; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt.is-pending .ap-pay-st { color: #7a5200; border-color: #e5c463; background: #fff3c4; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt:hover:not(:disabled) {
  border-color: #7da2ce; background: linear-gradient(#f4faff, #e2effc); box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(16, 40, 80, .14);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt[aria-checked='true'],
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt[aria-checked='true']:hover:not(:disabled) {
  border-color: #3c7fb1; background: linear-gradient(#eef6ff, #d6e9fc);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #3c7fb1, 0 0 0 4px rgba(60, 127, 177, .16);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt[aria-checked='true']::before {
  border-color: #2a6fd6; background: radial-gradient(circle, #2a6fd6 0 4px, #fff 4.5px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt:disabled { border-color: #c9ced6; background: #f2f3f5; box-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb .ap-pay-opt:disabled .ap-pay-name { color: #5f6b78; }
/* receipts: white paper on a striped counter (os.css .dn / .receipt) */
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid {
  padding: 22px 18px 26px; border: 1px solid var(--ap-line); border-radius: 8px;
  background: repeating-linear-gradient(45deg, #e9edf2 0 10px, #e1e6ec 10px 20px);
  box-shadow: inset 0 1px 3px rgba(16, 40, 80, .1);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card {
  color: #222; border-color: rgba(0, 0, 0, .1);
  background:
    repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 8px, #222 8px 11px, transparent 11px 12px) center bottom 18px / 58% 22px no-repeat,
    linear-gradient(#fffefa, var(--ap-paper) 45%);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(16, 40, 80, .18);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card::before { color: #555; border-bottom-color: #a8a8a8; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card:hover {
  box-shadow: inset 1px 0 0 #9fc7ea, inset -1px 0 0 #9fc7ea, inset 0 1px 0 #9fc7ea, 0 16px 30px rgba(16, 40, 80, .24);
}
/* the stamp: blue ink */
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card > .badge {
  color: #1d5fbf; background: rgba(42, 111, 214, .06); border-color: #2a6fd6; box-shadow: inset 0 0 6px rgba(42, 111, 214, .12);
}
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card > h3 { color: #1b1b1b; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card > p { color: #444; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card > .flex-between { border-top-color: #a8a8a8; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid > .card > .flex-between > div:first-child::before { color: #555; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid .stat-value { color: var(--os-gold); text-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid .stat-value + .muted { color: #555; }
/* payment terms */
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid + .card { border-color: var(--ap-line); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid + .card h2 { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid + .card a { text-decoration-color: rgba(29, 95, 191, .45); }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid + .card a:hover { text-decoration-color: currentColor; }
html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid + .card p:last-child { background: #eef5fd; border-left-color: #3b8fe8; color: var(--os-text); }

/* ---- 16.5 tools: light dialogs + Task Manager ---- */
html[data-theme="blue"] body.os-site.os-page-tools #tools-page-root > .grid-2 > .card { border-color: var(--ap-line); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-tools #tools-page-root > .grid-2 > .card > h2:first-child {
  color: #10263f; border-bottom-color: #d6e0eb; box-shadow: inset 0 1px 0 #fff;
}
/* enchant stage: a light "forge" with the level colour by tier */
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage {
  --ap-glow: rgba(70, 150, 255, .1);
  border-color: var(--ap-line-2);
  background:
    radial-gradient(260px 150px at 50% 30%, var(--ap-glow), transparent 70%),
    radial-gradient(120% 70% at 50% 125%, rgba(42, 111, 214, .12), transparent 60%),
    linear-gradient(#fdfeff, #eaf1f9);
  box-shadow: inset 0 1px 3px rgba(16, 40, 80, .12);
}
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #enc-level { color: #10263f; text-shadow: 0 1px 0 #fff, 0 3px 10px rgba(16, 40, 80, .18); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='1'] { --ap-glow: rgba(70, 150, 255, .24); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='1'] #enc-level { color: #1d5fbf; text-shadow: 0 1px 0 #fff, 0 0 22px rgba(70, 150, 255, .45); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='2'] { --ap-glow: rgba(214, 58, 42, .16); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='2'] #enc-level { color: #b3261e; text-shadow: 0 1px 0 #fff, 0 0 22px rgba(214, 58, 42, .32); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='3'] { --ap-glow: rgba(240, 182, 58, .3); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-tier='3'] #enc-level { color: var(--os-gold); animation: ap-gold-lt 1.6s ease-in-out infinite; }
/* scroll results (after the tiers on purpose, like section 5) */
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='ok'] { --ap-flash: rgba(47, 191, 74, .3); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='ok'] #enc-level { animation: ap-pop .45s var(--os-ease); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='ok'] #enc-log { color: #1d6e1d; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='fail'] { --ap-flash: rgba(240, 182, 58, .35); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='fail'] #enc-level { animation: ap-shake .45s; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='break'] { --ap-flash: rgba(214, 58, 42, .3); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='break'] #enc-level { animation: ap-shake .55s; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='break'] #enc-log { color: #b3261e; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='max'] { --ap-flash: rgba(240, 182, 58, .45); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='max'] #enc-level { animation: ap-pop .5s var(--os-ease); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .enchant-stage[data-ap-fx='reset'] { --ap-flash: rgba(70, 150, 255, .2); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #enc-sim-out:not(:empty) { border-color: var(--ap-line-2); background: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
/* farm read-out: light panel (the markup paints it dark inline, hence !important) */
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #farm-calc > .card {
  border-color: var(--ap-line-2); background: linear-gradient(#f7fbff, #e7f0fa) !important; box-shadow: inset 0 1px 3px rgba(16, 40, 80, .12);
}
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #farm-calc > .card::before { background: repeating-linear-gradient(0deg, rgba(16, 40, 80, .035) 0 1px, transparent 1px 3px); }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #farm-res-adena { text-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #farm-res-adena.ap-tick { animation: ap-tick-lt .6s ease-out; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb #farm-res-spoil { color: #1d5fbf; }
/* bosses = Task Manager: white list, light column heads, grey status bar */
html[data-theme="blue"] body.os-site.os-page-tools #bosses > .card { border-color: var(--ap-line-2); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-tools #bosses .section-head { border-bottom-color: #c9d5e2; box-shadow: inset 0 1px 0 #fff; }
html[data-theme="blue"] body.os-site.os-page-tools #bosses .table-wrap { background: #fff; }
html[data-theme="blue"] body.os-site.os-page-tools #bosses td:first-child :is(strong, a) { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-tools #bosses td:first-child a:hover { color: #1d5fbf; }
html[data-theme="blue"] body.os-site.os-page-tools #tools-boss-rows .badge-red { color: #a8240f; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .ap-tm-bar { color: #445263; background: #eef1f5; border-top-color: #c9d3df; box-shadow: inset 0 1px 0 #fff; }
html[data-theme="blue"] body.os-site.os-page-tools .os-wb .ap-tm-led { background: #2fbf4a; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 6px rgba(47, 191, 74, .7); }

/* ---- 16.6 download: «Мой компьютер › Загрузки», white Explorer list ---- */
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 { border-color: var(--ap-line-2); background: #fff; box-shadow: 0 2px 8px rgba(16, 40, 80, .08); }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3::before { color: #2b3a4a; background: linear-gradient(#fff, #eef1f5); border-bottom-color: #d6dde6; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3::after { color: #445263; background: #eef1f5; border-top: 1px solid #c9d3df; box-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card {
  --ap-file: linear-gradient(160deg, #ffe08a, #e8a92a 42%, #b77a0c);            /* ZIP = yellow archive */
  border-bottom-color: #e6ebf1;
}
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card:hover { background: linear-gradient(#f4faff, #e2effc); box-shadow: inset 0 0 0 1px #b8d6fb; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card:first-child { background: linear-gradient(90deg, #e8f2fd, rgba(232, 242, 253, 0) 60%); box-shadow: inset 3px 0 0 #3b8fe8; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card:first-child:hover { background: linear-gradient(#f4faff, #e2effc); box-shadow: inset 3px 0 0 #3b8fe8, inset 0 0 0 1px #b8d6fb; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card:nth-child(3) { --ap-file: linear-gradient(160deg, #cfd6de, #8f9aa8 45%, #5f6b7a); }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card > h3 { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 > .card:first-child > h3::after { background: #1f5fbf; box-shadow: 0 1px 2px rgba(16, 40, 80, .3); }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 + .card { border-color: var(--ap-line); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 + .card h3 { color: #10263f; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 + .card li::before { background: #3b8fe8; box-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-download .os-wb .grid-3 + .card li strong { color: #10263f; }

/* ---- 16.7 about ---- */
html[data-theme="blue"] body.os-site.os-page-about .os-wb .card { border-color: var(--ap-line); box-shadow: var(--ap-shadow); }
html[data-theme="blue"] body.os-site.os-page-about .os-wb .card > h2 { color: #10263f; border-left-color: #3b8fe8; box-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-about .os-wb .card li::before { background: #3b8fe8; box-shadow: none; }
html[data-theme="blue"] body.os-site.os-page-about .os-wb .card li strong { color: #10263f; }

/* ---- 16.8 legal: white document with a light-blue «только для чтения» bar ---- */
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose {
  border-color: #b9c6d6; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 30px rgba(16, 40, 80, .16);
}
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose::before {
  color: #0f3b70; background: linear-gradient(#f4f9ff, #e2eefc); border-bottom-color: #a9c6e8;
}
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose > h1 { color: #10263f; }
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose h2 { color: #10263f; border-left-color: #3b8fe8; }
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose strong { color: #10263f; }
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose a { text-decoration-color: rgba(29, 95, 191, .45); }
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose a:hover { text-decoration-color: currentColor; }
html[data-theme="blue"] body.os-site:is(.os-page-terms, .os-page-privacy, .os-page-refund, .os-page-contacts, .os-page-none) .os-wb .article-prose li::before { background: #3b8fe8; box-shadow: none; }
html[data-theme="blue"] body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card {
  border-color: var(--ap-line); background: linear-gradient(#fff, #f3f7fb); box-shadow: var(--ap-shadow);
}
html[data-theme="blue"] body.os-site:is(.os-page-contacts, .os-page-none) .os-wb .article-prose .grid-2 > .card h3 { color: #10263f; }

/* ---- 16.9 404: a classic white Windows error box (icon left, grey button bar),
   the «синий экран» joke stays only in the STOP strip ---- */
html[data-theme="blue"] body.os-site.os-page-none .os-wb:has(> .container > .card:only-child) {
  background: radial-gradient(640px 360px at 50% 34%, rgba(70, 150, 255, .16), transparent 70%), linear-gradient(#f3f7fc, #e4edf7);
}
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child {
  text-align: left !important;   /* the markup centres it inline */
  border-color: rgba(0, 0, 0, .55); background: #fff;
  box-shadow: var(--ap-frame), 0 0 0 1px rgba(255, 255, 255, .45), 0 22px 60px rgba(16, 40, 80, .32), 0 0 30px rgba(70, 150, 255, .3);
}
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child::before {
  color: var(--ap-tb-ink); text-shadow: var(--ap-tb-glow);
  background: var(--ap-tb-line), var(--ap-tb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > h1 {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 16px; align-items: center; justify-items: start;
  margin: 0 0 12px; color: #10263f;
}
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > h1::before {
  grid-row: 1 / span 2; align-self: start; width: 52px; height: 52px;
  background:
    linear-gradient(45deg, transparent 43%, #fff 43% 57%, transparent 57%) center / 24px 24px no-repeat,
    linear-gradient(-45deg, transparent 43%, #fff 43% 57%, transparent 57%) center / 24px 24px no-repeat,
    radial-gradient(circle at 50% 26%, #ff9c8a 0, #e0402f 42%, #b3200f 78%, #7a0f06 100%);
  border-color: #7a0f06;
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .45), inset 0 -5px 10px rgba(0, 0, 0, .25), 0 2px 6px rgba(120, 20, 10, .35);
}
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > h1::after { grid-column: 2; color: var(--os-text); }
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > p { margin-left: 68px; color: var(--os-text-2); }
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > .flex-row {
  justify-content: flex-end !important;   /* inline centre → buttons on the right, like a message box */
  margin: 22px -22px 0; padding: 12px 16px; background: #f0f0f0; border-top: 1px solid #dfdfdf;
}
html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child::after {
  margin: 0 -22px 6px; color: #fff; background: #1a4fb5; border-top: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}

/* ---- 16.10 /en·/pt·/es·/el·/pl landing CTA row ---- */
html[data-theme="blue"] body.os-site.os-page-home .os-wb .db-page > .flex .btn-gold { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 12px rgba(42, 111, 214, .35); }
html[data-theme="blue"] body.os-site.os-page-home .os-wb .db-page > .flex .btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 18px rgba(70, 150, 255, .6); }
html[data-theme="blue"] body.os-site.os-page-home .os-wb .db-page > .flex .btn-ghost { border-color: #7f8b99; }
html[data-theme="blue"] body.os-site.os-page-home .os-wb .db-page > .flex .btn-ghost:hover { border-color: #3c7fb1; }

/* ---- 16.11 toasts = tray balloons, confirm = Aero message box ---- */
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast {
  color: #17212c; border-color: #6f7c8c; background: linear-gradient(#ffffff, #eef3f8);
  box-shadow: inset 0 2px 0 var(--ap-toast, #3b8fe8), inset 0 0 0 1px #fff, 0 10px 26px rgba(0, 0, 0, .3);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 3px rgba(0, 0, 0, .3); }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast-ok { --ap-toast: #2f9a1e; }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast-err { --ap-toast: #c42b1c; }
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .toast-stack .toast-ok::after { background: #fff; }

html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-backdrop {
  background: radial-gradient(800px 500px at 50% 40%, rgba(70, 150, 255, .14), transparent 70%), rgba(18, 36, 64, .42);
  backdrop-filter: blur(3px) saturate(.9);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-backdrop .modal-card {
  border-color: rgba(0, 0, 0, .55); background: #fff;
  box-shadow: var(--ap-frame), 0 0 0 1px rgba(255, 255, 255, .45), 0 22px 60px rgba(0, 0, 0, .42), 0 0 30px rgba(70, 150, 255, .35);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-card > .flex-between:first-child {
  background: var(--ap-tb-line), var(--ap-tb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) #fx-modal-title {
  text-shadow: var(--ap-tb-glow);
  color: var(--ap-tb-ink) !important; /* portal.js sets color inline */
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-card > .flex-between:first-child > .btn {
  color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); border-color: rgba(0, 0, 0, .55);
  background: linear-gradient(#f2a094, #d9533f 50%, #b8230f 51%, #e0634a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) .modal-card > .flex-between:first-child > .btn:hover {
  color: #fff; border-color: rgba(0, 0, 0, .55);
  background: linear-gradient(#ffc0b5, #f0684f 50%, #d42b10 51%, #ff7d5c); box-shadow: 0 0 10px rgba(255, 120, 90, .6);
}
/* buttons sit on the grey message-box bar (inside the 6px frame: 20px padding − 6) */
html[data-theme="blue"] body.os-site:is(.os-page-cabinet, .os-page-donate, .os-page-tools) #fx-modal-foot:not(:empty) {
  margin: 18px -14px -12px; padding: 12px 14px; background: #f0f0f0; border-top: 1px solid #dfdfdf;
}

/* ---- 16.12 JS states ---- */
/* the spinner on silver buttons is dark-on-light (white stays on the blue/green/red ones) */
html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-page-root .btn.ap-busy:not(.btn-gold, .btn-primary, .btn-teal, .btn-danger)::after {
  border-color: rgba(21, 32, 44, .2); border-top-color: #1d5fbf;
}

/* ---- 16.13 keyframes (light twins of ap-gold / ap-tick) ---- */
@keyframes ap-gold-lt {
  0%, 100% { text-shadow: 0 1px 0 #fff, 0 0 14px rgba(240, 182, 58, .45); }
  50% { text-shadow: 0 1px 0 #fff, 0 0 26px rgba(240, 182, 58, .9); }
}
@keyframes ap-tick-lt { from { color: #1d5fbf; text-shadow: 0 0 16px rgba(70, 150, 255, .6); } to { color: var(--os-gold); text-shadow: none; } }

/* ---- 16.14 responsive (only where a rule above fixes a size the dark phone rules also set) ---- */
@media (max-width: 760px) {
  html[data-theme="blue"] body.os-site.os-page-donate .os-wb #don-packages-grid { padding: 14px 10px 18px; }
  /* 404 on phones: card padding is 16px → bars sit 6px inside the frame */
  html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > .flex-row { margin: 18px -10px 0; padding: 10px; }
  html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > .flex-row > .btn { flex: 1 1 auto; }
  html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child::after { margin: 0 -10px 6px; padding: 10px 12px; }
}
@media (max-width: 560px) {
  html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > h1 { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > h1::before { width: 44px; height: 44px; background-size: 20px 20px, 20px 20px, auto; }
  html[data-theme="blue"] body.os-site.os-page-none .os-wb > .container > .card:only-child > p { margin-left: 0; }
}

/* ---- 16.15 reduced motion: the still spinner keeps its "C" shape in blue too ---- */
@media (prefers-reduced-motion: reduce) {
  html[data-theme="blue"] body.os-site.os-page-cabinet .os-wb #cab-page-root .btn.ap-busy:not(.btn-gold, .btn-primary, .btn-teal, .btn-danger)::after {
    border-color: #1d5fbf; border-top-color: transparent;
  }
}
