/* library-live-v1.css */
.ak-library-live{inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border:0;border-radius:0;background:#000;padding:20px 16px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}.ak-library-live h2{font-size:22px;text-align:center;margin:0 75px 12px}.ak-library-live>button{position:absolute;right:12px;top:8px;margin:0}.ak-library-live>form{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ak-library-live>form input{min-width:0;flex:1;font-size:16px}.ak-library-live>form p{width:100%;margin:0}.ak-library-live>p{margin:8px 0;flex-shrink:0}.ak-library-filters{display:flex;gap:4px;overflow-x:auto;flex-shrink:0;padding:6px 0 12px}.ak-library-filters button{margin:0;background:transparent;color:#aaa;white-space:nowrap;min-height:44px}.ak-library-filters button[aria-pressed=true]{background:#3c3c3c;color:#fff;border-radius:28px}.ak-library-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;overflow-y:auto;min-height:0;flex:1;align-content:start;overscroll-behavior:contain}.ak-library-items .ak-work-row{border:1px solid #333;border-radius:20px;padding:16px;aspect-ratio:1;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.ak-library-items .ak-work-row[hidden]{display:none}.ak-library-items strong{font-size:16px;font-weight:500;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.ak-library-items a{align-self:flex-start;margin:8px 0 0;min-height:44px;box-sizing:border-box}.ak-library-search{flex-shrink:0;box-sizing:border-box;width:100%;min-height:48px;background:#171717;color:#fff;border:1px solid #333;border-radius:28px;padding:12px 16px;margin-top:12px;font-size:16px}.ak-library-live :focus-visible{outline:2px solid white;outline-offset:-2px}@media(min-width:841px){.ak-library-live{padding:24px 32px}.ak-library-items{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}}

/* library-exact-v1.css */
.ak-library-live{padding:env(safe-area-inset-top) 0 0;background:#000;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
.ak-library-live .lib-header{position:relative;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:54px;box-sizing:border-box;padding:0 16px 10px;border-bottom:1px solid #171717}
.ak-library-live .lib-header h2{position:static;margin:0;padding:0;text-align:center;font-size:17px;line-height:22px;font-weight:600}
.ak-library-live .lib-round{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0;margin:0;border-radius:50%;background:#141414;box-shadow:inset 0 0 0 1px #242424;color:white}
.ak-library-live img{width:24px;height:24px;object-fit:contain;flex-shrink:0;pointer-events:none}
.ak-library-live .lib-header .lib-round img{width:25px;height:25px}
.ak-library-live .ak-library-filters{height:76px;padding:16px;box-sizing:border-box;gap:8px;align-items:center}
.ak-library-live .ak-library-filters button{font-size:17px;line-height:22px;font-weight:500;padding:11px 16px;margin:0;min-height:44px;background:none;color:#a6a6a6}
.ak-library-live .ak-library-filters button[aria-pressed=true]{background:#404040;color:white;border-radius:24px}
.ak-library-live .ak-library-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 16px 20px;scrollbar-width:none}
.ak-library-live .ak-library-items::-webkit-scrollbar{display:none}
.ak-library-live .lib-card{padding:0;border:1px solid #303030;border-radius:18px;aspect-ratio:1;overflow:hidden;background:#000}
.ak-library-live .lib-card .lib-card-link{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;text-align:left;width:100%;height:100%;min-height:0;padding:16px;margin:0;border-radius:0;background:transparent;color:#fff;text-decoration:none;box-sizing:border-box}
.ak-library-live .lib-card strong{font-size:15px;line-height:20px;font-weight:500;-webkit-line-clamp:4}
.ak-library-live .lib-card img{width:24px;height:24px}
.ak-library-live .lib-footer{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:8px 34px max(34px,env(safe-area-inset-bottom));border-top:1px solid #171717;background:#000}
.ak-library-live .lib-footer .lib-round{width:48px;height:48px}
.ak-library-live .lib-footer .lib-round img{width:28px;height:28px}
.ak-library-live .lib-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0;height:48px;box-sizing:border-box;padding:0 14px;background:#141414;border:1px solid #292929;border-radius:28px}
.ak-library-live .lib-search img{opacity:.65;width:22px;height:22px}
.ak-library-live .ak-library-search{border:0;background:transparent;border-radius:0;padding:0;margin:0;min-height:44px;font-size:17px;line-height:22px;color:#fff;width:100%;min-width:0;outline-offset:0}
.ak-library-live .ak-library-search::placeholder{color:#a6a6a6;opacity:1}
.ak-library-live .lib-upload-hidden{display:none}
.ak-library-live>p:empty{display:none}
.ak-library-live>p:not(:empty){padding:0 16px;font-size:14px}
.ak-library-live .lib-actions{position:absolute;z-index:2;right:16px;top:52px;padding:8px;min-width:180px;background:#222;border:1px solid #383838;border-radius:16px;box-shadow:0 8px 24px #0008}
.ak-library-live .lib-actions[hidden]{display:none}
.ak-library-live .lib-actions button{display:block;width:100%;margin:0;text-align:left;background:transparent;min-height:44px}
@media(min-width:841px){.ak-library-live .ak-library-items{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.ak-library-live .lib-footer{padding-bottom:16px}.ak-library-live .lib-header{height:72px}}

.ak-library-live .ak-library-items{grid-auto-rows:max-content}


/* ak-cloud-browser.css */
.ak-browser-block{max-width:760px;margin:18px 0;color:#aaa;font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ak-browser-status{margin:0 0 12px}.ak-browser-block summary{cursor:pointer;padding:10px 0;font-size:18px;overflow-wrap:anywhere}.ak-browser-events{padding-left:22px;max-height:180px;overflow:auto;margin:8px 0 16px}.ak-browser-events li{padding:4px 0}
.ak-browser-screen{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;border-radius:18px;background:#202020;box-shadow:0 0 0 1px #3a3a3a;cursor:crosshair}.ak-browser-screen:not([src]){display:none}
.ak-browser-block button,.ak-browser-block input{font:inherit;min-height:44px;border:1px solid #363636;border-radius:22px;background:#191919;color:#eee;padding:8px 14px;box-sizing:border-box}.ak-browser-block button{cursor:pointer;margin:8px 8px 0 0}.ak-browser-block :disabled{opacity:.45;cursor:default}.ak-browser-block :focus-visible{outline:2px solid #fff;outline-offset:2px}
.ak-browser-controls{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.ak-browser-controls input{width:100%;margin-top:10px}.ak-browser-block details:not([open]) .ak-browser-screen{display:none}@media(max-width:600px){.ak-browser-block{font-size:15px;margin:14px 0}.ak-browser-block summary{font-size:17px}.ak-browser-screen{border-radius:14px}}
.ak-browser-launchers,.ak-inline-browser{grid-column:1/-1;width:100%;min-width:0}.ak-open-cloud-browser{font:inherit;color:#ddd;background:#181818;border:1px solid #383838;border-radius:24px;min-height:44px;padding:10px 16px;margin:10px 8px 0 0;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.ak-open-cloud-browser:disabled{opacity:.5}.ak-inline-browser{overflow-wrap:anywhere}.ak-browser-block{width:100%;box-sizing:border-box}.ak-browser-controls input{min-width:0}.ak-browser-block ol{list-style:disc}.ak-browser-block{color:#bdbdbd}

.ak-browser-agent{margin-top:16px;border-top:1px solid #333;padding-top:12px}.ak-browser-agent textarea{box-sizing:border-box;width:100%;min-height:80px;background:#191919;color:#eee;border:1px solid #444;border-radius:14px;padding:12px;font:inherit}.ak-browser-agent pre{white-space:pre-wrap;overflow-wrap:anywhere;}


/* mobile-layout-v18.css */
/* Intrinsic grid sizing must not expand the mobile chat beyond its viewport. */
@media (max-width: 840px) {
  .ak-main, .conversation-stage { grid-template-columns: minmax(0, 1fr); }
  .ak-topbar, .conversation-stage, .message-stream { min-width: 0; max-width: 100%; }
  .topbar-title { flex: 1; min-width: 0; }
  .message, .ak-markdown, .ak-task-output { min-width: 0; overflow-wrap: anywhere; }
  .composer.ak-unified-mounted { min-width: 0; }
}


/* browser-window-v21.css */
.akw{--akw-bg:#171717;--akw-line:#353535;color:#f5f5f5;background:var(--akw-bg);border:1px solid var(--akw-line);border-radius:22px;overflow:hidden;isolation:isolate;width:100%;min-width:0;margin:14px 0;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}
.akw *{box-sizing:border-box}.akw [hidden]{display:none!important}.akw button,.akw input,.akw textarea{font:inherit}.akw button{cursor:pointer;color:inherit}.akw button:disabled{opacity:.4;cursor:default}.akw button:focus-visible,.akw input:focus-visible,.akw textarea:focus-visible,.akw-screen-wrap:focus-visible{outline:2px solid #b7d3ff;outline-offset:-3px}.akw button svg{flex-shrink:0;pointer-events:none}
.akw-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--akw-line);min-width:0}.akw-heading{display:flex;flex:1;min-width:0;gap:8px;align-items:center}.akw-heading>svg{flex-shrink:0;color:#aaa}.akw-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:500}.akw-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;border:0;background:transparent;border-radius:50%}.akw-icon:hover{background:#303030}.akw-mode{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #454545;border-radius:22px;background:#282828;font-size:12px;padding:0 10px;height:36px;white-space:nowrap}.akw-mode svg{width:16px;height:16px}
.akw-toolbar{display:flex;align-items:center;gap:2px;padding:5px 7px;border-bottom:1px solid var(--akw-line)}.akw-address-form{flex:1;min-width:0}.akw-address{width:100%;min-width:0;border:1px solid #393939;border-radius:18px;background:#222;color:#eee;padding:8px 12px;height:38px;font-size:16px!important;outline:none}.akw-toolbar .akw-icon{width:36px;min-width:36px;height:40px}.akw-screen-wrap{position:relative;background:#252525;height:clamp(260px,45vh,360px);overflow:hidden;min-height:0;touch-action:none;outline:none}.akw-screen{display:block;object-fit:contain;width:100%;height:100%;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none}.akw-screen:not([src]){visibility:hidden}.akw-shield{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#1118}.akw-shield .akw-pill{box-shadow:0 2px 12px #0006}.akw-input-bridge{position:absolute;bottom:2px;left:2px;width:2px;height:2px;opacity:.01;padding:0;border:0;font-size:16px!important;resize:none;pointer-events:none}
.akw-status{margin:0;padding:7px 12px;color:#a8a8a8;font-size:12px;min-height:30px;overflow-wrap:anywhere}.akw[data-busy=true] .akw-status{color:#e1e1e1}.akw[data-error=true] .akw-status{color:#ffc3ba}.akw-agent-status:empty{display:none}.akw-agent-status{font-size:13px;color:#bebebe;margin:0;padding:0 12px 10px;overflow-wrap:anywhere}.akw-goal-form{display:flex;align-items:center;gap:8px;border-top:1px solid var(--akw-line);padding:10px}.akw-goal{width:100%;min-width:0;resize:vertical;border:1px solid #444;border-radius:12px;background:#222;color:#fff;padding:9px;font-size:16px!important}.akw-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;border:0;border-radius:24px;background:#f1f1f1;color:#121212!important;padding:8px 16px;font-weight:600!important;white-space:nowrap}.akw-secondary{background:#343434;color:#fff!important}.akw-approval{margin:0 10px 10px;padding:12px;background:#242424;border:1px solid #555;border-radius:14px}.akw-approval p{margin:0 0 8px;overflow-wrap:anywhere}.akw-muted{font-size:13px;color:#b3b3b3}.akw-approval-actions{display:flex;gap:8px;flex-wrap:wrap}.akw-events{margin:0;padding:0 12px 10px;color:#a7a7a7;font-size:12px}.akw-events summary{cursor:pointer;padding:5px 0}.akw-events ol{margin:5px 0;padding-left:20px;max-height:150px;overflow:auto}
.akw.is-expanded{position:fixed;inset:0;z-index:2147483000;margin:0;width:100%;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);background:#111}.akw.is-expanded .akw-screen-wrap{height:auto;flex:1;min-height:100px}.akw.is-expanded .akw-agent{max-height:35dvh;overflow:auto}.akw.is-expanded .akw-events{display:none}.akw.is-expanded .akw-status{flex-shrink:0}.akw.is-collapsed .akw-toolbar,.akw.is-collapsed .akw-screen-wrap,.akw.is-collapsed .akw-status,.akw.is-collapsed .akw-agent,.akw.is-collapsed .akw-events{display:none}.akw.is-collapsed .akw-head{border-bottom:0}
@media(max-width:600px){.akw{border-radius:18px;margin:10px 0}.akw-head{padding:6px}.akw-title{font-size:13px}.akw-head .akw-icon{width:36px;min-width:36px}.akw-mode{padding:0 9px;font-size:11px}.akw-heading{gap:5px}.akw-heading>svg{display:none}.akw-toolbar{padding:3px 5px;gap:0}.akw-toolbar .akw-icon{width:34px;min-width:34px}.akw-screen-wrap{height:300px;max-height:50dvh}.akw.is-expanded .akw-screen-wrap{max-height:none}.akw-goal-form{flex-wrap:wrap}.akw-goal{flex:1 1 100%}.akw-status{font-size:11px}.akw.is-expanded .akw-title{font-size:14px}}
@media(prefers-reduced-motion:reduce){.akw *{scroll-behavior:auto!important}}


/* chat-style-v24.css */
/* AK AI v24. App content only; native iOS chrome remains native. */
:root{color-scheme:dark;--ak-chat-bg:#000;--ak-chat-text:#f3f3f3;--ak-chat-muted:#a6a6a6;--ak-chat-bubble:#303030;--ak-chat-line:#242424;--ak-chat-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
html body,html body #root{background:var(--ak-chat-bg)!important;color:var(--ak-chat-text)!important;font-family:var(--ak-chat-font)!important;-webkit-font-smoothing:antialiased}
html body :is(.ak-main,.ak-sidebar,.ak-topbar,.conversation-stage,.message-stream){background:#000!important;color:var(--ak-chat-text)!important;background-image:none!important}
html body :is(.ak-main,.ak-sidebar,.akbp-panel,.akbp-peek,button,input,textarea,select,.ak-markdown,.ak-task-output){font-family:var(--ak-chat-font)!important}
html body .ak-topbar{border-bottom:1px solid #171717!important;min-height:64px;box-shadow:none!important}
html body .topbar-title strong{font-size:18px;font-weight:600;letter-spacing:-.2px}
html body .topbar-title>div>span{display:none!important}
html body .message-stream{font-size:17px!important;line-height:1.55!important;padding-top:24px!important}
html body :is(.ak-task-output,.ak-markdown,.message-content){font-size:17px!important;line-height:1.55!important;font-weight:400;color:#f3f3f3!important;max-height:none!important;overflow:visible!important;white-space:normal!important;letter-spacing:0;hyphens:none!important}
html body .ak-markdown :is(p,ul,ol){margin:0 0 1.25em!important}
html body .ak-markdown :is(strong,b){font-weight:600}
html body .ak-markdown :is(h1,h2,h3){font-weight:600;line-height:1.3;margin:1.5em 0 .7em}
html body .ak-markdown a{color:inherit!important;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:5px;overflow-wrap:anywhere}
html body .ak-markdown pre{overflow:auto!important;max-width:100%;padding:16px;background:#171717;border:1px solid #303030;border-radius:14px;white-space:pre!important}
html body .ak-markdown :is(code,pre){font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}
html body .ak-markdown table{display:block;max-width:100%;overflow:auto}
html body .ak-task-user{width:fit-content!important;max-width:88%!important;background:#303030!important;background-image:none!important;color:#f3f3f3!important;border:0!important;border-radius:24px!important;padding:12px 18px!important;box-shadow:none!important;justify-self:end;margin-bottom:28px}
html body .ak-task-user>span{display:none!important}
html body .ak-task-user p{font-size:17px!important;line-height:1.5!important;margin:0!important;color:inherit!important}
html body .ak-unified-task{gap:0!important;margin-bottom:30px!important;color:#f3f3f3!important}
html body .ak-task-result{min-width:0}
html body .ak-task-actions{border-top:0!important;padding:4px 0 0!important;gap:12px!important;flex-wrap:wrap}
html body .ak-task-action{background:transparent!important;color:#aaa!important;border:0!important;font:400 13px/1.4 var(--ak-chat-font)!important;padding:7px 0!important;box-shadow:none!important}
html body .ak-task-action:hover{color:#fff!important;text-decoration:underline}
html body .ak-task-head{color:#aaa!important;font-size:14px!important}
html body .ak-task-error{background:#231518!important;color:#ffb5bc!important;border-color:#633039!important}
html body .chat-search{background:#171717!important;border:1px solid #292929!important}
html body .chat-search input{color:#eee!important}
html body .chat-search input::placeholder{color:#999!important}
html body .ak-sidebar .chat-list button{color:#e7e7e7!important;font-size:15px!important;border-radius:10px!important}
html body .ak-sidebar .chat-list button:hover{background:#1d1d1d!important}
html body .composer.ak-unified-mounted{background:#191919!important;background-image:none!important;border:1px solid #333!important;border-radius:30px!important;box-shadow:0 1px 4px #0005!important;padding:0!important;margin-bottom:max(14px,env(safe-area-inset-bottom))!important;max-width:760px}
html body .ak-v61-composer{position:relative;display:grid!important;grid-template-columns:40px minmax(0,1fr)40px 40px;column-gap:4px;row-gap:0!important;padding:5px!important;align-items:center;min-width:0}
html body .ak-v61-composer .ak-composer-controls{display:contents!important}
html body #ak-v61-message{grid-column:2;grid-row:2;min-width:0;width:100%;height:auto!important;min-height:40px!important;max-height:160px!important;padding:9px 5px!important;margin:0;font-size:17px!important;line-height:24px!important;color:#f3f3f3!important;field-sizing:content}
html body #ak-v61-message::placeholder{color:#929292!important}
html body .ak-v61-composer :is(.ak-composer-button,.ak-send){display:flex!important;align-items:center;justify-content:center;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:50%!important;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;color:#f5f5f5!important;font-size:0!important;cursor:pointer}
html body .ak-v61-composer .attach{grid-column:1;grid-row:2}
html body #ak-v61-voice{grid-column:3;grid-row:2}
html body #ak-v61-send{grid-column:4;grid-row:2;background:#f3f3f3!important;color:#000!important}
html body #ak-v61-send:disabled{background:#a6a6a6!important;color:#242424!important;opacity:1!important;cursor:default}
html body #ak-v61-voice[data-active=true]{background:#422326!important;color:#ffb4be!important}
html body .ak-v61-composer :is(.attach b,.ak-composer-button b,.ak-composer-spacer,.ak-composer-foot){display:none!important}
html body .ak-v61-composer svg{width:24px!important;height:24px!important;flex-shrink:0}
html body .ak-v61-composer .attach>span{display:flex;align-items:center}
html body .ak-v61-composer :is(.ak-mode-select,[data-akbp-launch]){display:none!important}
html body .ak-v61-composer.ak-settings-open .ak-mode-select{display:flex!important;grid-column:1/4;grid-row:1;width:auto!important;min-width:0!important;background:#252525!important;color:#ddd!important;border:1px solid #363636!important;border-radius:18px!important;padding:4px 12px!important;margin:3px 0 8px!important}
html body .ak-v61-composer.ak-settings-open .ak-mode-select select{width:100%;min-width:0!important;font-size:14px!important;min-height:32px;color:#f3f3f3!important;background:transparent!important}
html body .ak-v61-composer.ak-settings-open [data-akbp-launch]{display:flex!important;grid-column:4;grid-row:1;margin-bottom:6px}
html body :is(#ak-v61-attachments,#ak-v61-parent,#ak-v61-notice){grid-column:1/-1;max-width:100%;min-width:0}
html body #ak-v61-attachments{grid-row:3}html body #ak-v61-attachments:empty{display:none}
html body #ak-v61-parent{grid-row:4}html body #ak-v61-notice{grid-row:5;margin:5px!important}
html body [hidden]{display:none!important}
html body .ak-style-options{display:flex!important;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #2a2a2a;background:#171717;color:#eee;border-radius:50%;width:42px;height:42px;cursor:pointer}
html body .ak-style-options[aria-expanded=true]{background:#333}
html body :is(.ak-style-options,button,label[role=button],select,textarea):focus-visible{outline:2px solid #d0d0d0!important;outline-offset:3px}
html body :is(.akbp-panel,.akbp-peek){background:#101010!important;color:#eee!important;border-color:#292929!important}
html body :is(.akbp-top,.akw-head,.akw-toolbar,.akw-agent){background:#171717!important;border-color:#303030!important;color:#eee!important}
@media(max-width:840px){
 html body .ak-topbar{min-height:64px!important;padding:10px 16px!important;gap:10px}
 html body .topbar-title{display:flex;gap:12px;min-width:0;flex:1}
 html body .topbar-title>div{min-width:0;flex:1;text-align:center}
 html body .topbar-title strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px!important}
 html body .mobile-menu{display:flex!important;flex-shrink:0;width:42px!important;height:42px!important;background:#171717!important;border:1px solid #2a2a2a!important;border-radius:50%!important;color:#eee!important}
 html body .message-stream{padding:20px 16px 14px!important}
 html body .ak-task-user{max-width:92%!important;margin-bottom:32px;padding:12px 17px!important}
 html body .composer.ak-unified-mounted{width:calc(100% - 28px)!important;margin-left:14px!important;margin-right:14px!important;align-self:end}
 html body .ak-task-action{font-size:13px!important}
 html body .ak-style-options{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){html body *{scroll-behavior:auto!important}}
html body .composer.ak-unified-mounted .attach>span{color:inherit!important}

