:root {
    --ink: #143a54;
    --ink-deep: #0a2538;
    --coral: #ff6b5e;
    --coral-dark: #df5149;
    --mint: #dff3e9;
    --sky: #e6f1f6;
    --cream: #faf9f5;
    --paper: #ffffff;
    --line: #e3e7e6;
    --muted: #6f7d82;
    --success: #2d7b5b;
    --warning: #9e6b24;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
    background: var(--cream);
    color: var(--ink-deep);
    font-size: 15px;
    margin: 0;
    min-height: 100%;
}

body { overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 107, 94, .42); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: .98; margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.08; }
h3 { font-size: 1.05rem; }
p { line-height: 1.55; }

.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.eyebrow { color: var(--coral-dark); font-size: .68rem; font-weight: 800; letter-spacing: .16em; margin-bottom: .7rem; text-transform: uppercase; }
.muted-note { color: var(--muted); font-size: .86rem; line-height: 1.55; }
.loading-state { color: var(--muted); padding: 4rem 1rem; text-align: center; }

.brand { align-items: center; color: var(--ink); display: inline-flex; font-size: 1.18rem; font-weight: 850; gap: .48rem; letter-spacing: -.055em; text-decoration: none; }
.brand > span:last-child > span { color: var(--coral); }
.brand-mark { align-items: center; background: var(--coral); border-radius: 10px 10px 10px 3px; color: white; display: inline-flex; font-size: .9rem; height: 1.85rem; justify-content: center; letter-spacing: -.08em; transform: rotate(-7deg); width: 1.85rem; }
.brand-mark::first-letter { transform: rotate(7deg); }

.public-shell { min-height: 100vh; }
.public-header { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1180px; padding: 1.25rem 1.35rem; }
.public-nav { align-items: center; display: flex; font-size: .8rem; gap: 1.15rem; }
.public-nav a { color: var(--muted); text-decoration: none; }
.public-nav a:hover { color: var(--ink); }
.public-nav form { margin: 0; }
.public-nav .text-action { color: var(--muted); font-size: .8rem; padding: 0; }
.public-nav .text-action:hover { color: var(--ink); }
.public-nav .nav-cta { background: var(--ink); border-radius: 999px; color: white; font-weight: 750; padding: .63rem 1rem; }
.public-main { margin: 0 auto; max-width: 1180px; padding: 0 1.35rem 4rem; }
.public-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: .7rem; gap: 1rem; justify-content: space-between; margin: 0 auto; max-width: 1180px; padding: 1.2rem 1.35rem 2rem; }

.hero-section { align-items: center; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); min-height: 485px; padding: 3.5rem 0 4rem; }
.hero-copy { max-width: 620px; }
.hero-greeting { color: var(--ink); font-size: .88rem; font-weight: 800; margin-bottom: .8rem; }
.hero-copy h1 { color: var(--ink); font-size: clamp(3rem, 8vw, 6.5rem); max-width: 700px; }
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.hero-lead { color: var(--muted); font-size: 1.04rem; max-width: 530px; }
.hero-search, .explore-search { align-items: center; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 15px 35px rgba(20, 58, 84, .08); display: flex; gap: .75rem; margin-top: 1.65rem; max-width: 570px; padding: .42rem .48rem .42rem 1rem; }
.hero-search > span, .explore-search > span { color: var(--coral); font-size: 1.35rem; font-weight: 800; }
.hero-search input, .explore-search input { background: transparent; border: 0; color: var(--ink); min-width: 0; outline: 0; padding: .72rem 0; width: 100%; }
.hero-search input::placeholder, .explore-search input::placeholder { color: #9aa5a6; }
.hero-search button, .explore-search button { background: var(--coral); border: 0; border-radius: 11px; color: white; cursor: pointer; font-size: .78rem; font-weight: 800; padding: .75rem 1.15rem; }
.hero-search button:hover, .explore-search button:hover { background: var(--coral-dark); }
.hero-proof { align-items: center; color: var(--muted); display: flex; font-size: .73rem; gap: .55rem; margin-top: 1rem; }
.proof-dot { background: var(--success); border: 3px solid #c5ead7; border-radius: 50%; height: .55rem; width: .55rem; }
.verified-label { color: var(--success); font-weight: 700; margin-left: .35rem; }
.controlapps-card { align-self: center; background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(230, 241, 246, .76)); border: 1px solid rgba(20, 58, 84, .1); border-radius: 30px; box-shadow: 0 20px 45px rgba(20, 58, 84, .1); justify-self: end; max-width: 430px; padding: 2rem; width: 100%; }
.controlapps-credit { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .8rem; gap: .5rem; margin: 0; }
.controlapps-brand-link { align-items: center; color: var(--ink); display: inline-flex; gap: .35rem; text-decoration: none; }
.controlapps-brand-link:hover strong { color: var(--coral-dark); }
.controlapps-brand-link img { height: 1.55rem; object-fit: contain; width: 1.55rem; }
.controlapps-brand-link strong { font-size: .82rem; }
.controlapps-divider { border-top: 1px solid var(--line); margin: 1.15rem 0 1.35rem; }
.controlapps-card h2 { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.13; margin-bottom: .85rem; }
.controlapps-lead { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.controlapps-benefits { display: grid; gap: .65rem; list-style: none; margin: 0 0 1.35rem; padding: 0; }
.controlapps-benefits li { align-items: center; color: var(--ink); display: flex; font-size: .8rem; gap: .65rem; line-height: 1.4; }
.controlapps-benefits li > span:first-child { align-items: center; background: #fff0ee; border-radius: 50%; color: var(--coral-dark); display: inline-flex; flex: 0 0 1.35rem; font-weight: 900; height: 1.35rem; justify-content: center; width: 1.35rem; }
.controlapps-cta { align-items: center; background: var(--ink); border-radius: 999px; color: white; display: flex; font-size: .82rem; font-weight: 800; justify-content: center; padding: .88rem 1rem; text-align: center; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.controlapps-cta:hover { background: var(--ink-deep); color: white; transform: translateY(-2px); }
.controlapps-note { color: var(--muted); font-size: .72rem; margin: 1rem 0 .35rem; text-align: center; }
.controlapps-link { color: var(--coral-dark); display: block; font-size: .76rem; font-weight: 800; text-align: center; text-decoration: underline; text-underline-offset: .18rem; }
.controlapps-link span { font-size: .95rem; margin-left: .15rem; text-decoration: none; }

.home-section { padding: 1.1rem 0 3.5rem; }
.section-title-row { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.2rem; }
.section-title-row h2 { margin-bottom: 0; }
.section-title-row a { color: var(--coral-dark); font-size: .76rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.section-title-row a span { font-size: 1rem; margin-left: .3rem; }
.category-grid { display: grid; gap: .75rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.category-tile { background: white; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; gap: .45rem; min-height: 112px; padding: 1rem; text-decoration: none; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.category-tile:hover { border-color: rgba(255, 107, 94, .55); box-shadow: 0 12px 26px rgba(20, 58, 84, .08); transform: translateY(-3px); }
.category-icon { font-size: 1.45rem; }
.category-tile > span:not(.category-icon) { color: var(--ink); font-size: .78rem; font-weight: 780; }
.category-tile small { color: var(--muted); font-size: .66rem; }
.recent-section { padding-top: 0; }
.listing-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.listing-card { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; min-width: 0; overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.listing-card:hover { box-shadow: 0 17px 35px rgba(20, 58, 84, .1); transform: translateY(-3px); }
.listing-card-link { display: block; text-decoration: none; }
.listing-card-media { align-items: center; background: var(--sky); display: flex; height: 155px; justify-content: center; overflow: hidden; position: relative; }
.listing-card-media img { height: 100%; object-fit: cover; width: 100%; }
.listing-placeholder { color: var(--ink); font-size: 3rem; opacity: .4; }
.type-badge { background: var(--mint); border-radius: 999px; color: var(--success); display: inline-flex; font-size: .62rem; font-weight: 800; padding: .33rem .56rem; white-space: nowrap; }
.listing-card-media .type-badge { left: .7rem; position: absolute; top: .7rem; }
.listing-card-body { padding: .95rem 1rem 1rem; }
.listing-category { color: var(--coral-dark); font-size: .66rem; font-weight: 800; letter-spacing: .08em; margin-bottom: .35rem; text-transform: uppercase; }
.listing-card h3 { font-size: 1.08rem; margin-bottom: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-description { color: var(--muted); font-size: .76rem; line-height: 1.45; margin-bottom: .85rem; min-height: 2.2rem; overflow: hidden; }
.listing-card-footer { align-items: center; display: flex; justify-content: space-between; }
.listing-card-footer strong { color: var(--ink); font-size: .9rem; }
.recommendation-count { color: var(--coral-dark); font-size: .7rem; font-weight: 750; }
.listing-owner { color: var(--muted); font-size: .65rem; margin: .85rem 0 0; }
.listing-owner span { color: var(--success); font-weight: 900; }
.home-callout { align-items: center; background: var(--ink); border-radius: 20px; color: white; display: flex; gap: 2rem; justify-content: space-between; margin: .5rem 0 1rem; padding: 2rem 2.2rem; }
.home-callout h2 { color: white; margin-bottom: .5rem; }
.home-callout p:not(.eyebrow) { color: #c5d5dc; margin-bottom: 0; max-width: 580px; }
.home-callout .eyebrow { color: #ff9d94; }
.home-callout .secondary-action { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: white; white-space: nowrap; }
.home-callout .secondary-action:hover { background: white; color: var(--ink); }

.app-shell { min-height: 100vh; }
.app-header { align-items: center; background: rgba(250, 249, 245, .92); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 1rem max(1.35rem, calc((100vw - 1180px) / 2)); position: sticky; top: 0; z-index: 20; }
.app-header-actions { align-items: center; display: flex; gap: 1rem; }
.member-chip { color: var(--success); font-size: .68rem; font-weight: 750; }
.text-action, .danger-action { background: transparent; border: 0; color: var(--coral-dark); cursor: pointer; font-size: .74rem; font-weight: 750; padding: .3rem 0; text-decoration: none; }
.danger-action { color: #b53b3b; }
.app-content { margin: 0 auto; max-width: 1180px; padding: 2.5rem 1.35rem 6rem; }
.app-nav { align-items: center; background: rgba(20, 58, 84, .98); bottom: 0; box-shadow: 0 -8px 25px rgba(20, 58, 84, .12); display: flex; gap: .25rem; justify-content: center; left: 0; padding: .55rem max(1rem, calc((100vw - 700px) / 2)); position: fixed; right: 0; z-index: 30; }
.app-nav-item { align-items: center; border-radius: 11px; color: #c0d0d7; display: flex; flex: 1; flex-direction: column; font-size: .61rem; font-weight: 700; gap: .1rem; justify-content: center; max-width: 100px; min-height: 2.7rem; text-decoration: none; }
.app-nav-item:hover { color: white; }
.nav-icon { font-size: 1.25rem; font-weight: 400; line-height: 1; }
.app-nav-publish { background: var(--coral); color: white; margin-top: -.95rem; padding-top: .35rem; }
.publish-plus { font-size: 1.5rem; line-height: .9; }

.section-page { width: 100%; }
.section-heading { margin-bottom: 1.6rem; }
.section-heading h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: .55rem; }
.section-lead { color: var(--muted); margin-bottom: 0; max-width: 650px; }
.explore-heading { align-items: end; display: flex; justify-content: space-between; gap: 1.5rem; }
.explore-search { margin: 0 0 1rem; max-width: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-pill { background: white; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 750; padding: .55rem .8rem; text-decoration: none; }
.filter-pill:hover, .filter-pill.active { background: var(--ink); border-color: var(--ink); color: white; }
.results-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.results-heading h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.results-heading p { color: var(--muted); font-size: .72rem; margin: 0; }
.sort-select { background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .72rem; padding: .55rem .7rem; }
.back-link { color: var(--muted); display: inline-block; font-size: .76rem; margin-bottom: 1.3rem; text-decoration: none; }
.back-link:hover { color: var(--coral-dark); }

.primary-action, .secondary-action { align-items: center; border: 1px solid transparent; border-radius: 10px; cursor: pointer; display: inline-flex; font-size: .78rem; font-weight: 800; gap: .45rem; justify-content: center; padding: .75rem 1rem; text-decoration: none; }
.primary-action { background: var(--coral); color: white; }
.primary-action:hover { background: var(--coral-dark); color: white; }
.secondary-action { background: white; border-color: var(--line); color: var(--ink); }
.secondary-action:hover { border-color: var(--ink); color: var(--ink); }
.inline-action { margin-top: .65rem; }
.empty-state { align-items: center; background: white; border: 1px dashed #cbd5d3; border-radius: 17px; display: flex; flex-direction: column; margin: 1rem 0; max-width: 660px; padding: 2.5rem 1.5rem; text-align: center; }
.empty-state-icon { color: var(--coral); font-size: 2.3rem; line-height: 1; margin-bottom: .8rem; }
.empty-state h2, .empty-state h3 { margin-bottom: .35rem; }
.empty-state p { color: var(--muted); font-size: .86rem; margin-bottom: 0; }

.detail-page { padding-top: .4rem; }
.detail-grid { display: grid; gap: 2.2rem; grid-template-columns: minmax(0, 1fr) minmax(300px, .84fr); }
.detail-gallery { background: var(--sky); border-radius: 19px; min-height: 410px; overflow: hidden; }
.detail-placeholder { align-items: center; color: var(--ink); display: flex; flex-direction: column; height: 100%; justify-content: center; min-height: 410px; }
.detail-placeholder span { font-size: 7rem; opacity: .3; }
.detail-placeholder small { color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.detail-image { height: 100%; max-height: 540px; object-fit: cover; width: 100%; }
.detail-copy { padding: 1rem 0; }
.detail-topline { align-items: center; display: flex; gap: .6rem; margin-bottom: .8rem; }
.detail-topline .listing-category { margin: 0; }
.detail-copy h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); margin-bottom: 1.1rem; }
.detail-owner { align-items: center; display: flex; gap: .7rem; margin-bottom: 1.5rem; }
.avatar { align-items: center; background: var(--mint); border-radius: 50%; color: var(--success); display: inline-flex; font-size: 1.15rem; font-weight: 850; height: 2.8rem; justify-content: center; width: 2.8rem; }
.detail-owner strong, .detail-owner small { display: block; }
.detail-owner strong { color: var(--ink); font-size: .85rem; }
.detail-owner small { color: var(--success); font-size: .7rem; margin-top: .18rem; }
.detail-description { color: var(--muted); font-size: .96rem; max-width: 550px; }
.detail-price { color: var(--ink); font-size: 1.55rem; font-weight: 850; margin: 1.4rem 0; }
.detail-actions { align-items: center; display: flex; gap: .55rem; }
.detail-actions .primary-action { flex: 1; }
.icon-action { background: white; border: 1px solid var(--line); border-radius: 10px; color: var(--coral); cursor: pointer; font-size: 1.35rem; height: 2.75rem; width: 2.85rem; }
.icon-action.selected { background: #fff0ee; border-color: #ffc1ba; }
.trust-row { border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: .68rem; gap: 1rem; justify-content: space-between; margin-top: 1.35rem; padding-top: .9rem; }
.detail-lower-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 2rem; }
.detail-panel, .admin-panel, .profile-note { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.panel-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.panel-heading h2 { font-size: 1.05rem; margin: 0; }
.panel-heading > span { color: var(--coral-dark); font-size: .8rem; font-weight: 800; }
.recommend-button { background: var(--mint); border: 1px solid #bce3cf; border-radius: 999px; color: var(--success); cursor: pointer; font-size: .74rem; font-weight: 800; margin-bottom: .8rem; padding: .6rem .8rem; }
.recommend-button.selected { background: var(--ink); border-color: var(--ink); color: white; }
.recommendation-list blockquote { border-top: 1px solid var(--line); margin: .8rem 0 0; padding-top: .8rem; }
.recommendation-list blockquote p { color: var(--ink); font-size: .83rem; margin-bottom: .25rem; }
.recommendation-list cite { color: var(--muted); font-size: .66rem; font-style: normal; }
.report-form, .admin-form { display: grid; gap: .75rem; margin-top: 1rem; }
.report-form label, .admin-form label, .publish-form label, .auth-form label { color: var(--ink); display: grid; font-size: .74rem; font-weight: 750; gap: .35rem; }
.report-form input, .report-form select, .report-form textarea, .admin-form input, .publish-form input:not([type=radio]):not([type=checkbox]), .publish-form select, .publish-form textarea, .auth-form input:not([type=checkbox]) { background: white; border: 1px solid #d3dcda; border-radius: 9px; box-sizing: border-box; color: var(--ink); min-height: 2.55rem; outline: none; padding: .58rem .7rem; width: 100%; }
.report-form input:focus, .report-form select:focus, .report-form textarea:focus, .admin-form input:focus, .publish-form input:focus, .publish-form select:focus, .publish-form textarea:focus, .auth-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 94, .12); }
.report-form textarea, .publish-form textarea { resize: vertical; }
.success-note { background: var(--mint); border: 1px solid #bce3cf; border-radius: 9px; color: var(--success); font-size: .78rem; margin: .8rem 0; padding: .75rem; }
.inline-error, .validation-message, .validation-errors { color: #b53b3b; font-size: .73rem; }

.publish-form { max-width: 760px; }
.publish-form fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }
.publish-form legend { color: var(--ink); font-size: 1rem; font-weight: 800; margin-bottom: .75rem; }
.type-choice-grid { display: grid; gap: .6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.type-choice { background: white; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; min-height: 115px; padding: .75rem; position: relative; }
.type-choice.selected { background: var(--sky); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.type-choice input { position: absolute; right: .7rem; top: .7rem; }
.type-choice-icon { color: var(--coral); font-size: 1.4rem; }
.type-choice strong { color: var(--ink); font-size: .76rem; }
.type-choice small { color: var(--muted); font-size: .65rem; line-height: 1.3; }
.form-panel { background: white; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 1rem; padding: 1.3rem; }
.form-panel small, .auth-form small { color: var(--muted); font-size: .65rem; font-weight: 400; }
.form-two-columns { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.publish-actions { display: flex; gap: .65rem; justify-content: flex-end; margin-top: 1rem; }
.edit-image-preview { align-items: center; background: var(--sky); border-radius: 12px; display: flex; gap: .8rem; padding: .65rem; }
.edit-image-preview span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.edit-image-preview img { border-radius: 8px; height: 4.2rem; object-fit: cover; width: 5.4rem; }
.checkbox-label { align-items: flex-start; display: flex !important; font-weight: 500 !important; grid-template-columns: auto 1fr; line-height: 1.4; }
.checkbox-label input { accent-color: var(--coral); margin-top: .2rem; }

.status-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 1.2rem; margin-bottom: 1.25rem; }
.status-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font-size: .75rem; font-weight: 750; padding: .65rem .1rem; }
.status-tabs button.active { border-bottom-color: var(--coral); color: var(--ink); }
.my-listing-list { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.my-listing-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: 3.2rem minmax(0, 1fr) auto; padding: 1rem; }
.my-listing-row:last-child { border-bottom: 0; }
.my-listing-thumb { align-items: center; background: var(--sky); border-radius: 10px; color: var(--ink); display: flex; font-size: 1.4rem; height: 3.2rem; justify-content: center; width: 3.2rem; }
.my-listing-info h2 { font-size: .95rem; margin: .3rem 0 .2rem; }
.my-listing-info h2 a { text-decoration: none; }
.my-listing-info p { color: var(--muted); font-size: .68rem; margin: 0; }
.my-listing-actions { align-items: flex-end; display: flex; flex-direction: column; gap: .22rem; }
.status-label { border-radius: 999px; display: inline-flex; font-size: .62rem; font-weight: 800; padding: .3rem .5rem; }
.status-active { background: var(--mint); color: var(--success); }
.status-paused { background: #fff1d9; color: var(--warning); }
.status-completed { background: #e9edf0; color: var(--muted); }
.status-draft { background: #f2e9ff; color: #7454a9; }

.profile-hero { align-items: center; display: flex; gap: 1rem; margin-bottom: 2rem; }
.profile-avatar { align-items: center; background: var(--ink); border-radius: 35% 65% 60% 40%; color: white; display: flex; font-size: 2.1rem; font-weight: 850; height: 5.2rem; justify-content: center; transform: rotate(-6deg); width: 5.2rem; }
.profile-hero h1 { font-size: 2.2rem; margin-bottom: .25rem; }
.profile-phone { color: var(--muted); font-size: .78rem; margin-bottom: .45rem; }
.verified-pill { background: var(--mint); border-radius: 999px; color: var(--success); font-size: .66rem; font-weight: 800; padding: .35rem .55rem; }
.profile-card-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
.profile-menu-card { align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: .75rem; padding: 1rem; text-decoration: none; }
.profile-menu-card:hover { border-color: var(--coral); }
.profile-menu-card > span:nth-child(2) { flex: 1; }
.profile-menu-card strong, .profile-menu-card small { display: block; }
.profile-menu-card strong { color: var(--ink); font-size: .8rem; }
.profile-menu-card small { color: var(--muted); font-size: .68rem; line-height: 1.4; margin-top: .25rem; }
.profile-menu-card b { color: var(--coral); }
.profile-menu-icon { align-items: center; background: var(--sky); border-radius: 9px; color: var(--ink); display: flex; font-size: 1.25rem; height: 2.5rem; justify-content: center; width: 2.5rem; }
.admin-card .profile-menu-icon { background: #fff0ee; color: var(--coral-dark); }
.profile-note { margin-top: 1rem; }
.profile-note h2 { font-size: 1rem; margin-bottom: .3rem; }
.profile-note p { color: var(--muted); font-size: .76rem; margin: 0; }

.admin-metrics { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.admin-metrics > div { background: var(--ink); border-radius: 13px; color: white; padding: 1rem; }
.admin-metrics strong, .admin-metrics span { display: block; }
.admin-metrics strong { font-size: 1.7rem; }
.admin-metrics span { color: #bdd0d9; font-size: .68rem; margin-top: .2rem; }
.admin-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.admin-panel h2 { font-size: 1rem; }
.member-list { display: grid; gap: .35rem; }
.member-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: .6rem; padding: .65rem 0; }
.member-row > span:nth-child(2) { flex: 1; }
.member-row strong, .member-row small { display: block; }
.member-row strong { color: var(--ink); font-size: .75rem; }
.member-row small { color: var(--muted); font-size: .64rem; margin-top: .12rem; }
.small-avatar { font-size: .8rem; height: 2.1rem; width: 2.1rem; }
.invite-result { background: var(--sky); border-radius: 10px; display: grid; gap: .35rem; margin-top: 1rem; padding: .75rem; }
.invite-result strong { color: var(--ink); font-size: .75rem; }
.invite-result input { border: 1px solid #c7d8dc; border-radius: 7px; color: var(--ink); font-size: .66rem; padding: .5rem; width: 100%; }
.invite-result small { color: var(--muted); font-size: .62rem; }
.admin-reports { margin-bottom: 2rem; }
.report-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 0; }
.report-row h3 { font-size: .88rem; margin: .35rem 0 .15rem; }
.report-row h3 a { text-decoration: none; }
.report-row p, .report-row small { color: var(--muted); display: block; font-size: .68rem; margin: 0; }
.report-actions { align-items: flex-end; display: flex; flex-direction: column; gap: .3rem; }

.auth-card { background: white; border: 1px solid var(--line); border-radius: 18px; margin: 2.5rem auto; max-width: 470px; padding: 2rem; }
.auth-card h1 { font-size: 2.35rem; }
.auth-lead { color: var(--muted); font-size: .86rem; }
.auth-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.auth-form label input:not([type=checkbox]) { margin-top: .05rem; }
.auth-form .validation-message { font-weight: 500; }
.auth-form .validation-summary-errors { color: #b53b3b; font-size: .75rem; }
.auth-footnote { color: var(--muted); font-size: .72rem; margin: 1.2rem 0 0; text-align: center; }
.auth-footnote a { color: var(--coral-dark); font-weight: 750; text-decoration: none; }
.auth-card .eyebrow span { color: var(--ink); }

#blazor-error-ui { background: #fff1d9; bottom: 0; box-shadow: 0 -1px 4px rgba(0, 0, 0, .15); display: none; left: 0; padding: .7rem 1.2rem; position: fixed; right: 0; z-index: 100; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
.blazor-error-boundary { background: #b53b3b; color: white; padding: 1rem; }

@media (max-width: 850px) {
    .hero-section { grid-template-columns: 1fr; min-height: 0; padding: 2.6rem 0 3rem; }
    .controlapps-card { justify-self: center; max-width: 520px; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-gallery, .detail-placeholder { min-height: 300px; }
    .detail-image { max-height: 420px; }
}

@media (max-width: 600px) {
    .public-header, .app-header { padding-left: 1rem; padding-right: 1rem; }
    .public-nav { gap: .7rem; }
    .public-nav a:not(.nav-cta) { display: none; }
    .public-main { padding-left: 1rem; padding-right: 1rem; }
    .public-footer { align-items: flex-start; flex-direction: column; padding-left: 1rem; padding-right: 1rem; }
    .hero-copy h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
    .hero-search { align-items: stretch; flex-wrap: wrap; padding: .55rem; }
    .hero-search > span { align-self: center; padding-left: .35rem; }
    .hero-search input { flex: 1 1 calc(100% - 3rem); }
    .hero-search button { flex: 1 1 100%; }
    .controlapps-card { border-radius: 24px; padding: 1.4rem; }
    .controlapps-card h2 { font-size: 1.55rem; }
    .category-grid { gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-tile { min-height: 90px; padding: .75rem; }
    .listing-grid { grid-template-columns: 1fr; }
    .listing-card-media { height: 170px; }
    .home-callout { align-items: flex-start; flex-direction: column; padding: 1.4rem; }
    .app-content { padding: 1.7rem 1rem 5.5rem; }
    .member-chip { display: none; }
    .explore-heading, .results-heading { align-items: flex-start; flex-direction: column; }
    .explore-heading .secondary-action { align-self: stretch; }
    .explore-search { flex-wrap: wrap; padding: .55rem; }
    .explore-search button { flex: 1 1 100%; }
    .filter-row { margin-bottom: 1.5rem; }
    .detail-lower-grid, .admin-grid, .profile-card-grid { grid-template-columns: 1fr; }
    .detail-gallery, .detail-placeholder { min-height: 250px; }
    .detail-copy h1 { font-size: 2.5rem; }
    .my-listing-row { align-items: start; grid-template-columns: 3rem minmax(0, 1fr); }
    .my-listing-thumb { height: 3rem; width: 3rem; }
    .my-listing-actions { align-items: flex-start; grid-column: 2; }
    .publish-form .type-choice-grid { grid-template-columns: repeat(2, 1fr); }
    .form-two-columns { grid-template-columns: 1fr; }
    .publish-actions { justify-content: stretch; }
    .publish-actions > * { flex: 1; }
    .admin-metrics { gap: .5rem; }
    .admin-metrics > div { padding: .7rem; }
    .admin-metrics strong { font-size: 1.3rem; }
    .admin-metrics span { font-size: .59rem; }
    .report-row { align-items: flex-start; flex-direction: column; }
    .report-actions { align-items: flex-start; flex-direction: row; }
    .auth-card { margin: 1rem 0; padding: 1.35rem; }
    .auth-card h1 { font-size: 2rem; }
}
