:root { font-family: Tahoma, Arial, sans-serif; color: #171717; background: #f7f5ef; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button { font: inherit; }
.hidden { display: none !important; }
.page { width: min(1080px, calc(100% - 28px)); margin: 0 auto; padding: 42px 0 60px; }
.hero { text-align: center; margin-bottom: 24px; }
.badge { display: inline-block; padding: 6px 11px; border: 1px solid #d7c28a; border-radius: 999px; font-size: 12px; letter-spacing: .08em; background: #fffaf0; }
h1 { margin: 14px 0 8px; font-size: clamp(30px, 5vw, 52px); }
.hero p { margin: 0; color: #6d6a61; }
.call-card { background: #fff; border: 1px solid #e7e1d4; box-shadow: 0 24px 80px rgba(57,45,16,.09); border-radius: 28px; padding: 30px; text-align: center; }
.orb { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff7d6, #d7b85f 55%, #8c6c22); box-shadow: 0 12px 32px rgba(130,96,22,.25); }
.orb.live { animation: pulse 1.6s ease-in-out infinite; }
.mic { font-size: 36px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
@keyframes pulse { 50% { transform: scale(1.05); box-shadow: 0 14px 42px rgba(130,96,22,.38); } }
.status-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #aaa; }
.dot.connected { background: #2aaa62; box-shadow: 0 0 0 5px rgba(42,170,98,.12); }
.dot.connecting { background: #d89c23; }
.timer { margin: 10px 0 20px; font: 600 32px/1 monospace; direction: ltr; }
.actions button { border: 0; border-radius: 14px; min-width: 190px; padding: 13px 22px; cursor: pointer; transition: transform .15s ease; }
.actions button:hover { transform: translateY(-1px); }
.primary { background: #171717; color: #fff; }
.danger { background: #8d2532; color: #fff; }
.error { margin: 20px auto 0; max-width: 760px; padding: 12px; background: #fff0f0; color: #8d2532; border-radius: 12px; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; margin-top: 18px; }
.panel { background: rgba(255,255,255,.78); border: 1px solid #e7e1d4; border-radius: 22px; padding: 22px; }
.panel h2 { margin: 0 0 12px; font-size: 20px; }
.panel p { color: #625f56; line-height: 1.9; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; direction: ltr; }
.credentials div { padding: 14px; background: #f5f0e5; border-radius: 14px; display: flex; flex-direction: column; }
.credentials span { font-size: 12px; color: #777; }
.credentials strong { font: 700 24px/1.3 monospace; }
.messages { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.empty { color: #969187; padding: 30px 10px; text-align: center; }
.message { border-radius: 16px; padding: 12px 14px; }
.message span { font-size: 11px; opacity: .65; }
.message p { margin: 5px 0 0; color: inherit; line-height: 1.7; }
.message.user { background: #f1ece1; margin-left: 12%; }
.message.assistant { background: #1d1d1d; color: white; margin-right: 12%; }
.tool-panel { margin-top: 18px; background: #151515; color: #eee; border-radius: 18px; padding: 16px 18px; direction: ltr; }
.tool-panel summary { cursor: pointer; font-weight: 700; }
.tool-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; border-top: 1px solid #333; padding-top: 12px; }
@media (max-width: 760px) { .page { padding-top: 24px; } .grid { grid-template-columns: 1fr; } .call-card { padding: 24px 16px; } }
