/* The training business's own website-style pages: slim top bar, hero, course preview, pricing. Every rule starts with #app .ts- so nothing leaks into the Kolmadia app, and no class here ends in a suffix the shared app rules grab. */
#app .ts-site { min-height: 100vh; background: #f4f7fa; color: #0b0f14; font-family: inherit; display: flex; flex-direction: column; }
#app .ts-site h1, #app .ts-site h2, #app .ts-site h3, #app .ts-site strong, #app .ts-site b { -webkit-text-fill-color: currentColor !important; }
#app .ts-site p, #app .ts-site li, #app .ts-site span, #app .ts-site em, #app .ts-site summary, #app .ts-site div { -webkit-text-fill-color: currentColor; }
#app .ts-site a { color: #0A5BA6; }
#app .ts-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(14px, 4vw, 40px); background: #ffffff; border-bottom: 1px solid #dde6ee; position: sticky; top: 0; z-index: 20; }
#app .ts-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #08467f !important; text-decoration: none; letter-spacing: .01em; }
#app .ts-brand em { font-style: normal; font-weight: 600; color: #5a6672; }
#app .ts-mark { color: #19A3EE; font-size: 1.1rem; }
#app .ts-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
#app .ts-nav a { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: #2a333c; }
#app .ts-nav a.on { background: #e4f2fc; color: #08467f; }
#app .ts-out { background: transparent !important; border: 1px solid #cdd8e2 !important; color: #2a333c !important; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; margin-left: 6px; }
#app .ts-main { flex: 1; }
#app .ts-main > .km-page { max-width: 880px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 24px) 40px; }
#app .ts-foot { padding: 22px clamp(14px, 4vw, 40px); text-align: center; font-size: .85rem; color: #5a6672; border-top: 1px solid #dde6ee; background: #ffffff; }

#app .ts-page { width: 100%; }
#app .ts-hero { background: radial-gradient(900px 400px at 85% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0a4f8f 0%, #0A5BA6 62%, #0C78C0 100%); color: #ffffff; padding: clamp(36px, 7vw, 84px) clamp(16px, 5vw, 56px) clamp(40px, 6vw, 72px); }
#app .ts-hero-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
#app .ts-hero *, #app .ts-hero h1 { color: #ffffff; -webkit-text-fill-color: #ffffff !important; }
#app .ts-eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
#app .ts-hero h1 { margin: 0 0 16px; font-size: clamp(1.9rem, 5.6vw, 3.3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
#app .ts-hero h1 span { color: #bfe6ff !important; -webkit-text-fill-color: #bfe6ff !important; }
#app .ts-lead { margin: 0 0 24px; font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.55; max-width: 640px; opacity: .94; }
#app .ts-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
#app .ts-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 12px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; text-decoration: none; border: 2px solid transparent; }
#app .ts-btn.wide { width: 100%; box-sizing: border-box; margin-top: 4px; }
#app .ts-btn.gold { background: linear-gradient(135deg, #0C78C0, #0A5BA6) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; box-shadow: 0 6px 18px rgba(10,91,166,.28); }
#app .ts-hero .ts-btn.gold { background: #ffffff !important; color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
#app .ts-btn.ghost { background: transparent !important; border-color: rgba(255,255,255,.55); color: #ffffff !important; }
#app .ts-btn.line { background: transparent !important; border-color: #0A5BA6; color: #08467f !important; }
#app .ts-btn:disabled { opacity: .6; cursor: default; }
#app .ts-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
#app .ts-chips li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 6px 13px; border-radius: 999px; font-size: .86rem; font-weight: 600; }

#app .ts-status { max-width: 1040px; margin: -22px auto 0; position: relative; background: #ffffff; border: 1px solid #dde6ee; border-radius: 14px; box-shadow: 0 8px 26px rgba(10,91,166,.12); padding: 14px 20px; display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; align-items: center; width: calc(100% - 32px); box-sizing: border-box; }
#app .ts-status b { display: block; font-size: 1.02rem; }
#app .ts-status span { font-size: .88rem; color: #5a6672; }
#app .ts-status em { font-style: normal; font-size: .9rem; font-weight: 700; color: #08467f; background: #e4f2fc; padding: 6px 12px; border-radius: 999px; }

#app .ts-facts { max-width: 1040px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px !important; background: #dde6ee; border: 1px solid #dde6ee; border-radius: 14px; overflow: hidden; width: calc(100% - 32px); }
#app .ts-facts div { background: #ffffff; text-align: center; padding: 14px 6px; }
#app .ts-facts b { display: block; font-size: 1.35rem; color: #0A5BA6; }
#app .ts-facts span { font-size: .8rem; color: #5a6672; }

#app .ts-block { max-width: 1040px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 16px 8px; box-sizing: border-box; }
#app .ts-tint { background: transparent; }
#app .ts-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #0A5BA6; }
#app .ts-block h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; color: #0b0f14; }
#app .ts-sub { margin: 0 0 22px; max-width: 760px; font-size: 1.02rem; line-height: 1.6; color: #3f4a55; }

#app .ts-lessons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px !important; }
#app .ts-lesson { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; background: #ffffff; border: 1px solid #dde6ee; border-radius: 14px; padding: 14px 16px; }
#app .ts-lesson strong { display: block; font-size: 1.02rem; margin-bottom: 2px; color: #0b0f14; }
#app .ts-lesson p { margin: 0; font-size: .9rem; line-height: 1.45; color: #5a6672; }
#app .ts-num { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #0C78C0, #0A5BA6); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; -webkit-text-fill-color: #ffffff !important; }
#app .ts-min { font-size: .78rem; font-weight: 700; color: #0A5BA6; background: #e4f2fc; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

#app .ts-goals { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 22px !important; }
#app .ts-goals li { position: relative; padding-left: 30px; line-height: 1.5; color: #26303a; }
#app .ts-goals li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #0A5BA6; color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; -webkit-text-fill-color: #fff; }

#app .ts-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px !important; }
#app .ts-steps li { background: #ffffff; border: 1px solid #dde6ee; border-radius: 14px; padding: 18px; }
#app .ts-steps li > span { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #0C78C0, #0A5BA6); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; -webkit-text-fill-color: #ffffff; }
#app .ts-steps strong { display: block; margin-bottom: 4px; }
#app .ts-steps p { margin: 0; font-size: .9rem; line-height: 1.5; color: #5a6672; }

#app .ts-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px !important; margin-top: 18px; align-items: stretch; }
#app .ts-plan { position: relative; background: #ffffff; border: 1px solid #cdd8e2; border-radius: 18px; padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
#app .ts-plan.best { border: 2px solid #0A5BA6; box-shadow: 0 14px 34px rgba(10,91,166,.16); }
#app .ts-flag { position: absolute; top: -13px; left: 20px; background: linear-gradient(135deg, #0C78C0, #0A5BA6); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; -webkit-text-fill-color: #fff; }
#app .ts-plan h3 { margin: 0; font-size: 1.25rem; color: #0b0f14; }
#app .ts-note { margin: 0; font-size: .86rem; color: #5a6672; line-height: 1.45; }
#app .ts-price { margin: 8px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#app .ts-price b { font-size: 2.5rem; line-height: 1; color: #0A5BA6; letter-spacing: -.02em; }
#app .ts-price span { font-size: .9rem; color: #5a6672; }
#app .ts-seats { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
#app .ts-seats button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #c4d1dd !important; background: #f4f7fa !important; color: #08467f !important; font-size: 1.3rem; font-weight: 800; cursor: pointer; line-height: 1; }
#app .ts-seats button:disabled { opacity: .45; cursor: default; }
#app .ts-seats input { width: 76px; height: 40px; text-align: center; font: inherit; font-size: 1.1rem; font-weight: 800; border: 1px solid #c4d1dd; border-radius: 10px; background: #ffffff; color: #0b0f14; -webkit-text-fill-color: #0b0f14; box-sizing: border-box; }
#app .ts-seats span { font-size: .9rem; color: #5a6672; }
#app .ts-incl { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 7px !important; flex: 1; align-content: start; }
#app .ts-incl li { position: relative; padding-left: 24px; font-size: .93rem; line-height: 1.4; color: #26303a; }
#app .ts-incl li::before { content: "\2713"; position: absolute; left: 0; color: #0A5BA6; font-weight: 800; -webkit-text-fill-color: #0A5BA6; }
#app .ts-err { margin: 6px 0 0; color: #b3261e; font-weight: 700; font-size: .9rem; }
#app .ts-link { background: transparent !important; border: 0 !important; color: #0A5BA6 !important; text-decoration: underline; font: inherit; font-size: .88rem; cursor: pointer; align-self: center; padding: 6px; }

#app .ts-faq { display: grid; gap: 8px !important; max-width: 820px; }
#app .ts-faq details { background: #ffffff; border: 1px solid #dde6ee; border-radius: 12px; padding: 12px 16px; }
#app .ts-faq summary { cursor: pointer; font-weight: 700; color: #0b0f14; }
#app .ts-faq p { margin: 8px 0 2px; color: #3f4a55; line-height: 1.55; font-size: .94rem; }
#app .ts-page { padding-bottom: 36px; }

@media (max-width: 720px) {
  #app .ts-facts { grid-template-columns: repeat(2, 1fr); }
  #app .ts-facts div:last-child { grid-column: span 2; }
  #app .ts-nav a { padding: 6px 9px; font-size: .86rem; }

  #app .ts-lesson { grid-template-columns: 36px 1fr; }
  #app .ts-min { grid-column: 2; justify-self: start; }
  #app .ts-status { flex-direction: column; align-items: flex-start; }
}

/* Logo: Chris's file when present, otherwise a simple SH mark, then the full name. */
#app .ts-logo { display: inline-flex; align-items: center; gap: 10px; color: #0b0f14; font-weight: 800; letter-spacing: -.005em; }
#app .ts-logo-img { height: 30px; width: auto; display: inline-block; }
#app .ts-logo-sh { width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; font-size: .82rem; font-weight: 800; letter-spacing: .02em; color: #ffffff; -webkit-text-fill-color: #ffffff; background: linear-gradient(135deg, #0C78C0, #0A5BA6); }
#app .ts-logo-name { font-size: 1rem; color: #0b0f14; -webkit-text-fill-color: #0b0f14; }
#app .ts-logo.light .ts-logo-name { color: #ffffff; -webkit-text-fill-color: #ffffff; }
#app .ts-brand { text-decoration: none; }
@media (max-width: 460px) { #app .ts-logo-name { font-size: .88rem; } #app .ts-bar { padding-left: 12px; padding-right: 12px; } }

/* Training sign-up and sign-in pages: same blue-and-white look as the business page. */
#app .ts-auth { background: linear-gradient(160deg, #eaf5fd 0%, #ffffff 55%); }
#app .ts-auth .bkp-card { border: 1px solid #dde6ee; border-top: 5px solid #19A3EE; box-shadow: 0 14px 34px rgba(10,91,166,.12); background: #ffffff; }
#app .ts-auth .ts-logo { margin-bottom: 8px; }
#app .ts-auth h1 { color: #0b0f14; -webkit-text-fill-color: #0b0f14 !important; }
#app .ts-auth .bkp-go { background: linear-gradient(135deg, #0C78C0, #0A5BA6) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 0; }
#app .ts-auth a { color: #0A5BA6; }
#app .ts-block, #app .ts-plans { scroll-margin-top: 72px; }

/* The shared page header and buttons, recolored inside the training pages. */
#app .ts-site .km-eyebrow { color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; }
#app .ts-site .km-button.primary, #app .ts-site .km-button-primary { background: linear-gradient(135deg, #0C78C0, #0A5BA6) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; border: 0 !important; }
#app .ts-site .km-button:not(.primary):not(.km-button-primary) { background: #ffffff !important; color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; border: 1px solid #c4d1dd !important; }
#app .ts-site .tcl-card { background: #ffffff; border-color: #dde6ee; }
#app .ts-site .tcl-lock { border-left-color: #19A3EE; }
#app .ts-site .tcl-pitch { border-left-color: #0A5BA6; }
#app .ts-auth .bkp-biz { color: #0A5BA6; }

/* ---- Always a light, high-contrast page, whatever the phone or app theme is ---- */
#app .ts-site, #app .ts-auth { color-scheme: light; }
#app .ts-auth { background: linear-gradient(160deg, #eaf5fd 0%, #ffffff 60%) !important; color: #0b0f14; min-height: 100vh; }
#app .ts-auth .bkp-card, #app .ts-site .tcl-card, #app .ts-site .ts-plan, #app .ts-site .ts-lesson { background: #ffffff !important; color: #0b0f14 !important; }
#app .ts-auth label, #app .ts-auth label *:not(input) { color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; font-weight: 700; }
#app .ts-auth h1, #app .ts-auth h2 { color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; }
#app .ts-auth p, #app .ts-auth .bkp-intro, #app .ts-auth .bkp-note { color: #2f3a46 !important; -webkit-text-fill-color: #2f3a46 !important; opacity: 1 !important; }
#app .ts-auth .bkp-biz { color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; }
#app .ts-auth input, #app .ts-auth input[type="text"], #app .ts-auth input[type="email"], #app .ts-auth input[type="password"], #app .ts-auth input[type="number"] {
  background: #ffffff !important; color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; caret-color: #0b0f14;
  border: 1.5px solid #6f879c !important; border-radius: 10px; box-shadow: none !important; }
#app .ts-auth input:focus { outline: 3px solid rgba(25,163,238,.45); outline-offset: 1px; border-color: #0A5BA6 !important; }
#app .ts-auth input::placeholder { color: #5d6b78 !important; -webkit-text-fill-color: #5d6b78 !important; opacity: 1; }
#app .ts-auth input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #ffffff inset !important; -webkit-text-fill-color: #0b0f14 !important; }
#app .ts-auth a { color: #0A5BA6 !important; -webkit-text-fill-color: #0A5BA6 !important; text-decoration: underline; }
#app .ts-auth .bkp-go { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
#app .ts-auth .bkp-note[role="alert"], #app .ts-auth [role="alert"] { color: #a31d15 !important; -webkit-text-fill-color: #a31d15 !important; font-weight: 700; }
#app .ts-logo-svg { flex: none; display: block; }
#app .ts-site .km-page, #app .ts-site .km-page p, #app .ts-site .km-page li, #app .ts-site .km-page label { color: #0b0f14; }
#app .ts-site .km-page p, #app .ts-site .km-page .km-description, #app .ts-site .tcl-muted { color: #2f3a46 !important; -webkit-text-fill-color: #2f3a46 !important; opacity: 1 !important; }
#app .ts-site .tcl-card textarea, #app .ts-site .tcl-linkrow input, #app .ts-site .ts-seats input { background: #ffffff !important; color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; border: 1.5px solid #6f879c !important; }
#app .ts-site .tcl-card textarea::placeholder { color: #5d6b78 !important; -webkit-text-fill-color: #5d6b78 !important; opacity: 1; }
#app .ts-site .tcl-good { color: #0b6b3a !important; -webkit-text-fill-color: #0b6b3a !important; }
#app .ts-site .tcl-bad, #app .ts-site .ts-err { color: #a31d15 !important; -webkit-text-fill-color: #a31d15 !important; }
#app .ts-site .ts-note, #app .ts-site .ts-sub, #app .ts-site .ts-lesson p, #app .ts-site .ts-steps p, #app .ts-site .ts-faq p, #app .ts-site .ts-status span, #app .ts-site .ts-facts span { color: #3b4753 !important; -webkit-text-fill-color: #3b4753 !important; }
#app .ts-site .ts-incl li, #app .ts-site .ts-goals li { color: #1f2a35 !important; -webkit-text-fill-color: #1f2a35 !important; }
#app .ts-site .ts-faq summary { color: #0b0f14 !important; -webkit-text-fill-color: #0b0f14 !important; }
#app .ts-foot { color: #3b4753 !important; -webkit-text-fill-color: #3b4753 !important; }

/* The customer's change-order approval page shares the clean, light, high-contrast card used for training sign-up. */
#app .ts-auth .cor-name { font-size: 1.15rem; margin: .6rem 0 .3rem; }
#app .ts-auth .cor-table { width: 100%; border-collapse: collapse; margin: .5rem 0 .8rem; font-size: .95rem; }
#app .ts-auth .cor-table td { padding: .4rem .3rem; border-bottom: 1px solid #dde6ee; color: #0b0f14; -webkit-text-fill-color: #0b0f14; }
#app .ts-auth .cor-table td.n { text-align: right; white-space: nowrap; }
#app .ts-auth .cor-table tfoot td { border-bottom: 0; font-weight: 700; }
#app .ts-auth .cor-decline { margin-top: .8rem; }
#app .ts-auth .cor-decline summary { cursor: pointer; color: #0A5BA6; font-weight: 700; }
#app .ts-auth .cor-no { margin-top: .5rem; padding: .6rem 1rem; border-radius: 10px; border: 1.5px solid #a31d15 !important; background: #fff !important; color: #a31d15 !important; -webkit-text-fill-color: #a31d15 !important; font: inherit; font-weight: 800; cursor: pointer; }
