.hp-submit-job-wrap,.hp-painter-dashboard{max-width:1000px;margin:30px auto}.hp-submit-job-form,.hp-panel{background:#fff;border:1px solid #e2e2e2;border-radius:10px;padding:24px;box-sizing:border-box}.hp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hp-field{margin-bottom:18px}.hp-field label{display:block;font-weight:600;margin-bottom:7px}.hp-field input,.hp-field select,.hp-field textarea,.hp-login-panel input[type=text],.hp-login-panel input[type=password]{width:100%;padding:12px;border:1px solid #cfcfcf;border-radius:6px;box-sizing:border-box}.hp-field small{display:block;margin-top:6px}.hp-submit-button,.hp-secondary-button,.hp-login-panel input[type=submit]{display:inline-block;border:0;border-radius:6px;padding:13px 22px;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.2}.hp-secondary-button{border:1px solid #cfcfcf;background:#fff}.hp-inline-button{margin-top:8px}.hp-message{padding:14px 16px;border-radius:6px;margin-bottom:18px}.hp-message-success{background:#edfaef;border:1px solid #70b979}.hp-message-error{background:#fff1f1;border:1px solid #d77}.hp-dashboard-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.hp-dashboard-header h2,.hp-dashboard-header p{margin:0 0 6px}.hp-dashboard-section{margin-top:32px}.hp-job-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hp-job-card{background:#fff;border:1px solid #e2e2e2;border-radius:10px;padding:20px;box-sizing:border-box}.hp-job-card h4{font-size:20px;margin:12px 0}.hp-job-card p{margin:7px 0}.hp-job-topline{display:flex;justify-content:space-between;align-items:center;gap:12px}.hp-job-number{font-weight:700}.hp-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#edf7ee;font-size:13px;font-weight:600}.hp-badge-muted{background:#f0f0f0}.hp-job-meta{display:flex;flex-wrap:wrap;gap:12px 24px;margin:18px 0}.hp-job-description{line-height:1.7}.hp-job-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.hp-job-gallery img{display:block;width:100%;height:180px;object-fit:cover;border-radius:7px}.hp-table-wrap{overflow-x:auto}.hp-public-table{width:100%;border-collapse:collapse;background:#fff}.hp-public-table th,.hp-public-table td{padding:12px;border:1px solid #e2e2e2;text-align:left;vertical-align:top}.hp-public-table th{font-weight:700}.hp-login-panel{max-width:520px;margin:0 auto}.hp-login-panel p{margin-bottom:14px}.hp-login-panel label{display:block;font-weight:600;margin-bottom:6px}.hp-login-panel .login-remember label{font-weight:400}.hp-login-panel .login-submit{margin-bottom:0}@media(max-width:700px){.hp-grid,.hp-job-cards{grid-template-columns:1fr}.hp-submit-job-form,.hp-panel,.hp-job-card{padding:18px}.hp-dashboard-header{align-items:flex-start;flex-direction:column}.hp-job-gallery{grid-template-columns:1fr 1fr}.hp-job-gallery img{height:140px}}

/* Customer Portal v0.3.1 */
.hp-customer-portal { max-width: 980px; margin: 40px auto; }
.hp-portal-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:24px; }
.hp-portal-header h2 { margin:4px 0 2px; }
.hp-eyebrow { display:block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.65; }
.hp-job-state { display:inline-flex; padding:8px 12px; border-radius:999px; background:#f0f0f1; font-weight:700; }
.hp-job-state-assigned { background:#e7f7ed; }
.hp-progress { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:0 0 24px; }
.hp-progress-step { padding:10px; border-radius:8px; background:#f0f0f1; text-align:center; font-size:14px; }
.hp-progress-step.is-complete { background:#e7f7ed; font-weight:700; }
.hp-progress-step.is-current { background:#fff4d6; }
.hp-job-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:28px; }
.hp-job-summary > div, .hp-selected-grid > div { background:#fff; border:1px solid #e1e1e1; border-radius:10px; padding:16px; }
.hp-job-summary strong, .hp-selected-grid strong { display:block; margin-bottom:5px; font-size:13px; opacity:.7; }
.hp-section-title { margin:28px 0 14px; }
.hp-offers-grid { display:grid; gap:18px; }
.hp-offer-card, .hp-selected-card, .hp-empty-state { background:#fff; border:1px solid #dedede; border-radius:14px; padding:22px; box-shadow:0 8px 24px rgba(0,0,0,.05); }
.hp-offer-top { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.hp-offer-top h3 { margin:4px 0 0; }
.hp-offer-price { font-size:24px; font-weight:800; white-space:nowrap; }
.hp-offer-meta { margin:12px 0; font-weight:600; }
.hp-button-full { width:100%; margin-top:14px; }
.hp-selected-card { border-width:2px; }
.hp-selected-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:18px 0; }
.hp-message { padding:14px 16px; border-radius:10px; margin-bottom:20px; }
.hp-message-success { background:#e7f7ed; }
.hp-message-error { background:#fde8e8; }
@media (max-width:700px) {
    .hp-portal-header, .hp-offer-top { display:block; }
    .hp-job-state { margin-top:12px; }
    .hp-progress { grid-template-columns:1fr 1fr; }
    .hp-job-summary, .hp-selected-grid { grid-template-columns:1fr; }
    .hp-offer-price { margin-top:10px; }
}


/* v0.4.0 Reviews */
.hp-complete-form { margin-top: 24px; }
.hp-review-card { margin-top: 28px; padding: 28px; border: 1px solid #e2e4e7; border-radius: 14px; background: #fff; }
.hp-review-card h3 { margin-top: 6px; }
.hp-review-card textarea { width: 100%; box-sizing: border-box; margin: 10px 0 18px; padding: 12px; border: 1px solid #c3c4c7; border-radius: 8px; }
.hp-rating-summary { margin: 8px 0 14px; font-weight: 600; }
.hp-review-stars { margin: 8px 0 12px; font-size: 30px; line-height: 1; letter-spacing: 2px; color: #b46900; }
.hp-rating-field { margin: 18px 0; padding: 0; border: 0; }
.hp-rating-field legend { margin-bottom: 8px; font-weight: 700; }
.hp-rating-options { display: inline-flex; flex-direction: row-reverse; gap: 5px; }
.hp-rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.hp-rating-options label { cursor: pointer; font-size: 38px; line-height: 1; color: #c3c4c7; transition: color .15s ease, transform .15s ease; }
.hp-rating-options label:hover,
.hp-rating-options label:hover ~ label,
.hp-rating-options input:checked ~ label { color: #b46900; }
.hp-rating-options label:hover { transform: scale(1.08); }

/* v0.4.1 Stability & UX polish */
.hp-public-wrap { overflow-wrap: anywhere; }
.hp-public-wrap a:focus-visible,
.hp-public-wrap button:focus-visible,
.hp-public-wrap input:focus-visible,
.hp-public-wrap textarea:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
.hp-progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
}
.hp-progress-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,.08);
    font-size: 12px;
    font-weight: 800;
}
.hp-progress-step.is-complete .hp-progress-number { background: rgba(0,100,40,.14); }
.hp-progress-step.is-current { box-shadow: inset 0 0 0 2px rgba(180,105,0,.25); font-weight: 700; }
.hp-message-muted { background: #f0f0f1; color: #50575e; margin: 14px 0 0; }
.hp-selected-grid a { word-break: break-word; }
.hp-button { cursor: pointer; }
.hp-button[disabled] { cursor: not-allowed; opacity: .6; }
@media (max-width: 700px) {
    .hp-customer-portal { margin: 22px auto; }
    .hp-progress { grid-template-columns: 1fr; }
    .hp-progress-step { justify-content: flex-start; text-align: left; }
    .hp-offer-card, .hp-selected-card, .hp-review-card { padding: 18px; }
    .hp-review-stars { font-size: 26px; }
    .hp-rating-options label { font-size: 34px; }
}

/* v0.5.0 Public painter profiles */
.hp-directory-header { margin-bottom: 24px; }
.hp-directory-header h2 { margin: 5px 0 8px; }
.hp-painter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-painter-card { background: #fff; border: 1px solid #dedede; border-radius: 14px; padding: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.hp-painter-card-top { display: flex; align-items: center; gap: 14px; }
.hp-painter-card h3 { margin: 0 0 5px; }
.hp-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #f0f0f1; font-size: 22px; font-weight: 800; }
.hp-avatar-large { width: 86px; height: 86px; font-size: 36px; }
.hp-verified-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e7f7ed; color: #075b24; font-size: 13px; font-weight: 700; }
.hp-painter-facts { display: grid; gap: 6px; margin: 18px 0 10px; }
.hp-rating-empty { color: #646970; }
.hp-profile-hero { display: flex; align-items: center; gap: 20px; padding: 26px; margin: 16px 0 22px; border: 1px solid #dedede; border-radius: 16px; background: #fff; }
.hp-profile-heading h1 { margin: 4px 0 8px; }
.hp-profile-rating { margin-top: 13px; }
.hp-stars { color: #b46900; letter-spacing: 1px; }
.hp-profile-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.hp-profile-layout .hp-panel { margin-bottom: 22px; }
.hp-profile-description { line-height: 1.7; }
.hp-profile-sidebar { position: sticky; top: 24px; }
.hp-profile-sidebar dl { margin: 0; }
.hp-profile-sidebar dl div { padding: 12px 0; border-bottom: 1px solid #eee; }
.hp-profile-sidebar dt { font-size: 13px; font-weight: 700; color: #646970; }
.hp-profile-sidebar dd { margin: 4px 0 0; }
.hp-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hp-profile-links a { padding: 8px 11px; border: 1px solid #c3c4c7; border-radius: 8px; text-decoration: none; }
.hp-privacy-note { margin-top: 20px; padding: 12px; border-radius: 8px; background: #f6f7f7; font-size: 13px; }
.hp-public-review { padding: 18px 0; border-bottom: 1px solid #eee; }
.hp-public-review:last-child { border-bottom: 0; }
.hp-public-review p { margin: 10px 0; }
.hp-public-review small { color: #646970; }
.hp-painter-name-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 900px) {
    .hp-painter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-profile-layout { grid-template-columns: 1fr; }
    .hp-profile-sidebar { position: static; }
}
@media (max-width: 600px) {
    .hp-painter-grid { grid-template-columns: 1fr; }
    .hp-profile-hero { align-items: flex-start; padding: 20px; }
    .hp-avatar-large { width: 64px; height: 64px; font-size: 27px; }
}


/* v0.5.6 Pilot Safety */
.hp-upload-progress { margin-top:18px; padding:16px; border:1px solid #dcdcde; border-radius:10px; background:#fff; }
.hp-upload-progress-track { height:12px; overflow:hidden; border-radius:999px; background:#e5e5e5; }
.hp-upload-progress-bar { width:0; height:100%; background:currentColor; transition:width .15s linear; }
.hp-upload-progress-text { margin-top:10px; font-weight:700; }
.hp-submit-job-form.is-submitting { opacity:.92; }
.hp-submit-job-form.is-submitting input,
.hp-submit-job-form.is-submitting textarea,
.hp-submit-job-form.is-submitting select { pointer-events:none; }

/* v0.5.7 Gallery & Directory Polish */
.hp-painter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hp-painter-card { display: flex; flex-direction: column; min-height: 100%; padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hp-painter-card:hover { transform: translateY(-3px); border-color: #c7c7c7; box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.hp-painter-card > p { flex-grow: 1; line-height: 1.65; }
.hp-painter-card .hp-button-full { margin-top: auto; }
.hp-pagination { margin-top: 32px; }
.hp-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-pagination a, .hp-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 7px 12px; border: 1px solid #d5d7da; border-radius: 9px; background: #fff; color: inherit; text-decoration: none; box-sizing: border-box; }
.hp-pagination .current { border-color: currentColor; font-weight: 800; box-shadow: inset 0 0 0 1px currentColor; }
.hp-pagination a:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,.08); }
.hp-lightbox-link { display: block; position: relative; overflow: hidden; border-radius: 8px; cursor: zoom-in; }
.hp-lightbox-link::after { content: '⌕'; position: absolute; right: 9px; bottom: 9px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,0,0,.68); color: #fff; font-size: 22px; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.hp-lightbox-link:hover::after, .hp-lightbox-link:focus-visible::after { opacity: 1; transform: translateY(0); }
.hp-lightbox-link img { transition: transform .22s ease; }
.hp-lightbox-link:hover img { transform: scale(1.025); }
.hp-lightbox { position: fixed; inset: 0; z-index: 999999; display: none; align-items: center; justify-content: center; padding: 34px; background: rgba(0,0,0,.88); box-sizing: border-box; }
.hp-lightbox.is-open { display: flex; }
.hp-lightbox-image { display: block; max-width: min(1200px, 94vw); max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.hp-lightbox-close { position: fixed; top: 16px; right: 20px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 34px; line-height: 1; cursor: pointer; }
.hp-lightbox-hint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; font-size: 13px; text-align: center; }
body.hp-lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
    .hp-painter-grid { grid-template-columns: 1fr; gap: 18px; }
    .hp-painter-card { padding: 20px; }
    .hp-lightbox { padding: 16px; }
    .hp-lightbox-image { max-width: 96vw; max-height: 82vh; }
    .hp-lightbox-hint { width: 90%; }
}
