:root {
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-blue: #f0f5ff;
  --ink: #101b33;
  --ink-soft: #52617a;
  --ink-faint: #77849a;
  --line: #dde4ee;
  --line-strong: #ccd6e4;
  --blue: #075ff7;
  --blue-dark: #074bc0;
  --blue-soft: #eaf2ff;
  --green: #069a63;
  --green-soft: #ecf9f3;
  --red: #bd2c3c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --page: 1360px;
  --shadow-float: 0 18px 60px rgba(31, 50, 82, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }

.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(213, 222, 235, .88); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.site-header__inner { width: min(calc(100% - 48px), var(--page)); height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 52px; }
.brand { color: var(--ink); font-size: 25px; font-weight: 780; letter-spacing: -.9px; line-height: 1; }
.brand span { color: var(--blue); }
.primary-nav { display: flex; align-self: stretch; gap: 32px; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; color: #26344c; font-weight: 620; }
.primary-nav a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); content: ""; transform: scaleX(0); transition: transform .18s ease; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--blue); }
.primary-nav a.is-active::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-search { width: min(25vw, 300px); margin-left: auto; }
.header-search input { min-height: 38px; padding: 7px 12px; border-radius: 8px; background: #fbfcfe; font-size: 13px; }
.header-search input::placeholder { color: #8793a6; }
.header-search + .header-actions { margin-left: 0; }
.text-link { color: #34425a; font-weight: 600; }
.text-link:hover { color: var(--blue); }
.account-chip { display: inline-flex; align-items: center; gap: 9px; color: #27354d; font-weight: 620; }
.account-avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid #dce4ef; border-radius: 50%; background: #eef3fa; color: var(--blue); font-weight: 720; }
.nav-toggle { display: none; }

.button { min-height: 42px; padding: 9px 18px; border: 1px solid var(--blue); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 680; line-height: 1.2; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 10px 26px rgba(7, 95, 247, .16); transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(7, 95, 247, .22); outline-offset: 3px; }
.button--small { min-height: 36px; padding: 7px 13px; font-size: 14px; }
.button--secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button--secondary:hover { border-color: #aebcd0; background: var(--surface-soft); color: var(--blue); box-shadow: none; }
.button--block { width: 100%; }
.button .ui-icon { filter: brightness(0) invert(1); }
.button--secondary .ui-icon { filter: none; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }

.flash-stack { position: fixed; z-index: 80; top: 84px; left: 50%; width: min(calc(100% - 32px), 520px); transform: translateX(-50%); }
.flash { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); background: #fff; font-weight: 620; }
.flash--success { border-color: #bcebd7; color: #08764e; background: #f0fbf6; }
.flash--error { border-color: #f0c6cc; color: #9e2333; background: #fff5f6; }

.page-shell { width: min(calc(100% - 48px), 1240px); min-height: 70vh; margin: 0 auto; padding: 70px 0 100px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.page-heading h1 { margin: 4px 0 6px; font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -1.8px; }
.page-heading p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.page-heading--compact { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0; color: var(--blue); font-size: 12px !important; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.quiet-action { display: inline-flex; align-items: center; gap: 8px; color: #2e405d; font-weight: 650; }
.quiet-action:hover { color: var(--blue); }

.catalog-toolbar { min-height: 52px; padding: 0 4px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 13px; }
.catalog-count { font-weight: 700; color: var(--ink); }
.catalog-status { display: inline-flex; align-items: center; gap: 8px; }
.catalog-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(6, 154, 99, .09); }
.project-row { padding: 34px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.project-row__identity { display: flex; align-items: center; gap: 22px; }
.project-row__identity > div { min-width: 0; }
.project-row__identity > img { border-radius: 18px; }
.project-row__identity h2 { margin: 2px 0 5px; font-size: 25px; line-height: 1.2; letter-spacing: -.5px; }
.project-row__identity h2 a:hover { color: var(--blue); }
.project-row__identity p { margin: 0; color: var(--ink-soft); }
.project-row__type { color: var(--blue) !important; font-size: 12px; font-weight: 740; letter-spacing: .08em; }
.project-row__meta { display: flex; align-items: center; gap: 34px; }
.project-row__meta div { min-width: 100px; display: grid; gap: 2px; }
.project-row__meta span { color: var(--ink-faint); font-size: 12px; }
.project-row__meta strong { font-size: 14px; }
.catalog-empty { min-height: 230px; padding: 54px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-empty h2 { margin: 0 0 4px; font-size: 23px; }
.catalog-empty p { margin: 0 0 20px; color: var(--ink-soft); }

.release-strip { border-bottom: 1px solid var(--line); background: rgba(247, 249, 252, .92); }
.release-strip__inner { width: min(calc(100% - 48px), var(--page)); min-height: 44px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--ink-soft); font-size: 12.5px; }
.release-strip nav { display: flex; align-items: center; gap: 10px; }
.release-strip nav a:hover { color: var(--blue); }
.release-strip p { margin: 0; }
.release-strip p span { padding: 0 8px; }

.product-layout { width: min(100%, 1440px); min-height: 760px; margin: 0 auto; display: grid; grid-template-columns: 252px minmax(0, 1fr); background: var(--surface); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-sidebar { padding: 36px 22px 60px; border-right: 1px solid var(--line); background: #fbfcfe; }
.product-mark { display: flex; align-items: center; gap: 12px; margin: 0 10px 28px; font-size: 17px; font-weight: 760; }
.product-mark img { border-radius: 11px; }
.product-nav { display: grid; gap: 4px; }
.product-nav a { min-height: 48px; padding: 10px 13px; display: flex; align-items: center; gap: 12px; border-left: 2px solid transparent; border-radius: 8px; color: #40506b; font-weight: 620; }
.product-nav a:hover { background: #f1f5fa; color: var(--ink); }
.product-nav a.is-active { border-left-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.product-nav a.is-active .ui-icon { filter: brightness(0) saturate(100%) invert(28%) sepia(99%) saturate(3255%) hue-rotate(217deg) brightness(99%) contrast(104%); }
.sidebar-related { margin: 32px 10px 0; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.sidebar-related > span { margin-bottom: 4px; color: var(--ink-faint); font-size: 11px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.sidebar-related a { padding: 7px 0; display: flex; align-items: center; gap: 9px; color: #52617a; font-size: 13px; font-weight: 600; }
.sidebar-related a:hover { color: var(--blue); }
.sidebar-related .ui-icon { width: 17px; height: 17px; }

.product-content { min-width: 0; padding: 42px 42px 80px; }
.product-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.product-heading__identity { display: flex; align-items: center; gap: 22px; }
.product-heading__identity > img { flex: 0 0 auto; border-radius: 20px; }
.product-title-row { display: flex; align-items: center; gap: 14px; }
.product-title-row h1 { margin: 0; font-size: clamp(35px, 4.1vw, 52px); line-height: 1.08; letter-spacing: -2px; }
.product-title-row span { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: #40506b; font-size: 12px; font-weight: 650; white-space: nowrap; }
.product-heading__identity p { margin: 7px 0 0; color: var(--ink-soft); font-size: 16px; }
.browser-support { display: flex; align-items: center; gap: 7px; color: #506078; font-size: 13px; white-space: nowrap; }
.browser-support img { width: 20px; height: 20px; object-fit: contain; }

.entitlement-bar { min-height: 76px; margin: 32px 0 26px; padding: 12px 14px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.entitlement-bar--allowed { border-color: #cdeade; background: var(--green-soft); }
.entitlement-copy { display: flex; align-items: center; gap: 13px; min-width: 0; }
.entitlement-copy .ui-icon { width: 27px; height: 27px; }
.entitlement-copy div { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.ent-copy strong, .entitlement-copy strong { color: #137950; font-size: 15px; }
.entitlement-bar--neutral .entitlement-copy strong { color: var(--ink); }
.entitlement-copy span { color: #596980; font-size: 13px; }
.entitlement-bar .button { flex: 0 0 auto; min-width: 180px; }
.entitlement-bar .button span { padding-left: 3px; font-weight: 570; opacity: .9; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .8fr); gap: 28px; align-items: stretch; }
.product-shot { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f2f4f8; }
.feature-ledger { border-top: 1px solid var(--line); }
.feature-ledger > div { min-height: 138px; padding: 25px 4px; display: grid; grid-template-columns: 30px 1fr; gap: 15px; border-bottom: 1px solid var(--line); }
.feature-ledger .ui-icon { width: 27px; height: 27px; }
.feature-ledger h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.25; letter-spacing: -.25px; }
.feature-ledger p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.release-facts { margin-top: 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -.5px; }
.section-heading > span { color: var(--ink-faint); font-size: 13px; }
.release-facts dl { margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.release-facts dl div { padding: 18px 20px; border-right: 1px solid var(--line); }
.release-facts dl div:last-child { border-right: 0; }
.release-facts dt { margin-bottom: 5px; color: var(--ink-faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.release-facts dd { margin: 0; font-weight: 650; }

.document-section { max-width: 920px; padding: 20px 4px 40px; }
.document-section > h1 { max-width: 700px; margin: 6px 0 14px; font-size: clamp(36px, 5vw, 54px); line-height: 1.12; letter-spacing: -1.9px; }
.document-section .lead { max-width: 720px; margin: 0 0 40px; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.step-list { border-top: 1px solid var(--line); }
.step-list > div { padding: 27px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 66px 1fr; gap: 24px; }
.step-list > div > span { color: var(--blue); font-family: "SFMono-Regular", monospace; font-size: 13px; }
.step-list h2 { margin: 0 0 5px; font-size: 20px; }
.step-list p { margin: 0; color: var(--ink-soft); }
.feature-table { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-table > div { min-height: 200px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-table .ui-icon { width: 27px; height: 27px; margin-bottom: 24px; }
.feature-table h2 { margin: 0 0 7px; font-size: 19px; }
.feature-table p { margin: 0; color: var(--ink-soft); }
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 8px; font-size: 21px; }
.prose > p:not(.eyebrow) { color: var(--ink-soft); }
.prose code { padding: 2px 5px; border-radius: 4px; background: #eef2f7; color: #263852; }
.prose details { border-top: 1px solid var(--line); }
.prose details:last-child { border-bottom: 1px solid var(--line); }
.prose summary { padding: 20px 2px; cursor: pointer; color: var(--ink); font-weight: 680; }
.prose details p { margin: -5px 0 22px; }
.release-table { margin-top: 36px; border-top: 1px solid var(--line); }
.release-table [role="row"] { min-height: 58px; padding: 13px 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 150px minmax(0, 1fr); align-items: center; gap: 18px; }
.release-table [role="row"]:first-child { min-height: 42px; color: var(--ink-faint); font-size: 11px; font-weight: 700; }
.release-table [role="cell"] { color: var(--ink-soft); }
.release-table strong[role="cell"] { color: var(--ink); }

.auth-shell { width: min(calc(100% - 48px), 1040px); min-height: calc(100vh - 220px); margin: 0 auto; padding: 90px 0 110px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 90px; align-items: center; }
.auth-intro h1 { margin: 6px 0 14px; font-size: clamp(40px, 6vw, 60px); line-height: 1.08; letter-spacing: -2.3px; }
.auth-intro > p:not(.eyebrow) { max-width: 510px; color: var(--ink-soft); font-size: 17px; }
.auth-intro ul { margin: 32px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.auth-intro li { display: flex; align-items: center; gap: 11px; color: #33435c; font-weight: 620; }
.auth-intro .ui-icon { width: 21px; height: 21px; }
.auth-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 70px rgba(31, 50, 82, .07); }
.form-heading { margin-bottom: 26px; }
.form-heading h2 { margin: 0 0 4px; font-size: 25px; }
.form-heading p, .form-foot { margin: 0; color: var(--ink-faint); font-size: 13px; }
.auth-form label, .form-grid label { display: grid; gap: 7px; margin-bottom: 17px; color: #2a3850; font-size: 13px; font-weight: 650; }
.auth-form label > span, .form-grid label > span { color: var(--ink-faint); font-size: 11px; font-weight: 500; }
input, select { width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: 0; background: #fff; color: var(--ink); }
input:hover, select:hover { border-color: #adbacb; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 95, 247, .09); }
.auth-form .button { margin-top: 5px; }
.form-foot { margin-top: 18px; text-align: center; }
.form-foot a { color: var(--blue); font-weight: 650; }

.account-heading { padding-bottom: 30px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.account-heading h1 { margin: 3px 0 1px; font-size: 38px; line-height: 1.15; }
.account-heading p { margin: 0; color: var(--ink-soft); }
.account-grid { margin-top: 34px; display: grid; gap: 30px; }
.account-section, .token-reveal, .admin-panel, .admin-table-section { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.account-section { padding: 28px; }
.entitlement-row { min-height: 82px; padding: 15px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; }
.entitlement-row > img { border-radius: 11px; }
.entitlement-row div { display: grid; }
.entitlement-row div span { color: var(--ink-soft); font-size: 13px; }
.entitlement-row > a { color: var(--blue); font-weight: 650; }
.status-label { padding: 4px 8px; border-radius: 999px; background: var(--green-soft); color: #08764e; font-size: 11px; font-weight: 720; text-transform: uppercase; }
.status-label--revoked, .status-label--expired { background: #fff1f3; color: var(--red); }
.empty-state { min-height: 130px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ink-soft); }
.empty-state .ui-icon { width: 34px; height: 34px; }
.empty-state h3 { margin: 0; color: var(--ink); }
.empty-state p { margin: 2px 0 0; }
.token-reveal { margin-top: 30px; padding: 25px 28px; border-color: #c6e8da; background: #f7fcf9; }
.token-copy { margin: 16px 0 8px; display: flex; gap: 10px; }
.token-copy code { min-width: 0; padding: 11px 13px; flex: 1; overflow: auto; border: 1px solid #cde5da; border-radius: var(--radius-sm); background: #fff; }
.token-reveal > p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.admin-page { width: min(calc(100% - 48px), 1320px); }
.stats-row { margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row div { padding: 20px 22px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.stats-row div:last-child { border-right: 0; }
.stats-row span { color: var(--ink-faint); font-size: 12px; }
.stats-row strong { font-size: 26px; line-height: 1.2; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.admin-panel { padding: 26px; }
.admin-panel--wide { grid-column: 1 / -1; }
.redis-panel { margin-bottom: 22px; }
.redis-state { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.redis-state--online { background: var(--green-soft); color: var(--green); }
.redis-state--offline { background: #fff1f3; color: var(--red); }
.redis-summary { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.redis-summary > div { min-width: 0; padding: 15px 18px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.redis-summary > div:last-child { border-right: 0; }
.redis-summary .ui-icon { width: 20px; height: 20px; margin-bottom: 5px; }
.redis-summary span { color: var(--ink-faint); font-size: 11px; }
.redis-summary strong { overflow-wrap: anywhere; font-size: 14px; }
.redis-config-form { grid-template-columns: repeat(4, 1fr); }
.redis-config-form .checkbox-field { align-self: center; display: flex; align-items: center; gap: 9px; }
.checkbox-field input[type="checkbox"] { width: 18px; min-height: 18px; margin: 0; accent-color: var(--blue); }
.checkbox-field span { color: var(--ink); font-size: 13px; font-weight: 650; }
.redis-cache-actions { margin-top: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.redis-cache-actions > div { display: grid; }
.redis-cache-actions span { color: var(--ink-soft); font-size: 12px; }
.button--danger { background: var(--red); color: #fff; }
.button--danger:hover { background: #9f2533; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.cache-coverage { margin-top: 26px; }
.cache-coverage > .section-heading { margin-bottom: 10px; }
.cache-coverage > div:not(.section-heading) { min-height: 48px; padding: 9px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 160px minmax(0, 1fr) 110px; align-items: center; gap: 18px; }
.cache-coverage span { color: var(--ink-soft); font-size: 12px; }
.cache-coverage code { color: var(--ink-faint); text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: end; gap: 0 16px; }
.form-grid label { margin: 0 0 15px; }
.form-grid .button { justify-self: start; }
.form-grid__wide { grid-column: 1 / -1; }
.form-grid--release { grid-template-columns: 1fr 1fr 1.4fr 1.6fr auto; gap: 14px; }
.form-grid--release .button { margin-bottom: 15px; white-space: nowrap; }
.admin-table-section { margin-top: 24px; padding: 25px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); color: var(--ink-faint); font-size: 11px; text-align: left; letter-spacing: .04em; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: #3b4b65; }
td strong, td span { display: block; }
td span:not(.status-label) { color: var(--ink-faint); font-size: 11px; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-weight: 650; }
.text-button--danger { color: var(--red); }
.admin-bottom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.simple-list { border-top: 1px solid var(--line); }
.simple-list > div { min-height: 65px; padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.simple-list > div > div { display: grid; }
.simple-list span { color: var(--ink-faint); font-size: 11px; }
.simple-list .ui-icon { width: 24px; height: 24px; }
.compact-entitlements { margin-top: 20px; border-top: 1px solid var(--line); }
.compact-entitlements > div { min-height: 52px; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: 12px; }
.compact-entitlements span { display: grid; }
.compact-entitlements strong { color: var(--ink); }

.error-page { width: min(calc(100% - 48px), 720px); min-height: 65vh; margin: 0 auto; padding: 120px 0; text-align: center; }
.error-page h1 { margin: 4px 0 10px; font-size: 48px; letter-spacing: -1.7px; }
.error-page > p:not(.eyebrow) { margin: 0 auto 28px; color: var(--ink-soft); }
.error-page > div { display: flex; justify-content: center; gap: 10px; }

.site-footer { border-top: 1px solid var(--line); background: #f5f7fa; }
.site-footer__inner { width: min(calc(100% - 48px), var(--page)); min-height: 180px; margin: 0 auto; padding: 44px 0; display: flex; justify-content: space-between; gap: 40px; }
.brand--footer { font-size: 21px; }
.site-footer p { margin: 10px 0 0; color: var(--ink-faint); font-size: 13px; }
.site-footer nav { display: flex; align-items: start; gap: 24px; color: var(--ink-soft); font-size: 13px; }
.site-footer nav a:hover { color: var(--blue); }

@media (max-width: 1080px) {
  .site-header__inner { gap: 30px; }
  .primary-nav { gap: 22px; }
  .header-search { display: none; }
  .product-layout { grid-template-columns: 216px minmax(0, 1fr); }
  .product-content { padding: 34px 28px 68px; }
  .product-heading { align-items: start; }
  .browser-support { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .product-shot { min-height: 0; }
  .feature-ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
  .feature-ledger > div { min-height: 0; padding: 22px 18px; border-right: 1px solid var(--line); }
  .release-facts dl { grid-template-columns: repeat(2, 1fr); }
  .release-facts dl div:nth-child(2) { border-right: 0; }
  .release-facts dl div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-row { grid-template-columns: 1fr; }
  .project-row__meta { padding-left: 94px; }
  .form-grid--release { grid-template-columns: repeat(2, 1fr); }
  .redis-config-form { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .site-header__inner { width: min(calc(100% - 28px), var(--page)); height: 62px; gap: 0; }
  .brand { font-size: 22px; }
  .nav-toggle { margin-left: auto; padding: 7px 9px; display: inline-flex; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; }
  .primary-nav { position: absolute; top: 62px; right: 14px; left: 14px; padding: 10px; display: none; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-float); background: #fff; }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { min-height: 42px; padding: 6px 10px; border-radius: 7px; }
  .primary-nav a::after { display: none; }
  .primary-nav a.is-active { background: var(--blue-soft); }
  .header-actions { margin-left: 12px; }
  .header-actions .button, .header-actions .text-link, .account-chip span:last-child { display: none; }
  .release-strip__inner { width: calc(100% - 28px); }
  .release-strip p { display: none; }
  .page-shell { width: calc(100% - 32px); padding: 46px 0 70px; }
  .page-heading { align-items: start; flex-direction: column; }
  .project-row__identity { align-items: start; }
  .project-row__identity { width: 100%; gap: 16px; }
  .project-row__identity > img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 15px; }
  .project-row__identity p:not(.project-row__type) { overflow-wrap: anywhere; }
  .project-row__meta { padding-left: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
  .project-row__meta .button { grid-column: 1 / -1; }
  .product-layout { width: 100%; display: block; border: 0; }
  .product-sidebar { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .product-mark, .sidebar-related { display: none; }
  .product-nav { width: max-content; display: flex; gap: 4px; }
  .product-nav a { min-height: 40px; white-space: nowrap; }
  .product-content { padding: 30px 16px 60px; }
  .product-heading { display: block; }
  .product-heading__identity { align-items: start; gap: 15px; }
  .product-heading__identity > img { width: 66px; height: 66px; border-radius: 15px; }
  .product-title-row { display: block; }
  .product-title-row h1 { margin-bottom: 5px; font-size: 34px; letter-spacing: -1.2px; }
  .product-title-row span { display: inline-block; }
  .product-heading__identity p { font-size: 14px; }
  .entitlement-bar { align-items: stretch; flex-direction: column; }
  .entitlement-copy div { align-items: start; flex-direction: column; gap: 1px; }
  .entitlement-bar .button { width: 100%; }
  .feature-ledger { grid-template-columns: 1fr; }
  .release-facts dl { grid-template-columns: 1fr; }
  .release-facts dl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .release-facts dl div:last-child { border-bottom: 0; }
  .document-section > h1 { font-size: 36px; }
  .feature-table { grid-template-columns: 1fr; }
  .auth-shell { width: calc(100% - 32px); padding: 55px 0 75px; display: block; }
  .auth-intro { margin-bottom: 34px; }
  .auth-intro h1 { font-size: 42px; }
  .auth-form { padding: 24px 20px; }
  .account-heading { align-items: start; flex-direction: column; }
  .entitlement-row { grid-template-columns: 44px 1fr auto; }
  .entitlement-row > a { grid-column: 2 / -1; }
  .token-copy { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row div:nth-child(2) { border-right: 0; }
  .stats-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-grid, .admin-bottom-grid { grid-template-columns: 1fr; }
  .admin-panel--wide { grid-column: auto; }
  .form-grid, .form-grid--release { grid-template-columns: 1fr; }
  .redis-summary { grid-template-columns: repeat(2, 1fr); }
  .redis-summary > div:nth-child(2) { border-right: 0; }
  .redis-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .redis-cache-actions { align-items: stretch; flex-direction: column; }
  .redis-cache-actions .button { width: 100%; }
  .cache-coverage > div:not(.section-heading) { grid-template-columns: 1fr; gap: 1px; }
  .cache-coverage code { text-align: left; }
  .site-footer__inner { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
