/* documentation.css */
@font-face{font-family:Inter;src:url("/assets/inter.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:IBM Plex Mono;src:url("/assets/plex-mono.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
:root{color-scheme:light;--doc-bg:#f7f8fc;--doc-paper:#fff;--doc-ink:#172039;--doc-text:#38445d;--doc-muted:#535f78;--doc-line:#dce1ed;--doc-link:#39369b;--doc-soft:#eeedfa;--doc-header:68px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-padding-top:calc(var(--doc-header) + 24px)}
body{margin:0;background:var(--doc-bg);color:var(--doc-text);font:400 15px/1.7 Inter,system-ui,sans-serif}
a{color:var(--doc-link);text-underline-offset:.19em}
a:hover{color:#25216d}
:focus-visible{outline:2px solid #5c49c3;outline-offset:4px}
.doc-skip{position:fixed;z-index:10;top:10px;left:12px;transform:translateY(-200%);background:#fff;padding:8px 14px;border-radius:6px}
.doc-skip:focus{transform:none}
.doc-header{position:sticky;top:0;z-index:4;background:var(--doc-paper);border-bottom:1px solid var(--doc-line)}
.doc-header-inner{height:calc(var(--doc-header) - 1px);max-width:1544px;margin:auto;padding:0 36px;display:flex;align-items:center;gap:19px}
.doc-header a,.doc-footer a{text-decoration:none}
.doc-brand{display:inline-flex;align-items:center;gap:9px;color:var(--doc-ink);font-size:16px;font-weight:770;letter-spacing:-.035em;white-space:nowrap}
.doc-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:#211b48}
.doc-label{border-left:1px solid var(--doc-line);padding-left:19px;color:var(--doc-muted);font-size:13px;font-weight:600}
.doc-header-links{margin-left:auto;display:flex;align-items:center;gap:24px;font-size:13px;font-weight:640}
.doc-header-links a{color:var(--doc-text)}
.doc-mobile-jump{display:none}
.doc-header-links .doc-workspace{color:#fff;background:#36318d;padding:7px 13px;border-radius:7px;white-space:nowrap}
.doc-workspace:hover{background:#28256e}
.doc-workspace span{margin-left:4px}
.doc-layout{display:grid;grid-template-columns:226px minmax(0,1fr) 182px;align-items:start;max-width:1544px;margin:auto;padding:0 36px;min-height:85vh}
.doc-sidebar,.doc-right{position:sticky;top:var(--doc-header);max-height:calc(100dvh - var(--doc-header));overflow:auto;scrollbar-width:thin}
.doc-sidebar{padding:31px 18px 28px 0}
.doc-search{margin-bottom:18px}
.doc-search label{display:block;font-size:12px;font-weight:700;color:var(--doc-muted);margin-bottom:5px}
.doc-search-field{display:flex;align-items:center;gap:4px;border:1px solid #cbd2e4;border-radius:8px;background:var(--doc-paper);padding-right:7px}
.doc-search-field:focus-within{outline:2px solid #5c49c3;outline-offset:2px}
.doc-search input{width:100%;min-width:0;border:0;background:transparent;padding:9px 8px;color:var(--doc-ink);font:inherit;font-size:13px;outline:none}
.doc-search kbd{display:block;white-space:nowrap;font:10px/1.5 "IBM Plex Mono",monospace;background:#f2f3f9;border:1px solid var(--doc-line);border-radius:4px;padding:1px 3px;color:var(--doc-muted)}
.doc-search-panel{margin-top:6px;padding:8px;border:1px solid var(--doc-line);border-radius:8px;background:#fff;overflow-wrap:anywhere}
.doc-search-panel p{margin:0 0 4px;font-size:11px;color:var(--doc-muted)}
.doc-search-panel ul,.doc-sidebar ul,.doc-right ul{list-style:none;padding:0;margin:0}
.doc-search-panel a{display:block;padding:6px;font-size:13px;text-decoration:none;line-height:1.3}
.doc-search-panel small{display:block;color:var(--doc-muted);font-size:10px;margin-top:3px}
.doc-nav summary{display:none}
.doc-nav h2,.doc-right h2{font-size:11px;font-weight:770;text-transform:uppercase;letter-spacing:.085em;color:var(--doc-muted);line-height:1.4;margin:16px 0 4px;padding:0 8px}
.doc-nav a,.doc-right a{display:block;color:var(--doc-text);text-decoration:none;font-size:13px;line-height:1.35;padding:6px 8px;border-radius:5px}
.doc-sidebar a:hover,.doc-right a:hover{background:#edeff7}
.doc-nav a[aria-current="location"]{color:var(--doc-link);background:var(--doc-soft);font-weight:740;box-shadow:inset 2px 0 #6961c6}
.doc-main{background:var(--doc-paper);border-inline:1px solid var(--doc-line);min-width:0;padding:0 clamp(26px,4vw,62px) 60px}
.doc-hero{margin-inline:calc(clamp(26px,4vw,62px) * -1);padding:clamp(36px,5vw,72px) clamp(26px,4vw,62px) clamp(34px,4.6vw,60px);background:linear-gradient(128deg,#f3f1fd,#fff 88%);border-bottom:1px solid var(--doc-line)}
.doc-hero h1{color:var(--doc-ink);font-size:clamp(38px,5vw,72px);line-height:1.02;letter-spacing:-.067em;margin:0;font-weight:765}
.doc-hero p{max-width:54ch;margin:19px 0 23px;font-size:clamp(15px,1.4vw,19px);line-height:1.6}
.doc-hero-links{display:flex;flex-wrap:wrap;gap:8px}
.doc-hero-links a{background:#fff;border:1px solid #d5d8e9;border-radius:6px;padding:6px 10px;font-weight:660;font-size:12px;text-decoration:none}
.doc-hero-links a:first-child{color:#fff;background:#38338e;border-color:#38338e}
.doc-hero-links span{margin-left:3px}
.doc-section{padding:34px 0;border-bottom:1px solid var(--doc-line)}
.doc-section:last-child{border-bottom:0;padding-bottom:0}
.doc-section h2,.doc-section h3{color:var(--doc-ink);line-height:1.2;letter-spacing:-.032em;margin:0 0 9px}
.doc-section h2{font-size:clamp(25px,3vw,34px);font-weight:740}
.doc-section h3{font-size:19px;margin-top:26px;letter-spacing:-.019em;font-weight:700}
.doc-section p,.doc-section ul,.doc-section ol{margin:0 0 14px}
.doc-section .doc-lead{font-size:16px;color:var(--doc-muted);margin:0 0 17px}
.doc-section p:last-child,.doc-section ul:last-child,.doc-section ol:last-child{margin-bottom:0}
.doc-section li+li{margin-top:6px}
.doc-section ol,.doc-section ul{padding-left:23px}
.doc-section strong,.doc-glossary dt{color:var(--doc-ink)}
.doc-table{overflow:auto;margin:14px 0 17px;border:1px solid var(--doc-line);border-radius:8px}
.doc-table table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.53}
.doc-table th,.doc-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--doc-line)}
.doc-table thead th{color:var(--doc-ink);background:#f3f5fb;font-size:12px;font-weight:720}
.doc-table tbody th{color:var(--doc-ink);font-weight:665}
.doc-table tbody tr:last-child :is(th,td){border-bottom:0}
.doc-section code{font:400 .89em/1.55 "IBM Plex Mono",monospace;background:#eef0f8;color:#353074;padding:1px 4px;border-radius:3px;overflow-wrap:anywhere}
.doc-section pre{margin:0;overflow:auto;padding:13px 14px;background:#f5f6fb;border:1px solid var(--doc-line);border-radius:8px}
.doc-section pre code{background:transparent;padding:0;color:#282653;overflow-wrap:normal}
.doc-code{margin:14px 0 16px;border:1px solid var(--doc-line);border-radius:8px;background:#f5f6fb}
.doc-code-heading{display:flex;align-items:center;justify-content:space-between;padding:5px 9px 5px 14px;border-bottom:1px solid var(--doc-line);font:400 11px/1.4 "IBM Plex Mono",monospace;color:var(--doc-muted)}
.doc-code-heading button{font:650 11px/1.4 Inter,sans-serif;color:var(--doc-link);background:#fff;border:1px solid var(--doc-line);border-radius:5px;cursor:pointer;padding:4px 8px;min-width:52px}
.doc-code pre{border:0;border-radius:0 0 8px 8px}
.doc-section > pre{margin:14px 0 16px}
.doc-note{margin:17px 0 0;padding:12px 15px;border:1px solid #e2ddf5;border-left:3px solid #7770c1;border-radius:7px;background:#f7f5ff;font-size:14px}
.doc-note p{margin-top:3px}
.doc-flow{list-style-position:outside}
.doc-glossary{display:grid;grid-template-columns:minmax(120px,27%) 1fr;gap:0 18px;margin:0}
.doc-glossary dt,.doc-glossary dd{padding:9px 0;margin:0;border-bottom:1px solid var(--doc-line);font-size:14px}
.doc-downloads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.doc-downloads a{display:grid;align-content:start;gap:5px;padding:13px;border:1px solid var(--doc-line);border-radius:8px;text-decoration:none}
.doc-downloads a:hover{background:#f7f7fd;border-color:#a9a2d8}
.doc-downloads span{color:var(--doc-muted);font:11px/1.4 "IBM Plex Mono",monospace}
.doc-downloads strong{font-size:14px;line-height:1.35}
.doc-downloads small{color:var(--doc-muted);font-size:12px;line-height:1.5}
.doc-downloads b{color:var(--doc-link);white-space:nowrap}
.doc-right{padding:34px 0 22px 16px}
.doc-right nav+nav{margin-top:19px}
.doc-right h2{margin-top:0}
.doc-footer{max-width:1544px;margin:auto;border-top:1px solid var(--doc-line);padding:20px 36px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:650}
.doc-footer nav{display:flex;gap:16px}
@media(max-width:1160px){.doc-layout{grid-template-columns:206px minmax(0,1fr)}.doc-right{display:none}}
@media(max-width:780px){
 :root{--doc-header:56px}
 .doc-header-inner{padding:0 16px;gap:11px}
 .doc-header-links{gap:11px}
 .doc-label{padding-left:11px}
 .doc-header-links > a:not(.doc-workspace,.doc-mobile-jump){display:none}
 .doc-mobile-jump{display:block}
 .doc-layout{display:block;padding:0}
 .doc-sidebar{position:static;max-height:none;overflow:visible;padding:13px 16px;background:var(--doc-paper);border-bottom:1px solid var(--doc-line)}
 .doc-search{margin-bottom:9px}
 .doc-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .doc-search kbd{display:none}
 .doc-search input{padding:9px 10px}
 .doc-nav summary{display:list-item;padding:7px 2px;font-size:13px;font-weight:680;color:var(--doc-ink);cursor:pointer}
 .doc-nav nav{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-flow:row;gap:0 6px;padding-bottom:8px}
 .doc-nav h2{grid-column:1/-1;margin-top:10px}
 .doc-nav ul{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 6px}
 .doc-nav a{padding:8px}
 .doc-main{border:0;padding-inline:18px}
 .doc-hero{margin-inline:-18px;padding:38px 18px 33px}
 .doc-section{padding:30px 0}
 .doc-footer{padding:18px}
}
@media(max-width:400px){
 .doc-brand{font-size:14px}.doc-mark{width:29px;height:29px}.doc-mark img{width:21px;height:20px}
 .doc-header-links{font-size:11px}
 .doc-label{display:none}
 .doc-header-links .doc-workspace{padding:6px 8px}
 .doc-hero-links a{padding:5px 7px;font-size:11px}
 .doc-table th,.doc-table td{padding:8px}
 .doc-downloads{grid-template-columns:1fr}
 .doc-glossary{grid-template-columns:1fr;gap:0}.doc-glossary dt{padding-bottom:0;border:0}
}

/* site-navigation.css */
.site-header {
  --site-header-height: 4.5rem;
  position: relative;
  z-index: 8;
  color: #f8f4ff;
  background: #15121c;
  border-bottom: 1px solid #372d43;
  font: 400 .9rem/1.4 Inter, system-ui, sans-serif;
}

.site-header.doc-header {
  --site-header-height: var(--doc-header);
  position: sticky;
  top: 0;
}

.site-header-inner {
  width: min(calc(100% - 2 * clamp(1rem, 4vw, 3.5rem)), 1220px);
  min-height: calc(var(--site-header-height) - 1px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
}

.site-header a { color: inherit; text-decoration: none; }
.site-header :focus-visible { outline: 2px solid #caa6ff; outline-offset: 3px; }

.site-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .58rem;
  white-space: nowrap;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -.055em;
}

.site-brand img { width: 2.05rem; height: auto; display: block; }
.site-menu { display: flex; align-items: center; gap: clamp(.15rem, 1.5vw, 1rem); }
.site-menu-group { position: relative; }
.site-menu-group > summary {
  display: flex;
  align-items: center;
  gap: .42rem;
  list-style: none;
  border-radius: .48rem;
  color: #e5daee;
  font-weight: 620;
  padding: .7rem .8rem;
  cursor: pointer;
}

.site-menu-group > summary::-webkit-details-marker { display: none; }
.site-menu-group > summary svg { color: #c7a8e3; transition: transform .18s ease; }
.site-menu-group[open] > summary svg { transform: rotate(180deg); }
.site-menu-group.is-current > summary { color: #e4c5ff; }
.site-menu-group[open] > summary, .site-menu-group > summary:hover { background: #2a2035; color: #fbf6ff; }

.site-menu-panel {
  position: absolute;
  inset: calc(100% + .5rem) auto auto 50%;
  transform: translateX(-50%);
  width: 20rem;
  padding: .45rem;
  margin: 0;
  border-radius: .8rem;
  border: 1px solid #51415f;
  background: linear-gradient(140deg, #251c30, #1a1521 72%);
  box-shadow: 0 18px 34px #0c0814a1;
  list-style: none;
}

.site-menu-panel a {
  display: grid;
  gap: .2rem;
  padding: .63rem .75rem;
  border-radius: .5rem;
  color: #f3eaf8;
  font-weight: 630;
}

.site-menu-panel a:hover, .site-menu-panel a[aria-current="page"] { background: #382848; }
.site-menu-panel small { font-size: .76rem; line-height: 1.4; font-weight: 400; color: #cec0db; }
.site-header-actions { display: flex; justify-self: end; align-items: center; gap: .55rem; }
.site-header-actions .language-switch { --language-line: #655371; color: #f6eeff; }
.site-header .site-workspace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: .42rem .85rem;
  border-radius: .49rem;
  background: linear-gradient(105deg, #caadff, #ab89ec);
  color: #1a1126;
  white-space: nowrap;
  font-weight: 720;
}
.site-header .site-workspace:hover { background: #dbbfff; }
.site-menu-toggle, .site-menu-cross, .site-header .site-doc-jump { display: none; }

@media (max-width: 960px) {
  .site-header { --site-header-height: 3.85rem; }
  .site-header-inner { grid-template-columns: minmax(0,1fr) auto; }
  .site-brand { font-size: 1.18rem; gap: .38rem; }
  .site-brand img { width: 1.65rem; }
  .site-header .site-workspace { min-height: 2.3rem; padding-inline: .6rem; font-size: .82rem; }
  .site-header-actions { gap: .4rem; }
  .site-menu { grid-row: 2; grid-column: 1/-1; display: grid; gap: .24rem; }
  .site-header[data-menu-ready] .site-menu {
    display: none;
    position: absolute;
    inset: calc(100% + .35rem) max(1rem,4vw) auto;
    max-height: calc(100dvh - var(--site-header-height) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .45rem;
    border: 1px solid #51415f;
    border-radius: .8rem;
    background: #1d1727;
    box-shadow: 0 16px 30px #0c0814bb;
  }
  .site-header[data-menu-ready] .site-menu.is-open { display: grid; }
  .site-header[data-menu-ready] .site-menu-toggle {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    color: #f2eaff;
    background: #261c31;
    border: 1px solid #634e73;
    border-radius: .48rem;
    cursor: pointer;
  }
  .site-menu-toggle[aria-expanded="true"] .site-menu-bars { display: none; }
  .site-menu-toggle[aria-expanded="true"] .site-menu-cross { display: inline; }
  .site-menu-group > summary { justify-content: space-between; min-height: 2.7rem; padding: .5rem .7rem; }
  .site-menu-panel { position: static; transform: none; width: auto; border: 0; box-shadow: none; background: transparent; padding: .15rem 0 .35rem .35rem; }
  .site-menu-panel a { padding: .5rem .65rem; }
}

@media (max-width: 780px) {
  .site-header .site-doc-jump { display: block; padding: .65rem .7rem; color: #e3c9fd; }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-group > summary svg { transition: none; }
}

/* protocol-disclosure.css */
.protocol-hero-notice { margin:1.15rem 0; padding:.9rem 1rem; border:1px solid var(--theme-line,#483950); border-radius:.65rem; background:color-mix(in srgb,var(--theme-panel,#1d1727) 80%,transparent); max-width:55ch; }
.protocol-hero-notice strong { color:var(--theme-text,#f8f4ff); font-size:.95rem; }
.protocol-hero-notice p { margin:.4rem 0 .55rem; color:var(--theme-muted,#c7bbd4); font-size:.9rem; line-height:1.6; }
.protocol-hero-notice a { color:var(--theme-accent,#d7b7fb); font-size:.9rem; font-weight:600; text-decoration:underline; text-underline-offset:.2em; }
.protocol-technology-note { margin:.65rem 0 1.3rem; color:var(--theme-muted,#c7bbd4); font-size:.86rem; line-height:1.6; max-width:80ch; }
.protocol-footer-links { display:flex; flex-direction:column; gap:.55rem; font-size:.9rem; }
.protocol-footer-links a { text-decoration:underline; text-underline-offset:.2em; }
.protocol-notice { padding:1.2rem; margin:1rem 0 1.6rem; border:1px solid var(--theme-line,#483950); border-radius:.7rem; background:var(--theme-panel,#1d1727); color:var(--theme-text,#f8f4ff); }
.protocol-notice p { margin:.5rem 0 .8rem; line-height:1.65; color:var(--theme-muted,#c7bbd4); }
.protocol-notice nav { display:flex; flex-wrap:wrap; gap:.7rem 1.5rem; }
.protocol-notice a { color:var(--theme-accent,#d7b7fb); text-decoration:underline; text-underline-offset:.2em; }
.protocol-page { padding-block:clamp(2rem,6vw,5rem); color:var(--theme-text); }
.protocol-heading { max-width:57rem; padding-bottom:2rem; }
.protocol-heading h1 { max-width:none; overflow-wrap:normal; word-break:normal; margin:.6rem 0 1.4rem; font-size:clamp(1.95rem,5vw,4.2rem); line-height:1.08; letter-spacing:-.045em; text-wrap:balance; }
.protocol-manifest { padding:1.2rem 1.4rem; border-inline-start:3px solid var(--theme-accent); border-radius:0 .65rem .65rem 0; background:var(--theme-panel); font-size:clamp(1rem,2vw,1.22rem); line-height:1.7; margin:0 0 1.2rem; }
.protocol-shortcuts { display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; margin-top:1rem; }
.protocol-shortcuts a { color:var(--theme-accent); text-decoration:underline; text-underline-offset:.2em; line-height:1.6; }
.protocol-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; }
.protocol-grid article { padding:clamp(1.2rem,3vw,2rem); border:1px solid var(--theme-line); border-radius:.75rem; background:var(--theme-panel); }
.protocol-caption { display:block; color:var(--theme-accent); font:550 .8rem/1.5 var(--mono,monospace); margin:0 0 .75rem; }
.protocol-page h2 { font-size:clamp(1.4rem,3vw,2rem); line-height:1.25; margin:.3rem 0 1rem; letter-spacing:-.025em; }
.protocol-page h3 { font-size:1.1rem; line-height:1.4; margin:0 0 .5rem; }
.protocol-page p { line-height:1.7; }
.protocol-grid p,.protocol-section>p,.protocol-section header>p:not(.protocol-caption),.protocol-exit-list p { color:var(--theme-muted); margin:0; }
.protocol-section { margin-top:clamp(2rem,5vw,4rem); padding-top:clamp(1.5rem,3vw,2.5rem); border-top:1px solid var(--theme-line); scroll-margin-top:6rem; }
.protocol-identity { display:flex; gap:1rem; padding:1.3rem; border:1px solid var(--theme-line); border-radius:.75rem; background:var(--theme-panel); }
.protocol-identity p { color:var(--theme-muted); margin:0; }
.protocol-identity a { color:var(--theme-accent); }
.protocol-account-mark { flex:0 0 3rem; height:3rem; display:grid; place-items:center; background:var(--theme-raised); border:1px solid var(--theme-line); border-radius:.65rem; color:var(--theme-accent); font:600 1.6rem var(--mono,monospace); }
.protocol-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin:1rem 0; }
.protocol-link-grid a { display:grid; gap:.45rem; padding:1.1rem; border:1px solid var(--theme-line); border-radius:.65rem; background:var(--theme-panel); }
.protocol-link-grid strong { color:var(--theme-accent); }
.protocol-link-grid span { font-size:.9rem; color:var(--theme-muted); line-height:1.6; }
.protocol-limit { padding:1.1rem; border-inline-start:2px solid var(--theme-line); font-size:.95rem; }
.protocol-section>p+p { margin-top:1rem; }
.protocol-exit-list { display:grid; gap:.9rem; margin-top:1.3rem; }
.protocol-exit-list article { display:grid; grid-template-columns:minmax(12rem,.8fr) minmax(0,2fr); gap:1.3rem; padding:1.3rem; border:1px solid var(--theme-line); border-radius:.65rem; background:var(--theme-panel); }
@media(max-width:760px) { .protocol-grid,.protocol-link-grid { grid-template-columns:minmax(0,1fr); } .protocol-exit-list article { grid-template-columns:minmax(0,1fr); gap:.3rem; } .protocol-identity { align-items:start; } }

@media (max-width: 760px) { .directory-grid .directory-group:last-child { grid-column:1/-1; } .directory-grid .directory-group:last-child ul { display:flex; flex-wrap:wrap; gap:.4rem 1.35rem; } }

/* company-identity.css */
.company-founders,.company-registration { color:var(--theme-text); }
.identity-eyebrow { color:var(--theme-accent); font:550 .75rem/1.6 var(--mono,monospace); letter-spacing:.08em; text-transform:uppercase; margin:0 0 .8rem; }
.company-founders { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.7fr); gap:2rem; padding-block:clamp(2rem,5vw,4rem); scroll-margin-top:6rem; }
.company-founders-intro h2 { font-size:clamp(1.9rem,3.1vw,3rem); line-height:1.12; letter-spacing:-.04em; margin:0 0 1.1rem; }
.company-founders-intro>p:not(.identity-eyebrow) { color:var(--theme-muted); line-height:1.75; font-size:.98rem; margin:0 0 1.15rem; }
.company-founders-story,.company-founders-company a,.company-registration-source a { color:var(--theme-accent); font-weight:600; font-size:.9rem; text-decoration:underline; text-underline-offset:.24em; }
.company-founders-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; min-width:0; }
.founder-card { min-width:0; overflow:hidden; border:1px solid var(--theme-line); background:var(--theme-panel); border-radius:1rem; }
.founder-portrait { aspect-ratio:1/1.12; overflow:hidden; background:var(--theme-raised); }
.founder-portrait img { width:100%; height:100%; display:block; object-fit:cover; object-position:center 35%; transition:transform .45s ease; }
@media(hover:hover) { .founder-card:hover .founder-portrait img { transform:scale(1.025); } }
.founder-details { padding:1.25rem; }
.founder-role { color:var(--theme-muted); font-size:.75rem; line-height:1.55; margin:0 0 .55rem; }
.founder-details h3 { color:var(--theme-text); font-size:clamp(1.1rem,1.5vw,1.4rem); line-height:1.25; letter-spacing:-.025em; margin:0 0 .7rem; }
.founder-experience { color:var(--theme-accent); font-size:.82rem; line-height:1.6; margin:0 0 .5rem; font-weight:600; }
.founder-summary,.founder-detail { color:var(--theme-muted); font-size:.88rem; line-height:1.75; margin:0; }
.founder-detail { margin-top:.85rem; }
.founder-skills { display:flex; flex-wrap:wrap; gap:.45rem; list-style:none; padding:0; margin:1rem 0 0; }
.founder-skills li { color:var(--theme-accent); background:var(--theme-raised); border:1px solid var(--theme-line); border-radius:.4rem; font-size:.7rem; line-height:1.5; padding:.3rem .5rem; }
.company-founders-company { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.5rem; color:var(--theme-muted); font-size:.8rem; padding-top:1.1rem; border-top:1px solid var(--theme-line); }
.company-founders-company a { margin-left:auto; font-size:.8rem; }
.company-founders-detailed { grid-template-columns:minmax(0,1fr); }
.company-founders-detailed .company-founders-intro { max-width:48rem; }
.company-founders-detailed .founder-portrait { aspect-ratio:1.35/1; }
.company-founders-detailed .founder-details { padding:clamp(1.2rem,3vw,1.8rem); }
.company-founders-detailed .founder-details h3 { font-size:1.6rem; }
.company-registration { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:1.5rem 2rem; padding:clamp(1.2rem,3vw,2.25rem); margin:2rem 0; border:1px solid var(--theme-line); border-radius:1rem; background:var(--theme-panel); scroll-margin-top:6rem; }
.company-registration-heading h2 { font-size:clamp(1.5rem,3vw,2.2rem); line-height:1.2; letter-spacing:-.03em; margin:0 0 1rem; }
.company-registration-heading>p:not(.identity-eyebrow) { color:var(--theme-muted); line-height:1.75; font-size:.95rem; }
.company-registration-facts { display:grid; gap:.85rem; margin:0; }
.company-registration-facts>div { border-bottom:1px solid var(--theme-line); padding-bottom:.85rem; min-width:0; }
.company-registration-facts dt { color:var(--theme-muted); font-size:.75rem; margin-bottom:.35rem; }
.company-registration-facts dd { margin:0; color:var(--theme-text); font-size:.92rem; line-height:1.6; overflow-wrap:anywhere; }
.company-registration-source { grid-column:1/-1; padding-top:1rem; border-top:1px solid var(--theme-line); }
.company-registration-source p { color:var(--theme-muted); font-size:.78rem; line-height:1.6; margin:.55rem 0 0; }
.directory-legal .company-footer-address { display:block; color:var(--theme-muted); font-size:.77rem; line-height:1.6; margin-top:.55rem; }
.company-inline-registration { color:var(--theme-muted); line-height:1.7; font-size:.9rem; margin-top:1rem; }
.company-inline-registration a { color:var(--theme-accent); text-decoration:underline; text-underline-offset:.2em; }
@media(max-width:1000px) { .company-founders { grid-template-columns:minmax(0,1fr); } .company-founders-intro { max-width:45rem; } }
@media(max-width:640px) { .company-founders-grid,.company-registration { grid-template-columns:minmax(0,1fr); } .company-founders { gap:1.35rem; } .company-founders-company { gap:.5rem 1rem; } .company-founders-company a { margin-left:0; width:100%; } .founder-portrait,.company-founders-detailed .founder-portrait { aspect-ratio:1.2/1; } .founder-details h3 { font-size:1.45rem; } .company-registration { gap:1.35rem; } }
@media(prefers-reduced-motion:reduce) { .founder-portrait img { transition:none; } .founder-card:hover .founder-portrait img { transform:none; } }
.company-story-page { padding-bottom:2rem; }
.company-story-page>.company-heading { max-width:58rem; }
.company-story-chapters { margin-top:2rem; }
.company-story-chapter { display:grid; grid-template-columns:minmax(8rem,.45fr) minmax(0,2fr); gap:1.25rem 3rem; padding:2rem 0; border-top:1px solid var(--theme-line); }
.company-story-chapter h2 { font-size:clamp(1.45rem,2.8vw,2.2rem); line-height:1.25; letter-spacing:-.025em; margin:0 0 1.1rem; }
.company-story-chapter p { color:var(--theme-muted); max-width:76ch; line-height:1.8; margin:0 0 .9rem; }
.company-story-chapter p:last-child { margin-bottom:0; }
.company-published-record { padding:clamp(1.2rem,3vw,2rem); border:1px solid var(--theme-line); background:var(--theme-panel); border-radius:1rem; margin:1.5rem 0; scroll-margin-top:6rem; }
.company-published-record h2 { font-size:clamp(1.35rem,2.8vw,1.9rem); line-height:1.3; margin-bottom:1.5rem; }
.company-published-record dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0 0 1.25rem; }
.company-published-record dt { color:var(--theme-muted); font-size:.8rem; line-height:1.5; margin-bottom:.5rem; }
.company-published-record dd { margin:0; font:650 clamp(1.8rem,4vw,2.6rem)/1.2 var(--mono,monospace); color:var(--theme-accent); }
.company-published-record>p { font-size:.88rem; line-height:1.75; color:var(--theme-muted); }
.company-roadmap { padding-block:clamp(2rem,5vw,4rem); scroll-margin-top:6rem; }
.company-roadmap header { max-width:53rem; margin-bottom:1.5rem; }
.company-roadmap h2 { font-size:clamp(1.65rem,3vw,2.5rem); line-height:1.2; margin:0 0 1rem; letter-spacing:-.03em; }
.company-roadmap header>p:not(.identity-eyebrow) { color:var(--theme-muted); font-size:.95rem; line-height:1.75; }
.company-roadmap ol { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.company-roadmap li { padding:1.25rem; border:1px solid var(--theme-line); background:var(--theme-panel); border-radius:.85rem; }
.roadmap-status { display:inline-block; color:var(--theme-accent); font:500 .7rem/1.6 var(--mono,monospace); margin-bottom:1.1rem; }
.roadmap-status.is-live { color:var(--theme-success); }
.company-roadmap h3 { font-size:1.08rem; line-height:1.4; margin:0 0 .8rem; letter-spacing:-.02em; }
.company-roadmap li>p { font-size:.85rem; line-height:1.75; color:var(--theme-muted); margin:0; }
@media(max-width:1000px) { .company-roadmap ol { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .company-story-chapter,.company-roadmap ol { grid-template-columns:minmax(0,1fr); } .company-story-chapter { gap:.4rem; padding:1.5rem 0; } .company-published-record dl { grid-template-columns:minmax(0,1fr); } .company-published-record dl>div { padding-bottom:.8rem; border-bottom:1px solid var(--theme-line); } }

/* company-directory.css */
.directory-footer{background:#17131d;color:#f3edf9;padding:clamp(2rem,5vw,4rem) 0 1.3rem;border-top:1px solid #433949;font:400 .9rem/1.55 Inter,Arial,sans-serif}
.directory-inner{width:min(1180px,calc(100% - 2.5rem));margin:auto}
.directory-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.8rem}
.directory-group h2{font:650 .96rem/1.25 Inter,Arial,sans-serif;margin:0 0 .8rem;color:#f7f2fa}
.directory-group ul{list-style:none;margin:0;padding:0}
.directory-group li{margin:0 0 .32rem}
.directory-footer a{color:#cfc5d7;text-decoration:none;overflow-wrap:anywhere}
.directory-group a{display:inline-block;padding:.13rem 0}
.directory-group a:hover,.directory-floor a:hover{text-decoration:underline;text-underline-offset:.22em;color:white}
.directory-group small{display:block;font-size:.7rem;color:#bda8d6}
.directory-floor{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;border-top:1px solid #433949;margin-top:2rem;padding-top:1rem}
.directory-floor p{margin:0;font-size:.82rem}
.directory-floor>a:last-child{margin-left:auto}
.directory-brand{font-weight:680;display:inline-flex;align-items:center;gap:.45rem}
.company-overview .editorial-hero{max-width:56rem;border-left:3px solid #b79be5;padding:1rem 0 1.4rem clamp(1.15rem,3vw,2.5rem)}
.company-overview .editorial-body{max-width:none;margin-top:2.2rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;border:0}
.company-overview .editorial-section{padding:clamp(1.2rem,3vw,2.1rem);background:#1b1723;border:1px solid #443a4e;border-radius:.65rem}
.company-overview .editorial-section p{line-height:1.65;margin-top:.65rem}
.company-intake{background:#f7f6f9;color:#221e2c;min-height:100vh}
.company-intake .auth-top{border-color:#d5cedb}
.company-intake .brand,.company-intake h1,.company-intake h2{color:#251e30}
.company-intake .language-switch,.company-intake .company-back,.company-intake small a{color:#584071}
.company-intake .auth-layout{align-items:start;padding-block:clamp(2.2rem,6vw,5rem)}
.company-intake .auth-intro h1{margin-top:1.1rem;font-size:clamp(2.35rem,5vw,4rem);letter-spacing:-.055em;line-height:1.06}
.company-intake .auth-intro>p,.company-intake .auth-card p{color:#534c5b;line-height:1.6}
.company-intake .auth-card{background:#fff;color:#251e30;border:1px solid #d7cfde;border-top:3px solid #77608d;box-shadow:0 14px 40px #35283f0a;padding:clamp(1.25rem,3vw,2.2rem);border-radius:.55rem;min-width:0}
.company-intake .auth-card h2{font-size:1.5rem;letter-spacing:-.03em}
.company-intake .auth-form :is(input,select,textarea){color:#251e30;background:#fcfbfd;border-color:#bdb2c7}
.company-intake .auth-form :focus-visible,.company-back:focus-visible{outline:2px solid #74539b;outline-offset:2px}
.company-intake .auth-form small{color:#655c6c}
.company-intake .auth-form button{background:#34283f;color:white;min-height:3rem;border:0;margin-top:.65rem}
.company-process{margin-top:1.7rem;border-top:1px solid #cdc5d4;padding-top:1.2rem}
.company-process h2{font-size:1.1rem}
.company-process ol{padding-left:1.2rem;color:#534c5b;max-width:45ch}
.company-process li{margin:.5rem 0}
.company-intake .auth-form .error{color:#732137;background:#fff5f5;border-color:#bd8692}
@media(max-width:800px){.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-floor>a:last-child{margin-left:0}.directory-group a{padding:.3rem 0}.company-overview .editorial-body{grid-template-columns:1fr}.company-intake .auth-layout{display:flex;flex-direction:column;gap:1.5rem}.company-intake .auth-card{width:100%}.company-process{margin-top:1rem}}

.directory-legal {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: .65rem 1.4rem;
  margin-top: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(.85rem, 2vw, 1.25rem);
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: .7rem;
  background: color-mix(in srgb, currentColor 4%, transparent);
  scroll-margin-top: 4.5rem;
}
.directory-legal h2 {
  margin: 0 0 .3rem;
  font: 680 .93rem/1.3 Inter, Arial, sans-serif;
}
.directory-legal p {
  margin: 0;
  max-width: 72ch;
  font-size: .85rem;
  line-height: 1.5;
}
.directory-legal > a {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  width: fit-content;
  min-height: 2.5rem;
  font-size: .84rem;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.directory-legal > a span { flex: none; }
@media (max-width: 760px) {
  .directory-legal { grid-template-columns: minmax(0,1fr); gap: .35rem; }
}

/* site-theme.css */
/* Shared palette for public pages, documentation and the integration form. */
:root {
  color-scheme: dark;
  --theme-canvas: #111017;
  --theme-header: #15121c;
  --theme-panel: #1d1727;
  --theme-raised: #291f36;
  --theme-text: #f8f4ff;
  --theme-muted: #c7bbd4;
  --theme-line: #483950;
  --theme-accent: #d7b7fb;
  --theme-hover: #352745;
  --theme-success: #abdfc3;
  --theme-danger: #ffb5c7;
  --theme-warning: #f6cb97;
  --theme-focus: #d1adff;
}

html[data-theme="light"] {
  color-scheme: light;
  --theme-canvas: #f6f5fa;
  --theme-header: #fff;
  --theme-panel: #fff;
  --theme-raised: #f3edf9;
  --theme-text: #272034;
  --theme-muted: #574b65;
  --theme-line: #dcd3e6;
  --theme-accent: #613b8d;
  --theme-hover: #ede3f6;
  --theme-success: #236047;
  --theme-danger: #922d51;
  --theme-warning: #784a1b;
  --theme-focus: #7751ad;
  --background: var(--theme-canvas);
  --surface: var(--theme-panel);
  --surface-high: var(--theme-raised);
  --text: var(--theme-text);
  --muted: var(--theme-muted);
  --accent: var(--theme-accent);
  --line: var(--theme-line);
  --border: var(--theme-line);
}

.site-header { color: var(--theme-text); background: var(--theme-header); border-color: var(--theme-line); }
.site-header .language-switch { color: var(--theme-text); --language-line: var(--theme-line); }
.site-header :focus-visible, html[data-theme="light"] :focus-visible { outline-color: var(--theme-focus); }
.site-menu-group > summary, .site-menu-panel small { color: var(--theme-muted); }
.site-menu-group.is-current > summary, .site-menu-group > summary svg, .site-header .site-doc-jump { color: var(--theme-accent); }
.site-menu-group[open] > summary, .site-menu-group > summary:hover,
.site-menu-panel a:hover, .site-menu-panel a[aria-current="page"] { background: var(--theme-hover); color: var(--theme-text); }
.site-header .site-menu-panel {
  color: var(--theme-text);
  border-color: var(--theme-line);
  background: var(--theme-panel);
  box-shadow: 0 15px 28px #1e10252e;
}

.site-header[data-menu-ready] .site-menu-toggle, .site-header .site-theme-toggle {
  color: var(--theme-text);
  background: var(--theme-raised);
  border: 1px solid var(--theme-line);
}
.site-theme-toggle:not([hidden]) { display: grid; place-items: center; }
.site-theme-toggle {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border-radius: .48rem;
  cursor: pointer;
}
.site-header .site-theme-toggle:hover, .site-header .site-menu-toggle:hover { background: var(--theme-hover); }
.site-theme-toggle .site-theme-moon, .site-theme-toggle[aria-checked="true"] .site-theme-sun { display: none; }
.site-theme-toggle[aria-checked="true"] .site-theme-moon { display: block; }
html[data-theme="light"] .site-header .site-workspace {
  color: #fff;
  background: #603b90;
}
html[data-theme="light"] .site-header .site-workspace:hover { background: #7047a2; }

@media (max-width: 960px) {
  .site-theme-toggle { width: 2.3rem; height: 2.3rem; }
  .site-header[data-menu-ready] .site-menu { background: var(--theme-panel); border-color: var(--theme-line); }
  .site-header .site-menu-panel { background: transparent; box-shadow: none; }
}
@media (max-width: 390px) {
  .site-header-inner { width: calc(100% - 1.5rem); gap: .4rem; }
  .site-header .site-brand { font-size: 1.06rem; }
  .site-header .site-brand img { width: 1.4rem; }
  .site-header-actions { gap: .28rem; }
  .site-header-actions .language-switch, .site-header[data-menu-ready] .site-menu-toggle, .site-header .site-theme-toggle {
    width: 2rem;
    min-width: 2rem;
    height: 2.15rem;
    min-height: 2.15rem;
    padding: 0;
  }
  .site-header .site-workspace { min-height: 2.15rem; padding-inline: .5rem; font-size: .75rem; }
}

:root .directory-footer {
  background: var(--theme-header);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
:root .directory-footer h2 { color: var(--theme-text); }
:root .directory-footer a, :root .directory-footer small { color: var(--theme-muted); }
:root .directory-footer a:hover { color: var(--theme-accent); }
:root .directory-floor { border-color: var(--theme-line); }

/* Product pages share the same surfaces as the rest of the site. */
.public-platform {
  color-scheme: inherit;
  --public-bg: var(--theme-canvas);
  --public-panel: var(--theme-panel);
  --public-raised: var(--theme-raised);
  --public-line: var(--theme-line);
  --public-text: var(--theme-text);
  --public-muted: var(--theme-muted);
  --public-accent: var(--theme-accent);
}
.product-platform { color-scheme: inherit; }
.product-platform :is(.product-sidebar,.product-intro,.product-cards article,.product-steps,.product-table,.product-ledger,.pool-model-card,.pool-sim) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
.product-platform :is(.product-sidebar-label,#calculator-scenarios) { color: var(--theme-muted); }
.product-sidebar a:hover, .product-platform .public-button.secondary:hover { background: var(--theme-hover); }
.product-sidebar a[aria-current="page"], .product-platform :is(.product-steps li > span,.product-table thead th,.product-ledger dl > .product-ledger-total,.pool-sim-results > div:last-child) {
  background: var(--theme-raised);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
.product-platform .public-button.secondary, html[data-theme="light"] .public-button.secondary {
  background: var(--theme-panel);
  color: var(--theme-accent);
}
.product-platform .public-button.primary, html[data-theme="light"] .public-button.primary {
  background: #603b90;
  border-color: #603b90;
  color: #fff;
}
.product-platform .public-button.primary:hover, html[data-theme="light"] .public-button.primary:hover {
  background: #7047a2;
  border-color: #7047a2;
}
.product-platform :is(.pool-sim-fields input,.pool-sim-fields select,.calculation-input input,#calculator-example) {
  color: var(--theme-text);
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
.product-platform .product-report-status { background: var(--theme-raised); border-color: var(--theme-line); }
.product-platform :is(.pool-sim-error,#pool-calendar-error,#calculator-error) { color: var(--theme-danger); }
html[data-theme="light"] .product-platform .calculation-output {
  background: var(--theme-raised);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html[data-theme="light"] .product-platform .calculation-output p { color: var(--theme-muted); }
html[data-theme="light"] .product-platform .calculation-output dl > div { border-color: var(--theme-line); }
html[data-theme="light"] .product-platform #margin-result { color: var(--theme-success); }
html[data-theme="light"] .product-platform #margin-result.is-loss { color: var(--theme-danger); }

/* Keep the reference text and controls legible in either palette. */
.documentation-page {
  --doc-bg: var(--theme-canvas);
  --doc-paper: var(--theme-panel);
  --doc-ink: var(--theme-text);
  --doc-text: var(--theme-muted);
  --doc-muted: var(--theme-muted);
  --doc-line: var(--theme-line);
  --doc-link: var(--theme-accent);
  --doc-soft: var(--theme-hover);
}
.documentation-page a:hover { color: var(--theme-accent); }
.documentation-page :focus-visible { outline-color: var(--theme-focus); }
.documentation-page .site-header a:hover { color: var(--theme-text); }
.documentation-page .site-header .site-workspace:hover { color: #1a1126; }
html[data-theme="light"] .documentation-page .site-header .site-workspace:hover { color: #fff; }
.documentation-page .doc-hero {
  background: linear-gradient(125deg, var(--theme-raised), var(--theme-panel) 80%);
}
.documentation-page :is(.doc-skip,.doc-search-field,.doc-search-panel,.doc-hero-links a,.doc-code-heading button) {
  background: var(--theme-panel);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
.documentation-page :is(.doc-sidebar,.doc-right) a:hover, .documentation-page .doc-downloads a:hover {
  background: var(--theme-hover);
}
.documentation-page .doc-hero-links a:first-child { background: #603b90; border-color: #603b90; color: #fff; }
.documentation-page :is(.doc-search kbd,.doc-table thead th,.doc-section code,.doc-section pre,.doc-code,.doc-note) {
  background: var(--theme-raised);
  border-color: var(--theme-line);
}
.documentation-page .doc-note { border-left-color: var(--theme-accent); }
.documentation-page .doc-section code { color: var(--theme-accent); }
.documentation-page .doc-section pre code { background: transparent; color: var(--theme-text); }

/* Landing and company pages use the light palette across reading and form surfaces. */
html[data-theme="light"] .infrastructure-page {
  color: var(--theme-text);
  background: radial-gradient(ellipse at 74% 0, #fcfaff, transparent 42rem), var(--theme-canvas);
  --landing-border: var(--theme-line);
  --landing-soft: var(--theme-muted);
}
html[data-theme="light"] .infrastructure-page #headline span { color: var(--theme-accent); }
html[data-theme="light"] .infrastructure-page #headline .hero-title-main { color: var(--theme-text); }
html[data-theme="light"] :is(.hero-secondary,.hero-settlement-flow) { color: var(--theme-muted); }
html[data-theme="light"] .hero-halo { background: radial-gradient(ellipse at 68% 30%, #ede4f666, transparent 70%); }
html[data-theme="light"] .infrastructure-page .hero-grid { opacity: .2; }
html[data-theme="light"] .ecosystem-references .technology-brand { color: var(--theme-text); }
html[data-theme="light"] .ecosystem-references .technology-brand img[src$=".svg"] { filter: brightness(0) saturate(100%) opacity(.8); }
html[data-theme="light"] :is(.process-grid li,.capacity-card,.stage,.task-card,.control-card,.resource-card,.exception-table,.faq details,.pool-terms) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
html[data-theme="light"] :is(.pool-terms,.resource-card,.task-card,.exception-table,.faq details) { color: var(--theme-text); }
html[data-theme="light"] :is(.task-icon,.process-icon,.currency-input,.allowlist summary,.allowlist-options) {
  background: var(--theme-raised);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
html[data-theme="light"] .allowlist-options label:hover, html[data-theme="light"] .resource-card:hover { background: var(--theme-hover); }
html[data-theme="light"] :is(.expense-table thead th,.expense-table tbody td) { color: var(--theme-muted); border-color: var(--theme-line); }
html[data-theme="light"] .expense-table tfoot :is(th, td) { background: var(--theme-raised); border-color: var(--theme-line); }
html[data-theme="light"] :is(.task-message,.task-message[data-tone="hold"]) { color: var(--theme-accent); }
html[data-theme="light"] :is(.product-gateway,.architecture-notes article,.docs-links a,.team-grid article) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
}
html[data-theme="light"] .docs-links a:hover { background: var(--theme-hover); }

html[data-theme="light"] .operations-strip { background: var(--theme-raised); border-color: var(--theme-line); }
html[data-theme="light"] :is(.operations-metric,.operations-status) {
  background: var(--theme-panel);
  border-color: var(--theme-line);
  color: var(--theme-text);
}
html[data-theme="light"] .operations-payout[data-metric-state="reported"] { background: #f0e7fa; border-color: #c8b4e0; }
html[data-theme="light"] :is(.operations-heading-mark,.operations-metric[data-metric-state="empty"] .operations-reading strong) {
  background: var(--theme-raised);
  border-color: var(--theme-line);
  color: var(--theme-accent);
}
html[data-theme="light"] :is(.operations-metric dt,.operations-reading) { color: var(--theme-text); }
html[data-theme="light"] :is(.operations-unit,.operations-metric small,.operations-rework) {
  color: var(--theme-muted);
  border-color: var(--theme-line);
}
html[data-theme="light"] :is(.operations-metric dt .icon,.operations-rework .icon) { color: var(--theme-accent); }

/* Code windows retain a dark editor palette inside the light site. */
html[data-theme="light"] :is(.architecture-window,.quickstart-window,.technical-lab .workbench,.company-window) {
  color: #f3e9ff;
  --landing-soft: #d1c1df;
  --accent: #dab9f9;
  --muted: #d1c1df;
}
html[data-theme="light"] .infrastructure-page .settlement-console {
  box-shadow: 0 1.5rem 3.25rem #311d4526;
}
html[data-theme="light"] .company-platform {
  --company-panel: var(--theme-panel);
  --company-icon-bg: var(--theme-raised);
  --company-icon-line: #d8c8e7;
}
html[data-theme="light"] .company-platform #main { background: radial-gradient(ellipse at 75% 0, #eee6f7, transparent 43rem); }
html[data-theme="light"] .company-window { box-shadow: 0 1.2rem 2.8rem #311d4526; }
html[data-theme="light"] .infrastructure-page .button { background: #603b90; border-color: #603b90; color: #fff; }
html[data-theme="light"] .infrastructure-page .button:hover { background: #7047a2; }
html[data-theme="light"] .company-nav-bar { background: var(--theme-panel); }
html[data-theme="light"] .company-nav a.is-active { background: var(--theme-hover); border-color: var(--theme-line); }
html[data-theme="light"] :is(.company-story,.company-next) {
  background: var(--theme-raised);
  border-color: var(--theme-line);
}
html[data-theme="light"] .company-window .support-map {
  --public-accent: #dfc4ff;
  --company-icon-line: #624d79;
}
html:not([data-theme="light"]) .company-doc-body {
  --public-line: var(--theme-line);
  --public-muted: var(--theme-muted);
  --public-accent: var(--theme-accent);
  background: var(--theme-panel);
  color: var(--theme-text);
}

html[data-theme="light"] .package-board {
  background: var(--theme-panel);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html[data-theme="light"] :is(.package-titlebar,.package-icon) {
  background: var(--theme-raised);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}
html[data-theme="light"] .package-grid { background: var(--theme-line); }
html[data-theme="light"] .package-card { background: var(--theme-panel); }
html[data-theme="light"] .package-board :is(h2,h3,.package-metrics dd) { color: var(--theme-text); }
html[data-theme="light"] .package-board :is(code,.package-volume,.package-acceptance strong) { color: var(--theme-accent); }
html[data-theme="light"] .package-board :is(.package-metrics dt,.package-status,.package-entry-period,.package-acceptance label) { color: var(--theme-muted); }
html[data-theme="light"] .package-board [data-state="active"] .package-status { color: var(--theme-success); }
html[data-theme="light"] .package-board [data-state="dispute"] .package-status { color: var(--theme-warning); }
html[data-theme="light"] :is(.package-metrics,.package-entry + .package-entry) { border-color: var(--theme-line); }
html[data-theme="light"] :is(.package-entry summary:hover,.package-entry[open] summary) { background: var(--theme-hover); }
html[data-theme="light"] .package-entry summary::after { color: var(--theme-accent); }
html[data-theme="light"] .package-acceptance meter::-webkit-meter-bar { background: var(--theme-hover); }

html:not([data-theme="light"]) .company-intake { background: var(--theme-canvas); color: var(--theme-text); }
html:not([data-theme="light"]) .company-intake :is(.auth-top,.auth-card,.company-process) { border-color: var(--theme-line); }
html:not([data-theme="light"]) .company-intake :is(.brand,h1,h2,.auth-card) { color: var(--theme-text); }
html:not([data-theme="light"]) .company-intake :is(.language-switch,.company-back,small a) { color: var(--theme-accent); }
html:not([data-theme="light"]) .company-intake :is(.auth-intro > p,.auth-card p,.company-process ol,.auth-form small) { color: var(--theme-muted); }
html:not([data-theme="light"]) .company-intake .auth-card { background: var(--theme-panel); }
html:not([data-theme="light"]) .company-intake .auth-form :is(input,select,textarea) {
  background: var(--theme-raised);
  color: var(--theme-text);
  border-color: var(--theme-line);
}
html:not([data-theme="light"]) .company-intake .auth-form .error {
  background: var(--theme-raised);
  color: var(--theme-danger);
  border-color: var(--theme-line);
}
html[data-theme="light"] .company-intake .theme-toggle {
  background: var(--theme-panel);
  color: var(--theme-accent);
  border-color: var(--theme-line);
}

@media (max-width: 530px) {
  .company-nav:has(> a[href$="/help"]) { display: flex; }
  .company-nav:has(> a[href$="/help"]) a {
    flex: 1 0 auto;
    justify-content: center;
    font-size: .73rem;
    white-space: nowrap;
  }
}

/* language.css */
.language-switch {
  --language-line: #8c78aa;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  min-width: 2.45rem;
  min-height: 2.35rem;
  padding: .25rem .48rem;
  border: 1px solid var(--language-line);
  border-radius: .45rem;
  color: inherit;
  font: 720 .72rem/1.15 Inter, system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
}
.language-switch:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.language-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.home-header-actions { display:flex; align-items:center; justify-self:end; gap:.65rem; }
.home-header-actions .button-top { white-space:nowrap; }
.doc-header .language-switch { --language-line:#c2c8db; }
html[lang=ru] :is(.doc-hero h1,.infrastructure-page .hero h1) { letter-spacing:-.045em; }
html[lang=ru] .infrastructure-page .hero h1 { max-width:16ch; font-size:clamp(2.5rem,4.45vw,4.25rem); }
html[lang=ru] .main-nav { gap:clamp(.68rem,2.5vw,2.3rem); }
html[lang=ru] .doc-hero h1 { font-size:clamp(2rem,5.1vw,4.1rem); overflow-wrap:anywhere; }
html[lang=ru] .doc-header-links { gap:clamp(.45rem,1.4vw,1.3rem); }
html[lang=ru] .code-lines { font-variant-ligatures:none; }
@media(max-width:900px) { .public-header .header-layout { gap:.6rem; } }
@media(max-width:780px) {
  .doc-header .doc-header-links > a.language-switch { display:inline-flex; }
  .doc-header .language-switch { min-width:2rem; min-height:2rem; }
  html[lang=ru] .doc-header .doc-label { display:none; }
}
@media(max-width:640px) {
  .home-header-actions { gap:.45rem; justify-self:end; grid-column:2 / -1; }
  html[lang=ru] .infrastructure-page .hero h1 { max-width:17ch; font-size:clamp(2.35rem,7.5vw,3.7rem); }
}
@media(max-width:380px) {
  .language-switch { min-width:2.1rem; min-height:2.1rem; }
  .doc-header-links .doc-workspace { padding-inline:.38rem; }
}

html[lang=ru] .workbench-nav { gap:.2rem; }
html[lang=ru] .workbench-nav a { padding-inline:.48rem; }
html[lang=ru] .auth-intro h1 { letter-spacing:-.035em; }
@media(max-width:1100px) { html[lang=ru] .workbench-profile .env-pill { display:none; } }
@media(max-width:420px) { .public-header .header-actions { gap:.4rem; } .public-header .header-actions .public-button { padding-inline:.46rem; } }
@media (641px <= width <= 840px) {
  .infrastructure-page .topbar { grid-template-columns:1fr auto; gap:.6rem; }
  .infrastructure-page .home-header-actions { grid-column:2; }
  .infrastructure-page .nav-toggle { display:grid; place-items:center; width:2.5rem; height:2.5rem; border:1px solid var(--border); border-radius:.45rem; color:var(--text); background:#201a2a; }
  .infrastructure-page .main-nav { display:none; position:absolute; inset:calc(100% + .4rem) 0 auto; padding:.35rem; background:#201a2b; border:1px solid #8e70b6; border-radius:.55rem; box-shadow:0 8px 24px #08051196; }
  .infrastructure-page .main-nav.is-open { display:grid; gap:0; }
  .infrastructure-page .main-nav a { padding:.62rem .75rem; border-radius:.25rem; }
  .infrastructure-page .main-nav a:hover { background:#37274b; }
}
html[lang=ru] .doc-footer nav { flex-wrap:wrap; gap:.5rem .85rem; }
html[lang=ru] .doc-table :is(td,th) { overflow-wrap:anywhere; }
html[lang=ru] .home-header-actions .button-top { min-width:0; }
html[lang=ru] .hero h1 { overflow-wrap:anywhere; }
@media(max-width:475px) {
  html[lang=ru] .expense-table { table-layout:fixed; }
  html[lang=ru] .expense-table :is(td,th) { white-space:normal; overflow-wrap:anywhere; }
  html[lang=ru] .expense-table :is(td,th):last-child { width:23%; }
  html[lang=ru] .expense-table tbody th span { display:block; }
  html[lang=ru] .expense-table tbody th .icon { margin-right:.24rem; vertical-align:-.12em; }
}
html[lang=ru] .infrastructure-page :is(.capacity-card,.settlement-card,.resource-card,.policy-summary,.receipt,.developer-heading) { overflow-wrap:anywhere; }
html[lang=ru] .infrastructure-page .expense-table :is(th,td) { overflow-wrap:anywhere; }
html[lang=ru] .infrastructure-page .receipt-state { white-space:normal; }
@media(min-width:641px) {
  html[lang=ru] .infrastructure-page .developer-heading { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:1.1rem; }
  html[lang=ru] .infrastructure-page .developer-heading p { padding-inline-start:1.1rem; }
}
@media (761px <= width <= 880px) {
  html[lang=ru] .workbench-top { gap:.55rem; }
  html[lang=ru] .workbench-brand { padding-inline-end:.55rem; }
  html[lang=ru] .workbench-nav a { padding-inline:.36rem; font-size:.8rem; }
}
@media(max-width:390px) {
  html[lang=ru] .paid-header { flex-wrap:wrap; }
  html[lang=ru] .paid-balance { text-align:start; }
}

/* support-chat.css */
.support-launcher {
  position: fixed;
  z-index: 20;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  padding: .68rem .94rem;
  min-height: 2.75rem;
  border: 1px solid #ad8bd5;
  border-radius: .8rem;
  background: #7049a3;
  box-shadow: 0 .6rem 1.75rem #100b214d;
  color: #fff;
  font-size: .87rem;
  font-weight: 690;
}
.support-launcher:hover, .support-button:not(.secondary):hover { background: #5e3a91; }
.support-launcher:focus-visible, .support-widget-dialog :focus-visible, .support-page :focus-visible {
  outline: 2px solid var(--theme-focus);
  outline-offset: 3px;
}
.support-widget-dialog {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(4.65rem, env(safe-area-inset-bottom)) auto;
  width: min(26.5rem, calc(100% - 2rem));
  height: min(34rem, calc(100dvh - 6rem));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: 1rem;
  background: var(--theme-canvas);
  color: var(--theme-text);
  box-shadow: 0 1.35rem 4rem #160f254d;
}
.support-widget-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.support-widget-dialog::backdrop { background: #100b2040; }
.support-widget-header, .support-page-header, .support-inbox-heading, .support-ticket-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.support-widget-header {
  padding: .7rem .85rem .7rem 1rem;
  background: var(--theme-panel);
  border-bottom: 1px solid var(--theme-line);
}
.support-widget-header h2 { font-size: 1rem; }
.support-widget-close, .support-header-actions .theme-toggle {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid var(--theme-line);
  border-radius: .5rem;
  color: var(--theme-text);
  background: var(--theme-raised);
  cursor: pointer;
}
.support-widget-close:hover, .support-header-actions .theme-toggle:hover { background: var(--theme-hover); }
.support-widget-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.support-page { color: var(--theme-text); background: var(--theme-canvas); }
.support-page-header {
  min-height: 4.2rem;
  padding: .65rem clamp(1rem, 3vw, 2.1rem);
  border-bottom: 1px solid var(--theme-line);
  background: var(--theme-header);
}
.support-brand, .support-header-actions { display: flex; gap: .6rem; align-items: center; }
.support-brand { min-width: 0; color: var(--theme-text); font-weight: 720; }
.support-brand img, .support-header-actions { flex: none; }
.support-brand span { font-size: .78rem; font-weight: 510; color: var(--theme-muted); }
.support-header-actions .icon { width: 1.05rem; height: 1.05rem; }
.support-page-main { width: min(100% - 2rem, 43rem); margin: 0 auto; padding: clamp(1.3rem, 5vw, 3.2rem) 0; }
.support-page-main > h1 { margin: 0 0 1rem; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.support-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: min(35rem, 74dvh);
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: .8rem;
  background: var(--theme-panel);
}
.support-embedded .support-page-main { width: 100%; padding: 0; }
.support-embedded .support-thread { height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
.support-thread-info { display: flex; justify-content: space-between; align-items: center; padding: .45rem .85rem; }
.support-thread-info, .support-ticket-reference { color: var(--theme-muted); font-size: .8rem; }
.support-state { padding: .2rem .5rem; border-radius: .4rem; background: var(--theme-raised); color: var(--theme-muted); font-size: .73rem; }
.support-state[data-state="open"] { color: var(--theme-warning); }
.support-state[data-state="answered"] { color: var(--theme-success); }
.support-transcript { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--theme-canvas); scrollbar-width: thin; }
.support-transcript:focus-visible { outline-offset: -2px; }
.support-welcome { padding: 1.55rem 1rem; text-align: center; }
.support-welcome-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin: 0 auto .7rem; border-radius: .8rem; color: var(--theme-accent); background: var(--theme-raised); }
.support-welcome h2 { font-size: 1.16rem; }
.support-welcome p { margin: .4rem auto 0; max-width: 28ch; font-size: .87rem; color: var(--theme-muted); }
.support-messages { display: grid; gap: .7rem; list-style: none; padding: .85rem; margin: 0; }
.support-messages:empty { display: none; }
.support-message { justify-self: start; max-width: min(100%, 32rem); padding: .55rem .7rem; border: 1px solid var(--theme-line); border-radius: .62rem; background: var(--theme-panel); }
.support-page:not(.support-admin) .support-message[data-sender="visitor"], .support-admin .support-message[data-sender="admin"] { justify-self: end; background: var(--theme-raised); }
.support-message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin-bottom: .25rem; }
.support-message-meta strong { font-size: .8rem; color: var(--theme-accent); }
.support-message-meta time { color: var(--theme-muted); font-size: .69rem; }
.support-message p { font-size: .9rem; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-composer { flex: none; padding: .65rem .85rem .75rem; border-top: 1px solid var(--theme-line); }
.support-input-label { display: block; margin: 0 0 .35rem; font-size: .78rem; color: var(--theme-muted); }
.support-input-row { display: flex; align-items: flex-end; gap: .55rem; }
.support-input-row textarea { min-width: 0; width: 100%; min-height: 2.65rem; max-height: 9rem; resize: vertical; border: 1px solid var(--theme-line); padding: .48rem .55rem; border-radius: .48rem; color: var(--theme-text); background: var(--theme-canvas); font: inherit; font-size: .88rem; }
.support-input-row textarea::placeholder { color: var(--theme-muted); opacity: 1; }
.support-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .48rem .7rem; border: 1px solid #7651a7; border-radius: .48rem; background: #7049a3; color: #fff; font: inherit; font-size: .83rem; font-weight: 670; cursor: pointer; }
.support-button.secondary { background: var(--theme-panel); color: var(--theme-accent); border-color: var(--theme-line); }
.support-button.secondary:hover { background: var(--theme-hover); }
.support-button:disabled { opacity: .65; cursor: wait; }
.support-composer-note, .support-error { margin-top: .38rem; color: var(--theme-muted); font-size: .75rem; }
.support-error { color: var(--theme-danger); margin: 0 0 .4rem; }

.support-inbox-filters a { display: block; color: var(--theme-muted); border-radius: .44rem; }
.support-inbox-filters a[aria-current], .support-inbox-list a[aria-current] { color: var(--theme-accent); background: var(--theme-raised); }
.support-inbox-filters a:hover, .support-inbox-list a:hover { color: var(--theme-text); background: var(--theme-hover); }
.support-inbox-heading { align-items: end; margin-bottom: 1rem; }
.support-inbox-heading h1 { font-size: clamp(1.55rem, 4vw, 2.5rem); }
.support-inbox-placeholder p { color: var(--theme-muted); font-size: .88rem; margin-top: .35rem; }
.support-inbox-columns { display: grid; grid-template-columns: minmax(14rem, .72fr) minmax(0,1.28fr); gap: .9rem; align-items: start; }
.support-inbox-queue, .support-inbox-placeholder { min-width: 0; border: 1px solid var(--theme-line); border-radius: .8rem; background: var(--theme-panel); }
.support-inbox-filters { display: flex; flex-wrap: wrap; gap: .2rem; padding: .5rem; border-bottom: 1px solid var(--theme-line); }
.support-inbox-filters a { font-size: .78rem; padding: .32rem .42rem; }
.support-inbox-list { list-style: none; margin: 0; padding: 0; max-height: 60dvh; overflow-y: auto; }
.support-inbox-list li + li { border-top: 1px solid var(--theme-line); }
.support-inbox-list a { display: grid; gap: .24rem; padding: .58rem .72rem; color: var(--theme-text); }
.support-inbox-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem .35rem; font-size: .77rem; }
.support-inbox-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.support-inbox-list small, .support-inbox-empty { color: var(--theme-muted); font-size: .8rem; }
.support-inbox-empty, .support-inbox-placeholder { padding: 1rem; }
.support-inbox-placeholder h2 { font-size: 1.2rem; }
.support-inbox-pagination { display: flex; gap: .8rem; padding: .65rem; }
.support-inbox-pagination a { color: var(--theme-accent); font-size: .83rem; }
.support-ticket-heading { align-items: flex-start; padding: .7rem .85rem; }
.support-ticket-heading h2 { font-size: 1rem; overflow-wrap: anywhere; }
.support-ticket-heading p { margin-top: .22rem; color: var(--theme-muted); font-size: .8rem; overflow-wrap: anywhere; }
.support-ticket-heading .support-state { flex-shrink: 0; }
.support-inbox-thread { height: min(47rem, 77dvh); min-height: 23rem; }
.support-ticket-actions { padding: 0 .85rem .7rem; }
.support-ticket-actions .support-button { min-height: 2rem; }

@media (max-width: 800px) {
  .support-inbox-columns { grid-template-columns: minmax(0,1fr); }
  .support-inbox-list { max-height: 16rem; }
}
@media (max-width: 530px) {
  .support-launcher span { display: none; }
  .support-launcher { justify-content: center; padding: 0; width: 2.95rem; height: 2.95rem; }
  .support-widget-dialog { inset: auto .6rem max(.6rem, env(safe-area-inset-bottom)) .6rem; width: calc(100% - 1.2rem); height: min(34rem, calc(100dvh - 1.2rem)); }
  .support-brand span { display: none; }
  .support-inbox-heading { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .support-ticket-heading { gap: .45rem; flex-wrap: wrap; }
  .support-input-row { gap: .4rem; }
  .support-input-row .support-button { max-width: 7rem; white-space: normal; }
}

