:root{--ink:#0c263b;--green:#00776e;--dark:#09263d;--paper:#fffdf7;--page:#f5f0e7;--line:#dbd6ca;--muted:#405567;--gold:#f2d49a}
html body{background:linear-gradient(130deg,#f8f3e8,#e4efeb);color:var(--ink)}
body>.shell>aside{background:#0c2940;color:#fff}
body .primary{background:#00695f;color:#fff}
.kilos-intro{color:#31566a;margin-block:0 .5rem}
.kilos-packs{display:flex;gap:1rem;justify-content:center;margin:.65rem auto}
.kilos-packs img{height:92px;width:auto;object-fit:contain}
.kilos-modal{color:var(--ink);background:var(--paper);border:1px solid #b9cbc5;border-radius:18px;padding:1.2rem;width:min(650px,94vw);max-height:85vh}
.kilos-modal::backdrop{background:#0c263b99}
.kilos-modal button,.kilos-launch button{background:#00695f;color:white;border:0;border-radius:8px;padding:.55rem .9rem;cursor:pointer}
.kilos-launch{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem}
.kilos-modal article{padding:.5rem;border-bottom:1px solid #dbd6ca;overflow-wrap:anywhere}
.kilos-modal textarea{width:100%;margin-top:1rem}
/* Kilos portal layout */
body[data-tab]{grid-template-columns:minmax(350px,1fr) minmax(400px,1.2fr);max-width:1440px;margin:auto;gap:clamp(20px,4vw,64px);padding:clamp(16px,4vw,58px);align-items:center}
body[data-tab] .kilos-entry-card{min-height:0;background:#fffdf7;border:1px solid #ded5c4;border-radius:24px;padding:clamp(24px,4vw,48px);box-shadow:0 18px 50px #10283d15}
body[data-tab] .logo{color:#00695f}
body[data-tab] .logo img{width:42px}
body[data-tab] .kilos-entry-card h1{color:#0c263b;font-size:clamp(26px,4vw,43px);line-height:1.35}
body[data-tab] .kilos-entry-card button{background:#00695f;color:white}
body[data-tab="register"] .kilos-entry-card form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-tab="register"] .kilos-entry-card form :is(fieldset,button,.notice){grid-column:1/-1}
.kilos-entry-hero,.kilos-campaign,.kilos-manager-banner{position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(135deg,#0a2238,#123b53 65%,#00796d);color:#fffdf7}
.kilos-entry-hero::before,.kilos-campaign::before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-conic-gradient(from 45deg,#f2d49a24 0% 25%,transparent 0% 50%) 50% / 28px 28px;mask-image:linear-gradient(120deg,#000,transparent 54%)}
.kilos-entry-hero{text-align:center;min-height:550px;padding:46px 20px;display:grid;align-content:center}
.kilos-entry-hero h2{margin:.2em 0 0;font-size:clamp(30px,4.5vw,56px);color:inherit}
.kilos-eyebrow{font:800 14px/1.4 system-ui;letter-spacing:.24em;color:#f2d49a}
.kilos-entry-hero .kilos-packs{gap:32px;margin:24px auto}
.kilos-entry-hero .kilos-packs img{height:clamp(150px,20vw,270px);filter:drop-shadow(0 16px 14px #001a26a0)}
body .shell{max-width:1480px}
body .shell main{background:#f8f5ee}
body .shell aside .menu a[aria-current=page]{background:#00796d;color:white}
body .shell :is(.panel,.product,.quest){border-color:#d9e4de}
.kilos-campaign{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;padding:16px clamp(16px,4vw,50px);min-height:146px}
.kilos-campaign strong,.kilos-manager-banner strong{display:block;font-size:clamp(20px,3vw,34px)}
.kilos-campaign .kilos-packs{margin:0;gap:16px}
.kilos-campaign .kilos-packs img{height:95px}
.kilos-manager-banner{margin-bottom:20px;padding:18px 24px}
.kilos-shortcuts,.kilos-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.kilos-shortcuts a,.kilos-tabs a{display:block;background:#fffdf7;color:#0c263b;border:1px solid #cddad3;border-radius:14px;padding:16px;text-decoration:none}
.kilos-shortcuts a span{display:block;color:#405567;font-size:.87rem}
.kilos-tabs a{text-align:center;padding:10px}
#daily:not([hidden]) .kilos-tabs a[href="#daily"],#weekly:not([hidden]) .kilos-tabs a[href="#weekly"],#answer:not([hidden]) .kilos-tabs a[href="#answer"]{background:#00695f;color:#fff}
body.map-mode .shell main .missions{display:block;min-height:0}
body.map-mode .shell main .mission-float{position:relative;inset:auto;width:auto;max-width:none;transform:none;background:#fffdf7}
body.map-mode .shell main .map{display:none}
body.map-mode .shell main .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.map-mode .shell main .quest{display:grid;grid-template-columns:1fr;align-content:start;text-align:right;padding:15px;background:#fff}
body.map-mode .shell main .quest img{height:65px;width:65px;object-fit:contain}
.kilos-bottom{display:none}
@media(max-width:800px){
 body[data-tab]{grid-template-columns:1fr}
 body[data-tab] .kilos-entry-hero{grid-row:1;min-height:0;padding:22px}
 .kilos-entry-hero .kilos-packs img{height:100px}
 body.map-mode .shell main .cards,.kilos-shortcuts{grid-template-columns:1fr}
 .kilos-bottom{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;z-index:30;background:#09263d;padding:8px 6px max(8px,env(safe-area-inset-bottom));gap:3px}
 .kilos-bottom :is(a,button){color:white;background:transparent;border:0;padding:7px 0;text-align:center;text-decoration:none;font:inherit;font-size:.72rem}
 body:has(.kilos-bottom) .shell main{padding-bottom:74px}
}
.kilos-more-link{display:block;padding:10px;border-bottom:1px solid #d9e4de;color:#09263d}
