:root {
  --navy-950: #061117;
  --navy-900: #091821;
  --navy-850: #0c1d27;
  --navy-800: #102631;
  --navy-700: #183744;
  --teal-500: #21c4ad;
  --teal-400: #43d7c2;
  --teal-300: #7ce7d8;
  --ink: #122127;
  --muted: #63747b;
  --line: #dbe6e7;
  --soft: #f1f7f7;
  --white: #ffffff;
  --danger: #b4233b;
  --warning: #a86706;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(4, 28, 36, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body.auth-page { background: var(--navy-950); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--teal-500); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.portal-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 17, 23, .94); border-bottom: 1px solid rgba(255, 255, 255, .09); backdrop-filter: blur(18px); }
.portal-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.portal-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 900; letter-spacing: -.02em; }
.portal-brand img { width: 39px; height: 30px; filter: brightness(0) invert(1); }
.portal-brand span small { display: block; color: #9db2ba; font-size: .63rem; line-height: 1; font-weight: 700; letter-spacing: .31em; }
.portal-nav-links { display: flex; align-items: center; gap: 5px; }
.portal-nav-links > a, .nav-signout button { padding: 9px 12px; color: #bfd0d5; border: 0; border-radius: 9px; background: transparent; font-weight: 700; }
.portal-nav-links > a:hover, .portal-nav-links > a[aria-current="page"], .nav-signout button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.portal-nav-links .nav-action { margin-left: 5px; color: var(--navy-950); background: var(--teal-500); }
.portal-nav-links .nav-action:hover { color: var(--navy-950); background: var(--teal-300); }
.nav-signout { display: inline; margin: 0; }
.nav-toggle { display: none; width: 46px; height: 44px; padding: 11px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; background: transparent; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; }

.flash-region { position: fixed; z-index: 60; right: 20px; top: 92px; width: min(440px, calc(100% - 40px)); }
.flash { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 10px; padding: 14px 16px; color: #e9f6f4; background: var(--navy-800); border: 1px solid rgba(255,255,255,.13); border-left: 4px solid var(--teal-500); border-radius: 10px; box-shadow: var(--shadow); }
.flash-error, .flash-danger { border-left-color: #ff647e; }
.flash-warning { border-left-color: #f2b551; }
.flash button { color: #fff; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #118b7d; font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.auth-page .eyebrow, .portal-hero .eyebrow, .compact-hero .eyebrow { color: var(--teal-400); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 850; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 102, 92, .16); }
.button-primary { color: var(--navy-950); border-color: var(--teal-500); background: var(--teal-500); }
.button-primary:hover { border-color: var(--teal-300); background: var(--teal-300); }
.button-quiet { background: transparent; }
.button-wide { width: 100%; }
.inline-link, .form-switch a, .label-row a, .check-row a { color: #0b8c7c; font-weight: 800; }
.muted { color: var(--muted); }
.form-error { margin: 0; padding: 11px 13px; color: #8f1830; background: #fff0f3; border-left: 3px solid #cf3856; border-radius: 7px; font-size: .9rem; font-weight: 700; }
.form-error[hidden] { display: none; }

.auth-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(50px, 8vw, 110px); padding-block: 70px; }
.auth-intro h1 { margin: 18px 0 24px; max-width: 720px; font-size: clamp(3.2rem, 6.3vw, 6.3rem); line-height: .91; letter-spacing: -.065em; }
.auth-intro h1 em { color: var(--teal-400); font-style: normal; }
.auth-intro > p { max-width: 600px; color: #9fb2b9; font-size: 1.08rem; }
.trust-list { max-width: 580px; margin-top: 45px; border-top: 1px solid rgba(255,255,255,.12); }
.trust-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.trust-list span { color: var(--teal-400); font-weight: 900; }
.trust-list p { margin: 0; color: #9fb2b9; }
.trust-list strong { color: #fff; }
.privacy-note { max-width: 560px; display: flex; gap: 15px; margin-top: 38px; padding: 18px; color: #a9bac0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; }
.privacy-note > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--navy-950); background: var(--teal-400); border-radius: 50%; font-weight: 900; }
.privacy-note strong { color: #fff; }
.privacy-note p { margin: 2px 0 0; }
.auth-card { padding: clamp(28px, 4vw, 46px); color: var(--ink); background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.auth-card-wide { width: min(650px, 100%); }
.card-heading { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 5px rgba(33,196,173,.12); }
.auth-card h2 { margin: 17px 0 3px; font-size: 2.35rem; line-height: 1; letter-spacing: -.045em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
.auth-card .form-switch { margin: 25px 0 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: .94rem; }

.stack-form { display: grid; gap: 20px; }
.field { min-width: 0; }
.field label { display: inline-block; margin-bottom: 7px; font-size: .88rem; font-weight: 850; }
.field input, .field select, .field textarea, .catalog-search input { width: 100%; padding: 12px 13px; color: var(--ink); background: #fff; border: 1px solid #cbd9db; border-radius: 9px; outline: 0; }
.field input, .field select { min-height: 49px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .catalog-search input:focus { border-color: #0e9d8c; box-shadow: 0 0 0 4px rgba(33,196,173,.13); }
.field small { display: block; margin-top: 5px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.label-row a { font-size: .84rem; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-field button { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); padding: 6px 8px; color: #0b786c; border: 0; background: transparent; font-size: .78rem; font-weight: 900; }
.check-row { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: .9rem; }
.check-row input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--teal-500); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.optional { color: var(--muted); font-size: .8rem; font-weight: 500; }

.portal-hero, .compact-hero { color: #fff; background: radial-gradient(circle at 80% 20%, rgba(33,196,173,.13), transparent 32%), var(--navy-950); }
.portal-hero { padding: 80px 0 68px; }
.portal-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; }
.portal-hero h1, .compact-hero h1 { margin: 18px 0; font-size: clamp(3.1rem, 6vw, 5.8rem); line-height: .93; letter-spacing: -.06em; }
.portal-hero h1 em { color: var(--teal-400); font-style: normal; }
.portal-hero p, .compact-hero p { max-width: 700px; margin: 0; color: #9fb2b9; font-size: 1.08rem; }
.hero-metric { min-width: 205px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.04); }
.hero-metric span, .hero-metric small { display: block; color: #9fb2b9; }
.hero-metric strong { display: block; color: var(--teal-400); font-size: 3.5rem; line-height: 1.05; letter-spacing: -.05em; }
.compact-hero { padding: 68px 0 54px; }
.compact-hero h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.hero-with-action { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.admin-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: #dbeae8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-weight: 750; }
.portal-section { padding: 72px 0 92px; background: var(--soft); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 9px 14px; color: #35474d; border: 1px solid #cbd9db; border-radius: 999px; background: #fff; font-weight: 800; }
.filter-chip:hover, .filter-chip.active { color: #fff; border-color: var(--navy-800); background: var(--navy-800); }
.catalog-search { position: relative; width: min(290px, 100%); }
.catalog-search input { padding-right: 40px; }
.catalog-search > span:not(.sr-only) { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.download-card { min-width: 0; display: flex; flex-direction: column; min-height: 420px; padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.download-card-top { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.release-icon { width: 64px; height: 64px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 28px rgba(5,42,48,.13); }
.release-icon-fallback { display: grid; place-items: center; color: var(--teal-300); background: var(--navy-800); font-weight: 900; letter-spacing: -.03em; }
.release-badges { display: flex; justify-content: end; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-flex; padding: 5px 9px; color: #476168; background: #edf3f3; border-radius: 999px; font-size: .71rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.pill-status { color: #087366; background: #dff7f3; }
.pill-free { color: #087366; background: #dff7f3; }
.pill-shield { color: #5150a8; background: #ecebff; }
.download-card-copy { margin-top: 36px; }
.release-version { margin: 0 0 5px !important; color: #0b8c7c !important; font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.download-card h2 { margin: 0; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.download-card p { color: var(--muted); }
.license-options { display: grid; gap: 8px; margin: 18px 0 22px; }
.license-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; background: #f6f9f9; border: 1px solid var(--line); border-radius: 10px; }
.license-option strong, .license-option span { display: block; }
.license-option span { color: var(--muted); font-size: .85rem; }
.purchase-link { flex: 0 0 auto; color: #087d70; font-size: .84rem; font-weight: 900; }
.purchase-link::after { content: " ↗"; }
.purchase-link:disabled { color: #89999e; cursor: not-allowed; }
.purchase-link:disabled::after { content: ""; }
.license-consent { flex: 1 0 100%; display: flex; align-items: flex-start; gap: 9px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.4; cursor: pointer; }
.license-consent input { margin-top: 3px; accent-color: var(--teal-500); }
.license-consent span { display: inline; }
.license-consent a { color: #087d70; font-weight: 800; }
.license-order-note { flex: 1 0 100%; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .8rem; }
.license-required { display: inline-flex; align-items: center; color: #6c638e; font-size: .84rem; font-weight: 750; }
.release-facts { display: grid; grid-template-columns: 1fr 1fr; margin: auto 0 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.release-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.release-facts dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.release-facts dd { margin: 1px 0 0; font-weight: 800; }
.download-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.checksum { display: inline-flex; align-items: center; color: var(--muted); font: 700 .76rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.center-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.empty-panel { grid-column: 1 / -1; padding: 60px 24px; color: var(--muted); background: #fff; border: 1px dashed #aabfc2; border-radius: var(--radius); text-align: center; }
.empty-panel[hidden] { display: none; }
.empty-panel h2 { margin: 14px 0 3px; color: var(--ink); }
.empty-panel p { margin: 0; }
.empty-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin: auto; color: var(--teal-400); background: var(--navy-800); border-radius: 50%; font-size: 1.6rem; }

.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 25px; }
.account-summary, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.account-summary { position: sticky; top: 102px; padding: 28px; text-align: center; }
.avatar { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 17px; color: var(--teal-300); background: var(--navy-800); border-radius: 24px; font-size: 1.55rem; font-weight: 900; }
.account-summary h2 { margin: 0; letter-spacing: -.03em; }
.account-summary p { margin: 2px 0 13px; color: var(--muted); overflow-wrap: anywhere; }
.member-chip { display: inline-flex; margin-bottom: 23px; padding: 5px 10px; color: #087366; background: #dff7f3; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.catalog-toolbar .member-chip { margin-bottom: 0; }
.public-chip { color: #5150a8; background: #ecebff; }
.account-main { display: grid; gap: 20px; }
.narrow-shell { max-width: 880px; }
.account-overview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.account-overview .avatar { margin: 0; }
.account-identity h2 { margin: 5px 0 0; font-size: 1.9rem; letter-spacing: -.035em; }
.account-identity p { margin: 0; color: var(--muted); }
.account-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: end; }
.simple-panel { margin-top: 20px; }
.simple-panel h2, .signed-out-panel h2 { margin-top: 0; }
.simple-panel p, .signed-out-panel p { color: var(--muted); }
.signed-out-panel { text-align: center; }
.signed-out-panel .download-actions { justify-content: center; }
.prose-panel { max-width: 820px; }
.prose-panel h2 { margin: 36px 0 7px; font-size: 1.55rem; letter-spacing: -.03em; }
.prose-panel h2:first-child { margin-top: 0; }
.prose-panel p { color: var(--muted); }
.privacy-updated { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.panel { padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 24px; }
.panel-heading h2 { margin: 8px 0 0; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.035em; }
.panel-heading p { margin: 6px 0 0; color: var(--muted); }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; }
.activity-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #087366; background: #dff7f3; border-radius: 10px; font-weight: 900; }
.activity-item strong, .activity-item span { display: block; }
.activity-item div span { color: var(--muted); font-size: .85rem; }
.activity-item a { color: #0b8c7c; font-weight: 800; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.choice-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: 8px; font-size: .88rem; font-weight: 850; }
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { display: flex; align-items: start; gap: 11px; padding: 15px; background: #f7fafa; border: 1px solid #cbd9db; border-radius: 11px; cursor: pointer; }
.choice-card:has(input:checked) { background: #eafaf7; border-color: #13a892; box-shadow: 0 0 0 3px rgba(33,196,173,.1); }
.choice-card input { margin: 4px 0 0; accent-color: var(--teal-500); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 2px; color: var(--muted); }
.license-editor { padding: 18px; background: #f7fafa; border: 1px solid var(--line); border-radius: 13px; }
.license-editor[hidden] { display: none; }
.subsection-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 14px; }
.subsection-heading h3 { margin: 0; font-size: 1.05rem; }
.subsection-heading p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.button-small { min-height: 38px; padding: 7px 11px; font-size: .82rem; white-space: nowrap; }
.license-type-list { display: grid; gap: 10px; }
.license-type-row { display: grid; grid-template-columns: 1fr 150px 1.25fr auto; align-items: end; gap: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.remove-type { min-height: 49px; padding: 0 10px; color: var(--danger); background: transparent; border: 0; font-size: .8rem; font-weight: 850; }
.field-hint { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.field-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grant-panel { margin-top: 24px; }
.coupon-panel { margin-top: 24px; }
.protection-panel { margin-top: 24px; }
.coupon-list { display: grid; gap: 10px; margin-top: 22px; }
.protection-list { display: grid; gap: 10px; }
.coupon-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; background: #f7fafa; border: 1px solid var(--line); border-radius: 11px; }
.protection-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; background: #f7fafa; border: 1px solid var(--line); border-radius: 11px; }
.protection-card strong, .protection-card span, .protection-card small { display: block; }
.protection-card span, .protection-card small, .protection-card time { color: var(--muted); }
.protection-card strong { text-transform: capitalize; }
.coupon-card strong, .coupon-card span, .coupon-card small { display: block; }
.coupon-card span, .coupon-card small { color: var(--muted); }
.coupon-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.admin-side { display: grid; gap: 20px; }
.compact-panel .large-number { display: block; margin: 12px 0 0; color: var(--navy-800); font-size: 3.8rem; line-height: 1; letter-spacing: -.06em; }
.compact-panel p { margin: 2px 0 0; color: var(--muted); }
.compact-panel h2 { margin-top: 0; font-size: 1.3rem; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #0b8c7c; font-weight: 900; }
.file-drop { min-height: 170px; display: grid !important; place-items: center; align-content: center; gap: 4px; padding: 24px; color: var(--muted); border: 1px dashed #9db5b9; border-radius: 13px; background: #f7fbfb; text-align: center; cursor: pointer; }
.file-drop.dragging { border-color: #0b9f8d; background: #e9faf7; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop strong { color: var(--ink); }
.file-drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 5px; color: var(--teal-300); background: var(--navy-800); border-radius: 12px; font-size: 1.3rem; }
.upload-status { color: var(--muted); font-size: .9rem; }
.release-table-wrap { margin-top: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll { overflow-x: auto; }
.release-table { width: 100%; border-collapse: collapse; text-align: left; }
.release-table th { padding: 11px 14px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.release-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); }
.release-table td:first-child strong, .release-table td:first-child span { display: block; }
.release-table td:first-child span { color: var(--muted); font-size: .82rem; }
.table-actions { display: flex; justify-content: end; gap: 10px; white-space: nowrap; }
.table-actions a, .table-actions button { padding: 5px 8px; color: #087366; border: 0; background: transparent; font-size: .84rem; font-weight: 850; }
.table-actions form { margin: 0; }
.table-actions button { color: var(--danger); }
.table-empty { padding: 36px !important; color: var(--muted); text-align: center; }
.license-list { display: grid; gap: 10px; }
.entitlement-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px; background: #f7fafa; border: 1px solid var(--line); border-radius: 12px; }
.entitlement-card h3 { margin: 8px 0 0; font-size: 1.15rem; }
.entitlement-card p { margin: 1px 0; color: var(--muted); }
.entitlement-card small { color: var(--muted); }

.portal-footer { padding: 52px 0 25px; color: #fff; background: var(--navy-950); }
.portal-footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 55px; }
.portal-footer p, .portal-footer a { color: #9fb2b9; }
.portal-footer a:hover { color: #fff; }
.footer-links { display: grid; align-content: start; gap: 7px; }
.footer-links strong { margin-bottom: 4px; }
.portal-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; color: #708890; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .portal-nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 68px; padding: 12px; background: var(--navy-850); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.35); flex-direction: column; align-items: stretch; }
  .portal-nav-links.open { display: flex; }
  .portal-nav-links .nav-action { margin-left: 0; text-align: center; }
  .nav-signout, .nav-signout button { width: 100%; text-align: left; }
  .auth-layout { grid-template-columns: 1fr; gap: 45px; }
  .auth-intro h1 { max-width: 800px; }
  .auth-card, .auth-card-wide { width: 100%; }
  .portal-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-metric { width: 220px; }
  .account-grid, .admin-grid { grid-template-columns: 1fr; }
  .field-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .license-type-row { grid-template-columns: 1fr 140px; }
  .license-type-row .field:nth-child(3) { grid-column: 1 / -1; }
  .account-overview { grid-template-columns: auto 1fr; }
  .account-actions { grid-column: 1 / -1; justify-content: start; }
  .account-summary { position: static; }
  .admin-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .portal-nav { min-height: 68px; }
  .auth-layout { padding-block: 50px; }
  .auth-intro h1 { font-size: 3.35rem; }
  .trust-list { margin-top: 30px; }
  .field-grid, .field-grid-three, .field-grid-four, .download-grid, .admin-side, .choice-cards { grid-template-columns: 1fr; }
  .portal-hero, .compact-hero { padding-block: 54px 44px; }
  .portal-hero h1, .compact-hero h1 { font-size: 3.1rem; }
  .portal-section { padding: 50px 0 65px; }
  .catalog-toolbar, .hero-with-action { display: block; }
  .catalog-search { display: block; width: 100%; margin-top: 14px; }
  .admin-badge { margin-top: 24px; }
  .panel, .release-table-wrap { padding: 22px; }
  .download-card { min-height: 400px; padding: 22px; }
  .download-actions .button { width: 100%; }
  .activity-item { grid-template-columns: 38px 1fr; }
  .license-type-row { grid-template-columns: 1fr; }
  .license-type-row .field:nth-child(3) { grid-column: auto; }
  .subsection-heading, .entitlement-card { display: block; }
  .subsection-heading .button, .entitlement-card .button { margin-top: 13px; width: 100%; }
  .account-overview { grid-template-columns: 1fr; text-align: center; }
  .account-overview .avatar { margin: auto; }
  .account-actions { grid-column: auto; justify-content: center; }
  .activity-item a { grid-column: 2; }
  .portal-footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-footer-grid > div:first-child { grid-column: 1 / -1; }
  .portal-footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

[hidden]{display:none!important}
:focus-visible{outline:3px solid #118b7d;outline-offset:4px}
[id]{scroll-margin-top:96px}
.auth-layout>*,.account-grid>*,.admin-grid>*{min-width:0}
.entitlement-card{overflow-wrap:anywhere}
