:root {

    :root {
        --outer-bg: #0b0b0b;
        --panel: #ffffff;
        --muted: #bdbdbd;
        --ink: #111;
        --accent: #4a4a4a;
    }

    * {
        box-sizing: border-box
    }

    html,
    body {
        height: 100%
    }

    body {
        margin: 0;
        font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
        background: var(--outer-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px
    }

    /* Mobile panel */
    .app {
        width: 360px;
        min-height: 740px;
        background: var(--panel);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
        border: 12px solid transparent
    }

    /* Header: subtle, white like wireframe */
    .app-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: transparent;
        color: var(--ink)
    }

    .title {
        font-size: 20px;
        margin: 0;
        font-weight: 700;
        letter-spacing: 0.5px
    }

    .avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(45deg, #ddd, #bbb)
    }

    .back {
        background: none;
        border: 0;
        color: var(--ink);
        font-size: 20px
    }

    .hidden {
        display: none
    }

    .screen {
        padding: 18px
    }

    /* Large hero image placeholder */
    .hero-figure {
        height: 200px;
        background: #eee;
        border-radius: 6px;
        margin: 8px 0 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
        font-weight: 700
    }

    /* Stacked, large CTA buttons to match wireframe */
    .controls {
        display: flex;
        gap: 12px;
        flex-direction: column;
        align-items: stretch
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px;
        border-radius: 8px;
        border: 0;
        background: #e6e6e6;
        color: var(--ink);
        font-weight: 800;
        font-size: 16px
    }

    .btn.primary {
        background: #d0d0d0
    }

    .btn.wide {
        width: 100%
    }

    .link.small {
        display: block;
        margin-top: 12px;
        color: #777;
        font-size: 12px;
        text-decoration: underline;
        cursor: pointer;
        text-align: center
    }

    /* Forms: compact and narrow like wireframe */
    .form {
        display: flex;
        flex-direction: column;
        gap: 12px
    }

    .form label {
        font-size: 12px;
        color: #333
    }

    .form input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        margin-top: 6px;
        background: #fff
    }

    .card {
        background: #f2f2f2;
        border-radius: 8px;
        padding: 12px;
        color: #444;
        margin: 12px 0
    }

    .card.big {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .card.mid {
        height: 140px
    }

    .card.large {
        height: 200px
    }

    .menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 12px 0
    }

    .menu-item {
        padding: 12px;
        border-radius: 8px;
        background: #dcdcdc;
        border: 0;
        font-weight: 700
    }

    .searchRow {
        display: flex;
        gap: 8px;
        margin-bottom: 12px
    }

    .searchRow input {
        flex: 1;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #e3e3e3
    }

    .list {
        display: flex;
        flex-direction: column;
        gap: 10px
    }

    .list-item {
        padding: 12px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #eee
    }

    .rating {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 8px
    }

    .stars button {
        font-size: 26px;
        border: 0;
        background: transparent;
        cursor: pointer;
        color: #222
    }

    .image {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999
    }

    .small {
        font-size: 12px;
        color: #666
    }

    /* Make block-level large CTAs like wireframe */
    .btn.primary {
        background: #bdbdbd;
        color: #111
    }

    @media(min-width:700px) {
        .app {
            width: 420px
        }
    }

    color: #fff
}

.title {
    font-size: 18px;
    margin: 0
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, #666, #222)
}

.back {
    background: none;
    border: 0;
    color: #fff;
    font-size: 18px
}

.hidden {
    display: none
}

.screen {
    padding: 18px
}

.hero-figure {
    height: 160px;
    background: linear-gradient(90deg, #ddd, #eee);
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888
}

.controls {
    display: flex;
    gap: 12px;
    flex-direction: column
}

.btn {
    display: inline-block;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid var(--accent);
    background: #fff;
    color: var(--accent);
    font-weight: 700
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent)
}

.btn.wide {
    width: 100%
}

.link.small {
    display: block;
    margin-top: 12px;
    color: #666;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.form label {
    font-size: 13px;
    color: #444
}

.form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px
}

.card {
    background: #efefef;
    border-radius: 6px;
    padding: 12px;
    color: #444;
    margin: 10px 0
}

.card.big {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center
}

.card.mid {
    height: 120px
}

.card.large {
    height: 160px
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0
}

.menu-item {
    padding: 10px;
    border-radius: 6px;
    background: #ddd;
    border: 0
}

.searchRow {
    display: flex;
    gap: 8px;
    margin-bottom: 12px
}

.searchRow input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.list-item {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff
}

.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px
}

.stars button {
    font-size: 24px;
    border: 0;
    background: transparent;
    cursor: pointer
}

.image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999
}

.small {
    font-size: 12px;
    color: #666
}

@media(min-width:700px) {
    .app {
        width: 420px
    }
}