:root {
    --blue: #4c68eb;
    --blue-dark: #3a55d8;
    --dark: #242830;
    --bg: #fbfbfb;
    --gray: #eeeeee;
    --text: #6b7280;
    --muted: #9ca3af;
    --blue-light: #eef0fd;
    --green: #2db87a;
    --yellow: #c8890a;
    --red: #d94040;
    --sky: #0a7de0;
    --purple: #7c3aed;
    --shadow: 0 1px 3px rgba(36, 40, 48, 0.05);
    --portal-frame-max: 87.5rem;
    --portal-reading-max: 53.75rem;
    --portal-page-gutter: 1.5rem;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--dark);
    font-family: Lexend, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; background: transparent; }
.svg-sprite { display: none; }
.icon { display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.portal-shell { display: flex; height: 100vh; overflow: hidden; background: var(--bg); }
.portal-sidebar { width: 16rem; flex-shrink: 0; background: var(--dark); color: #fff; }
.sidebar-inner { display: flex; min-height: 100%; flex-direction: column; }
.sidebar-logo { padding: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.sidebar-logo img { display: block; width: auto; height: 2.75rem; margin-left: -7px; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; overflow-y: auto; padding: 1.25rem .75rem; }
.sidebar-eyebrow { margin: 0 .75rem .75rem; color: rgba(255, 255, 255, 0.25); font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: .5rem; color: rgba(255, 255, 255, .5); font-size: .875rem; transition: color .15s, background .15s; }
.sidebar-link:hover { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .9); }
.sidebar-link.is-active { background: var(--blue); color: #fff; }
.sidebar-link span:nth-child(2) { flex: 1; }
.sidebar-badge { min-width: 1.25rem; border-radius: 999px; padding: .125rem .375rem; background: var(--blue); color: #fff; font-size: .75rem; text-align: center; }
.is-active .sidebar-badge { background: rgba(255, 255, 255, .25); }
.sidebar-footer { padding: .75rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, .25); font-size: .6875rem; font-weight: 300; }

.mobile-sidebar, .mobile-backdrop { display: none; }
.portal-main { display: flex; min-width: 0; flex: 1; flex-direction: column; overflow: hidden; }
.topbar { display: flex; height: 4rem; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 0 1.25rem; background: #fff; border-bottom: 1px solid var(--gray); }
.topbar-left { display: flex; align-items: center; gap: .75rem; }
.topbar h1 { margin: 0; color: var(--dark); font-size: .875rem; font-weight: 600; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; color: var(--text); padding: .5rem; }
.menu-button { display: none; margin-left: -.25rem; }
.profile-menu { position: relative; }
.profile-trigger { display: flex; align-items: center; gap: .5rem; border-radius: .5rem; padding: .375rem .625rem; color: var(--dark); transition: background .15s; }
.profile-trigger:hover, .profile-menu.is-open .profile-trigger { background: var(--gray); }
.avatar { display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(135deg, var(--blue), #7b8ff0); color: #fff; font-size: .75rem; font-weight: 600; }
.profile-copy { display: flex; flex-direction: column; align-items: flex-start; }
.profile-copy span { font-size: .875rem; font-weight: 500; line-height: 1.15; }
.profile-copy small { color: var(--text); font-size: .75rem; font-weight: 400; line-height: 1.15; }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; display: none; width: 14rem; border: 1px solid var(--gray); border-radius: .75rem; background: #fff; box-shadow: 0 16px 35px rgba(36,40,48,.12); padding: .375rem; }
.profile-menu.is-open .profile-dropdown { display: block; }
.profile-dropdown a { display: flex; align-items: center; gap: .5rem; border-radius: .5rem; color: var(--dark); padding: .625rem .75rem; font-size: .875rem; }
.profile-dropdown a:hover { background: var(--bg); }
.content { flex: 1; overflow-y: auto; scrollbar-gutter: stable; background: var(--bg); }

.page-frame { width: calc(100% - var(--portal-page-gutter) - var(--portal-page-gutter)); max-width: var(--portal-frame-max); margin-inline: auto; }
.page { padding-block: 1.5rem; }
.reading-column { width: 100%; max-width: var(--portal-reading-max); margin-inline: auto; }
.hero-card { position: relative; overflow: hidden; border-radius: 1rem; background: var(--dark); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 80% at 20% 50%, rgba(76,104,235,.4), transparent 60%), radial-gradient(ellipse 50% 50% at 85% 20%, rgba(94,234,145,.15), transparent 50%); pointer-events: none; }
.hero-content { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 1.75rem; }
.hero-date { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.4); font-size: .875rem; font-weight: 300; margin-bottom: .75rem; }
.hero-card h2 { margin: 0 0 .375rem; color: #fff; font-size: 1.55rem; line-height: 1.25; }
.hero-card p { margin: 0; color: rgba(255,255,255,.45); font-size: .9rem; font-weight: 300; }
.tier-box { --tier-accent: #f2c94c; --tier-soft: rgba(242,201,76,.14); display: grid; min-width: 21rem; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; border: 1px solid rgba(242,201,76,.28); border-radius: 1rem; background: linear-gradient(135deg, rgba(242,201,76,.14), rgba(255,255,255,.055)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(0,0,0,.14); padding: 1.125rem 1.25rem; color: #fff; }
.tier-box--silver { --tier-accent: #dce4ee; --tier-soft: rgba(220,228,238,.14); border-color: rgba(220,228,238,.3); background: linear-gradient(135deg, rgba(220,228,238,.16), rgba(255,255,255,.05)); }
.tier-box--bronze { --tier-accent: #df9865; --tier-soft: rgba(223,152,101,.15); border-color: rgba(223,152,101,.3); background: linear-gradient(135deg, rgba(223,152,101,.16), rgba(255,255,255,.05)); }
.tier-emblem { display: inline-flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--tier-accent) 45%, transparent); border-radius: 50%; background: var(--tier-soft); color: var(--tier-accent); box-shadow: 0 0 24px var(--tier-soft); }
.tier-emblem .icon { fill: currentColor; }
.tier-copy { min-width: 0; }
.tier-eyebrow { display: block; margin-bottom: .2rem; color: rgba(255,255,255,.42); font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.tier-heading { display: flex; align-items: baseline; gap: .375rem; line-height: 1.15; }
.tier-heading strong { color: var(--tier-accent); font-size: 1.3rem; font-weight: 700; }
.tier-heading span { color: rgba(255,255,255,.82); font-size: .875rem; font-weight: 500; }
.tier-company { display: block; overflow: hidden; margin-top: .35rem; color: rgba(255,255,255,.58); font-size: .75rem; font-weight: 300; text-overflow: ellipsis; white-space: nowrap; }
.tier-rating { display: flex; align-self: end; gap: .2rem; color: rgba(255,255,255,.16); }
.tier-rating .icon { fill: currentColor; stroke-width: 1.5; }
.tier-rating .is-active { color: var(--tier-accent); }
.split-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.panel { border: 1px solid var(--gray); border-radius: .75rem; background: #fff; box-shadow: var(--shadow); }
.panel-span-2 { grid-column: span 2; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--gray); padding: 1.25rem 1.5rem 1rem; }
.panel-header h2, .panel h3, .section-title { margin: 0; color: var(--dark); font-size: 1rem; font-weight: 600; }
.link-action { display: flex; align-items: center; gap: .25rem; color: var(--blue); font-size: .875rem; }
.update-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; transition: background .15s; }
.update-row + .update-row { border-top: 1px solid var(--bg); }
.update-row:hover, .quick-link:hover { background: var(--bg); }
.update-row > div { flex: 1; min-width: 0; }
.update-cover { width: 8.5rem; flex: 0 0 8.5rem; overflow: hidden; aspect-ratio: 16 / 9; border-radius: .625rem; background: var(--gray); box-shadow: 0 5px 14px rgba(36,40,48,.12); }
.update-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.update-row:hover .update-cover img { transform: scale(1.035); }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .375rem; color: var(--muted); font-size: .75rem; font-weight: 300; }
.tag { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .125rem .5rem; font-size: .75rem; font-weight: 500; }
.tag-product-update { background: var(--blue-light); color: var(--blue); }
.tag-partner-program { background: #fff8e6; color: var(--yellow); }
.tag-event { background: #e8faf2; color: var(--green); }
.tag-security { background: #fff0f0; color: var(--red); }
.tag-resource { background: #e6f4ff; color: var(--sky); }
.tag-release-notes { background: #f3eeff; color: var(--purple); }
.tag-displays-hardware { background: #eef2ff; color: #4f46e5; }
.tag-company-news { background: #ecfeff; color: #0891b2; }
.tag-customer-cases { background: #f0fdf4; color: #16a34a; }
.update-row h3 { margin: 0 0 .25rem; color: var(--dark); font-size: .875rem; font-weight: 500; }
.update-row .news-excerpt { color: var(--text); font-size: .875rem; font-weight: 300; line-height: 1.45; }
.quick-links { padding: .75rem; }
.quick-link { display: flex; align-items: center; gap: .75rem; border-radius: .5rem; padding: .75rem; transition: background .15s; }
.quick-icon, .channel-icon, .file-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: .75rem; background: var(--gray); color: var(--text); }
.quick-icon { width: 2rem; height: 2rem; }
.quick-link span:nth-child(2) { flex: 1; min-width: 0; }
.quick-link strong, .resource-panel strong { display: block; color: var(--dark); font-size: .875rem; font-weight: 500; }
.quick-link small, .resource-panel small { display: block; overflow: hidden; color: var(--muted); font-size: .75rem; font-weight: 300; text-overflow: ellipsis; white-space: nowrap; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.5rem; border-radius: .75rem; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); padding: 1.875rem 2rem; color: #fff; }
.eyebrow-light { margin-bottom: .5rem; color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.cta-band h2 { margin: 0 0 .375rem; font-size: 1.25rem; }
.cta-band p { max-width: 40rem; margin: 0; color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 300; line-height: 1.6; }
.cta-actions { display: flex; gap: .75rem; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .625rem 1.25rem; font-size: .875rem; font-weight: 600; }
.button-white { background: #fff; color: var(--blue); }
.button-ghost { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; }
.button-primary { width: 100%; background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(76,104,235,.3); }
.button-secondary { border: 1px solid var(--gray); background: #fff; color: var(--text); }
.button.is-packing { cursor: wait; pointer-events: none; }
.button-spinner { width: 1rem; height: 1rem; flex: 0 0 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spinner .7s linear infinite; }
@keyframes button-spinner { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button-spinner { animation: none; } }
.page-action-button { width: auto; flex-shrink: 0; }

.portal-page-header { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gray); padding: .5rem .75rem; }
.portal-page-header-main { display: flex; min-width: 0; flex: 1 1 20rem; align-items: center; gap: .875rem; }
.portal-page-header-icon { display: inline-flex; width: 2rem; height: 2rem; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid rgba(76,104,235,.12); border-radius: .625rem; background: var(--blue-light); color: var(--blue); }
.portal-page-header-copy { min-width: 0; }
.portal-page-header-section { display: block; overflow: hidden; margin-bottom: .1rem; color: var(--blue); font-size: .625rem; font-weight: 700; letter-spacing: .12em; line-height: 1.1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.portal-page-header-section a { color: inherit; }
.portal-page-header-section a:hover { color: var(--blue-dark); }
.portal-page-header-title-line { display: flex; min-width: 0; align-items: center; gap: .5rem; }
.portal-page-header-title-line h2 { overflow: hidden; margin: 0; color: var(--dark); font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.portal-page-header-copy > p { overflow: hidden; max-width: 52rem; margin: .1rem 0 0; color: var(--text); font-size: .75rem; font-weight: 300; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.portal-page-header-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: .5rem; }
.portal-page-header-actions .button { padding: .5rem .9rem; font-size: .8125rem; }
.portal-page-header-actions .search-field input { height: 2.25rem; }
.toolbar { display: flex; align-items: center; gap: .5rem; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: .625rem; color: var(--muted); }
.search-field input { width: 13rem; border: 1px solid var(--gray); border-radius: 999px; outline: none; background: #fff; color: var(--dark); padding: .5rem .75rem .5rem 2rem; font-size: .875rem; font-weight: 300; }
input:focus, select:focus, textarea:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(76,104,235,.09); }
.segmented { display: flex; align-items: center; gap: 2px; border: 1px solid var(--gray); border-radius: 999px; background: #fff; padding: .25rem; }
.segmented button { display: inline-flex; border-radius: 999px; color: var(--muted); padding: .375rem; }
.segmented button.is-active { background: var(--gray); color: var(--dark); }
.filter-pills { display: flex; gap: .5rem; overflow-x: auto; margin-bottom: 1.5rem; }
.filter-pills.wrap { flex-wrap: wrap; }
.filter-pills button { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; border: 1px solid var(--gray); border-radius: 999px; background: #fff; color: var(--text); padding: .375rem .875rem; font-size: .75rem; font-weight: 300; white-space: nowrap; }
.filter-pills button.is-active { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(76,104,235,.3); }
.filter-pills span { border-radius: 999px; background: var(--gray); color: var(--text); padding: .125rem .375rem; }
.filter-pills .is-active span { background: rgba(255,255,255,.25); color: #fff; }
.empty-state, .placeholder-state { padding: 4rem 1rem; color: var(--muted); text-align: center; font-size: .875rem; font-weight: 300; }
.empty-state .icon, .placeholder-state .icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin: 0 auto .75rem; border-radius: .75rem; background: var(--gray); color: var(--muted); padding: .875rem; }
.empty-state strong, .placeholder-state h3 { display: block; margin: 0 0 .25rem; color: var(--dark); font-weight: 600; }
.compact-empty { padding: 2rem 1rem; }
.compact-empty .icon { width: 2.5rem; height: 2.5rem; padding: .7rem; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.asset-card { display: flex; flex-direction: column; border: 1px solid var(--gray); border-radius: .75rem; background: #fff; box-shadow: var(--shadow); padding: 1.25rem; transition: box-shadow .15s; }
.asset-card:hover, .news-card:hover, .channel-card:hover { box-shadow: 0 8px 22px rgba(36,40,48,.09); }
.asset-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.asset-card-labels { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; min-width: 0; }
.asset-card-date { display: flex; flex-shrink: 0; align-items: center; gap: .25rem; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.asset-edit-link { width: 1.75rem; height: 1.75rem; border: 1px solid var(--gray); background: #fff; color: var(--text); padding: .35rem; }
.asset-edit-link:hover { border-color: rgba(76,104,235,.3); background: var(--blue-light); color: var(--blue); }
.file-icon { width: 2.75rem; height: 2.75rem; }
.file-pdf { background: #fef2f2; color: #dc2626; }
.file-zip { background: #faf5ff; color: #9333ea; }
.file-png { background: #eff6ff; color: #2563eb; }
.file-pptx { background: #fff7ed; color: #ea580c; }
.file-xlsx { background: #ecfdf5; color: #059669; }
.file-docx, .file-svg { background: #f0f9ff; color: #0284c7; }
.featured-badge, .new-badge, .draft-badge { border-radius: 999px; padding: .125rem .5rem; font-size: .75rem; font-weight: 600; }
.featured-badge, .new-badge { background: var(--blue-light); color: var(--blue); }
.draft-badge { background: #fff7ed; color: #b45309; }
.asset-card h3 { margin: 0 0 .375rem; font-size: 1rem; font-weight: 600; }
.asset-card p { flex: 1; margin: 0 0 1rem; color: var(--text); font-size: .875rem; font-weight: 300; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.asset-preview { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--gray); border-radius: .5rem; background-color: #f8fafc; background-image: linear-gradient(45deg, rgba(156,163,175,.08) 25%, transparent 25%), linear-gradient(-45deg, rgba(156,163,175,.08) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(156,163,175,.08) 75%), linear-gradient(-45deg, transparent 75%, rgba(156,163,175,.08) 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; margin: 0 0 1rem; }
.asset-preview img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .15s ease; }
.asset-preview.is-loading img { opacity: 0; }
.asset-preview.is-loading::after { position: absolute; top: 50%; left: 50%; width: 1.5rem; height: 1.5rem; border: 3px solid rgba(76,104,235,.2); border-top-color: var(--blue); border-radius: 50%; content: ''; pointer-events: none; transform: translate(-50%, -50%); animation: asset-preview-spin .7s linear infinite; }
.asset-preview.is-error { display: flex; align-items: center; justify-content: center; }
.asset-preview-status { color: var(--muted); font-size: .75rem; font-weight: 500; }
@keyframes asset-preview-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .asset-preview.is-loading::after { animation: none; } }
.file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; border-top: 1px solid var(--bg); margin-bottom: 1rem; padding-top: .75rem; color: var(--muted); font-size: .75rem; }
.file-dimensions { white-space: nowrap; }
.file-type { border-radius: .25rem; padding: .125rem .375rem; font-size: .75rem; font-weight: 700; }
.file-collection { background: #fff7ed; color: #c2410c; }
.asset-card-footer { display: flex; align-items: center; gap: .5rem; }
.asset-card-footer .download-button { flex: 1 1 auto; min-width: 0; width: auto; }
.asset-card-footer .asset-edit-link { flex: 0 0 auto; width: 2.375rem; height: 2.375rem; }
.download-button { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; border-radius: 999px; background: var(--blue); color: #fff; padding: .625rem; font-size: .875rem; font-weight: 500; box-shadow: 0 2px 8px rgba(76,104,235,.3); }
.download-button.is-done { border: 1px solid rgba(94,234,145,.25); background: #e8faf2; color: var(--green); box-shadow: none; }
.download-button.mini { display: inline-flex; width: auto; background: var(--blue-light); color: var(--blue); padding: .375rem .875rem; box-shadow: none; font-size: .75rem; }
.asset-table-wrap { overflow-x: auto; border: 1px solid var(--gray); border-radius: .75rem; background: #fff; box-shadow: var(--shadow); }
.asset-table { width: 100%; border-collapse: collapse; }
.asset-table th { border-bottom: 1px solid var(--gray); color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; padding: .75rem 1.25rem; text-align: left; text-transform: uppercase; }
.asset-table th:last-child, .asset-table td:last-child { text-align: right; }
.asset-table td { padding: .875rem 1.25rem; color: var(--text); font-size: .875rem; }
.asset-table tr:hover { background: var(--bg); }
.row-file { display: flex; align-items: center; gap: .75rem; }
.row-file .file-icon { width: 2rem; height: 2rem; border-radius: .5rem; }
.row-file strong { display: block; color: var(--dark); font-weight: 500; }
.row-file small { display: block; max-width: 22rem; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.news-list { display: grid; gap: 1rem; }
.flash-message { border: 1px solid var(--gray); border-radius: .75rem; background: #fff; color: var(--text); margin-bottom: 1rem; padding: .75rem 1rem; font-size: .875rem; font-weight: 300; }
.flash-success { border-color: rgba(45,184,122,.25); background: #e8faf2; color: #157347; }
.flash-error { border-color: rgba(217,64,64,.25); background: #fff0f0; color: var(--red); }
.news-card { display: flex; align-items: flex-start; gap: 1rem; border: 1px solid var(--gray); border-radius: .75rem; background: #fff; box-shadow: var(--shadow); padding: 1.5rem; transition: box-shadow .15s; }
.news-card.is-unread { border-color: rgba(76,104,235,.25); }
.unread-dot { width: .5rem; height: .5rem; flex-shrink: 0; border-radius: 999px; margin-top: .5rem; background: transparent; }
.is-unread .unread-dot { background: var(--blue); }
.news-card-body { flex: 1; min-width: 0; }
.news-cover { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: .75rem; background: var(--gray); box-shadow: 0 8px 24px rgba(36,40,48,.1); margin: .875rem 0 1.125rem; }
.news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-cover:hover img { transform: scale(1.015); }
.news-cover img { transition: transform .2s ease; }
.news-meta-line { justify-content: space-between; }
.news-meta-main { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.news-edit-button { border-radius: 999px; color: var(--blue); padding: .25rem .625rem; font-size: .75rem; font-weight: 500; }
.news-edit-button:hover { background: var(--blue-light); }
.news-card h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; }
.news-card-title-link { color: var(--dark); }
.news-card-title-link:hover { color: var(--blue); }
.news-card p { margin: 0; color: var(--text); font-size: .875rem; font-weight: 300; line-height: 1.6; }
.news-excerpt { margin: 0; }
.news-markdown { color: var(--text); font-size: .875rem; font-weight: 300; line-height: 1.6; }
.news-markdown p, .news-markdown ul, .news-markdown ol, .news-markdown h4, .news-markdown h5, .news-markdown h6 { margin: 0; }
.news-markdown p + p, .news-markdown p + ul, .news-markdown p + ol, .news-markdown ul + p, .news-markdown ol + p, .news-markdown h4 + p, .news-markdown h5 + p, .news-markdown h6 + p { margin-top: .75rem; }
.news-markdown ul, .news-markdown ol { padding-left: 1.25rem; }
.news-markdown li + li { margin-top: .35rem; }
.news-markdown h4, .news-markdown h5, .news-markdown h6 { color: var(--dark); font-weight: 600; line-height: 1.35; margin-top: 1rem;}
.news-markdown h4 { font-size: .95rem; }
.news-markdown h5, .news-markdown h6 { font-size: .9rem; }
.news-markdown a { color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.news-markdown code { border-radius: .25rem; background: var(--gray); color: var(--dark); padding: .05rem .25rem; font-size: .8125rem; }
.text-toggle { display: flex; align-items: center; gap: .375rem; margin-top: 1rem; color: var(--blue); font-size: .875rem; font-weight: 500; }
.text-toggle:hover { color: var(--blue-dark); }
.news-article { border: 1px solid var(--gray); border-radius: 1rem; background: #fff; box-shadow: var(--shadow); padding: 2rem; }
.news-article-excerpt { margin-bottom: 1.5rem; color: var(--dark); font-size: 1rem; line-height: 1.7; }
.news-article-cover { overflow: hidden; aspect-ratio: 16 / 9; border-radius: .875rem; background: var(--gray); box-shadow: 0 10px 28px rgba(36,40,48,.12); margin: 0 0 2rem; }
.news-article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-article-content { font-size: 1rem; }
.news-article-content h4, .news-article-content h5, .news-article-content h6 { margin: 1.75rem 0 .75rem; color: var(--dark); font-weight: 700; line-height: 1.35; }
.news-article-content h4 { font-size: 1.2rem; }
.news-article-content h5 { font-size: 1.1rem; }
.news-article-content h6 { font-size: 1rem; }
.news-article-navigation { margin-top: 1.25rem; border: 1px solid var(--gray); border-radius: .875rem; background: #fff; box-shadow: var(--shadow); padding: 1.25rem; }
.news-article-navigation h2 { margin: 0 0 .75rem; color: var(--dark); font-size: .875rem; font-weight: 700; }
.news-article-navigation-list { display: grid; }
.news-article-navigation-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: .5rem; color: var(--dark); padding: .75rem; }
.news-article-navigation-list a + a { border-top: 1px solid rgba(223, 225, 230, .75); }
.news-article-navigation-list a:hover { background: var(--bg); color: var(--blue); }
.news-article-navigation-list a > strong { min-width: 0; font-size: .875rem; font-weight: 500; }
.news-article-navigation-meta { display: flex; flex-shrink: 0; align-items: center; gap: .625rem; }
.news-article-navigation-meta .tag { flex-shrink: 0; }
.news-article-navigation-date { flex-shrink: 0; color: var(--muted); font-size: .75rem; font-weight: 300; }
.news-article-back { display: inline-flex; align-items: center; gap: .375rem; margin-top: 1.25rem; color: var(--blue); font-size: .875rem; font-weight: 500; }
.news-article-back:hover { color: var(--blue-dark); }
.modal-open { overflow: hidden; }
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.48); }
.modal-dialog { position: relative; z-index: 1; width: min(100%, 34rem); max-height: min(42rem, calc(100vh - 2rem)); overflow-y: auto; border: 1px solid var(--gray); border-radius: .875rem; background: #fff; box-shadow: 0 24px 60px rgba(36,40,48,.22); }
.news-update-modal-dialog { width: min(100%, 52rem); max-height: calc(100vh - 2rem); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--gray); padding: 1.25rem 1.5rem 1rem; }
.modal-header h3 { margin: 0; color: var(--dark); font-size: 1rem; font-weight: 700; }
.modal-header p { margin: .25rem 0 0; color: var(--text); font-size: .8125rem; font-weight: 300; }
.news-update-form { display: grid; gap: 1rem; padding: 1.5rem; }
.news-update-form label { display: grid; gap: .375rem; color: var(--text); font-size: .875rem; font-weight: 500; }
.news-update-form input, .news-update-form select, .news-update-form textarea { width: 100%; border: 1px solid var(--gray); border-radius: .75rem; outline: none; background: var(--bg); color: var(--dark); padding: .625rem .875rem; font-size: .875rem; font-weight: 300; resize: vertical; }
.news-update-form label > small { color: var(--muted); font-size: .75rem; font-weight: 300; }
.field-label { display: flex; align-items: center; gap: .5rem; }
.optional-label { border-radius: 999px; background: var(--gray); color: var(--muted); padding: .1rem .4rem; font-size: .6875rem; font-weight: 500; }
.news-cover-editor { display: grid; gap: .75rem; border: 1px solid var(--gray); border-radius: .75rem; background: var(--bg); padding: .75rem; }
.news-cover-editor-preview { overflow: hidden; aspect-ratio: 16 / 9; border-radius: .625rem; background: var(--gray); }
.news-cover-editor-preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
.news-cover-editor.is-removing .news-cover-editor-preview img { opacity: .25; }
.news-cover-remove-option { display: flex !important; grid-template-columns: none; align-items: center; gap: .5rem !important; color: var(--red) !important; cursor: pointer; }
.news-cover-remove-option input { width: auto; margin: 0; padding: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: .75rem; border-top: 1px solid var(--bg); margin-top: .25rem; padding-top: 1.25rem; }
.modal-actions .button { width: auto; }
.news-remove-button { margin-right: auto; }
.news-delete-confirmation { display: grid; gap: 1rem; border: 1px solid rgba(217,64,64,.25); border-radius: .75rem; background: #fff0f0; padding: 1rem; }
.news-delete-confirmation p { margin: 0; color: var(--red); font-size: .8125rem; font-weight: 300; line-height: 1.5; }
.news-delete-confirmation-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.news-delete-confirmation-actions .button { width: auto; }

.docs-page { min-height: 100%; }
.docs-shell { display: flex; align-items: flex-start; overflow: visible; container-name: documentation; container-type: inline-size; }
.docs-sidebar { width: 16rem; flex-shrink: 0; overflow: visible; padding: 0 1rem 0 0; }
.docs-search-results { display: grid; gap: .375rem; padding: 0; }
.docs-search-result { display: grid; gap: .25rem; border-radius: .5rem; padding: .625rem .75rem; color: var(--dark); transition: background .15s; }
.docs-search-result:hover { background: var(--blue-light); }
.docs-search-result-title { overflow: hidden; font-size: .875rem; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.docs-search-result-category { color: var(--blue); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.docs-search-result-snippet { color: var(--text); font-size: .75rem; font-weight: 300; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.docs-search-empty { margin: 0; border: 1px dashed var(--gray); border-radius: .5rem; color: var(--muted); padding: .875rem; font-size: .8125rem; font-weight: 300; line-height: 1.45; text-align: center; }
.docs-nav { padding: 0; }
.docs-category-trigger { display: flex; align-items: center; gap: .625rem; width: 100%; border-radius: .5rem; color: var(--text); padding: .5rem .75rem; font-size: .875rem; text-align: left; transition: background .15s; }
.docs-category-trigger:hover { background: var(--bg); }
.docs-category-trigger.has-active { color: var(--dark); font-weight: 500; }
.docs-category-trigger span { flex: 1; }
.docs-category-items { display: none; margin: .125rem 0 .25rem .75rem; border-left: 2px solid var(--gray); padding-left: 1rem; }
.docs-category-items.is-open { display: block; }
.docs-nav-group { margin: .375rem 0 .5rem; }
.docs-nav-group-trigger { display: flex; align-items: center; gap: .375rem; width: 100%; border-radius: .375rem; color: var(--dark); padding: .375rem .75rem .25rem; font-size: .75rem; font-weight: 600; text-align: left; }
.docs-nav-group-trigger:hover { background: var(--bg); }
.docs-nav-group-trigger span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-nav-group-trigger.has-active { color: var(--blue); }
.docs-nav-group-items { display: none; }
.docs-nav-group-items.is-open { display: block; }
.docs-category-items a { display: block; border-radius: .375rem; color: var(--text); padding: .375rem .75rem; font-size: .875rem; font-weight: 300; }
.docs-nav-group a { margin-left: .5rem; font-size: .8125rem; }
.docs-category-items a.is-active { background: var(--blue-light); color: var(--blue); font-weight: 500; }
.docs-article { min-width: 0; flex: 1; overflow: visible; }
.docs-article-inner { width: 100%; padding: 1rem 2.5rem; }
.breadcrumb { display: flex; align-items: center; gap: .375rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .75rem; }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); }
.article-header { margin-bottom: 2rem; }
.article-header h1 { margin: 0 0 1rem; color: var(--dark); font-size: 1.75rem; line-height: 1.2; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .75rem; }
.article-meta span { display: flex; align-items: center; gap: .375rem; }
.prose { color: var(--text); font-size: .9rem; font-weight: 300; line-height: 1.75; }
.prose h2 { display: flex; align-items: center; gap: .5rem; margin: 2rem 0 .75rem; border-bottom: 1px solid var(--gray); padding-bottom: .5rem; color: var(--dark); font-size: 1.1rem; font-weight: 700; }
.prose h3 { margin: 1.5rem 0 .625rem; color: var(--dark); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.prose h4 { margin: 1.25rem 0 .5rem; color: var(--dark); font-size: .925rem; font-weight: 600; line-height: 1.4; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li + li { margin-top: .5rem; }
.prose a { color: var(--blue); font-weight: 400; }
.prose a:hover { color: var(--blue-dark); }
.prose img { display: block; max-width: 100%; height: auto; border: 1px solid var(--gray); border-radius: .75rem; margin: 1rem 0; background: #fff; }
.docs-article .prose img[alt$="cover image"] { width: auto; max-width: min(100%, 30rem); max-height: 22rem; object-fit: contain; margin: 1.5rem auto 2rem; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; border: 1px solid var(--gray); border-radius: .75rem; margin: 1rem 0; background: #fff; font-size: .8125rem; }
.prose th, .prose td { border-bottom: 1px solid var(--gray); padding: .625rem .75rem; text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--dark); font-weight: 600; }
.prose blockquote { margin: 1rem 0; border-left: 3px solid var(--blue); background: var(--blue-light); color: var(--dark); padding: .75rem 1rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { border-radius: .25rem; background: #f3f3f5; color: var(--dark); padding: .125rem .375rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
.prose pre { overflow-x: auto; border: 1px solid #3a404e; border-radius: .75rem; margin: 1rem 0; background: var(--dark); color: rgba(255,255,255,.8); padding: 1rem; font-size: .75rem; line-height: 1.6; }
.prose pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.docs-mermaid { overflow-x: auto; border: 1px solid var(--gray); border-radius: .75rem; margin: 1.5rem 0; background: #fff; padding: 1rem; text-align: center; }
.docs-mermaid svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.docs-mermaid-error { border-color: #dc2626 !important; }
.code-block { overflow: hidden; border: 1px solid #3a404e; border-radius: .75rem; margin: 1rem 0; }
.code-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #3a404e; background: #1e2330; color: rgba(255,255,255,.4); padding: .5rem 1rem; font-size: .75rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-header button { display: flex; align-items: center; gap: .25rem; color: rgba(255,255,255,.4); font-size: .75rem; }
.code-header button.is-copied { color: #5eea91; }
.code-block pre { margin: 0; overflow-x: auto; background: var(--dark); color: rgba(255,255,255,.8); padding: 1rem; font-size: .75rem; line-height: 1.6; }
.mobile-toc { display: none; overflow: hidden; border: 1px solid var(--gray); border-radius: .75rem; background: #fff; margin-bottom: 1.5rem; }
.mobile-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: .875rem 1rem; }
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc summary .icon { flex: 0 0 auto; color: var(--muted); transition: transform .15s; }
.mobile-toc[open] .mobile-toc-chevron { transform: rotate(180deg); }
.mobile-toc-nav { max-height: 18rem; overflow-y: auto; border-top: 1px solid var(--gray); padding: .75rem 1rem; }
.toc-sidebar { width: 13rem; flex-shrink: 0; overflow: visible; padding: 0 0 0 1rem; }
.toc-box { position: static; }
.mobile-toc summary strong, .related h2 { display: block; margin: 0 0 .75rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mobile-toc summary strong { margin: 0; }
.toc-box a, .mobile-toc-nav a { display: block; border-radius: .4rem; color: var(--text); padding: .375rem .5rem; font-size: .75rem; font-weight: 300; line-height: 1.4; transition: background .15s, color .15s; }
.toc-box a:hover { background: var(--blue-light); color: var(--blue); }
.toc-indent { padding-left: 1.25rem !important; }
.related { margin-top: 3rem; border-top: 1px solid var(--gray); padding-top: 2rem; }
.related a { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--gray); border-radius: .75rem; margin-top: .5rem; padding: .75rem; color: var(--text); font-size: .875rem; font-weight: 300; }
.related a:hover { border-color: rgba(76,104,235,.3); background: var(--blue-light); }
.related a span { flex: 1; }
.article-feedback { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; border-top: 1px solid var(--gray); padding-top: 1.5rem; color: var(--muted); font-size: .75rem; }
.article-feedback button { border: 1px solid var(--gray); border-radius: 999px; color: var(--text); padding: .375rem .75rem; font-size: .75rem; font-weight: 300; }

.content-page-layout { display: grid; width: 100%; grid-template-columns: 15rem minmax(0, 1fr); align-items: start; gap: 1.5rem; margin: 0; }
.content-page-outline { position: sticky; top: 1.5rem; }
.content-page-outline nav, .docs-sidebar-panel, .toc-box { border: 1px solid var(--gray); border-radius: .875rem; background: #fff; box-shadow: var(--shadow); padding: 1.125rem; }
.content-page-outline strong, .docs-sidebar-title, .toc-box strong { display: block; margin-bottom: .75rem; color: var(--dark); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.content-page-toc-list { margin: 0; padding: 0; list-style: none; }
.content-page-toc-list ul { margin: .25rem 0 .35rem; padding: 0 0 0 .75rem; list-style: none; }
.content-page-toc-list li + li { margin-top: .125rem; }
.content-page-toc-list a { display: block; border-radius: .4rem; color: var(--text); padding: .375rem .5rem; font-size: .75rem; font-weight: 300; line-height: 1.4; transition: background .15s, color .15s; }
.content-page-toc-list ul a { color: var(--muted); font-size: .7rem; }
.content-page-toc-list a:hover { background: var(--blue-light); color: var(--blue); }
.content-page-toc-list a:focus-visible, .content-page-prose a:focus-visible, .content-page-mobile-outline summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.content-page-article { min-width: 0; border: 1px solid var(--gray); border-radius: 1rem; background: #fff; box-shadow: var(--shadow); padding: 2.75rem 3rem; }
.content-page-mobile-outline { display: none; }
.content-page-prose { color: var(--text); font-size: .9375rem; font-weight: 300; line-height: 1.8; }
.content-page-prose > p:first-child { color: var(--dark); font-size: 1.075rem; line-height: 1.75; }
.content-page-prose h2, .content-page-prose h3 { position: relative; color: var(--dark); scroll-margin-top: 1.5rem; }
.content-page-prose h2 { margin: 3rem 0 1rem; border-bottom: 1px solid var(--gray); padding-bottom: .75rem; font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.content-page-prose h3 { margin: 2rem 0 .75rem; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.content-page-prose p { margin: 0 0 1.125rem; }
.content-page-prose ul, .content-page-prose ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.content-page-prose ul ul, .content-page-prose ol ol, .content-page-prose ul ol, .content-page-prose ol ul { margin: .5rem 0 0; }
.content-page-prose li { padding-left: .15rem; }
.content-page-prose li + li { margin-top: .45rem; }
.content-page-prose li::marker { color: var(--blue); }
.content-page-prose strong { color: var(--dark); font-weight: 600; }
.content-page-prose a { color: var(--blue); font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-page-prose a:hover { color: var(--blue-dark); }
.content-page-prose hr { height: 1px; border: 0; background: var(--gray); margin: 2.5rem 0; }
.content-page-prose blockquote { margin: 1.5rem 0; border-left: 3px solid var(--blue); border-radius: 0 .75rem .75rem 0; background: var(--blue-light); color: var(--dark); padding: 1rem 1.125rem; }
.content-page-prose blockquote p:last-child { margin-bottom: 0; }
.content-page-prose code { border-radius: .25rem; background: #f3f3f5; color: var(--dark); padding: .125rem .35rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84em; }
.content-page-prose pre { overflow-x: auto; border-radius: .75rem; background: var(--dark); color: rgba(255,255,255,.84); padding: 1rem; line-height: 1.6; }
.content-page-prose pre code { background: transparent; color: inherit; padding: 0; }
.content-page-prose del { color: var(--muted); }
.content-page-prose .heading-permalink { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.content-page-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--gray); border-radius: .875rem; margin: 1.25rem 0 1.75rem; background: #fff; box-shadow: 0 8px 24px rgba(36,40,48,.05); }
.content-page-table-wrap table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .8125rem; line-height: 1.55; }
.content-page-table-wrap th, .content-page-table-wrap td { border-right: 1px solid var(--gray); border-bottom: 1px solid var(--gray); padding: .8rem .875rem; text-align: left; vertical-align: top; }
.content-page-table-wrap th:last-child, .content-page-table-wrap td:last-child { border-right: 0; }
.content-page-table-wrap tbody tr:last-child td { border-bottom: 0; }
.content-page-table-wrap thead th { background: var(--dark); color: #fff; font-weight: 600; }
.content-page-table-wrap thead th:first-child { position: sticky; left: 0; z-index: 2; }
.content-page-table-wrap tbody td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; color: var(--dark); box-shadow: 5px 0 12px rgba(36,40,48,.04); }
.content-page-table-wrap tbody tr:nth-child(even) td { background: #fafafa; }
.content-page-table-wrap tbody tr:hover td { background: var(--blue-light); }

.section-title { margin: 2rem 0 1rem; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.asset-collection-grid { margin-bottom: 1.5rem; }
.asset-collection-card { border-color: rgba(76,104,235,.14); background: #f8f9ff; color: inherit; }
.asset-collection-card .download-button { border: 1px solid #dfe2e7; background: #eef0f3; color: var(--dark); box-shadow: none; }
.asset-admin-grid { align-items: start; }
.asset-admin-form .button-primary { width: auto; justify-self: start; }
.checkbox-list { display: grid; gap: .5rem; border: 1px solid var(--gray); border-radius: .75rem; margin: 0; padding: .875rem; }
.checkbox-list legend { color: var(--text); font-size: .875rem; font-weight: 500; padding: 0 .25rem; }
.checkbox-list label, .inline-check { display: flex !important; align-items: center; gap: .5rem; color: var(--text); font-size: .8125rem; font-weight: 300; }
.checkbox-list input, .inline-check input { width: auto !important; box-shadow: none; }
.admin-list { display: grid; gap: .75rem; }
.admin-item { overflow: hidden; }
.admin-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 1rem 1.25rem; }
.admin-item summary::-webkit-details-marker { display: none; }
.admin-item summary strong { display: block; color: var(--dark); font-size: .9375rem; font-weight: 600; }
.admin-item summary small, .admin-item summary > span:last-child { color: var(--muted); font-size: .75rem; font-weight: 300; }
.admin-item-body { display: grid; gap: 1rem; border-top: 1px solid var(--gray); padding: 1rem; }
.compact-form { border: 1px solid var(--gray); border-radius: .75rem; background: var(--bg); }
.version-list { display: grid; gap: .5rem; }
.version-list form { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--gray); border-radius: .5rem; background: #fff; padding: .625rem .75rem; color: var(--text); font-size: .8125rem; }
.version-list strong { border-radius: 999px; background: #e8faf2; color: var(--green); padding: .125rem .5rem; font-size: .75rem; }
.danger-link { color: var(--red); }
.edit-version-list { margin-top: .75rem; }
.archive-form { margin-top: 1rem; }

.access-page { position: relative; display: grid; min-height: 100vh; overflow: hidden; place-items: center; background: var(--bg); padding: 2rem; }
.access-page::before, .access-page::after { position: absolute; width: 28rem; height: 28rem; border-radius: 50%; content: ''; filter: blur(2px); pointer-events: none; }
.access-page::before { top: -15rem; right: -9rem; background: radial-gradient(circle, rgba(76,104,235,.14), rgba(76,104,235,0) 70%); }
.access-page::after { bottom: -17rem; left: -10rem; background: radial-gradient(circle, rgba(45,184,122,.1), rgba(45,184,122,0) 70%); }
.access-card { position: relative; z-index: 1; display: grid; width: min(100%, 55rem); min-height: 34rem; overflow: hidden; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--gray); border-radius: 1.25rem; background: #fff; box-shadow: 0 28px 70px rgba(36,40,48,.12); }
.access-brand-panel { position: relative; display: flex; overflow: hidden; flex-direction: column; background: var(--dark); color: #fff; padding: 2.25rem; }
.access-brand-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 65% at 15% 45%, rgba(76,104,235,.5), transparent 65%), radial-gradient(ellipse 55% 40% at 90% 95%, rgba(94,234,145,.15), transparent 60%); pointer-events: none; }
.access-logo { position: relative; display: block; width: auto; height: 3rem; align-self: flex-start; margin-left: -.45rem; }
.access-brand-copy { position: relative; margin-block: auto; padding-block: 3rem; }
.access-brand-eyebrow, .access-eyebrow { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.access-brand-eyebrow { margin-bottom: .875rem; color: rgba(255,255,255,.45); }
.access-brand-copy h2 { max-width: 20rem; margin: 0 0 .875rem; color: #fff; font-size: 1.7rem; line-height: 1.28; }
.access-brand-copy p { max-width: 19rem; margin: 0; color: rgba(255,255,255,.52); font-size: .875rem; font-weight: 300; line-height: 1.65; }
.access-security-note { position: relative; display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.4); font-size: .75rem; font-weight: 300; }
.access-content { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem; }
.access-icon { display: inline-flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; border: 1px solid rgba(76,104,235,.14); border-radius: 1rem; margin-bottom: 1.5rem; background: var(--blue-light); color: var(--blue); }
.access-eyebrow { margin-bottom: .625rem; color: var(--blue); }
.access-content h1 { margin: 0 0 .875rem; color: var(--dark); font-size: 1.75rem; line-height: 1.25; }
.access-lead { margin: 0; color: var(--text); font-size: .9375rem; font-weight: 300; line-height: 1.65; }
.access-help { display: flex; align-items: flex-start; gap: .625rem; border: 1px solid var(--gray); border-radius: .75rem; margin-top: 1.5rem; background: var(--bg); color: var(--text); padding: .875rem 1rem; }
.access-help .icon { flex: 0 0 auto; margin-top: .125rem; color: var(--muted); }
.access-help p { margin: 0; font-size: .75rem; font-weight: 300; line-height: 1.55; }
.access-button { display: inline-flex; align-self: flex-start; align-items: center; justify-content: center; gap: .625rem; border-radius: 999px; margin-top: 1.75rem; background: var(--blue); box-shadow: 0 5px 16px rgba(76,104,235,.28); color: #fff; padding: .75rem 1.25rem; font-size: .8125rem; font-weight: 600; transition: background .15s, box-shadow .15s, transform .15s; }
.access-button:hover { background: var(--blue-dark); box-shadow: 0 7px 20px rgba(76,104,235,.34); transform: translateY(-1px); }
.access-button:focus-visible { outline: 3px solid rgba(76,104,235,.24); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 1279px) {
    .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container documentation (max-width: 73.999rem) {
    .toc-sidebar { display: none; }
    .mobile-toc { display: block; }
}

@media (max-width: 1023px) {
    .desktop-sidebar { display: none; }
    .menu-button { display: inline-flex; }
    .mobile-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: block; transform: translateX(-100%); transition: transform .2s; }
    .mobile-backdrop { position: fixed; inset: 0; z-index: 30; display: none; background: rgba(15, 23, 42, .42); }
    body.mobile-nav-open .mobile-sidebar { transform: translateX(0); }
    body.mobile-nav-open .mobile-backdrop { display: block; }
    .split-grid { grid-template-columns: 1fr; }
    .panel-span-2 { grid-column: auto; }
    .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .docs-shell { display: block; overflow: visible; }
    .docs-sidebar { display: none; }
    .docs-article { overflow: visible; }
    .content-page-layout { display: block; }
    .content-page-outline { display: none; }
    .content-page-mobile-outline { display: block; border: 1px solid var(--gray); border-radius: .75rem; background: var(--bg); margin-bottom: 2rem; }
    .content-page-mobile-outline summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; color: var(--dark); padding: .875rem 1rem; font-size: .8125rem; font-weight: 600; }
    .content-page-mobile-outline summary::-webkit-details-marker { display: none; }
    .content-page-mobile-outline summary span { display: flex; align-items: center; gap: .5rem; }
    .content-page-mobile-outline[open] .content-page-outline-chevron { transform: rotate(180deg); }
    .content-page-mobile-outline nav { border-top: 1px solid var(--gray); padding: .625rem; }
}

@media (max-width: 640px) {
    :root { --portal-page-gutter: 1rem; }
    .access-page { align-items: start; padding: 1rem; }
    .access-card { min-height: calc(100vh - 2rem); grid-template-columns: 1fr; }
    .access-brand-panel { min-height: 11.5rem; padding: 1.5rem; }
    .access-logo { height: 2.5rem; }
    .access-brand-copy { padding: 2rem 0 0; }
    .access-brand-copy h2 { margin: 0; font-size: 1.25rem; }
    .access-brand-copy p, .access-brand-eyebrow, .access-security-note { display: none; }
    .access-content { justify-content: flex-start; padding: 2rem 1.5rem; }
    .access-icon { width: 3rem; height: 3rem; margin-bottom: 1.25rem; }
    .access-content h1 { font-size: 1.5rem; }
    .access-button { width: 100%; align-self: stretch; }
    .profile-copy, .profile-trigger > .icon { display: none; }
    .page { padding-block: 1rem; }
    .hero-content, .cta-band { align-items: flex-start; flex-direction: column; }
    .portal-page-header { min-height: 0; align-items: flex-start; flex-direction: column; padding: .875rem; }
    .portal-page-header-main, .portal-page-header-actions { width: 100%; }
    .portal-page-header-main { flex: 0 1 auto; }
    .portal-page-header-copy > p { white-space: normal; }
    .portal-page-header-actions { justify-content: flex-start; }
    .portal-page-header-actions .toolbar { width: 100%; flex-wrap: wrap; }
    .portal-page-header-actions .search-field { flex: 1 1 100%; }
    .portal-page-header-actions .search-field input { width: 100%; }
    .portal-page-header-actions .page-action-button { width: auto; flex: 1 1 auto; }
    .tier-box { width: 100%; min-width: 0; grid-template-columns: auto minmax(0, 1fr); }
    .tier-company { overflow: visible; white-space: normal; }
    .tier-rating { grid-column: 2; align-self: auto; }
    .cta-actions, .toolbar { flex-wrap: wrap; }
    .asset-grid { grid-template-columns: 1fr; }
    .search-field input { width: min(100vw - 2rem, 18rem); }
    .asset-table-wrap { display: none !important; }
    .two-fields { grid-template-columns: 1fr; }
    .docs-article-inner { padding: 1.5rem 0; }
    .article-feedback { align-items: flex-start; flex-direction: column; }
    .page-action-button { width: 100%; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-dialog { width: 100%; max-height: calc(100vh - 1rem); border-radius: .875rem .875rem 0 0; }
    .update-cover { width: 6rem; flex-basis: 6rem; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .button { width: 100%; }
    .news-remove-button { margin-right: 0; }
    .news-delete-confirmation-actions { flex-direction: column-reverse; }
    .news-delete-confirmation-actions .button { width: 100%; }
    .news-article { padding: 1.25rem; }
    .news-article-cover { margin-bottom: 1.5rem; }
    .news-article-navigation-list a { align-items: flex-start; flex-direction: column; gap: .5rem; }
    .news-article-navigation-meta { flex-wrap: wrap; }
    .content-page-layout { margin-top: 0; }
    .content-page-article { border-radius: .875rem; padding: 1.25rem; }
    .content-page-mobile-outline { margin-bottom: 1.5rem; }
    .content-page-prose { font-size: .9rem; }
    .content-page-prose > p:first-child { font-size: 1rem; }
    .content-page-prose h2 { margin-top: 2.5rem; font-size: 1.2rem; }
    .content-page-table-wrap { margin-right: 0; margin-left: 0; }
}
