/* ATHRTY X-JARVIS-80000 — one drawer grammar across Genesis, Intake, Capital. */
:root{--ath-shell-ink:#f2f5f7;--ath-shell-muted:#9eabb7;--ath-shell-steel:#819eaf;--ath-shell-line:rgba(167,190,204,.16);--ath-shell-surface:#0d1218;--ath-shell-ease:cubic-bezier(.22,1,.36,1)}
.ath-shell-nav-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;flex:0 0 auto;min-height:46px;padding:0 16px;border:1px solid var(--ath-shell-line);border-radius:999px;background:#141d26;color:var(--ath-shell-ink);font:600 12px/1 system-ui,sans-serif;cursor:pointer;letter-spacing:.04em}
.ath-shell-nav-button:hover,.ath-shell-nav-button:focus-visible{background:#273846;border-color:#778e9e}
.ath-shell-menu-lines{display:grid;gap:5px}.ath-shell-menu-lines i{display:block;width:19px;height:2px;border-radius:2px;background:currentColor}.ath-shell-menu-lines i:last-child{width:13px}
.ath-shell-nav-backdrop,.ath-shell-jarvis-backdrop{position:fixed;inset:0;border:0;padding:0;background:rgba(2,7,11,.62);backdrop-filter:blur(7px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,visibility 0s linear .32s;z-index:2147482000}
.ath-shell-nav-panel,.ath-shell-jarvis-panel{position:fixed;top:0;bottom:0;min-height:0;height:100dvh;max-height:100dvh;box-sizing:border-box;background:radial-gradient(circle at 25% 0%,rgba(75,104,123,.13),transparent 38%),var(--ath-shell-surface);color:var(--ath-shell-ink);border:1px solid var(--ath-shell-line);visibility:hidden;opacity:.6;pointer-events:none;overflow:hidden;transition:transform .42s var(--ath-shell-ease),opacity .28s ease,visibility 0s linear .42s;z-index:2147482100}
.ath-shell-nav-panel{left:auto;right:0;width:min(460px,100vw);border-radius:24px 0 0 24px;transform:translateX(105%);display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:clamp(24px,3vw,34px)}
body.ath-shell-nav-open .ath-shell-nav-backdrop,body.ath-shell-jarvis-open .ath-shell-jarvis-backdrop{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .26s ease,visibility 0s}
body.ath-shell-nav-open .ath-shell-nav-panel,body.ath-shell-jarvis-open .ath-shell-jarvis-panel{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;transition:transform .42s var(--ath-shell-ease),opacity .3s ease,visibility 0s}
.ath-shell-nav-header{display:flex;flex-direction:row;text-align:left;justify-content:space-between;gap:20px;align-items:flex-start;padding:0 0 28px}
.ath-shell-nav-header small,.ath-shell-nav-section-label,.ath-shell-nav-foot span{font:650 10px/1.6 system-ui,sans-serif;letter-spacing:.16em;color:var(--ath-shell-steel)}
.ath-shell-nav-header h2{font:500 clamp(34px,4vw,52px)/1.04 system-ui,sans-serif;letter-spacing:-.065em;margin:16px 0 10px}
.ath-shell-nav-header p{color:var(--ath-shell-muted);font-size:13px;line-height:1.6;max-width:25ch;margin:0 auto 0 0}
.ath-shell-nav-header button,.ath-shell-jarvis-head button{min-height:44px;padding:0 18px;border:1px solid var(--ath-shell-line);border-radius:999px;background:rgba(255,255,255,.04);color:var(--ath-shell-ink);cursor:pointer;font:600 12px system-ui,sans-serif}
.ath-shell-nav-panel nav{display:grid;margin-top:13px;border-top:1px solid var(--ath-shell-line)}
.ath-shell-nav-panel nav a{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:15px 0;min-height:68px;border-bottom:1px solid var(--ath-shell-line);color:var(--ath-shell-ink);text-decoration:none;transition:padding .2s,background .2s}
.ath-shell-nav-panel nav a:hover,.ath-shell-nav-panel nav a:focus-visible{padding-left:9px;background:rgba(119,154,180,.07)}
.ath-shell-nav-panel nav a[aria-current]{background:rgba(119,154,180,.11)}
.ath-shell-nav-index{display:none!important}.ath-shell-nav-panel nav a{grid-template-columns:minmax(0,1fr) 18px}.ath-shell-nav-panel nav a strong{font-family:Arial,Helvetica,sans-serif}.ath-shell-nav-button,.ath-shell-nav-header :is(h2,p,small,button),.ath-shell-nav-section-label,.ath-shell-nav-foot,.ath-shell-jarvis-head,.ath-shell-jarvis-foot{font-family:Arial,Helvetica,sans-serif}.ath-shell-nav-panel,.ath-shell-jarvis-panel{max-width:100vw;overscroll-behavior:contain}.ath-shell-nav-panel nav a{min-width:0;overflow-wrap:anywhere}.ath-shell-nav-panel nav a:focus-visible{outline-offset:-3px}.ath-shell-nav-panel{padding-bottom:max(24px,env(safe-area-inset-bottom))}
.ath-shell-nav-panel nav a strong{display:block;font:550 19px/1.2 system-ui,sans-serif;letter-spacing:-.025em}
.ath-shell-nav-panel nav a small{display:block;margin-top:5px;font:500 11px/1.3 system-ui,sans-serif;color:var(--ath-shell-muted)}
.ath-shell-nav-panel nav a svg{width:16px;stroke:#a8b8c4;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.ath-shell-nav-foot{margin-top:auto;padding-top:35px}.ath-shell-nav-foot p{color:var(--ath-shell-muted);font:400 11px/1.6 system-ui,sans-serif}
.ath-shell-jarvis-button{position:fixed!important;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;min-height:58px;min-width:58px;padding:9px 19px 9px 9px;border-radius:999px;border:1px solid rgba(171,201,224,.36);background:linear-gradient(145deg,#1e3444,#101c28);color:#f0f6f9;box-shadow:0 12px 40px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.10);font:700 11px system-ui,sans-serif;letter-spacing:.12em;cursor:pointer;z-index:2147481990}
.ath-shell-jarvis-button:hover{background:#263c4e;transform:translateY(-2px)}
.ath-shell-jarvis-mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#38576c}
.ath-shell-jarvis-mark svg{width:21px;fill:none;stroke:#e5f1f9;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ath-shell-jarvis-panel{right:0;width:min(620px,100vw);border-radius:24px 0 0 24px;transform:translateX(105%);display:flex;flex-direction:column}
.ath-shell-jarvis-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 20px;border-bottom:1px solid var(--ath-shell-line)}
.ath-shell-jarvis-head strong{display:block;font:700 12px system-ui,sans-serif;letter-spacing:.15em}
.ath-shell-jarvis-head small{display:block;font:550 9px system-ui,sans-serif;letter-spacing:.1em;color:var(--ath-shell-steel);margin-top:6px}
.ath-shell-jarvis-frame-wrap{flex:1;min-height:0}.ath-shell-jarvis-frame{height:100%;width:100%;border:0;background:#0b1113;display:block}
.ath-shell-jarvis-foot{display:flex;justify-content:space-between;gap:12px;padding:10px 20px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--ath-shell-line)}
.ath-shell-jarvis-foot a{color:#b6cada;text-decoration:none;font:550 12px system-ui,sans-serif;min-height:44px;display:flex;align-items:center}
.ath-shell-jarvis-foot a:hover{text-decoration:none;color:#eef6fa}
.ath-shell-nav-button:focus-visible,.ath-shell-nav-panel :is(a,button):focus-visible,.ath-shell-jarvis-panel :is(a,button):focus-visible,.ath-shell-jarvis-button:focus-visible{outline:2px solid #a2c6dc;outline-offset:3px}
body.ath-shell-nav-open .ath-x17-switch{pointer-events:none}
/* Genesis: the single native navigation overlays from the right. Remove the
   isolated parent stacking context only while open so its panel paints ABOVE
   the body backdrop; otherwise high z-index on the child cannot escape it. */
body .x1113-layout,body.x1113-nav-open .x1113-layout{grid-template-columns:minmax(0,1fr) 0px!important}
body.x1113-nav-open .x1113-layout{isolation:auto!important}
body .x1113-nav-panel{position:fixed!important;top:var(--header-height,72px)!important;left:auto!important;right:0!important;width:min(470px,100vw)!important;height:calc(100dvh - var(--header-height,72px))!important;max-height:calc(100dvh - var(--header-height,72px))!important;max-width:100vw!important;display:block!important;transform:translateX(105%);opacity:0;visibility:hidden;pointer-events:none;border-right:0!important;border-left:1px solid var(--ath-shell-line)!important;border-bottom:0!important;border-radius:20px 0 0 20px;z-index:2147482200!important;background:#101a22!important;transition:transform .42s var(--ath-shell-ease),opacity .28s ease,visibility 0s linear .42s!important;overflow-y:auto!important}
body.x1113-nav-open .x1113-nav-panel{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;transition:transform .42s var(--ath-shell-ease),opacity .28s ease,visibility 0s!important}
body.x1113-nav-open::before{content:"";position:fixed;inset:var(--header-height,72px) 0 0;z-index:2147482100;background:rgba(2,7,11,.6);backdrop-filter:blur(6px);pointer-events:auto}
body.x1113-nav-open #drawer-open{z-index:2147482201}
body .x1113-nav-panel .x1113-nav-interior{padding:26px}
/* Unified BLACKLINE drawer header: Close on left; identity/title on right.
   Accessible DOM order stays unchanged, with the same grid on desktop and mobile. */
body .x1113-nav-panel .x1113-nav-top{display:grid!important;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"dismiss overline" "dismiss title";justify-items:end;align-items:start;column-gap:clamp(12px,3vw,22px);text-align:right}
body .x1113-nav-panel .x1113-nav-top>.x1113-overline{grid-area:overline;justify-self:end}
body .x1113-nav-panel .x1113-nav-top>h2{grid-area:title;justify-self:end;min-width:0}
body .x1113-nav-panel .x1113-nav-top>.x1113-nav-dismiss{grid-area:dismiss;justify-self:start;align-self:start;margin:0!important}
body .x1113-nav-panel .x1113-destinations{display:grid;grid-template-columns:1fr}
body .x1113-nav-panel .x1113-destination{min-height:65px}
body .x1113-nav-panel .x1113-destination-copy strong{font-size:24px}
/* Genesis: native first-party JARVIS right drawer, no header placement. */
body:not([data-jarvis-embed]) .xag8-launch{position:fixed!important;right:max(22px,env(safe-area-inset-right))!important;bottom:max(22px,env(safe-area-inset-bottom))!important;z-index:2147482900!important;min-height:58px!important;padding:8px 18px 8px 8px!important;border-radius:999px!important;background:linear-gradient(145deg,#1e3444,#101c28)!important;border-color:rgba(171,201,224,.36)!important;box-shadow:0 12px 40px rgba(0,0,0,.52)!important}
body:not([data-jarvis-embed]) .xag8-dialog{position:fixed!important;inset:0 0 0 auto!important;right:0!important;left:auto!important;margin:0!important;border-radius:24px 0 0 24px!important;width:min(620px,100vw)!important;max-width:620px!important;height:100dvh!important;max-height:100dvh!important;transform:translateX(105%);opacity:.7;transition:transform .36s var(--ath-shell-ease),opacity .3s ease}
body:not([data-jarvis-embed]) .xag8-dialog.xag8-entered{transform:translateX(0);opacity:1}
body:not([data-jarvis-embed]) .xag8-dialog::backdrop{background:rgba(0,5,10,.65);backdrop-filter:blur(7px)}
body:not([data-jarvis-embed]) .xag8-shell{grid-template-columns:1fr}
body:not([data-jarvis-embed]) .xag8-intro{display:none}
.xag8-flow{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid rgba(167,190,204,.12);background:#0c141b}
.xag8-flow :is(span,a){font:600 9px/1.3 system-ui,sans-serif;letter-spacing:.06em;padding:8px 10px;border-radius:999px;text-decoration:none;white-space:nowrap;color:#9eb0bd}
.xag8-flow .xag8-flow-current{color:#e9f5fc;background:#243b4d}
.xag8-flow a:hover{color:#fff;background:#233749}
.xag8-dialog .xag8-feed{padding:22px 20px}
.xag8-dialog .xag8-composer{padding:15px 19px max(17px,env(safe-area-inset-bottom))}
body[data-jarvis-embed="true"]{margin:0!important;overflow:hidden;background:#0b1113}
body[data-jarvis-embed="true"] .global-actions,body[data-jarvis-embed="true"] .xag8-launch{display:none!important}
body[data-jarvis-embed="true"] .xag8-dialog{display:block!important;position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;max-height:none!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;background:#0b1113!important}
body[data-jarvis-embed="true"] .xag8-shell{grid-template-columns:1fr}
body[data-jarvis-embed="true"] .xag8-intro{display:none}
/* Public applications have one menu; the existing navigation stays readable in the DOM. */
body:has(.ath-shell-nav-button) .ath-x17-switch{display:none!important}
@media(max-width:760px){.ath-shell-nav-panel,.ath-shell-jarvis-panel{width:100vw!important;max-width:100vw!important;border-radius:0!important}.ath-shell-nav-panel{padding:22px 20px max(22px,env(safe-area-inset-bottom))}.ath-shell-menu-word{display:none}.ath-shell-nav-button{width:46px;min-width:46px;padding:0}.ath-shell-jarvis-button{right:16px;bottom:max(16px,env(safe-area-inset-bottom));padding:8px;min-width:56px}.ath-shell-jarvis-button>span:last-child{display:none}body .x1113-nav-panel{top:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}body.x1113-nav-open::before{inset:0}body:not([data-jarvis-embed]) .xag8-dialog{width:100vw!important;max-width:100vw!important;border-radius:0!important}.xag8-flow{padding:7px;gap:0;justify-content:center}.xag8-flow :is(span,a){font-size:8px;padding:9px 7px}body:is(.ath-shell-nav-open,.ath-shell-jarvis-open,.x1113-nav-open){overflow:hidden}}
@media(prefers-reduced-motion:reduce){.ath-shell-nav-panel,.ath-shell-jarvis-panel,.ath-shell-nav-backdrop,.ath-shell-jarvis-backdrop,body .x1113-nav-panel,body:not([data-jarvis-embed]) .xag8-dialog{transition:none!important}.ath-shell-jarvis-button:hover{transform:none}}

/* X-JARVIS-8400: evidence-first execution pathway embedded in canonical conversation. */
.xag8-dialog .xag8-execution{display:grid;gap:12px;min-width:0;max-width:100%;box-sizing:border-box;margin-top:17px;padding:17px;border:1px solid rgba(145,184,208,.27);border-radius:17px;background:linear-gradient(145deg,#152631 0%,#0e1922 100%);color:#edf4f8;font-family:Arial,Helvetica,sans-serif}
.xag8-dialog .xag8-execution-heading{display:grid;gap:6px;min-width:0}
.xag8-dialog .xag8-execution-eyebrow{color:#9bb9ce;font:700 10px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.09em}
.xag8-dialog .xag8-execution-heading strong{font:700 17px/1.25 Arial,Helvetica,sans-serif!important;letter-spacing:-.02em;color:#eff7fb}
.xag8-dialog .xag8-execution-stage{justify-self:start;padding:7px 11px;border-radius:999px;border:1px solid rgba(163,200,220,.24);background:rgba(126,167,191,.13);color:#bfdae8;font:600 11px/1.25 Arial,Helvetica,sans-serif!important}
.xag8-dialog .xag8-execution-phases{display:grid;gap:0;list-style:none;margin:0;padding:0;border-top:1px solid rgba(173,200,217,.13)}
.xag8-dialog .xag8-execution-phase{display:grid;grid-template-columns:17px minmax(0,1fr);gap:12px;align-items:start;margin:0;padding:12px 0;border-bottom:1px solid rgba(173,200,217,.12)}
.xag8-dialog .xag8-execution-dot{width:9px;height:9px;margin-top:5px;border-radius:50%;border:1px solid #7291a4;background:#1a2d3b;box-sizing:border-box}
.xag8-dialog .xag8-execution-phase[data-phase-status="unverified_draft"] .xag8-execution-dot{border-color:#b3d1e2;background:#9fc4d9;box-shadow:0 0 0 3px rgba(159,196,217,.1)}
.xag8-dialog .xag8-execution-copy{display:grid;gap:5px;min-width:0}
.xag8-dialog .xag8-execution-copy strong{font:700 12px/1.35 Arial,Helvetica,sans-serif!important;color:#e7f0f6}
.xag8-dialog .xag8-execution-copy small{font:400 12px/1.5 Arial,Helvetica,sans-serif!important;color:#9fb4c2;overflow-wrap:anywhere}
.xag8-dialog .xag8-execution-review{width:100%;min-height:46px;border:1px solid #b6d2e1;background:#bed7e6;color:#0d1b25;border-radius:13px;padding:11px 14px;font:700 12px/1.25 Arial,Helvetica,sans-serif!important;cursor:pointer;transition:background .2s,transform .2s}
.xag8-dialog .xag8-execution-review:hover{background:#e1eff7;transform:translateY(-1px)}
.xag8-dialog .xag8-execution-note{margin:0!important;color:#9caebb!important;font:400 11px/1.5 Arial,Helvetica,sans-serif!important}
@media(max-width:540px){.xag8-dialog .xag8-execution{gap:10px;padding:13px;border-radius:14px}.xag8-dialog .xag8-execution-heading strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.xag8-dialog .xag8-execution-review{transition:none!important}.xag8-dialog .xag8-execution-review:hover{transform:none!important}}
/* X-JARVIS-90000: visible keyboard-operable close control on the canonical Genesis overlay. */
body .x1113-nav-dismiss{display:inline-flex;align-items:center;justify-content:center;min-width:88px;min-height:44px;padding:9px 19px;margin:12px 0 16px;border:1px solid rgba(160,194,215,.32);border-radius:999px;background:#203443;color:#e8f3fa;font:600 12px/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
body .x1113-nav-dismiss:hover,body .x1113-nav-dismiss:focus-visible{background:#335268;border-color:#95b8ce}
body .x1113-nav-dismiss:focus-visible{outline:2px solid #b5d6e9;outline-offset:3px}
/* X-JARVIS-UI-1500 | Unified Arial conversation architecture, bounded scroll and one host header. */
:root{--ath-jarvis-blue:#90b2c6;--ath-jarvis-line:rgba(151,184,201,.18);--ath-jarvis-bg:#0b1117;--ath-jarvis-raised:#111c25}
.ath-shell-jarvis-panel,.ath-shell-jarvis-panel :is(header,footer,button,span,strong,small,a){font-family:Arial,Helvetica,sans-serif!important}
.ath-shell-jarvis-head{flex:0 0 auto;min-height:78px;box-sizing:border-box;padding:16px 22px;background:#0c141b;gap:12px}
.ath-shell-jarvis-head strong{font:700 13px/1.35 Arial,Helvetica,sans-serif!important;letter-spacing:.12em}
.ath-shell-jarvis-head small{font:600 10px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.07em;color:#9eb4c3}
.ath-shell-jarvis-head button{flex:0 0 auto;font:600 12px Arial,Helvetica,sans-serif!important;min-width:76px;min-height:44px}
.ath-shell-jarvis-frame-wrap{flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
.ath-shell-jarvis-foot{flex:0 0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:10px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#0c141b}
.ath-shell-jarvis-foot a{min-width:0;min-height:46px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 12px;border:1px solid var(--ath-jarvis-line);border-radius:14px;background:#14212b;color:#dceaf2;text-decoration:none!important;font:600 12px/1.3 Arial,Helvetica,sans-serif!important;transition:background .2s ease,border-color .2s ease}
.ath-shell-jarvis-foot a:hover,.ath-shell-jarvis-foot a:focus-visible{background:#203544;border-color:#7296ad;text-decoration:none!important}
body[data-jarvis-embed="true"]{font-family:Arial,Helvetica,sans-serif!important;background:var(--ath-jarvis-bg)!important}
.xag8-dialog,.xag8-dialog *,.xag8-launch,.xag8-launch *{font-family:Arial,Helvetica,sans-serif!important}
.xag8-dialog{--athrty-brand-primary:#577f95;--athrty-brand-bright:#9ac1d6}
.xag8-dialog .xag8-shell,.xag8-dialog .xag8-main{min-height:0;min-width:0}
.xag8-dialog .xag8-main{position:relative;overflow:hidden;background:var(--ath-jarvis-bg)}
body[data-jarvis-embed="true"] .xag8-head{display:none!important}
body[data-jarvis-embed="true"] .xag8-dialog{background:var(--ath-jarvis-bg)!important}
body[data-jarvis-embed="true"] .xag8-shell,body[data-jarvis-embed="true"] .xag8-main{height:100%}
.xag8-dialog .xag8-flow{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px 17px;margin:0;background:#0e1820;border-bottom:1px solid var(--ath-jarvis-line)}
.xag8-dialog .xag8-flow :is(span,a){display:flex;min-width:0;min-height:42px;box-sizing:border-box;align-items:center;justify-content:center;text-align:center;padding:8px 6px;border:1px solid transparent;border-radius:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;font:700 10px/1.35 Arial,Helvetica,sans-serif!important;letter-spacing:.035em;color:#a5bac8;text-decoration:none!important}
.xag8-dialog .xag8-flow .xag8-flow-current{color:#e5f1f8;background:#213949;border-color:rgba(160,200,222,.22)}
.xag8-dialog .xag8-flow a:hover,.xag8-dialog .xag8-flow a:focus-visible{background:#182b38;border-color:var(--ath-jarvis-line);color:#fff}
.xag8-dialog .xag8-feed{flex:1 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3a586a transparent;gap:14px;padding:20px 22px;background:var(--ath-jarvis-bg)}
.xag8-dialog .xag8-turn{max-width:100%;min-width:0;box-sizing:border-box;overflow-wrap:anywhere;border-radius:16px;padding:16px 17px;background:#111a22;border-color:rgba(170,198,215,.12);box-shadow:none}
.xag8-dialog .xag8-turn[data-role="visitor"]{max-width:88%;background:#1a303f;border-color:rgba(154,192,214,.2)}
.xag8-dialog .xag8-turn p{font-size:13px;line-height:1.62;color:#e6eef3}
.xag8-dialog .xag8-turn-meta{font-size:10px;letter-spacing:.10em;color:#9eb9ca}
.xag8-dialog .xag8-discovery{max-width:100%;box-sizing:border-box;border-color:rgba(149,188,211,.22);border-radius:14px;background:linear-gradient(145deg,#142937,#101d27);padding:14px}
.xag8-dialog .xag8-discovery-next{margin-top:12px;padding-top:12px}
.xag8-dialog .xag8-discovery-next p{font-size:13px;line-height:1.55;color:#edf5f8}
.xag8-dialog .xag8-discovery-action{color:#d3e6ef;border-color:rgba(144,183,206,.36)}
.xag8-dialog .xag8-discovery-action-primary{background:#bed5e3;color:#0b1c27;border-color:#bed5e3}
.xag8-dialog .xag8-discovery-action-primary:hover{background:#e0edf5}
.xag8-dialog .xag8-composer{flex:0 0 auto;min-width:0;box-sizing:border-box;border-top:1px solid var(--ath-jarvis-line);background:#101a22;padding:14px 20px max(14px,env(safe-area-inset-bottom))}
.xag8-dialog .xag8-composer .xag8-kicker{display:block;margin-bottom:9px;font-size:10px;letter-spacing:.11em;color:#b1c7d6}
.xag8-dialog .xag8-entry{min-width:0;box-sizing:border-box;border-color:rgba(164,196,214,.22);background:#15232e;border-radius:15px;align-items:center;padding:7px 8px 7px 14px}
.xag8-dialog .xag8-entry textarea{min-height:44px;max-height:108px;resize:vertical;line-height:1.5;font-size:14px}
.xag8-dialog .xag8-entry:focus-within{border-color:#8db4ca;box-shadow:0 0 0 2px rgba(133,176,201,.16)}
.xag8-dialog .xag8-send{flex:0 0 auto;min-width:70px;min-height:44px;background:#80a9bf;color:#08151f;border-radius:11px;font-weight:700}
.xag8-dialog .xag8-send:not(:disabled):hover{background:#a9cde0}
.xag8-dialog .xag8-compose-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-height:44px;margin-top:5px;color:#9bb2c2}
.xag8-dialog .xag8-compose-meta #xag8-state{flex:1 1 150px;min-width:0;line-height:1.4}
.xag8-dialog .xag8-compose-meta #xag8-count{flex:0 0 auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.xag8-dialog .xag8-compose-meta .xag8-control{flex:0 0 auto;min-height:44px;min-width:64px;padding:6px 12px;font-size:11px;background:#152532;color:#d0e0ea}
.xag8-dialog .athrty-conversation-latest{position:absolute;right:20px;z-index:5;max-width:calc(100% - 40px);border:1px solid #7398ae;border-radius:999px;background:#1b3242;color:#eaf4fa;font:600 12px/1.3 Arial,Helvetica,sans-serif!important;box-shadow:0 10px 28px rgba(0,0,0,.45)}
.xag8-dialog .athrty-conversation-latest[hidden]{display:none!important}
.xag8-dialog .athrty-conversation-latest:hover{background:#2a495e}
@media(max-width:540px){
 .ath-shell-jarvis-head{min-height:68px;padding:12px 16px}
 .ath-shell-jarvis-head small{font-size:9px;letter-spacing:.025em}
 .ath-shell-jarvis-head button{min-width:66px;padding:0 12px}
 .ath-shell-jarvis-foot{padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}
 .ath-shell-jarvis-foot a{min-height:44px;padding:8px;font-size:11px}
 .xag8-dialog .xag8-flow{padding:8px;gap:4px}
 .xag8-dialog .xag8-flow :is(span,a){font-size:9px;padding:7px 3px;letter-spacing:0}
 .xag8-dialog .xag8-feed{padding:13px 12px;gap:10px}
 .xag8-dialog .xag8-turn{padding:13px;border-radius:13px}
 .xag8-dialog .xag8-turn p{font-size:13px}
 .xag8-dialog .xag8-composer{padding:11px 12px max(11px,env(safe-area-inset-bottom))}
 .xag8-dialog .xag8-entry{padding-left:10px}
 .xag8-dialog .xag8-discovery{padding:12px}
 .xag8-dialog .athrty-conversation-latest{right:12px;max-width:calc(100% - 24px)}
}
@media(max-height:600px){.xag8-dialog .xag8-flow{padding-top:5px;padding-bottom:5px}.xag8-dialog .xag8-feed{padding-top:10px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){.ath-shell-jarvis-foot a,.xag8-dialog .athrty-conversation-latest{transition:none!important}}
/* BLACKLINE 110000 | Institutional right-dock, semantic typography, and edge architecture. */
:root{--blackline-obsidian:#08090B;--blackline-graphite:#171B21;--blackline-steel:#333B46;--blackline-platinum:#AFBAC8;--blackline-white:#F4F5F6;--ath-shell-ink:var(--blackline-white);--ath-shell-muted:var(--blackline-platinum);--ath-shell-surface:var(--blackline-graphite);--ath-shell-line:rgba(175,186,200,.22)}
.ath-shell-nav-panel,.ath-shell-jarvis-panel,body .x1113-nav-panel{font-family:Arial,Helvetica,sans-serif;background-color:var(--blackline-graphite);box-shadow:-24px 0 72px rgba(0,0,0,.4)}
.ath-shell-nav-button{margin-left:auto;font-family:Arial,Helvetica,sans-serif;min-height:46px}
.ath-shell-nav-header{flex-direction:row-reverse;text-align:right}
.ath-shell-nav-header h2,.ath-shell-nav-panel nav a strong,.ath-shell-nav-section-label,.ath-shell-nav-foot{font-family:Arial,Helvetica,sans-serif}
.ath-shell-nav-panel nav a[aria-current]{box-shadow:inset -2px 0 var(--blackline-platinum)}
.ath-shell-nav-panel nav a:focus-visible,.ath-shell-nav-button:focus-visible,.ath-shell-jarvis-button:focus-visible{outline:2px solid var(--blackline-platinum);outline-offset:3px}
.ath-shell-nav-panel nav a:hover{padding-left:12px;background:rgba(175,186,200,.075)}
@media(max-width:760px){.ath-shell-nav-button{margin-left:auto}.ath-shell-nav-panel{padding-top:max(22px,env(safe-area-inset-top));padding-bottom:max(22px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.ath-shell-nav-panel nav a{transition:none!important}}
/* X1113 EDITORIAL RESTORATION — 2026-11-21 (owner pick: Candidate A, the X1113
   right-anchored menu panel). The Genesis overlay conversion above compressed
   the panel's destination rows to 56px/16px and widened the dock to 470px.
   At desktop widths the rows return to the X1113 editorial scale and the dock
   to its documented clamp; the modal right-dock mechanics (fixed position,
   backdrop, slide) are unchanged, as is every other width. */
@media(min-width:1181px){
 body.x1113-nav-open .x1113-nav-panel{width:clamp(344px,28vw,420px)!important}
 body .x1113-nav-panel .x1113-destinations .x1113-destination{min-height:78px!important}
 body .x1113-nav-panel .x1113-destinations .x1113-destination-copy strong{font-size:clamp(21px,2.1vw,28px)!important;font-weight:480!important;line-height:1.06!important;letter-spacing:-.045em!important}
}
/* BLACKLINE navigation invariant: a foreground menu owns the Agent command.
   Suppress the floating launcher while navigation is open; restore it on close.
   visibility:hidden also removes the duplicate control from keyboard tab order. */
body.ath-shell-nav-open .ath-shell-jarvis-button{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
body.x1113-nav-open:not([data-jarvis-embed]) .xag8-launch{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
/* BLACKLINE — native Agent access inside the existing navigation surface. */
.ath-shell-agent-command,.x1113-agent-command{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:68px;margin:20px 0 10px;padding:11px 15px;box-sizing:border-box;border:1px solid rgba(175,186,200,.28);border-radius:16px;background:linear-gradient(135deg,#25313C,#171D25);color:#F4F5F6;text-align:left;cursor:pointer;font-family:Arial,Helvetica,sans-serif;transition:background .22s ease,border-color .22s ease,transform .22s ease}
.ath-shell-agent-command:hover,.x1113-agent-command:hover{background:#303D4A;border-color:#AFBAC8;transform:translateY(-1px)}
.ath-shell-agent-command:focus-visible,.x1113-agent-command:focus-visible{outline:2px solid #AFBAC8;outline-offset:3px}
.ath-shell-agent-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(244,245,246,.08);color:#DCE4EC}
.ath-shell-agent-icon svg{width:24px;height:24px}
.ath-shell-agent-copy{display:grid;gap:3px;min-width:0}
.ath-shell-agent-copy strong{font:700 16px/1.2 Arial,Helvetica,sans-serif;letter-spacing:-.015em}
.ath-shell-agent-copy small{font:500 11px/1.4 Arial,Helvetica,sans-serif;color:#AFBAC8}
.ath-shell-agent-direction{font:400 23px/1 Arial,Helvetica,sans-serif;color:#AFBAC8}
.ath-shell-jarvis-mark svg{width:25px;height:25px}
body:not([data-jarvis-embed]) .xag8-launch-mark svg{width:25px;height:25px;display:block;stroke:#F4F5F6;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
@media(prefers-reduced-motion:reduce){.ath-shell-agent-command,.x1113-agent-command{transition:none!important;transform:none!important}}
/* BLACKLINE 111000 | shared navigation alignment and density contract */
.ath-shell-nav-panel .ath-shell-nav-header{flex-direction:row-reverse!important;text-align:right!important;align-items:flex-start!important;gap:14px!important}
.ath-shell-nav-panel .ath-shell-nav-header>div{flex:1;min-width:0;text-align:right!important}
.ath-shell-nav-panel .ath-shell-nav-header h2{font:650 clamp(25px,3vw,32px)/1.1 Arial,Helvetica,sans-serif!important;letter-spacing:-.045em!important;margin:9px 0 7px!important;text-align:right!important}
.ath-shell-nav-panel .ath-shell-nav-header p{font:400 12px/1.45 Arial,Helvetica,sans-serif!important;max-width:34ch!important;margin:0 0 0 auto!important;text-align:right!important}
.ath-shell-nav-panel .ath-shell-nav-header small{font:700 10px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.12em!important;text-align:right!important}
.ath-shell-nav-panel .ath-shell-nav-header button{flex:none;min-height:44px;padding:0 13px}
.ath-shell-nav-panel .ath-shell-nav-section-label{text-align:left!important}
.ath-shell-nav-panel nav a{min-height:56px;padding:11px 10px!important;grid-template-columns:minmax(0,1fr) 16px;gap:12px;text-align:left!important}
.ath-shell-nav-panel nav a strong{font:650 15px/1.25 Arial,Helvetica,sans-serif!important;letter-spacing:-.02em!important}
.ath-shell-nav-panel nav a small{font:400 11px/1.4 Arial,Helvetica,sans-serif!important;margin-top:3px!important}
.ath-shell-nav-panel .ath-shell-nav-index{display:none!important}
.ath-shell-nav-panel nav a[aria-current]{box-shadow:inset 2px 0 var(--blackline-platinum)!important}
body .x1113-nav-panel :is(.x1113-nav-header,.x1113-nav-intro,.x1113-nav-heading,.x1113-nav-title){text-align:left!important}
body .x1113-nav-panel .x1113-destination-copy strong{font-size:16px!important;line-height:1.25!important}
body .x1113-nav-panel .x1113-destination{min-height:56px!important}
body .x1113-nav-panel :is(.x1113-nav-index,.x1113-destination-index,.x1113-destination-number){display:none!important}
@media(max-width:760px){.ath-shell-nav-panel .ath-shell-nav-header h2{font-size:28px!important}.ath-shell-nav-panel{padding-inline:20px!important}}
@media(prefers-reduced-motion:reduce){.ath-shell-nav-panel nav a{transition:none!important}}