/* Kofer RC507 — public PWA install guide and owner invitation menu. Scoped to avoid altering Jannah or existing Kofer screens. */
.ks-install{--ki-ink:#173746;--ki-navy:#193d4c;--ki-orange:#ed6831;--ki-muted:#657b86;--ki-line:#dde7eb;--ki-soft:#f5f9fa;color:var(--ki-ink);font-family:inherit;overflow:clip;max-width:100%;margin:0 auto}
.ks-install *,.ks-install *::before,.ks-install *::after,.ks-owner-invite *{box-sizing:border-box}
.ks-install [hidden],.ks-owner-invite [hidden]{display:none!important}
.ks-install-shell{max-width:1220px;margin:auto;padding:0 20px}
.ks-install h1,.ks-install h2,.ks-install h3,.ks-install p{margin:0;font-family:inherit;color:inherit}
.ks-install a{text-decoration:none!important}
.ks-install a:focus-visible,.ks-install button:focus-visible,.ks-owner-invite a:focus-visible,.ks-owner-invite button:focus-visible,.ks-owner-invite summary:focus-visible{outline:3px solid #ec783c!important;outline-offset:3px}
.ks-install-hero{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:clamp(28px,5vw,80px);align-items:center;min-height:590px;padding:63px 0 50px}
.ks-install-intro{max-width:610px}
.ks-install-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.11em;font-weight:800;color:#a5502f;border:1px solid #f3d8c8;border-radius:100px;background:#fff4ed;padding:10px 14px;white-space:normal}
.ks-install-dot{display:inline-block;width:8px;height:8px;background:var(--ki-orange);border-radius:50%}
.ks-install h1{font-weight:850;font-size:clamp(43px,5.4vw,75px);letter-spacing:-.061em;line-height:1.07;margin:25px 0 22px}
.ks-install h1 em{font-style:normal;color:#dc6736}
.ks-install-lead{font-size:clamp(15px,1.35vw,18px);line-height:1.78;max-width:560px;color:#607683!important}
.ks-install-buttons{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:30px 0 16px}
.ks-install .ks-install-primary,.ks-install a.ks-install-primary,.ks-install button.ks-install-primary{appearance:none;border:1px solid #e5662f!important;color:#fff!important;background:linear-gradient(115deg,#f2783b,#e65c28)!important;min-height:53px;border-radius:13px;padding:14px 22px;display:inline-flex;justify-content:center;align-items:center;gap:12px;font:inherit;font-size:14px;font-weight:800;line-height:1.3;cursor:pointer;text-transform:none!important;box-shadow:0 8px 20px #de663125;transition:transform .18s ease,box-shadow .18s ease}
.ks-install .ks-install-primary:hover{transform:translateY(-2px);box-shadow:0 12px 25px #de66313b}
.ks-install .ks-install-primary:disabled{opacity:.7;cursor:default;transform:none}
.ks-install-btn-icon{display:grid;place-items:center;color:#fff;font-size:20px;line-height:1;border:1px solid #ffffff70;border-radius:7px;width:23px;height:23px}
.ks-install .ks-install-secondary{font-size:13px;font-weight:800;color:var(--ki-ink)!important;border-bottom:1px solid #b7c8ce;padding:10px 2px}
.ks-install .ks-install-secondary:hover{color:#b65127!important;border-bottom-color:#ca704d}
.ks-install-inline-status{font-size:12px;color:var(--ki-muted)!important;line-height:1.6;min-height:21px}
.ks-install-trust{display:flex;gap:10px 19px;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid var(--ki-line);color:#456e65;font-size:11px;font-weight:650}
.ks-install-visual{position:relative;min-width:0;display:grid;place-items:center;min-height:480px;padding:30px 24px}
.ks-install-halo{position:absolute;inset:9% 6% 8%;border-radius:44px;transform:rotate(-5deg);background:linear-gradient(140deg,#e8f3f2,#fae9df)}
.ks-install-device{width:258px;height:473px;background:#142f3a;border:7px solid #203c45;border-radius:38px;position:relative;z-index:1;box-shadow:0 25px 60px #193d4c38;transform:rotate(4deg);padding:8px;overflow:hidden}
.ks-install-device-top{position:absolute;top:13px;left:50%;transform:translateX(-50%);width:70px;height:18px;background:#112732;border-radius:15px;z-index:2;display:grid;place-items:center}
.ks-install-camera{width:7px;height:7px;background:#355461;border-radius:50%}
.ks-install-device-screen{height:100%;border-radius:27px;background:#f7f9fa;padding:33px 12px 10px;display:flex;flex-direction:column;gap:15px}
.ks-install-device-brand{display:flex;align-items:center;gap:9px;color:#183d4a;font-size:13px;font-weight:850;border-bottom:1px solid #e4ebec;padding-bottom:12px}
.ks-install-device-brand img{border-radius:10px;object-fit:cover}
.ks-install-device-brand span small{display:block;color:#718792;font-size:9px;line-height:1.6;font-weight:500}
.ks-install-device-brand i{margin-left:auto;color:#e87035;font-size:13px;font-style:normal}
.ks-install-device-heading{font-size:17px;font-weight:850;color:#1e404d;line-height:1.2;padding:3px}
.ks-install-device-heading small{display:block;font-size:10px;color:#75909a;font-weight:500;margin-top:6px}
.ks-install-device-stat{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ks-install-device-stat>div{border:1px solid #e2ebed;background:white;border-radius:12px;padding:13px 11px}
.ks-install-device-stat b{font-size:10px;color:#718b97;display:block;font-weight:650;white-space:nowrap}
.ks-install-device-stat strong{color:#193d4c;font-size:23px;display:block;margin-top:9px;line-height:1}
.ks-install-device-card{padding:14px;background:#e7f4f0;border:1px solid #d5eae5;border-radius:13px;display:flex;flex-direction:column;gap:7px}
.ks-install-device-card>span{font-size:8px;color:#26846d;letter-spacing:.1em;font-weight:800}
.ks-install-device-card strong{font-size:13px;color:#204f4b}
.ks-install-device-card small{font-size:9px;color:#5e8580}
.ks-install-simbar{display:flex;gap:5px;margin-top:9px}.ks-install-simbar i{display:block;height:5px;flex:1;border-radius:3px;background:#b1dacf}.ks-install-simbar i:last-child{background:#dbe4e2}
.ks-install-device-menu{margin-top:auto;padding:12px 5px 5px;border-top:1px solid #e4ecef;display:flex;justify-content:space-between;gap:5px;color:#295563}
.ks-install-device-menu span{display:flex;align-items:center;flex-direction:column;font-size:20px;gap:2px}.ks-install-device-menu small{font-size:8px;color:#6d8895}
.ks-install-floating{position:absolute;z-index:3;bottom:56px;right:-8px;display:flex;gap:11px;align-items:center;padding:13px 15px;border:1px solid #deeaeb;border-radius:14px;background:#fff;box-shadow:0 13px 30px #193d4c25;transform:rotate(-5deg)}
.ks-install-floating>span{background:#fff0e7;width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#c8693a;font-size:19px}
.ks-install-floating strong{display:block;font-size:11px;color:#234657}
.ks-install-floating small{display:block;font-size:9px;color:#738c97;margin-top:5px}
.ks-install-section-tag{font-size:10px;color:#b45e3c;letter-spacing:.14em;font-weight:850}
.ks-install-section-header{padding:30px 0 28px}.ks-install-section-header h2,.ks-install-guide-heading h2,.ks-install-bottom h2{font-size:clamp(31px,3.4vw,49px);letter-spacing:-.045em;line-height:1.12;font-weight:830;margin-top:13px}.ks-install-section-header h2 span{color:#d86433}
.ks-install-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:76px}
.ks-install-benefits article{border:1px solid var(--ki-line);border-radius:17px;background:#fff;padding:23px 19px;min-width:0;transition:box-shadow .2s,transform .2s}
.ks-install-benefits article>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid #dcebe8;background:#edf5f4;color:#297465;font-size:23px}
.ks-install-benefits h3{font-size:16px;font-weight:800;margin:20px 0 9px}.ks-install-benefits p{font-size:12px;line-height:1.7;color:#67808a!important}
@media(hover:hover){.ks-install-benefits article:hover{transform:translateY(-4px);box-shadow:0 12px 28px #193d4c11}}
.ks-install-guide{background:#f2f7f8;border:1px solid #e0eaed;border-radius:25px;padding:45px 48px 48px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(25px,5vw,80px);scroll-margin-top:35px}
.ks-install-guide-heading p{font-size:13px;line-height:1.75;color:var(--ki-muted)!important;max-width:310px;margin-top:20px}
.ks-install-platform{display:grid;grid-template-columns:1fr 1fr;padding:5px;background:#e7eef0;border:1px solid #d7e2e6;border-radius:12px;gap:4px;margin-bottom:21px}
.ks-install .ks-install-platform button{background:transparent!important;color:#59717e!important;border:0!important;border-radius:9px;padding:12px 15px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-transform:none!important;box-shadow:none!important}
.ks-install .ks-install-platform button[aria-pressed=true]{background:#fff!important;color:#183d4b!important;box-shadow:0 2px 8px #193d4c1c!important}
.ks-install-steps{display:flex;flex-direction:column;gap:12px}
.ks-install-steps>div{display:flex;align-items:flex-start;gap:14px;border:1px solid #e0e9ec;background:white;border-radius:12px;padding:14px 16px}
.ks-install-steps>div>span{font-weight:850;font-size:11px;background:#fff0e6;color:#bf6233;display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:10px}
.ks-install-steps p{flex:1;padding-top:2px}.ks-install-steps strong{font-size:13px;color:#214452;display:block;font-weight:800;line-height:1.45}.ks-install-steps small{display:block;font-size:11px;color:#6c838d;line-height:1.65;margin-top:5px}
.ks-install-help-note{margin-top:17px;font-size:11px;line-height:1.65;color:#547078;background:#e4f0ef;border-radius:10px;padding:15px}
.ks-install-bottom{margin:76px 0 20px;padding:38px 45px;background:#193d4c;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:28px;border-radius:22px}
.ks-install-bottom h2{font-size:clamp(25px,3vw,39px);color:#fff!important;margin:12px 0 13px}.ks-install-bottom p{font-size:13px;color:#b8cbd1!important}.ks-install-bottom .ks-install-section-tag{color:#ffad7b}
.ks-install-bottom>div:last-child{display:flex;flex-direction:column;align-items:center;gap:12px;flex:none}.ks-install a.ks-install-bottom-cta{background:#ee6b32!important;white-space:nowrap}
.ks-install a.ks-install-bottom-link{color:#c5dade!important;font-size:12px;font-weight:700}
.ks-install-share-line{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap;font-size:11px;color:#6b818c;padding:12px 0 45px}
.ks-install .ks-install-share-line button{border:1px solid #bfced4!important;border-radius:8px;background:#fff!important;padding:8px 11px;font:inherit;font-size:11px;font-weight:750;color:#25495a!important;cursor:pointer;text-transform:none!important}
.ks-owner-invite{position:relative;min-width:190px;font-size:12px;line-height:1.45;color:#254857}
.ks-owner-invite>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-width:154px;border:1px solid #b5cbd4;border-radius:9px;background:#f1f7f8;padding:9px 11px;color:#245668;font-size:12px;font-weight:750;cursor:pointer}
.ks-owner-invite>summary::-webkit-details-marker{display:none}.ks-owner-invite>summary::after{content:'⌄';margin-left:9px}.ks-owner-invite[open]>summary{background:#e5f1f3;border-color:#8eacb8}
.ks-owner-invite-menu{position:relative;z-index:10;margin-top:9px;max-width:300px;background:#fff;border:1px solid #c7d8dd;border-radius:12px;padding:15px;box-shadow:0 8px 22px #193d4c12;display:flex;flex-direction:column;gap:7px}
.ks-owner-invite-menu strong{font-size:13px;color:#1b404d}.ks-owner-invite-menu p{font-size:11px;color:#6b828b;margin:2px 0 7px;line-height:1.5}
.ks-owner-invite-menu a,.ks-owner-invite-menu button{width:100%;display:block;text-align:center;text-decoration:none!important;background:#f5f8f9!important;color:#245060!important;border:1px solid #dce7ea!important;border-radius:8px;padding:10px 12px;font:inherit!important;font-size:12px!important;font-weight:730!important;line-height:1.25!important;cursor:pointer;text-transform:none!important;box-shadow:none!important}
.ks-owner-invite-menu a:hover,.ks-owner-invite-menu button:hover{background:#fff1e8!important;border-color:#efb18d!important}
.ks-invite-feedback{color:#25765b;font-size:11px}
@media(max-width:950px){.ks-install-hero{gap:22px}.ks-install-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}.ks-install-guide{grid-template-columns:1fr;gap:25px}.ks-install-guide-heading p{max-width:530px}}
@media(max-width:700px){.ks-install-shell{padding:0 16px}.ks-install-hero{grid-template-columns:1fr;min-height:0;padding:36px 0}.ks-install h1{font-size:clamp(38px,10.5vw,57px)}.ks-install-lead{font-size:15px}.ks-install-visual{min-height:420px;padding:15px}.ks-install-device{transform:rotate(2deg) scale(.88)}.ks-install-floating{right:2%;bottom:39px}.ks-install-benefits{margin-bottom:46px}.ks-install-guide{padding:26px 18px;border-radius:17px}.ks-install-bottom{margin-top:44px;padding:29px 22px;flex-direction:column;align-items:flex-start}.ks-install-bottom>div:last-child{align-items:flex-start}}
@media(max-width:440px){.ks-install-hero{padding:30px 0}.ks-install-eyebrow{font-size:9px}.ks-install-buttons{align-items:stretch}.ks-install .ks-install-primary{width:100%}.ks-install .ks-install-secondary{text-align:center}.ks-install-trust{flex-direction:column}.ks-install-visual{min-height:360px}.ks-install-device{transform:scale(.77) rotate(3deg);transform-origin:center}.ks-install-floating{right:0;bottom:25px;padding:10px 11px}.ks-install-floating small{font-size:8px}.ks-install-benefits{grid-template-columns:1fr;gap:10px}.ks-install-benefits article{padding:20px}.ks-install-section-header h2,.ks-install-guide-heading h2{font-size:31px}.ks-install-guide{padding:22px 14px}.ks-install-steps>div{padding:12px}.ks-install-bottom{padding:26px 20px}.ks-install-bottom>div:last-child{width:100%}}
@media(prefers-reduced-motion:reduce){.ks-install *{transition:none!important}}

.ks-admin-install-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#eff6f7;border:1px solid #d5e4e9;padding:17px 19px;border-radius:13px;margin:0 0 18px;color:#224c5a}
.ks-admin-install-bar>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.ks-admin-install-bar strong{font-size:14px;font-weight:800}
.ks-admin-install-bar span{font-size:12px;line-height:1.55;color:#5f7984}
.ks-admin-install-bar a{color:#a84e28!important;font-size:12px;font-weight:800;text-decoration:none!important;white-space:normal}


/* RC508: choose a browser-based mail service; no system mail client is launched. */
.ks-owner-invite-email{display:block;width:100%;min-width:0}
.ks-owner-invite-menu .ks-owner-invite-email>summary{display:flex!important;align-items:center;justify-content:center;gap:8px;list-style:none;width:100%;min-height:39px;text-align:center;text-decoration:none!important;background:#f5f8f9!important;color:#245060!important;border:1px solid #dce7ea!important;border-radius:8px;padding:10px 12px;font:inherit!important;font-size:12px!important;font-weight:730!important;line-height:1.25!important;cursor:pointer;text-transform:none!important;box-shadow:none!important}
.ks-owner-invite-email>summary::-webkit-details-marker{display:none}
.ks-owner-invite-email>summary span{font-size:15px;line-height:10px;transition:transform .15s}
.ks-owner-invite-email[open]>summary span{transform:rotate(180deg)}
.ks-owner-invite-menu .ks-owner-invite-email>summary:hover,.ks-owner-invite-email[open]>summary{background:#fff1e8!important;border-color:#efb18d!important}
.ks-owner-invite-email-options{display:flex;flex-direction:column;gap:7px;margin-top:7px;padding:10px;background:#f1f6f8;border:1px solid #dbe6eb;border-radius:9px}
.ks-owner-invite-email-options .ks-owner-invite-email-hint{font-size:11px;line-height:1.5;color:#506f7c;margin-bottom:3px}
.ks-owner-invite-menu .ks-owner-invite-email-options a,.ks-owner-invite-menu .ks-owner-invite-email-options button{background:#fff!important}
.ks-owner-invite-email:focus-within>summary{outline:2px solid #e87b43;outline-offset:2px}


/* RC510: registration success with immediately available owner invitation. */
.ks.ks-dashboard .ks-owner-welcome{scroll-margin-top:24px;border:1.5px solid #b9d8cd;background:linear-gradient(150deg,#f0faf5,#ffffff 65%);border-radius:15px;padding:21px;margin:18px 0 25px;box-shadow:0 5px 22px rgba(18,82,61,.06);min-width:0}
.ks.ks-dashboard .ks-owner-welcome-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:17px}
.ks.ks-dashboard .ks-owner-welcome-check{flex:0 0 35px;height:35px;display:grid;place-items:center;background:#257659;border-radius:50%;color:#fff;font-weight:800;font-size:18px}
.ks.ks-dashboard .ks-owner-welcome-eyebrow{display:block;font-size:10px;font-weight:850;letter-spacing:1.1px;color:#237452;margin-bottom:6px}
.ks.ks-dashboard .ks-owner-welcome h3{font-size:20px;line-height:1.3;color:#193d4c;margin:0 0 10px}
.ks.ks-dashboard .ks-owner-welcome p{font-size:13px;color:#476776;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}
.ks.ks-dashboard .ks-owner-welcome p strong{font-weight:800;color:#254758}
.ks.ks-dashboard .ks-owner-welcome .ks-owner-invite--welcome{width:100%;max-width:540px;margin-left:48px}
.ks.ks-dashboard .ks-owner-welcome .ks-owner-invite--welcome>summary{width:100%;justify-content:space-between;background:#e4f3ed;border-color:#a8d1c1;font-size:13px;min-height:45px}
.ks.ks-dashboard .ks-owner-welcome .ks-owner-invite--welcome .ks-owner-invite-menu{max-width:none;box-shadow:0 5px 16px rgba(25,61,76,.07);border-color:#d5e6e0}
.ks.ks-dashboard .ks-owner-welcome .ks-owner-invite--welcome .ks-owner-invite-menu>a,.ks.ks-dashboard .ks-owner-welcome .ks-owner-invite--welcome .ks-owner-invite-menu>button{min-height:42px}
.ks.ks-dashboard .ks-admin-owner-next-step{font-size:12px;color:#536f7a;margin:12px 0 0}
@media(max-width:620px){.ks.ks-dashboard .ks-owner-welcome{padding:16px}.ks.ks-dashboard .ks-owner-welcome h3{font-size:18px}.ks.ks-dashboard .ks-owner-welcome .ks-owner-invite--welcome{margin-left:0;max-width:none}.ks.ks-dashboard .ks-owner-welcome-head{gap:10px}.ks.ks-dashboard .ks-owner-welcome-check{flex-basis:30px;height:30px}}

/* RC572 — An accessible, visible alternative when the browser cannot open
   a native PWA installation prompt (iOS, Samsung Internet, in-app browsers). */
.ks-install .ks-install-assist{margin:14px 0 20px;padding:17px 19px;border:1px solid #bfd4da;border-left:4px solid #ec6d32;border-radius:12px;background:#f4f9fa;color:#254755;box-shadow:0 4px 12px #12394a08;scroll-margin-top:25px}
.ks-install .ks-install-assist>strong{display:block;font-size:15px;font-weight:800;line-height:1.45;color:#193a49}
.ks-install .ks-install-assist ol{counter-reset:ks-install-step;list-style:none;padding:0;margin:12px 0 11px;display:grid;gap:9px}
.ks-install .ks-install-assist li{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.6;color:#31525f}
.ks-install .ks-install-assist li::before{counter-increment:ks-install-step;content:counter(ks-install-step);flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#dcebed;color:#214756;font-size:12px;font-weight:800}
.ks-install .ks-install-assist p{margin:6px 0 0;font-size:12px;line-height:1.65;color:#526f7c}
.ks-install .ks-install-assist:focus{outline:none}
@media(max-width:440px){.ks-install .ks-install-assist{padding:15px 14px;margin-top:14px}}

/* RC572: Make a manual install path unmistakable when the browser cannot prompt. */
.ks-install .ks-install-manual[hidden]{display:none!important}
.ks-install .ks-install-manual{margin:10px 0 16px;padding:16px 17px;background:#eef7f6;border:1px solid #b9ded6;border-left:4px solid #24856c;border-radius:12px;color:#193d4c;line-height:1.5}
.ks-install .ks-install-manual strong{display:block;font-weight:800;font-size:13px;color:#174e43}
.ks-install .ks-install-manual p{margin:7px 0 8px;color:#365e62;font-size:13px;line-height:1.6}
.ks-install .ks-install-manual a{font-weight:750;text-decoration:underline;color:#1b6170;font-size:12px}

/* RC574: Easy-to-read Brave guidance and one-tap copy without a false install claim. */
.ks-install .ks-install-manual-actions[hidden]{display:none!important}
.ks-install .ks-install-manual-actions{display:grid;grid-template-columns:1fr;gap:9px;margin:12px 0}
.ks-install .ks-install-manual-actions button{width:fit-content;max-width:100%;min-height:42px;padding:10px 15px;border:0;border-radius:10px;background:#165f55;color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.ks-install .ks-install-manual-actions button:focus-visible{outline:3px solid #eca679;outline-offset:3px}
.ks-install .ks-install-manual-actions input{width:100%;max-width:420px;box-sizing:border-box;border:1px solid #b9ded6;border-radius:8px;background:#fff;padding:9px;font-size:12px;color:#294e56}
.ks-install .ks-install-manual-actions span{font-size:12px;font-weight:700;color:#165f55;line-height:1.4}
@media(max-width:440px){.ks-install .ks-install-manual-actions button{width:100%}}
