/*
 * KeyAiOS Identity System 1.0 — black / electric-lime / authored mark / motion.
 * Presentation ONLY. No authority, source content, persistence, network fetch,
 * IndexedDB, worker, model, authentication or recovery behavior is changed.
 *
 * Visual source: original KeyAiOS brand family and existing bundled canonical
 * mark / lockup. The owner's uploaded black-and-lime Ark design is the
 * color/identity reference. No third-party asset/font dependencies.
 */
:root{
 --kai-void:#000300; --kai-black:#020503; --kai-graphite:#08110b;
 --kai-raised:#0c180f; --kai-glass:rgba(5,14,8,.90);
 --kai-lime:#97ee23; --kai-signal:#a5ff2c; --kai-lime-soft:#dcffa5;
 --kai-pearl:#f3fff0; --kai-ash:#b1c3af; --kai-faint:#8fa78f;
 --kai-line:rgba(151,238,35,.27); --kai-line-hot:rgba(164,255,44,.58);
 --kai-flare:rgba(151,238,35,.13); --kai-radius:22px;
 --kai-shadow:0 20px 62px rgba(0,0,0,.62),0 0 0 1px rgba(151,238,35,.025) inset;
 --kai-ease:cubic-bezier(.22,1,.36,1);
 --kai-fast:180ms var(--kai-ease); --kai-normal:360ms var(--kai-ease);
 color-scheme:dark;
}
html{background:var(--kai-void)}
body{
 color:var(--kai-pearl);
 background:
  radial-gradient(ellipse 70vw 34rem at 4% -9%,rgba(151,238,35,.115),transparent 72%),
  radial-gradient(ellipse 46vw 33rem at 106% 36%,rgba(70,140,38,.07),transparent 75%),
  linear-gradient(178deg,#010302 0%,#050b07 42%,#000200 100%) !important;
 font-feature-settings:"kern" 1,"liga" 1;
 -webkit-font-smoothing:antialiased;
}
body::before{
 pointer-events:none;
}
/* Ensure evidence, dialogs, accessibility and lock flow remain authoritative. */
[hidden],.hidden{display:none!important}
button,input,textarea,select{font-family:inherit}
button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{
 outline:3px solid var(--kai-lime-soft)!important;outline-offset:3px;
}
::selection{background:rgba(151,238,35,.38);color:#fff}
:where(.topbar,.ark-sidebar,.sidebar,.panel,.card,.ark-hero,.hero,.kai-discover-band){
 -webkit-backface-visibility:hidden;
}
/* One brand. Existing real KeyAiOS images, never invented artwork. */
:where(.ark-brand,.brand){
 position:relative;isolation:isolate;
}
:where(.ark-brand,.brand) img{
 filter:drop-shadow(0 0 7px rgba(151,238,35,.44))
        drop-shadow(0 0 24px rgba(151,238,35,.15));
 transform-origin:center;
 animation:kai-mark-breathe 7s ease-in-out infinite;
}
:where(.ark-brand,.brand)::after{
 content:"";position:absolute;pointer-events:none;
 width:76px;height:76px;left:-12px;top:50%;
 transform:translateY(-50%);border-radius:50%;
 z-index:-1;
 background:radial-gradient(circle,rgba(151,238,35,.17),transparent 69%);
 animation:kai-core-radiance 7s ease-in-out infinite;
}
:where(.ark-brand,.brand) strong{
 color:var(--kai-lime-soft)!important;
 letter-spacing:.025em;text-shadow:0 0 21px rgba(151,238,35,.12);
}
:where(.ark-brand,.brand) small{
 color:#a8c397!important;
 letter-spacing:.17em;
}
:where(.ark-brand,.brand) img:hover,
:where(.ark-brand,.brand):focus-within img{filter:drop-shadow(0 0 16px rgba(151,238,35,.7))}
/* Chrome: restrained field lines, not noisy electric borders everywhere. */
:where(.topbar){
 background:linear-gradient(180deg,rgba(2,7,4,.95),rgba(1,4,2,.91))!important;
 border-bottom:1px solid var(--kai-line)!important;
 box-shadow:0 14px 35px rgba(0,0,0,.38);
 backdrop-filter:blur(23px) saturate(125%);
}
:where(.topbar)::after{
 background:linear-gradient(90deg,transparent,var(--kai-lime) 35%,#daffa1 52%,transparent)!important;
 opacity:.6;
}
:where(.ark-location,.eyebrow,.kicker,.ark-kicker,.kai-kicker){
 color:var(--kai-lime-soft)!important;
 font-weight:750;letter-spacing:.155em;
}
:where(.ark-sidebar,.sidebar){
 background:linear-gradient(160deg,#030904 0%,#050d08 48%,#010402 100%)!important;
 border-color:var(--kai-line)!important;
 box-shadow:18px 0 70px rgba(0,0,0,.57);
}
:where(.ark-nav-item,.nav-item){
 transition:color var(--kai-fast),background var(--kai-normal),
   box-shadow var(--kai-normal),border-color var(--kai-fast),transform var(--kai-fast);
}
:where(.ark-nav-item,.nav-item):hover{
 background:linear-gradient(90deg,rgba(151,238,35,.105),transparent 85%)!important;
 color:var(--kai-pearl)!important;
}
:where(.ark-nav-item,.nav-item).active,
:where(.nav-item)[aria-selected="true"]{
 color:#f5ffef!important;
 border-color:var(--kai-line-hot)!important;
 background:linear-gradient(90deg,rgba(151,238,35,.18),rgba(151,238,35,.025))!important;
 box-shadow:inset 3px 0 0 var(--kai-signal),0 0 22px rgba(151,238,35,.06)!important;
}
:where(.ark-nav-glyph,.nav-item>span:first-child){
 color:var(--kai-lime-soft)!important;
}
:where(.ark-switch,.experience-switch){
 background:rgba(0,6,2,.80);border-color:var(--kai-line)!important;
}
:where(.ark-switch,.experience-switch) button.active{
 background:rgba(151,238,35,.17)!important;
 box-shadow:0 0 0 1px var(--kai-line) inset;
 color:var(--kai-lime-soft)!important;
}
/* Identity-first hero. Strong black surface, canonical logo, moving halo. */
:where(.ark-hero,.hero){
 isolation:isolate;position:relative;
 border-radius:clamp(22px,3vw,34px);
}
.ark-hero{
 overflow:hidden;
 padding:clamp(24px,4vw,45px)!important;
 background:
  radial-gradient(ellipse at 92% 12%,rgba(151,238,35,.115),transparent 44%),
  radial-gradient(ellipse at 10% 105%,rgba(95,147,51,.06),transparent 58%),
  linear-gradient(145deg,#0b180d 0%,#020904 54%,#010301 100%)!important;
 border:1px solid rgba(151,238,35,.36)!important;
 box-shadow:var(--kai-shadow),0 0 48px rgba(151,238,35,.035);
}
.ark-hero > *{position:relative;z-index:1}
.ark-hero::before{
 content:"";pointer-events:none;position:absolute;
 z-index:0;right:-7%;top:5%;height:85%;width:54%;
 background:url("./keyaios-icon.png") center/contain no-repeat;
 opacity:.105;filter:drop-shadow(0 0 28px rgba(151,238,35,.6));
 animation:kai-mark-float 10s ease-in-out infinite;
}
.ark-hero::after{
 content:"";pointer-events:none;position:absolute;z-index:0;
 width:35rem;height:35rem;max-width:120vw;right:-15rem;top:-15rem;
 border:1px solid rgba(151,238,35,.17);border-radius:50%;
 box-shadow:0 0 0 48px rgba(151,238,35,.017),0 0 0 118px rgba(151,238,35,.012);
 animation:kai-field-orbit 28s linear infinite;
}
.ark-hero h1,.hero h1{
 font-weight:850;line-height:1.035;
 letter-spacing:-.058em!important;
 text-wrap:balance;
}
.ark-hero h1 span,.hero h1 span{
 color:var(--kai-lime)!important;
 background:linear-gradient(102deg,#caff81 4%,#97ee23 48%,#e5ffb8 75%,#8ee720 100%)!important;
 background-size:240% 100%!important;
 -webkit-background-clip:text!important;background-clip:text!important;
 -webkit-text-fill-color:transparent;
 animation:kai-metal-flow 12s ease-in-out infinite;
}
:where(.ark-hero .ark-lede,.hero .lede,.hero-copy .lede){
 color:#bcd3b8!important;font-size:clamp(15px,1.7vw,18px);
 line-height:1.75;max-width:60ch;
}
:where(.ark-hero blockquote,.covenant-seal){
 color:#b6c9b0!important;
 border-left:2px solid var(--kai-lime)!important;
 background:rgba(151,238,35,.035)!important;
}
:where(.hero-identity,.ark-identity){
 position:relative;isolation:isolate;overflow:hidden;
 background:
  radial-gradient(circle at 50% 46%,rgba(151,238,35,.15),transparent 48%),
  linear-gradient(145deg,#07120a,#010402)!important;
 border:1px solid rgba(151,238,35,.31)!important;
 box-shadow:var(--kai-shadow),inset 0 0 58px rgba(151,238,35,.025);
}
:where(.hero-identity,.ark-identity)::before{
 content:"";position:absolute;pointer-events:none;z-index:-1;
 width:min(74%,450px);aspect-ratio:1;left:50%;top:50%;
 border:1px solid rgba(151,238,35,.16);border-radius:50%;
 transform:translate(-50%,-50%);
 box-shadow:0 0 0 31px rgba(151,238,35,.018),0 0 0 75px rgba(151,238,35,.01);
}
.hero-identity .hero-lockup{
 filter:drop-shadow(0 0 29px rgba(151,238,35,.16));
 animation:kai-mark-float 12s ease-in-out infinite;
}
.ark-identity img{animation:kai-mark-breathe 7s ease-in-out infinite}
body[data-ark-experience="everyday"] .ark-identity{
 display:grid!important;min-height:135px;padding:18px;
}
/* Elevated information architecture. Decorative surface never hides controls. */
:where(.card,.panel,.ark-function-card,.ark-result,
  .kai-provider,.kai-media-card,.kai-saved-card,.kai-discover-band,
  .human-start,.task-card,.ark-query,.ark-source-form,.kai-native-browser){
 border-color:var(--kai-line)!important;
 background-color:var(--kai-glass);
 box-shadow:var(--kai-shadow);
 transition:border-color var(--kai-normal),box-shadow var(--kai-normal),
   transform var(--kai-normal),background-color var(--kai-normal);
}
:where(.card,.panel,.ark-function-card,.ark-result,
  .kai-provider,.kai-media-card,.kai-saved-card,.kai-discover-band,
  .human-start,.task-card,.ark-query,.ark-source-form,.kai-native-browser):hover{
 border-color:rgba(164,255,44,.46)!important;
 box-shadow:0 24px 78px rgba(0,0,0,.7),0 0 28px rgba(151,238,35,.035);
}
:where(.card,.panel,.ark-function-card,.ark-result){
 border-radius:var(--kai-radius)!important;
}
:where(.panel,.kai-discover-band,.kai-native-browser,.human-start){
 background-image:linear-gradient(152deg,rgba(151,238,35,.037),transparent 44%,rgba(0,0,0,.08));
}
:where(.kai-discover-tile,.kai-provider,.kai-media-card,.kai-saved-card,.task-card){
 border-radius:18px!important;
 background:linear-gradient(150deg,#0b190e,#030805 85%)!important;
 border:1px solid rgba(151,238,35,.24)!important;
}
:where(.kai-discover-tile,.kai-provider,.kai-media-card,.kai-saved-card,.task-card):hover{
 transform:translateY(-3px);
 background:linear-gradient(150deg,#112612,#050c07 85%)!important;
}
:where(.kai-provider-badge,.kai-media-type,.kai-kicker,.kai-receipt,.kai-source-state){
 color:var(--kai-lime-soft)!important;
}
:where(.kai-media-art,.kai-private-media){
 border-radius:14px;border:1px solid var(--kai-line);
}
:where(.kai-twb-hero){
 border-color:rgba(151,238,35,.42)!important;
 background:linear-gradient(125deg,#1a1010,#090e09)!important;
}
:where(.kai-twb-hero,.kai-media-art)::after{
 pointer-events:none;
}
/* Inputs and actions have tactile hardware-like behavior, not generic pills. */
:where(.primary,.ark-accent,button.primary,.hero-actions button:not(.secondary)){
 background:linear-gradient(135deg,#c7ff78 0%,#9ff331 50%,#7ed915 100%)!important;
 color:#081102!important;border:1px solid #b7ff59!important;
 font-weight:800;box-shadow:0 7px 24px rgba(151,238,35,.14),
 inset 0 1px 0 rgba(255,255,255,.35);
}
:where(.primary,.ark-accent,button.primary,.hero-actions button:not(.secondary)):hover{
 box-shadow:0 11px 32px rgba(151,238,35,.25),0 0 0 1px rgba(151,238,35,.22);
 filter:saturate(1.06);
}
:where(.primary,.ark-accent,button.primary,.hero-actions button:not(.secondary)):active{
 transform:translateY(1px);box-shadow:0 3px 12px rgba(151,238,35,.12);
}
:where(button.secondary,.secondary,.kai-secondary,.kai-link,.ark-action:not(.primary)){
 background:linear-gradient(145deg,rgba(151,238,35,.10),rgba(1,7,2,.26));
 color:var(--kai-lime-soft);border-color:var(--kai-line)!important;
}
:where(button.secondary,.secondary,.kai-secondary,.kai-link,.ark-action):hover{
 border-color:var(--kai-line-hot)!important;
}
:where(input,textarea,select){
 background:#020803;color:var(--kai-pearl);
 border-color:rgba(151,238,35,.28)!important;
}
:where(input,textarea,select):focus{
 border-color:var(--kai-lime)!important;
 box-shadow:0 0 0 3px rgba(151,238,35,.10),0 0 26px rgba(151,238,35,.05);
}
:where(input,textarea)::placeholder{color:#829682}
:where(.badge,.ark-status,.health,.ark-live){
 border-color:var(--kai-line)!important;
 color:var(--kai-lime-soft)!important;
 background:rgba(151,238,35,.07)!important;
}
:where(.chat-thread,.kai-native-web-excerpt,.trace-output){
 scrollbar-color:rgba(151,238,35,.35) #020703;
}
/* Controlled ambient motion at meaningful moments, no continuous DOM writes. */
:where(.ark-hero,.hero,.kai-discover-band,.human-start){
 animation:kai-reveal 620ms var(--kai-ease) both;
}
:where(.kai-discover-tile,.task-card){
 animation:kai-rise 510ms var(--kai-ease) both;
}
:where(.kai-discover-tile,.task-card):nth-child(2){animation-delay:70ms}
:where(.kai-discover-tile,.task-card):nth-child(3){animation-delay:130ms}
:where(.kai-discover-tile,.task-card):nth-child(4){animation-delay:185ms}
:where(.kai-discover-tile,.task-card):nth-child(5){animation-delay:240ms}
@keyframes kai-reveal{
 from{opacity:.6;transform:translateY(9px)}
 to{opacity:1;transform:translateY(0)}
}
@keyframes kai-rise{
 from{opacity:.5;transform:translateY(12px)}
 to{opacity:1;transform:translateY(0)}
}
@keyframes kai-mark-breathe{
 0%,100%{transform:translateY(0) scale(1);opacity:1}
 50%{transform:translateY(-2px) scale(1.025);opacity:.94}
}
@keyframes kai-core-radiance{
 0%,100%{opacity:.47;transform:translateY(-50%) scale(.9)}
 50%{opacity:.8;transform:translateY(-50%) scale(1.12)}
}
@keyframes kai-mark-float{
 0%,100%{transform:translate3d(0,0,0)}
 50%{transform:translate3d(0,-9px,0)}
}
@keyframes kai-metal-flow{
 0%,100%{background-position:0 50%}
 50%{background-position:100% 50%}
}
@keyframes kai-field-orbit{
 from{transform:rotate(0)}
 to{transform:rotate(360deg)}
}
/* Devices: no clipping, no text overlays, minimum tap areas retained. */
@media(max-width:900px){
 .ark-hero::before{right:-11%;width:68%;opacity:.075}
 .ark-hero::after{right:-24rem;opacity:.58}
 :where(.ark-sidebar,.sidebar){backdrop-filter:blur(20px)}
}
@media(max-width:560px){
 .ark-hero{padding:22px 18px!important}
 .ark-hero h1{font-size:clamp(36px,10vw,50px)!important;word-break:normal}
 .ark-hero::before{right:-19%;width:80%;height:80%;opacity:.055}
 .hero-identity{min-height:240px}
 .ark-brand strong{font-size:18px!important}
 .ark-brand small{font-size:8px!important}
 .kai-discover-tile,.task-card{min-height:unset}
 :where(.ark-hero,.hero,.kai-discover-band,.human-start){animation-duration:420ms}
}
/* Strict safety/accessibility contracts */
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{
  animation-duration:.01ms!important;
  animation-iteration-count:1!important;
  transition-duration:.01ms!important;
  scroll-behavior:auto!important;
 }
}
@media(prefers-contrast:more){
 :root{--kai-line:rgba(183,255,110,.66);--kai-faint:#b8ceb1}
 :where(.card,.panel,.kai-provider,.kai-media-card,.kai-saved-card){border-width:2px!important}
}
@media(forced-colors:active){
 :where(.card,.panel,.kai-provider,.kai-media-card,.kai-saved-card){
  border:1px solid CanvasText!important;
 }
 :where(.primary,button.primary){forced-color-adjust:auto}
}
