:root {
  color-scheme: light;
  --page: #f6f6f2;
  --surface: #fff;
  --ink: #20231f;
  --muted: #858a82;
  --line: #e9ebe5;
  --accent: #4b67e8;
  --accent-deep: #334ed0;
  --accent-wash: #edf0ff;
  --green: #2caf7a;
  --sidebar: #fff;
  --font: 'DM Sans', 'Segoe UI', sans-serif;
  --display: 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #9daeff; outline-offset: 3px; }
.hidden { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.auth-screen { display: grid; min-height: 100vh; place-items: center; padding: 54px 24px; position: relative; overflow: hidden; background: #f5f6f2; }
.auth-screen::before, .auth-screen::after { content: ''; position: absolute; border: 1px solid #e8eae4; border-radius: 50%; pointer-events: none; }
.auth-screen::before { width: 690px; height: 690px; left: -450px; top: 16%; }
.auth-screen::after { width: 510px; height: 510px; right: -370px; bottom: -8%; }
.auth-card { width: min(470px, 100%); padding: 0 24px 6px; text-align: center; position: relative; z-index: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.9px; }
.brand-auth { justify-content: center; font-size: 22px; }
.brand-light { color: #989c96; font-weight: 500; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: white; font: 800 19px var(--display); letter-spacing: -1px; box-shadow: 0 5px 12px #4b67e833; }
.auth-illustration { width: 226px; height: 150px; margin: 33px auto 20px; position: relative; }
.orbit { position: absolute; border: 1px solid #e5e8df; border-radius: 50%; left: 27px; top: -6px; width: 172px; height: 172px; }
.orbit-two { left: 51px; top: 18px; width: 124px; height: 124px; border-style: dashed; }
.auth-center { position: absolute; width: 58px; height: 58px; border-radius: 22px; background: var(--accent); color: white; display: grid; place-items: center; top: 43px; left: 84px; transform: rotate(-8deg); box-shadow: 0 12px 24px #4b67e83b; }
.auth-center .icon { width: 27px; height: 27px; }
.auth-avatar { width: 39px; height: 39px; border-radius: 14px; display: grid; place-items: center; position: absolute; z-index: 2; font: 700 16px var(--display); box-shadow: 0 8px 16px #20231f13; }
.avatar-one { background: #f7ddc4; color: #9d633a; left: 27px; top: 26px; transform: rotate(-11deg); }
.avatar-two { background: #d9eae1; color: #477c62; right: 29px; top: 13px; transform: rotate(10deg); }
.avatar-three { background: #dedff5; color: #6668ad; right: 23px; bottom: -1px; transform: rotate(11deg); }
.auth-dot { position: absolute; width: 11px; height: 11px; background: #98e7bf; border: 3px solid #f5f6f2; border-radius: 50%; left: 126px; top: 89px; z-index: 3; }
.eyebrow { margin: 0; color: #8a8f87; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: 1.6px; }
.auth-card h1 { margin: 11px 0 11px; font: 800 clamp(32px, 8vw, 40px)/1.12 var(--display); letter-spacing: -1.7px; }
.auth-card h1 span { color: var(--accent); }
.auth-copy { max-width: 330px; margin: 0 auto 22px; color: #747a72; font-size: 14px; line-height: 1.7; }
.google-signin { min-height: 42px; display: flex; justify-content: center; margin: 0 auto 10px; }
.android-signin-button { min-width: 220px; height: 44px; padding: 0 22px; border: 1px solid #d6d9d2; border-radius: 24px; background: #fff; color: #272b25; font: 600 14px var(--body); box-shadow: 0 2px 5px rgba(20, 30, 18, .08); }
.android-signin-button:disabled { opacity: .65; }
.auth-message { margin: 13px 0 0; color: #777d74; font-size: 12px; min-height: 18px; line-height: 1.5; }
.auth-message.error { color: #be504c; }
.auth-foot { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 30px; color: #92968f; font-size: 11px; }
.secure-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.auth-side-note { position: absolute; bottom: 24px; color: #9da199; font-size: 11px; letter-spacing: .2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 26px 17px 15px; background: var(--sidebar); border-right: 1px solid #ebece7; }
.sidebar .brand { margin: 0 0 45px 5px; }
.sidebar-label { margin: 0 0 13px 12px; color: #a0a49c; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; text-align: left; height: 44px; display: flex; gap: 12px; align-items: center; padding: 0 12px; background: transparent; border-radius: 9px; color: #777d74; cursor: pointer; transition: background .16s, color .16s; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item span:nth-child(2) { flex: 1; }
.nav-item:hover { background: #f6f7f4; color: var(--ink); }
.nav-item.active { background: var(--accent-wash); color: #455ed1; font-weight: 600; }
.nav-count { min-width: 21px; padding: 3px 6px; text-align: center; border-radius: 7px; background: #f0f1ed; color: #858b81; font-size: 10px; }
.nav-item.active .nav-count { background: #dfe5ff; color: #5269db; }
.sidebar-bottom { margin-top: auto; }
.sidebar-tip { display: flex; gap: 10px; align-items: flex-start; margin: 0 2px 14px; padding: 14px 11px; border: 1px solid #edf0e9; border-radius: 12px; background: #fafbf8; }
.tip-icon { color: #7a8df0; padding-top: 2px; }
.tip-icon .icon { width: 16px; height: 16px; }
.sidebar-tip strong { font-size: 11px; font-weight: 600; }
.sidebar-tip p { margin: 5px 0 0; color: #92978e; font-size: 10px; line-height: 1.55; }
.side-profile { display: flex; gap: 9px; align-items: center; padding: 11px 3px 2px; border-top: 1px solid #f0f1ed; }
.avatar { width: 36px; height: 36px; border-radius: 13px; background: #e3e7fb; color: #576bd0; display: grid; place-items: center; flex: 0 0 auto; font: 700 14px var(--display); background-size: cover; background-position: center; }
.avatar-small { width: 34px; height: 34px; border-radius: 12px; }
.profile-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.profile-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; font-weight: 600; }
.profile-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; color: #90958d; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.icon-button:hover { background: #f1f2ee; }
.icon-button.subtle { color: #8a8f88; width: 30px; height: 30px; }

.main-area { min-width: 0; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid #ebede7; background: rgba(255,255,255,.72); }
.topbar-context { display: grid; gap: 4px; }
.context-kicker { color: #a0a49d; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.topbar-context strong { font: 700 15px var(--display); letter-spacing: -.3px; }
.topbar-actions { display: flex; gap: 13px; align-items: center; }
.searchbox, .directory-search { display: flex; height: 39px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e8eae4; border-radius: 9px; background: #fff; color: #9ca198; }
.searchbox .icon, .directory-search .icon { width: 16px; height: 16px; }
.searchbox input, .directory-search input { width: 198px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.searchbox input::placeholder, .directory-search input::placeholder { color: #a0a49d; }
.searchbox kbd { padding: 3px 5px; border: 1px solid #eceee8; border-radius: 5px; color: #9da198; font: 10px var(--font); white-space: nowrap; }
.button { min-height: 39px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 0 15px; font-size: 11px; font-weight: 600; cursor: pointer; transition: transform .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 15px; height: 15px; }
.button-quiet { border: 1px solid #e7e9e2; background: #fff; color: #656b62; }
.button-quiet:hover { background: #f9faf7; }
.notification-button { min-height: 37px; padding: 0 10px; font-size: 10px; }
.notification-button .icon { width: 15px; height: 15px; }
.header-profile { position: relative; }
.header-avatar { width: 34px; height: 34px; border: 0; border-radius: 12px; cursor: pointer; }
.profile-menu { width: 215px; position: absolute; z-index: 15; top: 45px; right: 0; display: grid; gap: 6px; padding: 13px; border: 1px solid #e7eae3; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px #20231f1b; }
.profile-menu strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.profile-menu > span { overflow: hidden; margin-bottom: 4px; text-overflow: ellipsis; white-space: nowrap; color: #92978f; font-size: 10px; }
.profile-menu .button { width: 100%; }
.mobile-brand { display: none; }
.page-wrap { width: min(1060px, 100%); margin: 0 auto; padding: 40px clamp(24px, 4vw, 58px) 28px; }
.view { display: none; animation: page-in .25s ease both; }
.view.active-view { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.welcome-row .eyebrow { display: flex; align-items: center; gap: 7px; }
.live-indicator { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #45c392; box-shadow: 0 0 0 3px #45c3921d; }
.welcome-row h1, .page-title-row h1 { margin: 11px 0 8px; font: 800 clamp(32px, 4vw, 42px)/1.08 var(--display); letter-spacing: -1.8px; }
.welcome-row h1 { max-width: 480px; }
.welcome-copy, .page-subtitle { margin: 0; color: #858a81; font-size: 13px; line-height: 1.65; }
.device-pill { display: flex; align-items: center; gap: 9px; padding: 9px 12px 9px 9px; margin-bottom: 2px; border: 1px solid #eaede6; border-radius: 10px; color: #858a81; font-size: 10px; background: #fbfcfa; white-space: nowrap; }
.device-pill strong { color: #5e645c; font-weight: 600; }
.device-check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #e5f6ed; color: #39a473; }
.device-check .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.hero-card { min-height: 256px; position: relative; display: flex; overflow: hidden; border-radius: 17px; background: #4b67e8; color: #fff; box-shadow: 0 14px 32px #425ed31c; }
.hero-copy { width: 60%; max-width: 520px; position: relative; z-index: 1; padding: 29px 34px; }
.hero-label { color: #d2d9ff; font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.hero-copy h2 { margin: 10px 0 9px; font: 800 25px/1.2 var(--display); letter-spacing: -.8px; }
.hero-copy p { max-width: 355px; margin: 0 0 17px; color: #e0e5ff; font-size: 11px; line-height: 1.65; }
.button-white { min-height: 36px; padding: 0 12px; background: #fff; color: #485fd1; font-size: 10px; }
.button-white:hover { background: #f1f3ff; }
.hero-art { position: absolute; top: 0; right: 0; width: 43%; height: 100%; overflow: hidden; }
.hero-circle { position: absolute; width: 218px; height: 218px; border-radius: 50%; }
.circle-back { top: 45px; right: 46px; background: #ffffff1c; }
.circle-front { top: 80px; right: 102px; width: 142px; height: 142px; border: 1px solid #ffffff42; background: #90a2ff33; }
.hero-person { position: absolute; display: grid; place-items: center; border: 5px solid #ffffffeb; border-radius: 34px; box-shadow: 0 11px 25px #283ca160; font: 800 24px var(--display); }
.person-left { width: 75px; height: 82px; top: 81px; right: 183px; transform: rotate(-12deg); background: #e5bd9d; color: #895d4b; }
.person-right { width: 82px; height: 92px; top: 68px; right: 70px; transform: rotate(10deg); background: #b7dfcf; color: #467e69; }
.hero-bubble { position: absolute; z-index: 2; display: grid; place-items: center; border-radius: 11px; color: #5269db; background: #fff; box-shadow: 0 8px 18px #25398b32; }
.bubble-one { width: 35px; height: 35px; top: 31px; right: 111px; transform: rotate(10deg); }
.bubble-one .icon { width: 17px; height: 17px; }
.bubble-two { width: 38px; height: 28px; top: 165px; right: 225px; font-size: 11px; font-weight: 700; transform: rotate(-8deg); }
.hero-wave { position: absolute; bottom: -70px; right: -10px; width: 290px; height: 125px; border: 1px solid #ffffff26; border-radius: 50%; transform: rotate(-12deg); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 35px 0 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font: 700 18px var(--display); letter-spacing: -.55px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: #6779dc; font-size: 10px; font-weight: 600; cursor: pointer; }
.text-button:hover { color: var(--accent-deep); }
.text-button .icon { width: 14px; height: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.contact-card { position: relative; min-width: 0; padding: 14px; border: 1px solid #eaede7; border-radius: 12px; background: #fff; transition: box-shadow .2s, transform .2s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: 0 9px 24px #20231f0c; }
.contact-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.contact-info { min-width: 0; flex: 1; }
.contact-info strong, .contact-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-info strong { margin-bottom: 4px; font-size: 11px; font-weight: 600; }
.contact-info span { color: #969b93; font-size: 9px; }
.contact-state { display: inline-flex; align-items: center; gap: 5px; margin: 13px 0 11px; color: #888e85; font-size: 9px; }
.state-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #c6cbc2; }
.state-dot.online { background: #45bf8c; box-shadow: 0 0 0 3px #45bf8c1d; }
.contact-actions { display: flex; gap: 7px; }
.mini-action { width: 31px; height: 30px; display: grid; place-items: center; border: 1px solid #eceee8; border-radius: 8px; background: #fff; color: #6e756b; cursor: pointer; }
.mini-action:hover { border-color: #dbe1ff; background: #f6f7ff; color: #5269da; }
.mini-action.primary { width: auto; flex: 1; display: flex; gap: 6px; border-color: transparent; background: #f0f2ff; color: #546bd9; font-size: 10px; font-weight: 600; }
.mini-action.primary:hover { background: #e6eaff; }
.mini-action .icon { width: 14px; height: 14px; }
.empty-card { display: flex; align-items: center; gap: 17px; padding: 20px; border: 1px dashed #dfe3d9; border-radius: 14px; background: #fbfcf9; }
.empty-illustration { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eff1ff; color: #667be3; flex: 0 0 auto; }
.empty-illustration .icon { width: 23px; height: 23px; }
.empty-illustration span { position: absolute; right: -3px; top: -5px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #a6edcb; color: #318a63; font-size: 13px; font-weight: 600; }
.empty-card h3 { margin: 0 0 5px; font: 700 13px var(--display); }
.empty-card p { max-width: 400px; margin: 0; color: #898f85; font-size: 10px; line-height: 1.6; }
.empty-card .button { margin-left: auto; white-space: nowrap; }
.button-soft { border: 1px solid #e0e5ff; background: #f0f2ff; color: #596ed8; }
.button-soft:hover { background: #e7eaff; }
.bottom-note { display: flex; align-items: center; gap: 8px; margin-top: 27px; color: #9a9f95; font-size: 9px; }
.note-mark { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 6px; background: #e9ecff; color: #6578dc; font: 800 10px var(--display); }
.bottom-note .text-button { margin-left: auto; }

.page-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 8px 0 28px; }
.page-title-row h1 { margin-top: 9px; }
.online-summary, .history-badge { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #e8ebe4; border-radius: 9px; background: #fff; color: #9a9f96; font-size: 10px; }
.online-summary .live-indicator { width: 6px; height: 6px; }
.online-summary strong { color: #545b52; font-weight: 600; }
.history-badge .icon { width: 14px; height: 14px; color: #7b8be4; }
.contact-form { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(190px, 1.2fr) auto; align-items: end; gap: 10px; margin-bottom: 14px; padding: 14px; border: 1px solid #eaede6; border-radius: 11px; background: #fff; }
.contact-form label { display: grid; gap: 6px; color: #8d9389; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.contact-form input { width: 100%; height: 37px; padding: 0 11px; border: 1px solid #e8eae4; border-radius: 8px; outline: 0; color: var(--ink); font: 11px var(--font); }
.contact-form input:focus { border-color: #aeb8f0; box-shadow: 0 0 0 3px #eef0ff; }
.contact-form button { min-height: 37px; }
.directory-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #eaede6; border-radius: 11px 11px 0 0; background: #fff; }
.directory-search { width: min(420px, 100%); height: 37px; background: #fbfcfa; }
.directory-search input { flex: 1; width: auto; }
.directory-total { color: #9ba097; font-size: 10px; white-space: nowrap; }
.contact-list { overflow: hidden; border: 1px solid #eaede6; border-top: 0; border-radius: 0 0 11px 11px; background: #fff; }
.contact-row { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f0f1ed; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .contact-info strong { font-size: 12px; }
.contact-row .contact-info span { font-size: 10px; }
.row-presence { min-width: 84px; display: inline-flex; align-items: center; gap: 7px; color: #92978f; font-size: 10px; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.row-actions .mini-action { width: 35px; height: 34px; }
.contact-remove, .contact-edit { padding: 6px; border: 0; background: transparent; color: #92978f; font: 10px var(--font); cursor: pointer; }
.contact-remove:hover { color: #c55b5b; }
.contact-edit:hover { color: #5269da; }
.contact-unregistered { color: #a17a3f; font-size: 9px; white-space: nowrap; }
.contacts-empty-inline { padding: 34px; color: #90968d; text-align: center; font-size: 11px; }
.contacts-empty-inline strong { display: block; margin-bottom: 4px; color: #50564e; font-size: 12px; }
.history-list { display: grid; gap: 9px; }
.history-row { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #eaede6; border-radius: 11px; background: #fff; }
.history-avatar { width: 38px; height: 38px; border-radius: 14px; }
.history-copy { min-width: 0; flex: 1; }
.history-copy strong { display: block; overflow: hidden; margin-bottom: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.history-meta { display: flex; align-items: center; gap: 7px; color: #969b92; font-size: 9px; }
.history-meta .icon { width: 13px; height: 13px; }
.history-meta .outgoing { color: #6c80dc; }
.history-meta .incoming { color: #56a57e; }
.history-time { color: #9ea39a; font-size: 9px; white-space: nowrap; }
.history-call { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #eceee8; border-radius: 9px; background: #fff; color: #677cda; cursor: pointer; }
.history-call:hover { background: #f1f3ff; }
.history-call .icon { width: 15px; height: 15px; }
.clock-empty { background: #eaf5ee; color: #60a47e; }

.toast { position: fixed; z-index: 20; right: 26px; top: 93px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 15px; border: 1px solid #e8ece4; border-radius: 11px; background: #fff; box-shadow: 0 12px 35px #20231f1a; color: #5d6359; font-size: 11px; line-height: 1.5; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: #f2d9d5; color: #a24c45; }
.mobile-nav { display: none; }

.call-overlay { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: #17203f91; backdrop-filter: blur(8px); animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.call-window { width: min(430px, 100%); min-height: 480px; position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 30px 22px; overflow: hidden; border: 1px solid #ffffffc9; border-radius: 21px; background: #fbfcfa; box-shadow: 0 25px 75px #1016295c; }
.call-window::before { content: ''; width: 340px; height: 340px; position: absolute; top: 40px; border: 1px solid #ecefe9; border-radius: 50%; pointer-events: none; }
.call-window::after { content: ''; width: 255px; height: 255px; position: absolute; top: 82px; border: 1px dashed #e8ebe4; border-radius: 50%; pointer-events: none; }
.call-close { position: absolute; top: 14px; right: 14px; z-index: 5; color: #858b82; }
.call-topline { z-index: 1; display: flex; align-items: center; gap: 7px; color: #8e948a; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.call-brand-dot { width: 7px; height: 7px; border-radius: 3px; background: var(--accent); }
.encrypted-label { margin-left: 4px; padding: 4px 7px; border-radius: 5px; background: #eef1ff; color: #7686dc; font-size: 7px; letter-spacing: .7px; }
.call-person-area { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 49px; }
.call-avatar-wrap { position: relative; margin-bottom: 15px; }
.call-avatar { width: 86px; height: 86px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 29px; background: #e4e8fa; color: #596dd2; box-shadow: 0 8px 25px #3e4d9124; background-size: cover; background-position: center; font: 800 30px var(--display); }
.call-pulse { position: absolute; z-index: -1; inset: -13px; border: 1px solid #aab6ff; border-radius: 35px; animation: call-pulse 2.3s ease-out infinite; }
@keyframes call-pulse { 0% { transform: scale(.85); opacity: .75; } 100% { transform: scale(1.28); opacity: 0; } }
.call-state { margin: 0 0 4px; color: #848b81; font-size: 10px; }
.call-person-area h2 { max-width: 300px; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font: 800 21px var(--display); letter-spacing: -.6px; }
.call-email { max-width: 280px; overflow: hidden; margin: 5px 0 0; text-overflow: ellipsis; white-space: nowrap; color: #a0a59c; font-size: 10px; }
.call-timer { margin-top: 9px; color: #6d746a; font-size: 11px; font-variant-numeric: tabular-nums; }
.call-actions { position: relative; z-index: 2; display: flex; gap: 27px; align-items: flex-start; justify-content: center; margin-top: auto; padding-top: 35px; }
.call-action { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: transparent; cursor: pointer; }
.call-action > span { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 18px; transition: transform .15s, box-shadow .15s; }
.call-action:hover > span { transform: translateY(-2px); box-shadow: 0 8px 16px #20231f1b; }
.call-action .icon { width: 20px; height: 20px; }
.call-action small { color: #82887e; font-size: 9px; }
.call-action.accept > span { background: #36b87e; color: #fff; }
.call-action.accept .icon { transform: rotate(0deg); }
.call-action.decline > span { background: #ed6963; color: #fff; }
.call-action#end-call > span { background: #ed6963; color: #fff; transform: rotate(135deg); }
.call-action.control > span { background: #eff1ee; color: #656c62; }
.call-action.control.is-muted > span { background: #fee9e6; color: #d35e56; }
.call-action.control.is-off > span { background: #fee9e6; color: #d35e56; }
.mic-control-wrap { position: relative; display: flex; justify-content: center; }
.mic-picker-toggle { position: absolute; top: 10px; right: -10px; z-index: 3; width: 23px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: #e2e6e1; color: #4c554b; font-size: 17px; line-height: 20px; cursor: pointer; }
.mic-picker-toggle:hover, .mic-picker-toggle[aria-expanded="true"] { background: #ced8cc; }
.mic-picker { position: absolute; left: -22px; bottom: calc(100% + 14px); z-index: 12; width: min(280px, calc(100vw - 46px)); padding: 13px; border: 1px solid #e5e8e2; border-radius: 13px; background: #fff; color: #2d332d; box-shadow: 0 12px 36px #1b211b30; text-align: left; }
.mic-picker label { display: block; margin-bottom: 7px; color: #596157; font-size: 11px; font-weight: 700; }
.mic-picker select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #d9ded7; border-radius: 8px; background: #fff; color: #2d332d; font: inherit; font-size: 12px; }
.mic-level-label { margin-top: 10px; color: #778073; font-size: 10px; }
.mic-level-track { width: 100%; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #edf0eb; }
.mic-level-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #3ab87f; transition: width .08s linear; }
.call-hint { z-index: 1; margin: 21px 0 0; color: #a2a79e; font-size: 9px; }
.video-stage { position: relative; z-index: 2; width: min(100%, 310px); height: 170px; margin-top: 17px; overflow: hidden; border: 1px solid #e8ebe5; border-radius: 14px; background: #20231f; }
.video-stage #remote-video { width: 100%; height: 100%; object-fit: contain; }
.video-stage #local-video { width: 75px; height: 90px; position: absolute; right: 8px; bottom: 8px; border: 2px solid #fff; border-radius: 10px; background: #484c48; object-fit: cover; }
.video-fullscreen { width: 34px; height: 34px; position: absolute; top: 10px; right: 10px; z-index: 4; display: grid; place-items: center; border: 1px solid #ffffff55; border-radius: 10px; background: #1217139c; color: #fff; cursor: pointer; opacity: .85; }
.video-fullscreen:hover { opacity: 1; }
.video-fullscreen .icon { width: 17px; height: 17px; }
.call-window.is-video { min-height: 535px; }
.call-window.is-video:not(:fullscreen):not(.video-fullscreen-fallback) { width: min(1380px, calc(100vw - 48px)); height: min(900px, calc(100dvh - 48px)); min-height: 0; }
.call-window.is-video .call-person-area { margin-top: 28px; }
.call-window.is-video .call-avatar { width: 66px; height: 66px; border-radius: 23px; font-size: 24px; }
.call-window.is-video .call-avatar-wrap { margin-bottom: 9px; }
.call-window.is-video .call-actions { padding-top: 18px; }
.call-window.is-video .video-stage { width: 100%; height: auto; min-height: 0; flex: 1; margin-top: 15px; }
.call-window.is-video:fullscreen, .call-window.is-video.video-fullscreen-fallback { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; }
.call-window.is-video:fullscreen .video-stage, .call-window.is-video.video-fullscreen-fallback .video-stage { flex: 1; width: 100%; min-height: 0; }
body.desktop-fullscreen .call-overlay { padding: 0; }
body.desktop-fullscreen .call-window.is-video:not(:fullscreen):not(.video-fullscreen-fallback) { width: 100vw; height: 100dvh; min-height: 0; border-radius: 0; }
body.desktop-fullscreen .call-window.is-video .video-stage { flex: 1; width: 100%; min-height: 0; }

@media (min-width: 1450px) {
  .page-wrap { padding-top: 50px; }
  .hero-card { min-height: 275px; }
  .hero-copy { padding: 35px 38px; }
}

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .topbar { padding: 0 25px; }
  .page-wrap { padding-right: 25px; padding-left: 25px; }
  .searchbox input { width: 155px; }
  .notification-button span { display: none; }
  .notification-button { width: 37px; justify-content: center; padding: 0; }
  .hero-art { width: 41%; }
  .hero-copy { width: 65%; padding-left: 27px; }
  .person-left { right: 143px; }
  .person-right { right: 37px; }
  .bubble-two { right: 178px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; min-height: 100dvh; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { height: 61px; position: sticky; z-index: 10; top: 0; padding: 0 16px; background: #f9faf7f2; backdrop-filter: blur(12px); }
  .mobile-brand { display: inline-flex; align-items: center; gap: 8px; font: 800 16px var(--display); letter-spacing: -.7px; }
  .mobile-brand .brand-mark { width: 28px; height: 28px; border-radius: 10px; font-size: 15px; }
  .topbar-context { display: none; }
  .topbar-actions { gap: 7px; }
  .searchbox { height: 35px; width: 35px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .searchbox input, .searchbox kbd { display: none; }
  .searchbox .icon { width: 19px; height: 19px; }
  .notification-button { width: 35px; height: 35px; min-height: 35px; border: 0; background: transparent; }
  .header-avatar { width: 30px; height: 30px; border-radius: 11px; }
  .profile-menu { top: 41px; }
  .page-wrap { padding: 26px 18px 20px; }
  .welcome-row { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
  .welcome-row h1 { margin-top: 9px; font-size: 34px; }
  .welcome-copy { font-size: 12px; }
  .mobile-break { display: none; }
  .device-pill { margin-bottom: 0; font-size: 9px; }
  .hero-card { min-height: 300px; border-radius: 16px; }
  .hero-copy { width: 100%; max-width: none; padding: 22px 21px; }
  .hero-copy h2 { max-width: 240px; font-size: 23px; }
  .hero-copy p { max-width: 270px; font-size: 10px; }
  .hero-art { top: auto; right: 0; bottom: 0; width: 100%; height: 126px; opacity: .86; }
  .hero-circle { width: 145px; height: 145px; }
  .circle-back { top: 30px; right: 32px; }
  .circle-front { top: 48px; right: 70px; width: 97px; height: 97px; }
  .hero-person { border-width: 4px; border-radius: 25px; font-size: 18px; }
  .person-left { width: 53px; height: 58px; top: 53px; right: 126px; }
  .person-right { width: 59px; height: 65px; top: 43px; right: 48px; }
  .bubble-one { width: 29px; height: 29px; top: 23px; right: 82px; }
  .bubble-two { width: 32px; height: 23px; top: 81px; right: 152px; font-size: 9px; }
  .section-heading { margin-top: 28px; }
  .section-heading h2 { font-size: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 8px; }
  .contact-card { padding: 12px; }
  .contact-card .contact-state { margin: 9px 0; }
  .contact-card .contact-actions { position: absolute; right: 12px; top: 12px; }
  .contact-card .contact-top { max-width: calc(100% - 5px); }
  .contact-card .mini-action.primary { width: 34px; flex: 0 0 34px; }
  .contact-card .mini-action.primary span { display: none; }
  .bottom-note { align-items: flex-start; line-height: 1.5; margin-top: 20px; }
  .bottom-note .note-mark { flex: 0 0 auto; }
  .bottom-note .text-button { white-space: nowrap; }
  .empty-card { align-items: flex-start; flex-wrap: wrap; gap: 13px; padding: 15px; }
  .empty-card > div:nth-child(2) { flex: 1; min-width: 170px; }
  .empty-card .button { margin-left: 61px; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 4px; margin-bottom: 21px; }
  .page-title-row h1 { font-size: 32px; }
  .page-subtitle { max-width: 320px; font-size: 11px; }
  .online-summary, .history-badge { font-size: 9px; padding: 7px 10px; }
  .directory-tools { padding: 9px; }
  .contact-form { grid-template-columns: 1fr; gap: 9px; padding: 11px; }
  .contact-form label { gap: 4px; }
  .contact-form button { width: 100%; }
  .directory-search { height: 35px; }
  .directory-search input { font-size: 10px; }
  .directory-total { font-size: 9px; }
  .contact-row { min-height: 66px; gap: 9px; padding: 10px; }
  .contact-row .avatar { width: 33px; height: 33px; border-radius: 12px; }
  .contact-row .contact-info strong { font-size: 10px; }
  .contact-row .contact-info span { max-width: 180px; font-size: 9px; }
  .row-presence { min-width: 0; font-size: 0; }
  .row-presence .state-dot { width: 7px; height: 7px; }
  .row-actions { gap: 5px; }
  .row-actions .mini-action { width: 31px; height: 31px; }
  .history-row { min-height: 67px; padding: 10px; gap: 9px; }
  .history-time { max-width: 74px; overflow: hidden; font-size: 8px; }
  .history-meta { font-size: 8px; gap: 5px; }
  .history-row .history-avatar { width: 34px; height: 34px; border-radius: 12px; }
  .history-call { width: 29px; height: 29px; }
  .mobile-nav { height: calc(61px + env(safe-area-inset-bottom)); position: fixed; z-index: 12; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; padding: 5px 15px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid #e9ebe5; background: #ffffffed; backdrop-filter: blur(14px); }
  .mobile-nav .nav-item { height: 49px; position: relative; flex-direction: column; justify-content: center; gap: 3px; padding: 3px; border-radius: 9px; color: #959a91; font-size: 9px; }
  .mobile-nav .nav-item .icon { width: 18px; height: 18px; }
  .mobile-nav .nav-item.active { color: #536bdc; background: transparent; }
  .mobile-count { position: absolute; top: 2px; margin-left: 23px; min-width: 15px; height: 15px; display: grid; place-items: center; border-radius: 8px; background: #5269da; color: white; font-size: 8px; }
  .toast { right: 12px; top: 70px; }
  .call-overlay { padding: 0; align-items: stretch; background: #f7f8f4; backdrop-filter: none; }
  .call-window { width: 100%; min-height: 100dvh; border: 0; border-radius: 0; padding: max(23px, env(safe-area-inset-top)) 23px max(22px, env(safe-area-inset-bottom)); box-shadow: none; }
  .call-window::before { top: 15%; width: 360px; height: 360px; }
  .call-window::after { top: calc(15% + 42px); width: 276px; height: 276px; }
  .call-topline { margin-top: 4px; }
  .call-close { top: max(18px, env(safe-area-inset-top)); right: 15px; }
  .call-person-area { margin-top: 21vh; }
  .call-avatar { width: 94px; height: 94px; border-radius: 32px; }
  .call-person-area h2 { font-size: 23px; }
  .call-actions { width: 100%; justify-content: center; gap: clamp(28px, 11vw, 54px); padding-bottom: 14vh; }
  .call-hint { margin-top: -9vh; padding-bottom: 20px; }
  .call-window.is-video { width: 100%; height: 100dvh; min-height: 0; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .call-window.is-video .call-person-area { margin-top: 12px; }
  .call-window.is-video .video-stage { width: 100%; min-height: 0; flex: 1; }
  .call-window.is-video .call-actions { gap: clamp(14px, 6vw, 36px); padding-top: 12px; padding-bottom: 8px; }
  .call-window.is-video .call-hint { margin: 5px 0 0; padding-bottom: 0; }
}

@media (max-width: 400px) {
  .topbar { padding: 0 12px; }
  .page-wrap { padding-left: 13px; padding-right: 13px; }
  .welcome-row h1 { font-size: 31px; }
  .hero-copy h2 { font-size: 21px; }
  .hero-copy p { max-width: 235px; }
  .online-summary { gap: 6px; }
  .history-badge { gap: 5px; }
  .contact-row { padding-left: 8px; padding-right: 8px; }
  .row-actions .mini-action { width: 29px; height: 29px; }
}

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