/* Interactive demo in "Cómo funciona": a phone frame with a clickable copy of TerapIApp.
   Shell and in-app theme (.th-t) both use the TerapIApp tokens:
   surface #F2F5F3 / #FFFFFF / #E4EBE7 · line #D3DCD7 · line-strong #78877F · ink #13221C · ink-muted #4C5B54
   primary #1D5A47 (soft #DDEDE5) · ai #5847B0 (soft #EEEBFA) · rec #B23A1E (soft #FAE6E0) · warn #855400 (soft #FBF0D9) */

.demo-intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-top: 24px; }
.demo-intro__k {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: #FFFFFF; border: 1px solid #D3DCD7; font-size: 14px; font-weight: 700; color: #13221C;
}
.demo-intro__k b { padding: 3px 8px; border-radius: 999px; background: #EEEBFA; color: #5847B0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.demo-intro h3 { margin: 0; font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.demo-intro p { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: #4C5B54; }

/* ---------- Shell ---------- */

.demo {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 5vw, 72px); align-items: start;
  padding: clamp(20px, 3vw, 40px); border-radius: 36px; background: #E4EBE7;
}
.demo__panel { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding-top: 4px; }
.demo__roles {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border-radius: 999px; background: #FFFFFF; border: 1px solid #D3DCD7;
}
.demo__roles button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  color: #4C5B54; font: 700 15px "Figtree", system-ui, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.demo__roles button:hover { color: #13221C; }
.demo__roles button[aria-pressed="true"] { background: #1D5A47; color: #FFFFFF; }
.demo__roles .ico, .demo__now .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.demo__now { padding: 24px; border-radius: 24px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.demo__now-k { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1D5A47; }
.demo__now h3 { margin: 0; font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; color: #13221C; }
.demo__now p { margin: 0; font-size: 16px; line-height: 1.6; color: #4C5B54; }
.demo__feats { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.demo__feats li { padding: 5px 12px; border-radius: 999px; background: #DDEDE5; color: #1D5A47; font-size: 13px; font-weight: 700; }

.demo__steps-w { display: flex; flex-direction: column; gap: 10px; }
.demo__steps-t { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #4C5B54; }
.demo__steps-t span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.demo__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.demo__steps button {
  width: 100%; min-height: 46px; padding: 6px 12px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: #4C5B54; font: 600 15px "Figtree", system-ui, sans-serif; text-align: left;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.demo__steps button:hover { background: rgba(255,255,255,.6); color: #13221C; }
.demo__steps button[aria-current="step"] { background: #FFFFFF; border-color: #D3DCD7; color: #13221C; }
.demo__steps .n {
  width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid #78877F;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.demo__steps button[aria-current="step"] .n { background: #1D5A47; border-color: #1D5A47; color: #FFFFFF; }
.demo__steps button.is-done .n { border-color: #1D5A47; color: #1D5A47; }

.demo__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: #4C5B54; }
.demo__reset {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #78877F;
  background: #FFFFFF; color: #13221C; font: 700 14px "Figtree", system-ui, sans-serif; cursor: pointer;
}
.demo__reset:hover { border-color: #13221C; }
.demo button:focus-visible { outline: 2px solid #1D5A47; outline-offset: 2px; }

.demo__stage { justify-self: center; position: relative; width: 384px; }
.demo__live {
  margin: 0 auto 18px; width: fit-content; max-width: 100%; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid #D3DCD7;
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #13221C; white-space: nowrap;
}
.demo__live-b {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  background: #1D5A47; color: #FFFFFF; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.demo__live-b .dot { width: 8px; height: 8px; border-radius: 50%; background: #FFFFFF; animation: dmPulse 1.6s ease-in-out infinite; }

/* Coach mark: pulsing ring + bubble on the first thing to press, until the visitor touches the screen */
.dm-coach { position: absolute; z-index: 60; width: 0; height: 0; pointer-events: none; animation: dmFade .35s ease-out both; }
.dm-coach__ring {
  position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #FFFFFF; box-shadow: 0 0 0 3px #5847B0, 0 0 18px 4px rgba(88,71,176,.5); animation: dmRing 1.5s ease-out infinite;
}
.dm-coach__t {
  position: absolute; left: 0; top: 34px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: #5847B0; color: #FFFFFF; font: 800 13px/1 "Figtree", system-ui, sans-serif; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  animation: dmBob 1.5s ease-in-out infinite;
}
.dm-coach.is-up .dm-coach__t { top: auto; bottom: 34px; }
@keyframes dmRing { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes dmBob { 0%, 100% { margin-top: 0; } 50% { margin-top: 4px; } }

@media (max-width: 960px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo__stage { order: -1; }
  .demo__roles { align-self: center; }
}
@media (max-width: 480px) {
  .demo { padding: 16px; border-radius: 28px; }
  .demo__live { font-size: 13px; gap: 8px; white-space: normal; }
  .demo__now { padding: 18px; }
}

/* ---------- Phone frame ---------- */

.phone2 {
  position: relative; width: 384px; height: 784px; padding: 12px; border-radius: 60px; background: #13221C;
  box-shadow: 0 50px 90px -24px rgba(19,34,28,.45), inset 0 0 0 2px #2B3933, inset 0 0 0 6px #13221C, inset 0 0 0 7px #212E29;
  transform-origin: top left;
}
.phone2::before, .phone2::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #212E29; }
.phone2::before { left: -3px; top: 150px; height: 64px; box-shadow: 0 84px 0 #212E29; }
.phone2::after { right: -3px; top: 200px; height: 96px; }
.phone2__screen { position: relative; width: 360px; height: 760px; border-radius: 48px; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.dm-status {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; padding: 0 30px 0 38px;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 15px -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; z-index: 3;
}
.dm-status__icons { display: flex; align-items: center; gap: 6px; }
.dm-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #000; z-index: 4; }
.dm-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dm-scroll { position: relative; flex: 1; min-height: 0; padding-top: 52px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.dm-scroll::-webkit-scrollbar { display: none; }
.dm-layer { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
.dm-layer > * { pointer-events: auto; }
.dm-homebar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 128px; height: 5px; border-radius: 3px; z-index: 9; pointer-events: none; background: #13221C; }
.dm-notif {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 25; padding: 12px 14px; border: 0; border-radius: 22px;
  background: rgba(250,250,250,.95); color: #111; text-align: left; cursor: pointer;
  display: flex; gap: 10px; align-items: flex-start; font: 400 14px/19px -apple-system, "SF Pro Text", system-ui, sans-serif;
  box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); animation: dmDrop .35s cubic-bezier(.2,.8,.2,1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.dm-notif__icon { flex: none; border-radius: 8px; overflow: hidden; display: flex; }
.dm-notif__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-notif__hd { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: #555; }
.dm-notif__hd b { font-weight: 600; }

.dm-view.is-fwd { animation: dmFwd .28s cubic-bezier(.2,.8,.2,1); }
.dm-view.is-back { animation: dmBack .28s cubic-bezier(.2,.8,.2,1); }
.dm-view.is-fade { animation: dmFade .25s ease-out; }
@keyframes dmFwd { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dmBack { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dmDrop { from { transform: translateY(-120%); } to { transform: none; } }
@keyframes dmPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
@keyframes dmPop { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes dmSpin { to { transform: rotate(360deg); } }
@keyframes dmDots { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes dmBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes dmShimmer { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes dmWave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }

.dm-toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 20;
  width: calc(100% - 32px); box-sizing: border-box; padding: 14px 16px; border-radius: 18px; background: #13221C; color: #FFFFFF;
  display: flex; gap: 10px; align-items: flex-start; font: 600 14px/20px "Figtree", system-ui, sans-serif;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); animation: dmPop .25s ease-out;
}
.dm-toast .ico { flex: none; color: #7FCBAE; }
.dm-overlay {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(242,245,243,.96); color: #13221C; font: 700 16px "Figtree", system-ui, sans-serif; animation: dmFade .2s ease-out;
}
.dm-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #1D5A47; border-right-color: transparent; animation: dmSpin .8s linear infinite; }
.dm-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.dm-typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dmDots 1.2s infinite; }
.dm-typing i:nth-child(2) { animation-delay: .15s; }
.dm-typing i:nth-child(3) { animation-delay: .3s; }

.phone2 button, .phone2 input, .phone2 textarea { font-family: inherit; }
.phone2 :focus-visible { outline: 2px solid #1D5A47; outline-offset: 2px; }
.phone2 .ico, .dm-toast .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .dm-view.is-fwd, .dm-view.is-back, .dm-view.is-fade, .dm-toast, .dm-overlay, .dm-notif { animation: none; }
  .demo__live-b .dot, .dm-spin, .dm-typing i, .dm-coach__t, .th-t .wave i, .th-t .ring, .th-t .sp, .th-t .caret, .th-t .skel i, .th-t .segs i.cur, .th-t .recdot, .th-t .livedot { animation: none; }
  .dm-coach__ring { animation: none; transform: scale(1.1); }
}

/* =====================================================================
   Theme: TerapIApp (inside the phone)
   ===================================================================== */
.th-t { background: #F2F5F3; color: #13221C; font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 22px; font-weight: 500; -webkit-font-smoothing: antialiased; }
.th-t .dm-status { background: #F2F5F3; }
.th-t p { margin: 0; }
.th-t .pad { padding: 8px 16px 28px; display: flex; flex-direction: column; gap: 16px; }
.th-t .pad--tabs { padding-bottom: 104px; }
.th-t .stack { display: flex; flex-direction: column; min-width: 0; }
.th-t .row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.th-t .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.th-t .top__m { flex: 1; min-width: 0; }
.th-t .h1 { margin: 0; font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; font-size: 29px; line-height: 34px; letter-spacing: -.02em; }
.th-t .h2 { margin: 0; font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -.01em; }
.th-t .title { font-size: 17px; line-height: 24px; font-weight: 700; }
.th-t .p { font-size: 15px; line-height: 23px; }
.th-t .p-lg { font-size: 16px; line-height: 25px; }
.th-t .sm { font-size: 14px; line-height: 20px; }
.th-t .xs { font-size: 12.5px; line-height: 17px; }
.th-t .b7 { font-weight: 700; } .th-t .b8 { font-weight: 800; }
.th-t .num { font-variant-numeric: tabular-nums; }
.th-t .mut { color: #4C5B54; }
.th-t .g { color: #1D5A47; } .th-t .ai { color: #5847B0; } .th-t .warn { color: #855400; } .th-t .rec { color: #B23A1E; }
.th-t .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-t .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.th-t .ov { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4C5B54; }
.th-t .ov.g { color: #1D5A47; } .th-t .ov.ai { color: #5847B0; } .th-t .ov.rec { color: #B23A1E; }
.th-t .brand { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.02em; color: #1D5A47; }
.th-t .priv { display: inline-flex; align-items: center; gap: 4px; color: #4C5B54; font-size: 13px; font-weight: 700; }
.th-t .link { border: 0; background: transparent; padding: 6px 0; color: #1D5A47; font-weight: 700; cursor: pointer; }
.th-t .link.ai { color: #5847B0; }

.th-t .card { background: #FFFFFF; border: 1px solid #D3DCD7; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; text-align: left; color: inherit; font: inherit; }
.th-t .card.row { flex-direction: row; }
.th-t .card--list { padding: 0 16px; }
.th-t .card--join { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: -16px; }
.th-t .joinbar { display: flex; gap: 8px; padding: 0 16px 16px; background: #FFFFFF; border: 1px solid #D3DCD7; border-top: 0; border-radius: 0 0 16px 16px; }
.th-t .joinbar .btn { flex: 1; }
.th-t .lcard { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; width: 100%; }
.th-t .lcard:hover, .th-t .lrow:hover { background: #F7F9F8; }
.th-t .lrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid #E4EBE7; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.th-t .lrow:last-child { border-bottom: 0; }
.th-t div.lrow { cursor: default; }
.th-t div.lrow:hover { background: transparent; }
.th-t .aib { background: #EEEBFA; border-radius: 16px; padding: 14px 16px; }
.th-t .ico-b { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #DDEDE5; color: #1D5A47; display: flex; align-items: center; justify-content: center; }
.th-t .ico-b.warn { background: #FBF0D9; color: #855400; }
.th-t .ico-b.ai { background: #EEEBFA; color: #5847B0; }

.th-t .av { flex: none; width: 44px; height: 44px; border-radius: 999px; background: #DDEDE5; color: #1D5A47; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; }
.th-t .av--lg { width: 56px; height: 56px; font-size: 18px; }
.th-t .av--warn { background: #FBF0D9; color: #855400; }
.th-t .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 10px; font-size: 11.5px; line-height: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.th-t .b-ok { background: #DDEDE5; color: #1D5A47; }
.th-t .b-warn { background: #FBF0D9; color: #855400; }
.th-t .b-ai { background: #EEEBFA; color: #5847B0; }
.th-t .b-neu { background: #E4EBE7; color: #13221C; }
.th-t .b-out { background: #FFFFFF; color: #13221C; border: 1px solid #D3DCD7; }
.th-t .tagmini { padding: 1px 6px; border-radius: 6px; background: #DDEDE5; color: #1D5A47; font-size: 11px; font-weight: 800; }
.th-t .livedot, .th-t .recdot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; animation: dmPulse 1.2s ease-in-out infinite; }
.th-t .recdot { width: 10px; height: 10px; }
.th-t .cnt { flex: none; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #1D5A47; color: #FFFFFF; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.th-t .btn {
  width: 100%; min-height: 54px; padding: 0 20px; box-sizing: border-box; border-radius: 16px; border: 1px solid #1D5A47;
  background: #1D5A47; color: #FFFFFF; font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
}
.th-t .btn:hover { background: #174A3A; }
.th-t .btn--line { background: #FFFFFF; color: #13221C; border-color: #78877F; }
.th-t .btn--line:hover { background: #F2F5F3; }
.th-t .btn--rec { background: #B23A1E; border-color: #B23A1E; }
.th-t .btn--rec:hover { background: #9A3119; }
.th-t .btn--ai { background: #5847B0; border-color: #5847B0; }
.th-t .btn--ai:hover { background: #4A3B99; }
.th-t .btn--sm { min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 14px; width: auto; }
.th-t .btn--auto { width: auto; }
.th-t .rb { position: relative; flex: none; width: 48px; height: 48px; box-sizing: border-box; border-radius: 999px; border: 1px solid #D3DCD7; background: #FFFFFF; color: #13221C; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.th-t .rb--flat { border: 0; background: transparent; width: 44px; height: 44px; margin: -6px -8px 0 0; }
.th-t .rb--sm { margin: -10px -10px -10px 0; color: #4C5B54; }
.th-t .pip { position: absolute; top: 8px; right: 9px; width: 10px; height: 10px; border-radius: 999px; background: #B23A1E; border: 2px solid #FFFFFF; }

.th-t .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.th-t .chips--x { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.th-t .chips--x::-webkit-scrollbar { display: none; }
.th-t .chip { flex-shrink: 0; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; border: 1px solid #78877F; background: #FFFFFF; color: #13221C; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.th-t .chip[aria-pressed="true"] { background: #1D5A47; border-color: #1D5A47; color: #FFFFFF; }
.th-t .chip--ai { border-color: #B9AEF5; color: #5847B0; background: #FFFFFF; }
.th-t .chip--ai:hover { background: #EEEBFA; }
.th-t .srcchip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: #FFFFFF; color: #5847B0; font-size: 13px; font-weight: 700; cursor: pointer; }
.th-t .seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #E4EBE7; }
.th-t .seg button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #4C5B54; font-size: 14px; font-weight: 700; cursor: pointer; }
.th-t .seg button[aria-pressed="true"] { background: #FFFFFF; color: #13221C; border-color: #D3DCD7; }
.th-t .sw { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border-radius: 999px; border: 1px solid #78877F; background: #E4EBE7; cursor: pointer; }
.th-t .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 999px; background: #4C5B54; transition: left .15s, background .15s; }
.th-t .sw[aria-checked="true"] { background: #1D5A47; border-color: #1D5A47; }
.th-t .sw[aria-checked="true"]::after { left: 23px; background: #FFFFFF; }

.th-t .foot { position: relative; z-index: 2; flex: none; padding: 14px 16px 26px; background: #FFFFFF; border-top: 1px solid #D3DCD7; box-shadow: 0 -8px 24px rgba(19,34,28,.08); display: flex; flex-direction: column; gap: 10px; }
.th-t .foot--row { flex-direction: row; align-items: center; }
.th-t .foot--chat { margin-bottom: 84px; padding-bottom: 12px; box-shadow: none; }
.th-t .tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 84px; box-sizing: border-box; padding: 10px 8px 22px; background: #FFFFFF; border-top: 1px solid #D3DCD7; display: flex; }
.th-t .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: transparent; color: #4C5B54; font-size: 12px; line-height: 16px; font-weight: 700; cursor: pointer; }
.th-t .tab .tpill { position: relative; width: 56px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.th-t .tab.on { color: #1D5A47; }
.th-t .tab.on .tpill { background: #DDEDE5; }
.th-t .tab .pip { top: 0; right: 10px; }

.th-t .inp { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid #78877F; background: #FFFFFF; color: #13221C; font-size: 16px; line-height: 24px; resize: none; }
.th-t .inp:focus { outline: 2px solid #1D5A47; outline-offset: 2px; }
.th-t .errt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 700; color: #A3261C; }
.th-t .req { color: #A3261C; }
.th-t .q { background: #FFFFFF; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.th-t .ql { font-size: 16px; line-height: 22px; font-weight: 700; }
.th-t .prog { display: flex; gap: 6px; }
.th-t .prog i { flex: 1; height: 6px; border-radius: 999px; background: #D3DCD7; }
.th-t .prog i.on { background: #1D5A47; }
.th-t .nsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.th-t .nsteps li { display: flex; gap: 12px; align-items: flex-start; }
.th-t .nb { flex: none; width: 32px; height: 32px; border-radius: 999px; background: #E4EBE7; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.th-t .chk { display: flex; gap: 12px; align-items: flex-start; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.th-t .chk .box { flex: none; width: 24px; height: 24px; box-sizing: border-box; border-radius: 6px; border: 2px solid #78877F; background: #FFFFFF; color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.th-t .chk[aria-checked="true"] .box { background: #1D5A47; border-color: #1D5A47; }

.th-t .days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.th-t .days::-webkit-scrollbar { display: none; }
.th-t .days button { position: relative; flex: none; width: 54px; height: 64px; border-radius: 16px; border: 1px solid #D3DCD7; background: #FFFFFF; color: #13221C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; font-size: 18px; }
.th-t .days--p button { width: 70px; }
.th-t .days button[aria-selected="true"] { background: #1D5A47; border-color: #1D5A47; color: #FFFFFF; }
.th-t .pip2 { position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 999px; background: #855400; }
.th-t .days button[aria-selected="true"] .pip2 { background: #FFFFFF; }
.th-t .slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.th-t .slots button { min-height: 60px; border-radius: 14px; border: 1px solid #78877F; background: #FFFFFF; color: #13221C; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; }
.th-t .slots button[aria-checked="true"] { background: #1D5A47; border-color: #1D5A47; color: #FFFFFF; }
.th-t .datebox { flex: none; width: 56px; height: 56px; border-radius: 14px; background: #DDEDE5; color: #1D5A47; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; line-height: 22px; }
.th-t .agi.is-new { border-color: #855400; }

.th-t .tiles { display: flex; gap: 3px; flex-shrink: 0; }
.th-t .tiles i { width: 20px; height: 24px; border-radius: 6px; background: #DDEDE5; color: #1D5A47; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-style: normal; }
.th-t .tiles i.ai { background: #EEEBFA; color: #5847B0; }
.th-t .tplrow { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 14px; border: 0; background: #F2F5F3; color: inherit; text-align: left; cursor: pointer; }
.th-t .askbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 16px; border: 1px solid #78877F; background: #FFFFFF; color: #13221C; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }

/* Sheets */
.th-t .scrim { position: absolute; inset: 0; z-index: 4; background: rgba(14,21,19,.48); animation: dmFade .2s ease-out; }
.th-t .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 86%; overflow-y: auto; box-sizing: border-box; padding: 8px 16px 28px; background: #FFFFFF; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px rgba(19,34,28,.12); display: flex; flex-direction: column; gap: 14px; animation: dmSheet .28s cubic-bezier(.2,.8,.2,1); scrollbar-width: none; }
.th-t .grab { align-self: center; width: 36px; height: 4px; border-radius: 999px; background: #D3DCD7; }
@keyframes dmSheet { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.th-t .tpls { border: 1px solid #E4EBE7; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.th-t .tpls button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-bottom: 1px solid #E4EBE7; background: #FFFFFF; color: #13221C; text-align: left; cursor: pointer; }
.th-t .tpls button:last-child { border-bottom: 0; }
.th-t .tpls button[aria-checked="true"] { background: #F2F5F3; }
.th-t .rdot { flex: none; width: 22px; height: 22px; box-sizing: border-box; border-radius: 999px; border: 2px solid #78877F; background: #FFFFFF; }
.th-t [aria-checked="true"] > .rdot { border: 7px solid #1D5A47; }

/* Recording */
.th-t .recbox { background: #FAE6E0; border-radius: 24px; padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.th-t .recbox.is-paused { background: #E4EBE7; }
.th-t .recbox.is-paused .ov.rec { color: #4C5B54; }
.th-t .timer { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; font-size: 60px; line-height: 64px; letter-spacing: -.02em; }
.th-t .wave { height: 72px; display: flex; align-items: center; gap: 6px; }
.th-t .wave i { width: 6px; border-radius: 999px; background: #B23A1E; animation: dmWave 1s ease-in-out infinite; }
.th-t .recbox.is-paused .wave i { background: #78877F; animation-play-state: paused; }
.th-t .marks { list-style: none; margin: 0; padding: 0; }
.th-t .marks li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #D3DCD7; }

/* Note being written */
.th-t .spinbig { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.th-t .spinbig::before { content: ""; position: absolute; inset: 8px; border-radius: 999px; background: #EEEBFA; }
.th-t .ring { position: absolute; inset: 2px; border-radius: 999px; border: 4px solid rgba(88,71,176,.16); border-top-color: #5847B0; animation: dmSpin 1.4s linear infinite; }
.th-t .sp { position: relative; color: #5847B0; display: flex; animation: dmPulse 1.8s ease-in-out infinite; }
.th-t .donebig { width: 88px; height: 88px; border-radius: 999px; background: #DDEDE5; color: #1D5A47; display: flex; align-items: center; justify-content: center; }
.th-t .segs { display: flex; gap: 4px; }
.th-t .segs i { flex: 1; height: 6px; border-radius: 999px; background: #E4EBE7; }
.th-t .segs i.on { background: #5847B0; }
.th-t .segs i.cur { background: #B9AEF5; animation: dmShimmer 1.1s ease-in-out infinite; }
.th-t .reason { max-height: 176px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px); }
.th-t .rline { display: flex; gap: 10px; align-items: flex-start; }
.th-t .rline p { font-size: 14px; line-height: 21px; color: #4C5B54; }
.th-t .rline p.last { color: #13221C; }
.th-t .rdotc { flex: none; margin-top: 2px; width: 18px; height: 18px; border-radius: 999px; background: #FFFFFF; color: #5847B0; display: flex; align-items: center; justify-content: center; }
.th-t .rdotc .ico { stroke-width: 2.6; }
.th-t .rdotc.is-typing { background: transparent; }
.th-t .rdotc.is-typing::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #5847B0; animation: dmPulse 1s ease-in-out infinite; }
.th-t .caret { display: inline-block; width: 2px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #5847B0; animation: dmBlink .9s steps(1) infinite; }
.th-t .skel { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.th-t .skel i { height: 10px; border-radius: 999px; background: #E4EBE7; animation: dmShimmer 1.4s ease-in-out infinite; }

/* Note, file, history */
.th-t .dots { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 22px; }
.th-t .trl { display: flex; flex-direction: column; gap: 2px; }
.th-t .trl.is-mark { padding: 8px 10px; margin: 0 -10px; border-radius: 10px; background: #DDEDE5; }
.th-t .qa { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.th-t .qa dt { font-size: 13px; line-height: 18px; font-weight: 700; color: #4C5B54; margin-top: 6px; }
.th-t .qa dd { margin: 0; font-size: 15px; line-height: 22px; }
.th-t .tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.th-t .tl::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: #D3DCD7; }
.th-t .tl li { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.th-t .tl__dot { position: relative; z-index: 1; flex: none; margin-top: 18px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 999px; background: #FFFFFF; border: 3px solid #78877F; }
.th-t .tl li.is-today .tl__dot { border-color: #1D5A47; background: #1D5A47; }
.th-t .tl li.is-hito .tl__dot { border-color: #855400; background: #FBF0D9; }
.th-t .tl__c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid #D3DCD7; background: #FFFFFF; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.th-t .tl li.is-hito .tl__c { background: #FBF0D9; border-color: #FBF0D9; }

/* Chat */
.th-t .chat { display: flex; flex-direction: column; gap: 10px; }
.th-t .bub { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 22px; display: flex; flex-direction: column; gap: 6px; }
.th-t .bub.me { align-self: flex-end; background: #1D5A47; color: #FFFFFF; border-bottom-right-radius: 6px; }
.th-t .bub.them { align-self: flex-start; background: #FFFFFF; border: 1px solid #D3DCD7; border-bottom-left-radius: 6px; }
.th-t .bub.ai { align-self: flex-start; max-width: 92%; background: #EEEBFA; color: #13221C; border-bottom-left-radius: 6px; }
.th-t .bub.ai b { font-weight: 800; }
.th-t .bub .at { font-size: 11.5px; line-height: 14px; opacity: .7; align-self: flex-end; }
.th-t .composer { display: flex; gap: 8px; align-items: center; }
.th-t .composer .inp { padding: 10px 14px; border-radius: 999px; font-size: 15px; }
.th-t .sendb { flex: none; width: 46px; height: 46px; border-radius: 999px; border: 0; background: #1D5A47; color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; }
