/* In-page app previews — phone shell + shared primitives.
 * Ported from the Claude Design bundle (appscreens/app-ui.jsx).
 * Screen-specific layout lives inline in the Views/Home/Screens/* partials. */

.phone {
    width: 320px;
    height: 690px;
    border-radius: 46px;
    padding: 5px;
    background: #0E0E11;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 30px 80px rgba(20, 24, 43, 0.16);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 41px;
    background: var(--paper);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--text);
    text-align: left;
}
.phone-body {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.phone-home {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 112px;
    height: 4px;
    border-radius: 2px;
    background: #000;
    opacity: 0.85;
    z-index: 30;
}

/* Status bar */
.statusbar {
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    z-index: 20;
}
.statusbar .time { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.statusbar .island {
    position: absolute;
    left: 50%;
    top: 11px;
    transform: translateX(-50%);
    width: 95px;
    height: 26px;
    border-radius: 14px;
    background: #000;
}
.statusbar .status-icons { display: flex; gap: 6px; align-items: center; }

/* App bar */
.appbar {
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    position: relative;
    z-index: 10;
}
.appbar-lead { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.appbar-title {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    pointer-events: none;
}
.appbar-cur {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 8px;
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

/* Scroll/content region */
.screen-body { flex: 1; overflow: hidden; }

/* Bottom nav */
.navbar {
    flex-shrink: 0;
    background: var(--card);
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px 8px 16px;
    display: flex;
    position: relative;
    z-index: 15;
}
.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
}
.nav-tab-icon {
    padding: 6px;
    border-radius: 10px;
    display: flex;
}
.nav-tab.on .nav-tab-icon { background: rgba(0, 123, 255, 0.12); }
.nav-tab-label { font-size: 10px; font-weight: 500; color: var(--light-grey); }
.nav-tab.on .nav-tab-label { font-weight: 600; color: var(--primary); }

/* FAB */
.fab {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background: rgba(0, 123, 255, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
    flex-shrink: 0;
    font-weight: 600;
    white-space: nowrap;
}

/* Shared primitives */
.m .frac { font-size: 0.75em; }

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FAF8F2, #F4F2EB);
    border: 1px solid #E5E7EB;
    box-shadow: 0 3px 6px rgba(140, 140, 160, 0.15), 0 -1px 2px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
}

/* Scale the fixed-width phone down on narrow viewports */
@media (max-width: 380px) {
    .panel-visual { transform: scale(0.92); transform-origin: top center; }
}
