﻿:root {
  /* Base palette */
  --bg: #f6f0e8;
  --bg2: #f0e6d8;
  --ink: #2d2219;
  --accent: #b1562a;
  --accent2: #5a2d1f;
  --card: #ffffff;
  --line: #e2d4c2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, var(--bg), var(--bg2));
}

/* Pip-Boy inspired theme (player page only) */
.pipboy {
  --pip-bg: #15110a;
  --pip-ink: #f2c36b;
  --pip-ink-dim: #c9953f;
  --pip-border: #4b3716;
  --pip-glow: rgba(242, 195, 107, 0.35);
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 195, 107, 0.10), transparent 45%),
    repeating-linear-gradient(0deg, rgba(242,195,107,0.03) 0px, rgba(242,195,107,0.03) 1px, transparent 2px, transparent 4px),
    var(--pip-bg);
  color: var(--pip-ink);
  font-family: "Courier New", "Consolas", monospace;
  position: relative;
  overflow-x: hidden;
}

.pipboy::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.35) 75%, rgba(0,0,0,0.6) 100%),
    repeating-linear-gradient(0deg, rgba(242,195,107,0.04) 0px, rgba(242,195,107,0.04) 1px, transparent 2px, transparent 3px);
  mix-blend-mode: screen;
  z-index: 1;
}

.pipboy::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.25;
  z-index: 2;
}

.pipboy .player-center {
  position: relative;
  z-index: 3;
}

.pipboy .btn {
  background: transparent;
  color: var(--pip-ink);
  border: 1px solid var(--pip-ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--pip-glow);
}

.pipboy .btn:hover {
  background: rgba(124, 255, 114, 0.12);
}

.pipboy .btn-ghost {
  border-style: solid;
  color: var(--pip-ink);
}

.pipboy .card,
.pipboy .map-card,
.pipboy .camera-card {
  background: rgba(12, 30, 20, 0.9);
  border: 1px solid var(--pip-border);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 0 18px var(--pip-glow);
}

.pipboy .map-frame,
.pipboy .camera-frame {
  border-color: var(--pip-border);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.pipboy .muted {
  color: var(--pip-ink-dim);
}

.pipboy h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pipboy .player-stack {
  gap: 14px;
}

/* Home layout */
.home {
  min-height: 100vh;
  padding: 40px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-hero {
  background: linear-gradient(140deg, #fff, #f4e7d4);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin: 0 0 8px;
}

.lede {
  max-width: 520px;
  margin-top: 4px;
  font-size: 18px;
}

.menu-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.menu-btn {
  background: #1a120c;
  color: #fdf6ed;
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.menu-btn:hover {
  background: var(--accent);
}

.home-section {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

/* Player main screen */
.player-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.player-stack {
  display: grid;
  gap: 12px;
  width: min(360px, 90vw);
}

.btn-large {
  padding: 16px 18px;
  font-size: 16px;
}

.map-card {
  width: min(900px, 92vw);
  margin-top: 20px;
}

.map-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.map-actions {
  margin: 8px 0 2px;
}

.map-frame {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  height: clamp(300px, 65vh, 640px);
}

.camera-card {
  width: min(900px, 92vw);
  margin-top: 20px;
}

.camera-frame {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  height: clamp(300px, 65vh, 640px);
  background: #000;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-map {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: clamp(280px, 45vh, 520px);
  overflow: hidden;
}

/* Shared page layout */
.page { max-width: 900px; margin: 0 auto; padding: 24px; }
.header { display: flex; align-items: center; justify-content: space-between; }

h1 { margin: 0 0 12px; letter-spacing: 1px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { background: var(--accent2); }

.btn-ghost {
  background: transparent;
  color: var(--accent2);
  border: 1px dashed var(--accent2);
}

.input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
}

.button-row { display: flex; gap: 12px; justify-content: center; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

.recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.recorder-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 12px;
  font-size: 14px;
}

.recorder-map .map-frame {
  height: clamp(320px, 60vh, 640px);
}

.room-pill {
  background: #fff0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}

.log {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-height: 90px;
  max-height: 200px;
  overflow: auto;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
}

.action-area {
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  min-height: 60px;
}

.gm-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.gm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.rooms-list {
  margin: 12px 0;
  display: grid;
  gap: 6px;
}

.players-list {
  display: grid;
  gap: 8px;
}

.players-room {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px;
}

.players-room h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.players-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-tag {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.player-tag.active {
  background: #fff4e9;
  border-color: var(--accent);
}

.room-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.room-item {
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.room-item.active {
  border-color: var(--accent);
  background: #fff4e9;
}

.room-remove {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
}

.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.muted { color: #6b5a4d; font-size: 14px; }

.hidden { display: none; }

@media (max-width: 600px) {
  .header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* SMS UI */
.sms-body {
  margin: 0;
  background: #f1efeb;
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: #2b2b2b;
}

.sms-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.sms-device {
  width: min(390px, 100vw);
  min-height: 100vh;
  background: #f1efeb;
  padding: 10px 14px 18px;
  box-sizing: border-box;
}

.sms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
}

.sms-topbar h1 {
  margin: 0;
  font-size: 22px;
}

.sms-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sms-icon {
  font-size: 18px;
}

.sms-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edbe41;
  color: #4b2b00;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.sms-search {
  background: #eef2d8;
  color: #6b6b63;
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 14px;
  border: none;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.sms-threads {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sms-thread-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  border: none;
  background: transparent;
  padding: 8px 4px;
  text-align: left;
  cursor: pointer;
}

.sms-thread-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edbe41;
  color: #4b2b00;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.sms-thread.unread .sms-thread-avatar {
  box-shadow: 0 0 0 2px #3dbb6a;
}

.sms-thread-title {
  font-weight: 600;
  display: block;
}

.sms-thread-preview {
  font-size: 12px;
  color: #6b6b63;
}

.sms-thread-time {
  font-size: 12px;
  color: #8a8782;
}

.sms-chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}

.sms-chat-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.sms-back {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.sms-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sms-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edbe41;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #4b2b00;
}

.sms-chat-name {
  font-weight: 700;
}

.sms-chat-sub {
  font-size: 12px;
  color: #7a7774;
}

.sms-messages {
  background: #f1efeb;
  display: grid;
  gap: 8px;
  padding: 10px 0;
  overflow-y: auto;
}

.sms-divider {
  justify-self: center;
  background: #e6e3dc;
  color: #7b7874;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 6px 0;
}

.sms-bubble-wrap {
  display: grid;
  gap: 2px;
}

.sms-bubble {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.3;
}

.sms-bubble.me {
  justify-self: end;
  background: #dfe7c0;
}

.sms-bubble.them {
  justify-self: start;
  background: #ffffff;
}

.sms-time {
  font-size: 11px;
  color: #8a8782;
}

.sms-bubble-wrap .sms-time {
  justify-self: end;
}

.sms-bubble-wrap .sms-bubble.them + .sms-time {
  justify-self: start;
}

.sms-read {
  justify-self: end;
  font-size: 11px;
  color: #8a8782;
  margin-top: -4px;
}

.sms-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  border-radius: 22px;
  padding: 6px 10px;
}

.sms-input input {
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.sms-plus,
.sms-send {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.gm-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 10%, #223344, #121a26 55%, #0a0f16);
  color: #ebf2ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.phone-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-shell {
  width: min(420px, 95vw);
  background: linear-gradient(170deg, #1a2736, #111926);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.1);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.phone-header h1 {
  margin: 2px 0 0;
  font-size: 24px;
}

.phone-eyebrow {
  margin: 0;
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.phone-chip {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.phone-status {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(7, 12, 20, 0.45);
  font-size: 14px;
}

.contacts {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.contact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
}

.contact-item strong {
  display: block;
}

.contact-item span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

.phone-chat {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}

.phone-chat h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.phone-chat .log {
  background: rgba(5, 9, 14, 0.6);
  color: #deecff;
  border-color: rgba(255, 255, 255, 0.17);
  min-height: 105px;
}

@media (max-width: 600px) {
  .phone-shell {
    border-radius: 20px;
    padding: 14px;
  }
}

/* Realistic phone call screen refresh */
.phone-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, #5d7398 0%, rgba(93,115,152,0.15) 35%, transparent 55%),
    radial-gradient(circle at 80% 20%, #2f4360 0%, rgba(47,67,96,0.15) 38%, transparent 58%),
    linear-gradient(165deg, #101a2a 0%, #0a101b 60%, #070b12 100%);
  color: #f2f6ff;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.phone-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-device {
  position: relative;
  width: min(390px, 95vw);
  min-height: min(780px, 94vh);
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(175deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -8px 22px rgba(0, 0, 0, 0.35);
  padding: 20px 16px 16px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.phone-notch {
  width: 122px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  margin: -20px auto 14px;
  background: rgba(4, 8, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.3px;
  opacity: 0.92;
}

.phone-signal {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.09);
}

.contacts-panel h1 {
  margin: 14px 0 4px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.phone-help {
  margin: 0;
  font-size: 14px;
  color: rgba(235, 242, 255, 0.74);
}

.contacts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-item {
  margin: 0;
}

.contact-call {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(10, 18, 31, 0.55);
  color: inherit;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.contact-call:hover {
  background: rgba(30, 44, 67, 0.66);
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(150deg, #64a5f4, #446ec6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.contact-meta {
  display: grid;
  gap: 2px;
}

.contact-meta strong {
  font-size: 15px;
}

.contact-meta small {
  font-size: 12px;
  color: rgba(235, 242, 255, 0.72);
}

.contact-action {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 227, 155, 0.5);
  color: #93f0bf;
}



.call-panel.hidden {
  display: none;
}

.call-glow {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 173, 238, 0.35), rgba(126,173,238,0));
  pointer-events: none;
}

.call-main {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding-top: 36px;
}

.caller-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(150deg, #8bc4ff, #5d87e8 58%, #3f5db0);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.45);
}

.call-main h2 {
  margin: 18px 0 6px;
  font-size: 30px;
  letter-spacing: 0.3px;
}

.call-status {
  margin: 0;
  color: rgba(237, 243, 255, 0.82);
  font-size: 14px;
}

.call-actions-row {
  display: flex;
  justify-content: center;
  padding: 14px 0;
}

.call-btn {
  min-width: 140px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.call-btn-end {
  background: #ff4d6d;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 77, 109, 0.45);
}

.call-chat {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 10px;
  background: rgba(7, 12, 20, 0.62);
}

.call-chat .log {
  min-height: 88px;
  max-height: 150px;
  background: rgba(2, 6, 11, 0.62);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e9f1ff;
}

.call-chat .input {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 450px) {
  .phone-device {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .phone-notch {
    margin-top: -20px;
  }
}


/* Fix panel visibility layering */
.contacts-panel {
  position: relative;
  z-index: 1;
}

.contacts-panel.hidden {
  display: none !important;
}

.call-panel {
  position: absolute;
  inset: 0;
  padding: 34px 16px 16px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  background:
    radial-gradient(circle at 50% 16%, rgba(126, 173, 238, 0.42), rgba(40, 70, 117, 0.2) 38%, transparent 65%),
    linear-gradient(180deg, rgba(35, 56, 90, 0.95) 0%, rgba(11, 19, 31, 0.96) 62%, rgba(7, 12, 20, 0.98) 100%);
}

.call-panel.hidden {
  display: none !important;
}

/* Phone UI aligned with provided screenshots */
.phone-v2.phone-body {
  background: #f1efeb;
  color: #2d2d2d;
  font-family: "Roboto", "Segoe UI", sans-serif;
}

.phone-v2 .phone-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

.phone-v2 .phone-device {
  width: min(390px, 100vw);
  min-height: 100vh;
  background: #f1efeb;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 8px 14px 14px;
  position: relative;
  overflow: hidden;
}

.phone-v2 .phone-proximity-screen {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
  pointer-events: auto;
  border: none;
  margin: 0;
  padding: 0;
}

.phone-v2 .phone-os-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  margin: 2px 2px 8px;
}

.phone-v2 .contacts-search {
  border-radius: 22px;
  background: #eef2d8;
  color: #6b6b63;
  font-size: 14px;
  padding: 12px 14px;
}

.phone-v2 .contacts-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.phone-v2 .contacts-tabs span {
  border: 1px solid #d2d0cc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  background: #f3f2ef;
  color: #5f5e5a;
}

.phone-v2 .contacts-tabs span.active {
  background: #e3e1dc;
  border-color: #e3e1dc;
  font-weight: 700;
}

.phone-v2 .contacts-group-label {
  font-size: 13px;
  color: #6a6865;
  margin: 8px 2px;
}

.phone-v2 .contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.phone-v2 .contact-item {
  margin: 0;
}

.phone-v2 .contact-call {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #edf0d8;
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.phone-v2 .contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edbe41;
  color: #513100;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.phone-v2 .contact-meta strong {
  font-size: 16px;
  font-weight: 500;
  color: #31302f;
}

.phone-v2 .contact-meta small {
  color: #777572;
  font-size: 12px;
}

.phone-v2 .contact-action {
  text-align: right;
  color: #565552;
  font-size: 16px;
}

.phone-v2 .phone-nav {
  margin-top: 14px;
  border-radius: 20px;
  background: #e8e6e1;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  color: #666561;
  font-size: 12px;
}

.phone-v2 .call-panel {
  position: absolute;
  inset: 0;
  background: #f1efeb;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 10px 14px 16px;
}

.phone-v2 .call-panel.hidden {
  display: none !important;
}

.phone-v2 .phone-call-top {
  text-align: center;
  color: #696864;
  font-size: 22px;
  padding-top: 18px;
}

.phone-v2 .call-main {
  text-align: center;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding-top: 18px;
}

.phone-v2 .call-main h2 {
  margin: 0;
  font-size: 52px;
  font-weight: 400;
  color: #3d3d3b;
}

.phone-v2 .caller-number {
  margin: 0;
  color: #797874;
  font-size: 24px;
}

.phone-v2 .caller-avatar {
  margin-top: 42px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #edbe41;
  color: #4c2a00;
  font-size: 74px;
  font-weight: 400;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.phone-v2 .call-status {
  margin: 0;
  color: #6f6e69;
  font-size: 24px;
}

.phone-v2 .call-control-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.phone-v2 .call-option {
  border: none;
  border-radius: 999px;
  background: #edf0d8;
  color: #4a4947;
  font-size: 11px;
  min-height: 52px;
}

.phone-v2 .call-actions-row {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.phone-v2 .call-btn-end {
  background: #cf3f2f;
  border-radius: 999px;
  color: #fff;
  border: none;
  min-width: 180px;
  min-height: 52px;
  font-size: 16px;
  box-shadow: none;
}

.phone-v2 .phone-debug {
  display: none;
}

@media (min-width: 700px) {
  .phone-v2 .phone-device {
    min-height: 844px;
    border-radius: 24px;
    margin: 20px 0;
  }
}

/* Ajustement centrage des icones telephone dans la liste contacts */
.phone-v2 .contact-call {
  grid-template-columns: 44px 1fr 34px;
}

.phone-v2 .contact-action {
  width: 28px;
  height: 28px;
  border: 1px solid #bfc4a4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
  font-size: 14px;
  justify-self: end;
}

/* Contacts interactivity tweaks */
.phone-v2 .contacts-search {
  border: none;
  outline: none;
  width: 100%;
}

.phone-v2 .contacts-tabs button {
  border: 1px solid #d2d0cc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  background: #f3f2ef;
  color: #5f5e5a;
  cursor: pointer;
}

.phone-v2 .contacts-tabs button.active {
  background: #e3e1dc;
  border-color: #e3e1dc;
  font-weight: 700;
}

.phone-v2 .contacts-empty {
  margin: 14px 4px;
  color: #7a7774;
  font-size: 13px;
}

/* Fit call screen without scrolling */
.phone-v2 .call-panel {
  grid-template-rows: auto 1fr auto auto;
  padding: 8px 14px 10px;
  min-height: 100%;
}

.phone-v2 .phone-call-top {
  font-size: 18px;
  padding-top: 8px;
}

.phone-v2 .call-main {
  gap: 6px;
  padding-top: 6px;
}

.phone-v2 .call-main h2 {
  font-size: 40px;
}

.phone-v2 .caller-number {
  font-size: 18px;
}

.phone-v2 .caller-avatar {
  margin-top: 18px;
  width: 96px;
  height: 96px;
  font-size: 54px;
}

.phone-v2 .call-status {
  font-size: 18px;
}

.phone-v2 .call-control-grid {
  margin-top: 8px;
  gap: 6px;
}

.phone-v2 .call-option {
  min-height: 42px;
  font-size: 10px;
}

.phone-v2 .call-option.active {
  background: #d6dbc0;
  font-weight: 700;
}

.phone-v2 .call-actions-row {
  padding-top: 8px;
}

.phone-v2 .call-btn-end {
  min-width: 160px;
  min-height: 44px;
  font-size: 15px;
}

.phone-v2 .contact-call {
  padding: 0;
}

.phone-v2 .contact-action {
  padding: 0;
}
