:root {
  color-scheme: dark;
  --bg: #030605;
  --surface: rgba(7, 16, 12, .86);
  --surface-2: rgba(11, 25, 18, .78);
  --line: rgba(141, 255, 196, .14);
  --line-bright: rgba(141, 255, 196, .32);
  --ink: #f3f8f4;
  --muted: #91a49a;
  --green: #91ff77;
  --lime: #91ff77;
  --mint: #67f6c3;
  --cyan: #61e6ff;
  --display: Inter, ui-sans-serif, system-ui, sans-serif;
  --amber: #ffd166;
  --red: #ff7c89;
  --shadow: 0 32px 90px rgba(0, 0, 0, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--ink); background:
  radial-gradient(circle at 12% 5%, rgba(71, 255, 154, .12), transparent 28%),
  radial-gradient(circle at 92% 18%, rgba(97, 230, 255, .09), transparent 31%),
  linear-gradient(155deg, #020504 0%, #06100b 48%, #020504 100%); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 12px 16px; border: 2px solid var(--mint); border-radius: 9px; color: #03100b; background: var(--mint); font-size: .75rem; font-weight: 900; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 3px; }
.ambient-grid { position: fixed; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 84px 84px; mask-image: radial-gradient(circle at center, black, transparent 82%); }
.boot-screen { min-height: 100vh; display: grid; place-content: center; gap: 12px; text-align: center; }
.boot-screen span, .eyebrow { color: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; }
.boot-screen strong { font-size: 1.2rem; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.login-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(34px, 6vw, 90px); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 15px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(145, 255, 119, .4); border-radius: 15px; color: #071008; background: linear-gradient(145deg, #d8ff80, #67f6c3); box-shadow: 0 0 42px rgba(103, 246, 195, .22); font-size: .78rem; font-weight: 950; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { letter-spacing: .12em; }
.brand-copy span { color: var(--green); font-size: .61rem; letter-spacing: .18em; }
.login-title { max-width: 840px; }
.login-title h1 { max-width: 760px; margin: 20px 0; font-size: clamp(4rem, 8.4vw, 9rem); line-height: .78; letter-spacing: -.085em; }
.login-title p { max-width: 650px; color: #aabbb1; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.65; }
.login-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.login-points div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .018); }
.login-points strong { display: block; margin-bottom: 7px; font-size: .8rem; }
.login-points span { color: var(--muted); font-size: .69rem; line-height: 1.45; }
.login-panel { display: grid; place-items: center; padding: clamp(24px, 5vw, 70px); background: rgba(1, 5, 3, .54); backdrop-filter: blur(26px); }
.login-card { width: min(100%, 460px); padding: clamp(28px, 5vw, 52px); border: 1px solid var(--line-bright); border-radius: 28px; background: linear-gradient(145deg, rgba(14, 31, 22, .94), rgba(5, 12, 8, .92)); box-shadow: var(--shadow); }
.login-card h2 { margin: 18px 0 8px; font-size: 2.4rem; letter-spacing: -.06em; }
.login-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #b7c7be; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
input, select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); outline: none; background: rgba(0, 0, 0, .25); }
input:focus, select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(103, 246, 195, .08); }
.primary, .secondary, .danger, .app-action, .nav-button { min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.primary, .app-action { color: #06110c; background: linear-gradient(135deg, #b8ff73, #67f6c3); }
.secondary, .nav-button { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .035); }
.nav-button.current { color: #071008; border-color: transparent; background: linear-gradient(135deg, #b8ff73, #67f6c3); }
.danger { color: #ffe2e5; border-color: rgba(255, 124, 137, .24); background: rgba(255, 124, 137, .08); }
.primary:hover, .app-action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-error, .form-success { min-height: 22px; margin: 4px 0 0; font-size: .72rem; }
.form-error { color: var(--red); }
.form-success { color: var(--mint); }
.shell { min-height: 100vh; }
.session-action-alert { position: relative; z-index: 19; width: min(1500px, calc(100% - 40px)); margin: 16px auto 0; padding: 14px 18px; border: 1px solid rgba(255, 124, 137, .42); border-radius: 12px; color: #ffe2e5; background: rgba(96, 17, 29, .84); box-shadow: 0 12px 38px rgba(0, 0, 0, .28); font-size: .75rem; font-weight: 750; }
[data-view-root]:focus { outline: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: 14px clamp(18px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(3, 8, 5, .88); backdrop-filter: blur(20px); }
.top-actions, .nav { display: flex; align-items: center; gap: 8px; }
.profile { display: grid; gap: 3px; text-align: right; }
.profile strong { font-size: .75rem; }
.profile span { color: var(--muted); font-size: .59rem; }
.page { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: clamp(35px, 6vw, 78px) 0 90px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; margin-bottom: 42px; }
.hero h1 { max-width: 920px; margin: 12px 0 12px; font-size: clamp(3.3rem, 7vw, 7.4rem); line-height: .83; letter-spacing: -.078em; }
.hero p { max-width: 760px; margin: 0; color: #a7b7ae; font-size: 1.02rem; line-height: 1.6; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 120px); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.hero-stats div { display: grid; gap: 5px; padding: 20px 12px; text-align: center; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats strong { color: var(--green); font-size: 1.5rem; }
.hero-stats span { color: var(--muted); font-size: .49rem; letter-spacing: .12em; text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 32px 0 18px; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head span { color: var(--muted); font-size: .7rem; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-card.theme-phaseleaf, .handoff-monogram.theme-phaseleaf, .project-access-dialog.theme-phaseleaf { --accent: #a8ff78; --project-image: url("/assets/ai/maria-juana-nexus-v1.webp"); --project-position: 68% 24%; }
.app-card.theme-ecosystem, .handoff-monogram.theme-ecosystem, .project-access-dialog.theme-ecosystem { --accent: #61e6ff; --project-image: url("/assets/ai/neural-core-nexus-v1.webp"); --project-position: center; }
.app-card.theme-vectorization, .handoff-monogram.theme-vectorization, .project-access-dialog.theme-vectorization { --accent: #bd9cff; --project-image: url("/assets/ai/hardware-core-nexus-v1.webp"); --project-position: 56% center; }
.app-card.theme-image-gallery, .handoff-monogram.theme-image-gallery, .project-access-dialog.theme-image-gallery { --accent: #ff8fd8; --project-image: url("/assets/ai/maria-juana-nexus-v1.webp"); --project-position: 35% 42%; }
.app-card.theme-ecommerce-care, .handoff-monogram.theme-ecommerce-care, .project-access-dialog.theme-ecommerce-care { --accent: #ffca6b; --project-image: url("/assets/ai/hardware-core-nexus-v1.webp"); --project-position: 72% 58%; }
.app-card.theme-money-web, .handoff-monogram.theme-money-web, .project-access-dialog.theme-money-web { --accent: #ffd166; --project-image: url("/assets/ai/neural-core-nexus-v1.webp"); --project-position: 76% center; }
.app-card { --accent: var(--green); --project-image: url("/assets/ai/neural-core-nexus-v1.webp"); --project-position: center; position: relative; min-width: 0; min-height: 590px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 25%, rgba(255, 255, 255, .04)); border-radius: 25px; background: linear-gradient(155deg, rgba(7, 19, 14, .97), rgba(2, 8, 6, .96)); box-shadow: 0 25px 70px rgba(0, 0, 0, .3), inset 0 0 48px color-mix(in srgb, var(--accent) 2.5%, transparent); }
.app-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.app-card.locked { border-color: rgba(255, 255, 255, .09); }
.app-card-visual { position: relative; min-height: 205px; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); background: #06100c; }
.app-card-visual::before { content: ""; position: absolute; inset: -4px; background-image: linear-gradient(180deg, rgba(2, 8, 6, .05), rgba(2, 8, 6, .12) 45%, rgba(2, 8, 6, .96)), linear-gradient(105deg, color-mix(in srgb, var(--accent) 24%, transparent), transparent 46%), var(--project-image); background-position: center, center, var(--project-position); background-size: cover; filter: saturate(1.12) contrast(1.1) brightness(.75); transform: scale(1.02); transition: filter .45s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }
.app-card.locked .app-card-visual::before { filter: saturate(.45) contrast(1.08) brightness(.52); }
.app-card-number { position: absolute; z-index: 2; top: 17px; left: 19px; color: rgba(235, 255, 249, .7); font-size: .52rem; font-weight: 900; letter-spacing: .18em; }
.app-card-number::before { content: "NEXUS / "; color: var(--accent); }
.app-card-scanline { position: absolute; z-index: 2; right: 18px; bottom: 18px; left: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 12px var(--accent); opacity: .7; }
.app-monogram { position: absolute; z-index: 3; left: 50%; bottom: 32px; display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid color-mix(in srgb, var(--accent) 72%, transparent); border-radius: 25px; color: #f4fffb; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 28%, transparent), rgba(2, 12, 9, .9) 68%); box-shadow: 0 0 45px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 0 24px color-mix(in srgb, var(--accent) 10%, transparent); font-size: 1.15rem; font-weight: 300; letter-spacing: .09em; transform: translateX(-50%); }
.app-signal { position: absolute; z-index: 3; top: 15px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; color: #85948d; background: rgba(2, 8, 6, .66); backdrop-filter: blur(12px); font-size: .44rem; font-weight: 950; letter-spacing: .12em; }
.app-signal i { width: 6px; height: 6px; border-radius: 50%; background: #657169; }
.app-signal.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.app-signal.active i { background: var(--accent); box-shadow: 0 0 11px var(--accent); }
.app-card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 24px; }
.app-card-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.app-card h3 { margin: 6px 0 0; font-size: clamp(1.65rem, 2.2vw, 2.15rem); line-height: .94; letter-spacing: -.05em; }
.app-card .app-eyebrow { color: var(--accent); font-size: .5rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.access-badge { height: fit-content; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .46rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.access-badge.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, transparent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
.app-card .app-description { min-height: 58px; margin: 13px 0 18px; color: #afc0b7; font-size: .76rem; line-height: 1.55; }
.plan-line { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 3.5%, rgba(0, 0, 0, .2)); }
.plan-line .plan-kicker { color: var(--accent); font-size: .46rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.plan-line strong { display: block; overflow-wrap: anywhere; font-size: .7rem; }
.plan-line .plan-description { color: var(--muted); font-size: .58rem; line-height: 1.45; }
.capability-summary { display: grid; gap: 9px; margin-top: 14px; }
.capability-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .49rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.capability-summary > div strong { color: var(--accent); font-size: .72rem; }
.capabilities { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.capabilities li { max-width: 100%; overflow: hidden; padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 6px; color: #a9b9b0; background: rgba(255, 255, 255, .018); font-family: "SFMono-Regular", Consolas, monospace; font-size: .45rem; text-overflow: ellipsis; white-space: nowrap; }
.capabilities .capability-more { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 20%, transparent); font-family: inherit; }
.capability-locked { color: #6f8178; font-size: .55rem; }
.app-action { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: auto; padding-inline: 16px; color: #06110c; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, white), var(--accent)); box-shadow: 0 11px 28px color-mix(in srgb, var(--accent) 12%, transparent); }
.app-action i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--accent); background: #06110c; font-size: .85rem; font-style: normal; }
.app-action:focus-visible { outline: 2px solid #f4fffb; outline-offset: 3px; }
.app-action-info { color: #eefbf5; border-color: color-mix(in srgb, var(--accent) 27%, rgba(255, 255, 255, .06)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, rgba(8, 21, 16, .98)), rgba(5, 13, 10, .98)); box-shadow: inset 0 0 25px color-mix(in srgb, var(--accent) 4%, transparent), 0 10px 26px rgba(0, 0, 0, .18); }
.app-action-info i { color: #06110c; background: var(--accent); }
.app-action-info:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--accent) 62%, transparent); filter: brightness(1.08); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 15%, transparent), inset 0 0 25px color-mix(in srgb, var(--accent) 7%, transparent); }
.app-action:disabled { color: #718078; cursor: not-allowed; border-color: rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .035); box-shadow: none; }
.app-action:disabled i { color: #718078; background: rgba(255, 255, 255, .045); }
.app-card:is(:hover, :focus-within) .app-card-visual::before { filter: saturate(1.26) contrast(1.12) brightness(.9); transform: scale(1.07); }
.app-card.locked:is(:hover, :focus-within) .app-card-visual::before { filter: saturate(.62) contrast(1.1) brightness(.62); }
.project-access-dialog { --accent: var(--mint); --project-image: url("/assets/ai/neural-core-nexus-v1.webp"); --project-position: center; position: fixed; inset: 0; width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, .08)); border-radius: 28px; opacity: 1; color: var(--ink); background: #04100c; box-shadow: 0 38px 120px rgba(0, 0, 0, .72), 0 0 62px color-mix(in srgb, var(--accent) 15%, transparent), inset 0 0 50px color-mix(in srgb, var(--accent) 3%, transparent); }
.project-access-dialog::backdrop { background: rgba(0, 5, 3, .82); backdrop-filter: blur(10px) saturate(.72); }
.project-access-dialog-shell { min-height: min(570px, calc(100dvh - 34px)); display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr); overflow: hidden; border-radius: inherit; background: linear-gradient(145deg, rgba(6, 18, 13, .99), rgba(2, 9, 7, .98)); }
.project-access-dialog-close { position: absolute; z-index: 4; top: 16px; right: 16px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: #f5fff9; cursor: pointer; background: rgba(2, 10, 7, .78); backdrop-filter: blur(15px); }
.project-access-dialog-close span { font-size: 1.45rem; line-height: 1; transform: translateY(-1px); }
.project-access-dialog-close:is(:hover, :focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; border-color: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 22%, transparent); }
.project-access-dialog-visual { position: relative; min-width: 0; overflow: hidden; background: #04100c; }
.project-access-dialog-visual::before { content: ""; position: absolute; inset: -3px; background-image: linear-gradient(180deg, rgba(2, 8, 6, .05), rgba(2, 8, 6, .15) 44%, rgba(2, 8, 6, .96)), linear-gradient(125deg, color-mix(in srgb, var(--accent) 33%, transparent), transparent 48%), var(--project-image); background-position: center, center, var(--project-position); background-size: cover; filter: saturate(.78) contrast(1.12) brightness(.68); }
.project-access-dialog-visual::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px); background-size: 35px 35px; mask-image: linear-gradient(90deg, #000, transparent); }
.project-access-dialog-index { position: absolute; z-index: 2; top: 22px; left: 22px; color: rgba(239, 255, 248, .72); font-size: .52rem; font-weight: 950; letter-spacing: .18em; }
.project-access-dialog-monogram { position: absolute; z-index: 2; top: 50%; left: 50%; width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 78%, transparent); border-radius: 38px; color: #fff; background: radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--accent) 29%, transparent), rgba(1, 9, 6, .92) 70%); box-shadow: 0 0 75px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 0 35px color-mix(in srgb, var(--accent) 12%, transparent); font-size: 1.65rem; font-weight: 300; letter-spacing: .12em; transform: translate(-50%, -50%); }
.project-access-dialog-signal { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 999px; color: #b7c8bf; background: rgba(2, 10, 7, .72); backdrop-filter: blur(14px); font-size: .5rem; font-weight: 900; letter-spacing: .13em; }
.project-access-dialog-signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.project-access-dialog-content { min-width: 0; display: flex; flex-direction: column; padding: clamp(40px, 5vw, 66px) clamp(24px, 5vw, 56px) 38px; }
.project-access-dialog-content > .app-eyebrow { color: var(--accent); font-size: .57rem; font-weight: 950; letter-spacing: .17em; text-transform: uppercase; }
.project-access-dialog-content h2 { margin: 10px 52px 12px 0; overflow-wrap: anywhere; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .84; letter-spacing: -.065em; }
.project-access-dialog-content > p { margin: 0; color: #b8c9c0; font-size: .86rem; line-height: 1.65; }
.project-access-dialog-features { margin: 26px 0 18px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--accent) 17%, transparent); }
.project-access-dialog-features .eyebrow { color: var(--accent); font-size: .5rem; }
.project-access-dialog-features ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.project-access-dialog-features li { display: flex; align-items: center; gap: 10px; color: #d9e7df; font-size: .69rem; line-height: 1.4; }
.project-access-dialog-features li i { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 7px; color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); font-size: .65rem; font-style: normal; }
.project-access-dialog-notice { display: grid; gap: 7px; margin-top: auto; padding: 16px 18px; border: 1px solid rgba(255, 202, 107, .34); border-radius: 14px; background: linear-gradient(120deg, rgba(78, 50, 8, .24), rgba(28, 21, 7, .45)); }
.project-access-dialog-notice > span { width: fit-content; padding: 5px 8px; border-radius: 999px; color: #1a1203; background: #ffca6b; font-size: .47rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.project-access-dialog-notice strong { color: #fff3da; font-size: .79rem; line-height: 1.35; }
.project-access-dialog-notice p { margin: 0; color: #d5c8aa; font-size: .66rem; line-height: 1.5; }
.project-access-dialog-acknowledge { width: 100%; margin-top: 14px; }
.admin-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 20px 55px rgba(0, 0, 0, .18); }
.panel h2, .panel h3 { margin-top: 0; }
.user-list { display: grid; gap: 12px; }
.user-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .018); }
.user-card.active-user { border-color: var(--line-bright); background: rgba(103, 246, 195, .045); }
.user-card button { width: 100%; color: inherit; border: 0; cursor: pointer; text-align: left; background: none; }
.user-card strong { display: block; }
.user-card span { color: var(--muted); font-size: .66rem; }
.user-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.user-meta i { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--mint); font-size: .48rem; font-style: normal; }
.subscription-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subscription-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.subscription-card h4 { margin: 0 0 4px; }
.subscription-card p { color: var(--muted); font-size: .65rem; }
.subscription-card small { display: block; color: #7f9187; font-size: .58rem; }
.subscription-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.compact { min-height: 30px; padding: 0 10px; font-size: .55rem; }
.editor-help { margin: -6px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.flash-message { margin: -18px 0 20px; padding: 14px 18px; border: 1px solid rgba(103, 246, 195, .3); border-radius: 12px; color: var(--mint); background: rgba(103, 246, 195, .06); font-size: .72rem; font-weight: 800; }
.admin-editor { display: grid; gap: 15px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.user-access-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .018); }
.user-access-actions p { margin: 7px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.user-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.user-access-actions .form-error, .user-access-actions .form-success { grid-column: 1 / -1; }
.editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deny-list { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.deny-list label { display: flex; align-items: center; gap: 8px; font-size: .57rem; text-transform: none; }
.deny-list input { width: 16px; min-height: 16px; }
.audit-list { display: grid; gap: 9px; }
.audit-panel { margin-top: 20px; }
.audit-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .65rem; }
.audit-item span { color: var(--muted); }
.empty { padding: 30px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.documentation-page { width: min(1700px, calc(100% - 40px)); }
.documentation-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.documentation-hero h1 { margin: 9px 0 8px; font-size: clamp(3.6rem, 7vw, 7.8rem); line-height: .82; letter-spacing: -.08em; }
.documentation-hero p { max-width: 790px; margin: 0; color: #a7b7ae; font-size: 1rem; line-height: 1.6; }
.documentation-version { min-width: 180px; display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-align: right; background: rgba(255, 255, 255, .018); }
.documentation-version strong { color: var(--green); font-size: 1.5rem; }
.documentation-version span { color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.document-projects { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: -12px 0 22px; }
.document-projects button { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: #b8c8bf; cursor: pointer; background: rgba(4, 13, 8, .76); }
.document-projects button span { overflow: hidden; font-size: .63rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.document-projects button i { flex: 0 0 auto; color: var(--muted); font-size: .56rem; font-style: normal; }
.document-projects button.selected { color: #07140d; border-color: transparent; background: linear-gradient(135deg, var(--mint), var(--green)); box-shadow: 0 0 30px rgba(103, 246, 195, .14); }
.document-projects button.selected i { color: #173326; }
.documentation-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 22px; align-items: start; }
.documentation-sidebar { position: sticky; top: 106px; max-height: calc(100vh - 128px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(5, 14, 9, .9); box-shadow: 0 20px 55px rgba(0, 0, 0, .2); scrollbar-color: rgba(103, 246, 195, .3) transparent; }
.document-search { position: relative; margin-bottom: 14px; }
.document-search input { margin-top: 4px; padding-right: 38px; }
.document-search small { min-height: 16px; display: block; margin-top: 6px; color: var(--muted); font-size: .54rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.document-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.document-categories button { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: #a8bbb0; cursor: pointer; text-align: left; background: rgba(255, 255, 255, .02); }
.document-categories button span { overflow: hidden; font-size: .58rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.document-categories button i { color: var(--muted); font-size: .52rem; font-style: normal; }
.document-categories button.selected { color: #06110c; border-color: transparent; background: var(--mint); }
.document-categories button.selected i { color: #183326; }
.document-menu { display: grid; gap: 8px; }
.document-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 7px; }
.document-menu-head strong { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.document-menu-head button, .document-back { padding: 0; border: 0; color: var(--mint); cursor: pointer; background: none; font-size: .62rem; font-weight: 800; }
.document-menu-item { display: grid; gap: 5px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: inherit; cursor: pointer; text-align: left; background: rgba(255, 255, 255, .018); }
.document-menu-item:hover, .document-menu-item.selected { border-color: var(--line-bright); background: rgba(103, 246, 195, .05); }
.document-menu-item > span { color: var(--green); font-size: .49rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.document-menu-item strong { font-size: .72rem; }
.document-menu-item small { overflow: hidden; color: var(--muted); font-size: .59rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.documentation-content { min-width: 0; min-height: 630px; padding: clamp(22px, 4vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(8, 21, 14, .92), rgba(3, 9, 6, .95)); box-shadow: var(--shadow); }
.document-index .section-head { margin-top: 0; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.document-card { min-height: 235px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: radial-gradient(circle at 90% 0, rgba(103, 246, 195, .08), transparent 44%), rgba(255, 255, 255, .018); }
.document-card-meta, .document-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.document-card-meta span { color: var(--green); font-size: .53rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.document-card-meta i { padding: 5px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .5rem; font-style: normal; }
.document-card-meta i.exact, .exact-badge { color: #181104; border-color: rgba(255, 209, 102, .5); background: var(--amber); }
.document-card h3 { margin: 25px 0 8px; font-size: 1.45rem; letter-spacing: -.035em; }
.document-card p { margin: 0 0 24px; color: #9fb0a7; font-size: .75rem; line-height: 1.58; }
.document-card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.document-card-footer > span { color: var(--muted); font-size: .56rem; }
.document-page-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(255, 255, 255, .018); font-size: .68rem; line-height: 1.5; }
.document-reader { max-width: 1040px; margin: 0 auto; }
.document-back { margin-bottom: 28px; }
.document-reader-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.document-titleline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.exact-badge { display: inline-flex; width: fit-content; padding: 6px 8px; border: 1px solid rgba(255, 209, 102, .5); border-radius: 6px; font-size: .51rem; font-weight: 950; letter-spacing: .1em; }
.document-reader-head h1 { margin: 10px 0 12px; font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: .92; letter-spacing: -.065em; }
.document-reader-head > p { max-width: 820px; margin: 0; color: #a8b9af; font-size: 1rem; line-height: 1.65; }
.document-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.document-meta span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: .54rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.integrity-card { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, 1.58fr); gap: 20px; margin-top: 27px; padding: 20px; border: 1px solid rgba(255, 209, 102, .24); border-radius: 14px; background: rgba(255, 209, 102, .035); }
.integrity-card > div > p { margin: 12px 0 0; color: #c3b991; font-size: .68rem; line-height: 1.55; }
.integrity-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.integrity-card dl div { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .16); }
.integrity-card dt { color: var(--muted); font-size: .48rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.integrity-card dd { overflow-wrap: anywhere; margin: 5px 0 0; color: #e9eee9; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .57rem; line-height: 1.45; }
.document-empty { min-height: 520px; display: grid; place-content: center; gap: 10px; text-align: center; }
.document-empty h2 { margin: 0; font-size: 2rem; }
.document-empty p { color: var(--muted); }
.document-empty.error .eyebrow { color: var(--red); }
.markdown-document { padding: 28px 0 10px; color: #c4d0c9; font-size: .94rem; line-height: 1.75; }
.markdown-document h2, .markdown-document h3, .markdown-document h4, .markdown-document h5 { color: var(--ink); letter-spacing: -.035em; line-height: 1.15; }
.markdown-document h2 { margin: 50px 0 16px; font-size: 2.2rem; }
.markdown-document h3 { margin: 38px 0 13px; font-size: 1.55rem; }
.markdown-document h4, .markdown-document h5 { margin: 30px 0 10px; font-size: 1.15rem; }
.markdown-document p { margin: 0 0 14px; }
.markdown-document ul, .markdown-document ol { display: grid; gap: 7px; margin: 10px 0 22px; padding-left: 24px; }
.markdown-document li::marker { color: var(--green); }
.markdown-document strong { color: var(--ink); }
.markdown-document em { color: #d8e4dc; }
.markdown-document code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--mint); background: rgba(0, 0, 0, .28); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .87em; }
.markdown-document a { color: var(--mint); text-underline-offset: 3px; }
.markdown-document blockquote { margin: 20px 0; padding: 15px 18px; border-left: 3px solid var(--green); color: #cfdbd3; background: rgba(145, 255, 119, .045); }
.markdown-document hr { height: 1px; margin: 35px 0; border: 0; background: var(--line); }
.structured-document { max-height: 70vh; overflow: auto; white-space: pre; }
.markdown-table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--line); border-radius: 11px; }
.markdown-table-wrap table { width: 100%; border-collapse: collapse; font-size: .74rem; line-height: 1.5; }
.markdown-table-wrap th, .markdown-table-wrap td { min-width: 130px; padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.markdown-table-wrap th { color: var(--ink); background: rgba(103, 246, 195, .055); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.markdown-table-wrap tr:last-child td { border-bottom: 0; }
.markdown-code, .verbatim-content { overflow: auto; border: 1px solid var(--line); border-radius: 12px; color: #d7e5dc; background: #010402; scrollbar-color: rgba(103, 246, 195, .35) transparent; }
.markdown-code { margin: 20px 0; padding: 18px; }
.markdown-code code { padding: 0; border: 0; color: inherit; background: none; }
.verbatim-shell { margin-top: 28px; }
.verbatim-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(103, 246, 195, .04); }
.verbatim-toolbar span { color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.verbatim-content { min-height: 420px; max-height: 70vh; margin: 0; padding: 22px; border-radius: 0 0 12px 12px; white-space: pre; tab-size: 2; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .78rem; line-height: 1.6; }
.verbatim-shell .form-success { padding-top: 8px; }
.handoff-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.handoff-card { width: min(760px, 100%); padding: clamp(28px, 7vw, 70px); border: 1px solid var(--line-bright); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.handoff-monogram { display: grid; place-items: center; width: 70px; height: 70px; margin: 28px 0; border: 1px solid var(--accent); border-radius: 20px; color: var(--accent); font-size: 1.1rem; font-weight: 950; }
.handoff-card h1 { margin: 0; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -.07em; }
.handoff-card p, .handoff-card aside { color: #a9b9b0; line-height: 1.65; }
.handoff-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.handoff-card dl div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.handoff-card dt { color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.handoff-card dd { margin: 6px 0 0; }
.handoff-card li { margin: 6px 0; color: var(--mint); }
.handoff-card aside { margin: 24px 0; padding: 16px; border: 1px solid rgba(255, 209, 102, .25); border-radius: 12px; color: #ebdba9; background: rgba(255, 209, 102, .05); }
.primary-link { display: inline-grid; place-items: center; min-height: 46px; padding: 0 18px; border-radius: 10px; color: #06110c; background: var(--green); text-decoration: none; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
@media (max-width: 1050px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: auto; gap: 60px; }
  .login-panel { padding-top: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero > * { min-width: 0; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 1fr; }
  .documentation-layout { grid-template-columns: 1fr; }
  .documentation-sidebar { position: static; max-height: none; }
  .document-projects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .login-story { padding: 28px 20px; }
  .login-title h1 { font-size: 4.5rem; }
  .login-points { grid-template-columns: 1fr; }
  .login-panel { padding: 0 20px 40px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .profile { display: none; }
  .nav { width: 100%; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .nav-button, .top-actions > #logout { width: 100%; padding-inline: 8px; }
  .page { width: min(100% - 28px, 1500px); }
  .hero h1 { font-size: 3.7rem; }
  .admin-page .hero h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); overflow-wrap: anywhere; }
  .hero-stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .app-grid, .subscription-grid { grid-template-columns: 1fr; }
  .documentation-page { width: min(100% - 24px, 1700px); }
  .documentation-hero { align-items: stretch; flex-direction: column; }
  .documentation-hero h1 { font-size: 2.7rem; }
  .documentation-version { text-align: left; }
  .document-projects { grid-template-columns: 1fr 1fr; }
  .document-page-status { align-items: stretch; flex-direction: column; }
  .documentation-content { min-height: 480px; padding: 20px 16px; border-radius: 18px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-reader-head h1 { font-size: 2.8rem; }
  .document-categories { grid-template-columns: 1fr 1fr; }
  .integrity-card { grid-template-columns: 1fr; }
  .integrity-card dl { grid-template-columns: 1fr; }
  .verbatim-toolbar { align-items: stretch; flex-direction: column; }
  .verbatim-content { padding: 14px; font-size: .7rem; }
  .editor-row { grid-template-columns: 1fr; }
  .user-access-actions { grid-template-columns: 1fr; }
  .user-action-buttons { justify-content: stretch; }
  .user-action-buttons button { flex: 1; }
  .audit-item { grid-template-columns: 1fr; }
  .handoff-card dl { grid-template-columns: 1fr; }
}

/* Maria Juana · Nexus visual intelligence layer */
.view-background { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .28; filter: saturate(1.12) contrast(1.08) brightness(.56); pointer-events: none; transition: opacity .45s ease, filter .45s ease; }
.view-background::selection { background: transparent; }
.shell, .login-shell, .boot-screen { position: relative; z-index: 1; }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 78% 12%, rgba(83, 247, 226, .11), transparent 35%), linear-gradient(180deg, rgba(1, 7, 5, .52), rgba(2, 7, 5, .84) 72%, #020504 100%); }
body[data-nexus-view="ai"] .view-background { opacity: .42; filter: saturate(1.22) contrast(1.1) brightness(.62); }
body[data-nexus-view="documentation"] .view-background { opacity: .2; filter: saturate(.9) contrast(1.15) brightness(.48); }
body[data-nexus-view="admin"] .view-background, body[data-nexus-view="account"] .view-background { opacity: .24; object-position: center; filter: saturate(.86) contrast(1.12) brightness(.5); }
body[data-nexus-view="login"] .view-background { opacity: .35; object-position: 66% 18%; }
.ambient-grid { z-index: 1; pointer-events: none; }

[data-fx-panel] { position: relative; isolation: isolate; transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease, background-color .26s ease; }
[data-fx-panel]:is(:hover, :focus-within) { border-color: rgba(103, 246, 195, .52); box-shadow: 0 24px 72px rgba(0, 0, 0, .38), 0 0 36px rgba(83, 247, 226, .14), inset 0 0 32px rgba(83, 247, 226, .045); transform: none; }
.atom-field { position: absolute; inset: 3px; z-index: 8; overflow: clip; border-radius: inherit; opacity: 0; pointer-events: none; transition: none; }
[data-fx-panel]:hover > .atom-field, [data-fx-panel]:focus-within > .atom-field { opacity: 1; }
.atom-field::before { content: ""; position: absolute; inset: -4px; border: 1px solid transparent; border-radius: inherit; background: conic-gradient(from 20deg, transparent 0 18%, rgba(83, 247, 226, .72) 22%, transparent 27% 61%, rgba(145, 255, 119, .6) 66%, transparent 72%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: energy-rotate 5.5s linear infinite; animation-play-state: paused; }
.atom-electron { position: absolute; top: 0; left: 0; width: 7px; height: 7px; border: 1px solid rgba(231, 255, 249, .9); border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px var(--mint), 0 0 18px rgba(103, 246, 195, .86); offset-path: inset(0 round 24px); offset-rotate: 0deg; animation: electron-circuit 3.8s linear infinite; animation-play-state: paused; }
.atom-electron.electron-b { width: 5px; height: 5px; color: var(--green); background: var(--green); animation-delay: -1.2s; animation-duration: 5.2s; }
.atom-electron.electron-c { width: 4px; height: 4px; background: #61e6ff; box-shadow: 0 0 8px #61e6ff, 0 0 16px rgba(97, 230, 255, .74); animation-delay: -2.6s; animation-duration: 4.4s; }
.shell:not([data-motion-state="paused"]) [data-fx-panel]:is(:hover, :focus-within) > .atom-field::before,
.shell:not([data-motion-state="paused"]) [data-fx-panel]:is(:hover, :focus-within) > .atom-field > .atom-electron,
.login-shell [data-fx-panel]:is(:hover, :focus-within) > .atom-field::before,
.login-shell [data-fx-panel]:is(:hover, :focus-within) > .atom-field > .atom-electron { animation-play-state: running; }
@keyframes energy-rotate { to { transform: rotate(360deg); } }
@keyframes electron-circuit { to { offset-distance: 100%; } }

.maria-banner { width: min(1500px, calc(100% - 40px)); min-height: 190px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 24px; overflow: hidden; margin: 20px auto 0; padding: 25px 30px; border: 1px solid rgba(83, 247, 226, .26); border-radius: 26px; background: linear-gradient(100deg, rgba(2, 11, 9, .96), rgba(2, 12, 10, .78) 54%, rgba(2, 12, 10, .3)), radial-gradient(circle at 78% 50%, rgba(83, 247, 226, .14), transparent 34%); box-shadow: 0 25px 80px rgba(0, 0, 0, .32), inset 0 0 70px rgba(83, 247, 226, .025); }
.maria-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(83, 247, 226, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 247, 226, .04) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 82%); }
.maria-avatar { position: absolute; z-index: -1; top: -30%; right: 8%; width: min(460px, 42vw); height: 170%; object-fit: cover; object-position: center 16%; opacity: .35; filter: saturate(1.15) contrast(1.08); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 78%, transparent); }
.maria-banner-copy { position: relative; z-index: 2; max-width: 940px; }
.maria-identity { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.maria-identity :is(h1, h2) { margin: 0; font-size: clamp(2.25rem, 4vw, 4.5rem); line-height: .87; letter-spacing: -.065em; }
.maria-identity p { max-width: 700px; margin: 8px 0 0; color: #c2d3cc; font-size: .78rem; line-height: 1.55; }
.maria-mark { flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(83, 247, 226, .55); border-radius: 19px; color: #ddfffb; background: radial-gradient(circle, rgba(83, 247, 226, .2), rgba(3, 12, 11, .94) 70%); box-shadow: 0 0 36px rgba(83, 247, 226, .14); font-size: 1.25rem; font-weight: 300; letter-spacing: .1em; }
.maria-mark.large { width: 94px; height: 94px; border-radius: 27px; font-size: 1.8rem; }
.maria-banner-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 17px; }
.maria-banner-actions > span, .ai-hero-status span { display: inline-flex; align-items: center; gap: 7px; color: #91aaa2; font-size: .55rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.maria-banner-actions > span i, .ai-hero-status span:first-child i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px var(--mint); }
.maria-orbit { position: relative; width: 210px; aspect-ratio: 1; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: radial-gradient(circle, rgba(83, 247, 226, .19), rgba(83, 247, 226, .035) 38%, transparent 70%); }
.maria-orbit > strong { z-index: 2; display: grid; place-content: center; width: 38%; aspect-ratio: 1; border: 1px solid rgba(83, 247, 226, .84); border-radius: 50%; color: #e1fffb; background: radial-gradient(circle, #143d37, #03100e 70%); box-shadow: 0 0 48px rgba(83, 247, 226, .33); text-align: center; font-size: 1.4rem; font-weight: 300; }
.maria-orbit > strong small { display: block; margin-top: 3px; color: #7fd8cc; font-size: .32rem; letter-spacing: .12em; }
.orbit-ring { position: absolute; border: 1px solid rgba(83, 247, 226, .26); border-radius: 50%; animation: orbit-spin 16s linear infinite; }
.orbit-one { inset: 5%; }
.orbit-two { inset: 20%; border-style: dashed; animation-duration: 10s; animation-direction: reverse; }
.orbit-three { inset: 32%; animation-duration: 7s; }
.orbit-project { position: absolute; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid currentColor; border-radius: 50%; color: var(--mint); background: #04100e; box-shadow: 0 0 14px currentColor; font-size: .42rem; font-style: normal; font-weight: 900; }
.orbit-ph { top: 1%; left: 44%; color: #a8ff78; }.orbit-ec { top: 24%; right: 2%; color: #61e6ff; }.orbit-vx { right: 8%; bottom: 18%; color: #bd9cff; }.orbit-gl { bottom: 1%; left: 42%; color: #ff8fd8; }.orbit-mc { left: 2%; bottom: 25%; color: #ffca6b; }.orbit-mw { top: 20%; left: 4%; color: #ffd166; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

body[data-nexus-view="applications"] .maria-banner { min-height: 165px; grid-template-columns: minmax(0, 1fr) 140px; margin-top: 14px; padding: 21px 28px; background: linear-gradient(95deg, rgba(1, 9, 7, .97), rgba(2, 12, 10, .76) 62%, rgba(2, 12, 10, .24)); }
body[data-nexus-view="applications"] .maria-avatar { top: -70%; right: 10%; width: min(490px, 38vw); height: 245%; opacity: .34; }
body[data-nexus-view="applications"] .maria-identity h2 { font-size: clamp(2.25rem, 4vw, 3.4rem); }
body[data-nexus-view="applications"] .maria-identity p { max-width: 780px; }
body[data-nexus-view="applications"] .maria-mark { width: 60px; height: 60px; border-radius: 17px; font-size: 1.1rem; }
body[data-nexus-view="applications"] .maria-orbit { width: 126px; }
body[data-nexus-view="applications"] .maria-banner-actions { margin-top: 9px; }
body[data-nexus-view="ai"] .maria-banner { min-height: 138px; grid-template-columns: 1fr auto; padding-block: 18px; }
body[data-nexus-view="ai"] .maria-banner .maria-orbit { width: 116px; }
body[data-nexus-view="ai"] .maria-banner .maria-avatar { opacity: .22; }
body[data-nexus-view="ai"] .maria-banner .maria-identity h2 { font-size: 2.45rem; }
body[data-nexus-view="ai"] .maria-banner .maria-identity p { display: none; }
body[data-nexus-view="ai"] .maria-banner-actions { margin-top: 9px; }

.applications-page { width: min(1600px, calc(100% - 40px)); padding-top: 22px; }
.ecosystem-intro { position: relative; min-height: 420px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); align-items: center; gap: clamp(32px, 5vw, 80px); overflow: hidden; margin: 0 0 38px; padding: clamp(32px, 5vw, 64px); border: 1px solid rgba(83, 247, 226, .23); border-radius: 30px; background: linear-gradient(105deg, rgba(2, 11, 8, .97), rgba(3, 13, 10, .83) 54%, rgba(2, 10, 8, .7)); box-shadow: 0 30px 90px rgba(0, 0, 0, .36), inset 0 0 80px rgba(83, 247, 226, .025); }
.ecosystem-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(2, 10, 8, .96), rgba(2, 10, 8, .54) 58%, rgba(2, 10, 8, .7)), radial-gradient(circle at 77% 46%, rgba(83, 247, 226, .17), transparent 25%), url("/assets/ai/neural-core-nexus-v1.webp"); background-position: center, center, 78% center; background-size: cover, cover, 62% auto; background-repeat: no-repeat; opacity: .76; filter: saturate(1.08) contrast(1.06); }
.ecosystem-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(83, 247, 226, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 247, 226, .035) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, #000, transparent 88%); }
.projects-hero-copy { position: relative; z-index: 2; min-width: 0; }
.ecosystem-intro h1 { margin: 13px 0 18px; font-size: clamp(3.3rem, 6.1vw, 6.6rem); line-height: .78; letter-spacing: -.075em; }
.ecosystem-intro h1 em { color: transparent; background: linear-gradient(110deg, var(--green), var(--mint), #61e6ff); -webkit-background-clip: text; background-clip: text; font-style: normal; text-shadow: 0 0 45px rgba(83, 247, 226, .15); }
.ecosystem-intro p { max-width: 690px; margin: 0; color: #c0d0c8; font-size: .9rem; line-height: 1.65; }
.projects-flow { display: flex; align-items: center; gap: 9px; margin-top: 25px; }
.projects-flow span { display: inline-flex; align-items: center; gap: 7px; color: #9db0a7; font-size: .52rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.projects-flow span i { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(103, 246, 195, .26); border-radius: 7px; color: var(--mint); background: rgba(83, 247, 226, .05); font-size: .45rem; font-style: normal; }
.projects-flow b { flex: 1; max-width: 42px; height: 1px; background: linear-gradient(90deg, rgba(103, 246, 195, .08), rgba(103, 246, 195, .52), rgba(103, 246, 195, .08)); }
.projects-command-panel { position: relative; z-index: 2; min-width: 0; padding: 18px; border: 1px solid rgba(103, 246, 195, .18); border-radius: 21px; background: linear-gradient(145deg, rgba(4, 17, 13, .88), rgba(1, 8, 6, .75)); backdrop-filter: blur(22px); box-shadow: 0 22px 60px rgba(0, 0, 0, .24), inset 0 0 40px rgba(83, 247, 226, .025); }
.projects-command-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; padding: 0 2px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #769087; font-size: .48rem; font-weight: 900; letter-spacing: .12em; }
.projects-command-head strong { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); font-size: .48rem; }
.projects-command-head strong i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.project-access-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.project-access-node { --project-accent: var(--mint); min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px; color: inherit; cursor: pointer; text-align: left; background: rgba(0, 0, 0, .2); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.project-access-node > i { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--project-accent) 35%, transparent); border-radius: 9px; color: var(--project-accent); background: color-mix(in srgb, var(--project-accent) 5%, transparent); font-size: .52rem; font-style: normal; font-weight: 950; }
.project-access-node > span { min-width: 0; }
.project-access-node strong, .project-access-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-access-node strong { color: #d8e5df; font-size: .61rem; }
.project-access-node small { margin-top: 3px; color: #71837a; font-size: .45rem; }
.project-access-node.active small { color: var(--project-accent); }
.project-access-node:is(:hover, :focus-visible, .selected) { outline: none; border-color: color-mix(in srgb, var(--project-accent) 42%, transparent); background: color-mix(in srgb, var(--project-accent) 5%, rgba(0, 0, 0, .18)); box-shadow: inset 0 0 20px color-mix(in srgb, var(--project-accent) 3%, transparent), 0 0 18px color-mix(in srgb, var(--project-accent) 7%, transparent); }
.projects-command-panel .hero-stats { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; border-radius: 12px; }
.projects-command-panel .hero-stats div { padding: 12px 8px; }
.projects-command-panel .hero-stats strong { font-size: 1.05rem; }
.projects-section-head { margin: 0 0 12px; }
.projects-section-head > div:first-child { display: grid; gap: 7px; }
.projects-section-head h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.project-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.project-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; color: #91a49a; cursor: pointer; background: rgba(255, 255, 255, .025); font-size: .55rem; font-weight: 850; }
.project-filters button i { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 6px; color: #b9cac1; background: rgba(255, 255, 255, .055); font-size: .48rem; font-style: normal; }
.project-filters button:is(:hover, :focus-visible, .selected) { outline: none; color: #06110c; border-color: transparent; background: linear-gradient(135deg, var(--green), var(--mint)); }
.project-filters button:is(:hover, :focus-visible, .selected) i { color: var(--mint); background: #06110c; }
.project-filter-result { margin: 0 0 15px; color: #73857c; font-size: .56rem; }
.app-card[hidden] { display: none; }
.app-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.capability-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.app-card:is(:hover, :focus-within, :focus-visible) { border-color: color-mix(in srgb, var(--accent) 52%, transparent); box-shadow: 0 30px 82px rgba(0, 0, 0, .42), 0 0 34px color-mix(in srgb, var(--accent) 11%, transparent), inset 0 0 48px color-mix(in srgb, var(--accent) 4%, transparent); transform: translateY(-5px); }
.documentation-layout, .documentation-sidebar, .documentation-content { min-width: 0; }
.documentation-sidebar > .atom-field, .documentation-content > .atom-field { overflow: hidden; }

.ai-page { width: min(1600px, calc(100% - 40px)); padding-top: 24px; }
.ai-hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: 40px; overflow: hidden; padding: clamp(30px, 5vw, 70px); border: 1px solid rgba(83, 247, 226, .28); border-radius: 32px; background: linear-gradient(105deg, rgba(2, 10, 9, .94), rgba(2, 10, 9, .62) 57%, rgba(2, 10, 9, .22)); box-shadow: 0 34px 100px rgba(0, 0, 0, .42), inset 0 0 74px rgba(83, 247, 226, .035); }
.ai-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 75% 50%, rgba(83, 247, 226, .17), transparent 34%), linear-gradient(rgba(83, 247, 226, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 247, 226, .04) 1px, transparent 1px); background-size: auto, 46px 46px, 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 90%); }
.ai-hero-copy { position: relative; z-index: 2; }
.ai-hero .maria-identity { margin: 19px 0; }
.ai-hero .maria-identity h1 { font-size: clamp(4rem, 7vw, 7.8rem); }
.ai-hero .maria-identity p { color: #72e9da; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.ai-hero-copy > p { max-width: 760px; color: #d1ddd8; font-size: 1rem; line-height: 1.7; }
.ai-hero-status { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.ai-hero-status span { padding: 8px 10px; border: 1px solid rgba(103, 246, 195, .18); border-radius: 999px; background: rgba(83, 247, 226, .045); }
.ai-orbit { width: min(440px, 34vw); justify-self: center; }
.ai-orbit > strong { font-size: 2.8rem; }
.simulation-disclosure { display: flex; align-items: center; gap: 22px; margin: 14px 0; padding: 18px 22px; border: 1px solid rgba(255, 209, 102, .34); border-radius: 16px; color: #d9cc9f; background: rgba(31, 23, 7, .78); backdrop-filter: blur(22px); }
.simulation-disclosure strong { flex: 0 0 auto; color: var(--amber); font-size: .62rem; letter-spacing: .13em; }
.simulation-disclosure p { margin: 0; font-size: .68rem; line-height: 1.55; }
.ai-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.future-panel { overflow: hidden; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(103, 246, 195, .16); border-radius: 23px; background: linear-gradient(145deg, rgba(5, 17, 14, .91), rgba(2, 9, 7, .82)); backdrop-filter: blur(24px); box-shadow: 0 22px 70px rgba(0, 0, 0, .24); }
.future-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 92% 4%, rgba(83, 247, 226, .08), transparent 34%); }
.ai-kpi { min-height: 126px; display: grid; align-content: center; gap: 6px; }
.ai-kpi .kpi-label, .ai-kpi small { color: var(--muted); font-size: .52rem; letter-spacing: .11em; text-transform: uppercase; }
.ai-kpi strong { color: #dffffa; font-size: clamp(1.15rem, 2.2vw, 1.75rem); letter-spacing: -.035em; }
.ai-command-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.power-budget-panel { grid-column: span 7; }
.hardware-panel { grid-column: span 5; }
.telemetry-panel { grid-column: span 4; min-width: 0; }
.neural-network-panel { grid-column: 1 / -1; }
.future-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.future-panel-head h2 { margin: 7px 0 0; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: -.045em; }
.simulation-chip { display: inline-flex; width: fit-content; padding: 6px 8px; border: 1px solid rgba(255, 209, 102, .27); border-radius: 7px; color: var(--amber); background: rgba(255, 209, 102, .055); font-size: .48rem; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.panel-intro { max-width: 820px; margin: -4px 0 20px; color: #96aaa0; font-size: .7rem; line-height: 1.58; }
.power-total { display: grid; text-align: right; }
.power-total strong { color: var(--mint); font-size: 1.8rem; line-height: 1; }
.power-total span { margin-top: 5px; color: var(--muted); font-size: .48rem; letter-spacing: .09em; text-transform: uppercase; }
.power-list { display: grid; gap: 8px; }
.power-row { --project-accent: var(--mint); display: grid; grid-template-columns: minmax(210px, 1fr) minmax(180px, .65fr); align-items: center; gap: 9px 18px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 13px; background: rgba(0, 0, 0, .17); text-transform: none; }
.power-project { display: flex; align-items: center; gap: 11px; }
.power-project > i { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--project-accent) 44%, transparent); border-radius: 10px; color: var(--project-accent); background: color-mix(in srgb, var(--project-accent) 7%, transparent); font-size: .58rem; font-style: normal; font-weight: 950; }
.power-project strong, .power-project small { display: block; }
.power-project strong { color: var(--ink); font-size: .68rem; }
.power-project small { margin-top: 3px; color: var(--muted); font-size: .52rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.power-control { display: grid; grid-template-columns: 1fr 46px; align-items: center; gap: 8px; }
.power-control input { min-height: 20px; padding: 0; border: 0; accent-color: var(--project-accent); background: transparent; }
.power-control input:disabled { opacity: .45; cursor: not-allowed; }
.power-control output { color: var(--project-accent); text-align: right; font-size: .72rem; font-weight: 900; }
.power-row progress { grid-column: 1 / -1; width: 100%; height: 3px; overflow: hidden; border: 0; border-radius: 8px; color: var(--project-accent); background: rgba(255, 255, 255, .06); }
.power-row progress::-webkit-progress-bar { background: rgba(255, 255, 255, .06); }
.power-row progress::-webkit-progress-value { background: var(--project-accent); }
.power-row progress::-moz-progress-bar { background: var(--project-accent); }
.power-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.member-readonly { color: var(--muted); font-size: .56rem; }
.theme-phaseleaf { --project-accent: #a8ff78; }.theme-ecosystem { --project-accent: #61e6ff; }.theme-vectorization { --project-accent: #bd9cff; }.theme-image-gallery { --project-accent: #ff8fd8; }.theme-ecommerce-care { --project-accent: #ffca6b; }.theme-money-web { --project-accent: #ffd166; }

.hardware-core { position: relative; width: 170px; aspect-ratio: 1; display: grid; place-items: center; margin: 5px auto 24px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 247, 226, .2), rgba(83, 247, 226, .025) 48%, transparent 70%); }
.hardware-core > strong { z-index: 2; display: grid; place-content: center; width: 52%; aspect-ratio: 1; border: 1px solid var(--mint); border-radius: 22px; color: #dcfff9; background: linear-gradient(145deg, #123a33, #03100d); box-shadow: 0 0 45px rgba(83, 247, 226, .24); text-align: center; font-size: 1.45rem; }
.hardware-core > strong small { display: block; margin-top: 4px; color: #76cfc2; font-size: .38rem; letter-spacing: .11em; }
.hardware-core-ring { position: absolute; border: 1px solid rgba(83, 247, 226, .24); border-radius: 50%; animation: orbit-spin 11s linear infinite; }
.ring-alpha { inset: 5%; }.ring-beta { inset: 21%; border-style: dashed; animation-direction: reverse; animation-duration: 7s; }
.hardware-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.hardware-spec { min-width: 0; padding: 11px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; background: rgba(0, 0, 0, .16); }
.hardware-spec span, .hardware-spec small { display: block; color: var(--muted); font-size: .46rem; letter-spacing: .07em; }
.hardware-spec strong { display: block; overflow-wrap: anywhere; margin: 6px 0; font-size: .68rem; }
.hardware-spec small { color: #6fdcca; }

.metric-readout { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 14px; }
.metric-readout strong { color: #dffffa; font-size: 2rem; letter-spacing: -.04em; }
.metric-readout span { color: var(--muted); font-size: .54rem; letter-spacing: .07em; text-transform: uppercase; }
.telemetry-chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: rgba(145, 255, 196, .075); stroke-width: 1; }
.chart-line, .chart-area { fill: none; vector-effect: non-scaling-stroke; }
.chart-line { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px currentColor); }
.chart-primary { color: var(--mint); stroke: var(--mint); }.chart-secondary { color: #61e6ff; stroke: #61e6ff; opacity: .7; }.chart-temperature { color: #ff8c70; stroke: #ff8c70; }.chart-cooling { color: #61e6ff; stroke: #61e6ff; opacity: .74; }.chart-consumption { color: var(--amber); stroke: var(--amber); }
.chart-area { fill: rgba(83, 247, 226, .075); }.consumption-area { fill: rgba(255, 209, 102, .07); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; color: var(--muted); font-size: .52rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 16px; height: 2px; border-radius: 5px; }.legend-primary { background: var(--mint); }.legend-secondary, .legend-cooling { background: #61e6ff; }.legend-temperature { background: #ff8c70; }
.energy-flow { position: relative; height: 16px; overflow: hidden; margin-top: 16px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 209, 102, .02), rgba(255, 209, 102, .15), rgba(255, 209, 102, .02)); }
.energy-flow::before { content: ""; position: absolute; top: 7px; right: 0; left: 0; height: 1px; background: rgba(255, 209, 102, .28); }
.energy-flow i { position: absolute; top: 5px; left: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: energy-packet 3s linear infinite; }
.energy-flow i:nth-child(2) { animation-delay: -.8s; }.energy-flow i:nth-child(3) { animation-delay: -1.6s; }.energy-flow i:nth-child(4) { animation-delay: -2.4s; }
@keyframes energy-packet { to { transform: translateX(520px); } }

.neural-stage { overflow: hidden; border: 1px solid rgba(83, 247, 226, .1); border-radius: 17px; background: radial-gradient(circle at 47% 50%, rgba(83, 247, 226, .12), transparent 26%), linear-gradient(rgba(83, 247, 226, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(83, 247, 226, .035) 1px, transparent 1px), rgba(0, 0, 0, .2); background-size: auto, 32px 32px, 32px 32px, auto; }
.neural-stage svg { display: block; width: 100%; height: auto; min-height: 300px; }
.neural-links line { stroke: rgba(103, 246, 195, .2); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: neural-link-flow 4s linear infinite; }
@keyframes neural-link-flow { to { stroke-dashoffset: -40; } }
.neural-project-node circle { fill: rgba(3, 14, 11, .95); stroke: var(--project-accent); stroke-width: 1; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--project-accent) 70%, transparent)); }
.neural-project-node text { fill: var(--project-accent); font-size: 9px; font-weight: 900; }
.neural-core-node circle:first-child { fill: rgba(83, 247, 226, .04); stroke: rgba(83, 247, 226, .35); stroke-dasharray: 5 5; animation: neural-core-spin 9s linear infinite; transform-box: fill-box; transform-origin: center; }
.neural-core-node circle:nth-child(2) { fill: #08241f; stroke: var(--mint); filter: drop-shadow(0 0 18px rgba(83, 247, 226, .72)); }
.neural-core-node text { fill: #e4fffb; font-size: 16px; font-weight: 300; letter-spacing: 2px; }
@keyframes neural-core-spin { to { transform: rotate(360deg); } }
.neural-layer-node circle, .neural-output-node circle { fill: #061510; stroke: rgba(103, 246, 195, .64); filter: drop-shadow(0 0 8px rgba(83, 247, 226, .25)); }
.neural-layer-node text, .neural-output-node text { fill: #bff8ef; font-size: 8px; font-weight: 900; }
.neural-packet circle { fill: #04110e; stroke: var(--project-accent); stroke-width: 1.5; filter: drop-shadow(0 0 8px var(--project-accent)); }
.neural-packet text { fill: var(--project-accent); font-size: 6px; font-weight: 950; }
.neural-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; }
.neural-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .53rem; }
.neural-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--project-accent); box-shadow: 0 0 8px var(--project-accent); }

[data-motion-state="paused"] .orbit-ring, [data-motion-state="paused"] .hardware-core-ring, [data-motion-state="paused"] .neural-links line, [data-motion-state="paused"] .neural-core-node circle:first-child, [data-motion-state="paused"] .energy-flow i, [data-motion-state="paused"] .atom-field::before, [data-motion-state="paused"] .atom-electron { animation-play-state: paused; }
[data-motion-state="paused"] [data-fx-panel], [data-motion-state="paused"] .atom-field { transition: none; }

@media (max-width: 1120px) {
  .maria-banner { grid-template-columns: minmax(0, 1fr) 230px; min-height: 300px; }
  body[data-nexus-view="applications"] .maria-banner { grid-template-columns: minmax(0, 1fr) 126px; min-height: 165px; }
  body[data-nexus-view="applications"] .maria-orbit { width: 116px; }
  .ecosystem-intro, .ai-hero { grid-template-columns: 1fr; }
  .ecosystem-intro { padding-inline: clamp(28px, 7vw, 72px); }
  .projects-command-panel { width: min(100%, 680px); }
  .ai-orbit { width: min(420px, 70vw); }
  .ai-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .power-budget-panel, .hardware-panel { grid-column: 1 / -1; }
  .telemetry-panel { grid-column: span 6; }
  .consumption-panel { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .view-background { object-position: center top; }
  .maria-banner, body[data-nexus-view="applications"] .maria-banner, body[data-nexus-view="ai"] .maria-banner { width: min(100% - 24px, 1500px); min-height: 420px; grid-template-columns: 1fr; align-items: end; margin-top: 12px; padding: 22px 18px; }
  .maria-avatar, body[data-nexus-view="applications"] .maria-avatar { top: -5%; right: -20%; width: 115%; height: 105%; opacity: .31; mask-image: linear-gradient(180deg, #000, transparent 85%); }
  body[data-nexus-view="applications"] .maria-identity h2, body[data-nexus-view="ai"] .maria-banner .maria-identity h2 { font-size: 3.15rem; }
  .maria-banner .maria-orbit { display: none; }
  .maria-banner .maria-identity { align-items: flex-start; }
  .maria-banner .maria-mark, body[data-nexus-view="applications"] .maria-mark { width: 60px; height: 60px; border-radius: 17px; font-size: 1.15rem; }
  body[data-nexus-view="ai"] .maria-banner .maria-identity p { display: block; }
  .maria-banner-actions { align-items: stretch; flex-direction: column; }
  .maria-banner-actions .primary { width: 100%; }
  body[data-nexus-view="applications"] .maria-banner { min-height: 280px; }
  body[data-nexus-view="applications"] .maria-avatar { top: -18%; right: -18%; width: 105%; height: 125%; opacity: .29; }
  body[data-nexus-view="applications"] .maria-banner .maria-identity h2 { font-size: 2.7rem; }
  body[data-nexus-view="applications"] .maria-banner .maria-identity p { font-size: .68rem; }
  .applications-page { width: min(100% - 24px, 1600px); padding-top: 12px; }
  .ecosystem-intro { min-height: 0; gap: 30px; margin-top: 0; padding: 29px 18px 20px; border-radius: 23px; }
  .ecosystem-intro::before { background-position: center, center, 66% 12%; background-size: cover, cover, auto 48%; opacity: .54; }
  .ecosystem-intro h1 { font-size: clamp(3.35rem, 17vw, 4.55rem); }
  .ecosystem-intro p { font-size: .79rem; }
  .projects-flow { align-items: stretch; flex-direction: column; gap: 6px; }
  .projects-flow b { width: 1px; height: 13px; margin-left: 12px; background: linear-gradient(180deg, rgba(103, 246, 195, .08), rgba(103, 246, 195, .55)); }
  .projects-command-panel { width: 100%; padding: 14px; }
  .projects-command-head { align-items: flex-start; flex-direction: column; }
  .project-access-map { grid-template-columns: 1fr; }
  .projects-section-head { align-items: stretch; flex-direction: column; margin-top: 27px; }
  .project-filters { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .project-filters button { justify-content: space-between; }
  .project-filters button:first-child { grid-column: 1 / -1; }
  .app-card { min-height: 575px; border-radius: 21px; }
  .app-card-visual { min-height: 185px; }
  .app-card-body { padding: 20px 17px; }
  .app-card-heading { grid-template-columns: 1fr; }
  .access-badge { width: fit-content; }
  .app-card .app-description { min-height: 0; }
  .project-access-dialog { inset: auto 0 0; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 0 auto 12px; border-radius: 22px; }
  .project-access-dialog-shell { min-height: 0; grid-template-columns: 1fr; }
  .project-access-dialog-visual { min-height: 210px; }
  .project-access-dialog-monogram { width: 90px; height: 90px; border-radius: 25px; font-size: 1.15rem; }
  .project-access-dialog-signal { right: 16px; bottom: 14px; left: 16px; }
  .project-access-dialog-content { padding: 28px 18px 20px; }
  .project-access-dialog-content h2 { margin-right: 46px; font-size: clamp(2.55rem, 13vw, 3.65rem); }
  .project-access-dialog-content > p { font-size: .79rem; }
  .project-access-dialog-close { top: 12px; right: 12px; }
  .ai-page { width: min(100% - 24px, 1600px); }
  .ai-hero { min-height: 720px; align-content: end; padding: 24px 18px; }
  .ai-hero::before { background: radial-gradient(circle at 50% 20%, rgba(83, 247, 226, .18), transparent 30%); }
  .ai-hero .maria-identity { align-items: flex-start; }
  .ai-hero .maria-identity h1 { font-size: 3.55rem; }
  .ai-hero .maria-mark.large { width: 68px; height: 68px; border-radius: 19px; font-size: 1.25rem; }
  .ai-orbit { position: absolute; top: 36px; left: 50%; width: min(320px, 78vw); transform: translateX(-50%); opacity: .84; }
  .simulation-disclosure { align-items: flex-start; flex-direction: column; }
  .ai-kpi-grid { grid-template-columns: 1fr 1fr; }
  .ai-kpi { min-height: 112px; padding: 16px; }
  .ai-command-grid { grid-template-columns: 1fr; }
  .power-budget-panel, .hardware-panel, .telemetry-panel, .neural-network-panel { grid-column: 1; }
  .future-panel { padding: 20px 16px; border-radius: 18px; }
  .future-panel-head { align-items: flex-start; flex-direction: column; }
  .power-total { text-align: left; }
  .power-row { grid-template-columns: 1fr; }
  .power-control { grid-template-columns: 1fr 42px; }
  .power-footer { align-items: stretch; flex-direction: column; }
  .hardware-spec-grid { grid-template-columns: 1fr; }
  .telemetry-chart { min-width: 520px; }
  .telemetry-panel { overflow-x: auto; }
  .telemetry-panel .future-panel-head, .telemetry-panel .metric-readout, .telemetry-panel .chart-legend, .telemetry-panel .energy-flow { position: sticky; left: 0; width: calc(100vw - 58px); }
  .neural-stage { overflow-x: auto; }
  .neural-stage svg { min-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .orbit-ring, .hardware-core-ring, .neural-links line, .neural-core-node circle:first-child, .energy-flow i, .atom-field::before, .atom-electron { animation: none !important; }
  [data-fx-panel], .view-background, .app-card-visual::before, .project-access-node, .project-filters button { transition: none; }
  [data-fx-panel]:is(:hover, :focus-within) { transform: none; }
  .app-card:is(:hover, :focus-within, :focus-visible) .app-card-visual::before { transform: none; }
}

.profile-hero { align-items: center; }
.profile-identity-summary { display: flex; align-items: center; gap: 16px; min-width: min(100%, 360px); padding: 20px; border: 1px solid rgba(121,255,195,.2); background: rgba(5,16,12,.8); box-shadow: inset 0 0 28px rgba(50,255,152,.05); }
.profile-identity-summary > span { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(105,255,185,.55); border-radius: 50%; color: var(--lime); font: 800 18px/1 var(--display); box-shadow: 0 0 22px rgba(74,255,151,.2); }
.profile-identity-summary div { display: grid; gap: 4px; min-width: 0; }
.profile-identity-summary strong { color: #f2fff7; font-size: 18px; }
.profile-identity-summary small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.profile-identity-summary em { width: max-content; margin-top: 5px; padding: 5px 8px; border: 1px solid rgba(80,231,255,.25); color: var(--cyan); font: 700 10px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; }
.profile-products ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.profile-products li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.018); }
.profile-products li > span:first-child { display: grid; gap: 4px; }
.profile-products li strong { color: #e9fff2; }
.profile-products li small { color: var(--muted); }
.identity-provider-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.identity-provider-card h2 { margin: 8px 0 12px; }
.identity-provider-card p { color: var(--muted); line-height: 1.65; }
.profile-commerce-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.commerce-login-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 16px; padding: 16px 18px; border: 1px solid rgba(91,255,179,.52); color: #edfff5; background: linear-gradient(110deg, rgba(32,206,120,.17), rgba(41,225,255,.07)); box-shadow: 0 0 28px rgba(49,255,145,.1), inset 0 0 24px rgba(52,255,157,.04); font: 800 .72rem/1 var(--display); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.commerce-login-cta:is(:hover, :focus-visible) { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 34px rgba(64,255,151,.25), inset 0 0 26px rgba(52,255,157,.08); }
.commerce-login-cta i { font-size: 1.15rem; font-style: normal; }
.login-separator { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }
.login-separator::before, .login-separator::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.federation-login-error:not(:empty), .federation-profile-alert { padding: 12px 14px; border: 1px solid rgba(255,178,72,.35); color: #ffd79b; background: rgba(100,54,8,.24); line-height: 1.55; }
.federation-profile-alert { width: min(100%, 900px); margin: -8px 0 18px; }

@media (max-width: 820px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-identity-summary { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .profile-products li { align-items: flex-start; flex-direction: column; }
}
