/* Creative Minds AI Trainer: glowing talking circle (orb based on Leaf from The Garden At No. 6 app) */
.tr-app{max-width:640px;margin:0 auto;padding:6px 0 0;min-height:70vh;display:flex;flex-direction:column}
.tr-top{display:flex;justify-content:center;padding:10px 12px 0}
.mode-toggle{display:flex;gap:4px;padding:4px;border-radius:30px;background:#fff;border:1px solid var(--line);box-shadow:0 4px 14px -8px rgba(15,91,90,.35)}
.mode-toggle button{display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:9px 18px;border-radius:24px;font:600 14px var(--font);color:var(--muted);cursor:pointer;-webkit-tap-highlight-color:transparent}
.mode-toggle button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mode-toggle button.on{background:var(--brand);color:#fff}
.orb-stage{position:relative;margin:12px 12px 6px;padding:18px 16px;border-radius:30px;text-align:center;color:#EAF4F2;overflow:hidden;isolation:isolate;
  background:radial-gradient(120% 80% at 50% 28%,#16706e 0%,#0f5b5a 45%,#082f2f 100%);box-shadow:0 18px 40px -18px rgba(8,47,47,.65),inset 0 1px 0 rgba(255,255,255,.08)}
.orb-stage::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.5;background:radial-gradient(60% 40% at 50% 100%,rgba(242,163,58,.2),transparent 70%),radial-gradient(40% 30% at 12% 8%,rgba(224,64,154,.08),transparent 70%),radial-gradient(40% 30% at 90% 10%,rgba(54,180,224,.1),transparent 70%)}
.orb{--orb-s:1;position:relative;display:block;width:min(70vw,270px);transition:width .5s cubic-bezier(.2,.8,.2,1);aspect-ratio:1;margin:0 auto;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:50%}
.orb-cv{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.orb-disc{--d:46%;position:absolute;left:calc((100% - var(--d)) / 2);top:calc((100% - var(--d)) / 2);width:var(--d);height:var(--d);transition:width .5s,height .5s,left .5s,top .5s;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 35% 30%,#1b7f7c,#0b4342);transform:scale(var(--orb-s));will-change:transform;
  box-shadow:0 0 0 1px rgba(255,255,255,.5),0 10px 30px -6px rgba(0,0,0,.45)}
.orb-disc svg{position:absolute;inset:12%;width:76%;height:76%}
.orb-disc::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(70% 45% at 35% 18%,rgba(255,255,255,.45),transparent 60%);mix-blend-mode:soft-light}
.orb-name h1{font-size:30px;line-height:1;color:#fff;margin:2px 0 0;letter-spacing:.3px}
.orb-name em{display:block;font-style:normal;font-size:11px;letter-spacing:2.2px;text-transform:uppercase;color:var(--accent);margin-top:6px;font-weight:700}
.orb-status{min-height:40px;margin:10px auto 2px;max-width:320px;font-size:14.5px;line-height:1.4;color:rgba(234,244,242,.9);display:flex;align-items:center;justify-content:center}
.orb-stage[data-state="listening"] .orb-status{color:#BFE6F2}
.orb-stage[data-state="thinking"] .orb-status{color:#FBD9A5}
.orb-ctrls{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:8px}
.orb-mic{width:72px;height:72px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;color:var(--brand);
  background:linear-gradient(160deg,#fff,#f1ece2);box-shadow:0 0 0 3px rgba(242,163,58,.9),0 10px 24px -8px rgba(0,0,0,.55);transition:transform .15s,box-shadow .3s}
.orb-mic svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.orb-mic:active{transform:scale(.95)}
.orb-mic.on{background:linear-gradient(160deg,#E9F7FB,#CBE9F2);color:#0E5A72;box-shadow:0 0 0 3px rgba(54,180,224,.9),0 0 0 calc(6px + var(--orb-e,0) * 22px) rgba(54,180,224,.18)}
.orb-side{width:64px;display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:none;color:rgba(234,244,242,.88);font:11px var(--font);cursor:pointer;padding:0}
.orb-side svg{width:44px;height:44px;padding:11px;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.orb-side:disabled{opacity:.32;cursor:default}
.tr-app.talking .orb-stage{position:sticky;top:6px;z-index:6;padding:10px 14px 12px}
.tr-app.talking .orb{width:min(42vw,170px)}
.tr-app.talking .orb-name{display:none}
.tr-app.talking .orb-status{min-height:34px;font-size:14px;margin-top:2px}
.tr-app.talking .orb-mic{width:60px;height:60px}
.tr-bar{margin:6px 12px 0;padding:10px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.tr-bar b{color:var(--brand)}
.tr-bar .sp{flex:1}
.tr-bar button,.tr-link{border:0;background:var(--brand-l);color:var(--brand-d);font:600 13px var(--font);padding:7px 12px;border-radius:20px;cursor:pointer}
.tr-free{margin:8px 12px 0;padding:10px 14px;border-radius:14px;background:var(--accent-l);border:1px solid #f4c98a;font-size:14px;color:#6b4407}
.tr-prog{height:6px;border-radius:6px;background:#e9efee;flex-basis:100%;overflow:hidden}.tr-prog i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--accent))}
.msgs{flex:1;padding:10px 14px 12px;display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;padding:11px 15px;border-radius:20px;font-size:15px;line-height:1.5;word-wrap:break-word;overflow-wrap:anywhere}
.msg.u{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:6px}
.msg.a{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:6px}
.msg.a p{margin:0 0 8px}.msg.a p:last-child{margin:0}
.msg.a ul{margin:4px 0 8px;padding-left:20px}
.msg pre{background:#0b2e2e;color:#e6f4f1;padding:10px 12px;border-radius:12px;overflow-x:auto;font-size:13px;margin:6px 0}
.msg code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.92em}
.msg :not(pre)>code{background:var(--brand-l);padding:1px 5px;border-radius:5px}
.msg.note{background:var(--accent-l);border-color:#f4c98a}
.typing span{display:inline-block;width:7px;height:7px;margin:0 2px;border-radius:50%;background:var(--brand);animation:trbob 1s infinite}
.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
@keyframes trbob{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.tr-card{align-self:stretch;background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:var(--shadow)}
.tr-courses{display:grid;gap:10px}
.tr-course{display:block;width:100%;text-align:left;border:1px solid var(--line);background:var(--bg);border-radius:16px;padding:12px 14px;cursor:pointer;font:inherit;color:var(--ink)}
.tr-course b{display:block;font-size:16px;color:var(--brand-d)}.tr-course span{font-size:13.5px;color:var(--muted)}
.tr-course em{display:inline-block;margin-top:6px;font-style:normal;font-size:12px;font-weight:700;color:var(--brand);background:var(--brand-l);padding:2px 8px;border-radius:10px}
.tr-course:active{transform:scale(.99)}
.tr-plans{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 12px}
.tr-plans label{border:2px solid var(--line);border-radius:14px;padding:10px;cursor:pointer;text-align:center;font-size:13.5px}
.tr-plans label b{display:block;font-size:18px;color:var(--ink)}
.tr-plans input{position:absolute;opacity:0;pointer-events:none}
.tr-plans label:has(input:checked){border-color:var(--brand);background:var(--brand-l)}
.tr-bank{background:var(--bg);border:1px dashed var(--brand);border-radius:14px;padding:12px;font-size:14px}
.tr-bank .row{display:flex;justify-content:space-between;gap:10px;padding:3px 0}
.tr-bank .num{font-size:20px;font-weight:800;letter-spacing:1px;color:var(--ink)}
.tr-copy{border:0;background:var(--brand);color:#fff;font:600 13px var(--font);padding:7px 14px;border-radius:18px;cursor:pointer}
.tr-wa{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;background:var(--wa);color:#fff;text-decoration:none;font-weight:700;padding:12px;border-radius:14px}
.tr-wa:hover{color:#fff;background:var(--wa-d)}
.tr-code{display:flex;gap:8px;margin-top:12px}
.tr-code input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font:600 15px var(--font);text-transform:uppercase}
.tr-code button,.tr-btn{border:0;background:var(--accent);color:#2b1a02;font:700 14px var(--font);padding:11px 16px;border-radius:12px;cursor:pointer}
.tr-small{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.tr-chips{display:flex;gap:8px;overflow-x:auto;padding:4px 14px 6px;scrollbar-width:none}
.tr-chips::-webkit-scrollbar{display:none}
.tr-chips button{flex:none;padding:9px 14px;border-radius:18px;font:600 13.5px var(--font);cursor:pointer;color:var(--brand-d);background:#fff;border:1px solid #bcd9d5}
.tr-chips button.hot{background:var(--accent);border-color:var(--accent);color:#2b1a02}
.composer{position:sticky;bottom:0;background:linear-gradient(transparent,var(--bg) 30%);padding:8px 12px 12px;z-index:5}
.composer form{display:flex;align-items:flex-end;gap:8px;background:#fff;border:1px solid #bcd9d5;border-radius:26px;padding:6px 6px 6px 14px;box-shadow:var(--shadow)}
.composer textarea:focus{outline:0;box-shadow:none}
.composer textarea{min-height:0;height:40px;box-shadow:none;border-radius:0;flex:1;min-width:0;border:0;outline:0;resize:none;background:transparent;padding:9px 0;max-height:120px;font:15.5px var(--font)}
.round{flex:none;width:40px;height:40px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;background:var(--brand);color:#fff}
.round svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.composer .hint{text-align:center;font-size:11.5px;color:var(--muted);margin-top:6px}
.composer .hint a{color:var(--muted)}
.tr-sheet{position:fixed;inset:0;z-index:60;background:rgba(8,30,30,.5);display:flex;align-items:flex-end;justify-content:center}
.tr-sheet>div{background:#fff;width:100%;max-width:560px;max-height:80vh;overflow:auto;border-radius:22px 22px 0 0;padding:16px}
.tr-sheet h3{margin:0 0 10px}
.tr-sheet button.ls{display:flex;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:var(--bg);padding:11px 12px;border-radius:12px;margin-bottom:8px;font:inherit;cursor:pointer;color:var(--ink)}
.tr-sheet button.ls.cur{border-color:var(--brand);background:var(--brand-l)}
.tr-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:20px;font-size:14px;z-index:80;max-width:90vw;text-align:center}
.tr-soon{margin:20px 12px;text-align:center}
@media (min-width:700px){.orb-stage{margin:14px 12px 8px}}
@media (prefers-reduced-motion:reduce){.orb-disc{transform:none}}
.tr-bar[hidden]{display:none}
.composer .tr-chips{padding:0 2px 8px}

/* ---------- live call ---------- */
.tr-callbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:0 0 10px;padding:13px 16px;border:0;border-radius:999px;
  background:linear-gradient(135deg,#0f5b5a,#16706e);color:#fff;font:700 15.5px/1.2 inherit;font-family:inherit;cursor:pointer;box-shadow:0 6px 18px rgba(15,91,90,.28)}
.tr-callbtn .dot{width:10px;height:10px;border-radius:50%;background:#ff4d4d;box-shadow:0 0 0 0 rgba(255,77,77,.7);animation:cmPulse 1.6s infinite}
@keyframes cmPulse{0%{box-shadow:0 0 0 0 rgba(255,77,77,.7)}70%{box-shadow:0 0 0 10px rgba(255,77,77,0)}100%{box-shadow:0 0 0 0 rgba(255,77,77,0)}}
.call-pre h3{margin:0 0 6px}
.call-field{display:block;font-size:13.5px;font-weight:600;margin:0 0 12px}
.call-field input{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #cfdcda;border-radius:12px;font:inherit;font-size:16px}
.call-consent{display:flex;gap:10px;align-items:flex-start;padding:12px;border:2px solid #f2a33a;border-radius:14px;background:#fff8ec;font-size:14px;line-height:1.45;margin:0 0 12px;cursor:pointer}
.call-consent input{width:22px;height:22px;flex:0 0 22px;margin:1px 0 0;accent-color:#0f5b5a}
.call-go{width:100%}
.call-go:disabled{opacity:.45;cursor:not-allowed}
.call-alt{display:block;width:100%;margin-top:10px;padding:12px;border:1px solid #cfdcda;border-radius:999px;background:#fff;color:#0f5b5a;font:600 14.5px inherit;font-family:inherit;text-align:center;text-decoration:none;cursor:pointer}
body.in-call{overflow:hidden}
.call{position:fixed;inset:0;z-index:300;display:flex;flex-direction:column;align-items:center;color:#fff;
  background:radial-gradient(120% 80% at 50% 25%,#16706e 0%,#0f5b5a 45%,#082f2f 100%);padding:calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 18px)}
.call-top{display:flex;align-items:center;gap:10px;width:100%;font-size:13px;font-weight:600;opacity:.95}
.call-live{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:rgba(0,0,0,.28);letter-spacing:.06em}
.call-live i{width:8px;height:8px;border-radius:50%;background:#3ddc84}
.call-live i.rec{background:#ff4d4d;animation:cmBlink 1s steps(2) infinite}
@keyframes cmBlink{50%{opacity:.2}}
.call-course{margin-left:auto;opacity:.8;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.call-self{position:absolute;top:calc(env(safe-area-inset-top) + 52px);right:14px;width:96px;height:128px;object-fit:cover;border-radius:14px;
  transform:scaleX(-1);border:2px solid rgba(255,255,255,.7);background:#0b2e2e;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.call-self.off{opacity:.25}
.call-orb{position:relative;width:min(72vw,300px);height:min(72vw,300px);margin:6vh 0 0;border:0;padding:0;background:none;cursor:pointer;flex:0 0 auto}
.call-name{margin-top:6px;font-size:26px;font-weight:800;text-align:center}
.call-name small{display:block;font-size:11.5px;letter-spacing:.12em;color:#f2a33a;font-weight:700;text-transform:uppercase;margin-top:2px}
.call-status{margin-top:12px;font-size:15px;opacity:.9;min-height:20px;text-align:center}
.call[data-phase="listening"] .call-status{color:#9ff0c9}
.call-cap{margin-top:10px;max-width:520px;max-height:22vh;overflow:auto;font-size:15.5px;line-height:1.45;text-align:center;opacity:.92;padding:0 6px}
.call-type{display:flex;gap:8px;width:100%;max-width:520px;margin-top:auto}
.call-type[hidden]{display:none}
.call-type input{flex:1;padding:12px 14px;border-radius:999px;border:0;font:inherit;font-size:16px}
.call-type .round{width:46px;height:46px;border-radius:50%;border:0;background:#f2a33a;color:#fff;display:grid;place-items:center}
.call-type .round svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.call-ctrls{display:flex;gap:18px;justify-content:center;margin-top:auto;padding-top:14px}
.call-type:not([hidden])+.call-ctrls{margin-top:12px}
.call-b{display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;color:#fff;font:600 12px inherit;font-family:inherit;cursor:pointer}
.call-b svg{width:58px;height:58px;padding:16px;border-radius:50%;background:rgba(255,255,255,.16);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.call-b.off svg{background:#fff;color:#0f5b5a}
.call-b.end svg{background:#e5484d;stroke:none;color:#fff}
.rec-prev{width:100%;max-height:46vh;border-radius:14px;background:#000;margin:4px 0 8px}
.rec-bar{height:8px;border-radius:99px;background:#e2ecea;overflow:hidden;margin:10px 0 0}
.rec-bar[hidden]{display:none}
.rec-bar i{display:block;height:100%;width:0;background:#16706e;transition:width .3s}
#recSheet .tr-wa{margin-top:10px}
.tr-toast{z-index:400}
.tr-course.soon{opacity:.7;border-style:dashed}.tr-course.soon em{color:#8a5a00;background:#fff3dc}
