/* Thinking Datacenters editorial system – STRATUM Downloads
   Same palette, type and components as STRATUM Support (the forum).
   No external CSS frameworks, fonts, scripts or image services. */
:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --line: #d8d8d8;
  --line-dark: #bdbdbd;
  --surface: #f7f7f7;
  --surface-soft: #fbfbfb;
  --paper: #fff;
  --red: #EC3A3A;
  --gold: #e4b46d;
  --ok: #198552;
  --page: 1500px;
  --gutter: clamp(22px, 5vw, 80px);
  --shadow: 0 10px 38px rgba(0,0,0,.09);
}
* { box-sizing: border-box; }
html { background:var(--paper); color:var(--ink); font-family:Aptos,"Helvetica Neue",Arial,sans-serif; font-size:16px; -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100vh; background:var(--paper); font-size:16px; line-height:1.44; letter-spacing:-.017em; }
button, input, textarea, select { font:inherit; letter-spacing:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.58; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--red); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, .eula-text:focus-visible { outline:2px solid var(--red); outline-offset:3px; }
.hidden { display:none !important; }
.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; margin:-1px; }
.hp { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* Page intro */
.shell { max-width:var(--page); min-height:calc(100vh - 290px); margin:0 auto; padding:0 var(--gutter) 90px; }
.page-intro { padding:66px 0 49px; border-bottom:1px solid var(--line); }
.eyebrow { color:var(--red); font-size:14px; font-weight:850; letter-spacing:.055em; line-height:1.2; }
.intro-grid { display:flex; justify-content:space-between; gap:38px; align-items:end; }
h1,h2,h3,p { margin-top:0; }
h1 { margin:14px 0 15px; font-size:clamp(44px,5vw,72px); line-height:.97; letter-spacing:-.054em; font-weight:820; }
.page-intro p { max-width:700px; margin:0; font-size:18px; line-height:1.5; color:#303030; }
.account-wrap { flex:none; position:relative; display:flex; flex-direction:column; align-items:flex-end; gap:8px; padding-bottom:2px; }
.identity-label { font-size:14px; font-weight:780; letter-spacing:.055em; color:#606060; }
.identity { display:flex; align-items:center; gap:10px; max-width:min(460px,80vw); background:#fff; color:#111; border:1px solid var(--line-dark); padding:11px 14px; min-height:47px; font-weight:750; font-size:14px; letter-spacing:.02em; }
.identity:hover { border-color:var(--ink); }
#identityText { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:100%; background:#919191; flex:none; }
.status-dot.online { background:var(--ok); }
.account-caret { font-size:14px; color:#606060; margin-left:5px; }
.account-popover { position:absolute; top:100%; right:0; margin-top:6px; width:270px; z-index:80; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); padding:6px; }
.account-meta { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:10px 14px 12px; margin-bottom:4px; border-bottom:1px solid var(--line); font-size:14px; color:#555; overflow-wrap:anywhere; }
.account-meta strong { color:#111; font-size:15px; }
.account-meta .badge { margin-top:4px; }
.account-popover button { width:100%; border:0; background:#fff; padding:10px 14px; text-align:left; font-size:15px; font-weight:730; color:#111; }
.account-popover button:hover { background:var(--surface); }

/* Forms, buttons */
label { display:block; font-size:14px; font-weight:850; letter-spacing:.045em; color:var(--ink); margin:0 0 9px; }
input,textarea,select { border:1px solid #bcbcbc; background:#fff; color:#111; width:100%; padding:12px 14px; border-radius:0; outline:0; font-size:16px; transition:border-color .15s,box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color:var(--red); box-shadow:0 0 0 2px rgba(236,58,58,.12); }
input::placeholder,textarea::placeholder { color:#737373; }
input[readonly] { background:var(--surface); }
select { appearance:auto; min-height:49px; }
.button,.back-link,.icon-button { border:1px solid #161616; border-radius:0; color:#111; background:#fff; transition:background .13s,color .13s,border-color .13s; }
.button { display:inline-flex; justify-content:center; align-items:center; gap:9px; padding:10px 17px; min-height:48px; font-size:14px; font-weight:800; white-space:nowrap; }
.button:hover { color:#fff; background:#111; }
.button.primary { background:#111; color:#fff; }
.button.primary:hover { background:#333; border-color:#333; color:#fff; }
.button.secondary { background:#f6f6f6; color:#111; border-color:#aaa; }
.button.secondary:hover { background:#111; color:#fff; border-color:#111; }
.button.ghost { background:transparent; border-color:#c7c7c7; }
.button.ghost:hover { background:#f1f1f1; color:#111; border-color:#111; }
.text-button { border:0; background:none; padding:4px 0; color:#333; font-size:15px; font-weight:750; text-decoration:underline; text-decoration-color:#bdbdbd; text-underline-offset:4px; }
.text-button:hover { color:var(--red); text-decoration-color:var(--red); }
.back-link { border:0; background:transparent; padding:0; margin:29px 0 0; color:#333; font-size:15px; font-weight:780; }
.back-link:hover { color:var(--red); }
.check { display:flex; align-items:flex-start; gap:11px; margin:22px 0 0; font-size:15px; font-weight:600; letter-spacing:0; line-height:1.45; color:#2c2c2c; cursor:pointer; }
.check input { width:18px; height:18px; flex:none; margin:2px 0 0; padding:0; accent-color:#111; }
.field-hint { margin:10px 0 0; font-size:14px; color:#5b5b5b; line-height:1.5; }
.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:14px 18px; margin-top:24px; }
.form-actions.end { justify-content:flex-end; }
.turnstile-slot:not(:empty) { margin-top:20px; }

/* Views and panels */
.view { display:none; }
.view.active { display:block; }
.loading { padding:60px 0; color:#666; font-size:16px; }
.panel { border:1px solid var(--line); border-top:2px solid #111; background:#fff; padding:30px; margin-top:34px; }
.panel h2 { font-size:clamp(28px,2.6vw,38px); line-height:1.08; letter-spacing:-.047em; margin:9px 0 14px; }
.panel label { margin-top:19px; }
.panel .eyebrow + h2 + label, .panel h2 + label { margin-top:4px; }
.panel-copy { margin:0 0 8px; color:#3c3c3c; font-size:16px; line-height:1.55; overflow-wrap:anywhere; }
.panel-soft { background:var(--surface-soft); }
.panel.narrow { max-width:640px; }
.panel.wide { max-width:1040px; }
.auth-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:stretch; }
.auth-grid .panel { margin-top:42px; }
.ticks { list-style:none; margin:16px 0 26px; padding:0; display:grid; gap:12px; }
.ticks li { position:relative; padding-left:26px; font-size:16px; line-height:1.5; color:#2f2f2f; }
.ticks li::before { content:""; position:absolute; left:2px; top:.62em; width:10px; height:2px; background:var(--red); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; margin-top:6px; }
.form-grid label { margin-top:19px; }

/* License agreement */
.eula { border-top:2px solid #111; border-bottom:1px solid var(--line); margin-top:42px; padding:28px 0 26px; }
.eula-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:18px; }
.eula-head h2 { font-size:clamp(28px,2.6vw,38px); line-height:1.08; letter-spacing:-.047em; margin:9px 0 0; }
.eula-text { max-height:440px; overflow:auto; border:1px solid var(--line); background:var(--surface-soft); padding:22px 26px; font-size:15px; line-height:1.6; color:#2a2a2a; }
.eula-text h3 { font-size:18px; letter-spacing:-.02em; margin:26px 0 10px; color:#111; }
.eula-text h3:first-child { margin-top:0; }
.eula-text h4 { font-size:15px; letter-spacing:0; margin:18px 0 6px; color:#111; }
.eula-text p { margin:0 0 9px; max-width:980px; }
.eula-actions { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin-top:18px; }
.eula-actions .check { margin:0; max-width:760px; }
.eula-actions .button { min-width:150px; }
.notice { display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; margin-top:42px; padding:16px 20px; border:1px solid #cfe3d6; border-left:3px solid var(--ok); background:#f6faf7; }
.notice > div { display:flex; flex-direction:column; gap:3px; font-size:16px; color:#24402f; }
.notice strong { font-size:14px; letter-spacing:.05em; color:var(--ok); }

/* Download tree */
.list-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:42px 0 14px; }
.list-heading h2 { margin:0; font-size:33px; font-weight:790; letter-spacing:-.045em; line-height:1.05; }
.list-heading span { color:#777; font-size:14px; font-weight:800; letter-spacing:.045em; }
.list-heading span.enterprise { color:#ac2626; }
.tree { border-top:2px solid #151515; padding:12px 0 8px; }
.tree-list { list-style:none; margin:0; padding:0; }
.tree-list .tree-list { margin-left:9px; padding-left:21px; border-left:1px dotted #bdbdbd; }
.tree-list[hidden] { display:none; }
.tree-row { display:flex; align-items:center; gap:10px; min-height:42px; padding:4px 8px 4px 2px; border-bottom:1px solid transparent; }
.tree-toggle { width:18px; height:18px; flex:none; display:inline-grid; place-items:center; border:1px solid #8f8f8f; background:#fff; color:#222; font-size:15px; font-weight:700; line-height:1; padding:0 0 1px; }
button.tree-toggle:hover { border-color:var(--red); color:var(--red); }
.tree-lock { border-color:#c4c4c4; background:#f3f3f3; }
.tree-lock .icon { width:12px; height:12px; }
.tree-lock .icon-lock path { stroke:#666; stroke-width:2.4; }
.tree-spacer { width:18px; flex:none; }
.icon { width:21px; height:21px; flex:none; display:block; }
.icon-folder path { fill:var(--gold); stroke:#a87b2f; stroke-width:1; stroke-linejoin:round; }
.icon-file path { fill:#fff; stroke:#6a6a6a; stroke-width:1.3; stroke-linejoin:round; }
.icon-lock path { fill:none; stroke:#4a4a4a; stroke-width:1.7; stroke-linejoin:round; }
.tree-name { min-width:0; border:0; background:none; padding:0; color:#111; text-align:left; font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
button.tree-name { font-weight:780; }
a.tree-name { font-weight:600; text-decoration:underline; text-decoration-color:#cfcfcf; text-underline-offset:4px; }
a.tree-name:hover { color:var(--red); text-decoration-color:var(--red); }
@media (hover:hover) {
  .tree-row:hover { background:#fafafa; border-bottom-color:#efefef; }
  button.tree-name:hover { color:var(--red); }
}
.tree > .tree-list > li > .tree-row .tree-name { font-size:18px; }
/* Top-level sections (Community, Enterprise, ...) are siblings: a rule between them. */
.tree > .tree-list > li + li { border-top:1px solid var(--line); margin-top:8px; padding-top:8px; }
.tree-row .badge { margin-left:4px; }
.file-meta { margin-left:auto; display:flex; align-items:center; gap:18px; padding-left:16px; color:#666; font-size:14px; white-space:nowrap; }
.file-size { min-width:70px; text-align:right; }
.file-date { min-width:100px; }
.link-button { border:1px solid #c7c7c7; background:#fff; color:#222; padding:5px 10px; font-size:14px; font-weight:750; white-space:nowrap; }
.link-button:hover { border-color:#111; background:#111; color:#fff; }
.tree-row.locked .tree-name { color:#4a4a4a; font-weight:780; }
.tree-row.locked .icon-folder path { fill:#e4e4e4; stroke:#a3a3a3; }
.lock-note { margin-left:auto; padding-left:16px; font-size:14px; color:#666; text-align:right; }
.lock-note a { color:var(--red); font-weight:780; white-space:nowrap; }
.tree-note { padding:6px 0 8px 30px; font-size:14px; color:#777; }
.badge { display:inline-flex; align-items:center; border:1px solid #cecece; color:#333; font-size:14px; font-weight:760; line-height:1.2; letter-spacing:0; padding:3px 7px; white-space:nowrap; }
.badge.enterprise { border-color:#e2b7b7; color:#ac2626; }
.badge.community { border-color:#b6cdbf; color:#23714b; }
.tree-foot { margin:18px 0 0; font-size:14px; color:#5b5b5b; line-height:1.55; max-width:900px; }
.cta { display:flex; justify-content:space-between; align-items:center; gap:28px; margin-top:30px; padding:24px 26px; border:1px solid var(--line); border-left:3px solid var(--red); background:var(--surface-soft); }
.cta h3 { font-size:24px; letter-spacing:-.035em; margin:8px 0 6px; }
.cta p { margin:0; color:#3c3c3c; max-width:640px; }
.cta-actions { display:flex; gap:10px; flex-wrap:wrap; flex:none; }
.empty { text-align:center; padding:60px 18px 70px; color:#555; border-bottom:1px solid var(--line); }
.empty-glyph { color:var(--red); font-size:32px; line-height:1; margin-bottom:12px; }
.empty h2 { margin:0 0 10px; font-size:27px; letter-spacing:-.04em; color:#111; }
.empty p { font-size:16px; margin:0 auto; }

/* Native dialogs */
dialog { width:min(720px,calc(100% - 30px)); max-height:calc(100vh - 28px); overflow:auto; border:1px solid #bcbcbc; border-radius:0; color:#111; background:#fff; padding:0; box-shadow:0 30px 90px rgba(0,0,0,.24); }
dialog::backdrop { background:rgba(0,0,0,.54); }
.modal-card { padding:29px; }
.modal-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.modal-head h2 { font-size:30px; letter-spacing:-.045em; margin:7px 0 0; line-height:1.15; overflow-wrap:anywhere; }
.modal-copy { margin:0 0 20px; color:#464646; font-size:15px; line-height:1.55; }
.modal-card label:not(:first-child) { margin-top:19px; }
.modal-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; }
.copy-row { display:flex; gap:8px; }
.copy-row input { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:14px; letter-spacing:0; }
.copy-row .button { min-width:86px; }
.icon-button { background:#fff; border:1px solid #ccc; color:#222; width:41px; height:41px; flex:none; font-size:24px; line-height:1; }
.icon-button:hover { background:#111; color:#fff; }
.toast { position:fixed; right:23px; bottom:23px; max-width:min(440px,calc(100% - 44px)); padding:14px 17px; background:#111; color:#fff; border-left:4px solid var(--red); box-shadow:var(--shadow); pointer-events:none; opacity:0; transform:translateY(12px); transition:opacity .2s, transform .2s; font-size:15px; z-index:120; }
.toast.show { opacity:1; transform:translateY(0); }
.toast.error { background:#a62929; border-left-color:#fff; }

@media (max-width:980px) {
  .intro-grid { gap:23px; }
  .page-intro { padding-top:55px; }
  .file-date { display:none; }
}
@media (max-width:860px) {
  .auth-grid { grid-template-columns:1fr; gap:0; }
  .cta { flex-direction:column; align-items:flex-start; }
}
@media (max-width:740px) {
  .shell { padding:0 22px 70px; }
  .page-intro { padding:36px 0 32px; }
  .intro-grid { display:block; }
  .intro-grid h1 { margin:10px 0 15px; font-size:clamp(40px,9vw,54px); }
  .page-intro p { font-size:17px; }
  .account-wrap { align-items:flex-start; margin-top:27px; }
  .account-popover { right:auto; left:0; }
  .panel { padding:22px 18px; }
  .form-grid { grid-template-columns:1fr; }
  .list-heading h2 { font-size:28px; }
  .tree-row { flex-wrap:wrap; }
  .tree-row .tree-name { flex:1 1 0; }
  .file-meta { width:100%; margin-left:58px; padding-left:0; justify-content:flex-start; }
  .tree-list .tree-list { padding-left:12px; }
  .lock-note { width:100%; margin-left:58px; padding-left:0; text-align:left; }
  .eula-text { padding:16px; max-height:380px; }
  .eula-actions .button { width:100%; }
}
@media (max-width:480px) {
  .modal-card { padding:21px; }
  .modal-head h2 { font-size:25px; }
  .modal-actions { flex-wrap:wrap; }
  .copy-row { flex-direction:column; }
  .file-meta { margin-left:28px; }
  .lock-note { margin-left:28px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
