/* Profile board → Proposals for members with no web app: Offer Templates gallery + Proposal Viewer (2026-11-12). */
.pmt { --pmt-a: #b608c9; --pmt-b: #3b82f6; --pmt-c: #22d3ee; max-width: 1240px; margin: 0 auto; padding: 8px 0 30px; color: #cbd5e1; font-family: var(--gs-font-body, Inter, system-ui, sans-serif); }
.pmt *, .pmt *::before, .pmt *::after { box-sizing: border-box; }

/* hero */
.pmt-hero { position: relative; overflow: hidden; padding: 34px clamp(20px, 4vw, 44px) 30px; margin: 0 0 22px; border-radius: 26px; text-align: left;
    border: 1px solid rgba(255,255,255,.09);
    background: radial-gradient(640px 320px at 0% 0%, rgba(182,8,201,.28), transparent 70%), radial-gradient(560px 300px at 100% 100%, rgba(34,211,238,.14), transparent 70%), rgba(9,12,20,.82); }
.pmt-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(182,8,201,.35), rgba(59,130,246,.25), rgba(34,211,238,.3), rgba(182,8,201,.35)); filter: blur(50px); opacity: .55; animation: pmtSpin 14s linear infinite; pointer-events: none; }
.pmt-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .68rem/1 var(--gs-font-mono, ui-monospace, monospace); letter-spacing: .2em; text-transform: uppercase; color: #67e8f9; }
.pmt-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pmt-a), var(--pmt-c)); }
.pmt-hero h2 { position: relative; margin: 12px 0 8px !important; color: #fff !important; font: 800 clamp(1.5rem, 3vw, 2.25rem)/1.12 var(--gs-font-heading, var(--gs-font-body, Inter, sans-serif)) !important; letter-spacing: -.02em; max-width: 720px; }
.pmt-hero p { position: relative; margin: 0 !important; max-width: 640px; color: #94a3b8 !important; font-size: .98rem; line-height: 1.6; }
.pmt-steps { position: relative; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 20px 0 0 !important; padding: 0 !important; list-style: none; }
.pmt-steps li { display: inline-flex; align-items: center; gap: 9px; margin: 0 !important; padding: 7px 14px 7px 7px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #e2e8f0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.pmt-steps b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .74rem; color: #fff; background: linear-gradient(135deg, var(--pmt-a), var(--pmt-b)); }

/* gallery */
.pmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.pmt-card { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden; cursor: pointer;
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012)), rgba(11,14,20,.78); border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 24px 50px -34px rgba(0,0,0,.9); transition: transform .25s cubic-bezier(.2,.9,.3,1), border-color .25s, box-shadow .25s;
    animation: pmtRise .55s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.pmt-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); box-shadow: 0 34px 60px -30px rgba(182,8,201,.55); }
.pmt-card:focus-visible { outline: 2px solid var(--pmt-c); outline-offset: 3px; }
.pmt-card.is-active { border-color: transparent; box-shadow: 0 0 0 2px var(--pmt-a), 0 30px 60px -28px rgba(182,8,201,.8); }
.pmt-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, rgba(182,8,201,.4), rgba(59,130,246,.3)); }
.pmt-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.9,.3,1); }
.pmt-card:hover .pmt-card__media img { transform: scale(1.06); }
.pmt-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9,12,20,.85)); }
.pmt-card__badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(9,12,20,.62); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.pmt-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.pmt-card__title { color: #fff; font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.pmt-card__desc { color: #94a3b8; font-size: .86rem; line-height: 1.55; }
.pmt-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.pmt-card__meta > span { padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #cbd5e1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.pmt-card__meta s { color: #64748b; font-weight: 600; }
.pmt-card__meta .is-save { color: #34d399; background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.35); }
.pmt-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pmt-card__cta i { font-style: normal; transition: transform .2s; }
.pmt-card:hover .pmt-card__cta i { transform: translateX(4px); }
.pmt-card [data-pmt-cta-on] { display: none; color: #67e8f9; }
.pmt-card.is-active [data-pmt-cta-on] { display: inline; }
.pmt-card.is-active [data-pmt-cta-idle] { display: none; }

/* viewing: gallery becomes a rail above the viewer */
.pmt.is-viewing .pmt-hero { padding: 18px 22px; margin-bottom: 14px; }
.pmt.is-viewing .pmt-hero p, .pmt.is-viewing .pmt-steps { display: none; }
.pmt.is-viewing .pmt-hero h2 { font-size: 1.2rem !important; margin: 8px 0 0 !important; }
.pmt.is-viewing .pmt-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 4px; }
.pmt.is-viewing .pmt-card { flex-direction: row; animation: none; }
.pmt.is-viewing .pmt-card__media { flex: 0 0 96px; aspect-ratio: auto; }
.pmt.is-viewing .pmt-card__badge, .pmt.is-viewing .pmt-card__desc, .pmt.is-viewing .pmt-card__meta { display: none; }
.pmt.is-viewing .pmt-card__body { padding: 12px 14px; gap: 6px; justify-content: center; }
.pmt.is-viewing .pmt-card__title { font-size: .9rem; }
.pmt.is-viewing .pmt-card__cta { font-size: .66rem; }

/* viewer */
.pmt-viewer { margin-top: 18px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(9,12,20,.85); box-shadow: 0 40px 90px -50px rgba(0,0,0,.9); animation: pmtRise .45s cubic-bezier(.2,.9,.3,1) backwards; scroll-margin-top: calc(var(--gs-header-h, 64px) + 12px); }
.pmt-frame { display: block; width: 100%; height: calc(100vh - var(--gs-header-h, 64px) - 24px); min-height: 560px; border: 0; background: #0b0e14; }
.pmt-viewer[hidden] { display: none; }
.pmt-viewer__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.pmt-viewer__back, .pmt-viewer__full { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; text-decoration: none !important;
    font-size: .78rem; font-weight: 700; color: #e2e8f0 !important; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .2s, border-color .2s; }
.pmt-viewer__back:hover, .pmt-viewer__full:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.pmt-viewer__title { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pmt-viewer__title small { color: #64748b; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pmt-viewer__title b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: .98rem; }
.pmt-viewer__stage { position: relative; }
.pmt-viewer__stage .psoo-proposal-body-inner { padding: 0; }
.pmt-viewer__stage .psoo-proposal-frame-wrap { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.pmt-viewer__stage .psoo-proposal-open-full { display: none !important; }
.pmt-skel { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column; gap: 14px; padding: 28px; background: #0b0e14; }
.pmt-viewer.is-loading .pmt-skel { display: flex; }
.pmt-skel span { display: block; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: pmtShimmer 1.3s linear infinite; }
.pmt-skel span:nth-child(1) { height: 52%; }
.pmt-skel span:nth-child(2) { height: 22px; width: 60%; }
.pmt-skel span:nth-child(3) { height: 22px; width: 40%; }
.pmt-empty { padding: 34px 20px; border-radius: 22px; text-align: center; color: #94a3b8; background: rgba(11,14,20,.6); border: 1px dashed rgba(255,255,255,.14); }

@keyframes pmtRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pmtSpin { to { transform: rotate(360deg); } }
@keyframes pmtShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pmt-card, .pmt-viewer, .pmt-hero::after, .pmt-skel span { animation: none !important; } }

@media (max-width: 700px) {
    .pmt-hero { padding: 24px 18px 22px; border-radius: 20px; }
    .pmt-grid { grid-template-columns: 1fr; gap: 14px; }
    .pmt.is-viewing .pmt-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .pmt.is-viewing .pmt-grid::-webkit-scrollbar { display: none; }
    .pmt.is-viewing .pmt-card { flex: 0 0 240px; scroll-snap-align: start; }
    .pmt.is-viewing .pmt-card__media { flex-basis: 76px; }
    .pmt.is-viewing .pmt-card [data-pmt-cta-idle] { display: none; }
    .pmt-viewer { border-radius: 18px; }
    .pmt-viewer__bar { flex-wrap: wrap; gap: 8px; padding: 10px; }
    .pmt-viewer__title { order: -1; flex: 1 1 100%; }
    .pmt-viewer__back, .pmt-viewer__full { flex: 1; justify-content: center; }
}

/* Public showcase (Project Consultant application page): no hero, earnings on each card (2026-11-12) */
.pmt--bare { padding-top: 0; }
.pmt-card__earn { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(52,211,153,.12), rgba(34,211,238,.08)); border: 1px solid rgba(52,211,153,.32); }
.pmt-card__earn small { color: #6ee7b7; font: 800 .66rem/1 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.pmt-card__earn b { color: #fff; font-size: .98rem; font-weight: 800; white-space: nowrap; }
.pmt .pmt-card .pmt-card__media img, .pmt .pmt-card .pmt-card__media video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; }
@media (min-width: 761px) { .pmt--bare:not(.is-viewing) .pmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.pmt-card:hover .pmt-card__media video { transform: scale(1.06); }
.pmt-card__media video { display: block; transition: transform .6s cubic-bezier(.2,.9,.3,1); pointer-events: none; }

/* Consultant earn panel (owner 2026-11-13): assigned + onboarding commission, multi-tier note */
.pmt-card__earn { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; margin-top: 12px; padding: 14px 14px 12px; border-radius: 16px; background: radial-gradient(320px 120px at 0% 0%, rgba(52,211,153,.16), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(52,211,153,.3); }
.pmt-card__earn .pmt-earn__head { color: #6ee7b7; font: 800 .66rem/1 Inter, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.pmt-earn__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(5,8,16,.45); border: 1px solid rgba(255,255,255,.06); }
.pmt-earn__dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.pmt-earn__dot--b { background: #e879f9; box-shadow: 0 0 10px #e879f9; }
.pmt-earn__row > span { display: flex; flex-direction: column; min-width: 0; }
.pmt-earn__row > span b { color: #fff; font-size: .84rem; font-weight: 800; line-height: 1.25; }
.pmt-earn__row > span em { font-style: normal; color: #94a3b8; font-size: .74rem; line-height: 1.3; }
.pmt-earn__row strong { color: #fff; font-size: .92rem; font-weight: 800; white-space: nowrap; }
.pmt-earn__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.pmt-earn__total span { color: #cbd5e1; font-size: .76rem; font-weight: 700; }
.pmt-earn__total b { font-size: 1.08rem; font-weight: 900; white-space: nowrap; background: linear-gradient(90deg, #6ee7b7, #67e8f9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pmt-earn__more { color: #94a3b8; font-size: .74rem; line-height: 1.45; padding: 0 4px; }
.pmt-earn__pill { display: none; }

/* Compact strip while a proposal is open (owner 2026-11-13): no truncation, one earn pill */
.pmt.is-viewing .pmt-grid { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(182,8,201,.5) transparent; }
.pmt.is-viewing .pmt-grid::-webkit-scrollbar { height: 6px; }
.pmt.is-viewing .pmt-grid::-webkit-scrollbar-thumb { background: rgba(182,8,201,.5); border-radius: 6px; }
.pmt.is-viewing .pmt-card { flex: 1 0 250px; max-width: 340px; flex-direction: row; align-items: stretch; min-height: 0; scroll-snap-align: start; border-radius: 18px; }
.pmt.is-viewing .pmt-card:hover { transform: translateY(-2px); }
.pmt.is-viewing .pmt-card__media { position: relative; flex: 0 0 80px; aspect-ratio: auto; min-height: 100%; }
.pmt.is-viewing .pmt-card__body { flex: 1 1 auto; min-width: 0; padding: 12px 14px; gap: 8px; justify-content: center; }
.pmt.is-viewing .pmt-card__title { font-size: .88rem; line-height: 1.3; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pmt.is-viewing .pmt-card__earn { margin: 0; padding: 0; background: none; border: 0; }
.pmt.is-viewing .pmt-card__earn > :not(.pmt-earn__pill) { display: none; }
.pmt.is-viewing .pmt-earn__pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #6ee7b7; white-space: nowrap; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.32); }
.pmt.is-viewing .pmt-card__cta { font-size: .66rem; letter-spacing: .14em; }
.pmt.is-viewing .pmt-card.is-active .pmt-earn__pill { color: #05070a; background: #6ee7b7; border-color: #6ee7b7; }
@media (max-width: 760px) {
    .pmt.is-viewing .pmt-card { flex: 0 0 260px; }
    .pmt.is-viewing .pmt-card__media { flex-basis: 72px; }
    .pmt-earn__row { grid-template-columns: 10px minmax(0, 1fr); }
    .pmt-earn__row strong { grid-column: 2; }
}

/* Phones (owner 2026-11-13): the apply page nests the viewer in padded cards, which left the proposal ~280px
   wide; let it use the screen width minus a small gutter. */
@media (max-width: 640px) {
    .pmt--bare .pmt-viewer { width: calc(100vw - 36px); max-width: none; margin-left: calc((100% - (100vw - 36px)) / 2); }
    .pmt--bare .pmt-viewer__bar { padding: 10px 12px; }
}
