:root {
  --bg: #f3eee6; --surface: rgba(255,255,255,.7); --solid: #fbf8f2; --ink: #2c2924;
  --muted: #8d867b; --line: rgba(68,59,48,.12); --accent: #8b6f59; --accent-soft: #e9ddd0;
  --green: #718f78; --red: #bc716c; --shadow: 0 24px 70px rgba(57,48,38,.09);
  --serif: "Songti SC", "Noto Serif SC", STSong, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  color-scheme: light;
}
[data-theme="dark"] { --bg: #181713; --surface: rgba(40,38,33,.78); --solid: #24221e; --ink: #eee8de; --muted: #9d968c; --line: rgba(255,255,255,.09); --accent: #c5a68d; --accent-soft: #49392e; --green: #8eae94; --red: #d98b84; --shadow: 0 24px 70px rgba(0,0,0,.3); color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: radial-gradient(circle at 5% 5%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 30%), var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.calls-shell { width: min(1100px, calc(100% - 34px)); margin: 0 auto; padding: 38px 0 80px; }
.calls-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.back-home { display: inline-block; margin-bottom: 25px; color: var(--muted); text-decoration: none; font-size: 13px; }
.eyebrow { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.calls-header h1 { margin: 7px 0 9px; font: 500 clamp(38px, 6vw, 62px)/1.08 var(--serif); letter-spacing: .05em; }
.calls-header p { margin: 0; color: var(--muted); font: 14px/1.8 var(--serif); }
.theme-button { flex: none; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.login-card { width: min(100%, 560px); margin: 70px auto; padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 20px; border: 1px solid var(--line); border-radius: 27px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; background: var(--accent-soft); color: var(--accent); font: 600 24px var(--serif); }
.login-card h2 { margin: 2px 0 7px; font: 600 22px var(--serif); }
.login-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-card form { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.login-card input, #callForm input, #callForm textarea { min-width: 0; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: var(--solid); }
.login-card input { border-radius: 999px; }
input:focus, textarea:focus { border-color: var(--accent) !important; }
.primary-button { border: 0; border-radius: 999px; padding: 12px 19px; background: var(--accent); color: #fff; font-weight: 650; }
.status { min-height: 18px; margin: 0; color: var(--red); font-size: 11px; }
.login-card .status { grid-column: 1 / -1; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 12px; }
.status-card { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 5px color-mix(in srgb, var(--muted) 10%, transparent); }
.status-dot.ready { background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 13%, transparent); }
.status-card b { font-size: 12px; }
.status-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.main-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 12px; align-items: start; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(17px); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.panel-head h2 { margin: 5px 0 0; font: 600 20px var(--serif); }
.ten-minute { color: var(--muted); font-size: 10px; }
#callForm { display: grid; gap: 14px; }
#callForm label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; }
#callForm label span { color: var(--muted); font-weight: 400; }
#callForm textarea { resize: vertical; line-height: 1.6; }
#callForm details { padding: 13px 14px; border: 1px solid var(--line); border-radius: 15px; }
#callForm summary { color: var(--muted); cursor: pointer; font-size: 11px; }
#callForm details[open] summary { margin-bottom: 13px; }
#callForm details label + label { margin-top: 13px; }
.form-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.wide-button { width: 100%; border-radius: 13px; }
.wide-button:disabled { opacity: .55; cursor: wait; }
.text-button, footer button { padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; text-decoration: underline; }
.history-list { display: grid; gap: 9px; max-height: 660px; overflow: auto; }
.history-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--solid) 58%, transparent); }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.history-title { margin: 0; font: 600 14px var(--serif); }
.history-time { color: var(--muted); font-size: 10px; }
.status-pill { flex: none; padding: 5px 8px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 9px; }
.status-pill.ended { color: var(--green); }
.status-pill.declined, .status-pill.missed { color: var(--red); }
.history-meta { display: flex; gap: 9px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.history-card details { margin-top: 10px; }
.history-card summary { color: var(--muted); cursor: pointer; font-size: 10px; }
.transcript { display: grid; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.transcript p { margin: 0; color: var(--muted); font: 11px/1.6 var(--serif); }
.transcript b { margin-right: 6px; color: var(--accent); font: 9px var(--sans); }
.empty-state { padding: 36px 12px; color: var(--muted); text-align: center; font-size: 11px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 4px 0; color: var(--muted); font-size: 10px; }
@media (max-width: 780px) { .main-grid { grid-template-columns: 1fr; } .history-panel { order: 2; } }
@media (max-width: 600px) { .calls-shell { width: min(100% - 22px, 1100px); padding-top: 24px; } .calls-header { align-items: flex-start; } .calls-header p { max-width: 280px; } .login-card { grid-template-columns: 1fr; margin: 42px auto; padding: 23px; } .login-card form { grid-column: 1; grid-template-columns: 1fr; } .login-card .status { grid-column: 1; } .status-grid { grid-template-columns: 1fr; } .panel { padding: 20px 16px; } footer { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
