* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #1f2023;
    --card: #2a2b2f;
    --border: #3a3b40;
    --text: #ffffff;
    --muted: #9a9ba1;
    --accent: #6366f1;
    --danger: #ef4444;
    --ok: #22c55e;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

[hidden] { display: none !important; }

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px 16px;
    text-align: center;
}

.title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 900;
    letter-spacing: -4px;
    color: #ffffff30;
    line-height: 1;
}

.slogan {
    margin: 12px 0 28px;
    font-size: clamp(11px, 2vw, 14px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff40;
}

.card {
    width: 100%;
    max-width: 380px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    text-align: left;
}

.card h2 { font-size: 20px; margin-bottom: 16px; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }

input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    color-scheme: dark;
}

input:focus { outline: none; border-color: var(--accent); }

.row { display: flex; gap: 10px; }
.row > div { flex: 1; min-width: 0; }

button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: var(--accent);
}

button:hover { filter: brightness(1.1); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.full { width: 100%; margin-top: 18px; }
button.secondary { background: var(--border); }
button.danger { background: var(--danger); }
button.ghost { background: transparent; color: var(--muted); padding: 6px 10px; font-weight: 400; }

.links { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.links a { color: var(--accent); text-decoration: none; }
.links a:hover { text-decoration: underline; }

.msg { margin-top: 14px; font-size: 13px; min-height: 1em; color: var(--danger); }
.msg.ok { color: var(--ok); }

/* dashboard */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 900; letter-spacing: -1px; font-size: 22px; color: #ffffff60; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }

.stage {
    min-height: calc(100vh - 62px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px 16px;
    text-align: center;
}

.peer-name { font-size: clamp(26px, 6vw, 40px); font-weight: 700; }
.status { color: var(--muted); font-size: 15px; min-height: 1.2em; }

.dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--border); display: inline-block; margin-right: 8px;
}
.dot.online { background: var(--ok); }
.dot.busy { background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.controls button { min-width: 130px; padding: 14px 22px; font-size: 16px; }
#btn-call { background: var(--ok); }

@media (max-width: 600px) {
    .title { letter-spacing: -2px; }
    .slogan { letter-spacing: 2px; }
    .row { flex-direction: column; gap: 0; }
}
