/* © 2026 A&A Terra Inc. All rights reserved. Proprietary and confidential — see LICENSE.txt. */
/* Turaventa Chats — navy #0F2A3A + gold #E2B865 */
:root{--tvc-navy:#0F2A3A;--tvc-gold:#E2B865;--tvc-bubble:#fff;--tvc-me:#0F2A3A}
#tabs [data-tab="marco"]{position:relative}
.tvc-badge{position:absolute;top:-6px;left:calc(50% + 8px);min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d9503a;color:#fff;font:700 11px/19px -apple-system,system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px var(--ink,#0d1b24);font-style:normal}
.tvc-badge[hidden]{display:none}

/* list */
.tvc-list{padding-bottom:12px}
.tvc-top{display:flex;align-items:flex-start;gap:10px;margin:2px 0 12px}
.tvc-title{font-family:Georgia,serif;font-size:26px;display:block;line-height:1.1}
.tvc-e2e{font-size:12.5px;color:#4d6b5f;margin-top:3px}
.tvc-net{width:10px;height:10px;border-radius:50%;background:#c9b48c;margin:10px 0 0 auto;flex:none}.tvc-net.on{background:#3aa57a}
.tvc-new{display:flex;gap:8px;margin-bottom:8px}
.tvc-new .f,.tvc-new input{flex:1;min-width:0;padding:11px 13px;border-radius:13px;border:1px solid #ddd5c8;background:#fff;font-size:15px}
.tvc-new .btn{flex:none}
.tvc-invite{display:flex;align-items:center;gap:8px;background:var(--tvc-navy);color:#d7e2e7;border-radius:14px;padding:9px 10px 9px 13px;font-size:13px}
.tvc-invite b{color:var(--tvc-gold);letter-spacing:.08em;font-family:ui-monospace,Menlo,monospace}
.tvc-invite span{flex:1;min-width:0}
.tvc-invite .btn{flex:none}
.tvc-list .list{display:flex;flex-direction:column;gap:8px}
.tvc-av{width:46px;height:46px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--tvc-navy);color:var(--tvc-gold);font:700 19px Georgia,serif}
.tvc-mid{min-width:0;flex:1}
.tvc-mid small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tvc-count{display:inline-block;margin-top:4px;min-width:21px;padding:1px 6px;border-radius:999px;background:var(--tvc-gold);color:var(--tvc-navy);font-weight:800;font-size:12px;text-align:center}
.tvc-req{align-items:flex-start}
.tvc-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.tvc-danger{color:#c0392b!important}
.tvc-note{font-size:12.5px;color:#7b8a92;margin-top:14px;text-align:center}
.tvc-hero{background:var(--tvc-navy);color:#e8eef1;border-radius:18px;padding:18px}.tvc-hero h2{font-family:Georgia,serif;color:var(--tvc-gold);margin-bottom:6px}
.tvc-ck{display:flex;gap:8px;align-items:center;font-size:14px;margin-top:10px}
.tvc-pass{margin-top:12px}

/* conversation pane — same footprint as the app's .screen */
.tvc-pane{position:absolute;inset:0;bottom:calc(64px + var(--safe-b,0px));z-index:24;background:var(--paper,#f7f3ec);display:flex;flex-direction:column}
.tvc-head{display:flex;align-items:center;gap:8px;padding:calc(10px + var(--safe-t,0px)) 10px 10px;background:var(--tvc-navy);color:#fff}
.tvc-head .tvc-av{width:40px;height:40px;font-size:17px;background:#1d4054}
.tvc-head small{color:#9fb6c1}
.tvc-ib{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:19px;flex:none;color:inherit}
.tvc-head .tvc-ib:hover{background:rgba(255,255,255,.08)}
.tvc-ib[disabled]{opacity:.35;cursor:default}
.tvc-lock{display:block;width:100%;text-align:center;font-size:12px;color:#5d6e60;background:#efe7d6;padding:6px 10px}
.tvc-lock u{color:#94661c}
.tvc-banner{background:#fff8ea;border-bottom:1px solid #eadcc0;padding:10px 14px;font-size:14px}
.tvc-banner small{display:block;color:#6d7c84}
.tvc-msgs{flex:1;overflow:auto;padding:12px 12px 8px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}
.tvc-b{max-width:78%;padding:8px 11px 5px;border-radius:17px;background:var(--tvc-bubble);box-shadow:0 1px 2px rgba(0,0,0,.07);align-self:flex-start;border-bottom-left-radius:5px;overflow-wrap:anywhere}
.tvc-b.me{align-self:flex-end;background:var(--tvc-me);color:#f3f6f8;border-bottom-left-radius:17px;border-bottom-right-radius:5px}
.tvc-txt{white-space:pre-wrap;font-size:15.5px;line-height:1.38}
.tvc-dim{color:#8a979e;font-style:italic}
.tvc-meta{display:block;text-align:end;font-size:11px;color:#8a979e;margin-top:2px}
.tvc-b.me .tvc-meta{color:#9fb6c1}
.tvc-meta i{font-style:normal;margin-inline-start:3px}
.tvc-read{color:var(--tvc-gold)}
.tvc-fail{color:#ff9d8a!important;cursor:pointer}
.tvc-img{display:block;max-width:100%;width:260px;height:auto;border-radius:12px;margin:-2px -4px 2px;cursor:zoom-in;background:#ddd}
.tvc-loc{display:flex;gap:10px;align-items:center;color:inherit;text-decoration:none;padding:4px 2px;min-width:200px}
.tvc-loc b{display:block}.tvc-loc small{display:block;opacity:.75;font-size:12px}
.tvc-pin{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;background:linear-gradient(135deg,#d7e7d2,#bcd6e3)}
.tvc-day{align-self:center;font-size:11.5px;color:#7b8a92;background:#ece5d7;padding:2px 10px;border-radius:999px;margin:6px 0}
.tvc-sys{align-self:center;text-align:center;font-size:12.5px;color:#6d7c84;max-width:88%;padding:4px 8px}
.tvc-comp{display:flex;align-items:flex-end;gap:4px;padding:8px 8px 10px;background:#fff;border-top:1px solid #e6dfd2}
.tvc-comp .tvc-ib{color:#4c5a62;width:38px}
.tvc-comp textarea{height:42px;min-height:0;flex:1;min-width:0;resize:none;border:1px solid #ddd5c8;border-radius:20px;padding:9px 14px;font-size:16px;line-height:1.3;max-height:120px;background:#faf8f4;outline:0}
.tvc-comp textarea:focus{border-color:var(--tvc-gold)}
.tvc-send{width:42px;height:42px;border-radius:50%;background:var(--tvc-gold);color:var(--tvc-navy);font-size:18px;flex:none;display:grid;place-items:center}
.tvc-sn{display:grid;grid-template-columns:repeat(4,1fr);gap:8px 6px;background:var(--tvc-navy);color:var(--tvc-gold);border-radius:16px;padding:16px 12px;margin:12px 0;font:600 19px/1 ui-monospace,Menlo,monospace;text-align:center;letter-spacing:.04em}

/* call screen */
.tvc-call{position:absolute;inset:0;z-index:90;background:radial-gradient(circle at 50% 30%,#1d4a60,#0F2A3A 55%,#08161f);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:calc(48px + var(--safe-t,0px)) 20px calc(26px + var(--safe-b,0px));overflow:hidden;animation:tvcIn .2s}
@keyframes tvcIn{from{opacity:0}to{opacity:1}}
.tvc-remote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;background:#000}
.tvc-call.video .tvc-remote{opacity:1}
.tvc-local{position:absolute;right:14px;top:calc(14px + var(--safe-t,0px));width:96px;height:136px;object-fit:cover;border-radius:14px;border:2px solid rgba(255,255,255,.6);transform:scaleX(-1);background:#122;z-index:2}
.tvc-who{position:relative;z-index:1;text-align:center}
.tvc-who .tvc-av{width:104px;height:104px;font-size:44px;margin:0 auto 14px;background:#163a4c;box-shadow:0 0 0 8px rgba(226,184,101,.14),0 0 0 18px rgba(226,184,101,.06)}
.tvc-who h2{font-family:Georgia,serif;font-size:27px}
.tvc-who p{color:#b9cad2;margin-top:4px}
.tvc-timer{font:600 20px ui-monospace,Menlo,monospace;color:var(--tvc-gold)!important}
.tvc-e2e{font-size:12.5px}
.tvc-call.video .tvc-who{text-shadow:0 1px 6px rgba(0,0,0,.7)}.tvc-call.video .tvc-who .tvc-av{display:none}
.tvc-ctl{position:relative;z-index:1;display:flex;gap:22px;justify-content:center;flex-wrap:wrap}
.tvc-round{width:68px;height:68px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(6px);position:relative}
.tvc-round small{position:absolute;top:74px;font-size:12px;color:#cbd8de;white-space:nowrap}
.tvc-round.on{background:#fff;color:var(--tvc-navy)}
.tvc-round.red{background:#d64535}.tvc-round.green{background:#2fa36b;animation:tvcPulse 1.4s infinite}
@keyframes tvcPulse{0%{box-shadow:0 0 0 0 rgba(47,163,107,.6)}70%{box-shadow:0 0 0 18px rgba(47,163,107,0)}100%{box-shadow:0 0 0 0 rgba(47,163,107,0)}}
.tvc-callnote{position:relative;z-index:1;font-size:11.5px;color:#8ea6b1;text-align:center;max-width:340px;margin-top:30px}

@media (min-width:820px){
  .tvc-pane{left:auto;right:0;width:min(560px,100%);box-shadow:-10px 0 40px rgba(0,0,0,.2)}
  .tvc-b{max-width:70%}
  .tvc-call{left:50%;right:auto;top:50%;bottom:auto;width:460px;height:min(760px,92vh);transform:translate(-50%,-50%);border-radius:28px;box-shadow:0 30px 80px rgba(0,0,0,.5)}
  .tvc-local{width:120px;height:170px}
}
@media (prefers-reduced-motion:reduce){.tvc-round.green{animation:none}.tvc-call{animation:none}}
