/* tabo.css (Tabo AI v2.9.8): the Tabo design system, loaded last.
   Dominick, Nov 11 4:41 PM: "Remove everything on the website said on this" (a list of 20 things that make an app look AI-made).
   One brand colour (Tabo rust #b8481a) + warm neutrals, solid surfaces, 1px borders, one radius set (6/10/14), one spacing scale (4/8/12/16/24/32/48),
   Rubik for headings + the system face for text, no hover zoom, real contrast in dark mode. Old-Safari safe: no CSS variables, no filter transitions. */
@font-face{font-family:'Tabo Rubik';src:url(fonts/rubik-600.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Tabo Rubik';src:url(fonts/rubik-700.woff2) format('woff2');font-weight:700;font-style:normal;font-display:swap}

/* ---------- base ---------- */
html.hcf,html.hcf body{background:#f7f5f2;background-image:none}
html.hcf body{color:#1f1b17;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}
.ti{display:inline-block;width:18px;height:18px;vertical-align:-4px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tiw{display:inline-block;line-height:0;vertical-align:middle;margin-right:6px}
.tiw:only-child,.tbtn .tiw,.ib .tiw{margin-right:0}
.tbtn .tiw+.tw,.tbtn .tiw+span{margin-left:4px}
h1,h2,h3,.hd-t,.hd-h,.tl-h1,.tl-brand b,.brand h1,.ls-ttl,.kb-card h2,.hs-h,.hcdl-h,.sc-h,.bd-h{font-family:'Tabo Rubik',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;letter-spacing:-.01em}
em,i{font-family:inherit}
:focus-visible{outline:2px solid #b8481a;outline-offset:2px}
::selection{background:#fcc8a6;color:#1f1b17}

/* ---------- chat frame ---------- */
.top{background:#ffffff;border-bottom:1px solid #e4ded6;box-shadow:none;border-radius:0;padding:8px 16px;padding-top:calc(8px + env(safe-area-inset-top))}
.brand img{border-radius:8px;box-shadow:none}
.brand h1{color:#1f1b17;font-weight:700}
.brand p{color:#6b635a}
.tbtn{border:1px solid #e4ded6;background:#ffffff;color:#1f1b17;border-radius:10px;font-weight:600;box-shadow:none}
.tbtn:hover,.tbtn:focus{background:#f1eee9;border-color:#d2cbc1}
.hc-modes{background:transparent;padding:12px 16px 0}
.hm{border:1px solid #e4ded6;background:#ffffff;color:#47403a;border-radius:10px;font-weight:600;box-shadow:none;padding:8px 16px;margin:0 4px}
.hm:hover{background:#f1eee9}
.hm.on{background:#1f1b17;border-color:#1f1b17;color:#ffffff;box-shadow:none}
.hm:focus{outline:2px solid #b8481a;outline-offset:2px}
.msg{border-radius:14px;font-size:15.5px;box-shadow:none}
.msg.bot{background:#ffffff;border:1px solid #e4ded6;border-bottom-left-radius:6px;color:#1f1b17;box-shadow:none}
.msg.me{background:#b8481a;color:#ffffff;border-bottom-right-radius:6px;box-shadow:none;font-weight:500}
.msg.me a{color:#ffffff}
.chip,.hc-qr .chip{border:1px solid #e4ded6;background:#ffffff;color:#47403a;border-radius:10px;font-weight:600}
.chip:hover,.chip:focus{border-color:#d2cbc1;background:#f1eee9}
.composer input,.composer textarea{border:1px solid #d2cbc1;border-radius:14px;background:#ffffff;color:#1f1b17;box-shadow:none}
.composer input:focus,.composer textarea:focus{border-color:#b8481a;box-shadow:0 0 0 3px rgba(184,72,26,.18);outline:none}
.send{background:#b8481a;color:#ffffff;border-radius:10px;box-shadow:none}
.send:hover{background:#933914}
.send .ti{width:20px;height:20px;vertical-align:-5px;stroke-width:2.2}
.fine{color:#6b635a}
.typing span{background:#b3aaa0}
.msg.hc-typing:after{color:#b8481a}
.hc-hd{color:#1f1b17}
.hc-ic{background:#f1eee9;color:#7a2f10}
.hc-code{background:#1d1b19;color:#f4f0eb;border-radius:10px}
.hc-code-b{background:#272421;color:#d6cfc7}
.hc-cp{background:#b8481a;color:#ffffff;border-radius:6px}
.hc-act{border:1px solid #e4ded6;background:#ffffff;color:#47403a;border-radius:6px;font-weight:600}
.hc-act:hover,.hc-act:focus{background:#f1eee9}
.hc-acts{border-top:1px solid #e4ded6}
.hc-cnt{background:#ffffff;color:#6b635a;border:1px solid #e4ded6;box-shadow:none}
.hc-new-pill{background:#fbede4;color:#933914;border-radius:4px;font-weight:700;letter-spacing:.02em;padding:1px 6px}
/* model picker */
html.hcf .aip-btn{border:1px solid #e4ded6;color:#1f1b17;border-radius:10px;background:#ffffff;box-shadow:none}
html.hcf .aip-btn b{color:#933914}
html.hcf .aip-list{border:1px solid #e4ded6;background:#ffffff;box-shadow:0 12px 32px rgba(31,27,23,.14);border-radius:14px}
html.hcf .aip-h,html.hcf .aip-g{color:#47403a}
html.hcf .aip-o{border:1px solid #ece7e0;border-radius:10px;color:#1f1b17}
html.hcf .aip-o.on{border-color:#b8481a;background:#fbede4}
/* drawers + panels */
.hc-drawer{background:#ffffff;border-color:#e4ded6;box-shadow:0 0 0 1px #e4ded6}
.hd-top{background:#ffffff;border-bottom:1px solid #e4ded6;padding:12px 16px}
.hd-t{font-weight:700;color:#1f1b17}
.hd-h{font-weight:700;color:#1f1b17;margin:24px 0 8px;font-size:16px}
.hd-note,.hd-empty,.hd-cnt{color:#6b635a}
.hd-btn{border:1px solid #d2cbc1;border-radius:10px;background:#ffffff;color:#1f1b17;font-weight:600}
.hd-btn:hover{background:#f1eee9}
.hd-btn.pri,.hd-new{background:#b8481a;border-color:#b8481a;color:#ffffff}
.hd-btn.pri:hover,.hd-new:hover{background:#933914;border-color:#933914}
.hd-new{border-radius:10px;font-weight:600}
.ci.on{border-color:#b8481a;background:#fbede4}
.hc-scrim{background:rgba(20,19,17,.4)}
/* code mode */
.cb-pv,.cb-ed{border-radius:14px;border:1px solid #e4ded6}
.cp-t{border:1px solid #e4ded6;border-radius:10px;box-shadow:none;background:#ffffff;color:#1f1b17}
.cp-t:hover,.cp-t:focus{border-color:#b8481a}
.cp-gh,.cp-il{color:#47403a}
.cp-ib,.cp-ib:nth-child(n){background:#ffffff;border:1px solid #e4ded6;color:#47403a;border-radius:6px}
.cp-steps span.on{background:#1f1b17;color:#ffffff}

/* ---------- home page ---------- */
.tl-home{background:#f7f5f2;background-image:none;color:#1f1b17;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.tl-top{padding:16px 24px;padding-top:calc(16px + env(safe-area-inset-top));border-bottom:1px solid transparent}
.tl-brand{font-size:17px;font-weight:700}
.tl-brand img{width:28px;height:28px;border-radius:8px;margin-right:8px}
.tl-ib,.tl-menub{height:40px;min-width:40px;margin-left:8px;padding:0 16px;border-radius:10px;border:1px solid #d2cbc1;background:#ffffff;color:#1f1b17;font-weight:600;line-height:38px}
.tl-ib{padding:0;width:40px}
.tl-ib .ti,.tl-menub .ti{vertical-align:-4px}
.tl-ib:hover,.tl-menub:hover,.tl-ib:focus-visible,.tl-menub:focus-visible{border-color:#1f1b17;background:#ffffff}
.tl-menub[aria-expanded="true"]{background:#f1eee9;border-color:#1f1b17}
.tl-hero{padding:16px 24px 32px}
.tl-blob{margin:0 auto 16px}
.tl-say{border-radius:10px;border:1px solid #e4ded6;box-shadow:0 4px 12px rgba(31,27,23,.08);font-weight:600;color:#1f1b17}
.tl-h1{margin:0;font-family:'Tabo Rubik',-apple-system,BlinkMacSystemFont,sans-serif;font-size:56px;line-height:1.05;font-weight:700;letter-spacing:-.025em;color:#1f1b17}
.tl-tag{margin:12px 0 0;font-size:20px;line-height:1.35;font-weight:500;color:#47403a;letter-spacing:0}
.tl-sub{margin:8px auto 0;max-width:440px;font-size:15px;line-height:1.5;color:#6b635a}
.tl-cta{margin:32px 0 0;min-width:220px;height:52px;padding:0 32px;border-radius:12px;background:#b8481a;background-image:none;color:#ffffff;font-size:17px;font-weight:600;box-shadow:none;-webkit-transition:background-color .15s;transition:background-color .15s}
.tl-cta:hover{background:#933914}
.tl-cta:active{background:#7a2f10;-webkit-transform:none;transform:none}
.tl-cta:focus-visible{outline:2px solid #1f1b17;outline-offset:3px}
.tl-cta span{margin-left:8px}
.tl-cont{margin:16px auto 0;padding:8px 12px;border-radius:10px;color:#933914;font-weight:600}
.tl-cont:hover{background:#f1eee9}
.tl-foot{font-size:13px;color:#6b635a;padding:12px 16px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
.tl-foot .ti{width:15px;height:15px;vertical-align:-3px;margin-right:4px}
@media (max-width:520px){.tl-h1{font-size:44px}.tl-tag{font-size:18px}.tl-top{padding-left:16px;padding-right:16px}}
/* the menu */
.tl-menu{background:#ffffff;color:#1f1b17;border:1px solid #e4ded6;border-radius:14px;box-shadow:0 16px 40px rgba(31,27,23,.16);width:340px}
.tl-mscroll{padding:8px}
.tl-mg{padding:4px 0}
.tl-mg+.tl-mg{border-top:1px solid #ece7e0}
.tl-mh{padding:8px 8px 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#6b635a}
.tl-mit{padding:8px;border-radius:8px}
.tl-mit:hover,.tl-mit:focus{background:#f1eee9}
.tl-mi{width:32px;height:32px;margin-right:12px;border-radius:8px;background:#f1eee9;color:#47403a;line-height:32px;font-size:0}
.tl-mi .ti{width:18px;height:18px;vertical-align:-4px}
.tl-mit:hover .tl-mi,.tl-mit:focus .tl-mi{background:#ffffff;color:#b8481a}
.tl-mt b{font-size:15px;font-weight:600;color:#1f1b17}
.tl-mt small{font-size:13px;color:#6b635a}
.tl-mx{color:#6b635a}
.tl-mx .ti{width:15px;height:15px}
.tl-sw{background:#d2cbc1}
.tl-mit[aria-pressed="true"] .tl-sw{background:#b8481a}
.tl-skip{margin:4px 8px 8px;padding:12px 0 4px;border-top:1px solid #ece7e0;font-size:13px;color:#47403a}

/* ---------- lessons: calm cards instead of colour blocks ---------- */
.ls-sheet{background:#141311;background-image:none;color:#f4f0eb}
.ls-course,.ls-course.bd-c1,.ls-course.bd-c2,.ls-course.bd-c3,.ls-course.bd-c4{background:#1d1b19;background-image:none;border:1px solid #36322e;border-radius:14px;box-shadow:none;color:#f4f0eb;padding:16px}
.ls-course:hover,.ls-course:focus{border-color:#f08a55;background:#211f1c;outline:none}
.ls-course .ls-ci{display:none}
.ls-course b{font-size:19px;font-family:'Tabo Rubik',-apple-system,BlinkMacSystemFont,sans-serif;font-weight:600}
.ls-course span{color:#d6cfc7;opacity:1}
.ls-course em{background:#272421;color:#f08a55;border-radius:6px;font-weight:600}
.ls-course:active,.ls-lb:active,.ls-tyl:active,.ls-b:active{-webkit-transform:none;transform:none}
.ls-task{background:#1d1b19;background-image:none;border:1px solid #36322e;border-radius:10px}

/* ---------- dark mode: warm near-black, real contrast ---------- */
html.tl-dark,html.tl-dark.hcf,html.tl-dark.hcf body{background:#141311;background-image:none;color:#f4f0eb}
html.tl-dark .top{background:#1d1b19;border-bottom-color:#36322e}
html.tl-dark .brand h1{color:#f4f0eb}
html.tl-dark .brand p{color:#b3aaa0}
html.tl-dark .tbtn{background:#1d1b19;border-color:#36322e;color:#f4f0eb}
html.tl-dark .tbtn:hover,html.tl-dark .tbtn:focus{background:#272421;border-color:#4a4540}
html.tl-dark .hm{background:#1d1b19;border-color:#36322e;color:#d6cfc7}
html.tl-dark .hm:hover{background:#272421}
html.tl-dark .hm.on{background:#f4f0eb;border-color:#f4f0eb;color:#141311}
html.tl-dark .msg.bot{background:#1d1b19;border-color:#36322e;color:#f4f0eb}
html.tl-dark .msg.me{background:#b8481a;color:#ffffff}
html.tl-dark .chip,html.tl-dark .hc-qr .chip{background:#1d1b19;border-color:#36322e;color:#d6cfc7}
html.tl-dark .chip:hover,html.tl-dark .chip:focus{background:#272421;border-color:#4a4540}
html.tl-dark .composer input,html.tl-dark .composer textarea{background:#1d1b19;border-color:#4a4540;color:#f4f0eb}
html.tl-dark .composer input::placeholder,html.tl-dark .composer textarea::placeholder{color:#a39a90}
html.tl-dark .composer input:focus,html.tl-dark .composer textarea:focus{border-color:#f08a55;box-shadow:0 0 0 3px rgba(240,138,85,.2)}
html.tl-dark .fine{color:#b3aaa0}
html.tl-dark .hc-ic{background:#272421;color:#f6b48a}
html.tl-dark .hc-hd{color:#f4f0eb}
html.tl-dark .hc-act{background:#1d1b19;border-color:#36322e;color:#d6cfc7}
html.tl-dark .hc-acts{border-top-color:#36322e}
html.tl-dark .hc-cnt{background:#1d1b19;color:#b3aaa0;border-color:#36322e}
html.tl-dark .hc-new-pill{background:#3a2418;color:#f6b48a}
html.tl-dark.hcf .aip-btn{background:#1d1b19;border-color:#36322e;color:#f4f0eb}
html.tl-dark.hcf .aip-btn b{color:#f08a55}
html.tl-dark.hcf .aip-list{background:#1d1b19;border-color:#36322e;box-shadow:0 12px 32px rgba(0,0,0,.5)}
html.tl-dark.hcf .aip-h,html.tl-dark.hcf .aip-g{color:#d6cfc7}
html.tl-dark.hcf .aip-g{background:#1d1b19;border-bottom-color:#36322e;box-shadow:0 -.45rem 0 #1d1b19}
html.tl-dark.hcf .aip-o{border-color:#36322e;color:#f4f0eb}
html.tl-dark.hcf .aip-o.on{border-color:#f08a55;background:#2b211b}
html.tl-dark.hcf .aip-note,html.tl-dark.hcf .aip-tag{color:#b3aaa0}
html.tl-dark .hc-drawer{background:#1d1b19;border-color:#36322e;box-shadow:0 0 0 1px #36322e}
html.tl-dark .hd-top{background:#1d1b19;border-bottom-color:#36322e}
html.tl-dark .hd-t,html.tl-dark .hd-h{color:#f4f0eb}
html.tl-dark .hd-note,html.tl-dark .hd-empty,html.tl-dark .hd-cnt,html.tl-dark .hd-lbl{color:#b3aaa0}
html.tl-dark .hd-btn{background:#1d1b19;border-color:#4a4540;color:#f4f0eb}
html.tl-dark .hd-btn:hover{background:#272421}
html.tl-dark .hd-btn.pri,html.tl-dark .hd-new{background:#b8481a;border-color:#b8481a;color:#ffffff}
html.tl-dark .ci.on{border-color:#f08a55;background:#2b211b}
html.tl-dark .cb-pv,html.tl-dark .cb-ed{border-color:#36322e}
html.tl-dark .cp-t{background:#1d1b19;border-color:#36322e;color:#f4f0eb}
html.tl-dark .cp-gal .cp-t b,html.tl-dark .cb-empty>b{color:#f4f0eb}
html.tl-dark .cp-ib,html.tl-dark .cp-ib:nth-child(n){background:#1d1b19;border-color:#36322e;color:#d6cfc7}
html.tl-dark .cp-gh,html.tl-dark .cp-il{color:#d6cfc7}
html.tl-dark .tl-home{background:#141311;background-image:none;color:#f4f0eb}
html.tl-dark .tl-ib,html.tl-dark .tl-menub{background:#1d1b19;border-color:#4a4540;color:#f4f0eb}
html.tl-dark .tl-ib:hover,html.tl-dark .tl-menub:hover,html.tl-dark .tl-menub[aria-expanded="true"]{background:#272421;border-color:#f4f0eb}
html.tl-dark .tl-h1{color:#f4f0eb}
html.tl-dark .tl-tag{color:#d6cfc7}
html.tl-dark .tl-sub,html.tl-dark .tl-foot{color:#b3aaa0}
html.tl-dark .tl-cta{background:#b8481a;color:#ffffff;box-shadow:none}
html.tl-dark .tl-cta:hover{background:#c9541f}
html.tl-dark .tl-cta:focus-visible{outline-color:#f4f0eb}
html.tl-dark .tl-cont{color:#f6b48a}
html.tl-dark .tl-cont:hover{background:#1d1b19}
html.tl-dark .tl-say{background:#1d1b19;border-color:#36322e;color:#f4f0eb}
html.tl-dark .tl-menu{background:#1d1b19;color:#f4f0eb;border-color:#36322e;box-shadow:0 16px 40px rgba(0,0,0,.55)}
html.tl-dark .tl-mg+.tl-mg,html.tl-dark .tl-skip{border-color:#2f2b28}
html.tl-dark .tl-mit:hover,html.tl-dark .tl-mit:focus{background:#272421}
html.tl-dark .tl-mi{background:#272421;color:#d6cfc7}
html.tl-dark .tl-mit:hover .tl-mi,html.tl-dark .tl-mit:focus .tl-mi{background:#141311;color:#f08a55}
html.tl-dark .tl-mt b{color:#f4f0eb}
html.tl-dark .tl-mt small,html.tl-dark .tl-mh,html.tl-dark .tl-mx{color:#b3aaa0}
html.tl-dark .tl-skip{color:#d6cfc7}
html.tl-dark .tl-sw{background:#4a4540}
html.tl-dark :focus-visible{outline-color:#f08a55}

/* ---------- fixes from the contrast audit ---------- */
html.hc-unh .top,html.tl-dark.hc-unh .top{background:#1f1b17;background-image:none;border-bottom-color:#1f1b17}
html.hc-unh .top h1,html.hc-unh .top p,html.hc-unh .top .tbtn{color:#ffffff}
html.hc-unh .top .tbtn{background:#2b2724;border-color:#4a4540}
html.hc-unh .top h1:after{content:'Unhinged';display:inline-block;margin-left:8px;padding:2px 6px;border-radius:4px;background:#b8481a;color:#ffffff;font-size:11px;line-height:14px;font-weight:600;letter-spacing:.02em;vertical-align:4px;text-transform:uppercase}
.hc-unh-chip{border:1px solid #d2cbc1;color:#47403a}
.hc-unh-chip.on{border-color:#b8481a;background:#fbede4;color:#b8481a;box-shadow:none}
.hc-unh-chip .ti{width:16px;height:16px;vertical-align:-3px}
html.tl-dark .hc-unh-chip{background:#1d1b19;border-color:#4a4540;color:#d6cfc7}
html.tl-dark .hc-unh-chip.on{background:#3a2418;border-color:#f08a55;color:#f08a55}
.cb-b.cb-run,.hs-tb.hs-play{background:#15803d;border-color:#15803d;color:#ffffff}
.hc-presets .pc.on,.hcdg-b .go{background:#b8481a;border-color:#b8481a;color:#ffffff}
html.tl-dark .aip-pt,html.tl-dark .hpk-h,html.tl-dark .hpk-mk,html.tl-dark .hpk-tst summary,html.tl-dark .hv-ttl,html.tl-dark .hb-ttl-n,html.tl-dark .aip-o .aip-ck,html.tl-dark .kb-t,html.tl-dark .kb-card h2{color:#f08a55}
html.tl-dark .aip-pt,html.tl-dark.hcf .aip-btn .aip-pt,html.tl-dark.hcf .aip-o .aip-pt{background:#3a2418}
html.hcf .aip-btn .aip-pt,html.hcf .aip-o .aip-pt{background:#fbede4;color:#933914}
.cb-e1 .ti{width:44px;height:44px;stroke-width:1.5;color:#b8481a}
.cb-e1 .tiw{margin:0}
.hv-ttl .tiw{margin-right:6px}

html.tl-dark .aip .aip-btn .aip-pt,html.tl-dark .aip-o .aip-pt,html.tl-dark .aip-o.on .aip-ck,html.tl-dark .aip-o .aip-ck{color:#f6b48a!important;background:#3a2418!important}
.cb-acts .cb-b.cb-run,html.tl-dark .cb-acts .cb-b.cb-run,.hs-tr .hs-tb.hs-play,html.tl-dark .hs-tr .hs-tb.hs-play{background:#15803d!important;border-color:#15803d!important;color:#ffffff!important}
.hc-presets .pc.on,html.tl-dark .hc-presets .pc.on,.hcdg-b .hcdg-r .go,html.tl-dark .hcdg-b .hcdg-r .go{background:#b8481a!important;border-color:#b8481a!important;color:#ffffff!important}
html.hcf .aip-o.on .aip-st{color:#5c544c}
html.tl-dark .composer .send,html.tl-dark .send{background:#b8481a!important;color:#ffffff!important;border-color:#b8481a!important}
html.tl-dark .composer .send:hover{background:#c9541f!important}

/* rust headings + calmer accents */
.hd-msg,.cb-st{color:#47403a}
.cb-pv .cb-empty span,.cb-empty span{color:#47403a}
.tt-hd b,.tt-title{font-family:'Tabo Rubik',-apple-system,BlinkMacSystemFont,sans-serif}
html.hc-unh #msg{border-color:#d2cbc1}

/* the opt-in Halloween look keeps its orange, but solid (no gradients) */
html.hw body,html.tl-dark.hw body{background-image:none!important}
html.hw .hm.on{background:#c2410c!important;background-image:none!important;border-color:#c2410c;color:#ffffff}
html.hw .msg.me,html.hw .send{background:#c2410c!important;background-image:none!important;color:#ffffff}
.hw-strip,html.tl-dark .hw-strip{background:#1f1b17!important;background-image:none!important;color:#ffffff}
.hv-ov,.hv-card,html.hw .hv-ov,html.hw .hv-card{background-image:none!important}
