/* Kindyra OS accounts: header button, sign-in, share sheet and the /account/ page.
   Self-contained colours so it works on the homepage and on the generated pages. */
/* The hidden attribute must win over component display rules. */
.kos-a [hidden]{display:none!important}
.kos-a{--k-ink:#0B0F1C;--k-bone:#F6F4EE;--k-bone2:#EDEAE0;--k-text:#141821;--k-muted:#5A6270;--k-line:#DCD9D0;--k-jade:#159D74;--k-jade-d:#0C7558;--k-jade-s:#E6F4EE;--k-red:#9E2B28;--k-amber:#B7791F}

/* ---------- header ---------- */
.kos-hdr{display:inline-flex;align-items:center}
.kos-signin{font:inherit;font-size:14px;font-weight:500;background:none;border:1px solid currentColor;border-radius:100px;padding:7px 15px;cursor:pointer;line-height:1;opacity:.9;white-space:nowrap}
.kos-signin:hover{opacity:1}
#nav .kos-signin{color:var(--bone,#F6F4EE)}
#nav.on-light .kos-signin{color:var(--text-ink,#141821)}
.sub-links .kos-signin{color:var(--text,#141821);border-color:var(--line,#DCD9D0)}
.kos-av{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;overflow:hidden;background:#0C7558;color:#fff;font-weight:700;font-size:15px;text-decoration:none;border:2px solid rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(20,24,33,.12);flex:none}
.kos-av img{width:100%;height:100%;object-fit:cover;display:block}
.kos-av:focus-visible,.kos-signin:focus-visible{outline:2px solid #159D74;outline-offset:2px}

/* ---------- modal ---------- */
.kos-modal{margin:auto;border:0;padding:0;border-radius:22px;max-width:440px;width:calc(100% - 32px);background:#fff;color:#141821;box-shadow:0 40px 120px -30px rgba(11,15,28,.55)}
.kos-modal::backdrop{background:rgba(11,15,28,.55);backdrop-filter:blur(3px)}
.kos-modal .kos-m-in{padding:30px 28px 26px;position:relative}
.kos-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:0;background:#F6F4EE;font-size:20px;line-height:1;cursor:pointer;color:#141821}

/* ---------- inline sign-in ---------- */
.kos-si{font-family:'Instrument Sans',system-ui,sans-serif;color:#141821}
.kos-si h3{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:23px;line-height:1.2;letter-spacing:-.01em;margin:0 0 8px}
.kos-si p{margin:0 0 14px;font-size:15px;line-height:1.55;color:#5A6270}
.kos-si p b{color:#141821}
.kos-si ul.kos-perks{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:7px}
.kos-si ul.kos-perks li{font-size:14.5px;padding-left:24px;position:relative;color:#141821}
.kos-si ul.kos-perks li::before{content:"";position:absolute;left:2px;top:5px;width:12px;height:7px;border-left:2.5px solid #159D74;border-bottom:2.5px solid #159D74;transform:rotate(-45deg)}
.kos-si form{display:flex;gap:8px;flex-wrap:wrap}
.kos-si input{flex:1 1 200px;min-width:0;font:inherit;font-size:16px;padding:12px 16px;border-radius:100px;border:1px solid #DCD9D0;background:#fff;color:#141821}
.kos-si input:focus{outline:2px solid #159D74;outline-offset:1px;border-color:transparent}
.kos-si input.kos-code{letter-spacing:.4em;font-family:'Spline Sans Mono',ui-monospace,monospace;text-align:center;font-size:20px;flex-basis:100%}
.kos-btn{font:inherit;font-size:15px;font-weight:600;border:0;border-radius:100px;padding:12px 22px;background:#0C7558;color:#fff;cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.kos-btn:hover{background:#0a634b}
.kos-btn[disabled]{opacity:.6;cursor:progress}
.kos-btn.full{flex-basis:100%}
.kos-btn.ghost{background:#F6F4EE;color:#141821;border:1px solid #DCD9D0}
.kos-btn.ghost:hover{border-color:#159D74;background:#fff}
.kos-btn.danger{background:#9E2B28}
.kos-btn.sm{font-size:13.5px;padding:8px 14px}
.kos-links{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:14px}
.kos-links button{font:inherit;background:none;border:0;padding:0;color:#0C7558;text-decoration:underline;cursor:pointer}
.kos-links button[disabled]{color:#97A1B7;text-decoration:none;cursor:default}
.kos-fine{font-size:12.5px!important;color:#5A6270!important;margin-top:12px!important}
.kos-fine a{color:#0C7558}
.kos-err{color:#9E2B28!important;font-size:14px!important;min-height:1em;margin:8px 0 0!important}
.kos-ok{color:#0C7558!important}

/* ---------- toast ---------- */
.kos-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);opacity:0;z-index:9999;background:#0B0F1C;color:#F6F4EE;padding:12px 20px;border-radius:100px;font:500 14.5px 'Instrument Sans',system-ui,sans-serif;box-shadow:0 20px 50px -20px rgba(0,0,0,.6);transition:all .3s;max-width:calc(100% - 32px);text-align:center}
.kos-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- share sheet ---------- */
.kos-share{margin-top:18px;border:1px solid #DCD9D0;border-radius:18px;padding:18px;background:#FBFAF6;font-family:'Instrument Sans',system-ui,sans-serif;color:#141821}
.kos-share h4{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:19px;margin:0 0 4px}
.kos-share .sub{display:block;font-size:13.5px;color:#5A6270;margin:0 0 14px}
.kos-tabs{display:inline-flex;gap:4px;background:#EDEAE0;border-radius:100px;padding:4px;margin-bottom:12px}
.kos-tabs button{white-space:nowrap;font:inherit;font-size:13px;font-weight:600;border:0;background:none;padding:7px 13px;border-radius:100px;cursor:pointer;color:#5A6270}
.kos-tabs button[aria-pressed="true"]{background:#fff;color:#141821;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.kos-card{display:flex;justify-content:center;background:#EDEAE0;border-radius:14px;padding:12px;margin-bottom:14px;min-height:120px;align-items:center}
.kos-card img{max-width:100%;max-height:360px;border-radius:8px;box-shadow:0 12px 30px -16px rgba(11,15,28,.45);display:block}
.kos-card.loading img{opacity:.35}
.kos-toggle{display:flex;align-items:center;gap:10px;font-size:14.5px;margin:0 0 12px;cursor:pointer;user-select:none}
.kos-toggle input{appearance:none;-webkit-appearance:none;width:40px;height:23px;border-radius:100px;background:#DCD9D0;position:relative;cursor:pointer;flex:none;margin:0;transition:background .2s}
.kos-toggle input::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.kos-toggle input:checked{background:#159D74}
.kos-toggle input:checked::after{transform:translateX(17px)}
.kos-toggle input:focus-visible{outline:2px solid #159D74;outline-offset:2px}
.kos-msg{width:100%;font:inherit;font-size:14.5px;line-height:1.5;border:1px solid #DCD9D0;border-radius:12px;padding:10px 12px;resize:vertical;min-height:84px;background:#fff;color:#141821;margin-bottom:12px;box-sizing:border-box}
.kos-share-row{display:flex;flex-wrap:wrap;gap:8px}
.kos-share-row a,.kos-share-row button{font:inherit;font-size:13.5px;font-weight:600;padding:9px 14px;border-radius:100px;border:1px solid #DCD9D0;background:#fff;color:#141821;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.kos-share-row a:hover,.kos-share-row button:hover{border-color:#159D74}
.kos-share-row .main{background:#0C7558;border-color:#0C7558;color:#fff}
.kos-share-row .wa{background:#1F8F55;border-color:#1F8F55;color:#fff}
.kos-impact-note{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:13.5px;line-height:1.5;color:#3d4452;background:#E6F4EE;border-radius:12px;padding:10px 12px}
.kos-impact-note button{font:inherit;background:none;border:0;padding:0;color:#0C7558;text-decoration:underline;cursor:pointer}
.kos-saved{font-size:13px;color:#5A6270;margin-top:12px}
.kos-saved a{color:#0C7558}

/* ---------- /account/ (every rule scoped to .acct so nothing leaks onto other pages) ---------- */
.acct{font-family:'Instrument Sans',system-ui,sans-serif;color:#141821;max-width:980px;margin:0 auto;padding:28px 0 48px}
.acct h1{font-family:'Bricolage Grotesque',system-ui,sans-serif;margin:0}
.acct h2{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:22px;margin:0 0 4px;letter-spacing:-.01em}
.acct .lead{color:#5A6270;margin:0 0 16px;font-size:15px}
.acct-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
.acct-card{grid-column:span 12;background:#fff;border:1px solid #DCD9D0;border-radius:20px;padding:clamp(18px,3vw,26px)}
.acct-card.half{grid-column:span 6}
@media(max-width:820px){.acct-card.half{grid-column:span 12}}
.acct-signedout{max-width:520px;margin:20px auto;background:#fff;border:1px solid #DCD9D0;border-radius:22px;padding:30px}
.acct .prof{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.acct .prof-av{position:relative;width:96px;height:96px;border-radius:50%;flex:none;background:#0C7558;color:#fff;display:flex;align-items:center;justify-content:center;font:800 40px 'Bricolage Grotesque',system-ui,sans-serif;overflow:hidden;border:0;padding:0;cursor:pointer}
.acct .prof-av img{width:100%;height:100%;object-fit:cover}
.acct .prof-av .cam{position:absolute;inset:auto 0 0 0;background:rgba(11,15,28,.62);color:#fff;font:600 11px 'Instrument Sans',sans-serif;padding:5px 0 7px;letter-spacing:.02em}
.acct .prof-main{flex:1 1 260px;min-width:0}
.acct .prof-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.acct .prof-name h1{font-size:clamp(26px,4vw,34px);letter-spacing:-.02em;overflow-wrap:anywhere}
.acct .prof-meta{color:#5A6270;font-size:14px;margin-top:4px;overflow-wrap:anywhere}
.acct .tier{display:inline-flex;align-items:center;gap:6px;font:600 12.5px 'Spline Sans Mono',ui-monospace,monospace;letter-spacing:.02em;background:#E6F4EE;color:#0C7558;border-radius:100px;padding:5px 11px}
.acct .name-edit{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.acct .name-edit input{font:inherit;font-size:17px;padding:10px 14px;border-radius:12px;border:1px solid #DCD9D0;min-width:0;flex:1 1 200px}
.acct .linkish,.kos-saved .linkish{font:inherit;font-size:14px;background:none;border:0;color:#0C7558;text-decoration:underline;cursor:pointer;padding:0}
.acct .today{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.acct .pill-stat{background:#F6F4EE;border:1px solid #DCD9D0;border-radius:100px;padding:8px 14px;font-size:14px}
.acct .pill-stat b{font-weight:700}
.acct .impact-top{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:6px 0 16px}
.acct .impact-num{font:800 clamp(52px,8vw,76px)/0.9 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.03em;color:#0C7558}
.acct .impact-lbl{font-size:16px;font-weight:600;padding-bottom:6px}
.acct .impact-lbl small{display:block;font-weight:400;color:#5A6270;font-size:13.5px}
.acct .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
@media(max-width:620px){.acct .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.acct .stat{background:#F6F4EE;border-radius:14px;padding:12px 14px}
.acct .stat b{display:block;font:800 26px 'Bricolage Grotesque',system-ui,sans-serif}
.acct .stat span{font-size:13px;color:#5A6270}
.acct .progress{height:10px;background:#EDEAE0;border-radius:100px;overflow:hidden;margin:8px 0 6px}
.acct .progress span{display:block;height:100%;background:linear-gradient(90deg,#159D74,#0C7558);border-radius:100px;transition:width .8s cubic-bezier(.2,.8,.3,1)}
.acct .progress-txt{font-size:14px;color:#3d4452}
.acct .tiers{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.acct .tiers span{font-size:12.5px;border:1px solid #DCD9D0;border-radius:100px;padding:5px 10px;color:#5A6270}
.acct .tiers span.on{border-color:#159D74;color:#0C7558;background:#E6F4EE;font-weight:600}
.acct .badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.acct .badge{border:1px solid #DCD9D0;border-radius:16px;padding:14px;text-align:left;background:#fff}
.acct .badge .ic{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#E6F4EE;margin-bottom:8px;font-size:20px}
.acct .badge b{display:block;font-size:14.5px}
.acct .badge span{font-size:12.5px;color:#5A6270;line-height:1.4;display:block;margin-top:2px}
.acct .badge.off{opacity:.5;background:#FBFAF6}
.acct .badge.off .ic{background:#EDEAE0;filter:grayscale(1)}
.acct .inv-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.acct .inv-row input{flex:1 1 240px;min-width:0;font:inherit;font-size:14.5px;padding:10px 14px;border-radius:100px;border:1px solid #DCD9D0;background:#F6F4EE}
.acct .receipts{list-style:none;margin:8px 0 0;padding:0}
.acct .receipts li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #EDEAE0;font-size:14.5px}
.acct .receipts li a{color:#141821;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.acct .receipts li a:hover{text-decoration:underline}
.acct .receipts li b{white-space:nowrap;color:#0C7558;font-size:13.5px}
.acct .hist-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.acct .hist-tools input{flex:1 1 220px;min-width:0;font:inherit;font-size:15px;padding:10px 14px;border-radius:100px;border:1px solid #DCD9D0}
.acct .hist-tools select{font:inherit;font-size:14px;padding:9px 12px;border-radius:100px;border:1px solid #DCD9D0;background:#fff}
.acct .hist{list-style:none;margin:0;padding:0}
.acct .hist>li{border-top:1px solid #EDEAE0;padding:14px 0}
.acct .hist-top{display:flex;gap:10px;align-items:flex-start}
.acct .hist-top .v{flex:none;font:600 11.5px 'Spline Sans Mono',ui-monospace,monospace;padding:4px 9px;border-radius:100px;color:#fff;margin-top:2px}
.acct .v-calm{background:#0C7558}.acct .v-caution{background:#B7791F}.acct .v-high_pressure{background:#C2413D}.acct .v-likely_scam{background:#9E2B28}
.acct .hist-main{flex:1;min-width:0}
.acct .hist-main b{display:block;font-size:15.5px;line-height:1.35}
.acct .hist-main .pv{font-size:13.5px;color:#5A6270;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.acct .hist-main .when{font-size:12.5px;color:#97A1B7;margin-top:4px}
.acct .hist-act{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.acct .hist-act button{font:inherit;font-size:13px;padding:6px 12px;border-radius:100px;border:1px solid #DCD9D0;background:#fff;cursor:pointer;color:#141821}
.acct .hist-act button:hover{border-color:#159D74}
.acct .hist-act button.del:hover{border-color:#9E2B28;color:#9E2B28}
.acct .hist-detail{margin-top:12px;background:#FBFAF6;border:1px solid #EDEAE0;border-radius:14px;padding:14px 16px;font-size:14.5px}
.acct .hist-detail h5{font:600 11px 'Spline Sans Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#5A6270;margin:12px 0 6px}
.acct .hist-detail h5:first-child{margin-top:0}
.acct .hist-detail ul{margin:0;padding-left:18px}
.acct .hist-detail li{margin:4px 0}
.acct .hist-detail q{color:#9E2B28}
.acct .empty{color:#5A6270;font-size:15px;padding:18px 0}
.acct .set-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-top:1px solid #EDEAE0;flex-wrap:wrap}
.acct .set-row:first-of-type{border-top:0}
.acct .set-row div{flex:1 1 260px}
.acct .set-row b{display:block;font-size:15px}
.acct .set-row small{display:block;color:#5A6270;font-size:13.5px;margin-top:2px;line-height:1.45}
.acct .set-row select{font:inherit;font-size:14px;padding:8px 12px;border-radius:100px;border:1px solid #DCD9D0;background:#fff}
.acct .danger-zone{border-color:#F0CFCD}
.acct-skel{height:160px;border-radius:20px;background:linear-gradient(90deg,#EDEAE0,#F6F4EE,#EDEAE0);background-size:200% 100%;animation:kosSk 1.2s infinite;grid-column:span 12}
@keyframes kosSk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.acct-skel{animation:none}.acct .progress span{transition:none}}
/* Phones: the account button replaces the early-access pill (signing in also joins the list). */
@media(max-width:640px){#nav .nav-cta{display:none}#nav .nav-word{white-space:nowrap}#nav .kos-signin,.sub-links .kos-signin{padding:6px 12px;font-size:13px}.sub-links{gap:12px}}
/* Trusted Circle */
.cc-block{border-top:1px solid #EDEAE0;padding-top:16px;margin-top:16px}
.cc-block:first-child{border-top:0;margin-top:4px;padding-top:0}
.cc-block h3{font:600 11.5px 'Spline Sans Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:#5A6270;margin:0 0 10px}
.cc-av{width:36px;height:36px;border-radius:50%;flex:none;background:#0C7558;color:#fff;display:inline-flex;align-items:center;justify-content:center;font:700 15px 'Bricolage Grotesque',system-ui,sans-serif;overflow:hidden}
.cc-av img{width:100%;height:100%;object-fit:cover}
.cc-members,.cc-alerts,.cc-pending{list-style:none;margin:0;padding:0}
.cc-members li{display:flex;align-items:center;gap:12px;padding:8px 0}
.cc-mn{flex:1;min-width:0}
.cc-mn b{display:block;font-size:15px;overflow-wrap:anywhere}
.cc-mn small{color:#5A6270;font-size:13px}
.cc-pending li{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:14px;color:#5A6270;padding:8px 12px;margin:6px 0;border:1px dashed #DCD9D0;border-radius:12px}
.cc-alerts li{border:1px solid #EDEAE0;border-radius:16px;padding:14px 16px;margin:0 0 10px;background:#FBFAF6}
.cc-alerts li.new{border-color:#F0CFCD;background:#FDF6F5}
.cc-atop{display:flex;gap:10px;align-items:center}
.cc-who{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.cc-who b{font-size:15px}
.cc-who .v{font:600 11.5px 'Spline Sans Mono',ui-monospace,monospace;padding:3px 9px;border-radius:100px;color:#fff}
.cc-who .when{font-size:12.5px;color:#97A1B7}
.cc-head{margin:10px 0 0;font-size:15.5px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.cc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.cc-tags span{font-size:12.5px;border:1px solid #DCD9D0;background:#fff;border-radius:100px;padding:4px 10px}
.cc-inv{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 6px}
.cc-inv input{flex:1 1 220px;min-width:0;font:inherit;font-size:15px;padding:10px 14px;border-radius:100px;border:1px solid #DCD9D0}
.cc-fine{font-size:13px;color:#5A6270;margin:8px 0 12px;line-height:1.5}
.cc-ok{font-weight:600;margin:12px 0 4px}
.cc-choices{margin:8px 0 10px}
.cc-invhead{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.cc-invhead .cc-av{width:44px;height:44px;font-size:19px}
.cc-points{margin:0 0 16px;padding-left:20px;font-size:15px;line-height:1.55}
.cc-points li{margin:0 0 6px}
.cc-opts{border:1px solid #EDEAE0;border-radius:16px;padding:4px 16px;margin-bottom:12px}
.cc-actions{display:flex;gap:10px;flex-wrap:wrap}
.acct-card.circle-invite{border-color:#159D74;box-shadow:0 0 0 3px #E6F4EE}
