:root {
  --accent: #ed1c24;
  --accent-rgb: 237, 28, 36;
  --ink: #f8fafc;
  --muted: #9199a7;
  --line: rgba(255, 255, 255, 0.09);
  --panel: rgba(21, 24, 31, 0.82);
  --panel-deep: rgba(11, 13, 18, 0.9);
  --canvas: #090b0f;
  --incoming-blue: #0870DF;
  --incoming-sky: #079FDB;
  --incoming-cyan: #08BED1;
  --incoming-teal: #0BD7B8;
  --incoming-green: #10DEA3;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--accent-rgb), 0.13), transparent 30rem),
    linear-gradient(140deg, #101219 0%, #090b0f 48%, #111318 100%);
  overflow-x: hidden;
}

body.theme-redrackx::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/redrackx-circuit.png") center 12% / min(56vw, 720px) auto no-repeat;
  opacity: 0.055;
  filter: saturate(1.15);
}

body.theme-lokridge {
  --accent: #ec2028;
  --accent-rgb: 236, 32, 40;
  --panel: rgba(31, 33, 36, 0.86);
  --panel-deep: rgba(20, 14, 7, 0.92);
  --canvas: #0d0a07;
  background:
    radial-gradient(circle at 82% 10%, rgba(236, 32, 40, 0.14), transparent 28rem),
    linear-gradient(140deg, #1f2124 0%, #100d0a 54%, #140e07 100%);
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  filter: blur(90px);
  pointer-events: none;
}
.ambient-one { top: -9rem; right: 8%; }
.ambient-two { bottom: -12rem; left: -5rem; opacity: 0.55; }

.shell { width: min(1500px, calc(100% - 44px)); margin: 0 auto; padding: 24px 0 34px; position: relative; z-index: 1; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 22px;
}

.brand-lockup, .topbar-actions, .agent-card, .availability, .section-heading, .incoming-actions { display: flex; align-items: center; }
.brand-lockup { gap: 18px; }
.brand-mark-wrap {
  width: 174px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}
.theme-lokridge .brand-mark-wrap { background: #1f2124; }
.brand-logo { display: block; max-width: 100%; max-height: 34px; object-fit: contain; }
.eyebrow, .panel-label { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; font-weight: 800; color: var(--accent); }
.topbar h1 { font-size: 20px; margin: 5px 0 0; letter-spacing: -0.02em; }
.topbar-actions { gap: 10px; }

.status-pill {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: #aeb5c0;
  font-size: 12px;
  font-weight: 700;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #707783; box-shadow: 0 0 0 4px rgba(112,119,131,.12); }
.status-pill.connecting .status-dot { background: #eab308; box-shadow: 0 0 0 4px rgba(234,179,8,.12); animation: pulse 1.2s infinite; }
.status-pill.online .status-dot { background: #39d98a; box-shadow: 0 0 0 4px rgba(57,217,138,.13); }
.status-pill.online { color: #d9ffe9; }
.status-pill.error .status-dot { background: var(--accent); }

.icon-button {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,.22); cursor: pointer;
}
.icon-button:hover { border-color: rgba(var(--accent-rgb), .65); background: rgba(var(--accent-rgb), .08); }

.workspace { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(380px, 430px) minmax(270px, 1fr); gap: 18px; align-items: start; }
.glass-panel { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 25px 80px rgba(0,0,0,.24); backdrop-filter: blur(24px); }
.side-panel, .activity-panel { padding: 24px; min-height: 675px; }
.phone-panel { width: 100%; min-height: 740px; padding: 24px 20px 18px; background: linear-gradient(160deg, rgba(255,255,255,.065), transparent 38%), var(--panel-deep); }
.phone-chassis { position: relative; overflow: hidden; border-radius: 34px; border-color: rgba(var(--accent-rgb), .24); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.4), 0 34px 100px rgba(0,0,0,.48); }
.phone-chassis::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, transparent 15%, rgba(var(--accent-rgb),.035) 48%, transparent 70%); }
.phone-hardware { position: relative; z-index: 2; width: 94px; height: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: -14px auto 13px; border-radius: 0 0 14px 14px; background: rgba(2,3,5,.84); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.phone-camera, .phone-sensor { width: 5px; height: 5px; border-radius: 50%; background: #222936; box-shadow: inset 0 0 0 1px #3b4657; }
.phone-speaker { width: 36px; height: 4px; border-radius: 99px; background: #252c36; box-shadow: inset 0 0 0 1px #343e4b; }
.phone-telemetry { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 17px; color: #69727f; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.phone-telemetry span { display: inline-flex; align-items: center; gap: 6px; }
.tenant-chip, .secure-chip { min-height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.22); }
.secure-chip { color: #58d99c; border-color: rgba(57,217,138,.18); background: rgba(57,217,138,.06); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 10px rgba(57,217,138,.8); }
.phone-screen { display: none; min-height: 535px; position: relative; z-index: 1; animation: phone-screen-in .2s ease-out; }
.phone-screen.active-screen { display: block; }
.phone-screen-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 17px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.phone-screen-title span { color: var(--ink); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.phone-screen-title small { color: var(--muted); font-size: 9px; }
.phone-screen-action { width: 100%; min-height: 42px; margin-top: 14px; border: 1px solid rgba(var(--accent-rgb),.32); border-radius: 12px; background: rgba(var(--accent-rgb),.09); color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 800; }
.phone-directory-label { margin: 17px 0 8px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.phone-directory-list { display: grid; gap: 7px; max-height: 180px; overflow-y: auto; scrollbar-width: thin; }
.phone-directory-list .contact-row, .phone-directory-list .directory-contact { border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.phone-directory-list .empty-copy { padding: 18px 12px; border: 1px dashed var(--line); border-radius: 13px; text-align: center; }
.phone-recent-list { max-height: 420px; }
@keyframes phone-screen-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.agent-card { gap: 14px; }
.avatar, .contact-avatar {
  display: grid; place-items: center; border-radius: 15px; font-weight: 850; background: linear-gradient(145deg, rgba(var(--accent-rgb), .92), rgba(var(--accent-rgb), .55)); box-shadow: 0 10px 25px rgba(var(--accent-rgb), .2);
}
.avatar { width: 52px; height: 52px; font-size: 16px; }
.agent-card h2, .activity-panel h2 { font-size: 17px; margin: 5px 0 2px; }
.muted-text { color: var(--muted); font-size: 11px; margin: 0; word-break: break-word; }
.availability { justify-content: space-between; margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.15); }
.availability-value { margin: 5px 0 0; font-size: 13px; font-weight: 750; }
.toggle-button { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; color: var(--muted); }
.toggle-track { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #3c424d; transition: .2s; }
.toggle-thumb { position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; transition: .2s; }
.toggle-button.active .toggle-track { background: var(--accent); }
.toggle-button.active .toggle-thumb { transform: translateX(15px); }
.toggle-button.active { color: var(--ink); }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.section-heading { justify-content: space-between; gap: 12px; }
.tiny-badge { padding: 5px 8px; border-radius: 999px; color: #9aa1ad; background: rgba(255,255,255,.05); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.contact-list { display: grid; gap: 8px; margin-top: 13px; }
.contact-row { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; text-align: left; padding: 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer; }
.contact-row:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.contact-avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 11px; }
.contact-row strong { display: block; font-size: 12px; }
.contact-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.contact-call { color: var(--accent); font-weight: 900; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding-top: 30px; color: #7f8794; font-size: 10px; line-height: 1.5; }
.privacy-note p { margin: 0; }
.shield { color: var(--accent); font-size: 8px; margin-top: 4px; }
.side-panel { display: flex; flex-direction: column; }

.phone-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.phone-heading h2 { margin: 6px 0 0; font-size: clamp(19px, 2vw, 25px); letter-spacing: -0.03em; }
.call-timer { padding: 8px 12px; min-width: 66px; border: 1px solid var(--line); border-radius: 10px; color: #b4bbc5; font-variant-numeric: tabular-nums; text-align: center; font-size: 13px; font-weight: 750; }
.connected-status { width: max-content; max-width: 100%; display: flex; align-items: center; gap: 8px; margin: 22px auto 10px; padding: 6px 13px; border: 1px solid rgba(57,217,138,.22); border-radius: 999px; background: rgba(57,217,138,.08); color: #8aefbd; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.active-caller-card { position: relative; z-index: 1; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 13px; margin: 20px 0 4px; padding: 14px; border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 17px; background: linear-gradient(135deg, rgba(var(--accent-rgb),.12), rgba(0,0,0,.2)); }
.active-caller-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--accent-rgb),.18); color: #fff; font-weight: 900; }
.active-caller-copy { min-width: 0; }
.active-caller-copy strong, .active-caller-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-caller-copy strong { margin-top: 3px; font-size: 14px; }
.active-caller-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.call-direction { color: var(--accent); font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.audio-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.audio-wave i { display: block; width: 3px; height: 7px; border-radius: 4px; background: var(--accent); animation: wave 1s ease-in-out infinite; }
.audio-wave i:nth-child(2), .audio-wave i:nth-child(4) { animation-delay: .16s; }
.audio-wave i:nth-child(3) { animation-delay: .3s; }
.consultation-card { position: relative; z-index: 2; display: grid; gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid rgba(6,182,212,.36); border-radius: 14px; background: rgba(6,182,212,.08); }
.consultation-card strong, .consultation-card small { display: block; }
.consultation-card strong { margin-top: 4px; font-size: 12px; }
.consultation-card small { margin-top: 3px; color: #95a2b2; font-size: 9px; }
.consultation-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 7px; }
.consultation-actions button { min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.045); color: #d3d9e1; cursor: pointer; font-size: 8px; font-weight: 850; }
.consultation-actions button:last-child { border-color: rgba(57,217,138,.35); background: rgba(57,217,138,.1); color: #8aefbd; }
.consultation-actions button:disabled { opacity: .38; cursor: not-allowed; }
.conference-panel { position: relative; z-index: 2; display: grid; gap: 10px; margin: 12px 0; padding: 13px; border: 1px solid rgba(57,217,138,.3); border-radius: 15px; background: linear-gradient(145deg, rgba(57,217,138,.09), rgba(0,0,0,.2)); }
.conference-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conference-panel-heading strong { display: block; margin-top: 4px; font-size: 12px; }
.conference-count { padding: 5px 8px; border: 1px solid rgba(57,217,138,.25); border-radius: 999px; color: #8aefbd; font-size: 8px; font-weight: 850; letter-spacing: .06em; }
.conference-roster { display: grid; gap: 7px; max-height: 240px; overflow-y: auto; }
.conference-participant { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.18); }
.conference-participant.held { border-color: rgba(234,179,8,.36); background: rgba(234,179,8,.07); }
.conference-participant.pending { opacity: .75; }
.conference-participant-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(var(--accent-rgb),.16); color: #fff; font-size: 9px; font-weight: 900; }
.conference-participant-copy { min-width: 0; }
.conference-participant-copy strong, .conference-participant-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conference-participant-copy strong { font-size: 9px; }
.conference-participant-copy small { margin-top: 2px; color: #7f8996; font-size: 8px; }
.conference-participant-actions { display: flex; gap: 4px; }
.conference-participant-actions button, .conference-bulk-actions button { min-height: 29px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.04); color: #c7ced8; cursor: pointer; font-size: 7px; font-weight: 850; }
.conference-participant-actions button:hover, .conference-bulk-actions button:hover { border-color: rgba(var(--accent-rgb),.45); color: #fff; }
.conference-participant-actions button:disabled, .conference-bulk-actions button:disabled { opacity: .35; cursor: not-allowed; }
.conference-bulk-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; padding-top: 2px; }
.conference-bulk-actions button.danger { border-color: rgba(239,68,68,.34); color: #ff9b9b; }
.conference-candidate-card { position: relative; z-index: 2; display: grid; gap: 9px; margin: 12px 0; padding: 13px; border: 1px solid rgba(6,182,212,.4); border-radius: 15px; background: linear-gradient(145deg, rgba(6,182,212,.11), rgba(0,0,0,.2)); }
.conference-candidate-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.conference-candidate-heading strong, .conference-candidate-heading small { display: block; }
.conference-candidate-heading strong { margin-top: 4px; font-size: 12px; }
.conference-candidate-heading small { margin-top: 2px; color: #8a98a8; font-size: 8px; }
.conference-candidate-state { padding: 5px 8px; border: 1px solid rgba(6,182,212,.35); border-radius: 999px; color: #7ce5f5; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.conference-candidate-card p { margin: 0; color: #91a0ae; font-size: 8px; line-height: 1.45; }
.conference-candidate-actions { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px; }
.conference-candidate-actions button { min-height: 34px; padding: 0 7px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.045); color: #d3dae3; cursor: pointer; font-size: 7px; font-weight: 850; }
.conference-candidate-actions button:hover { border-color: rgba(6,182,212,.5); color: #fff; }
.conference-candidate-actions button:disabled { opacity: .35; cursor: not-allowed; }
.conference-candidate-actions button.danger { border-color: rgba(239,68,68,.34); color: #ff9b9b; }
.call-waiting-card { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 13px; border: 1px solid rgba(234,179,8,.4); border-radius: 14px; background: rgba(234,179,8,.09); }
.call-waiting-card strong { display: block; margin-top: 4px; font-size: 12px; }
.waiting-actions { display: flex; gap: 6px; }
.waiting-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.05); cursor: pointer; font-size: 8px; font-weight: 850; }
.waiting-actions button:last-child { border-color: rgba(57,217,138,.4); background: rgba(57,217,138,.12); }
.outbound-line { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; color: #757e8b; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.outbound-line select { max-width: 180px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.2); color: #aab2be; font-size: 9px; }
.number-field { display: grid; grid-template-columns: 1fr 42px; gap: 6px; align-items: center; margin-top: 25px; padding: 6px 8px 6px 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(0,0,0,.22); transition: .2s; }
.number-field:focus-within { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .08); }
.number-field input { min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: .03em; }
.number-field input::placeholder { color: #525966; font-weight: 500; }
.backspace { height: 40px; border: 0; border-radius: 11px; background: transparent; color: #777f8b; cursor: pointer; font-size: 20px; }
.backspace:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.dial-hint { color: #656d79; font-size: 10px; margin: 8px 4px 0; }
.dialpad { width: min(330px, 100%); margin: 22px auto 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.dialpad button { min-height: 64px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); cursor: pointer; transition: transform .13s, border-color .13s, background .13s; }
.dialpad button:hover { border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .08); transform: translateY(-1px); }
.dialpad button:active { transform: translateY(1px) scale(.98); }
.dialpad span { display: block; font-size: 22px; font-weight: 650; line-height: 1; }
.dialpad small { display: block; min-height: 9px; margin-top: 5px; color: #727a87; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.primary-call-actions { display: flex; justify-content: center; margin-top: 8px; }
.call-button, .hangup-button, .answer-button, .reject-button { border: 0; cursor: pointer; font-weight: 850; }
.call-button, .hangup-button { min-width: 154px; height: 52px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 16px; }
.call-button { color: white; background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), .72)); box-shadow: 0 14px 34px rgba(var(--accent-rgb), .24); }
.call-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.call-button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.hangup-button { color: #fff; background: #b91c1c; box-shadow: 0 14px 34px rgba(185,28,28,.25); }
.phone-glyph { width: 13px; height: 13px; display: inline-grid; place-items: center; color: currentColor; font-size: 10px; }
.in-call-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.in-call-actions button { min-height: 55px; display: grid; place-items: center; gap: 4px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #8c94a0; cursor: pointer; }
.in-call-actions button:not(:disabled):hover, .in-call-actions button.active { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.045); }
.in-call-actions button.active { color: var(--accent); border-color: rgba(var(--accent-rgb), .35); }
.in-call-actions button:disabled { opacity: .3; cursor: not-allowed; }
.in-call-actions span { font-size: 17px; font-weight: 800; }
.in-call-actions small { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.active-call-dock { position: relative; z-index: 3; display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; margin-top: 11px; padding: 10px 11px; border: 1px solid rgba(57,217,138,.25); border-radius: 13px; background: rgba(7,19,15,.9); box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.dock-pulse { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 5px rgba(57,217,138,.08); animation: pulse 1.4s infinite; }
.active-call-dock strong, .active-call-dock small { display: block; }
.active-call-dock strong { overflow: hidden; color: #e8fff3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.active-call-dock small { margin-top: 2px; color: #76a991; font-size: 8px; }
.active-call-dock button { min-height: 32px; padding: 0 10px; border: 1px solid rgba(57,217,138,.3); border-radius: 9px; background: rgba(57,217,138,.12); color: #a6f2cb; cursor: pointer; font-size: 8px; font-weight: 850; }
.phone-nav { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.phone-nav button { min-height: 47px; border: 0; border-radius: 11px; background: transparent; color: #6f7885; cursor: pointer; }
.phone-nav button:hover { color: var(--accent); background: rgba(var(--accent-rgb),.06); }
.phone-nav button.active { color: var(--ink); background: rgba(var(--accent-rgb),.12); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.28); }
.phone-nav span, .phone-nav small { display: block; }
.phone-nav span { font-size: 14px; }
.phone-nav small { margin-top: 4px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.text-button { border: 0; background: transparent; color: #77808d; cursor: pointer; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.text-button:hover { color: var(--accent); }
.activity-list { list-style: none; padding: 0 4px 0 0; margin: 18px 0 0; display: grid; gap: 8px; max-height: 480px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb),.45) transparent; }
.record-limit { margin-left: 4px; color: #6f7885; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.empty-state { min-height: 140px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px dashed var(--line); border-radius: 16px; color: #68717e; text-align: center; font-size: 11px; }
.empty-state p { margin: 0; }
.empty-icon { font-size: 28px; color: #4c535f; }
.activity-entry { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 13px; background: rgba(255,255,255,.025); }
.activity-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(57,217,138,.1); color: #39d98a; font-weight: 900; }
.activity-entry.failed .activity-icon, .activity-entry.missed .activity-icon { color: var(--accent); background: rgba(var(--accent-rgb),.1); }
.activity-entry strong, .activity-entry small { display: block; }
.activity-entry strong { font-size: 11px; }
.activity-entry small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.activity-entry time { color: #6f7783; font-size: 9px; }
.activity-copy { min-width: 0; }
.activity-number-button { display: block; max-width: 100%; padding: 1px 0; border: 0; background: transparent; color: #eef3f8; cursor: pointer; font-size: 11px; font-weight: 800; text-align: left; text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb),.42); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; }
.activity-copy strong + .activity-number-button { margin-top: 3px; color: #aeb7c3; font-size: 9px; font-weight: 700; }
.activity-number-button:hover, .activity-number-button:focus-visible { color: var(--accent); text-decoration-color: currentColor; outline: none; }
.system-card { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.15); }
.system-card dl { margin: 12px 0 0; display: grid; gap: 10px; }
.system-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.system-card dt { color: #727b88; }
.system-card dd { margin: 0; font-weight: 750; color: #bec5ce; }

.modal { width: min(460px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--ink); }
.modal::backdrop { background: rgba(2,4,7,.78); backdrop-filter: blur(12px); }
.modal-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #1b1e26, #0e1015); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.theme-lokridge .modal-card { background: linear-gradient(145deg, #272326, #140e07); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: #939aa5; cursor: pointer; font-size: 22px; }
.dialog-logo { display: block; width: 170px; height: 44px; object-fit: contain; object-position: left center; margin-bottom: 24px; padding: 8px 10px; border-radius: 12px; background: white; }
.theme-lokridge .dialog-logo { background: #1f2124; }
.modal-card h2 { margin: 7px 0 8px; font-size: 26px; letter-spacing: -.035em; }
.modal-copy { margin: 0 0 23px; color: #8f97a3; font-size: 12px; line-height: 1.6; }
.modal-card label:not(.remember-row) { display: grid; gap: 8px; margin-top: 14px; }
.modal-card label > span { color: #c6ccd4; font-size: 11px; font-weight: 750; }
.modal-card input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: rgba(0,0,0,.28); color: var(--ink); }
.modal-card input:focus { border-color: rgba(var(--accent-rgb),.7); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.08); }
.remember-row { display: flex; align-items: center; gap: 9px; margin: 14px 0; color: #939ba7; font-size: 10px; cursor: pointer; }
.remember-row input { width: 15px; height: 15px; accent-color: var(--accent); }
.modal-primary, .modal-secondary { width: 100%; height: 49px; margin-top: 8px; border-radius: 13px; cursor: pointer; font-weight: 800; }
.modal-primary { border: 0; background: var(--accent); color: white; box-shadow: 0 12px 28px rgba(var(--accent-rgb),.2); }
.modal-primary:disabled { opacity: .5; cursor: wait; }
.modal-secondary { border: 1px solid var(--line); background: transparent; color: #aab1bb; }
.form-error { min-height: 16px; margin: 4px 0; color: #ff8b8f; font-size: 10px; }
.realm-note { margin: 16px 0 0; text-align: center; color: #69717e; font-size: 9px; }
.realm-note strong { color: #848c98; }
#phoneScreenIncoming { min-height: 535px; isolation: isolate; overflow: hidden; margin: 0 -8px -5px; padding: 0 8px; border-radius: 25px; background: var(--incoming-cyan); }
#phoneScreenIncoming::before { content: ""; position: absolute; inset: -42% -8px; z-index: -2; pointer-events: none; background: linear-gradient(180deg, var(--incoming-blue) 0%, var(--incoming-sky) 24%, var(--incoming-cyan) 46%, var(--incoming-teal) 70%, var(--incoming-green) 100%); background-size: 100% 280%; background-position: 50% 0%; }
#phoneScreenIncoming::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 50% 16%, rgba(255,255,255,.18), transparent 31%), linear-gradient(180deg, rgba(2,40,110,.05), rgba(0,74,98,.12)); }
#phoneScreenIncoming.active-screen::before { animation: incoming-gradient-flow 6s ease-in-out infinite alternate; }
.incoming-screen-wrap { position: relative; z-index: 1; min-height: 530px; display: flex; flex-direction: column; align-items: center; padding: 24px 10px 12px; color: white; text-align: center; }
.incoming-pulse-ring { position: relative; width: 94px; height: 94px; display: grid; place-items: center; margin: 1px auto 12px; }
.pulse-circle { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: 0 0 28px rgba(149,244,255,.24); animation: ring-wave 2s ease-out infinite; }
.pulse-circle:nth-child(2) { animation-delay: .65s; }
.incoming-avatar { position: relative; z-index: 1; width: 88px; height: 88px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.52); border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.32), rgba(255,255,255,.12)); box-shadow: inset 0 0 18px rgba(255,255,255,.22), 0 16px 38px rgba(0,74,145,.25); color: #fff; font-size: 25px; font-weight: 900; backdrop-filter: blur(10px); }
.caller-meta-title { margin: 0 0 6px; color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; letter-spacing: .01em; text-transform: none; }
.caller-name-lg { max-width: 100%; margin: 0; overflow: hidden; color: #fff; font-size: 27px; letter-spacing: -.035em; text-shadow: 0 3px 14px rgba(0,62,108,.25); text-overflow: ellipsis; white-space: nowrap; }
.caller-number-sub { margin: 4px 0 0; color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.caller-number-kind { margin: 3px 0 0; color: rgba(255,255,255,.68); font-size: 9px; }
.incoming-waveform { height: 36px; display: flex; align-items: center; justify-content: center; gap: 5px; margin: 10px 0 6px; }
.incoming-waveform i { width: 3px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.9); box-shadow: 0 0 9px rgba(255,255,255,.55); animation: incoming-wave 1.1s ease-in-out infinite; }
.incoming-waveform i:nth-child(2), .incoming-waveform i:nth-child(10) { animation-delay: -.92s; }
.incoming-waveform i:nth-child(3), .incoming-waveform i:nth-child(9) { animation-delay: -.74s; }
.incoming-waveform i:nth-child(4), .incoming-waveform i:nth-child(8) { animation-delay: -.56s; }
.incoming-waveform i:nth-child(5), .incoming-waveform i:nth-child(7) { animation-delay: -.38s; }
.incoming-waveform i:nth-child(6) { animation-delay: -.2s; }
.caller-badge-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; min-height: 24px; }
.caller-badge { padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff6bd; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; backdrop-filter: blur(8px); }
.queue-badge { color: rgba(255,255,255,.9); }
.incoming-crm-card { width: 100%; display: grid; gap: 7px; margin-top: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 15px; background: rgba(2,63,95,.16); text-align: left; backdrop-filter: blur(12px); }
.incoming-crm-card div { display: flex; justify-content: space-between; gap: 12px; }
.incoming-crm-card span { color: rgba(255,255,255,.62); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.incoming-crm-card strong { max-width: 62%; overflow: hidden; color: #fff; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.incoming-actions-grid { width: min(286px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: auto; padding-top: 13px; }
.answer-button, .reject-button { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; border: 0; background: transparent; color: white; cursor: pointer; font-size: 11px; }
.call-action-orb { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.28); color: white; font-size: 27px; line-height: 1; transition: transform .18s ease, filter .18s ease; }
.answer-button .call-action-orb { background: linear-gradient(145deg, #16c866, #04973f); transform: rotate(-18deg); }
.reject-button .call-action-orb { background: linear-gradient(145deg, #ff313b, #dc0915); transform: rotate(135deg); }
.answer-button:hover .call-action-orb { filter: brightness(1.08); transform: rotate(-18deg) translateY(-2px); }
.reject-button:hover .call-action-orb { filter: brightness(1.08); transform: rotate(135deg) translate(-2px, 2px); }
.answer-button:focus-visible, .reject-button:focus-visible { outline: 2px solid white; outline-offset: 3px; border-radius: 14px; }
.answer-button:disabled { opacity: .62; cursor: wait; }
.transfer-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; padding: 0; border: 0; }
.transfer-mode legend { grid-column: 1 / -1; margin-bottom: 4px; color: #89929e; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.modal-card .transfer-mode label { position: relative; display: grid; gap: 3px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.18); cursor: pointer; }
.transfer-mode input { position: absolute; opacity: 0; pointer-events: none; }
.transfer-mode label:has(input:checked) { border-color: rgba(var(--accent-rgb),.55); background: rgba(var(--accent-rgb),.1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.15); }
.transfer-mode span { color: #e5e9ef; font-size: 10px; font-weight: 850; }
.transfer-mode small { color: #7f8895; font-size: 8px; line-height: 1.35; }
.compact-card { padding-top: 42px; }
.queue-pill { min-width: 116px; }
.omnicenter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.omnicenter > .glass-panel { min-height: 440px; padding: 22px; }
.omnicenter h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.02em; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.metric { min-width: 0; padding: 13px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.16); }
.metric span { display: block; color: var(--ink); font-size: 19px; font-weight: 850; font-variant-numeric: tabular-nums; }
.metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.3; text-transform: uppercase; letter-spacing: .07em; }
.agent-state-row { display: grid; grid-template-columns: 1fr minmax(120px, 1.2fr) auto; gap: 8px; align-items: center; margin-top: 16px; }
.agent-state-row label { color: #b7bec8; font-size: 10px; font-weight: 750; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 18px; }
.search-row input, .crm-form input, .crm-form select, .crm-form textarea, .agent-state-row select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: rgba(0,0,0,.24); color: var(--ink);
}
.search-row input { height: 40px; padding: 0 12px; }
.crm-form input, .crm-form select, .agent-state-row select { height: 40px; padding: 0 11px; }
.crm-form textarea { min-height: 64px; padding: 10px 11px; resize: vertical; }
.search-row input:focus, .crm-form input:focus, .crm-form select:focus, .crm-form textarea:focus, .agent-state-row select:focus { border-color: rgba(var(--accent-rgb),.65); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.08); }
.search-row input:disabled, .crm-form input:disabled, .crm-form select:disabled, .crm-form textarea:disabled, .agent-state-row select:disabled { opacity: .48; cursor: not-allowed; }
.compact-action, .primary-action, .secondary-action { border-radius: 11px; cursor: pointer; font-size: 10px; font-weight: 800; }
.compact-action { height: 40px; padding: 0 13px; border: 1px solid rgba(var(--accent-rgb),.38); background: rgba(var(--accent-rgb),.1); color: #fff; }
.primary-action, .secondary-action { min-height: 40px; padding: 0 14px; }
.primary-action { border: 0; background: var(--accent); color: white; }
.secondary-action { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #c8ced7; }
.compact-action:disabled, .primary-action:disabled, .secondary-action:disabled { opacity: .38; cursor: not-allowed; }
.inline-status { min-height: 15px; margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.inline-status.success { color: #69e4a7; }
.inline-status.error { color: #ff8b8f; }
.queue-cards, .agent-roster { display: grid; gap: 7px; margin-top: 12px; }
.queue-card, .agent-row, .directory-contact { display: grid; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.queue-card { grid-template-columns: 1fr auto; }
.queue-card strong, .agent-row strong, .directory-contact strong { display: block; font-size: 10px; }
.queue-card small, .agent-row small, .directory-contact small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.queue-waiting { min-width: 46px; padding: 6px 8px; border-radius: 9px; background: rgba(var(--accent-rgb),.1); color: var(--accent); text-align: center; font-size: 9px; font-weight: 850; }
.agent-row { grid-template-columns: 31px 1fr auto; }
.agent-state-dot { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(57,217,138,.1); color: #39d98a; font-size: 9px; font-weight: 850; }
.agent-state-dot.offline { background: rgba(255,255,255,.05); color: #7d8591; }
.agent-runtime { color: #9da5b1; font-size: 8px; text-align: right; }
.contact-results { display: grid; gap: 7px; max-height: 344px; margin-top: 12px; overflow: auto; }
.directory-contact { width: 100%; grid-template-columns: 34px 1fr auto; color: inherit; text-align: left; cursor: pointer; }
.directory-contact:hover, .directory-contact.active { border-color: rgba(var(--accent-rgb),.42); background: rgba(var(--accent-rgb),.07); }
.directory-contact .vip-star { color: #f5c84b; font-size: 11px; }
.voicemail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.voicemail-quota { display: grid; gap: 7px; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.voicemail-quota-copy, .voicemail-quota-values { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voicemail-quota-copy span, .voicemail-quota-values { color: var(--muted); font-size: 8px; }
.voicemail-quota-copy strong { color: #dfe4eb; font-size: 8px; }
.voicemail-quota progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); accent-color: var(--accent); }
.voicemail-quota progress::-webkit-progress-bar { border-radius: 999px; background: rgba(255,255,255,.08); }
.voicemail-quota progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
.voicemail-toolbar .check-row { margin: 0; }
.voicemail-list { display: grid; gap: 8px; max-height: 344px; margin-top: 12px; overflow: auto; }
.voicemail-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.voicemail-item.unread { border-color: rgba(var(--accent-rgb),.38); background: rgba(var(--accent-rgb),.055); }
.voicemail-select { width: 15px; height: 15px; margin-top: 3px; accent-color: var(--accent); }
.voicemail-copy { min-width: 0; }
.voicemail-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.voicemail-identity strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.voicemail-identity time { flex: 0 0 auto; color: #737c88; font-size: 7px; }
.voicemail-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.voicemail-item audio { width: 100%; height: 30px; margin-top: 8px; opacity: .86; }
.voicemail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.voicemail-actions a, .voicemail-actions button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); color: #c8ced7; font: inherit; font-size: 8px; font-weight: 800; text-decoration: none; cursor: pointer; }
.voicemail-actions .delete-voicemail { border-color: rgba(255,75,82,.28); color: #ff8b8f; }
.empty-copy { margin: 20px 0; color: #707985; font-size: 10px; line-height: 1.5; text-align: center; }
.crm-form { display: grid; gap: 10px; margin-top: 16px; }
.crm-form label:not(.check-row) { display: grid; gap: 6px; }
.crm-form label > span { color: #aeb6c1; font-size: 9px; font-weight: 750; }
.form-grid { display: grid; gap: 8px; }
.form-grid.two-column { grid-template-columns: 1fr 1fr; }
.form-grid.three-column { grid-template-columns: 1.15fr .7fr 1.2fr; }
.check-row { display: flex; align-items: center; gap: 8px; color: #9da5b1; font-size: 9px; cursor: pointer; }
.check-row input { width: 15px; height: 15px; accent-color: var(--accent); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compact-form { gap: 9px; }
.crm-timeline { display: grid; gap: 7px; max-height: 150px; margin-top: 13px; overflow: auto; }
.timeline-entry { padding: 9px 10px; border-left: 2px solid rgba(var(--accent-rgb),.6); border-radius: 0 9px 9px 0; background: rgba(255,255,255,.025); }
.timeline-entry strong, .timeline-entry small { display: block; }
.timeline-entry strong { font-size: 9px; }
.timeline-entry small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.timeline-entry time { display: block; margin-top: 4px; color: #69717e; font-size: 7px; }
.deal-edit-actions, .timeline-actions { display: flex; gap: 7px; align-items: center; }
.deal-edit-actions > * { flex: 1; }
.timeline-actions { margin-top: 8px; }
.timeline-action { min-height: 28px; padding: 6px 10px; border: 1px solid rgba(var(--accent-rgb),.45); border-radius: 8px; background: rgba(var(--accent-rgb),.09); color: var(--text); font: inherit; font-size: 8px; font-weight: 800; cursor: pointer; }
.timeline-action:hover, .timeline-action:focus-visible { border-color: var(--accent); background: rgba(var(--accent-rgb),.18); }
.timeline-action.delete { border-color: rgba(255,75,86,.45); color: #ff858d; }
.timeline-action:disabled { cursor: wait; opacity: .55; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .58; } }
@keyframes wave { 0%,100% { height: 7px; opacity: .45; } 50% { height: 25px; opacity: 1; } }
@keyframes ring-wave { 0% { opacity: .9; transform: scale(.86); } 100% { opacity: 0; transform: scale(1.58); } }
@keyframes incoming-gradient-flow {
  0% { background-position: 50% 0%; filter: brightness(.94) saturate(1.02); transform: translateY(-2%); }
  50% { background-position: 50% 52%; filter: brightness(1.12) saturate(1.08); }
  100% { background-position: 50% 100%; filter: brightness(.97) saturate(1.04); transform: translateY(2%); }
}
@keyframes incoming-wave { 0%, 100% { height: 8px; opacity: .54; } 50% { height: 31px; opacity: 1; } }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(230px,1fr) minmax(380px,430px); }
  .activity-panel { grid-column: 1 / -1; min-height: auto; }
  .activity-list { grid-template-columns: repeat(3, 1fr); max-height: 360px; }
  .empty-state { grid-column: 1 / -1; min-height: 100px; }
  .omnicenter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 560px); padding-top: 12px; }
  .topbar { align-items: flex-start; }
  .brand-lockup { gap: 10px; }
  .brand-mark-wrap { width: 126px; height: 46px; padding: 9px; }
  .brand-logo { max-height: 27px; }
  .brand-lockup .eyebrow, .brand-lockup h1 { display: none; }
  .status-pill { height: 38px; padding: 0 11px; }
  .icon-button { width: 38px; height: 38px; }
  .workspace { grid-template-columns: 1fr; }
  .phone-panel { grid-row: 1; width: min(100%, 430px); min-height: 720px; justify-self: center; padding: 24px 18px 18px; }
  .side-panel, .activity-panel { min-height: auto; padding: 20px; }
  .dialpad { max-width: 310px; }
  .activity-list { grid-template-columns: 1fr; }
  .phone-telemetry { margin-top: 0; }
  .queue-pill { display: none; }
  .omnicenter { grid-template-columns: 1fr; }
  .omnicenter > .glass-panel { min-height: auto; padding: 20px; }
}

@media (max-width: 390px) {
  .status-pill span:last-child { display: none; }
  .dialpad button { min-height: 58px; }
  .phone-heading h2 { font-size: 18px; }
  .number-field input { font-size: 20px; }
  .modal-card { padding: 28px 22px; }
  .phone-panel { min-height: 690px; border-radius: 26px; }
  .phone-screen { min-height: 500px; }
  .incoming-screen-wrap { min-height: 495px; }
  .transfer-mode { grid-template-columns: 1fr; }
  .conference-participant { grid-template-columns: 30px minmax(0,1fr); }
  .conference-participant-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); }
  .conference-candidate-actions { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .agent-state-row { grid-template-columns: 1fr; }
  .form-grid.two-column, .form-grid.three-column, .form-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* RDS release 4.3.18: equal workspace windows benchmarked to the WebRTC phone. */
[data-rds-feature-state="preserved-disabled"][hidden] { display: none !important; }

@media (min-width: 1101px) {
  .workspace {
    grid-template-columns: repeat(3, minmax(0, 430px));
    justify-content: center;
  }
  .omnicenter {
    grid-template-columns: repeat(auto-fit, minmax(380px, 430px));
    justify-content: center;
  }
  .workspace > .glass-panel,
  .omnicenter > .glass-panel {
    width: 100%;
    min-height: 740px;
    height: 740px;
    max-height: 740px;
    overflow: auto;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .workspace,
  .omnicenter {
    grid-template-columns: repeat(2, minmax(0, 430px));
    justify-content: center;
  }
  .activity-panel { grid-column: auto; }
  .workspace > .glass-panel,
  .omnicenter > .glass-panel {
    width: 100%;
    min-height: 740px;
    height: 740px;
    max-height: 740px;
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .workspace,
  .omnicenter {
    grid-template-columns: minmax(0, 430px);
    justify-content: center;
  }
  .workspace > .glass-panel,
  .omnicenter > .glass-panel {
    width: min(100%, 430px);
    min-height: 720px;
    height: 720px;
    max-height: 720px;
    justify-self: center;
    overflow: auto;
  }
}

@media (max-width: 390px) {
  .workspace > .glass-panel,
  .omnicenter > .glass-panel {
    min-height: 690px;
    height: 690px;
    max-height: 690px;
  }
}

/* RDS tenant only; approved logo colour #ec2028. */
body.theme-rds { --accent:#ec2028; --accent-rgb:236,32,40; --canvas:#111318; }
.theme-rds .brand-logo { width:212px; max-width:100%; height:auto; object-fit:contain; }
.theme-redrackx .brand-mark-wrap,
.theme-rds .brand-mark-wrap,
.theme-redrackx .dialog-logo,
.theme-rds .dialog-logo { background: transparent; }

/* Shared template compatibility; respects the explicitly preserved CRM state. */
[data-rds-feature-state="preserved-disabled"][hidden] { display:none!important; }
.primary-call-actions { gap:10px; flex-wrap:wrap; }
#retrieveParkButton { border:1px solid rgba(255,255,255,.15); border-radius:14px; background:rgba(255,255,255,.05); color:inherit; padding:12px 16px; font:inherit; cursor:pointer; }
#retrieveParkButton:disabled { opacity:.45; cursor:default; }
