
/* Scoped consent sheet: one scroll area, independent of legacy popup overrides. */
@layer knConsentSheet {
 .kn-auth.kn-consent-modal{
  top:50%!important;left:50%!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;width:min(560px,calc(100vw - 24px))!important;
  max-height:calc(100dvh - 40px)!important;overflow:auto!important;
  overscroll-behavior:contain;scroll-padding:20px;
  padding:24px!important;border:1px solid #343b3e!important;border-radius:18px!important;
  background:#080a0a!important;color:#edf4f5!important;text-align:left!important;
  box-shadow:0 16px 64px #0009!important;
 }
 .kn-consent-modal .kn-auth-handle,.kn-consent-modal .kn-auth-icon{display:none!important}
 .kn-consent-modal h2{font:600 22px/1.25 system-ui!important;margin:0 0 8px!important;color:#edf4f5!important}
 .kn-consent-modal .kn-auth-sub{font:400 14px/1.5 system-ui!important;color:#b7c1c4!important;margin:0 0 20px!important}
 .kn-consent-modal .kn-consent-body{max-height:none!important;overflow:visible!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important}
 .kn-consent-modal .kn-consent-body h3{font:600 14px/1.4 system-ui!important;color:#a5dbc4!important;margin:18px 0 6px!important}
 .kn-consent-modal .kn-consent-body p,.kn-consent-modal .kn-consent-ack{font:400 14px/1.6 system-ui!important;color:#d3dada!important;margin:0 0 10px!important}
 .kn-consent-modal a,.kn-consent-modal .kn-auth-link{color:#a5dbc4!important}
 .kn-consent-modal form{border-top:1px solid #343b3e!important;margin:20px 0 0!important;padding-top:18px!important}
 .kn-consent-modal .kn-auth-check{display:flex!important;align-items:flex-start!important;gap:12px!important;font:400 14px/1.5 system-ui!important;margin:16px 0!important;min-height:44px!important}
 .kn-consent-modal .kn-auth-check span{color:#edf4f5!important}
 .kn-consent-modal .kn-auth-check input{flex:0 0 20px!important;width:20px!important;height:20px!important;margin:2px 0 0!important;accent-color:#83d7b2!important}
 .kn-consent-modal .kn-consent-foot{font:400 12px/1.5 system-ui!important;color:#aebabb!important;margin:12px 0 16px!important}
 .kn-consent-modal .kn-auth-primary{background:#a5dbc4!important;color:#071b13!important;border:0!important;border-radius:10px!important;font:600 15px/1.4 system-ui!important;padding:13px 16px!important;min-height:48px!important;margin-top:8px!important}
 .kn-consent-modal .kn-auth-primary:disabled{background:#242b28!important;color:#95a29c!important;opacity:1!important}
 .kn-consent-modal .kn-auth-switch{text-align:center!important;margin:16px 0 0!important;font:400 13px/1.5 system-ui!important}
 @media(max-width:600px){.kn-auth.kn-consent-modal{padding:20px!important;max-height:calc(100dvh - 32px)!important}}
}
/* Sign-in / sign-up / consent dialogs and account controls (auth.js).
   Colours follow the existing beta sheet so it reads as one product. */

.kn-auth-backdrop{position:fixed;inset:0;background:#020e1bbb;z-index:120}
.kn-auth{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 28px));max-height:min(92dvh,760px);overflow:auto;z-index:121;background:#102b44;border:1px solid #4b738c;border-radius:20px;box-shadow:0 18px 60px #000a;padding:18px 24px 22px;box-sizing:border-box;color:#eef9fc;text-align:center;font-family:inherit}
.kn-auth[hidden],.kn-auth-backdrop[hidden]{display:none!important}
body.kn-auth-open{overflow:hidden}
.kn-auth-handle{display:none;width:42px;height:5px;background:#628398;border-radius:99px;margin:0 auto 14px}
.kn-auth-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#d8e9f1;font-size:26px;line-height:1;min-width:38px;min-height:38px;cursor:pointer;border-radius:10px}
.kn-auth-close:hover{background:#ffffff12}
.kn-auth-icon{font-size:27px;color:#63e1ae;margin-top:4px}
.kn-auth h2{font-size:21px;margin:8px 0 6px;letter-spacing:-.01em}
.kn-auth-sub{font-size:13px;line-height:1.55;color:#bcd3e0;margin:0 0 4px}
.kn-auth-sub strong{color:#eef9fc;word-break:break-all}
.kn-auth form{text-align:left;margin-top:14px}
.kn-auth label,.kn-auth legend{font-size:12px;font-weight:700;color:#d5e9f3;display:block;margin:12px 0 6px}
.kn-auth input[type=text],.kn-auth input[type=email],.kn-auth input[type=password]{width:100%;box-sizing:border-box;background:#071c30;color:#fff;border:1px solid #6b93a8;border-radius:10px;padding:12px 13px;font:inherit;font-size:15px}
.kn-auth input:focus-visible,.kn-auth button:focus-visible{outline:2px solid #75dfb1;outline-offset:2px}
.kn-auth input::placeholder{color:#7f9bab}

.kn-auth-primary{width:100%;background:#62d7a9;color:#082d2c;border:0;border-radius:11px;padding:13px;font:inherit;font-weight:800;font-size:15px;cursor:pointer;margin-top:10px}
.kn-auth-primary:hover:not(:disabled){background:#78e2b8}
.kn-auth-secondary{width:100%;background:transparent;color:#d7ecf4;border:1px solid #4b738c;border-radius:11px;padding:12px;font:inherit;font-weight:700;cursor:pointer;margin-top:10px}
.kn-auth button:disabled{opacity:.6;cursor:default}
.kn-auth-link{background:none;border:0;padding:0;color:#7fe0bd;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.kn-auth-forgot{display:block;margin:8px 0 0 auto;font-size:12px}
.kn-auth-switch{font-size:13px;color:#bcd3e0;margin:16px 0 0}
.kn-auth-error{color:#ffc4ba;font-size:13px;line-height:1.45;min-height:0;margin:8px 0 0}
.kn-auth-error:empty,.kn-auth-status:empty{display:none}
.kn-auth-status{color:#9fe9c8;font-size:13px;line-height:1.45;margin:8px 0 0}
.kn-auth>.kn-auth-error,.kn-auth>.kn-auth-status{text-align:center}

.kn-auth-social{display:grid;gap:10px;margin-top:16px}
.kn-auth-provider{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;background:#fff;color:#1d2a33;border:0;border-radius:11px;padding:12px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.kn-auth-provider[data-provider=apple]{background:#000;color:#fff;border:1px solid #4b738c}
.kn-auth-divider{display:flex;align-items:center;gap:12px;color:#8fb0c1;font-size:12px;margin:16px 0 0}
.kn-auth-divider::before,.kn-auth-divider::after{content:"";flex:1;height:1px;background:#33566b}

.kn-auth-gender{border:0;padding:0;margin:12px 0 0}
.kn-auth-gender legend{padding:0;margin-top:0}
.kn-auth-gender label{display:inline-block;margin:0 6px 6px 0;font-weight:600}
.kn-auth-gender input{position:absolute;opacity:0;pointer-events:none}
.kn-auth-gender span{display:inline-block;padding:8px 13px;border:1px solid #4b738c;border-radius:99px;background:#071c30;color:#d5e9f3;cursor:pointer;font-size:13px}
.kn-auth-gender input:checked+span{background:#62d7a9;border-color:#62d7a9;color:#082d2c}
.kn-auth-gender input:focus-visible+span{outline:2px solid #75dfb1;outline-offset:2px}

.kn-consent-body{text-align:left;margin-top:12px;max-height:38dvh;overflow:auto;background:#0b2236;border:1px solid #29495b;border-radius:12px;padding:4px 14px 10px}
.kn-consent-body h3{font-size:13px;color:#75dfb1;margin:14px 0 4px}
.kn-consent-body p{font-size:12.5px;line-height:1.55;color:#cfe2ec;margin:0 0 6px}
.kn-consent-legal a{color:#7fe0bd}
.kn-consent-ack{font-size:12.5px;line-height:1.5;color:#d5e9f3;margin:0 0 6px}
.kn-consent-foot{font-size:11px;line-height:1.5;color:#8fb0c1;margin:8px 0 0}
.kn-auth .kn-auth-check{display:flex;gap:10px;align-items:flex-start;font-weight:500;font-size:12.5px;line-height:1.5;color:#e1f0f6;cursor:pointer;margin:10px 0 0}
.kn-auth-check input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:#62d7a9}

#knRecaptcha{position:fixed;bottom:0;right:0;z-index:130}

@media(max-width:600px){
  .kn-auth{top:auto;bottom:0;transform:translateX(-50%);width:100%;max-height:94dvh;border-radius:22px 22px 0 0;padding:14px 20px calc(20px + env(safe-area-inset-bottom))}
  .kn-auth-handle{display:block}
}

/* Header account button: shares grid column 3 with the chat-settings
   button, which moves left to make room. */
.app-header .kn-account{grid-column:3;grid-row:1;justify-self:end;position:relative;z-index:31}
.app-header:has(.kn-account) .header-chat-settings{margin-right:44px!important}
.app-header:has(.kn-account) .header-store-badges{margin-right:52px}
/* With a feature panel open the header is too narrow for the badges. */
body.mobile-feature-panel-open .app-header:has(.kn-account) .header-store-badges{display:none!important}
.kn-account-btn{width:34px;height:34px;border-radius:50%;border:1px solid #47778a;background:#163c52;color:#a7edcf;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;overflow:hidden;font:inherit;font-weight:800;font-size:15px}
.kn-account-btn:hover{border-color:#75dfb1}
.kn-account-btn img{width:100%;height:100%;object-fit:cover}
.kn-account-menu{position:absolute;right:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 20px);background:#102b44;border:1px solid #4b738c;border-radius:12px;box-shadow:0 12px 40px #0008;padding:6px;z-index:95;text-align:left}
.kn-account-menu[hidden]{display:none!important}
.kn-account-who{padding:8px 10px 10px;border-bottom:1px solid #29495b;margin-bottom:4px;display:grid;gap:2px}
.kn-account-who strong{font-size:14px;color:#eef9fc}
.kn-account-who span{font-size:12px;color:#9fb8c6;overflow:hidden;text-overflow:ellipsis}
.kn-account-menu button{width:100%;text-align:left;background:transparent;border:0;color:#e1f0f6;font:inherit;font-size:14px;padding:9px 10px;border-radius:8px;cursor:pointer}
.kn-account-menu button:hover{background:#ffffff12}
@media(max-width:800px){body.mobile-sidebar-open .app-header .kn-account,body.mobile-feature-panel-open .app-header .kn-account{display:none!important}}

/* Sidebar account block, above the legal footer */
.kn-sidebar-account{flex:none;margin:0 8px;padding:12px 6px;border-top:1px solid #29495b;display:grid;gap:8px}
.kn-sidebar-account p{margin:0;font-size:11.5px;line-height:1.45;color:#9fb8c6;text-align:center}
.kn-sidebar-account button{width:100%!important;border-radius:10px!important;padding:9px!important;font:inherit;font-size:13px!important;font-weight:700!important;cursor:pointer;text-align:center!important;justify-content:center!important}
.kn-sidebar-signin{background:#62d7a9!important;color:#082d2c!important;border:0!important}
.kn-sidebar-signup,.kn-sidebar-signout{background:transparent!important;color:#d7ecf4!important;border:1px solid #4b738c!important}
.kn-sidebar-who{display:flex;align-items:center;gap:10px;min-width:0}
.kn-sidebar-who>span:last-child{display:grid;min-width:0}
.kn-sidebar-who strong{font-size:13px;color:#eef9fc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kn-sidebar-who small{font-size:11px;color:#9fb8c6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kn-sidebar-avatar{flex:none;width:32px;height:32px;border-radius:50%;background:#163c52;border:1px solid #47778a;color:#a7edcf;display:inline-flex;align-items:center;justify-content:center;font-weight:800}

/* Account option in the guest chat-limit sheet */
.beta-sheet-signin{display:block;width:100%;margin-top:10px;background:transparent;color:#eaf7f8;border:1px solid #62d7a9;border-radius:11px;padding:12px;font:inherit;font-weight:700;cursor:pointer}
.beta-sheet-signin:hover{background:#62d7a91a}

/* Minimal account initial at the far right of the website header. */
.app-header:has(.kn-account){padding-right:205px!important}
.app-header .kn-account{position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;z-index:35!important;margin:0!important}
.app-header .kn-account-btn,.app-header .kn-account-btn:hover{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;width:34px!important;height:34px!important;color:#a7edcf!important}
.app-header .kn-account-btn:focus-visible{outline:2px solid #75dfb1!important;outline-offset:2px!important}
.app-header:has(.kn-account) .research-header-nav{right:54px!important}
.app-header:has(.kn-account) .header-chat-settings{margin-right:0!important}
@media(max-width:760px){.app-header:has(.kn-account){padding-right:145px!important}.app-header:has(.kn-account) .research-header-nav{right:42px!important}.app-header .kn-account{right:4px!important}}

/* Circular outline for the signed-in initial / account button. */
.app-header .kn-account-btn,.app-header .kn-account-btn:hover{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:1px solid #75dfb1!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#a7edcf!important}
.app-header .kn-account-btn:focus-visible{outline:2px solid #75dfb1!important;outline-offset:3px!important}

/* The feature sidebar supplies signup's header, width and scrolling. */
#panelBody > .kn-auth[role="region"] {
 position:static!important;inset:auto!important;transform:none!important;
 width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;
 overflow:visible!important;margin:0!important;padding:4px 0 16px!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
}

/* Adapt to the width of the resizable panel, including on a desktop. */
#panelBody > .kn-auth[role="region"]{container:signup / inline-size;text-align:left}
#panelBody .kn-signup-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px 16px;margin:10px 0 0}
#panelBody .kn-signup-grid > :not(.kn-signup-field){grid-column:1/-1;margin:0}
#panelBody .kn-signup-field{display:grid;align-content:start;gap:4px;min-width:0}
#panelBody .kn-signup-field label{margin:0;font-size:13px;line-height:1.3}
#panelBody .kn-signup-field input{width:100%;min-width:0;box-sizing:border-box;margin:0;padding:8px 12px;min-height:40px;border-radius:8px;font-size:16px}
#panelBody .kn-auth[role="region"] .kn-auth-social{margin:0}
#panelBody .kn-auth[role="region"] .kn-auth-divider{margin:8px 0 0}
#panelBody .kn-auth[role="region"] .kn-auth-switch{margin:10px 0 0;text-align:left}
#panelBody .kn-signup-grid .kn-auth-sub{font-size:12px;line-height:1.4;text-align:left}
@container signup (min-width:450px){
 #panelBody .kn-signup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@layer knSignupControls{
 #panelBody .kn-signup-grid .kn-auth-primary{background:#97e1c0!important;color:#0a2018!important;border:0!important;border-radius:8px!important;min-height:42px;padding:8px 14px}
 #panelBody .kn-auth[role="region"] .kn-auth-provider{background:#182021!important;border:1px solid #465251!important;border-radius:8px!important;min-height:42px;padding:8px 14px}
 #panelBody .kn-signup-grid .kn-auth-sub{color:#b9c7c3!important}
}
