:root {
    color-scheme: light dark;
    --bg: #f2f5f8;
    --surface: #ffffff;
    --surface-2: #eaf0f5;
    --text: #111820;
    --muted: #5d6977;
    --border: #cfd8e3;
    --brand: #126fae;
    --brand-strong: #075989;
    --accent: #e57d19;
    --good: #087d43;
    --warn: #9a6200;
    --bad: #a12b3b;
    --code: #edf2f6;
    --shadow: 0 18px 55px rgba(14, 30, 48, 0.09);
    --radius: 24px;
    --user-font-scale: 1;
}

/* IPMdb.ai 11.3 — public face */
.page-home {
    background: #010407;
}

.page-home .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
}

.page-home .face-lock {
    display: inline-flex;
}

.ipm-face-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - 74px);
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 44%, rgba(0, 113, 255, .34), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(0, 221, 255, .14), transparent 25rem),
        linear-gradient(145deg, #010306 0%, #071a29 58%, #02080d 100%);
}

.ipm-face-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(85, 226, 255, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 226, 255, .1) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.ipm-face-hero-inner {
    display: grid;
    min-height: calc(100svh - 74px);
    grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: clamp(30px, 7vw, 90px);
    padding-block: clamp(54px, 8vw, 100px);
}

.ipm-face-seal {
    position: relative;
    display: grid;
    width: min(39vw, 470px);
    aspect-ratio: 1 / 1;
    place-items: center;
    justify-self: center;
    border-radius: 50%;
    transition: transform .2s ease, filter .2s ease;
}

.ipm-face-seal::before,
.ipm-face-seal::after {
    position: absolute;
    border: 1px solid rgba(76, 222, 255, .28);
    border-radius: 50%;
    content: "";
}

.ipm-face-seal::before { inset: -7%; box-shadow: inset 0 0 72px rgba(0, 127, 255, .2), 0 0 90px rgba(0, 105, 255, .14); }
.ipm-face-seal::after { inset: 4%; border-color: rgba(222, 183, 82, .25); }
.ipm-face-seal:hover { transform: scale(1.025); filter: brightness(1.08); }
.ipm-face-seal img { position: relative; z-index: 2; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 30px 60px #000); }

.ipm-face-copy .eyebrow,
.ipm-face-heading .eyebrow {
    margin-bottom: 14px;
    color: #55e6ff;
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .18em;
}

.ipm-face-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #f7fbff;
    font-size: clamp(3.2rem, 6.8vw, 7.2rem);
    line-height: .82;
    letter-spacing: -.07em;
}

.ipm-face-copy h1 em {
    color: transparent;
    font-style: normal;
    -webkit-text-stroke: 1px #eefaff;
    text-shadow: 0 0 38px rgba(0, 132, 255, .22);
}

.ipm-face-copy > p:not(.eyebrow) {
    max-width: 700px;
    margin: 28px 0 0;
    color: #b5c7d1;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    line-height: 1.55;
}

.ipm-face-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ipm-face-actions a { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 23px; border: 1px solid rgba(85, 230, 255, .45); border-radius: 999px; font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-decoration: none; }
.ipm-primary { background: #f1fbff; color: #02070a; }
.ipm-primary:hover { background: #55e6ff; }
.ipm-secondary { background: rgba(2, 12, 19, .72); color: #bdf7ff; }
.ipm-secondary:hover { border-color: #dfbd64; color: #f0d079; }
.ipm-face-copy > small { display: block; margin-top: 22px; color: #dabb65; font-size: .62rem; font-weight: 950; letter-spacing: .16em; }

.ipm-face-stats { border-block: 1px solid rgba(73, 215, 250, .16); background: linear-gradient(180deg, #020a10, #010508); }
.ipm-face-stats .shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.ipm-face-stats div { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 20px 10px; border-right: 1px solid rgba(73, 215, 250, .13); }
.ipm-face-stats div:last-child { border-right: 0; }
.ipm-face-stats strong { color: #e6c36a; font-size: 1.45rem; }
.ipm-face-stats span { color: #8da7b4; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

.ipm-face-section { padding: clamp(62px, 9vw, 112px) 0; }
.ipm-face-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 7vw; margin-bottom: 36px; }
.ipm-face-heading h2 { margin: 0; color: #f3fbff; font-size: clamp(2.5rem, 6vw, 5.7rem); line-height: .86; letter-spacing: -.06em; }
.ipm-face-heading > p { max-width: 430px; margin: 0; color: #8fa6b2; font-size: 1rem; line-height: 1.55; }
.ipm-face-heading.compact h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.ipm-face-heading > a { align-self: end; justify-self: end; color: #72eaff; font-size: .72rem; font-weight: 950; letter-spacing: .1em; text-decoration: none; }

.ipm-face-doors { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.ipm-face-door { position: relative; isolation: isolate; display: block; min-height: 310px; overflow: hidden; border: 1px solid rgba(83, 221, 255, .24); border-radius: 24px; background: #03090e; box-shadow: 0 26px 72px rgba(0, 0, 0, .38); color: white; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.ipm-face-door:hover { transform: translateY(-4px); border-color: #58e6ff; }
.ipm-face-door::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 16%, rgba(0, 3, 6, .2) 42%, rgba(0, 3, 6, .98) 100%); content: ""; }
.ipm-face-door img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ipm-face-door span { position: absolute; right: 26px; bottom: 24px; left: 26px; display: grid; }
.ipm-face-door small { color: #69e7fa; font-size: .62rem; font-weight: 950; letter-spacing: .14em; }
.ipm-face-door strong { margin-top: 7px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: .9; letter-spacing: -.045em; }
.ipm-face-door b { max-width: 520px; margin-top: 9px; color: #c0cdd3; font-size: .86rem; font-weight: 650; line-height: 1.4; }
.ipm-face-door i { position: absolute; right: 0; bottom: 0; color: #e5c369; font-size: 1.5rem; font-style: normal; }
.face-door-lock { grid-column: span 7; grid-row: span 2; min-height: 634px; }
.face-door-lock img { object-fit: contain; padding: 22px 26px 150px; background: radial-gradient(circle at 50% 35%, rgba(24, 101, 50, .4), transparent 46%), #010604; }
.face-door-dad,
.face-door-edge { grid-column: span 5; }

.ipm-face-tools { border-block: 1px solid rgba(79, 216, 248, .12); background: linear-gradient(145deg, #061722, #02080d 70%); }
.ipm-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ipm-tool-grid a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px; grid-template-rows: auto 1fr auto; column-gap: 14px; min-height: 150px; padding: 20px; border: 1px solid rgba(84, 222, 255, .2); border-radius: 17px; overflow: hidden; background: linear-gradient(145deg, rgba(12, 41, 56, .92), rgba(2, 8, 12, .98)); color: white; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.ipm-tool-grid a:hover { transform: translateY(-3px); border-color: #57e7ff; }
.ipm-tool-grid span { color: #e4bf61; font-size: .62rem; font-weight: 950; letter-spacing: .12em; }
.ipm-tool-grid strong { align-self: end; font-size: 1.35rem; letter-spacing: .025em; }
.ipm-tool-grid small { color: #8da6b2; font-size: .75rem; }
.ipm-tool-grid img { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; width: 92px; height: 92px; object-fit: contain; object-position: center; filter: drop-shadow(0 9px 14px rgba(0, 0, 0, .42)); }
.ipm-tool-grid i { position: absolute; top: 17px; right: 18px; color: #67e8fa; font-style: normal; }

.ipm-face-assets { background: radial-gradient(circle at 90% 10%, rgba(22, 112, 183, .15), transparent 26rem), #02080d; }
.ipm-asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ipm-asset-grid a,
.ipm-empty-asset { position: relative; display: grid; min-height: 158px; align-content: space-between; gap: 14px; padding: 19px; border: 1px solid rgba(82, 218, 250, .22); border-radius: 17px; background: linear-gradient(145deg, #0a2635, #02080d 72%); color: white; text-decoration: none; }
.ipm-asset-grid a:hover,
.ipm-empty-asset:hover { border-color: #59e6ff; }
.ipm-asset-grid small { color: #57e2f6; font-size: .65rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.ipm-asset-grid strong { font-size: 1.08rem; line-height: 1.2; }
.ipm-asset-grid span { overflow: hidden; color: #829aa7; font-family: ui-monospace, monospace; font-size: .63rem; text-overflow: ellipsis; }
.ipm-asset-grid i { position: absolute; top: 17px; right: 17px; color: #e5c46b; font-style: normal; }
.ipm-empty-asset { min-height: 110px; place-items: center; color: #8ceefe; font-size: .78rem; font-weight: 950; letter-spacing: .1em; }

.ipm-face-loop { border-top: 1px solid rgba(74, 213, 246, .14); background: #010406; }
.ipm-face-loop .shell { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-block: 24px; }
.ipm-face-loop span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #a1b7c2; font-size: .67rem; font-weight: 950; letter-spacing: .09em; }
.ipm-face-loop b { color: #4ce2f7; font-size: .57rem; }

@media (max-width: 900px) {
    .ipm-face-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .ipm-face-seal { width: min(54vw, 380px); }
    .ipm-face-copy > p:not(.eyebrow) { margin-inline: auto; }
    .ipm-face-actions { justify-content: center; }
    .ipm-face-doors { display: block; }
    .ipm-face-door { min-height: 440px; margin-bottom: 12px; }
    .face-door-lock { min-height: 540px; }
    .face-door-lock img { padding-bottom: 145px; }
    .ipm-asset-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .page-home .face-doer { display: none; }

/* 12.3.0 opportunity > IP > capital */
.capital-path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px}
.capital-path-grid>a{position:relative;display:grid;min-height:420px;padding:22px;align-content:end;overflow:hidden;border:1px solid rgba(85,226,255,.24);border-radius:24px;background:linear-gradient(180deg,rgba(4,14,21,.4),#03090d 72%);color:white;text-decoration:none}
.capital-path-grid img{position:absolute;inset:0 0 auto;width:100%;height:210px;object-fit:cover;opacity:.72;mask-image:linear-gradient(#000 55%,transparent)}
.capital-path-number{position:absolute;z-index:1;top:18px;left:18px;color:#e9c66a;font-size:.7rem;font-weight:950;letter-spacing:.14em}
.capital-path-grid h3{position:relative;margin:0;font-size:clamp(2rem,4vw,3.5rem);letter-spacing:-.06em}
.capital-path-grid p{position:relative;min-height:4.5em;margin:10px 0 20px;color:#9eb1bc;line-height:1.5}
.capital-path-grid strong{position:relative;color:#61e9fa;font-size:.7rem;letter-spacing:.11em}
.oversight-band{padding:28px 0;border-block:1px solid rgba(231,194,99,.25);background:linear-gradient(90deg,rgba(231,194,99,.08),rgba(5,18,28,.82))}
.oversight-band .shell{display:grid;grid-template-columns:110px 1fr auto;gap:22px;align-items:center}
.oversight-band img{width:110px;height:110px;border-radius:22px;object-fit:cover}
.oversight-band h2{margin:6px 0;font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.05em}
.oversight-band p:last-child{margin:0;color:#9db1bc}
.oversight-band a{padding:14px 18px;border:1px solid rgba(231,194,99,.44);border-radius:999px;color:#f0ce75;font-size:.68rem;font-weight:950;letter-spacing:.1em;text-decoration:none;white-space:nowrap}
.support-tools nav{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:24px}
.support-tools nav a{display:grid;min-height:120px;grid-template-columns:54px 1fr auto;gap:12px;padding:16px;align-items:center;border:1px solid rgba(85,226,255,.17);border-radius:17px;background:#040c12;color:white;text-decoration:none}
.support-tools nav img{width:54px;height:54px;border-radius:14px;object-fit:cover}
.support-tools nav span{display:grid;gap:4px}.support-tools nav small{color:#7e98a6}.support-tools nav i{color:#5ce6fa;font-style:normal}
@media(max-width:780px){.capital-path-grid{grid-template-columns:1fr}.capital-path-grid>a{min-height:330px}.capital-path-grid img{height:180px}.capital-path-grid p{min-height:0}.oversight-band .shell{grid-template-columns:76px 1fr}.oversight-band img{width:76px;height:76px}.oversight-band a{grid-column:1/-1;text-align:center}.support-tools nav{grid-template-columns:1fr 1fr}.support-tools nav a{grid-template-columns:48px 1fr}.support-tools nav i{display:none}}
@media(max-width:460px){.support-tools nav{grid-template-columns:1fr}}

/* 12.3.1 bench reduction: let text-bearing graphics speak */
.capital-path-grid>a{min-height:0;padding:16px;align-content:start}
.capital-path-grid img{position:relative;inset:auto;display:block;width:100%;height:auto;max-height:280px;margin:8px auto 14px;object-fit:contain;opacity:1;mask-image:none}
.capital-path-grid p{min-height:0;margin:0 2px 18px}
.capital-path-grid strong{margin:0 2px 2px}
.support-tools nav{grid-template-columns:repeat(4,minmax(110px,1fr))}
.support-tools nav a{display:grid;min-height:150px;padding:10px;place-items:center;border-radius:22px}
.support-tools nav img{width:min(126px,100%);height:auto;max-height:126px;border-radius:20px;object-fit:contain}
.site-footer{background:transparent!important;border-top-color:rgba(85,226,255,.08)!important}
.icon-dock{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
.icon-dock a{width:76px;height:76px}
.icon-dock img{border-radius:20px}
@media(max-width:780px){.capital-path-grid>a{min-height:0}.capital-path-grid img{height:auto;max-height:240px}.support-tools nav{grid-template-columns:1fr 1fr}.support-tools nav a{min-height:160px}.support-tools nav img{width:min(136px,100%);max-height:136px}}
@media(max-width:460px){.support-tools nav{grid-template-columns:1fr 1fr}.support-tools nav a{min-height:142px}.support-tools nav img{width:min(120px,100%);max-height:120px}.icon-dock{height:82px}.icon-dock a{width:70px;height:70px}}
    .page-home .face-lock { min-width: 82px; min-height: 42px; }
    .ipm-face-hero { min-height: 0; }
    .ipm-face-hero-inner { min-height: 0; gap: 30px; padding-block: 38px 56px; }
    .ipm-face-seal { width: min(72vw, 300px); }
    .ipm-face-copy h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
    .ipm-face-copy > p:not(.eyebrow) { margin-top: 22px; font-size: 1rem; }
    .ipm-face-actions { display: grid; }
    .ipm-face-actions a { width: 100%; }
    .ipm-face-stats .shell { grid-template-columns: repeat(2, 1fr); }
    .ipm-face-stats div:nth-child(2) { border-right: 0; }
    .ipm-face-stats div:nth-child(-n + 2) { border-bottom: 1px solid rgba(73, 215, 250, .13); }
    .ipm-face-section { padding-block: 58px; }
    .ipm-face-heading { display: block; margin-bottom: 25px; }
    .ipm-face-heading > p,
    .ipm-face-heading > a { display: block; margin-top: 16px; }
    .ipm-face-heading h2,
    .ipm-face-heading.compact h2 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
    .ipm-face-door,
    .face-door-lock { min-height: 420px; }
    .face-door-lock img { padding: 18px 18px 140px; }
    .ipm-face-door span { right: 20px; bottom: 20px; left: 20px; }
    .ipm-tool-grid { grid-template-columns: 1fr; }
    .ipm-tool-grid a { grid-template-columns: minmax(0, 1fr) 112px; min-height: 146px; }
    .ipm-tool-grid img { width: 112px; height: 112px; }
    .ipm-asset-grid { grid-template-columns: 1fr; }
    .ipm-asset-grid a { min-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
    .ipm-face-seal,
    .ipm-face-door,
    .ipm-tool-grid a { transition: none; }
}

* {
    box-sizing: border-box;
}

html {
    font-size: calc(16px * var(--user-font-scale));
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-strong);
}

button,
input,
textarea,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 12px 18px;
    transform: translateY(-150%);
    border-radius: 12px;
    background: var(--text);
    color: var(--surface);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header,
.workspace-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
}

/* Shared full-face header: public tools and Phoenix workspace */
.face-header-inner {
    display: grid;
    grid-template-columns: minmax(190px, 300px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2.5vw, 30px);
    min-height: 104px;
    padding-block: 10px;
}

.face-brand {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(88, 224, 255, 0.28);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.62), 0 0 24px rgba(0, 174, 255, 0.10);
}

.face-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.face-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.face-nav a {
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #aeeefa;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.face-nav a:hover,
.face-nav a.active {
    border-color: rgba(82, 229, 255, 0.28);
    background: linear-gradient(145deg, rgba(14, 54, 72, 0.78), rgba(1, 7, 11, 0.94));
    color: #fff;
}

.face-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.face-lock,
.face-doer {
    display: inline-grid;
    min-height: 42px;
    place-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(89, 231, 255, 0.58);
    border-radius: 10px;
    background: linear-gradient(180deg, #0e5268, #061c28 55%, #02090e);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.30);
    color: #effcff;
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-decoration: none;
}

.face-doer {
    border-color: rgba(217, 182, 93, 0.52);
    background: linear-gradient(145deg, rgba(17, 40, 54, 0.96), rgba(2, 8, 13, 0.98));
    color: #ead79e;
}

.face-lock:hover,
.face-doer:hover {
    color: #fff;
    filter: brightness(1.14);
}

/* RC4: use the commissioned graphical control family on the real Phoenix routes. */
.face-picture-action {
    display: block;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(89, 231, 255, 0.58);
    border-radius: 50%;
    background: #02070d;
    box-shadow: 0 8px 24px rgba(0,0,0,.42), 0 0 18px rgba(26,150,255,.18);
}

.face-picture-action img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-picture-action:hover,
.face-picture-action:focus-visible {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.lock-form-mark,
.login-form-mark {
    display: block;
    width: min(220px, 52vw);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,.35));
}

.login-form-mark {
    width: min(130px, 34vw);
}

@media (max-width: 760px) {
    .face-nav { display: none; }
    .face-header-inner {
        grid-template-columns: minmax(0,1fr) auto;
        gap: 8px;
        min-height: 82px;
        padding-top: max(8px, env(safe-area-inset-top));
    }
    .face-actions { gap: 5px; }
    .face-picture-action { width: 44px; height: 44px; }
    .face-doer { min-height: 44px; padding: 7px 9px; font-size: .62rem; }
    .face-brand { max-width: 100%; }
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
}

.main-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--surface-2);
    color: var(--text);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.button,
button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 0;
    border-radius: 15px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--brand-strong);
    color: #fff;
}

.button.secondary,
button.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.button.secondary:hover,
button.secondary:hover {
    background: var(--surface-2);
}

.button.compact {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.button.danger {
    background: var(--bad);
}

.node-directory {
    background:
        radial-gradient(circle at 15% 0%, rgba(57, 217, 237, .11), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(229, 125, 25, .08), transparent 36%),
        #02070b;
    color: #eefaff;
}

.node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.node-grid a {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    border: 1px solid rgba(91, 224, 244, .26);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(12, 48, 62, .86), rgba(2, 7, 11, .98));
    color: #f4fdff;
    font-weight: 950;
    letter-spacing: .035em;
    text-decoration: none;
}

.node-grid a:hover,
.node-grid a:focus-visible {
    border-color: #5be0f4;
    color: #fff;
    outline: 2px solid rgba(91, 224, 244, .4);
    outline-offset: 2px;
}

.node-grid b {
    color: #d9b65d;
    font-size: 1.25rem;
}

.hero {
    padding: clamp(72px, 12vw, 150px) 0 clamp(60px, 10vw, 120px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: end;
    gap: clamp(36px, 7vw, 90px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.05;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.3rem, 9vw, 7rem);
}

h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.lede {
    max-width: 780px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 650;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-card,
.card,
.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-card,
.card {
    padding: clamp(24px, 4vw, 38px);
}

.hero-card ul,
.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    font-weight: 850;
}

.hero-card li:last-child {
    border: 0;
}

.section {
    padding: clamp(64px, 9vw, 110px) 0;
}

.section.tint {
    border-block: 1px solid var(--border);
    background: var(--surface-2);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.metric strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 800;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card + .card {
    margin-top: 0;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    border-color: var(--brand);
    color: inherit;
    transform: translateY(-2px);
}

.code,
code,
.hash {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hash {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: var(--code);
    font-size: 0.82rem;
}

.badge,
.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status.good,
.badge.good {
    background: color-mix(in srgb, var(--good) 16%, var(--surface));
    color: var(--good);
}

.status.warn {
    background: color-mix(in srgb, var(--warn) 16%, var(--surface));
    color: var(--warn);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.stack {
    display: grid;
    gap: 16px;
}

.prose {
    max-width: 820px;
    font-size: 1.12rem;
}

.prose p {
    margin: 0 0 1.2em;
}

.manifesto {
    display: grid;
    gap: 12px;
    margin: 34px 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 950;
}

.form-card {
    width: min(100%, 820px);
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    margin-bottom: 22px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 900;
}

.hint {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

input,
textarea,
select {
    width: 100%;
    min-height: 58px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    outline: 4px solid color-mix(in srgb, var(--brand) 20%, transparent);
}

.notice {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-left: 6px solid var(--brand);
    border-radius: 14px;
    background: var(--surface);
    font-weight: 750;
}

.notice.success {
    border-color: var(--good);
}

.notice.error {
    border-color: var(--bad);
}

.notice.warning {
    border-color: var(--warn);
}

.empty {
    padding: 34px;
    border: 2px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border: 0;
}

.graph-edge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.graph-edge .relation {
    color: var(--accent);
    font-weight: 950;
}

.site-footer {
    padding: 54px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
}

.footer-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-grid > div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.workspace-main {
    padding-block: 46px 80px;
}

.workspace-main > .section-head:first-child {
    margin-top: 0;
}

.workspace-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.receipt {
    text-align: center;
}

.receipt .brand-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 22px;
    font-size: 2rem;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .face-header-inner {
        grid-template-columns: minmax(180px, 280px) 1fr;
    }

    .face-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 3;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .face-nav::-webkit-scrollbar {
        display: none;
    }

    .face-actions {
        justify-self: end;
    }

    .hero-grid,
    .grid.three,
    .grid.four,
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 11.6 grouped node directory — fewer repeats, materially less scroll */
.ipm-node-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.ipm-node-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(84, 222, 255, .2);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(10, 37, 50, .94), rgba(1, 6, 10, .98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}
.ipm-node-group > header {
    display: grid;
    gap: 3px;
    min-height: 54px;
    align-content: center;
    padding: 2px 5px 12px;
}
.ipm-node-group > header strong {
    color: #61e8fb;
    font-size: .72rem;
    letter-spacing: .14em;
}
.ipm-node-group > header small {
    color: #849eab;
    font-size: .72rem;
}
.ipm-node-group nav { display: grid; gap: 7px; }
.ipm-node-group a {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    min-height: 78px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 13px;
    overflow: hidden;
    border: 1px solid rgba(84, 222, 255, .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(9, 31, 43, .88), rgba(1, 6, 10, .98));
    color: white;
    text-decoration: none;
}
.ipm-node-group a:hover,
.ipm-node-group a:focus-visible { border-color: #5be7fb; transform: translateY(-1px); }
.ipm-node-group a span { display: grid; min-width: 0; gap: 2px; }
.ipm-node-group a strong { font-size: .92rem; line-height: 1; letter-spacing: .015em; }
.ipm-node-group a small { overflow: hidden; color: #8ba3af; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.ipm-node-group a img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.42)); }
.ipm-node-group a i { position: absolute; top: 7px; right: 8px; color: #ddbd62; font-size: .7rem; font-style: normal; }

@media (max-width: 900px) {
    .ipm-node-groups { grid-template-columns: 1fr; }
    .ipm-node-group nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .ipm-face-tools { padding-block: 46px; }
    .ipm-node-groups { gap: 10px; }
    .ipm-node-group { padding: 10px; border-radius: 18px; }
    .ipm-node-group > header { min-height: 48px; padding-bottom: 9px; }
    .ipm-node-group a { grid-template-columns: minmax(0, 1fr) 52px; min-height: 70px; padding-left: 10px; }
    .ipm-node-group a img { width: 52px; height: 52px; }
    .ipm-node-group a strong { font-size: .78rem; }
    .ipm-node-group a small { font-size: .6rem; }
}

@media (max-width: 680px) {
    .node-grid {
        grid-template-columns: 1fr;
    }

    .shell {
        width: min(100% - 22px, 1180px);
    }

    .site-header,
    .workspace-header {
        position: static;
    }

    .header-inner {
        min-height: 70px;
        gap: 10px;
    }

    .face-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        min-height: 0;
        padding-block: 8px;
    }

    .face-brand {
        width: min(100%, 245px);
    }

    .face-actions {
        gap: 5px;
    }

    .face-lock,
    .face-doer {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 0.65rem;
    }

    .face-nav {
        gap: 3px;
        margin-inline: -11px;
        padding-inline: 11px;
    }

    .face-nav a {
        flex: 0 0 auto;
        padding: 8px 9px;
        font-size: 0.69rem;
    }

    .brand > span:last-child {
        display: none;
    }

    .header-actions .secondary {
        display: none;
    }

    .hero {
        padding-top: 62px;
    }

    .hero-grid,
    .grid.two,
    .grid.three,
    .grid.four,
    .metrics,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section-head .button {
        margin-top: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .graph-edge {
        grid-template-columns: 1fr;
    }

    .workspace-footer {
        display: grid;
    }
}

/* IPMdb.ai 11.0 — Doer-first command surface */
:root {
    --bg: #010306;
    --surface: #061019;
    --surface-2: #0a1b28;
    --text: #f5fbff;
    --muted: #91aab8;
    --border: rgba(77, 218, 255, .24);
    --brand: #54eaff;
    --brand-strong: #b8f8ff;
    --accent: #ddb759;
    --good: #63e0a4;
    --bad: #ff788a;
    --radius: 18px;
}

body {
    background:
        radial-gradient(circle at 18% 0, rgba(0, 120, 255, .12), transparent 30rem),
        radial-gradient(circle at 90% 20%, rgba(0, 234, 202, .06), transparent 26rem),
        #010306;
}

.page-home .site-header { display: block; }

.site-header,
.workspace-header {
    background: rgba(1, 5, 9, .88);
    border-bottom: 1px solid rgba(80, 225, 255, .19);
    backdrop-filter: blur(22px) saturate(1.2);
}

.face-header-inner {
    grid-template-columns: minmax(170px, 250px) 1fr auto;
    min-height: 74px;
    padding-block: 8px;
}

.face-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: white;
    text-decoration: none;
}

.face-brand img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid rgba(83, 231, 255, .34);
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(30, 180, 255, .16);
}

.face-brand span { display: grid; line-height: .88; }
.face-brand b,
.face-brand i { display: inline; font-size: 1.45rem; font-style: normal; letter-spacing: -.055em; }
.face-brand i { color: #67b5ff; }
.face-brand small { margin-top: 7px; color: #8ca7b7; font-size: .58rem; font-weight: 900; letter-spacing: .2em; }
.face-nav a { color: #9ab6c4; font-size: .72rem; }
.face-nav a.active,
.face-nav a:hover { color: white; }
.face-lock,
.face-doer { min-height: 40px; border-radius: 999px; }

.command-deck {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100svh - 74px);
    padding: clamp(22px, 4vw, 48px) 0;
}

.command-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(74, 212, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 212, 255, .055) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.command-deck::before {
    position: absolute;
    inset: -30% 40% 15% -25%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(0, 128, 255, .11);
    filter: blur(90px);
    content: "";
}

.command-shell {
    display: grid;
    min-height: calc(100svh - 132px);
    grid-template-columns: minmax(280px, .78fr) minmax(460px, 1.22fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
}

.command-intro { display: grid; align-items: center; gap: 16px; }
.command-mark {
    display: block;
    width: min(330px, 72vw);
    max-height: 38svh;
    object-fit: contain;
    filter: drop-shadow(0 26px 46px #000) drop-shadow(0 0 32px rgba(45, 216, 255, .13));
}
.command-intro h1 {
    margin: 0;
    color: white;
    font-size: clamp(3.5rem, 7vw, 6.4rem);
    line-height: .78;
    letter-spacing: -.075em;
}
.command-line { margin: 18px 0 0; color: #a8bfcb; font-size: 1.05rem; font-weight: 720; }

.command-form-wrap,
.lock-page .lock-console {
    border: 1px solid rgba(91, 226, 255, .32);
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(11, 31, 46, .96), rgba(1, 6, 10, .98) 74%);
    box-shadow: inset 0 1px rgba(255,255,255,.05), 0 28px 80px rgba(0,0,0,.55), 0 0 60px rgba(0,158,255,.08);
}

.lock-console { display: grid; gap: 14px; padding: clamp(18px, 3vw, 30px); }
.lock-field-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.lock-meta-grid { grid-template-columns: 1.25fr .75fr; }
.field { margin: 0; }
.field label,
.field-label-row label {
    display: block;
    margin: 0 0 6px;
    color: #b6cbd6;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.field-label-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.field-label-row output { color: #6e91a3; font-size: .72rem; font-weight: 800; }
input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(92, 182, 213, .28);
    border-radius: 12px;
    outline: 0;
    background: rgba(0, 5, 9, .78);
    color: white;
}
input,
select { min-height: 48px; padding: 10px 13px; }
textarea { min-height: 142px; padding: 13px; resize: vertical; line-height: 1.48; }
input:focus,
textarea:focus,
select:focus { border-color: #55e8ff; box-shadow: 0 0 0 3px rgba(64, 219, 255, .12); }

.attachment-zone {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px 14px;
    min-height: 64px;
    padding: 9px;
    border: 1px dashed rgba(218, 183, 89, .35);
    border-radius: 14px;
    background: rgba(218, 183, 89, .035);
}
.attachment-control {
    display: grid;
    grid-template-columns: 36px auto;
    align-items: center;
    column-gap: 9px;
    min-width: 170px;
    cursor: pointer;
}
.attachment-control > span { grid-row: 1 / 3; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d8b657; border-radius: 50%; color: #e7c86f; font-size: 1.4rem; }
.attachment-control strong { color: white; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.attachment-control small,
.attachment-status { color: #819aa8; font-size: .7rem; }
.attachment-list { grid-column: 1 / -1; display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.attachment-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.035); font-size: .72rem; }
.attachment-list code { color: #59e7fb; }

.lock-submit {
    display: grid;
    min-height: 64px;
    border-color: rgba(85, 234, 255, .75);
    border-radius: 15px;
    background: linear-gradient(180deg, #0d6f86, #073044 58%, #020b11);
}
.lock-submit span { font-size: 1.05rem; letter-spacing: .16em; }
.lock-submit small { color: #a3cad4; font-size: .64rem; font-weight: 750; letter-spacing: .06em; }
.lock-submit.is-locking { opacity: .68; }
.legal-line { margin: -4px 0 0; color: #6f8794; font-size: .68rem; text-align: center; }
.field-note { display: block; margin-top: 6px; color: #718b99; font-size: .66rem; }
.lock-assist { display: grid; gap: 14px; margin-top: 4px; padding: 18px; border: 1px solid rgba(85, 232, 255, .22); border-radius: 16px; background: rgba(5, 20, 30, .72); }
.lock-assist-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lock-assist-head > div:first-child { display: grid; gap: 4px; }
.lock-assist-head small { color: #54dff3; font-size: .6rem; font-weight: 950; letter-spacing: .12em; }
.lock-assist-head strong { color: white; font-size: 1.1rem; }
.assistant-options { display: flex; gap: 5px; padding: 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #01070b; }
.assistant-options button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: #839aa7; font-size: .62rem; font-weight: 950; letter-spacing: .08em; }
.assistant-options button.is-active { background: #e9f9ff; color: #031018; }
.lock-assist > p { margin: 0; color: #a7bbc6; font-size: .76rem; line-height: 1.45; }
.lock-assist > p b { color: #e0bd62; }
.suggestion-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.suggestion-preview span { padding: 7px 9px; border: 1px solid rgba(85, 232, 255, .34); border-radius: 999px; background: rgba(10, 53, 69, .68); color: #d9fbff; font-size: .58rem; font-weight: 950; letter-spacing: .08em; }
.assist-prompt { display: grid; gap: 6px; }
.assist-prompt span { color: #91a8b4; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.assist-prompt input:disabled { opacity: .68; cursor: not-allowed; }
.trap-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.floating-dad {
    position: fixed;
    z-index: 35;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: block;
    width: clamp(62px, 7vw, 86px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(230, 195, 101, .76);
    border-radius: 50%;
    box-shadow: 0 16px 42px #000, 0 0 22px rgba(210, 159, 45, .18);
}
.floating-dad img { width: 100%; height: 100%; object-fit: cover; }

.signal-strip { border-block: 1px solid rgba(72, 208, 241, .14); background: #02080d; }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid div { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 18px 10px; border-right: 1px solid rgba(72, 208, 241, .12); }
.signal-grid div:last-child { border-right: 0; }
.signal-grid strong { color: #e9c86e; font-size: 1.35rem; }
.signal-grid span { color: #8ca7b4; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

.after-lock-section { padding: clamp(46px, 7vw, 82px) 0; border-bottom: 1px solid rgba(72, 208, 241, .14); background: linear-gradient(135deg, rgba(5, 20, 30, .94), rgba(1, 5, 9, .98)); }
.after-lock-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 84px); align-items: start; }
.after-lock-grid h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .88; letter-spacing: -.055em; }
.after-lock-grid ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(85, 232, 255, .18); }
.after-lock-grid li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(85, 232, 255, .18); color: #95acb8; font-size: .88rem; line-height: 1.45; }
.after-lock-grid li > b { color: #e0bd62; font-size: .68rem; letter-spacing: .1em; }
.after-lock-grid li strong { display: block; margin-bottom: 3px; color: white; font-size: .92rem; letter-spacing: .08em; }

.node-rail-section { padding: 52px 0 58px; overflow: hidden; }
.compact-head { margin-bottom: 20px; }
.compact-head h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.2rem); }
.compact-head > a { color: #7deeff; font-size: .72rem; font-weight: 950; letter-spacing: .08em; text-decoration: none; }
.node-rail {
    display: flex;
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding: 0 max(16px, calc((100vw - 1180px) / 2)) 14px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #1f728d transparent;
}
.node-rail a {
    display: grid;
    flex: 0 0 clamp(190px, 22vw, 280px);
    min-height: 124px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    padding: 18px;
    scroll-snap-align: start;
    border: 1px solid rgba(86, 218, 250, .2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(11, 37, 52, .9), rgba(1, 6, 10, .98));
    color: white;
    text-decoration: none;
}
.node-rail a:hover { border-color: #55e9ff; transform: translateY(-2px); }
.node-rail span { font-size: 1rem; font-weight: 950; letter-spacing: .05em; }
.node-rail b { color: #e0bc61; font-size: 1.2rem; }

.record-section { background: rgba(6, 18, 28, .6); }
.asset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.asset-chip { display: grid; min-height: 154px; align-content: space-between; gap: 12px; padding: 17px; border: 1px solid rgba(80, 210, 244, .18); border-radius: 16px; background: #040c12; color: white; text-decoration: none; }
.asset-chip small { color: #50def4; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.asset-chip strong { font-size: 1.12rem; line-height: 1.2; }
.asset-chip span { overflow: hidden; color: #76909e; font-family: ui-monospace, monospace; font-size: .65rem; text-overflow: ellipsis; }

.loop-band { padding: 24px 0; border-top: 1px solid rgba(78, 214, 246, .12); }
.loop-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.loop-grid span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #a7bcc7; font-size: .68rem; font-weight: 950; letter-spacing: .09em; }
.loop-grid b { color: #3ddcf3; font-size: .58rem; }

.lock-page { position: relative; min-height: calc(100svh - 74px); padding: clamp(30px, 6vw, 80px) 0; overflow: hidden; }
.lock-page-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.lock-page-head img { width: min(300px, 74vw); filter: drop-shadow(0 24px 48px #000); }
.lock-page-head h1 { margin: 0; font-size: clamp(3.8rem, 8vw, 7rem); line-height: .86; letter-spacing: -.07em; }
.lock-page-head p:last-child { color: #91a9b6; font-weight: 700; }
.lock-page .lock-console { padding: clamp(18px, 3vw, 30px); }

.search-workbench { min-height: calc(100svh - 74px); padding: clamp(36px, 7vw, 86px) 0; }
.search-head { margin-bottom: 20px; }
.search-head h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 5.8rem); line-height: .9; letter-spacing: -.06em; }
.scope-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; min-width: min(100%, 330px); margin-bottom: 12px; padding: 4px; border: 1px solid rgba(73, 207, 240, .2); border-radius: 13px; background: #02080d; }
.scope-tabs a { padding: 10px 16px; border-radius: 9px; color: #7893a2; font-size: .76rem; font-weight: 950; letter-spacing: .08em; text-align: center; text-decoration: none; }
.scope-tabs a.active { background: #0b2d3d; color: white; }
.search-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.web-search-bar { grid-template-columns: 1fr minmax(150px, 210px) auto; }
.search-bar input,
.search-bar select { min-height: 58px; }
.search-bar button { min-height: 58px; border-radius: 12px; }
.search-rule { margin: 10px 0 34px; color: #7c96a4; font-size: .78rem; }
.search-rule b { color: #59e8fa; }
.result-count { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.result-count strong { color: #e1bd61; font-size: 2rem; }
.result-count span { color: #8aa3af; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.search-results { display: grid; gap: 10px; }
.result-card { display: block; padding: 20px; border: 1px solid rgba(79, 209, 242, .18); border-radius: 15px; background: rgba(5, 15, 23, .86); color: white; text-decoration: none; }
.result-card:hover { border-color: #54e6fa; }
.result-card small { color: #50dff4; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.result-card h2 { margin: 6px 0 7px; font-size: 1.28rem; }
.result-card p { margin: 0; color: #9db1bc; }
.web-result h2 a { color: white; text-decoration: none; }
.web-result .byline { margin-bottom: 8px; color: #d4b85f; font-size: .8rem; }
.web-result footer { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 14px; color: #607b89; font-size: .68rem; }
.web-result footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.workspace-main { padding-block: 34px 76px; }
.doer-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.doer-actions a { display: grid; min-height: 110px; place-items: center; align-content: center; gap: 7px; border: 1px solid rgba(82, 219, 250, .22); border-radius: 17px; background: linear-gradient(145deg, rgba(10, 35, 49, .9), rgba(2, 8, 12, .98)); color: white; text-decoration: none; }
.doer-actions b { color: #e0bd62; font-size: 1.7rem; }
.doer-actions span { font-size: .72rem; font-weight: 950; letter-spacing: .08em; }
.web-index-layout { align-items: start; }

.site-footer { padding: 28px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-grid > strong small { color: #54dff3; }
.footer-grid nav { display: flex; gap: 16px; }
.footer-grid nav a { color: #8ea7b4; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.footer-grid > span { justify-self: end; color: #718a98; font-size: .75rem; }

@media (max-width: 900px) {
    .command-shell,
    .lock-page-grid { grid-template-columns: 1fr; }
    .command-intro { grid-template-columns: 160px 1fr; }
    .command-mark { width: 160px; }
    .command-intro h1 { font-size: clamp(3rem, 11vw, 5rem); }
    .asset-row { grid-template-columns: repeat(2, 1fr); }
    .doer-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .face-header-inner { grid-template-columns: 1fr auto; }
    .face-brand img { width: 44px; height: 44px; flex-basis: 44px; }
    .face-brand b,
    .face-brand i { font-size: 1.15rem; }
    .face-brand small { font-size: .48rem; }
    .face-lock { display: none; }
    .command-deck { min-height: 0; padding: 22px 0 36px; }
    .command-shell { min-height: 0; gap: 20px; }
    .command-intro { grid-template-columns: 96px 1fr; gap: 10px; }
    .command-mark { width: 96px; max-height: none; }
    .command-intro h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .command-line { margin-top: 10px; font-size: .86rem; }
    .lock-field-grid,
    .lock-meta-grid { grid-template-columns: 1fr; }
    .lock-console { gap: 12px; padding: 15px; }
    textarea { min-height: 180px; }
    .attachment-zone { grid-template-columns: 1fr; }
    .attachment-status { justify-self: start; }
    .lock-assist-head { align-items: flex-start; flex-direction: column; }
    .assistant-options { width: 100%; }
    .assistant-options button { flex: 1; }
    .floating-dad { position: absolute; width: 58px; }
    .signal-grid { grid-template-columns: repeat(2, 1fr); }
    .signal-grid div:nth-child(2) { border-right: 0; }
    .signal-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(72, 208, 241, .12); }
    .asset-row { grid-template-columns: 1fr; }
    .asset-chip { min-height: 128px; }
    .after-lock-grid { grid-template-columns: 1fr; }
    .lock-page { padding-top: 24px; }
    .lock-page-head { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; }
    .lock-page-head img { width: 88px; }
    .lock-page-head h1 { font-size: 3.2rem; }
    .lock-page-head p:last-child { grid-column: 1 / -1; margin-top: 0; }
    .search-workbench { padding-top: 34px; }
    .search-bar,
    .web-search-bar { grid-template-columns: 1fr; }
    .scope-tabs { width: 100%; }
    .web-result footer { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid nav { justify-content: center; }
    .footer-grid > span { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d151f;
        --surface: #152231;
        --surface-2: #1d2d3f;
        --text: #f3f7fb;
        --muted: #acb9c7;
        --border: #34465a;
        --brand: #68b7ef;
        --brand-strong: #9dd4f8;
        --accent: #ffad5d;
        --good: #63d798;
        --warn: #f6c65d;
        --bad: #ff8997;
        --code: #0e1924;
        --shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    }
}

html[data-color-mode="light"],
html[data-color-mode="day"] {
    color-scheme: light;
}

html[data-color-mode="dark"],
html[data-color-mode="night"] {
    color-scheme: dark;
    --bg: #08111b;
    --surface: #13202e;
    --surface-2: #1c2b3d;
    --text: #f4f8fc;
    --muted: #afbccb;
    --border: #35475c;
    --brand: #76c1f2;
    --brand-strong: #a8dbfa;
    --accent: #ffad5d;
    --good: #69dc9d;
    --warn: #f2c45b;
    --bad: #ff8b98;
    --code: #0a1520;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

/* Phoenix sovereign skin */
:root {
    color-scheme: dark;
    --bg: #010407;
    --surface: #07111a;
    --surface-2: #0b1b29;
    --text: #edfaff;
    --muted: #9cb5c3;
    --border: #22485d;
    --brand: #54eaff;
    --brand-strong: #9af5ff;
    --accent: #d9b65d;
    --good: #61d99b;
    --warn: #f4c45c;
    --bad: #ff8290;
    --code: #02080d;
    --shadow: 0 22px 65px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.035);
}

body {
    background:
        radial-gradient(circle at 50% 0, rgba(0, 127, 255, 0.10), transparent 34rem),
        linear-gradient(145deg, #02070c, #000 70%);
}

.site-header,
.workspace-header {
    border-color: rgba(86, 221, 255, 0.20);
    background: rgba(1, 7, 12, 0.90);
}

.brand-mark {
    border: 1px solid rgba(88, 233, 255, 0.72);
    background: linear-gradient(145deg, #0a4d68, #02090e);
    box-shadow: inset 0 0 16px rgba(0, 217, 255, 0.22), 0 0 20px rgba(0, 170, 255, 0.10);
}

.button,
button {
    border: 1px solid rgba(89, 231, 255, 0.58);
    background: linear-gradient(180deg, #0e5268, #061c28 55%, #02090e);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.30);
    letter-spacing: 0.02em;
}

.button:hover,
button:hover {
    background: linear-gradient(180deg, #16738d, #082a39 58%, #031016);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.42), 0 0 25px rgba(0, 220, 255, 0.18);
}

.button.secondary,
button.secondary {
    border-color: rgba(217, 182, 93, 0.52);
    background: linear-gradient(145deg, rgba(17, 40, 54, 0.96), rgba(2, 8, 13, 0.98));
}

.hero-card,
.card,
.panel,
.form-card,
.metric,
.table-wrap,
.notice {
    border-color: rgba(87, 217, 244, 0.24);
    background: linear-gradient(145deg, rgba(10, 28, 42, 0.96), rgba(2, 8, 13, 0.98) 72%);
}

.section.tint {
    background: rgba(7, 20, 30, 0.72);
}

.eyebrow,
.code {
    color: var(--brand);
}

.site-footer {
    border-color: rgba(86, 221, 255, 0.18);
    background: #010508;
}

.page-home .site-header {
    display: none;
}

.landing-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(0, 152, 255, 0.14), transparent 36%),
        radial-gradient(circle at 50% 100%, rgba(0, 238, 217, 0.08), transparent 28%),
        linear-gradient(155deg, #02070c 0%, #000 58%, #03070a 100%);
}

.landing-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(71, 185, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 185, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.landing-ambient {
    position: absolute;
    z-index: -1;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.16;
    pointer-events: none;
}

.landing-ambient-one {
    top: -22vw;
    left: -14vw;
    background: #005dff;
}

.landing-ambient-two {
    right: -18vw;
    bottom: -22vw;
    background: #00cdb3;
}

.landing-brand {
    z-index: 2;
    display: block;
    width: min(760px, 92vw);
    margin: max(10px, env(safe-area-inset-top)) auto 0;
    border-radius: 10px;
    filter: drop-shadow(0 10px 30px rgba(0, 109, 255, 0.20));
    transition: transform 0.16s ease, filter 0.16s ease;
}

.landing-brand img,
.landing-lock img,
.landing-contact img,
.landing-dad img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-brand:hover,
.landing-brand:focus-visible {
    filter: drop-shadow(0 12px 38px rgba(0, 143, 255, 0.38));
}

.landing-lock-stage {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 12px 20px 70px;
}

.landing-lock {
    display: block;
    width: min(430px, 68vw, 45svh);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    outline: 1px solid rgba(123, 245, 255, 0.09);
    background: transparent;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 55px rgba(0, 219, 255, 0.10);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.landing-lock:hover,
.landing-lock:focus-visible {
    transform: translateY(-4px) scale(1.012);
    filter: brightness(1.08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.72), 0 0 70px rgba(0, 225, 255, 0.18);
}

.landing-contact {
    position: absolute;
    z-index: 3;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 50%;
    display: block;
    width: min(280px, 52vw);
    transform: translateX(-50%);
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.72));
}

.landing-contact:hover,
.landing-contact:focus-visible {
    transform: translateX(-50%) translateY(-3px) scale(1.02);
    filter: brightness(1.08) drop-shadow(0 16px 34px rgba(0, 213, 255, 0.16));
}

.landing-dad {
    position: fixed;
    z-index: 45;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(15px, env(safe-area-inset-bottom));
    display: block;
    width: clamp(72px, 10vw, 104px);
    overflow: hidden;
    border: 1px solid rgba(244, 202, 102, 0.72);
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.70), 0 0 22px rgba(202, 150, 40, 0.16);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.landing-dad.positioned {
    right: auto;
    bottom: auto;
}

.landing-enter {
    position: absolute;
    z-index: 3;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    color: #8ddde9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-decoration: none;
}

.phoenix-entry {
    scroll-margin-top: 90px;
    padding-block: 28px 0;
}

.phoenix-entry nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.phoenix-entry a {
    padding: 13px 8px;
    border: 1px solid rgba(90, 224, 255, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(13, 43, 59, 0.82), rgba(1, 7, 11, 0.92));
    color: #c9f8ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.intake-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 2, 5, 0.84);
    backdrop-filter: blur(14px);
}

.intake-backdrop[hidden] {
    display: none;
}

body.intake-open {
    overflow: hidden;
}

.intake-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100svh - 36px);
    overflow-y: auto;
    padding: 30px clamp(20px, 5vw, 42px) 34px;
    border: 1px solid rgba(112, 231, 255, 0.72);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(10, 29, 46, 0.99), rgba(1, 5, 9, 0.99) 66%);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.55), inset 0 0 0 5px rgba(218, 172, 65, 0.35), 0 30px 100px #000, 0 0 60px rgba(0, 211, 255, 0.20);
}

.intake-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.intake-mark {
    display: grid;
    width: 66px;
    height: 44px;
    margin: 0 auto 13px;
    place-items: center;
    border: 1px solid #50e4ff;
    border-radius: 10px;
    color: #9af4ff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.16em;
    box-shadow: inset 0 0 18px rgba(0, 213, 255, 0.16), 0 0 24px rgba(0, 213, 255, 0.14);
}

.intake-panel h1 {
    margin: 0 0 26px;
    color: #f7fbff;
    font-size: clamp(25px, 5vw, 36px);
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.32);
}

.intake-panel form {
    display: grid;
    gap: 10px;
}

.intake-panel label,
.idea-label-row output,
.attachment-preview > span {
    color: #aeefff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.intake-panel input,
.intake-panel textarea {
    margin-bottom: 10px;
    border: 1px solid rgba(104, 207, 235, 0.50);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.48);
    font-size: 17px;
}

.intake-panel textarea {
    min-height: 150px;
}

.idea-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.idea-label-row output,
.attachment-preview > span {
    color: #d5b45f;
    letter-spacing: 0.08em;
}

.attachment-preview {
    display: grid;
    gap: 8px;
    margin: 2px 0 6px;
    padding: 14px;
    border: 1px solid rgba(104, 207, 235, 0.25);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.attachment-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.attachment-icons span {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px solid rgba(104, 207, 235, 0.35);
    border-radius: 9px;
    background: linear-gradient(150deg, rgba(16, 55, 75, 0.72), rgba(1, 7, 12, 0.90));
    color: #87efff;
    font-size: 24px;
}

.attachment-preview small {
    color: #8ca3b0;
    line-height: 1.35;
}

.trap-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit-idea {
    min-height: 58px;
    margin-top: 8px;
    border-color: #d5b45f;
    border-radius: 12px;
    font-size: 18px;
    letter-spacing: 0.14em;
}

.landing-brand:focus-visible,
.landing-lock:focus-visible,
.landing-contact:focus-visible,
.landing-dad:focus-visible,
.landing-enter:focus-visible {
    outline: 3px solid #66efff;
    outline-offset: 4px;
}

@media (max-width: 680px) {
    .landing-brand {
        width: 96vw;
    }

    .landing-lock-stage {
        padding-top: 8px;
        padding-bottom: 82px;
    }

    .landing-lock {
        width: min(86vw, 43svh);
    }

    .landing-contact {
        width: min(230px, 58vw);
    }

    .landing-enter {
        bottom: 12px;
        font-size: 0.62rem;
    }

    .phoenix-entry nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intake-panel {
        padding-top: 25px;
        border-radius: 19px;
    }
}

@media (max-height: 700px) {
    .landing-brand {
        width: min(560px, 86vw);
    }

    .landing-lock {
        width: min(330px, 62vw, 39svh);
    }

    .landing-contact {
        width: min(200px, 52vw);
    }
}

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

/* Full-screen standard: fill the viewport; scroll only when content requires it. */
html {
    min-height: 100%;
    overflow-x: clip;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    flex-direction: column;
    overflow-x: clip;
}

body > main,
#main,
#workspace-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-header,
.workspace-header,
.site-footer,
.workspace-footer {
    flex: 0 0 auto;
}

.public-page:not(.page-home) #main,
.workspace {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.public-page:not(.page-home) #main {
    display: flex;
    flex-direction: column;
}

.public-page:not(.page-home) #main > .section:only-child {
    flex: 1 0 auto;
}

body > main.section {
    display: grid;
    align-content: center;
    padding-top: max(clamp(32px, 7vw, 72px), env(safe-area-inset-top));
    padding-right: env(safe-area-inset-right);
    padding-bottom: max(clamp(32px, 7vw, 72px), env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
}

.landing-shell {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

@media (max-width: 680px) {
    .shell {
        width: 100%;
        padding-right: max(11px, env(safe-area-inset-right));
        padding-left: max(11px, env(safe-area-inset-left));
    }

    .site-footer,
    .workspace-footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .section {
        padding-top: clamp(32px, 9vw, 54px);
        padding-bottom: clamp(32px, 9vw, 54px);
    }

    .form-card,
    .hero-card,
    .card,
    .panel {
        max-width: 100%;
    }
}

/* Hardened cinematic mobile command surface */
.public-page {
    background:
        radial-gradient(ellipse at 50% -12rem, rgba(30, 176, 255, .18), transparent 34rem),
        linear-gradient(180deg, #02070c 0, #000307 48rem, #010306 100%);
}

.site-header {
    border-bottom-color: rgba(101, 226, 255, .22);
    background: linear-gradient(180deg, rgba(1, 7, 13, .96), rgba(1, 5, 9, .91));
    box-shadow: 0 12px 38px rgba(0, 0, 0, .34), inset 0 -1px rgba(80, 217, 255, .05);
}

.face-brand img {
    background: #01050a;
    filter: saturate(1.08) contrast(1.06);
}

.face-doer,
.face-lock {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.face-doer::after,
.face-lock::after,
.lock-submit::after {
    position: absolute;
    inset: -80% auto -80% -35%;
    width: 28%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
    content: "";
    pointer-events: none;
}

.command-deck::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, transparent 15%, rgba(65, 224, 255, .035) 46%, transparent 70%);
    content: "";
    pointer-events: none;
}

.command-intro .eyebrow {
    color: #65eaff;
    text-shadow: 0 0 24px rgba(50, 221, 255, .38);
}

.command-intro h1 {
    text-shadow: 0 12px 38px rgba(0, 0, 0, .72);
}

.command-form-wrap {
    position: relative;
    overflow: hidden;
}

.command-form-wrap::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(121, 236, 255, .85), transparent);
    content: "";
    pointer-events: none;
}

.lock-console input,
.lock-console textarea,
.lock-console select {
    box-shadow: inset 0 1px 12px rgba(0, 0, 0, .34);
}

.lock-submit {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 10px 34px rgba(0, 189, 255, .12);
}

.node-rail a,
.asset-chip {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 42px rgba(0, 0, 0, .18);
}

.node-rail a::before,
.asset-chip::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(81, 226, 255, .08), transparent 42%);
    content: "";
    pointer-events: none;
}

.floating-dad {
    backdrop-filter: blur(12px);
    transition: transform .2s ease, filter .2s ease;
}

.floating-dad:hover,
.floating-dad:focus-visible {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.12);
}

@media (min-width: 681px) {
    .face-doer:hover::after,
    .face-lock:hover::after,
    .lock-submit:hover::after {
        animation: ipmdb-shine .7s ease-out;
    }
}

@keyframes ipmdb-shine {
    from { left: -35%; }
    to { left: 125%; }
}

@media (max-width: 680px) {
    .face-header-inner {
        min-height: 68px;
        padding-block: 7px;
    }

    .face-brand {
        gap: 8px;
    }

    .face-brand img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .face-brand b,
    .face-brand i {
        font-size: 1.08rem;
    }

    .face-brand small {
        margin-top: 5px;
        font-size: .46rem;
    }

    .face-doer {
        min-width: 70px;
        min-height: 40px;
        padding-inline: 13px;
    }

    .command-deck {
        padding-top: 18px;
    }

    .command-shell {
        gap: 16px;
    }

    .command-intro {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding-inline: 5px;
    }

    .command-mark {
        width: 82px;
    }

    .command-intro h1 {
        font-size: clamp(2.32rem, 11.7vw, 3.3rem);
        line-height: .81;
    }

    .command-line {
        margin-top: 8px;
        font-size: .82rem;
    }

    .command-form-wrap {
        border-radius: 22px;
    }

    .lock-console {
        gap: 13px;
        padding: 18px 14px 16px;
    }

    .field label,
    .field-label-row label {
        font-size: .74rem;
        letter-spacing: .1em;
    }

    input,
    select {
        min-height: 48px;
    }

    textarea {
        min-height: clamp(150px, 28svh, 220px);
    }

    .attachment-zone {
        min-height: 74px;
        padding: 11px;
    }

    .lock-submit {
        min-height: 58px;
    }

    .legal-line {
        padding-inline: 6px;
        font-size: .65rem;
        line-height: 1.45;
    }

    .floating-dad {
        right: max(11px, env(safe-area-inset-right));
        bottom: max(11px, env(safe-area-inset-bottom));
        width: 54px;
    }

    .signal-grid div {
        padding-block: 15px;
    }

    .node-rail-section {
        padding-block: 42px 48px;
    }

    .node-rail a {
        flex-basis: min(76vw, 260px);
        min-height: 116px;
    }

    .compact-head h2 {
        font-size: 1.72rem;
    }

    .asset-chip {
        min-height: 118px;
    }
}

@media (max-width: 370px) {
    .command-intro {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .command-mark {
        width: 70px;
    }

    .command-intro h1 {
        font-size: 2.12rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .face-doer::after,
    .face-lock::after,
    .lock-submit::after {
        display: none;
    }
}

/* IPMdb.ai 11.2 — inhabited command surface */
.page-home .command-deck {
    background:
        radial-gradient(circle at 88% 8%, rgba(66, 219, 255, .16), transparent 24rem),
        radial-gradient(circle at 6% 72%, rgba(25, 112, 177, .16), transparent 30rem),
        linear-gradient(152deg, #010407 0%, #061722 52%, #02080d 100%);
}

.page-home .command-grid {
    opacity: .48;
    background-size: 46px 46px;
}

.command-intro {
    position: relative;
    z-index: 1;
}

.command-mark {
    filter: drop-shadow(0 24px 52px #000) drop-shadow(0 0 38px rgba(45, 216, 255, .22));
}

.command-line {
    color: #c1d1d9;
}

.command-form-wrap {
    background:
        linear-gradient(145deg, rgba(10, 28, 41, .97), rgba(1, 6, 10, .99) 72%),
        #03090e;
}

.floating-dad {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: -30px;
    width: 70px;
    border-width: 2px;
    box-shadow: 0 16px 38px #000, 0 0 28px rgba(218, 174, 67, .22);
}

.signal-strip {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #030a0f, #010508);
}

.node-rail-section,
.record-section {
    position: relative;
    isolation: isolate;
}

.node-rail-section {
    background:
        radial-gradient(circle at 12% 22%, rgba(36, 177, 221, .11), transparent 22rem),
        linear-gradient(180deg, #071722 0%, #02080d 100%);
}

.record-section {
    background:
        radial-gradient(circle at 90% 12%, rgba(23, 118, 182, .12), transparent 26rem),
        linear-gradient(180deg, #031018 0%, #071b29 100%);
}

.node-rail a,
.asset-chip {
    isolation: isolate;
    border-color: rgba(101, 224, 255, .28);
    background:
        radial-gradient(circle at 16% 0, rgba(62, 214, 255, .11), transparent 55%),
        linear-gradient(145deg, #0a2635, #02080d 72%);
}

.node-rail a::before,
.asset-chip::before {
    z-index: 0;
    background: linear-gradient(128deg, rgba(74, 222, 255, .12), transparent 44%);
}

.node-rail a > *,
.asset-chip > * {
    position: relative;
    z-index: 1;
}

.node-rail a {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: start;
    min-height: 152px;
}

.node-rail .node-code {
    display: grid;
    width: 52px;
    height: 52px;
    grid-column: 1 / -1;
    place-items: center;
    border: 1px solid rgba(224, 188, 97, .58);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(22, 64, 82, .94), rgba(2, 9, 14, .98));
    color: #f0ce72;
    font-size: .78rem;
    font-style: normal;
    letter-spacing: .05em;
    box-shadow: inset 0 0 18px rgba(65, 219, 255, .08);
}

.node-rail span {
    display: grid;
    align-self: end;
    gap: 5px;
}

.node-rail span strong {
    color: #f4fbff;
    font-size: .92rem;
    line-height: 1.05;
    letter-spacing: .045em;
}

.node-rail span small {
    color: #8ba4b0;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .035em;
}

.node-rail a > i {
    align-self: end;
    color: #67e8fa;
    font-size: 1.15rem;
    font-style: normal;
}

.asset-chip {
    min-height: 164px;
}

.asset-chip small {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asset-chip small i {
    color: #e7c66d;
    font-size: 1rem;
    font-style: normal;
}

.asset-chip strong {
    color: #f5fbff;
    font-size: 1.18rem;
}

.asset-chip span {
    color: #91a8b3;
}

.loop-band {
    background: linear-gradient(180deg, #02080d, #010406);
}

@media (max-width: 680px) {
    .page-home .command-deck {
        padding-bottom: 28px;
        background:
            radial-gradient(circle at 82% 2%, rgba(69, 222, 255, .15), transparent 18rem),
            linear-gradient(158deg, #010407 0%, #071a26 58%, #02080c 100%);
    }

    .command-intro {
        grid-template-columns: 102px minmax(0, 1fr);
        gap: 13px;
    }

    .command-mark {
        width: 102px;
    }

    .command-intro h1 {
        font-size: clamp(2.18rem, 10.8vw, 3.05rem);
        line-height: .84;
    }

    .command-line {
        font-size: .88rem;
    }

    .lock-console {
        gap: 10px;
        padding: 14px 13px;
    }

    input,
    select {
        min-height: 44px;
    }

    textarea {
        min-height: clamp(132px, 22svh, 172px);
    }

    .attachment-zone {
        min-height: 68px;
    }

    .lock-submit {
        min-height: 54px;
    }

    .floating-dad {
        position: absolute;
        right: max(12px, env(safe-area-inset-right));
        bottom: -27px;
        width: 62px;
    }

    .node-rail-section {
        padding-block: 44px 50px;
    }

    .node-rail a {
        flex-basis: min(72vw, 246px);
        min-height: 144px;
    }

    .asset-chip {
        min-height: 132px;
    }

    .record-section {
        padding-block: 46px 54px;
    }
}

/* FINAL 11.3.1 OVERRIDES — original marks and always-available LOCK navigation */
.face-brand {
    width: min(300px, 100%);
    max-width: 300px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.face-brand img {
    display: block;
    width: 100%;
    height: 64px;
    max-height: 64px;
    flex: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    object-position: left center;
    box-shadow: none;
}

.face-brand span { display: none; }
.page-lock .site-header { display: block !important; }
.lock-original-mark {
    display: block;
    width: min(300px, 74vw);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 24px 48px #000);
}

.lock-route-nav {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 9px max(10px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid rgba(85, 232, 255, .28);
    background: rgba(1, 5, 9, .94);
    box-shadow: 0 -14px 38px rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
}

.lock-route-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border-radius: 9px;
    color: #92aab7;
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-decoration: none;
}

.lock-route-nav a:hover,
.lock-route-nav a:focus-visible,
.lock-route-nav a.active {
    background: rgba(218, 183, 89, .13);
    color: #e3c263;
}

.page-lock #main { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

@media (max-width: 680px) {
    .page-lock .site-header { position: sticky; top: 0; }
    .page-lock .face-header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 66px; }
    .page-lock .face-brand { width: min(190px, 58vw); }
    .page-lock .face-brand img { width: 100%; height: 50px; max-height: 50px; flex: none; border-radius: 0; }
    .page-lock .face-doer { display: inline-grid; }
    .lock-page-head { grid-template-columns: 92px 1fr; }
    .lock-original-mark { width: 92px; }
    .lock-route-nav { padding-top: 7px; }
    .lock-route-nav a { min-height: 38px; font-size: .58rem; letter-spacing: .055em; }
}

/* 11.4 public-face media correction: preserve marks and keep them above card paint */
.ipm-face-door img {
    z-index: 0;
    padding: 18px 18px 142px;
    object-fit: contain;
    object-position: center top;
    background: radial-gradient(circle at 50% 30%, rgba(19, 92, 140, .22), transparent 60%), #02080c;
}

.ipm-face-door::after { z-index: 1; }
.ipm-face-door span { z-index: 2; }
.face-door-lock img {
    padding: 18px 18px 142px;
    object-fit: contain;
    background: radial-gradient(circle at 50% 30%, rgba(24, 101, 50, .38), transparent 58%), #010604;
}
.face-door-dad img {
    background: radial-gradient(circle at 50% 30%, rgba(17, 112, 66, .3), transparent 60%), #010804;
}
.face-door-edge img {
    background: radial-gradient(circle at 50% 30%, rgba(78, 53, 172, .28), transparent 60%), #03050b;
}

@media (max-width: 680px) {
    .ipm-face-door { min-height: 420px; }
    .ipm-face-door img,
    .face-door-lock img { padding: 16px 16px 136px; }
}

/* 11.5.1 fix layer: mobile navigation, containment and dependable card media */
.ipm-face-door { isolation: isolate; }
.ipm-face-door img { display: block; visibility: visible; opacity: 1; }

@media (max-width: 680px) {
    .public-page .face-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }
    .public-page .face-brand { width: min(154px, 42vw); }
    .public-page .face-brand img { width: 100%; height: 48px; max-height: 48px; }
    .public-page .face-lock,
    .public-page .face-doer {
        display: inline-grid;
        min-width: 62px;
        min-height: 40px;
        padding-inline: 10px;
        font-size: .57rem;
    }
    .public-page .face-actions { gap: 4px; }
    .page-home .face-doer { display: none; }
    .ipm-face-copy h1 {
        max-width: 100%;
        font-size: clamp(2.35rem, 11.5vw, 3.55rem);
        line-height: .86;
        letter-spacing: -.055em;
        overflow-wrap: anywhere;
    }
    .ipm-face-heading h2,
    .ipm-face-heading.compact h2 {
        max-width: 100%;
        font-size: clamp(2.15rem, 10vw, 3rem);
        overflow-wrap: anywhere;
    }
}

/* 11.7.0 unified icon navigation */
.public-page{padding-bottom:88px}
.public-page .face-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;min-height:78px}
.public-page .face-brand{display:flex;width:min(520px,100%);max-width:none;align-items:center;gap:14px;text-decoration:none}
.public-page .face-brand img{width:132px;height:58px;max-height:58px;flex:0 0 132px;object-fit:contain;object-position:left center}
.public-page .face-brand-copy{display:flex!important;min-width:0;flex-direction:column;line-height:1}
.public-page .face-brand-copy b{color:#f4fbff;font-size:clamp(.62rem,1.35vw,.82rem);letter-spacing:.13em;white-space:nowrap}
.public-page .face-brand-copy small{margin-top:5px;color:#69e6fa;font-size:.62rem;letter-spacing:.28em;text-transform:uppercase}
.public-page .face-actions{display:flex;gap:8px}
.public-page .face-icon-action{display:grid!important;width:52px;height:52px;min-height:52px;padding:0;place-items:center;border:1px solid rgba(100,229,250,.45);border-radius:16px;overflow:hidden}
.public-page .face-icon-action img{width:100%;height:100%;object-fit:cover}
.public-page .face-icon-action span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.public-page .face-nav{display:none!important}
.site-footer{padding:28px 16px 112px!important;text-align:center;color:#78909e;font-size:.7rem;letter-spacing:.08em}
.icon-dock{position:fixed;z-index:120;left:50%;bottom:max(10px,env(safe-area-inset-bottom));display:flex;width:min(calc(100% - 20px),520px);height:70px;padding:7px;align-items:center;justify-content:space-around;border:1px solid rgba(99,231,250,.35);border-radius:24px;background:rgba(2,9,14,.9);box-shadow:0 18px 55px rgba(0,0,0,.58);backdrop-filter:blur(20px);translate:-50% 0}
.icon-dock a{display:grid;width:52px;height:52px;padding:4px;place-items:center;border:1px solid transparent;border-radius:16px;text-decoration:none}
.icon-dock a:hover,.icon-dock a:focus-visible{border-color:#65eaff;background:#09202a;outline:0}
.icon-dock img{display:block;width:100%;height:100%;border-radius:12px;object-fit:cover}
@media(max-width:620px){
  .public-page .face-header-inner{min-height:68px;gap:8px}
  .public-page .face-brand{gap:9px}
  .public-page .face-brand img{width:68px;height:50px;flex-basis:68px}
  .public-page .face-brand-copy b{font-size:.5rem;white-space:normal;line-height:1.12}
  .public-page .face-brand-copy small{font-size:.46rem;letter-spacing:.22em}
  .public-page .face-actions{gap:4px}
  .public-page .face-icon-action{width:44px;height:44px;min-height:44px;border-radius:13px}
  .icon-dock{height:64px;border-radius:21px}
  .icon-dock a{width:46px;height:46px}
}
@media(max-width:390px){.icon-dock a{width:42px;height:42px}.public-page .face-icon-action:last-child{display:none!important}}

/* 11.7.1 four large essential dock icons */
.icon-dock{width:min(calc(100% - 16px),440px);height:82px;padding:7px 12px;border-radius:27px}
.icon-dock a{width:68px;height:68px;padding:3px;border-radius:20px}
.icon-dock img{border-radius:17px}
.site-footer{padding-bottom:104px!important}
@media(max-width:620px){.icon-dock{height:76px}.icon-dock a{width:62px;height:62px}}

/* 11.8.1 reliable mobile attachment picker */
.attachment-zone{position:relative}
.attachment-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.attachment-control{border:0;background:transparent;text-align:left}
.attachment-control:focus-within,.attachment-control:focus-visible{outline:2px solid #55e8ff;outline-offset:5px;border-radius:10px}
.attachment-status{font-size:.78rem;line-height:1.35}
.attachment-status.is-error{color:#ffb49f}
.attachment-list li{grid-template-columns:minmax(0,1fr) auto auto auto}
.attachment-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.attachment-list button{display:grid;width:34px;height:34px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:#07131a;color:#fff;font-size:1rem;cursor:pointer}

/* 11.9.2: canonical directory routing and one readable mobile dock */
.core-status-error{margin:0;padding:10px 16px 14px;color:#ffb49f;text-align:center;font-size:.74rem;font-weight:900;letter-spacing:.1em}
.icon-dock{height:82px!important;padding:7px 12px!important}
.icon-dock a{width:68px!important;height:68px!important;padding:3px!important}
@media(max-width:620px){.icon-dock{height:76px!important}.icon-dock a{width:62px!important;height:62px!important}}
