﻿/* -----------------------------------------------------------
   iOS-style shell (scoped by usage: only PhoneLayout loads this)
   ----------------------------------------------------------- */

:root {
    --ios-topbar-h: 52px;
    --ios-tabbar-h: 78px; /* includes label spacing; safe-area handled separately */
    --ios-hpad: 14px;
    --phone-shell-w: 520px;
}

/* Make sure the shell feels full-height */
html, body {
    min-height: 100%;
}

.ios-shell {
    max-width: var(--phone-shell-w);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Content area: centred on desktop, full width on mobile */
.ios-content {
    max-width: var(--phone-shell-w);
    margin: 0 auto;
    padding: 10px var(--ios-hpad) calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + 12px);
}

@media (max-width: 640px) {
    .ios-content {
        max-width: none;
        margin: 0;
    }
}

/* ---------------- Top bar (iOS-ish) ---------------- */
.ios-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: calc(var(--ios-topbar-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--ios-hpad) 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: calc(var(--ios-topbar-h) + env(safe-area-inset-top));
    height: auto;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

@media (prefers-color-scheme: dark) {
    .ios-topbar {
        background: rgba(24,35,53,.82);
        border-bottom: 1px solid rgba(255,255,255,.10);
    }
}

/* Visual voicemail --------------------------------------------------------- */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visual-voicemail {
    display: grid;
    width: min(100%, 860px);
    margin: 0 auto;
    gap: 18px;
    color: var(--ec-text);
}

.visual-voicemail__header,
.visual-voicemail__title-row,
.visual-voicemail__fallback,
.voicemail-alert,
.voicemail-player__controls {
    display: flex;
    align-items: center;
}

.visual-voicemail__header {
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px;
}

.visual-voicemail__header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.visual-voicemail__header p,
.visual-voicemail__fallback span,
.voicemail-alert p,
.voicemail-state span,
.voicemail-player__notice span {
    margin: 4px 0 0;
    color: var(--ec-muted);
    font-size: .86rem;
    line-height: 1.4;
}

.visual-voicemail__title-row {
    gap: 10px;
}

.visual-voicemail__badge {
    display: inline-flex;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d83a4e;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(216, 58, 78, .24);
}

.voicemail-player__play {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ec-border);
    border-radius: 50%;
    background: var(--ec-panel);
    color: var(--ec-brand);
    cursor: pointer;
    font: inherit;
    font-size: 1.35rem;
}

.voicemail-player__play:hover {
    background: var(--ec-brand-100);
}

.voicemail-player__play:disabled {
    cursor: default;
    opacity: .55;
}

.voicemail-player__play:focus-visible,
.voicemail-message__summary:focus-visible,
.voicemail-player__action:focus-visible,
.visual-voicemail__fallback .btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ec-brand) 55%, transparent);
    outline-offset: 2px;
}

.is-spinning,
.voicemail-state__spinner {
    animation: voicemail-spin .85s linear infinite;
}

.voicemail-state {
    display: grid;
    min-height: 170px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    border: 1px solid var(--ec-border);
    border-radius: 18px;
    background: var(--ec-panel);
    text-align: center;
}

.voicemail-state--compact {
    min-height: auto;
    padding: 18px;
}

.voicemail-state--empty {
    min-height: 220px;
}

.voicemail-state__symbol {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, #1f9d69 15%, var(--ec-panel));
    color: #16734f;
    font-size: 1.5rem;
    font-weight: 800;
}

.voicemail-state__spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid color-mix(in srgb, var(--ec-brand) 20%, transparent);
    border-top-color: var(--ec-brand);
    border-radius: 50%;
}

.voicemail-alert {
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid color-mix(in srgb, #c87913 40%, var(--ec-border));
    border-radius: 14px;
    background: color-mix(in srgb, #f5a623 9%, var(--ec-panel));
}

.voicemail-alert > span {
    display: inline-flex;
    width: 26px;
    min-width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b9670d;
    color: #fff;
    font-weight: 900;
}

.voicemail-alert > div {
    flex: 1;
}

.voicemail-alert p {
    color: inherit;
}

.voicemail-alert--auth {
    border-color: color-mix(in srgb, #d83a4e 40%, var(--ec-border));
    background: color-mix(in srgb, #d83a4e 8%, var(--ec-panel));
}

.voicemail-section {
    display: grid;
    gap: 8px;
}

.voicemail-section h2 {
    display: flex;
    margin: 0;
    padding: 0 4px;
    align-items: baseline;
    gap: 7px;
    color: var(--ec-muted);
    font-size: .83rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.voicemail-section h2 span {
    font-size: .73rem;
}

.voicemail-list {
    overflow: hidden;
    border: 1px solid var(--ec-border);
    border-radius: 16px;
    background: var(--ec-panel);
}

.voicemail-message + .voicemail-message {
    border-top: 1px solid var(--ec-border);
}

.voicemail-message.is-selected {
    background: color-mix(in srgb, var(--ec-brand) 5%, var(--ec-panel));
}

.voicemail-message__summary {
    display: grid;
    width: 100%;
    min-height: 76px;
    grid-template-columns: 44px minmax(140px, 1fr) minmax(145px, auto) 18px;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.voicemail-message__summary:hover {
    background: color-mix(in srgb, var(--ec-border) 22%, transparent);
}

.voicemail-message__status,
.voicemail-message__identity,
.voicemail-message__meta {
    display: grid;
    min-width: 0;
}

.voicemail-message__status {
    justify-items: center;
    gap: 3px;
}

.voicemail-message__unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ec-brand);
    box-shadow: 0 0 0 3px var(--ec-brand-100);
}

.voicemail-message__unread-text {
    color: var(--ec-brand);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

.voicemail-message__identity {
    gap: 3px;
}

.voicemail-message__identity strong {
    overflow: hidden;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voicemail-message--unread .voicemail-message__identity strong {
    font-weight: 800;
}

.voicemail-message__identity span,
.voicemail-message__meta {
    color: var(--ec-muted);
    font-size: .79rem;
}

.voicemail-message__meta {
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.voicemail-message__chevron {
    color: var(--ec-muted);
    font-size: 1.5rem;
    transform-origin: center;
    transition: transform .18s ease;
}

.voicemail-message.is-selected .voicemail-message__chevron {
    transform: rotate(90deg);
}

.voicemail-player {
    display: grid;
    gap: 14px;
    padding: 2px 18px 18px 59px;
}

.voicemail-player audio {
    display: none;
}

.voicemail-player__controls {
    gap: 10px;
}

.voicemail-player__action {
    flex: 0 0 28px;
}

.voicemail-player__delete {
    color: #c52f43;
}

.voicemail-player__delete:hover,
.voicemail-player__delete:focus-visible {
    background: #c52f43;
    color: #ffffff;
}

.voicemail-player__play {
    border: 0;
    background: var(--ec-brand);
    color: #fff;
    font-size: 1rem;
}

.voicemail-player__play:hover {
    background: color-mix(in srgb, var(--ec-brand) 86%, #000);
}

.voicemail-player__controls input[type="range"] {
    min-width: 80px;
    flex: 1;
    accent-color: var(--ec-brand);
    cursor: pointer;
}

.voicemail-player__time {
    min-width: 38px;
    color: var(--ec-muted);
    font-variant-numeric: tabular-nums;
    font-size: .75rem;
    text-align: center;
}

.visual-voicemail__fallback .btn,
.voicemail-alert .btn {
    min-height: 44px;
}

.btn.danger-ghost {
    border-color: color-mix(in srgb, #d83a4e 32%, var(--ec-border));
    background: transparent;
    color: #c52f43;
}

.voicemail-player__error {
    margin: 0;
    color: #b42318;
    font-size: .82rem;
    font-weight: 650;
}

.voicemail-player__notice {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 2px;
    padding: 13px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ec-border) 28%, transparent);
}

.visual-voicemail__fallback {
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--ec-border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--ec-panel) 96%, var(--ec-border));
}

.visual-voicemail__fallback > div {
    display: grid;
}

.voicemail-call-mailbox {
    white-space: nowrap;
}

@keyframes voicemail-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
    .visual-voicemail {
        width: 100%;
        gap: 15px;
        padding: 6px 12px calc(20px + env(safe-area-inset-bottom));
    }

    .visual-voicemail__header {
        padding-inline: 3px;
    }

    .voicemail-message__summary {
        min-height: 78px;
        grid-template-columns: 35px minmax(0, 1fr) auto 14px;
        gap: 7px;
        padding: 11px 10px;
    }

    .voicemail-message__meta {
        max-width: 116px;
    }

    .voicemail-message__meta span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .voicemail-player {
        padding: 3px 12px 15px;
    }

    .voicemail-player__controls {
        gap: 7px;
    }

    .visual-voicemail__fallback {
        align-items: stretch;
        flex-direction: column;
    }

    .voicemail-alert {
        flex-wrap: wrap;
    }

    .voicemail-alert .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voicemail-message__chevron {
        transition: none;
    }

    .is-spinning,
    .voicemail-state__spinner {
        animation-duration: 1.8s;
    }
}

:root[data-theme="eurotels"] .ios-topbar,
html[data-theme="eurotels"] .ios-topbar,
body[data-theme="eurotels"] .ios-topbar {
    background: rgba(255,255,255,.86);
    border-bottom: 1px solid rgba(14,38,72,.10);
}

:root[data-theme="dark"] .ios-topbar,
html[data-theme="dark"] .ios-topbar,
body[data-theme="dark"] .ios-topbar {
    background: rgba(24,35,53,.82);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.ios-topbar__right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    min-width: 0;
    flex-wrap: wrap;
}

.ec-presence-picker {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: relative;
    height: 30px;
    min-width: 0;
    padding: 0 6px 0 8px;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.70);
    color: #111827;
    flex: 0 1 138px;
}

.ec-presence-picker__dot,
.ec-presence-picker__option-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9ca3af;
    flex: 0 0 auto;
}

.ec-presence-picker__dot--available {
    background: #22c55e;
}

.ec-presence-picker__dot--away {
    background: #eab308;
}

.ec-presence-picker__dot--busy {
    background: #ef4444;
}

.ec-presence-picker__dot--unknown {
    background: #9ca3af;
}

.ec-presence-picker__button {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 0 18px 0 0;
    outline: none;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
}

.ec-presence-picker__button:disabled {
    opacity: .55;
    cursor: default;
}

.ec-presence-picker__button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 7px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transform: translateY(-35%);
    opacity: .75;
    pointer-events: none;
}

.ec-presence-picker__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 160px;
    padding: 5px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15,23,42,.18);
}

.ec-presence-picker__option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 30px;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.ec-presence-picker__option:hover,
.ec-presence-picker__option--selected {
    background: rgba(14,165,233,.11);
}

@media (prefers-color-scheme: dark) {
    .ec-presence-picker {
        border-color: rgba(255,255,255,.14);
        background: rgba(34,48,71,.78);
        color: #f9fafb;
    }

    .ec-presence-picker__menu {
        border-color: rgba(255,255,255,.14);
        background: #1f2937;
        box-shadow: 0 14px 34px rgba(0,0,0,.34);
    }

    .ec-presence-picker__option {
        color: #f9fafb;
    }

    .ec-presence-picker__option:hover,
    .ec-presence-picker__option--selected {
        background: rgba(56,189,248,.16);
    }
}

:root[data-theme="eurotels"] .ec-presence-picker,
html[data-theme="eurotels"] .ec-presence-picker,
body[data-theme="eurotels"] .ec-presence-picker {
    border-color: rgba(14,38,72,.14);
    background: rgba(255,255,255,.76);
    color: #031e23;
}

:root[data-theme="dark"] .ec-presence-picker,
html[data-theme="dark"] .ec-presence-picker,
body[data-theme="dark"] .ec-presence-picker {
    border-color: rgba(255,255,255,.14);
    background: rgba(34,48,71,.78);
    color: #f9fafb;
}

:root[data-theme="dark"] .ec-presence-picker__menu,
html[data-theme="dark"] .ec-presence-picker__menu,
body[data-theme="dark"] .ec-presence-picker__menu {
    border-color: rgba(255,255,255,.14);
    background: #1f2937;
    box-shadow: 0 14px 34px rgba(0,0,0,.34);
}

:root[data-theme="dark"] .ec-presence-picker__option,
html[data-theme="dark"] .ec-presence-picker__option,
body[data-theme="dark"] .ec-presence-picker__option {
    color: #f9fafb;
}

:root[data-theme="dark"] .ec-presence-picker__option:hover,
:root[data-theme="dark"] .ec-presence-picker__option--selected,
html[data-theme="dark"] .ec-presence-picker__option:hover,
html[data-theme="dark"] .ec-presence-picker__option--selected,
body[data-theme="dark"] .ec-presence-picker__option:hover,
body[data-theme="dark"] .ec-presence-picker__option--selected {
    background: rgba(56,189,248,.16);
}

@media (max-width: 420px) {
    .ios-topbar__right {
        gap: .3rem;
    }

    .ec-presence-picker {
        padding: 0 6px;
        flex-basis: min(118px, calc(100vw - 160px));
    }

    .ec-presence-picker__button,
    .ec-presence-picker__option {
        font-size: 11px;
    }
}

/* Hide dev/debug UI in phone mode */
.ios-content .ec-callstack .ec-toolbar.dev {
    display: none !important;
}

/* ---------------- Bottom tab bar ---------------- */
.ios-tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--phone-shell-w), 100%);
    bottom: 0;
    height: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0,0,0,.10);
    z-index: 60;
}

.ios-tabbar--packaged {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.android-shell {
    max-width: none;
}

.android-shell .ios-topbar,
.android-shell .ios-tabbar {
    width: 100% !important;
    max-width: none !important;
}

.android-shell .ios-tabbar {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.android-shell .ios-content {
    width: min(680px, 100%);
    max-width: 680px;
}

/* Android packaged surface: Material-style hierarchy, isolated from iOS/browser. */
.android-shell {
    --android-topbar-h: 0rem;
    --android-nav-h: 4.75rem;
    --android-space-1: .25rem;
    --android-space-2: .5rem;
    --android-space-3: .75rem;
    --android-space-4: 1rem;
    --android-radius-sm: .5rem;
    --android-radius-md: .75rem;
    --android-surface: #f7f9fc;
    --android-surface-raised: #ffffff;
    --android-on-surface: #172033;
    --android-muted: #5e6879;
    --android-primary: #315da8;
    min-height: 100dvh;
    background: var(--android-surface);
    color: var(--android-on-surface);
    font-family: Roboto, "Segoe UI", system-ui, sans-serif;
}

.android-shell .ios-topbar {
    height: calc(var(--android-topbar-h) + env(safe-area-inset-top));
    min-height: calc(var(--android-topbar-h) + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(var(--android-space-3), env(safe-area-inset-right)) 0 max(var(--android-space-3), env(safe-area-inset-left));
    background: var(--android-surface-raised);
    border-bottom: 1px solid rgba(23, 32, 51, .12);
    box-shadow: none;
}

.android-shell .ios-topbar__right {
    width: 100%;
    justify-content: flex-end;
    gap: var(--android-space-2);
}

.android-shell .ios-content {
    min-height: calc(100dvh - var(--android-topbar-h) - var(--android-nav-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: var(--android-space-3) max(var(--android-space-3), env(safe-area-inset-right))
        calc(var(--android-nav-h) + env(safe-area-inset-bottom) + var(--android-space-3))
        max(var(--android-space-3), env(safe-area-inset-left));
    background: var(--android-surface);
}

.android-shell .ios-tabbar {
    height: calc(var(--android-nav-h) + env(safe-area-inset-bottom));
    padding: 0 max(.25rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(.25rem, env(safe-area-inset-left));
    align-items: stretch;
    background: var(--android-surface-raised);
    border-top: 1px solid rgba(23, 32, 51, .12);
    box-shadow: 0 -2px 8px rgba(23, 32, 51, .06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Theme rules later in this file intentionally use translucent iOS chrome.
   Keep Android navigation opaque so scrolling content never shows through it. */
:root[data-theme] .android-shell .ios-tabbar,
html[data-theme] .android-shell .ios-tabbar,
body[data-theme] .android-shell .ios-tabbar {
    background: var(--android-surface-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.android-shell .ios-tab {
    position: relative;
    min-width: 3rem;
    min-height: 3rem;
    margin: .3rem .2rem;
    padding: .35rem .25rem .25rem;
    gap: .25rem;
    border-radius: var(--android-radius-md);
    color: var(--android-muted);
    overflow: hidden;
}

.android-shell .ios-tab::before {
    display: none;
}

.android-shell .ios-tab:active::before {
    background: rgba(49, 93, 168, .14);
}

.android-shell .ios-tab.active {
    background: rgba(49, 93, 168, .14);
    color: var(--android-primary);
    font-weight: 700;
}

.android-shell .ios-tab.active::before {
    background: rgba(49, 93, 168, .14);
}

.android-shell .ios-tab:focus-visible {
    outline: 2px solid var(--android-primary);
    outline-offset: -2px;
}

.android-shell .ios-tab__icon,
.android-shell .ios-tab__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.android-shell .ios-tab__icon {
    display: grid;
    place-items: center;
    line-height: 0;
}

.android-shell .ios-tab__label {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 600;
}

.android-shell .ios-tab__voicemail-badge {
    top: .2rem;
    left: calc(50% + .55rem);
}

.android-shell .phone-ui,
.android-shell .dialpad {
    min-width: 0;
}

.android-shell .dialpad--android {
    display: grid;
    align-content: start;
    min-height: 100%;
}

.android-shell .dialpad--android .ios-dial-display {
    width: min(28rem, 100%);
    margin: .25rem auto .75rem;
}

.android-shell .dialpad--android .ios-dial-display__input {
    min-height: 3.25rem;
    padding: .5rem 1rem;
    border: 1px solid rgba(23, 32, 51, .28);
    border-radius: var(--android-radius-sm);
    background: var(--android-surface-raised) !important;
    color: var(--android-on-surface) !important;
    -webkit-text-fill-color: var(--android-on-surface);
    box-shadow: none !important;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    font-weight: 600;
}

.android-shell .dialpad--android .ios-dial-display__input:focus {
    border: 2px solid var(--android-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(49, 93, 168, .14) !important;
}

.android-shell .dialpad--android .ios-keypad {
    grid-template-columns: repeat(3, minmax(3.5rem, 4.5rem));
    gap: clamp(.45rem, 2vh, .8rem) clamp(1rem, 8vw, 2.5rem);
}

.android-shell .dialpad--android .ios-key {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    min-height: 3.5rem;
    border: 0;
    border-radius: 50%;
    background: #e8edf5;
    color: var(--android-on-surface);
    box-shadow: none;
    -webkit-tap-highlight-color: rgba(49, 93, 168, .18);
}

.android-shell .dialpad--android .ios-key:active {
    background: #d7e1ef;
    transform: scale(.96);
}

.android-shell .dialpad--android .ios-key__digit {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 500;
}

.android-shell .dialpad--android .ios-key__letters {
    color: var(--android-muted);
    font-size: .625rem;
    font-weight: 600;
    opacity: 1;
}

.android-shell .dialpad--android .ios-dial-actions {
    width: min(15rem, 100%);
    height: 4rem;
    min-height: 4rem;
    margin: .75rem auto 0;
}

.android-shell .dialpad--android .ios-dial-call {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.125rem;
    background: #198754 !important;
    box-shadow: 0 2px 5px rgba(23, 32, 51, .22) !important;
}

.android-shell .dialpad--android .ios-dial-delete {
    width: 3rem;
    height: 3rem;
    left: calc(50% + 3.75rem);
    border: 0;
    border-radius: 1.5rem;
    background: transparent !important;
    box-shadow: none !important;
}

.android-shell .ios-call {
    grid-template-rows: 1.5rem minmax(2.5rem, auto) 1.5rem auto auto;
    gap: var(--android-space-3);
    min-height: min(39rem, calc(100dvh - var(--android-topbar-h) - var(--android-nav-h) - 2rem));
    margin: 0 auto;
    padding: var(--android-space-4);
    border: 0;
    border-radius: var(--android-radius-md);
    background: var(--android-surface-raised);
    box-shadow: 0 1px 3px rgba(23, 32, 51, .14);
}

.android-shell .ios-call__status {
    color: var(--android-muted);
    font-size: .875rem;
    font-weight: 700;
}

.android-shell .ios-call__remote {
    min-height: 2.5rem;
    font-size: clamp(1.5rem, 7vw, 2rem);
    font-weight: 600;
}

.android-shell .ios-call__timer {
    min-height: 1.5rem;
    color: var(--android-muted);
    font-variant-numeric: tabular-nums;
}

.android-shell .ios-icon-btn {
    min-width: 4.5rem;
    min-height: 5rem;
    border-radius: var(--android-radius-md);
}

.android-shell .ios-icon-btn[aria-pressed="true"] {
    outline: 2px solid var(--android-primary);
    outline-offset: 2px;
    font-weight: 800;
}

.android-shell .ios-end-call {
    min-height: 3rem;
    border-radius: var(--android-radius-md);
    box-shadow: none;
}

.android-shell .phone-recents-card {
    padding: 0 !important;
    border: 0;
    border-radius: var(--android-radius-md);
    background: var(--android-surface-raised);
    box-shadow: 0 1px 3px rgba(23, 32, 51, .12);
}

.android-shell .phone-recents-card .card-head {
    padding: 1rem 1rem .25rem;
}

.android-shell .phone-recents-card > .ec-empty {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    padding: .25rem 1rem 1rem;
    line-height: 1.4;
}

.android-shell .phone-recents-card .ec-history-toolbar {
    grid-template-columns: 1fr !important;
    gap: .5rem;
    padding: 0 1rem .75rem;
}

.android-shell .phone-recents-card .ec-history-count {
    grid-row: 2;
}

.android-shell .phone-recents-card .ec-history-search {
    grid-row: 1;
    width: 100%;
    min-height: 3rem;
    border-radius: var(--android-radius-sm);
}

.android-shell .phone-recents-card .ec-history tbody {
    gap: 0 !important;
}

.android-shell .phone-recents-card .ec-history tr {
    min-height: 4.75rem;
    padding: .75rem 1rem !important;
    border: 0 !important;
    border-top: 1px solid rgba(23, 32, 51, .1) !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.android-shell .phone-recents-card .ec-history td:nth-child(4) {
    font-size: 1rem;
    font-weight: 600;
}

.android-shell .phone-recents-card .ec-favourite-call {
    min-width: 3rem;
    min-height: 3rem;
    border-radius: 1.5rem;
}

@media (max-height: 740px) {
    .android-shell .dialpad--android .ios-keypad {
        grid-template-columns: repeat(3, 3.5rem);
        gap: .35rem 2rem;
    }

    .android-shell .dialpad--android .ios-dial-display {
        margin-bottom: .4rem;
    }

    .android-shell .dialpad--android .ios-dial-actions {
        margin-top: .4rem;
    }
}

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

@media (prefers-color-scheme: dark) {
    .android-shell {
        --android-surface: #101318;
        --android-surface-raised: #1b1f27;
        --android-on-surface: #eef1f7;
        --android-muted: #b7c0ce;
        --android-primary: #a9c7ff;
    }

    .android-shell .dialpad--android .ios-key {
        background: #29313e;
    }
}

:root[data-theme="dark"] .android-shell,
html[data-theme="dark"] .android-shell,
body[data-theme="dark"] .android-shell {
    --android-surface: #101318;
    --android-surface-raised: #1b1f27;
    --android-on-surface: #eef1f7;
    --android-muted: #b7c0ce;
    --android-primary: #a9c7ff;
}

:root[data-theme="light"] .android-shell,
:root[data-theme="eurotels"] .android-shell,
html[data-theme="light"] .android-shell,
html[data-theme="eurotels"] .android-shell,
body[data-theme="light"] .android-shell,
body[data-theme="eurotels"] .android-shell {
    --android-surface: #f7f9fc;
    --android-surface-raised: #ffffff;
    --android-on-surface: #172033;
    --android-muted: #5e6879;
    --android-primary: #315da8;
}

@media (prefers-color-scheme: dark) {
    .ios-tabbar {
        background: rgba(24,35,53,.82);
        border-top: 1px solid rgba(255,255,255,.12);
    }
}

:root[data-theme="eurotels"] .ios-tabbar,
html[data-theme="eurotels"] .ios-tabbar,
body[data-theme="eurotels"] .ios-tabbar {
    background: rgba(255,255,255,.88);
    border-top: 1px solid rgba(14,38,72,.12);
}

:root[data-theme="dark"] .ios-tabbar,
html[data-theme="dark"] .ios-tabbar,
body[data-theme="dark"] .ios-tabbar {
    background: rgba(24,35,53,.82);
    border-top: 1px solid rgba(255,255,255,.12);
}

.ios-tab {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(60,60,67,.60);
    padding: 10px 4px 8px;
    -webkit-tap-highlight-color: transparent;
}

.ios-tab:hover,
.ios-tab:focus,
.ios-tab:active,
.ios-tab.active {
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    .ios-tab {
        color: rgba(235,235,245,.60);
    }
}

:root[data-theme="eurotels"] .ios-tab,
html[data-theme="eurotels"] .ios-tab,
body[data-theme="eurotels"] .ios-tab {
    color: rgba(3,30,35,.62);
}

:root[data-theme="dark"] .ios-tab,
html[data-theme="dark"] .ios-tab,
body[data-theme="dark"] .ios-tab {
    color: rgba(235,235,245,.62);
}

.ios-tab__icon {
    width: 24px;
    height: 24px;
    display: block;
    line-height: 1;
}

    .ios-tab__icon svg {
        width: 24px;
        height: 24px;
        display: block;
    }

.ios-tab__label {
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .1px;
}

.ios-tab.active {
    color: var(--ec-brand);
}

/* Hide the first heading in phone pages */
.ios-content > h1:first-child,
.ios-content > h2:first-child {
    display: none;
}

/* Keypad buttons */
.ios-content .dialpad .row .btn {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 700;
}

.ios-content .dialpad .row:last-child .btn {
    width: auto;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    padding: 0 12px;
}

/* Keep phone chrome constrained */
.ios-shell .ios-topbar,
.ios-shell .ios-tabbar,
.ios-shell .ios-content {
    width: min(var(--phone-shell-w), 100%);
    margin-left: auto;
    margin-right: auto;
}

.ios-shell .ios-tabbar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* ---------------- iOS call screen ---------------- */
.ios-call {
    display: grid;
    gap: 10px;
    padding: 18px 14px;
    border-radius: 18px;
    background: var(--ec-panel);
    border: 1px solid var(--ec-border);
    max-width: 520px;
    margin: 0 auto;
    padding: .75rem .75rem 1rem;
}

.ios-call__status {
    opacity: .75;
    font-weight: 600;
    letter-spacing: .2px;
    font-size: .95rem;
}

.ios-call__remote {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    word-break: break-word;
    margin-top: .25rem;
}

.ios-call__timer {
    opacity: .7;
    font-variant-numeric: tabular-nums;
    margin-top: .2rem;
    font-size: 1rem;
}

.ios-call__actions {
    margin-top: 6px;
    gap: 10px;
}

.ios-call__actions--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ios-call__actions--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ios-call-btn {
    height: 54px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
}

.ios-call-btn--answer {
    background: #34C759;
    color: #fff;
}

.ios-call-btn--decline,
.ios-call-btn--end {
    background: #FF3B30;
    color: #fff;
}

.ios-call-btn--ghost {
    background: rgba(120,120,128,.16);
    color: inherit;
}

@media (prefers-color-scheme: dark) {
    .ios-call-btn--ghost {
        background: rgba(235,235,245,.14);
    }
}

.android-shell .ios-tabbar {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
}

:root[data-theme="dark"] .ios-call-btn--ghost,
html[data-theme="dark"] .ios-call-btn--ghost,
body[data-theme="dark"] .ios-call-btn--ghost {
    background: rgba(235,235,245,.14);
}

.ios-call__keypad {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    padding-top: 10px;
    border-top: 1px solid var(--ec-border);
}

.ios-call__switcher {
    margin-top: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.ios-call-chip {
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
    opacity: .85;
    font-weight: 700;
}

    .ios-call-chip.active {
        opacity: 1;
        border-color: rgba(0,0,0,.30);
        box-shadow: 0 2px 5px rgba(0,0,0,.10);
        font-weight: 700;
    }

:root[data-theme="dark"] .ios-call-chip,
html[data-theme="dark"] .ios-call-chip,
body[data-theme="dark"] .ios-call-chip {
    border-color: rgba(255,255,255,.16);
    background: rgba(34,48,71,.82);
    box-shadow: 0 1px 3px rgba(5,11,20,.22);
}

:root[data-theme="dark"] .ios-call-chip.active,
html[data-theme="dark"] .ios-call-chip.active,
body[data-theme="dark"] .ios-call-chip.active {
    border-color: rgba(255,255,255,.34);
    box-shadow: 0 2px 7px rgba(5,11,20,.28);
}

/* Keep tab bar inside phone width */
.ios-shell .ios-tabbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: var(--phone-shell-w) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
}

/* ---------------- In-call menu / keypad ---------------- */
.ios-call__icon-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 1rem .9rem;
    justify-items: center;
    align-items: start;
}

.ios-icon-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    max-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .42rem;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
}

    .ios-icon-btn:disabled {
        opacity: .38;
        cursor: not-allowed;
    }

.ios-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    line-height: 1;
}

:root[data-theme="dark"] .ios-icon,
html[data-theme="dark"] .ios-icon,
body[data-theme="dark"] .ios-icon,
:root[data-theme="dark"] .ios-key,
html[data-theme="dark"] .ios-key,
body[data-theme="dark"] .ios-key {
    border-color: rgba(255,255,255,.14);
    background: rgba(34,48,71,.86);
    box-shadow: 0 1px 4px rgba(5,11,20,.26);
}

.ios-icon-btn:active .ios-icon {
    transform: translateY(1px);
}

.ios-label {
    font-size: .82rem;
    line-height: 1.1;
    opacity: .82;
    text-transform: lowercase;
    text-align: center;
}

.mobile-transfer-action .ios-icon {
    background: #e8f0fe;
    border-color: rgba(26, 115, 232, .20);
    color: #1558d6;
}

.mobile-transfer-action--complete .ios-icon {
    background: #e7f7ee;
    border-color: rgba(35, 134, 82, .22);
    color: #1b7f4b;
}

.mobile-transfer-action--cancel .ios-icon {
    background: #ffebe9;
    border-color: rgba(214, 57, 57, .22);
    color: #c42b2b;
}

.phone-ui--android .mobile-transfer-action .ios-icon {
    border-radius: 18px;
    box-shadow: none;
    background: #e8f0fe;
    border-color: transparent;
    color: #1a73e8;
}

.phone-ui--android .mobile-transfer-action--complete .ios-icon {
    background: #e6f4ea;
    color: #137333;
}

.phone-ui--android .mobile-transfer-action--cancel .ios-icon {
    background: #fce8e6;
    color: #c5221f;
}

.mobile-transfer-screen {
    margin-top: 1.35rem;
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: 100%;
}

.mobile-transfer-screen__title {
    font-size: 1rem;
    font-weight: 800;
    color: #0e2648;
}

.mobile-transfer-screen__choices {
    width: min(23rem, 100%);
    display: grid;
    gap: .75rem;
}

.mobile-transfer-choice {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 4.25rem;
    border: 1px solid rgba(14,38,72,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    color: #0e2648;
    box-shadow: 0 8px 22px rgba(7,27,56,.12);
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: .8rem;
    padding: .7rem .9rem;
    text-align: left;
    cursor: pointer;
}

.mobile-transfer-choice:active {
    transform: translateY(1px);
}

.mobile-transfer-choice__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e8f0fe;
    color: #1558d6;
}

.mobile-transfer-choice__icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-transfer-choice strong,
.mobile-transfer-choice small {
    display: block;
}

.mobile-transfer-choice strong {
    font-size: .96rem;
    line-height: 1.15;
}

.mobile-transfer-choice small {
    margin-top: .2rem;
    font-size: .78rem;
    color: rgba(14,38,72,.62);
}

.mobile-transfer-choice--attended .mobile-transfer-choice__icon {
    background: #e7f7ee;
    color: #1b7f4b;
}

.mobile-transfer-secondary {
    appearance: none;
    -webkit-appearance: none;
    height: 38px;
    min-width: 9rem;
    border: 0;
    border-radius: 999px;
    background: rgba(120,120,128,.16);
    color: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mobile-transfer-secondary:active {
    transform: translateY(1px);
}

.mobile-transfer-display {
    margin: .1rem auto .4rem;
}

.mobile-transfer-keypad {
    margin-top: .25rem;
}

.mobile-transfer-dial-actions {
    margin-top: .75rem;
}

.mobile-transfer-submit {
    background: linear-gradient(180deg, #30c768, #248f50);
}

.phone-ui--android .mobile-transfer-choice {
    border-radius: 20px;
    border: none;
    background: #f1f3f4;
    box-shadow: none;
}

.phone-ui--android .mobile-transfer-choice__icon {
    border-radius: 16px;
    background: #e8f0fe;
    color: #1a73e8;
}

.phone-ui--android .mobile-transfer-choice--attended .mobile-transfer-choice__icon {
    background: #e6f4ea;
    color: #137333;
}

.phone-ui--android .mobile-transfer-secondary {
    border-radius: 18px;
    background: #f1f3f4;
}

.ios-end-call {
    appearance: none;
    -webkit-appearance: none;
    margin: 1.2rem auto 0;
    display: block;
    width: 220px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: #e53935;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(229,57,53,.28);
}

    .ios-end-call:active {
        transform: translateY(1px);
    }

.ios-keypad {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    gap: .9rem;
    justify-content: center;
}

.ios-dial-display {
    width: min(24rem, 100%);
    max-width: 24rem;
    margin: 1.65rem auto 1.7rem;
    box-sizing: border-box;
}

.ios-dial-display__input {
    width: 100%;
    box-sizing: border-box;
    min-height: 3.25rem;
    border: 1px solid rgba(14,38,72,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #0e2648;
    box-shadow: 0 10px 28px rgba(7,27,56,.12), inset 0 1px 0 rgba(255,255,255,.85);
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: .01em;
    text-align: center;
    text-align-last: center;
    padding: .5rem 1.1rem;
}

.ios-dial-display__input::placeholder {
    color: rgba(14,38,72,.56);
    opacity: 1;
    font-weight: 500;
}

.ios-dial-display__input:focus {
    border-color: rgba(255,255,255,.86);
    box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 12px 30px rgba(7,27,56,.16);
}

.ios-dial-display__input:disabled {
    opacity: .72;
    -webkit-text-fill-color: #0e2648;
}

.ios-dial-actions {
    position: relative;
    width: 240px;
    height: 68px;
    min-height: 68px;
    margin: 1.25rem auto 0;
}

.ios-dial-call {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #30c768, #248f50);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(3,64,37,.22), inset 0 1px 0 rgba(255,255,255,.26);
    cursor: pointer;
}

.ios-dial-call svg {
    width: 27px;
    height: 27px;
    stroke-width: 2.2;
}

.ios-dial-call:disabled {
    cursor: not-allowed;
    opacity: .52;
    filter: saturate(.75);
}

.ios-dial-call:active:not(:disabled) {
    transform: translate(-50%, calc(-50% + 1px)) scale(.98);
}

.ios-dial-delete {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: calc(50% + 58px);
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(14,38,72,.12);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.78);
    color: #0e2648;
    box-shadow: 0 6px 16px rgba(7,27,56,.12);
    cursor: pointer;
}

.ios-dial-delete svg {
    width: 24px;
    height: 24px;
}

.ios-dial-delete:active {
    transform: translateY(calc(-50% + 1px));
}

.ios-dial-delete--hidden {
    opacity: 0 !important;
    pointer-events: none;
}

html[data-theme="eurotels"] .ios-shell .dialpad,
body[data-theme="eurotels"] .ios-shell .dialpad {
    margin-top: 1.1rem;
}

html[data-theme="eurotels"] .ios-shell .ios-dial-display__input,
body[data-theme="eurotels"] .ios-shell .ios-dial-display__input {
    background: #f8fbff !important;
    color: #082f5f !important;
    border-color: rgba(255,255,255,.85) !important;
    box-shadow: 0 16px 34px rgba(4,31,62,.28), inset 0 1px 0 rgba(255,255,255,.95) !important;
    -webkit-text-fill-color: #082f5f;
}

html[data-theme="eurotels"] .ios-shell .ios-dial-display__input::placeholder,
body[data-theme="eurotels"] .ios-shell .ios-dial-display__input::placeholder {
    color: #4c6d90 !important;
    opacity: 1;
    font-size: 1.32rem;
}

html[data-theme="eurotels"] .ios-shell .ios-dial-display__input:placeholder-shown,
body[data-theme="eurotels"] .ios-shell .ios-dial-display__input:placeholder-shown {
    background: #f8fbff !important;
    color: #082f5f !important;
    border-color: rgba(255,255,255,.85) !important;
    box-shadow: 0 16px 34px rgba(4,31,62,.28), inset 0 1px 0 rgba(255,255,255,.95) !important;
}

html[data-theme="eurotels"] .ios-shell .ios-dial-call,
body[data-theme="eurotels"] .ios-shell .ios-dial-call {
    background: linear-gradient(180deg, #45e681 0%, #18a957 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 28px rgba(4,78,42,.42), 0 0 0 5px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.32) !important;
}

html[data-theme="eurotels"] .ios-shell .ios-dial-call:disabled,
body[data-theme="eurotels"] .ios-shell .ios-dial-call:disabled {
    opacity: .62;
    filter: saturate(.9);
}

html[data-theme="eurotels"] .ios-shell .ios-dial-delete,
body[data-theme="eurotels"] .ios-shell .ios-dial-delete {
    background: #eaf3ff !important;
    color: #0b3a70 !important;
    border-color: rgba(255,255,255,.76) !important;
    box-shadow: 0 10px 22px rgba(4,31,62,.24), inset 0 1px 0 rgba(255,255,255,.88) !important;
}

.ios-key {
    appearance: none;
    -webkit-appearance: none;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.94);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0;
}

    .ios-key:active {
        transform: translateY(1px);
    }

.ios-key__inner {
    display: grid;
    place-items: center;
    line-height: 1;
}

.ios-key__digit {
    font-size: 1.55rem;
    font-weight: 700;
}

.ios-key__letters {
    margin-top: .12rem;
    font-size: .68rem;
    letter-spacing: .12em;
    opacity: .55;
}

@media (max-width: 420px) {
    .ios-icon {
        width: 54px;
        height: 54px;
    }

    .ios-keypad {
        grid-template-columns: repeat(3, 68px);
    }

    .ios-key {
        width: 68px;
        height: 68px;
    }

    .ios-end-call {
        width: 200px;
    }
}
.startup-lock-screen {
    min-height: calc(100vh - 4rem);
    min-height: calc(100dvh - 4rem);
    display: grid;
    place-items: center;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.10), transparent 32rem), linear-gradient(180deg, #101827, #050814);
    color: #fff;
}

.startup-lock-card {
    width: min(26rem, 100%);
    text-align: center;
    padding: 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.startup-lock-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.startup-lock-card h1 {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
}

.startup-lock-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.startup-auth-cover {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #f5f7fb;
}

/* Android packaged clients use full-width native-style chrome on tablets. */
.ios-shell.android-shell .ios-topbar,
.ios-shell.android-shell .ios-tabbar {
    width: 100% !important;
    max-width: none !important;
}

.ios-shell.android-shell .ios-tabbar {
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

/* Packaged iOS surface. */
.ios-shell--ios {
    width: 100%;
    max-width: none;
    overflow-x: clip;
    background: #f2f2f7;
    color: #1c1c1e;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.ios-shell--ios .ios-topbar,
.ios-shell--ios .ios-content,
.ios-shell--ios .ios-tabbar {
    width: 100%;
    max-width: var(--phone-shell-w);
}

.ios-shell--ios .ios-content {
    min-height: calc(100dvh - var(--ios-topbar-h) - var(--ios-tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 12px max(16px, env(safe-area-inset-left))
        calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + 16px)
        max(16px, env(safe-area-inset-right));
    overflow-x: clip;
}

.ios-shell--ios .ios-topbar {
    background: rgba(249, 249, 249, .88);
    border-bottom-color: rgba(60, 60, 67, .18);
}

.ios-shell--ios .ios-tabbar {
    background: rgba(249, 249, 249, .92);
    border-top-color: rgba(60, 60, 67, .20);
}

.ios-shell--ios .ios-tab {
    min-width: 44px;
    min-height: 50px;
    color: rgba(60, 60, 67, .68);
}

.ios-shell--ios .ios-tab.active {
    margin: 6px 3px;
    border-radius: 12px;
    background: rgba(0, 122, 255, .12);
    color: #007aff;
}

/* Mobile quick controls are a fifth bottom-navigation destination. The
   associated sheet stays within thumb reach and leaves the content header free. */
.ec-mobile-control-tray {
    display: contents;
}

.ec-mobile-control-tray__trigger {
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.ec-mobile-control-tray__backdrop {
    position: fixed;
    inset: 0 0 calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom));
    z-index: 80;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.android-shell .ec-mobile-control-tray__backdrop {
    bottom: calc(var(--android-nav-h) + env(safe-area-inset-bottom));
}

.ec-mobile-control-tray__sheet {
    position: fixed;
    right: max(.5rem, env(safe-area-inset-right));
    bottom: calc(var(--ios-tabbar-h) + env(safe-area-inset-bottom) + .5rem);
    z-index: 82;
    display: grid;
    gap: .85rem;
    width: min(22rem, calc(100vw - 1rem));
    padding: .55rem 1rem 1rem;
    border: 1px solid rgba(14, 38, 72, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    color: #172033;
    box-shadow: 0 -10px 36px rgba(7, 27, 56, .22);
    will-change: transform;
}

.ec-mobile-control-tray__sheet.is-dragging {
    user-select: none;
    -webkit-user-select: none;
}

.android-shell .ec-mobile-control-tray__sheet {
    bottom: calc(var(--android-nav-h) + env(safe-area-inset-bottom) + .5rem);
}

.ec-mobile-control-tray--left .ec-mobile-control-tray__sheet {
    right: auto;
    left: max(.5rem, env(safe-area-inset-left));
}

.ec-mobile-control-tray__handle {
    justify-self: center;
    position: relative;
    width: 3.5rem;
    height: 1.25rem;
    margin: -.35rem 0 -.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: grab;
    touch-action: none;
}

.ec-mobile-control-tray__handle::before {
    content: "";
    position: absolute;
    top: .45rem;
    left: 50%;
    width: 2.25rem;
    height: .25rem;
    border-radius: 999px;
    background: rgba(94, 104, 121, .32);
    transform: translateX(-50%);
}

.ec-mobile-control-tray__handle:active {
    cursor: grabbing;
}

.ec-mobile-control-tray__heading,
.ec-mobile-control-tray__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
}

.ec-mobile-control-tray__heading strong {
    font-size: 1rem;
}

.ec-mobile-control-tray__close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(94, 104, 121, .10);
    color: inherit;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
}

.ec-mobile-control-tray__label {
    color: #5e6879;
    font-size: .85rem;
    font-weight: 700;
}

.ec-mobile-control-tray__sheet .ec-presence-picker {
    width: 10rem;
    max-width: 100%;
    flex-basis: auto;
}

.ec-mobile-control-tray__logout .ec-logout-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
}

.ec-handedness-toggle {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    min-width: 9.5rem;
    padding: 3px;
    border-radius: 12px;
    background: rgba(49, 93, 168, .10);
}

.ec-handedness-toggle button {
    min-height: 38px;
    padding: .45rem .75rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #536174;
    font: inherit;
    font-weight: 700;
}

.ec-handedness-toggle button.selected {
    background: #fff;
    color: #174d91;
    box-shadow: 0 1px 5px rgba(7, 27, 56, .16);
}

:root[data-theme="dark"] .ec-mobile-control-tray__sheet,
html[data-theme="dark"] .ec-mobile-control-tray__sheet,
body[data-theme="dark"] .ec-mobile-control-tray__sheet {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(28, 28, 30, .98);
    color: #f2f2f7;
}

:root[data-theme="dark"] .ec-mobile-control-tray__label,
html[data-theme="dark"] .ec-mobile-control-tray__label,
body[data-theme="dark"] .ec-mobile-control-tray__label {
    color: #aeaeb2;
}

:root[data-theme="dark"] .ec-handedness-toggle button.selected,
html[data-theme="dark"] .ec-handedness-toggle button.selected,
body[data-theme="dark"] .ec-handedness-toggle button.selected {
    background: #2c2c2e;
    color: #8ab4f8;
}

.ios-shell--ios .ios-content {
    min-height: calc(100dvh - var(--ios-tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

.ios-phone-page,
.ios-phone-page .phone-ui {
    width: 100%;
    min-width: 0;
}

.ios-phone-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ios-tab {
    position: relative;
}

.ios-tab-slot {
    position: relative;
    min-width: 0;
    display: flex;
}

.ios-tab-slot > .ios-tab {
    width: 100%;
}

.ios-tab__voicemail-badge {
    position: absolute;
    top: 3px;
    left: calc(50% + 8px);
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--ec-panel, #fff);
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    cursor: pointer;
    z-index: 2;
}

.ios-tab__voicemail-badge::before {
    content: "";
    position: absolute;
    inset: -10px;
}

.ios-tab__voicemail-badge:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ec-brand, #315da8) 45%, transparent);
    outline-offset: 2px;
}

.phone-voicemail-page {
    width: min(46rem, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 1.5rem);
    box-sizing: border-box;
}

.phone-voicemail-page__header {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.phone-voicemail-page__header h1 {
    margin: 0;
    color: var(--ec-text, #172033);
    font-size: clamp(1.7rem, 7vw, 2.25rem);
    line-height: 1.1;
}

.phone-voicemail-page__header p {
    margin: .3rem 0 0;
    color: var(--ec-muted, #667085);
    font-size: .9rem;
}

.phone-voicemail-page__keypad {
    min-height: 2.75rem;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ec-border, #d8dee8);
    border-radius: 999px;
    background: var(--ec-panel, #fff);
    color: var(--ec-brand, #315da8);
    font-weight: 700;
    text-decoration: none;
}

.voicemail-panel__shortcut-help {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid var(--ec-border, #d8dee8);
    border-radius: .9rem;
    background: color-mix(in srgb, var(--ec-panel, #fff) 94%, var(--ec-brand, #315da8));
}

.voicemail-panel__shortcut-help > div {
    min-width: 0;
    display: grid;
    gap: .15rem;
}

.voicemail-panel__shortcut-help strong {
    color: var(--ec-text, #172033);
}

.voicemail-panel__shortcut-help span:not(.voicemail-panel__shortcut-key) {
    color: var(--ec-muted, #667085);
    font-size: .86rem;
}

.voicemail-panel__shortcut-key {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ec-brand, #315da8);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 .25rem .7rem rgba(23, 32, 51, .15);
}

.ec-provisioning-gate--ios {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: safe center;
    padding:
        max(24px, env(safe-area-inset-top))
        max(20px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(20px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    background: #f2f2f7;
    color: #1c1c1e;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.ec-provisioning-gate--ios .ec-provisioning-card {
    max-width: 390px;
    padding: 28px 22px 24px;
    border: 1px solid rgba(60, 60, 67, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
}

.ec-provisioning-gate--ios .ec-provisioning-logo {
    margin-bottom: 18px;
}

.ec-provisioning-gate--ios .ec-provisioning-card h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
}

.ec-provisioning-gate--ios .ec-provisioning-subtitle {
    margin: 0 0 24px;
    color: #636366;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.ec-provisioning-gate--ios .ec-provisioning-field {
    gap: 7px;
    margin-bottom: 16px;
}

.ec-provisioning-gate--ios .ec-provisioning-field label {
    color: #3a3a3c;
    font-size: 14px;
    font-weight: 600;
}

.ec-provisioning-gate--ios .ec-provisioning-input {
    min-height: 50px;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #c7c7cc;
    border-radius: 12px;
    background: #ffffff;
    color: #1c1c1e;
    font-size: 17px;
}

.ec-provisioning-gate--ios .ec-provisioning-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, .16);
}

.ec-provisioning-gate--ios .ec-provisioning-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: #007aff;
    color: #ffffff;
    font-size: 17px;
    font-weight: 650;
}

.ec-provisioning-gate--ios .ec-provisioning-btn:disabled {
    background: #a8cfff;
    color: #ffffff;
}

.ec-provisioning-gate--ios .ec-provisioning-link {
    display: block;
    min-height: 44px;
    margin: 10px auto -8px;
    padding: 10px 12px;
    color: #007aff;
    text-decoration: none;
}

.ec-modal-backdrop--ios {
    padding:
        max(20px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
}

.ec-modal-backdrop--ios .ec-modal-card {
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    border-radius: 24px;
}

.ios-call--ios-surface {
    position: fixed;
    inset: 0;
    z-index: 1000;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding:
        max(28px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(28px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #f2f2f7;
}

:root[data-theme="dark"] .ios-shell--ios,
html[data-theme="dark"] .ios-shell--ios,
body[data-theme="dark"] .ios-shell--ios,
:root[data-theme="dark"] .ec-provisioning-gate--ios,
html[data-theme="dark"] .ec-provisioning-gate--ios,
body[data-theme="dark"] .ec-provisioning-gate--ios,
:root[data-theme="dark"] .ios-call--ios-surface,
html[data-theme="dark"] .ios-call--ios-surface,
body[data-theme="dark"] .ios-call--ios-surface {
    background: var(--ec-bg);
    color: var(--ec-text);
}

:root[data-theme="dark"] .ios-shell--ios .ios-topbar,
:root[data-theme="dark"] .ios-shell--ios .ios-tabbar,
html[data-theme="dark"] .ios-shell--ios .ios-topbar,
html[data-theme="dark"] .ios-shell--ios .ios-tabbar,
body[data-theme="dark"] .ios-shell--ios .ios-topbar,
body[data-theme="dark"] .ios-shell--ios .ios-tabbar {
    background: rgba(24, 35, 53, .92);
    border-color: var(--ec-border);
}

@media (max-height: 680px), (max-width: 360px) {
    .ec-provisioning-gate--ios {
        align-items: flex-start;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .ec-provisioning-gate--ios .ec-provisioning-card {
        padding: 20px 18px 18px;
        border-radius: 20px;
    }

    .ec-provisioning-gate--ios .ec-provisioning-logo {
        width: 136px;
        height: auto;
        margin-bottom: 10px;
    }

    .ec-provisioning-gate--ios .ec-provisioning-subtitle {
        margin-bottom: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    .ios-shell--ios,
    .ec-provisioning-gate--ios,
    .ios-call--ios-surface {
        background: #000000;
        color: #f2f2f7;
    }

    .ios-shell--ios .ios-topbar,
    .ios-shell--ios .ios-tabbar {
        background: rgba(28, 28, 30, .90);
        border-color: rgba(84, 84, 88, .65);
    }

    .ec-provisioning-gate--ios .ec-provisioning-card {
        border-color: rgba(84, 84, 88, .55);
        background: #1c1c1e;
        box-shadow: none;
    }

    .ec-provisioning-gate--ios .ec-provisioning-subtitle,
    .ec-provisioning-gate--ios .ec-provisioning-field label {
        color: #aeaeb2;
    }

    .ec-provisioning-gate--ios .ec-provisioning-input {
        border-color: #48484a;
        background: #2c2c2e;
        color: #ffffff;
        -webkit-text-fill-color: #ffffff;
    }
}
