/* Edition: what a single-account site adds on top of the modules. */

/* ---------- Logo sizes (square and stacked logos need more height) ---------- */
.kh-side-brand .kh-logo img{max-height:52px;max-width:190px}
.khp-brand .kh-logo img{max-height:46px;max-width:200px}
.kh-login-brand-top .kh-logo img{max-height:72px;max-width:240px}
.khp-foot-mark .kh-logo img{max-height:64px;max-width:220px}
.kh-acct.is-static{cursor:default}
.kh-acct.is-static:hover{background:rgba(255,255,255,.07)}

/* ---------- Public home ---------- */
.khe-hero{background:radial-gradient(1200px 400px at 85% -10%,rgba(255,255,255,.10),transparent 60%),linear-gradient(160deg,var(--brand) 0%,var(--brand-ink) 100%);color:#fff}
.khe-hero-in{max-width:1200px;margin:0 auto;padding:64px 24px 56px}
.khe-hero h1{color:#fff;font-size:46px;line-height:1.08;letter-spacing:-.035em;font-weight:800;max-width:780px}
.khe-hero-intro{font-size:16.5px;color:rgba(255,255,255,.82);max-width:680px;margin-top:16px;line-height:1.6}
.khe-hero-search{display:flex;gap:10px;margin-top:28px;max-width:620px}
.khe-hero-search label{flex:1;display:flex;align-items:center;gap:10px;background:#fff;border-radius:11px;padding:0 14px;color:var(--muted);min-height:48px}
.khe-hero-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:15px;color:var(--ink)}
.khe-hero-search .kh-btn-primary{background:#fff;color:var(--brand);border-color:#fff;min-height:48px}
.khe-hero-search .kh-btn-primary:hover{background:rgba(255,255,255,.9)}
.khe-figs{display:flex;flex-wrap:wrap;gap:14px 44px;margin-top:34px;padding-top:26px;border-top:1px solid rgba(255,255,255,.14)}
.khe-fig{display:flex;flex-direction:column;gap:2px}
.khe-fig b{font-size:30px;font-weight:800;letter-spacing:-.02em;color:#fff;line-height:1.1}
.khe-fig span{font-size:13.5px;color:rgba(255,255,255,.72)}

.khe-sec{margin-top:8px}
.khe-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.khe-sec-head h2{font-size:22px;letter-spacing:-.02em}

.khe-sub{margin-top:48px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:32px;display:grid;grid-template-columns:1fr 1.15fr;gap:32px;align-items:center;box-shadow:var(--sh-1)}
.khe-sub-text h2{font-size:22px;letter-spacing:-.02em}
.khe-sub-text p{margin-top:8px;color:var(--ink-2);font-size:15px;line-height:1.55}
.khe-sub-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;position:relative}
.khe-sub-form .kh-btn{min-height:40px}
.khe-sub-err{grid-column:1/-1;color:var(--bad);font-weight:600;font-size:13px}
.khe-sub-done{display:flex;align-items:center;gap:10px;color:var(--good);font-weight:650;font-size:15px}
.khe-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* ---------- Footer ---------- */
.khe-foot-in{max-width:1200px;margin:0 auto;padding:48px 24px 32px;display:grid;grid-template-columns:1.7fr .8fr 1.2fr;gap:40px}
.khe-foot-brand h3{color:#fff;font-size:17px;margin-top:18px;letter-spacing:-.01em}
.khe-foot-brand p{margin-top:8px;font-size:14px;line-height:1.6;color:rgba(255,255,255,.72);max-width:420px}
.khe-social{display:flex;gap:8px;margin-top:18px}
.khe-social a{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.09);color:#fff;transition:background .12s}
.khe-social a:hover{background:rgba(255,255,255,.2);color:#fff}
.khe-foot-col{display:flex;flex-direction:column;gap:10px;font-size:13.5px}
.khe-foot-col h4{color:#fff;font-size:13px;letter-spacing:.02em;margin-bottom:4px}
.khe-foot-col a,.khe-foot-col span{color:rgba(255,255,255,.72)}
.khe-foot-col a:hover{color:#fff}
.khe-foot-contact a,.khe-foot-contact span{display:flex;align-items:flex-start;gap:9px;line-height:1.45}
.khe-foot-contact .kh-icon{margin-top:3px;opacity:.75}
.khe-foot-base{align-items:center}
.khe-powered a{color:rgba(255,255,255,.78);font-weight:650}
.khe-powered a:hover{color:#fff}

/* ---------- Set-password gate and welcome page ---------- */
.khe-gate{position:fixed;inset:0;z-index:900;background:rgba(28,19,32,.55);backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px;overflow:auto}
.khe-gate.is-page{position:static;min-height:100vh;background:var(--bg);backdrop-filter:none}
.khe-gate-card{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-3);padding:28px;display:flex;flex-direction:column;gap:14px}
.khe-gate.is-page .khe-gate-card{box-shadow:var(--sh-2)}
.khe-gate-card .kh-logo img{max-height:56px;max-width:200px}
.khe-gate-card h2{font-size:20px;letter-spacing:-.02em;margin-top:4px}
.khe-gate-out{align-self:flex-start;background:none;border:0;padding:0;cursor:pointer;font-size:13px;color:var(--muted)}
.khe-gate-out:hover{color:var(--ink)}
.khe-narrow{max-width:400px}

/* ---------- Switch person ---------- */
/* In the sidebar, above Settings, so it never covers a button of the page. */
.khe-sw{position:fixed;left:12px;bottom:118px;width:228px;z-index:800;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.khe-sw-pill{justify-content:center}
.khe-sw-panel{width:290px}
.khe-sw-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(0,0,0,.28);color:#fff;font-size:13px;font-weight:650;cursor:pointer;box-shadow:var(--sh-3)}
.khe-sw-pill:hover{background:rgba(0,0,0,.42)}
.khe-sw-dot{width:8px;height:8px;border-radius:50%;background:#3ddc97;box-shadow:0 0 0 3px rgba(61,220,151,.25)}
.khe-sw-panel{width:290px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-3);overflow:hidden}
.khe-sw-head{padding:14px 16px 10px;display:flex;flex-direction:column;gap:2px;border-bottom:1px solid var(--line)}
.khe-sw-head b{font-size:14px}
.khe-sw-head span{font-size:12.5px;color:var(--muted)}
.khe-sw-list{padding:6px;display:flex;flex-direction:column;gap:2px}
.khe-sw-item{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:none;border-radius:9px;text-align:left;cursor:pointer;color:var(--ink)}
.khe-sw-item:hover{background:var(--hover)}
.khe-sw-item.is-on{background:var(--sunk);cursor:default}
.khe-sw-item.is-back{color:var(--brand-600)}
.khe-sw-back{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--sunk);flex:none}
.khe-sw-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.khe-sw-txt b{font-size:13.5px;font-weight:650}
.khe-sw-txt small{font-size:12px;color:var(--muted)}

/* ---------- Settings ---------- */
.khe-rows{display:flex;flex-direction:column;gap:8px;margin:6px 0 10px}
.khe-row{display:grid;grid-template-columns:140px 1fr auto;gap:8px;align-items:center}
.khe-row.is-cat{grid-template-columns:1fr 90px 96px}
.khe-row.is-cat>:last-child{justify-self:end}
.khe-row-fixed{font-size:12px;color:var(--muted);font-weight:600}
.khe-add{grid-template-columns:1fr auto;margin-top:6px}
.khe-savebar .kh-card-foot{margin-top:0;border-top:0;padding-top:0}
td.kh-team-acts{text-align:right;width:1%;white-space:nowrap}

@media (max-width:900px){
  .khe-sw{left:auto;right:12px;bottom:76px;width:auto;align-items:flex-end}
  .khe-hero h1{font-size:34px}
  .khe-hero-in{padding:44px 20px 40px}
  .khe-sub{grid-template-columns:1fr;padding:22px;gap:18px}
  .khe-foot-in{grid-template-columns:1fr 1fr;gap:28px}
  .khe-foot-brand{grid-column:1/-1}
}
@media (max-width:600px){
  .khe-hero-search{flex-direction:column}
  .khe-sub-form{grid-template-columns:1fr}
  .khe-foot-in{grid-template-columns:1fr}
  .khe-fig b{font-size:24px}
  .khe-row{grid-template-columns:90px 1fr auto}
  .khe-row.is-cat{grid-template-columns:1fr auto auto}
}
