/* =====================================================================
   AIS Care Web - client portal (/care) + shared pieces used by the desk
   Colours come ONLY from /css/ais_theme.css tokens (--th-*).
   ===================================================================== */

/* ---------- shell ---------- */
.cw-body { margin: 0; min-height: 100vh; font-family: 'Inter', system-ui, sans-serif; color: var(--th-ink);
           background: radial-gradient(1200px 520px at 85% -10%, var(--th-primary-soft), transparent 60%),
                       radial-gradient(900px 420px at -10% 10%, var(--th-accent-soft), transparent 55%), var(--th-bg);
           background-attachment: fixed; -webkit-tap-highlight-color: transparent; }
.cw-body h1, .cw-body h2, .cw-body h3, .cw-head { font-family: 'Poppins', sans-serif; }
.cw-top { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top);
          background: var(--th-glass); backdrop-filter: var(--th-blur); -webkit-backdrop-filter: var(--th-blur);
          border-bottom: 1px solid var(--th-glass-bd); }
.cw-top-in { max-width: 760px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.cw-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--th-ink); min-width: 0; }
.cw-logo { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
           background: var(--th-grad-1); color: var(--th-on-primary); font: 700 18px 'Poppins', sans-serif; box-shadow: var(--th-shadow-2); }
.cw-brand-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cw-brand-t b { font: 600 16px 'Poppins', sans-serif; }
.cw-brand-t small { font-size: 11px; color: var(--th-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-main { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.cw-foot { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--th-muted); }
.cw-foot a { color: var(--th-muted); }

/* ---------- surfaces ---------- */
.cw-card { background: var(--th-glass); backdrop-filter: var(--th-blur); -webkit-backdrop-filter: var(--th-blur);
           border: 1px solid var(--th-glass-bd); border-radius: 20px; box-shadow: var(--th-shadow-1); }
.cw-pad { padding: 18px; }
.cw-in { animation: cwUp .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cwUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cw-sec-t { font: 600 13px 'Poppins', sans-serif; letter-spacing: .02em; color: var(--th-muted); text-transform: uppercase; margin: 22px 4px 10px; display: flex; align-items: center; gap: 8px; }
.cw-sec-t a, .cw-sec-t button { margin-left: auto; text-transform: none; letter-spacing: 0; font: 600 13px 'Inter', sans-serif; color: var(--th-primary); background: none; border: 0; cursor: pointer; }
.cw-muted { color: var(--th-muted); }
.cw-hide { display: none !important; }

/* ---------- buttons ---------- */
.cw-btn-primary, .cw-btn-ghost, .cw-btn-danger, .cw-btn-ok {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 18px;
    font: 600 14px 'Inter', sans-serif; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; border: 1px solid transparent; text-decoration: none; }
.cw-btn-primary { background: var(--th-grad-1); color: var(--th-on-primary); box-shadow: var(--th-shadow-2); }
.cw-btn-primary:hover { transform: scale(1.02); }
.cw-btn-primary:disabled { opacity: .55; transform: none; cursor: default; }
.cw-btn-ghost { background: var(--th-surface); color: var(--th-ink-2); border-color: var(--th-line); }
.cw-btn-ghost:hover { border-color: var(--th-primary); color: var(--th-primary); transform: scale(1.02); }
.cw-btn-ok { background: var(--th-success); color: var(--th-on-primary); }
.cw-btn-danger { background: var(--th-surface); color: var(--th-error); border-color: var(--th-error-soft); }
.cw-btn-danger:hover { background: var(--th-error-soft); }
.cw-btn-block { width: 100%; }
.cw-icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
               background: var(--th-surface); border: 1px solid var(--th-line); color: var(--th-ink-2); transition: all .2s ease; }
.cw-icon-btn:hover { color: var(--th-primary); border-color: var(--th-primary); }
.cw-link { color: var(--th-primary); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- forms ---------- */
.cw-label { display: block; font-size: 13px; font-weight: 600; color: var(--th-ink-2); margin: 0 0 6px 2px; }
.cw-input { width: 100%; box-sizing: border-box; border: 1px solid var(--th-line); background: var(--th-surface); color: var(--th-ink);
            border-radius: 14px; padding: 12px 14px; font: 15px 'Inter', sans-serif; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.cw-input:focus { border-color: var(--th-primary); box-shadow: 0 0 0 4px var(--th-primary-soft); }
textarea.cw-input { min-height: 110px; resize: vertical; line-height: 1.5; }
.cw-help { font-size: 12px; color: var(--th-muted); margin: 6px 2px 0; }
.cw-err { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--th-error-soft); color: var(--th-error); font-size: 13px; font-weight: 600; }
.cw-err.show { display: block; animation: cwShake .35s ease; }
@keyframes cwShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cw-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--th-warning-soft); color: var(--th-warning); font-size: 13px; font-weight: 600; }
.cw-warn.bad { background: var(--th-error-soft); color: var(--th-error); }
.cw-field { margin-bottom: 14px; }
.cw-pwd { position: relative; }
.cw-pwd button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--th-muted); cursor: pointer; padding: 8px; }

/* ---------- choice tiles / chips ---------- */
.cw-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cw-tile { text-align: left; cursor: pointer; padding: 14px; border-radius: 16px; background: var(--th-surface); border: 1.5px solid var(--th-line);
           transition: all .2s ease; display: flex; gap: 12px; align-items: flex-start; font: inherit; color: inherit; }
.cw-tile:hover { border-color: var(--th-primary); transform: translateY(-1px); }
.cw-tile i { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
             background: var(--th-primary-soft); color: var(--th-primary); font-size: 16px; }
.cw-tile b { display: block; font-size: 14px; }
.cw-tile span { display: block; font-size: 12px; color: var(--th-muted); margin-top: 2px; line-height: 1.35; }
.cw-tile.on { border-color: var(--th-primary); background: var(--th-primary-soft); box-shadow: 0 0 0 3px var(--th-primary-soft); }
.cw-tile.on i { background: var(--th-primary); color: var(--th-on-primary); animation: cwPulse 1.8s ease-in-out infinite; }
@keyframes cwPulse { 0%,100% { box-shadow: 0 0 0 0 var(--th-primary-soft); } 50% { box-shadow: 0 0 0 7px var(--th-primary-soft); } }
.cw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-chip { cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--th-line);
           background: var(--th-surface); color: var(--th-ink-2); transition: all .2s ease; font-family: inherit; }
.cw-chip:hover { border-color: var(--th-primary); color: var(--th-primary); }
.cw-chip.on { background: var(--th-primary); border-color: var(--th-primary); color: var(--th-on-primary); }
.cw-chip .n { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--th-surface-2); color: var(--th-ink-2); font-size: 11px; }
.cw-chip.on .n { background: var(--th-glass-2); color: var(--th-primary); }
.cw-chip.on .cw-muted { color: var(--th-on-primary); opacity: .8; }

/* ---------- hero ---------- */
.cw-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; color: var(--th-on-primary); background: var(--th-grad-1); box-shadow: var(--th-shadow-3); }
.cw-hero:after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--th-glass-2); opacity: .25; }
.cw-hero h1 { margin: 0; font-size: 22px; font-weight: 600; }
.cw-hero p { margin: 6px 0 0; opacity: .9; font-size: 14px; }
.cw-hero .cw-report { margin-top: 18px; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
                      border-radius: 16px; background: var(--th-surface); color: var(--th-primary); font: 600 15px 'Poppins', sans-serif;
                      border: 0; cursor: pointer; box-shadow: var(--th-shadow-2); transition: transform .2s ease; }
.cw-hero .cw-report:hover { transform: scale(1.03); }
.cw-hero .cw-report i { animation: cwPulse 1.8s ease-in-out infinite; border-radius: 50%; }
.cw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cw-stat { padding: 14px; text-align: center; }
.cw-stat b { display: block; font: 700 22px 'Poppins', sans-serif; color: var(--th-ink); }
.cw-stat span { font-size: 12px; color: var(--th-muted); }

/* ---------- issue cards ---------- */
.cw-issue { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; margin-bottom: 10px; }
.cw-issue:hover { transform: translateY(-2px); box-shadow: var(--th-shadow-2); }
.cw-ring { width: 46px; height: 46px; flex-shrink: 0; position: relative; }
.cw-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.cw-ring .bg { stroke: var(--th-line); }
.cw-ring .fg { stroke: var(--th-primary); transition: stroke-dashoffset .8s ease; }
.cw-ring.s-fixed .fg { stroke: var(--th-warning); }
.cw-ring.s-waiting .fg { stroke: var(--th-accent); }
.cw-ring.s-verified .fg, .cw-ring.s-closed .fg { stroke: var(--th-success); }
.cw-ring i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--th-primary); }
.cw-issue-t { min-width: 0; flex: 1; }
.cw-issue-t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-issue-t small { display: block; font-size: 12px; color: var(--th-muted); margin-top: 3px; }
.cw-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.b-received, .b-seen { background: var(--th-info-soft); color: var(--th-info); }
.b-working { background: var(--th-primary-soft); color: var(--th-primary); }
.b-waiting { background: var(--th-accent-soft); color: var(--th-accent-600); }
.b-fixed { background: var(--th-warning-soft); color: var(--th-warning); }
.b-verified, .b-closed { background: var(--th-success-soft); color: var(--th-success); }
.b-urgent { background: var(--th-error-soft); color: var(--th-error); }
.cw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--th-error); display: inline-block; animation: cwPulseRed 1.6s infinite; }
@keyframes cwPulseRed { 0%,100% { box-shadow: 0 0 0 0 var(--th-error-soft); } 50% { box-shadow: 0 0 0 6px var(--th-error-soft); } }

/* ---------- wizard ---------- */
.cw-steps { display: flex; gap: 6px; margin: 4px 0 16px; }
.cw-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--th-line); transition: background .3s ease; }
.cw-steps span.on { background: var(--th-primary); }
.cw-step-t { font: 600 18px 'Poppins', sans-serif; margin: 0 0 4px; }
.cw-step-s { font-size: 13px; color: var(--th-muted); margin: 0 0 16px; }
.cw-nav { display: flex; gap: 10px; margin-top: 18px; }
.cw-nav .cw-btn-primary { flex: 1; }

/* ---------- evidence tray ---------- */
.cw-drop { border: 2px dashed var(--th-line-2); border-radius: 18px; padding: 22px 14px; text-align: center; cursor: pointer; transition: all .2s ease; background: var(--th-surface); }
.cw-drop:hover, .cw-drop.over { border-color: var(--th-primary); background: var(--th-primary-soft); }
.cw-drop i { font-size: 26px; color: var(--th-primary); }
.cw-drop b { display: block; margin-top: 8px; font-size: 14px; }
.cw-drop span { font-size: 12px; color: var(--th-muted); }
.cw-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.cw-thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--th-surface-2); border: 1px solid var(--th-line);
            display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; font-size: 11px; color: var(--th-muted); text-align: center; padding: 4px; }
.cw-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cw-thumb i.big { font-size: 26px; color: var(--th-primary); }
.cw-thumb .x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
               background: var(--th-surface); color: var(--th-error); box-shadow: var(--th-shadow-1); z-index: 2; }
.cw-thumb .bl { position: absolute; bottom: 5px; left: 5px; right: 5px; border: 0; cursor: pointer; border-radius: 9px; padding: 4px 0;
                background: var(--th-glass); color: var(--th-ink); font-size: 11px; font-weight: 700; z-index: 2; }
.cw-thumb .pg { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--th-primary); transition: width .3s ease; z-index: 3; }
.cw-thumb.blurred:after { content: '\f070'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 6px; left: 8px; color: var(--th-on-primary); z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ---------- assistant ---------- */
.cw-ai { border: 1px solid var(--th-primary-soft); background: var(--th-surface); border-radius: 18px; padding: 16px; }
.cw-ai-h { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--th-primary); }
.cw-ai-body { white-space: pre-wrap; font-size: 14px; line-height: 1.55; margin-top: 10px; color: var(--th-ink-2); }
.cw-typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--th-primary); margin-right: 4px; animation: cwBlink 1.2s infinite; }
.cw-typing span:nth-child(2) { animation-delay: .2s; } .cw-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cwBlink { 0%,80%,100% { opacity: .2; } 40% { opacity: 1; } }

/* ---------- ticket tracker ---------- */
.cw-track { position: relative; padding-left: 30px; }
.cw-track:before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--th-line); }
.cw-tstep { position: relative; padding: 2px 0 16px; }
.cw-tstep:last-child { padding-bottom: 0; }
.cw-tstep:before { content: ''; position: absolute; left: -26px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--th-surface); border: 2px solid var(--th-line-2); }
.cw-tstep.done:before { background: var(--th-success); border-color: var(--th-success); }
.cw-tstep.current:before { background: var(--th-primary); border-color: var(--th-primary); animation: cwPulse 1.6s infinite; }
.cw-tstep b { font-size: 14px; display: block; }
.cw-tstep.todo b { color: var(--th-faint); font-weight: 500; }
.cw-tstep small { font-size: 12px; color: var(--th-muted); }
.cw-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cw-meta span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--th-surface-2); color: var(--th-ink-2); }
.cw-meta span i { color: var(--th-primary); margin-right: 4px; }

/* ---------- conversation ---------- */
.cw-thread { display: flex; flex-direction: column; gap: 10px; }
.cw-msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.cw-msg small { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.cw-msg.me { align-self: flex-end; background: var(--th-primary); color: var(--th-on-primary); border-bottom-right-radius: 6px; }
.cw-msg.them { align-self: flex-start; background: var(--th-surface); border: 1px solid var(--th-line); border-bottom-left-radius: 6px; }
.cw-msg.sys { align-self: center; background: var(--th-surface-2); color: var(--th-muted); font-size: 12px; border-radius: 999px; padding: 6px 12px; }
.cw-msg.note { align-self: stretch; max-width: none; background: var(--th-accent-soft); color: var(--th-ink); border: 1px dashed var(--th-accent); }
.cw-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.cw-file { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--th-line); background: var(--th-surface-2); cursor: pointer;
           display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center; font-size: 11px; color: var(--th-muted); }
.cw-file img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.cw-file img.is-ready { opacity: 1; }
.cw-file i { font-size: 26px; color: var(--th-primary); }
.cw-file .by { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: var(--th-glass); color: var(--th-ink); font-size: 10px; font-weight: 700; z-index: 1; }
.cw-compose { display: flex; gap: 8px; align-items: flex-end; }
.cw-compose textarea { min-height: 48px; max-height: 160px; }

/* ---------- viewer ---------- */
.cw-viewer { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.88); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cw-viewer img, .cw-viewer video { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: var(--th-shadow-3); }
.cw-viewer .close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; }

/* ---------- sheet (modal) ---------- */
.cw-shade { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.42); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
.cw-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--th-surface); border-radius: 24px 24px 0 0;
            padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); animation: cwSheet .3s cubic-bezier(.2,.7,.2,1) both; box-shadow: var(--th-shadow-3); }
@media (min-width: 640px) { .cw-shade { align-items: center; } .cw-sheet { border-radius: 24px; } }
@keyframes cwSheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- skeleton / toast / misc ---------- */
.cw-skel { border-radius: 14px; background: linear-gradient(90deg, var(--th-surface-2) 25%, var(--th-line) 50%, var(--th-surface-2) 75%); background-size: 200% 100%; animation: cwShim 1.2s infinite; }
@keyframes cwShim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.cw-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 95; padding: 12px 18px; border-radius: 14px;
            background: var(--th-ink); color: var(--th-surface); font-size: 14px; font-weight: 600; box-shadow: var(--th-shadow-3); display: none; max-width: 90vw; }
.cw-toast.show { display: block; animation: cwUp .3s ease both; }
.cw-empty { text-align: center; padding: 28px 16px; color: var(--th-muted); font-size: 14px; }
.cw-empty i { font-size: 30px; color: var(--th-primary); display: block; margin-bottom: 10px; }
.cw-ref { font: 700 20px 'Poppins', sans-serif; letter-spacing: .03em; color: var(--th-primary); }
.cw-stars button { background: none; border: 0; font-size: 28px; color: var(--th-line-2); cursor: pointer; padding: 2px; transition: transform .15s ease; }
.cw-stars button.on { color: var(--th-accent); }
.cw-stars button:hover { transform: scale(1.15); }
.cw-user { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--th-line); }
.cw-user:last-child { border-bottom: 0; }
.cw-av { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--th-primary-soft); color: var(--th-primary); }
.cw-otp { font: 700 26px 'Poppins', monospace; letter-spacing: .08em; text-align: center; padding: 14px; border-radius: 14px; background: var(--th-primary-soft); color: var(--th-primary); user-select: all; }

/* ---------- blur editor (used by /care and the desk) ---------- */
.cw-blur-shade { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.88); display: flex; align-items: center; justify-content: center; padding: 12px; }
.cw-blur-box { width: 100%; max-width: 980px; max-height: 96vh; display: flex; flex-direction: column; background: var(--th-surface); border-radius: 20px; overflow: hidden; }
.cw-blur-head { padding: 14px 16px; border-bottom: 1px solid var(--th-line); color: var(--th-ink); }
.cw-blur-head b { display: block; font-size: 15px; } .cw-blur-head span { font-size: 12px; color: var(--th-muted); }
.cw-blur-head i { color: var(--th-primary); }
.cw-blur-stage { flex: 1; overflow: auto; background: var(--th-surface-2); display: flex; align-items: center; justify-content: center; padding: 10px; }
.cw-blur-stage canvas { max-width: 100%; max-height: 70vh; cursor: crosshair; touch-action: none; border-radius: 8px; }
.cw-blur-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--th-line); }

@media (max-width: 420px) { .cw-tiles { grid-template-columns: 1fr; } .cw-stats .cw-stat b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .cw-in, .cw-tile.on i, .cw-hero .cw-report i, .cw-tstep.current:before, .cw-dot { animation: none !important; } }

/* ---------- 29 Oct 2026: voice, screen recording, offline, Indian scripts ---------- */
.cw-voice { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; margin-bottom: 4px;
            background: var(--th-primary-soft); border: 1px solid var(--th-glass-bd); }
.cw-voice b { display: block; font: 600 15px 'Poppins', sans-serif; color: var(--th-ink); }
.cw-voice span { display: block; font-size: 12px; color: var(--th-ink-2); margin-top: 2px; line-height: 1.4; }
.cw-mic { width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
          background: var(--th-grad-1); color: var(--th-on-primary); font-size: 22px; box-shadow: var(--th-shadow-2); transition: transform .2s ease; }
.cw-mic:hover { transform: scale(1.06); }
.cw-mic.live { width: 84px; height: 84px; font-size: 30px; background: var(--th-error); animation: cwPulseRed 1.4s infinite; cursor: default; }
.cw-offline { position: fixed; left: 0; right: 0; top: 0; z-index: 85; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; text-align: center; font-size: 13px; font-weight: 600;
              background: var(--th-warning-soft); color: var(--th-warning); border-bottom: 1px solid var(--th-line); display: none; }
.cw-offline.show { display: block; }
.cw-recbar { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 96; display: flex; gap: 10px; align-items: center;
             padding: 10px 14px 10px 18px; border-radius: 16px; background: var(--th-surface); border: 1px solid var(--th-error-soft); box-shadow: var(--th-shadow-3); font-size: 14px; color: var(--th-ink); }
.cw-indic .cw-body, .cw-indic body { font-family: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Telugu', 'Nirmala UI', system-ui, sans-serif; }
.cw-indic .cw-step-t, .cw-indic .cw-hero h1 { line-height: 1.45; }
