:root {
    color-scheme: dark;
    --bg-a: #07111f;
    --bg-b: #102a4a;
    --text: #f8fbff;
    --muted: #bdd0e7;
    --soft: rgba(255, 255, 255, 0.12);
    --soft-strong: rgba(255, 255, 255, 0.2);
    --card: #ffffff;
    --card-text: #111827;
    --card-muted: #667085;
    --line: #e6e8ee;
    --primary: #000000;
    --primary-text: #ffffff;
    --radius: 16px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(98, 163, 255, 0.34), transparent 34%),
        linear-gradient(145deg, var(--bg-a), var(--bg-b) 54%, #07111f);
}

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.entry-shell {
    min-height: 100vh;
}

.code-screen {
    width: min(560px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
}

.top-bar,
.bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.top-bar {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    align-items: center;
    gap: 12px;
}

.top-bar > :first-child {
    justify-self: start;
}

.top-bar > :nth-child(2) {
    justify-self: center;
}

.top-bar > :last-child {
    justify-self: end;
}

.brand {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
}

.brand-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.16s ease;
}

.brand-button:active {
    transform: translateY(1px);
}

.brand-button:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.brand-icon {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    display: block;
}

.info-panel {
    background:
        radial-gradient(circle at 92% 8%, rgba(14, 165, 233, 0.12), transparent 38%),
        radial-gradient(circle at 6% 94%, rgba(59, 130, 246, 0.12), transparent 34%),
        #f5f7fb;
}

.info-lead {
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.info-grid {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.info-card {
    border: 1px solid #d8dee9;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
}

.info-card h3 {
    margin: 0;
    color: #101828;
    font-size: 16px;
    line-height: 1.25;
}

.info-card p {
    margin: 7px 0 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.4;
}

.info-modes {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #475467;
    font-size: 14px;
    line-height: 1.45;
}

.info-footer {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.links-pill,
.soft-button,
.close-button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.links-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px 0 12px;
    border-color: rgba(158, 197, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.links-with-text {
    min-width: 118px;
    min-height: 52px;
    padding: 0 14px 0 10px;
    justify-content: center;
    transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.links-pill-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 18px;
}

.links-with-text .links-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex: 0 0 38px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
        rgba(7, 17, 31, 0.18);
}

.links-icon-svg {
    width: 25px;
    height: 25px;
    display: block;
    margin: auto;
    stroke: #f8fbff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.96;
    transform: translateX(-0.5px);
}

.links-with-text:hover,
.links-with-text:focus-visible {
    border-color: rgba(158, 197, 255, 0.74);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.22),
        0 0 0 4px rgba(98, 163, 255, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.links-with-text:hover .links-pill-icon,
.links-with-text:focus-visible .links-pill-icon {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12)),
        rgba(7, 17, 31, 0.18);
}

.links-pill-label {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #f8fbff;
}

.links-with-text:active {
    transform: translateY(0);
}

.code-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 4px 0 24px;
}

.eyebrow {
    color: #9ec5ff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin-top: 12px;
    font-size: clamp(38px, 10vw, 58px);
    line-height: 0.98;
    letter-spacing: 0;
}

.entry-actions {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.entry-action-card {
    min-height: 92px;
    width: 100%;
    border: 1px solid rgba(158, 197, 255, 0.26);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        rgba(7, 17, 31, 0.26);
    color: #ffffff;
    padding: 18px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.entry-action-card::after {
    content: "›";
    color: rgba(231, 240, 255, 0.8);
    font-size: 30px;
    line-height: 1;
    padding-right: 2px;
}

.entry-action-card:hover,
.entry-action-card:focus-visible {
    border-color: rgba(158, 197, 255, 0.6);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        rgba(7, 17, 31, 0.24);
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.22),
        0 0 0 4px rgba(98, 163, 255, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.entry-action-card:active {
    transform: translateY(0);
}

.entry-action-copy {
    display: block;
    min-width: 0;
}

.entry-action-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 900;
}

.entry-action-copy > span {
    display: block;
    margin-top: 7px;
    color: rgba(223, 234, 255, 0.9);
    font-size: 15px;
    line-height: 1.35;
}

.entry-code-panel {
    margin-top: 20px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(158, 197, 255, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(2, 8, 23, 0.36), rgba(2, 8, 23, 0.54)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.entry-code-panel[hidden] {
    display: none;
}

.entry-panel-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.entry-panel-subtitle {
    margin-top: 7px;
    color: rgba(223, 234, 255, 0.82);
    font-size: 15px;
    line-height: 1.4;
}

.entry-code-panel .code-form {
    margin-top: 18px;
}

.code-form {
    margin-top: 34px;
    display: grid;
    gap: 0;
}

.code-input {
    width: 100%;
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(2, 8, 23, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
    color: #ffffff;
    text-align: center;
    font-size: clamp(44px, 15vw, 72px);
    font-weight: 900;
    letter-spacing: 10px;
    padding: 0 12px 0 22px;
    outline: none;
}

.code-input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.code-input:focus {
    border-color: rgba(148, 197, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.22), var(--shadow);
}

.btn {
    min-height: 56px;
    border-radius: var(--radius);
    padding: 0 18px;
    border: 1px solid var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.14s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}

.btn:disabled {
    opacity: 0.58;
    cursor: default;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-text);
}

.btn-open-chat {
    justify-content: space-between;
    gap: 12px;
}

.btn-open-chat-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border-color: #d0d5dd;
}

.btn-danger-soft {
    background: #fff5f5;
    color: #b42318;
    border-color: #fecaca;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    outline: none;
}

.btn:active {
    transform: translateY(0);
}

.btn-share-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #86efac;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.14);
}

.status {
    min-height: 24px;
    margin-top: 14px;
    color: #d7e7ff;
    font-size: 16px;
    line-height: 1.4;
}

.status-error {
    color: #fecaca;
}

.status-ok {
    color: #bbf7d0;
}

.incoming-calls {
    margin-top: 2px;
    display: grid;
    gap: 10px;
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 7;
    justify-items: start;
    align-self: start;
}

.incoming-call-card {
    width: min(100%, 438px);
    border: 1px solid rgba(134, 239, 172, 0.54);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 18%, rgba(187, 247, 208, 0.22), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(74, 222, 128, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(7, 108, 74, 0.98), rgba(5, 86, 60, 0.96));
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(236, 253, 245, 0.06) inset;
    padding: 12px 14px 12px;
    text-align: left;
    backdrop-filter: blur(14px);
    align-self: start;
}

.incoming-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.incoming-call-badge {
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(236, 253, 245, 0.18);
    border: 1px solid rgba(236, 253, 245, 0.2);
    color: #f0fdf4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.incoming-call-title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    color: #f7fffb;
    max-width: 92%;
}

.incoming-call-meta {
    font-size: 12px;
    font-weight: 800;
    color: rgba(236, 253, 245, 0.82);
    white-space: nowrap;
}

.incoming-call-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.incoming-call-accept {
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(236, 253, 245, 0.78);
    background: linear-gradient(180deg, #34d399, #22c55e);
    color: #062814;
    font-size: 14px;
    font-weight: 900;
    padding: 0 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow:
        0 14px 28px rgba(20, 83, 45, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.28) inset;
}

.incoming-call-reject {
    min-width: 120px;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(254, 202, 202, 0.52);
    background: linear-gradient(180deg, rgba(153, 27, 27, 0.94), rgba(127, 29, 29, 0.94));
    color: #fee2e2;
    font-size: 12px;
    font-weight: 900;
    padding: 0 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(69, 10, 10, 0.22);
}

.incoming-call-btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    line-height: 1;
}

.incoming-call-accept .incoming-call-btn-icon {
    background: rgba(255, 255, 255, 0.34);
    color: #065f46;
}

.incoming-call-reject .incoming-call-btn-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fee2e2;
}

.bottom-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.soft-button {
    width: 100%;
    min-height: 52px;
}

.install-button {
    min-height: 58px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.18);
}

.install-top-button {
    width: fit-content;
    min-height: 50px;
    padding: 0 14px 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: rgba(158, 197, 255, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        rgba(7, 17, 31, 0.28);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.install-top-button:hover,
.install-top-button:focus-visible {
    border-color: rgba(158, 197, 255, 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12)),
        rgba(7, 17, 31, 0.3);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(98, 163, 255, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.install-top-button:active {
    transform: translateY(0);
}

.install-button-busy {
    opacity: 0.92;
    cursor: wait;
}

.install-button-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
        rgba(7, 17, 31, 0.18);
    flex: 0 0 auto;
}

.install-icon-svg {
    width: 16px;
    height: 16px;
    stroke: #f8fbff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.96;
}

.access-button {
    min-height: 54px;
    border-color: rgba(158, 197, 255, 0.34);
    background: rgba(10, 22, 40, 0.42);
}

.mini-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mini-button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #d7e7ff;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.sheet {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.sheet-open {
    pointer-events: auto;
    opacity: 1;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.sheet-panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(620px, 100%);
    max-height: 86vh;
    transform: translate(-50%, 24px);
    transition: transform 0.18s ease;
    overflow: auto;
    padding: 12px 16px max(22px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: #f5f7fb;
    color: var(--card-text);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.28);
}

.sheet-open .sheet-panel {
    transform: translate(-50%, 0);
}

.sheet-handle {
    width: 44px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #d0d5dd;
}

.sheet-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.sheet-heading h2 {
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: 0;
}

.sheet-heading p {
    margin-top: 7px;
    color: var(--card-muted);
    font-size: 16px;
    line-height: 1.35;
}

.close-button {
    flex: 0 0 auto;
    min-height: 42px;
    border-color: #d0d5dd;
    background: #ffffff;
    color: #344054;
}

.connections-list {
    display: grid;
    gap: 12px;
}

.connection-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 16px;
    box-shadow: 0 10px 28px rgba(21, 26, 36, 0.08);
}

.connection-card h3 {
    font-size: 21px;
    line-height: 1.2;
}

.connection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.connection-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.connection-code {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 13px;
}

.connection-status {
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--card-muted);
    font-size: 15px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #98a2b3;
    flex: 0 0 auto;
}

.status-dot-online {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.status-dot-recent {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.status-dot-offline {
    background: #98a2b3;
}

.connection-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

.rename-box {
    margin-top: 12px;
    color: #475467;
    font-size: 14px;
}

.rename-box summary {
    cursor: pointer;
    font-weight: 800;
}

.rename-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 10px;
}

.rename-row input,
.restore-input {
    min-height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 0 12px;
    outline: none;
}

@media (min-width: 420px) {
    .connection-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rename-row button {
    min-height: 44px;
    border: 1px solid #111827;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    padding: 0 12px;
    font-weight: 800;
    cursor: pointer;
}

.empty-state {
    min-height: 140px;
    border: 1px dashed #cfd4dc;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--card-muted);
    padding: 20px;
    background: #ffffff;
}

.empty-state strong {
    display: block;
    color: #1d2939;
    font-size: 19px;
    margin-bottom: 6px;
}

.empty-state span {
    display: block;
    font-size: 15px;
}

.account-btn {
    width: 100%;
    margin: 0 0 14px;
}

.portal-services-btn {
    margin: 14px 0 0;
}

.create-contact-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.create-contact-form[hidden],
.helper-card[hidden],
.soft-note[hidden] {
    display: none;
}

.create-contact-name-input {
    min-height: 64px;
    border-radius: 18px;
    border-color: #c9d8ee;
    padding: 0 18px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 12px 28px rgba(15, 23, 42, 0.06);
}

.create-contact-name-input::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.create-contact-name-input:focus {
    border-color: #8fb4ff;
    box-shadow:
        0 0 0 4px rgba(47, 111, 235, 0.12),
        0 14px 30px rgba(15, 23, 42, 0.08);
}

.create-contact-result {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dbe3f1;
    border-radius: 14px;
    background: #ffffff;
    display: grid;
    gap: 10px;
}

.create-contact-result[hidden] {
    display: none;
}

.helper-card {
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid #d8e2f0;
    background: #f8fbff;
    display: grid;
    gap: 5px;
}

.helper-card strong {
    color: #101828;
    font-size: 15px;
    line-height: 1.2;
}

.helper-card span {
    color: #475467;
    font-size: 14px;
    line-height: 1.4;
}

.create-contact-code-label {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.create-contact-code {
    min-height: 52px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}

.create-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.journey-note {
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid #dce8d4;
    background: #f3fbf1;
    display: grid;
    gap: 5px;
}

.journey-note strong {
    color: #14532d;
    font-size: 15px;
    line-height: 1.2;
}

.journey-note span {
    color: #3f5d44;
    font-size: 14px;
    line-height: 1.4;
}

.soft-note {
    padding: 13px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--card-muted);
    font-size: 15px;
    line-height: 1.4;
}

.access-panel {
    max-height: 74vh;
}

.access-choice {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.access-choice-card {
    min-height: 82px;
    border: 1px solid #d7e4f5;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    color: #111827;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
    appearance: none;
    -webkit-appearance: none;
}

.access-choice-copy {
    display: block;
    min-width: 0;
}

.access-choice-card::after {
    content: "›";
    display: block;
    color: #98a2b3;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    padding-right: 2px;
    align-self: center;
}

.access-choice-card:hover,
.access-choice-card:focus-visible {
    border-color: #8fb4ff;
    background:
        linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.1),
        0 0 0 4px rgba(47, 111, 235, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.access-choice-card:active {
    transform: translateY(0);
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08),
        0 0 0 3px rgba(47, 111, 235, 0.1);
}

.access-choice-card:hover::after,
.access-choice-card:focus-visible::after {
    color: #2f6feb;
}

.access-choice-card[hidden] {
    display: none;
}

.access-choice-copy strong {
    display: block;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 900;
}

.access-choice-copy > span {
    display: block;
    margin-top: 5px;
    color: #667085;
    font-size: 14px;
    line-height: 1.4;
    max-width: 320px;
}

.restore-box,
.access-form {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.access-form[hidden],
.access-choice[hidden] {
    display: none;
}

.restore-box-separated {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dbe1ea;
}

.pin-display {
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
}

.restore-input[readonly] {
    background: #ffffff;
    color: #101828;
    -webkit-text-fill-color: #101828;
    opacity: 1;
    cursor: text;
}

.access-memory-note {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid #f2d6a4;
    background: linear-gradient(180deg, #fffaf0 0%, #fff7e8 100%);
    display: grid;
    gap: 5px;
}

.access-memory-note strong {
    color: #8a4b00;
    font-size: 15px;
    line-height: 1.2;
}

.access-memory-note span {
    color: #7a5a2b;
    font-size: 14px;
    line-height: 1.45;
}

.access-back-btn {
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #475467;
    font-weight: 800;
    cursor: pointer;
}

.install-steps {
    padding: 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #344054;
    font-size: 16px;
    line-height: 1.45;
}

.install-steps ol {
    margin: 0;
    padding-left: 22px;
}

.install-steps li + li {
    margin-top: 8px;
}

.prepare-button {
    width: 100%;
    margin-top: 10px;
}

.restore-box label {
    color: #344054;
    font-size: 15px;
    font-weight: 800;
}

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

@media (max-width: 380px) {
    .code-screen {
        padding-left: 12px;
        padding-right: 12px;
    }

    .top-bar {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
        gap: 8px;
    }

    .install-top-button {
        min-height: 44px;
        padding: 0 10px 0 8px;
        gap: 6px;
    }

    .install-button-icon {
        width: 20px;
        height: 20px;
        border-radius: 8px;
    }

    .install-icon-svg {
        width: 14px;
        height: 14px;
    }

    #install-app-btn-label,
    .links-pill-label {
        font-size: 12px;
    }

    .links-with-text {
        min-width: 102px;
        min-height: 44px;
        padding: 0 10px 0 8px;
        gap: 6px;
    }

    .links-with-text .links-pill-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 10px;
    }

    .links-icon-svg {
        width: 21px;
        height: 21px;
    }

    .entry-action-card {
        min-height: 86px;
        padding: 16px 16px;
    }

    .entry-action-copy strong {
        font-size: 20px;
    }

    .incoming-call-card {
        border-radius: 18px;
        padding: 12px 12px 12px;
    }

    .incoming-call-title {
        font-size: 15px;
    }

    .incoming-call-actions {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 8px;
    }

    .incoming-call-accept,
    .incoming-call-reject {
        min-height: 46px;
    }

    .incoming-call-accept {
        font-size: 14px;
        padding: 0 14px;
    }

    .incoming-call-reject {
        min-width: 104px;
        font-size: 12px;
        padding: 0 10px;
    }

    .incoming-call-btn-icon {
        width: 21px;
        height: 21px;
        font-size: 11px;
    }

    .connection-actions {
        grid-template-columns: 1fr;
    }

    .code-input {
        letter-spacing: 7px;
        padding-left: 19px;
    }

}
