* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    color: #211f1c;
    background: #f8f4ee;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.portal-main {
    min-height: calc(100vh - var(--app-header-height));
    padding: 34px 32px 56px;
}

.portal-main > * {
    width: 100%;
    max-width: var(--portal-content-max-width);
    margin-right: auto;
    margin-left: auto;
}

.portal-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 132px;
    gap: 32px;
    padding: 0 2px 28px;
}

.portal-eyebrow {
    margin-bottom: 8px;
    color: #168d3a;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.portal-hero p {
    max-width: 660px;
    margin: 11px 0 0;
    color: #77716b;
    font-size: 14px;
    line-height: 1.55;
}

.portal-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #77716b;
}

.portal-count strong {
    color: #211f1c;
    font-size: 30px;
    letter-spacing: -.04em;
}

.portal-count span {
    font-size: 12px;
}

.portal-toolbar {
    display: flex;
    align-items: center;
    min-height: 66px;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid #ded9d2;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgb(27 25 23 / 3%);
}

.portal-search-wrap {
    display: flex;
    align-items: center;
    width: min(520px, 100%);
    height: 40px;
    gap: 10px;
    padding: 0 12px;
    color: #77716b;
    background: #faf8f5;
    border: 1px solid #ded9d2;
    border-radius: 10px;
}

.portal-search-wrap:focus-within {
    border-color: #168d3a;
    box-shadow: 0 0 0 3px rgb(22 141 58 / 10%);
}

.portal-search-wrap svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.portal-search-wrap input {
    width: 100%;
    height: 100%;
    color: #211f1c;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 13px;
}

.portal-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #77716b;
    font-size: 11px;
    white-space: nowrap;
}

.portal-status i {
    width: 7px;
    height: 7px;
    background: #20a647;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(32 166 71 / 10%);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    gap: 20px;
}

.mockup-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ded9d2;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgb(27 25 23 / 3%);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mockup-card:hover {
    transform: translateY(-2px);
    border-color: #bcb5ad;
    box-shadow: 0 16px 34px rgb(35 31 28 / 9%);
}

.mockup-preview {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f3f0eb;
    border-bottom: 1px solid #ded9d2;
}

.mockup-preview iframe {
    width: 1440px;
    height: 900px;
    border: 0;
    pointer-events: none;
    transform: scale(.36);
    transform-origin: top left;
}

.mockup-preview::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 72%, rgb(27 25 23 / 5%));
    pointer-events: none;
}

.mockup-card-body {
    padding: 20px;
}

.mockup-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.mockup-product {
    color: #168d3a;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mockup-state {
    color: #77716b;
    font-size: 10px;
}

.mockup-card h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.025em;
}

.mockup-card p {
    min-height: 42px;
    margin: 8px 0 15px;
    color: #77716b;
    font-size: 12px;
    line-height: 1.55;
}

.mockup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.mockup-tag {
    padding: 5px 8px;
    color: #625d57;
    background: #f4f2ef;
    border: 1px solid #e5e0da;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 650;
}

.mockup-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: #181818;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.mockup-launch:hover {
    background: #168d3a;
}

.mockup-launch span {
    font-size: 15px;
}

.portal-loading,
.portal-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    color: #77716b;
    background: #fff;
    border: 1px dashed #cfc8c0;
    border-radius: 14px;
    font-size: 13px;
    text-align: center;
}

.portal-empty strong,
.portal-empty span {
    display: block;
}

.portal-empty strong {
    margin-bottom: 5px;
    color: #211f1c;
}

@media (min-width: 1320px) {
    .mockup-preview {
        height: 315px;
    }

    .mockup-preview iframe {
        transform: scale(.44);
    }
}

@media (max-width: 720px) {
    .portal-main {
        padding: 24px 16px 40px;
    }

    .portal-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .portal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mockup-preview {
        height: 210px;
    }

    .mockup-preview iframe {
        transform: scale(.3);
    }
}