.app-shell {
    max-width: 460px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 96px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(247, 244, 239, 0.88);
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(230, 221, 210, 0.7);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    font-size: 18px;
}

.pill-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content {
    padding: 18px 16px 32px;
    display: grid;
    gap: 18px;
}

.hero {
    background: radial-gradient(circle at top right, rgba(245, 158, 11, .18), transparent 35%), linear-gradient(160deg, #0f766e 0%, #155e75 100%);
    color: white;
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: var(--text-sm);
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 6vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    line-height: 1.5;
    font-size: var(--text-sm);
}

.form-card,
.tips-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body {
    padding: 16px;
    display: grid;
    gap: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.section-title h2 {
    margin: 0;
    font-size: var(--text-lg);
    letter-spacing: -0.03em;
}

.helper {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.field-grid {
    display: grid;
    gap: 12px;
}

.field-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-block {
    display: grid;
    gap: 8px;
}

.field-block label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
}

.field-block input[type="text"],
.field-block input[type="number"],
.field-block input[type="file"],
.field-block textarea,
.field-block select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-size: var(--text-sm);
}

.field-block textarea {
    min-height: 120px;
    resize: vertical;
}

.field-block input:focus,
.field-block textarea:focus,
.field-block select:focus {
    outline: 2px solid rgba(15, 118, 110, 0.18);
    outline-offset: 2px;
    border-color: var(--primary);
}

.field-error,
.form-errors {
    color: var(--danger);
    font-size: 13px;
    line-height: 1.4;
}

.upload-card {
    border: 1.5px dashed #b7d4d0;
    background: #f4fbfa;
    border-radius: 20px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.upload-title {
    color: var(--primary-strong);
    font-size: 14px;
    font-weight: 800;
}

.upload-text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.tiny-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef8f7;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.tips-list {
    display: grid;
    gap: 10px;
}

.tip-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.submit-bar {
    display: grid;
    gap: 10px;
}

.submit-btn {
    min-height: 52px;
    border-radius: 18px;
    border: 0;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: var(--text-sm);
    box-shadow: var(--shadow);
}

.submit-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}


@media (min-width: 900px) {
    .app-shell {
        max-width: 980px;
        padding-bottom: 40px;
        background: transparent;
    }

    .content {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 20px;
        align-items: start;
    }

    .hero,
    .form-card {
        grid-column: 1;
    }

    .tips-card {
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .topbar {
        padding-inline: 24px;
    }

    .field-grid.two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.product-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-thumb {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fdba74 45%, #fca5a5);
    position: relative;
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 8px;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.product-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.product-main-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.product-name {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.product-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-main-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.product-extra {
    font-size: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge.is-published {
    background: #eef8f7;
    color: var(--primary-strong);
}

.status-badge.is-draft {
    background: #f4efe7;
    color: #8a5a2b;
}

@media (min-width: 900px) {
    .product-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .product-thumb {
        width: 96px;
        height: 96px;
    }

    .product-name {
        font-size: 18px;
    }
}