/*
 * SHW Job Board — Main Stylesheet
 * Colors loaded via inline CSS vars from PHP config (SHW_Public::inject_css_vars).
 * The :root defaults below are overridden at runtime — they are safe fallbacks only.
 * Do not use brand-specific hex values here.
 */

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --shw-primary:    #333333;
    --shw-secondary:  #999999;
    --shw-accent:     #555555;
    --shw-bg:         #F8F8F8;
    --shw-text:       #1A1A1A;
    --shw-border:     #DACED5;
    --shw-muted:      #6B7280;
    --shw-white:      #FFFFFF;
    --shw-success:    #389E0D;
    --shw-warning:    #FAAD14;
    --shw-error:      #CF1322;
    --shw-radius:     6px;
    --shw-shadow:     0 2px 8px rgba(0,0,0,0.08);
    --shw-shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
    --shw-font-head:  'Playfair Display', Georgia, serif;
    --shw-font-body:  'Inter', -apple-system, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
.shw-dashboard-wrap,
.shw-browse-wrap,
.shw-auth-wrap,
.shw-shop-profile-wrap {
    font-family: var(--shw-font-body);
    color: var(--shw-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
.shw-dashboard-wrap h1,
.shw-auth-card h1,
.shw-auth-card h2,
.shw-modal-body h2,
.shw-form-section h3,
.shw-tab-content h3 {
    font-family: var(--shw-font-head);
    color: var(--shw-primary);
    margin-top: 0;
}

/* ─── Form Elements ──────────────────────────────────────────────────────── */
.shw-form .shw-field {
    margin-bottom: 16px;
}
.shw-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--shw-text);
    margin-bottom: 5px;
}
.shw-form input[type="text"],
.shw-form input[type="email"],
.shw-form input[type="password"],
.shw-form input[type="number"],
.shw-form input[type="date"],
.shw-form input[type="url"],
.shw-form select,
.shw-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--shw-border);
    border-radius: var(--shw-radius);
    font-family: var(--shw-font-body);
    font-size: 14px;
    color: var(--shw-text);
    background: var(--shw-white);
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.shw-form input:focus,
.shw-form select:focus,
.shw-form textarea:focus {
    outline: none;
    border-color: var(--shw-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shw-primary) 10%, transparent);
}
.shw-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.shw-field-row--spread {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shw-required { color: var(--shw-error); }
.shw-hint { font-size: 11px; font-weight: 400; color: var(--shw-muted); }
.shw-char-count { font-size: 11px; color: var(--shw-muted); text-align: right; margin-top: 3px; }
.shw-form-section { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--shw-border); }
.shw-form-section:last-of-type { border-bottom: none; }
.shw-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.shw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--shw-radius);
    font-family: var(--shw-font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.shw-btn-primary { background: var(--shw-primary); color: var(--shw-secondary); border-color: var(--shw-primary); }
.shw-btn-primary:hover { background: color-mix(in srgb, var(--shw-primary) 80%, #000); border-color: color-mix(in srgb, var(--shw-primary) 80%, #000); color: var(--shw-secondary); }
.shw-btn-outline { background: transparent; color: var(--shw-primary); border-color: var(--shw-primary); }
.shw-btn-outline:hover { background: var(--shw-primary); color: var(--shw-white); }
.shw-btn-danger { background: transparent; color: var(--shw-error); border-color: var(--shw-error); }
.shw-btn-danger:hover { background: var(--shw-error); color: var(--shw-white); }
.shw-btn-success { background: var(--shw-success); color: var(--shw-white); border-color: var(--shw-success); }
.shw-btn-full { width: 100%; }
.shw-btn-sm { padding: 6px 14px; font-size: 12px; }
.shw-btn-xs { padding: 4px 10px; font-size: 11px; }
.shw-btn-icon { padding: 6px 10px; background: transparent; border-color: transparent; }
.shw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Feedback Boxes ──────────────────────────────────────────────────────── */
.shw-error-box {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: var(--shw-radius);
    padding: 12px 16px;
    color: var(--shw-error);
    margin-bottom: 16px;
    font-size: 14px;
}
.shw-error-box p { margin: 0 0 4px; }
.shw-success-box {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: var(--shw-radius);
    padding: 12px 16px;
    color: var(--shw-success);
    margin-bottom: 16px;
    font-size: 14px;
}
.shw-loading { text-align: center; color: var(--shw-muted); padding: 40px; font-style: italic; }
.shw-empty { text-align: center; padding: 40px; color: var(--shw-muted); }
.shw-empty p { font-size: 15px; }

/* ─── Auth Pages ──────────────────────────────────────────────────────────── */
.shw-auth-wrap { display: flex; gap: 40px; align-items: flex-start; }
.shw-auth-wrap--center { justify-content: center; }
.shw-auth-card {
    background: var(--shw-white);
    border-radius: 10px;
    box-shadow: var(--shw-shadow-lg);
    padding: 40px;
    flex: 1;
    max-width: 540px;
}
.shw-auth-card--wide { max-width: 600px; }
.shw-auth-header { margin-bottom: 28px; }
.shw-auth-header h1 { font-size: 24px; margin-bottom: 8px; }
.shw-auth-header p { color: var(--shw-muted); font-size: 14px; margin: 0; }
.shw-auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--shw-muted); }
.shw-auth-footer--split { display: flex; gap: 12px; }
.shw-auth-footer--split .shw-btn { flex: 1; }
.shw-auth-divider { text-align: center; margin: 20px 0; font-size: 13px; color: var(--shw-muted); position: relative; }
.shw-auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--shw-border); z-index: 0; }
.shw-auth-divider span, .shw-auth-divider { background: var(--shw-white); padding: 0 12px; position: relative; z-index: 1; }
.shw-auth-benefits { background: var(--shw-bg); border-radius: 10px; padding: 32px; flex: 0 0 280px; }
.shw-auth-benefits h3 { color: var(--shw-primary); font-family: var(--shw-font-head); }
.shw-auth-benefits ul { list-style: none; padding: 0; margin: 0; }
.shw-auth-benefits li { padding: 8px 0; border-bottom: 1px solid var(--shw-border); font-size: 14px; }
.shw-legal { font-size: 11px; color: var(--shw-muted); text-align: center; margin-top: 16px; }
.shw-legal a { color: var(--shw-primary); }

/* ─── Step Registration ───────────────────────────────────────────────────── */
.shw-steps { display: flex; align-items: center; margin-bottom: 32px; }
.shw-step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--shw-muted); }
.shw-step.active { color: var(--shw-primary); }
.shw-step.done { color: var(--shw-success); }
.shw-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font-size: 12px; }
.shw-step.done .shw-step-num::before { content: '✓'; }
.shw-step.done .shw-step-num span { display: none; }
.shw-step-line { flex: 1; height: 1px; background: var(--shw-border); margin: 0 8px; }
.shw-sub { color: var(--shw-muted); font-size: 14px; margin-bottom: 24px; }

/* ─── Radio cards ─────────────────────────────────────────────────────────── */
.shw-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.shw-radio-card input[type="radio"] { display: none; }
.shw-radio-label {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--shw-border);
    border-radius: var(--shw-radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.shw-radio-card input:checked + .shw-radio-label {
    border-color: var(--shw-primary);
    background: var(--shw-primary);
    color: var(--shw-white);
}

/* ─── Specialty Tags ──────────────────────────────────────────────────────── */
.shw-specialty-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.shw-specialty-tag { display: inline-block; cursor: pointer; }
.shw-specialty-tag input[type="checkbox"] { display: none; }
.shw-specialty-tag span,
.shw-specialty-tag {
    padding: 6px 12px;
    border: 1.5px solid var(--shw-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--shw-text);
    transition: all 0.15s;
}
.shw-specialty-tag input:checked ~ *,
.shw-specialty-tag:has(input:checked) {
    border-color: var(--shw-primary);
    background: var(--shw-primary);
    color: var(--shw-white);
}
.shw-specialty-grid--sm .shw-specialty-tag { font-size: 11px; padding: 4px 10px; }

/* ─── Tags & Badges ──────────────────────────────────────────────────────── */
.shw-tag {
    display: inline-block;
    background: var(--shw-bg);
    color: var(--shw-primary);
    border: 1px solid var(--shw-border);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.shw-tag--location { background: var(--shw-primary); color: var(--shw-white); border-color: var(--shw-primary); }
.shw-spec-tag { background: color-mix(in srgb, var(--shw-secondary) 12%, transparent); color: var(--shw-primary); border: 1px solid color-mix(in srgb, var(--shw-secondary) 30%, transparent); padding: 2px 8px; border-radius: 20px; font-size: 11px; display: inline-block; }
.shw-spec-tag--sm { font-size: 10px; padding: 2px 6px; }
.shw-spec-tag--more { background: var(--shw-bg); }
.shw-verified-badge { background: var(--shw-success); color: var(--shw-white); padding: 1px 6px; border-radius: 3px; font-size: 10px; }
.shw-featured-badge { background: var(--shw-secondary); color: var(--shw-primary); padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.shw-badge { background: var(--shw-accent); color: var(--shw-white); border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ─── Tabs ────────────────────────────────────────────────────────────────── */
.shw-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--shw-border); margin-bottom: 24px; flex-wrap: wrap; }
.shw-tab { padding: 12px 20px; font-size: 13px; font-weight: 600; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--shw-muted); cursor: pointer; margin-bottom: -2px; transition: all 0.15s; }
.shw-tab:hover { color: var(--shw-primary); }
.shw-tab.active { color: var(--shw-primary); border-bottom-color: var(--shw-primary); }
.shw-tab-content { display: none; }
.shw-tab-content.active { display: block; }

/* ─── Dashboard Header ────────────────────────────────────────────────────── */
.shw-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.shw-dashboard-header h1 { font-size: 28px; margin-bottom: 4px; }
.shw-dashboard-tier { font-size: 13px; color: var(--shw-muted); margin: 0; }
.shw-dashboard-header-actions { display: flex; gap: 10px; }
.shw-dashboard-banner { background: linear-gradient(135deg, var(--shw-primary), #2c5a73); color: var(--shw-white); border-radius: 10px; padding: 28px 32px; margin-bottom: 24px; }
.shw-dashboard-banner h2 { color: var(--shw-secondary); font-family: var(--shw-font-head); margin: 0 0 8px; }
.shw-dashboard-banner p { margin: 0 0 20px; opacity: 0.9; }

/* ─── Metric Cards ────────────────────────────────────────────────────────── */
.shw-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.shw-metric-card { background: var(--shw-white); border-left: 3px solid var(--shw-secondary); border-radius: var(--shw-radius); padding: 20px; box-shadow: var(--shw-shadow); }
.shw-metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--shw-muted); margin-bottom: 6px; }
.shw-metric-value { font-size: 28px; font-weight: 800; color: var(--shw-primary); font-family: var(--shw-font-head); }
.shw-metric-sub { font-size: 12px; margin-top: 4px; }

/* ─── Browse Layout ───────────────────────────────────────────────────────── */
.shw-browse-wrap { display: flex; gap: 24px; align-items: flex-start; }
.shw-filters-panel { width: 240px; flex-shrink: 0; background: var(--shw-white); border-radius: var(--shw-radius); padding: 20px; box-shadow: var(--shw-shadow); position: sticky; top: 80px; }
.shw-filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.shw-filters-header h3 { margin: 0; font-size: 14px; color: var(--shw-primary); }
.shw-filters-reset { background: transparent; border: none; color: var(--shw-muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.shw-filter-group { margin-bottom: 16px; }
.shw-filter-group label { font-size: 12px; font-weight: 600; color: var(--shw-text); margin-bottom: 6px; display: block; }
.shw-filter-input { width: 100%; padding: 7px 10px; border: 1.5px solid var(--shw-border); border-radius: var(--shw-radius); font-size: 13px; box-sizing: border-box; }
.shw-filter-checks { display: flex; flex-direction: column; gap: 6px; }
.shw-filter-checks label { font-weight: 400; font-size: 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.shw-filter-checks--scroll { max-height: 160px; overflow-y: auto; }
.shw-listings-main, .shw-candidates-main { flex: 1; min-width: 0; }
.shw-listings-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.shw-listings-count { font-size: 14px; color: var(--shw-muted); }
.shw-mobile-filter-toggle { display: none; }

/* ─── Listing Cards ───────────────────────────────────────────────────────── */
.shw-listings-grid { display: flex; flex-direction: column; gap: 12px; }
.shw-listing-card { background: var(--shw-white); border-radius: var(--shw-radius); padding: 20px; box-shadow: var(--shw-shadow); border: 1px solid var(--shw-border); transition: box-shadow 0.15s; }
.shw-listing-card:hover { box-shadow: var(--shw-shadow-lg); }
.shw-listing-card--featured { border-left: 3px solid var(--shw-secondary); }
.shw-listing-card-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; position: relative; }
.shw-shop-logo { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.shw-shop-logo-placeholder { width: 48px; height: 48px; background: var(--shw-bg); border-radius: 6px; flex-shrink: 0; }
.shw-listing-title { font-size: 17px; font-weight: 700; color: var(--shw-primary); margin: 0 0 2px; }
.shw-shop-name { font-size: 13px; color: var(--shw-muted); margin: 0; }
.shw-listing-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.shw-listing-comp { font-size: 16px; font-weight: 700; color: var(--shw-primary); margin-bottom: 8px; }
.shw-listing-specialties { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.shw-listing-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--shw-border); }
.shw-listing-date { font-size: 12px; color: var(--shw-muted); }

/* Listing rows (for dashboard) */
.shw-listing-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--shw-white); border: 1px solid var(--shw-border); border-radius: var(--shw-radius); margin-bottom: 8px; }
.shw-listing-row--expiring { border-left: 3px solid var(--shw-warning); }
.shw-listing-row-info h4 { margin: 0 0 4px; font-size: 15px; color: var(--shw-primary); }
.shw-listing-row-info p { margin: 0 0 4px; font-size: 13px; color: var(--shw-muted); }
.shw-listing-stats { display: flex; gap: 16px; }
.shw-listing-stats span { font-size: 12px; color: var(--shw-muted); }
.shw-listing-row-actions { display: flex; gap: 8px; }
.shw-tab-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.shw-tab-toolbar h3 { margin: 0; }

/* ─── Candidate Cards ─────────────────────────────────────────────────────── */
.shw-candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shw-candidate-card { background: var(--shw-white); border-radius: var(--shw-radius); padding: 16px; box-shadow: var(--shw-shadow); border: 1px solid var(--shw-border); display: flex; flex-direction: column; gap: 10px; }
.shw-ccard-photo-wrap { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto; }
.shw-ccard-photo { width: 100%; height: 100%; object-fit: cover; }
.shw-ccard-photo-placeholder { width: 64px; height: 64px; background: var(--shw-bg); border-radius: 50%; }
.shw-blurred img, .shw-blurred .shw-ccard-photo { filter: blur(12px); }
.shw-blur-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--shw-primary) 40%, transparent); border-radius: 50%; }
.shw-blur-overlay p { color: var(--shw-white); font-size: 10px; text-align: center; margin: 0; }
.shw-ccard-info { flex: 1; }
.shw-ccard-info h4 { margin: 0 0 4px; font-size: 15px; color: var(--shw-primary); }
.shw-ccard-location, .shw-ccard-detail, .shw-ccard-arrangement { font-size: 12px; color: var(--shw-muted); margin: 0 0 3px; }
.shw-ccard-bio { font-size: 12px; color: var(--shw-text); margin: 6px 0; line-height: 1.5; }
.shw-ccard-specs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.shw-ccard-contact-info { font-size: 12px; color: var(--shw-primary); margin-top: 6px; }
.shw-ccard-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.shw-ccard-completeness { margin-top: 4px; }
.shw-comp-bar { height: 3px; background: var(--shw-border); border-radius: 2px; }
.shw-comp-fill { height: 100%; background: var(--shw-success); border-radius: 2px; transition: width 0.3s; }

/* ─── Profile Completeness (candidate dashboard) ─────────────────────────── */
.shw-dashboard-header-left { display: flex; gap: 16px; align-items: center; }
.shw-cand-photo-wrap { position: relative; width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; }
.shw-cand-photo-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.shw-cand-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--shw-bg); }
.shw-photo-upload-btn { position: absolute; bottom: 0; right: 0; background: var(--shw-primary); color: var(--shw-white); border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.shw-completeness-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.shw-completeness-track { height: 8px; width: 200px; background: var(--shw-border); border-radius: 4px; overflow: hidden; }
.shw-completeness-fill { height: 100%; background: var(--shw-success); border-radius: 4px; transition: width 0.4s; }
.shw-completeness-tip { font-size: 12px; color: var(--shw-warning); margin: 4px 0 0; }

/* ─── Portfolio ───────────────────────────────────────────────────────────── */
.shw-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.shw-portfolio-item { position: relative; border-radius: var(--shw-radius); overflow: hidden; aspect-ratio: 1; }
.shw-portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.shw-portfolio-delete { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.6); color: var(--shw-white); border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.shw-upload-area { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; border: 2px dashed var(--shw-border); border-radius: var(--shw-radius); cursor: pointer; color: var(--shw-muted); font-size: 13px; transition: border-color 0.15s; }
.shw-upload-area:hover { border-color: var(--shw-primary); }
.shw-upload-icon { font-size: 28px; }

/* ─── Kanban ──────────────────────────────────────────────────────────────── */
.shw-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.shw-kanban-col { flex: 0 0 200px; background: var(--shw-bg); border-radius: var(--shw-radius); padding: 12px; }
.shw-kanban-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--shw-muted); margin: 0 0 12px; display: flex; align-items: center; gap: 6px; }
.shw-col-count { background: var(--shw-border); border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.shw-kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.shw-kanban-card { background: var(--shw-white); border-radius: 4px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.shw-kcard-header { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.shw-kcard-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.shw-kcard-photo-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--shw-bg); }
.shw-kcard-name { font-size: 12px; font-weight: 600; margin: 0; }
.shw-kcard-meta { font-size: 11px; color: var(--shw-muted); margin: 0; }
.shw-kcard-detail { font-size: 11px; color: var(--shw-muted); margin: 0 0 4px; }
.shw-kcard-listing { font-size: 10px; color: var(--shw-muted); margin: 0 0 8px; font-style: italic; }
.shw-kcard-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.shw-kanban-empty { color: var(--shw-muted); font-size: 12px; text-align: center; padding: 12px 0; }

/* ─── Messages ────────────────────────────────────────────────────────────── */
.shw-messages-list { display: flex; flex-direction: column; gap: 12px; }
.shw-message-item { background: var(--shw-white); border: 1px solid var(--shw-border); border-radius: var(--shw-radius); padding: 16px; }
.shw-message-item--unread { border-left: 3px solid var(--shw-primary); }
.shw-message-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.shw-msg-photo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.shw-msg-photo-placeholder { width: 36px; height: 36px; border-radius: 50%; background: var(--shw-bg); }
.shw-msg-time { font-size: 11px; color: var(--shw-muted); margin-left: 8px; }
.shw-message-body { font-size: 14px; line-height: 1.6; color: var(--shw-text); margin-bottom: 12px; }
.shw-reply-form textarea { width: 100%; border: 1.5px solid var(--shw-border); border-radius: var(--shw-radius); padding: 10px; font-size: 13px; box-sizing: border-box; margin-bottom: 8px; }
.shw-replied-badge { font-size: 12px; color: var(--shw-success); font-weight: 600; }

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.shw-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.shw-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.shw-modal-content { position: relative; background: var(--shw-white); border-radius: 10px; max-width: 640px; width: 92%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: var(--shw-shadow-lg); }
.shw-modal-content--form { max-width: 700px; }
.shw-modal-close { position: absolute; top: 16px; right: 16px; background: transparent; border: none; font-size: 22px; cursor: pointer; color: var(--shw-muted); line-height: 1; }
.shw-modal-shop-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.shw-modal-logo { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.shw-modal-body h2 { margin: 0 0 4px; font-size: 22px; }
.shw-modal-shop-name { font-size: 15px; color: var(--shw-muted); margin: 0 0 4px; }
.shw-modal-location { font-size: 14px; color: var(--shw-muted); margin: 0; }
.shw-modal-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.shw-modal-section { margin-bottom: 20px; }
.shw-modal-section h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--shw-muted); margin: 0 0 8px; }
.shw-modal-desc { font-size: 14px; line-height: 1.7; color: var(--shw-text); }
.shw-modal-apply { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--shw-border); }
.shw-modal-apply textarea { width: 100%; border: 1.5px solid var(--shw-border); border-radius: var(--shw-radius); padding: 10px; font-size: 13px; margin-bottom: 12px; box-sizing: border-box; }
.shw-modal-apply-cta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--shw-border); text-align: center; }
.shw-modal-apply-cta p { margin-bottom: 16px; color: var(--shw-muted); }

/* ─── Pagination ──────────────────────────────────────────────────────────── */
.shw-pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 24px; }
.shw-pager-btn { padding: 8px 18px; border: 1.5px solid var(--shw-primary); border-radius: var(--shw-radius); background: transparent; color: var(--shw-primary); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.shw-pager-btn:hover { background: var(--shw-primary); color: var(--shw-white); }
.shw-pager-info { font-size: 13px; color: var(--shw-muted); }

/* ─── Upsell ──────────────────────────────────────────────────────────────── */
.shw-upsell-note { background: #fffbe6; border: 1px solid #ffe58f; border-radius: var(--shw-radius); padding: 12px 16px; font-size: 13px; color: #614700; margin-bottom: 16px; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.shw-link { color: var(--shw-primary); text-decoration: underline; cursor: pointer; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */

.shw-pending-badge { background: #fffbe6; color: #614700; border: 1px solid #ffe58f; font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; margin-left: 8px; }
.shw-listing-row--pending { border-left: 3px solid #faad14; opacity: 0.85; }
.shw-info-box { background: #fffbe6; border: 1px solid #ffe58f; border-radius: var(--shw-radius); padding: 12px 16px; font-size: 13px; color: #614700; }

@media (max-width: 768px) {
    .shw-auth-wrap { flex-direction: column; }
    .shw-auth-benefits { flex: none; width: 100%; box-sizing: border-box; }
    .shw-metric-grid { grid-template-columns: 1fr 1fr; }
    .shw-browse-wrap { flex-direction: column; }
    .shw-filters-panel { width: 100%; position: static; display: none; }
    .shw-filters-panel.open { display: block; }
    .shw-mobile-filter-toggle { display: inline-flex; }
    .shw-field-row { grid-template-columns: 1fr; }
    .shw-dashboard-header { flex-direction: column; gap: 16px; }
    .shw-kanban { min-width: 0; }
    .shw-kanban-col { flex: 0 0 180px; }
    .shw-candidate-grid { grid-template-columns: 1fr 1fr; }
    .shw-completeness-track { width: 140px; }
}

@media (max-width: 480px) {
    .shw-metric-grid { grid-template-columns: 1fr; }
    .shw-candidate-grid { grid-template-columns: 1fr; }
    .shw-modal-content { padding: 20px; }
    .shw-steps { display: none; }
}
