/* ============================================
   RESET & VARIABLES
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

    /* WhatsApp */
    --wa-header: #075E54;
    --wa-header-light: #128C7E;
    --wa-wallpaper: #ECE5DD;
    --wa-user-bubble: #DCF8C6;
    --wa-bot-bubble: #FFFFFF;
    --wa-input-bg: #F0F0F0;
    --wa-send: #00A884;
    --wa-blue-check: #53BDEB;
    --wa-text: #303030;

    /* Voice / Call */
    --call-bg-start: #1c1c1e;
    --call-bg-end: #000000;
    --call-end-red: #FF3B30;
    --call-green: #34C759;
    --call-control-bg: rgba(255,255,255,0.12);

    /* Gmail */
    --gmail-blue: #1A73E8;
    --gmail-bg: #F6F8FC;
    --gmail-separator: #E8EAED;
    --gmail-text: #202124;
    --gmail-text-secondary: #5F6368;

    /* Page */
    --page-bg: #0f172a;

    /* Shared */
    --text-muted: #94a3b8;
}

body {
    font-family: var(--font);
    background: var(--page-bg);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 40px;
    min-height: 100vh;
}

.page-title {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.page-title img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* ============================================
   CHANNEL SELECTOR (outside phone)
   ============================================ */
.channel-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.channel-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}

.channel-btn svg { width: 18px; height: 18px; }

.channel-btn.active[data-channel="text"] {
    background: #25D366;
    border-color: #25D366;
    color: white;
}
.channel-btn.active[data-channel="voice"] {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    color: white;
}
.channel-btn.active[data-channel="email"] {
    background: var(--gmail-blue);
    border-color: var(--gmail-blue);
    color: white;
}
.channel-btn.active[data-channel="escalations"] {
    background: #e65100;
    border-color: #e65100;
    color: white;
}

/* ============================================
   iPHONE FRAME
   ============================================ */
.iphone-frame {
    width: 393px;
    height: 852px;
    border-radius: 50px;
    border: 8px solid #2a2a2a;
    background: #000;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 2px #1a1a1a,
        0 0 0 4px #3a3a3a,
        0 25px 80px rgba(0,0,0,0.6),
        inset 0 0 4px rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.iphone-notch {
    width: 126px;
    height: 35px;
    background: #000;
    border-radius: 0 0 18px 18px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.iphone-status-bar {
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 28px 8px;
    font-size: 15px;
    font-weight: 600;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    pointer-events: none;
}

/* Status bar color per channel */
.iphone-frame.channel-text .iphone-status-bar { color: white; }
.iphone-frame.channel-voice .iphone-status-bar { color: white; }
.iphone-frame.channel-email .iphone-status-bar { color: #333; }

.status-bar-left { font-variant-numeric: tabular-nums; }
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.iphone-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 42px;
    overflow: hidden;
}

/* ============================================
   WHATSAPP CHANNEL (Text)
   ============================================ */
#textChannel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.wa-header {
    background: var(--wa-header);
    padding: 54px 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    flex-shrink: 0;
}

.wa-back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wa-header-info { flex: 1; min-width: 0; }
.wa-contact-name { font-size: 16px; font-weight: 500; }
.wa-online-status { font-size: 13px; color: rgba(255,255,255,0.7); }

.wa-header-actions {
    display: flex;
    gap: 16px;
    color: rgba(255,255,255,0.85);
}
.wa-header-actions svg { width: 22px; height: 22px; }

/* Chat area */
.wa-chat-area {
    flex: 1;
    overflow-y: auto;
    background: var(--wa-wallpaper);
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d5cec3' fill-opacity='0.15'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='40' cy='25' r='1'/%3E%3Ccircle cx='70' cy='10' r='1.5'/%3E%3Ccircle cx='25' cy='50' r='1'/%3E%3Ccircle cx='55' cy='45' r='1.5'/%3E%3Ccircle cx='10' cy='70' r='1'/%3E%3Ccircle cx='70' cy='65' r='1'/%3E%3C/g%3E%3C/svg%3E");
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scroll-behavior: smooth;
}

.wa-chat-area::-webkit-scrollbar { width: 4px; }
.wa-chat-area::-webkit-scrollbar-track { background: transparent; }
.wa-chat-area::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }

/* WhatsApp date chip */
.wa-date-chip {
    align-self: center;
    background: rgba(225,218,208,0.9);
    color: #54656F;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    margin: 8px 0;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.1);
}

/* Messages */
.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageIn 0.25s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user { align-self: flex-end; }
.message.bot { align-self: flex-start; }

.message-bubble {
    padding: 6px 8px 4px 9px;
    border-radius: 7.5px;
    line-height: 1.45;
    font-size: 14.5px;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    color: var(--wa-text);
}

.message.user .message-bubble {
    background: var(--wa-user-bubble);
    border-top-right-radius: 0;
}

.message.bot .message-bubble {
    background: var(--wa-bot-bubble);
    border-top-left-radius: 0;
}

/* Bubble tails */
.message.user .message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid var(--wa-user-bubble);
    border-right: 8px solid transparent;
}

.message.bot .message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid var(--wa-bot-bubble);
    border-left: 8px solid transparent;
}

/* Timestamp + read receipts inside bubble */
.message-meta {
    display: inline-flex;
    float: right;
    align-items: center;
    gap: 3px;
    margin: 4px 0 -4px 8px;
}

.message-time {
    font-size: 11px;
    color: rgba(0,0,0,0.4);
}

.message-check {
    color: var(--wa-blue-check);
    font-size: 14px;
    line-height: 1;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px 10px;
    align-self: flex-start;
    background: var(--wa-bot-bubble);
    border-radius: 7.5px;
    border-top-left-radius: 0;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    position: relative;
}

.typing-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid var(--wa-bot-bubble);
    border-left: 8px solid transparent;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #8696a0;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Welcome screen */
.welcome-screen {
    text-align: center;
    padding: 60px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.welcome-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.welcome-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wa-text);
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: #667781;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 280px;
}

.start-chat-btn {
    padding: 12px 32px;
    background: var(--wa-send);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}
.start-chat-btn:hover { transform: scale(1.02); opacity: 0.92; }

/* State hint */
.state-hint {
    padding: 8px 16px;
    background: rgba(0,168,132,0.08);
    color: var(--wa-header);
    font-size: 13px;
    text-align: center;
    flex-shrink: 0;
}

/* WhatsApp input bar */
.wa-input-bar {
    background: var(--wa-input-bg);
    padding: 5px 6px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.wa-emoji-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
}

.wa-input-wrapper {
    flex: 1;
    background: white;
    border-radius: 21px;
    padding: 4px 12px;
    display: flex;
    align-items: flex-end;
}

.wa-input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 15px;
    font-family: var(--font);
    resize: none;
    max-height: 100px;
    line-height: 1.35;
    color: var(--wa-text);
}
.wa-input-wrapper textarea:focus { outline: none; }
.wa-input-wrapper textarea::placeholder { color: #999; }

.wa-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--wa-send);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
}
.wa-send-btn:hover:not(:disabled) { transform: scale(1.05); }
.wa-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wa-send-btn svg { width: 22px; height: 22px; }

/* Markdown in bot messages */
.message.bot .message-bubble strong { font-weight: 600; }
.message.bot .message-bubble em { font-style: italic; }
.message.bot .message-bubble code {
    background: rgba(0,0,0,0.06);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.88em;
}
.message.bot .message-bubble pre {
    background: rgba(0,0,0,0.06);
    padding: 8px 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 6px 0;
}
.message.bot .message-bubble pre code { background: none; padding: 0; }
.message.bot .message-bubble ul {
    margin: 4px 0;
    padding-left: 18px;
}
.message.bot .message-bubble .citation {
    display: inline-block;
    background: rgba(7,94,84,0.08);
    color: #555;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-top: 4px;
}

/* Error messages */
.error-bubble {
    background: #FFF3F3 !important;
    border: 1px solid #FFCCCC !important;
}
.retry-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    background: var(--wa-header);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font);
}
.retry-btn:hover { opacity: 0.9; }

/* ============================================
   VOICE CHANNEL (Phone Call)
   ============================================ */
#voiceChannel {
    height: 100%;
}

.call-screen {
    height: 100%;
    background: linear-gradient(180deg, #2c2c2e 0%, var(--call-bg-start) 40%, var(--call-bg-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 24px 60px;
    color: white;
    position: relative;
}

.call-contact-name {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.5px;
    text-align: center;
}

.call-status {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
}

.call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 40px 0 12px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.call-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-avatar.calling {
    animation: call-pulse 2s ease-in-out infinite;
}

@keyframes call-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.35); }
    50% { box-shadow: 0 0 0 28px rgba(52, 199, 89, 0); }
}

.call-timer {
    font-size: 22px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

.call-controls {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.call-control-row {
    display: flex;
    gap: 48px;
}

.call-control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0;
}

.call-control-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--call-control-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.call-control-circle svg { width: 26px; height: 26px; }

.call-control-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-family: var(--font);
}

.call-control-item.active .call-control-circle {
    background: white;
}
.call-control-item.active .call-control-circle svg { color: #000; stroke: #000; }

/* End/Start call button */
.call-action-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.call-action-btn:hover { transform: scale(1.08); }
.call-action-btn svg { width: 30px; height: 30px; }

.call-action-btn.call-start {
    background: var(--call-green);
    color: white;
}
.call-action-btn.call-end {
    background: var(--call-end-red);
    color: white;
}

.call-hint {
    position: absolute;
    bottom: 30px;
    left: 24px;
    right: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ============================================
   TRANSCRIPT PANEL (outside phone)
   ============================================ */
.transcript-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-family: var(--font);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.transcript-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.transcript-toggle svg { width: 18px; height: 18px; }

.transcript-badge {
    background: var(--call-green);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.transcript-panel {
    display: none;
    width: 393px;
    margin-top: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
}

.transcript-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
}
.transcript-close:hover { color: white; }

.transcript-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 16px;
}

.transcript-content::-webkit-scrollbar { width: 4px; }
.transcript-content::-webkit-scrollbar-track { background: transparent; }
.transcript-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.transcript-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    line-height: 1.4;
}
.transcript-content p:last-child { margin-bottom: 0; }
.transcript-content .user { color: #60a5fa; }
.transcript-content .assistant { color: #4ade80; }

/* ============================================
   EMAIL CHANNEL (Gmail Compose)
   ============================================ */
#emailChannel {
    height: 100%;
}

.gmail-compose {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    overflow-y: auto;
}

.gmail-compose-header {
    background: white;
    padding: 54px 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gmail-separator);
    flex-shrink: 0;
}

.gmail-close {
    background: none;
    border: none;
    color: var(--gmail-text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
}
.gmail-close svg { width: 24px; height: 24px; }

.gmail-compose-title {
    flex: 1;
    font-size: 18px;
    color: var(--gmail-text);
    font-weight: 400;
}

.gmail-compose-actions {
    display: flex;
    gap: 4px;
}

.gmail-action-btn {
    background: none;
    border: none;
    color: var(--gmail-text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background 0.15s;
}
.gmail-action-btn:hover { background: rgba(0,0,0,0.05); }

.gmail-send-btn {
    background: var(--gmail-blue);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 20px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}
.gmail-send-btn:hover { background: #1557B0; }
.gmail-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.gmail-send-btn svg { width: 18px; height: 18px; }

/* Gmail fields */
.gmail-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gmail-field {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gmail-separator);
    gap: 8px;
}

.gmail-field-label {
    font-size: 14px;
    color: var(--gmail-text-secondary);
    min-width: 52px;
}

.gmail-field input {
    flex: 1;
    border: none;
    font-size: 15px;
    font-family: var(--font);
    color: var(--gmail-text);
    outline: none;
    padding: 0;
}
.gmail-field input::placeholder { color: #C4C7C5; }

.gmail-recipient-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #E8EAED;
    border-radius: 16px;
    padding: 4px 12px 4px 4px;
}

.gmail-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.gmail-chip-name {
    font-size: 14px;
    color: var(--gmail-text);
}

.gmail-body-field {
    flex: 1;
    padding: 16px;
}

.gmail-body-field textarea {
    width: 100%;
    height: 100%;
    min-height: 120px;
    border: none;
    font-size: 15px;
    font-family: var(--font);
    color: var(--gmail-text);
    outline: none;
    resize: none;
    line-height: 1.5;
}
.gmail-body-field textarea::placeholder { color: #C4C7C5; }

/* Gmail thread response */
.gmail-thread {
    border-top: 2px solid var(--gmail-separator);
    padding: 16px;
    background: var(--gmail-bg);
    flex-shrink: 0;
}

.gmail-thread-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.gmail-thread-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.gmail-thread-sender {
    font-size: 14px;
    font-weight: 600;
    color: var(--gmail-text);
}

.gmail-thread-time {
    font-size: 12px;
    color: var(--gmail-text-secondary);
    margin-left: auto;
}

.gmail-thread-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gmail-text);
    white-space: pre-wrap;
}

.gmail-new-email-btn {
    display: block;
    margin: 12px auto 4px;
    padding: 8px 20px;
    background: var(--gmail-blue);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s;
}
.gmail-new-email-btn:hover { background: #1557B0; }

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }

/* Responsive — scale down phone on smaller screens */
@media (max-height: 920px) {
    .iphone-frame {
        transform: scale(0.88);
        transform-origin: top center;
    }
}

@media (max-height: 800px) {
    .iphone-frame {
        transform: scale(0.78);
        transform-origin: top center;
    }
    .page-wrapper { padding-top: 12px; }
}

@media (max-width: 440px) {
    .iphone-frame {
        width: calc(100vw - 16px);
        height: calc(100vh - 120px);
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    .iphone-notch, .iphone-status-bar { display: none; }
    .iphone-screen { border-radius: 0; }
    .wa-header { padding-top: 10px; }
    .gmail-compose-header { padding-top: 12px; }
    .call-screen { padding-top: 40px; }
    .page-wrapper { padding: 0; }
    .channel-selector { padding: 8px; }
    .transcript-panel { width: 100%; border-radius: 0; }
}
