/* ================================================
   PANEL-SPECIFIC STYLES
   ================================================ */

/* Profile Panel */
.profile-card { background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-3); padding: 20px; }
.profile-hero { display: flex; gap: 16px; margin-bottom: 20px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.profile-handle { font-size: 13px; color: var(--c-muted); margin-bottom: 8px; }
.profile-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-pill { font-size: 12px; padding: 4px 10px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.profile-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.profile-section:last-of-type { border-bottom: none; }
.profile-section h4 { font-size: 13px; font-weight: 700; color: var(--c-muted); margin: 0 0 6px; }
.profile-section p { font-size: 14px; margin: 0; line-height: 1.5; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-rates { display: flex; align-items: center; gap: 10px; }
.rate-main { font-size: 16px; font-weight: 800; color: var(--c-text); }
.rate-sub { font-size: 13px; color: var(--c-muted); }
.profile-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-border); }

/* Task Detail Panel */
.task-detail-card { background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-3); padding: 20px; }
.task-detail-info { margin-bottom: 16px; }
.task-detail-status { margin-bottom: 10px; }
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-badge.open { background: var(--c-surface-2); color: var(--c-success); }
.status-badge.in_progress { background: var(--c-surface-2); color: var(--c-warn); }
.status-badge.completed { background: var(--c-surface-2); color: var(--c-text); }
.status-badge.scheduled { background: var(--c-surface-2); color: var(--c-success); }
.status-badge.pending_payment { background: var(--c-surface-2); color: var(--c-warn); }
.status-badge.cancelled { background: var(--c-surface-2); color: var(--c-muted); }

/* Non-color indicators for status badges (WCAG 1.4.1) */
.status-badge.completed::before { content: "\2713\00a0"; }
.status-badge.open::before,
.status-badge.in_progress::before,
.status-badge.scheduled::before { content: "\2022\00a0"; }
.status-badge.cancelled::before { content: "\2715\00a0"; }
.status-badge.pending_payment::before { content: "\25F7\00a0"; }

.task-detail-title { font-family: var(--font-display); font-size: 20px; font-weight: 650; margin: 0 0 12px; }
.task-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.meta-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.meta-icon { font-size: 16px; }
.meta-value { color: var(--c-text); }
.meta-value.price { font-weight: 800; color: var(--c-text); }
.task-detail-desc { margin-bottom: 16px; }
.task-detail-desc h4 { font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--c-muted); }
.task-detail-desc p { font-size: 14px; margin: 0; line-height: 1.6; }
.task-detail-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.task-detail-photos img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; border: 1px solid var(--c-border); }

.panel-agreement { padding: 16px; }
.agreement-card { background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-3); padding: 20px; }
.agreement-status { margin-bottom: 12px; }
.agreement-task { margin-bottom: 16px; }
.agreement-task h3 { font-family: var(--font-display); font-size: 18px; font-weight: 650; margin: 0 0 8px; }
.agreement-task .task-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--c-muted); font-weight: 650; font-size: 13px; margin-bottom: 8px; }
.agreement-task .task-description { margin: 0; color: var(--c-text); font-size: 14px; line-height: 1.55; }

.agreement-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 640px) { .agreement-parties { grid-template-columns: 1fr; } }
.party { background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); padding: 12px; position: relative; }
.party-label { font-size: 12px; font-weight: 800; color: var(--c-muted); margin-bottom: 8px; }
.party-info { display: flex; align-items: center; gap: 10px; }
.party-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.party-avatar img { width: 100%; height: 100%; object-fit: cover; }
.party-name { font-size: 14px; font-weight: 800; }
.you-badge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text); }

.agreement-details { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; padding: 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.agreement-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.payment-required-notice { width: 100%; padding: 14px; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.payment-required-notice p { margin: 0 0 10px; color: var(--c-text); font-weight: 650; }
.payment-required-notice p:last-child { margin-bottom: 0; }
.payment-amount { font-size: 13px; color: var(--c-muted); }
.pay-breakdown { margin-top: 16px; padding: 12px; background: var(--c-surface, #fff); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--c-text); }
.pay-row-total { border-top: 1px solid var(--c-border); margin-top: 6px; padding-top: 8px; font-size: 16px; }
.pay-fee-note { margin: 8px 0 0; font-size: 12px; color: var(--c-muted); }
.pending-notice, .waiting-notice { width: 100%; padding: 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); color: var(--c-muted); font-weight: 650; margin: 0; }

.address-share-section, .address-received-section { width: 100%; padding: 16px; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.address-share-section h5, .address-received-section h5 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.address-share-section .help-text { margin: 0 0 12px; font-size: 13px; color: var(--c-muted); }
.address-form { display: flex; gap: 10px; flex-wrap: wrap; }
.address-form .form-control { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--r-2); font-size: 14px; background: var(--c-surface); }
.address-form .form-control:focus { outline: none; border-color: var(--c-primary); }
.address-shared-notice { margin: 10px 0 0; font-size: 13px; color: var(--c-success); }
.address-value { font-size: 15px; margin: 0; }

/* Task Chat */
.task-chat-section { margin-top: 20px; border: 1px solid var(--c-border); border-radius: var(--r-2); background: var(--c-surface); overflow: hidden; }
.chat-header { padding: 12px 16px; background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { margin: 0; font-size: 14px; font-weight: 700; }
.chat-status { font-size: 12px; color: var(--c-muted); }
.chat-messages { height: 300px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); }
.chat-loading, .chat-empty, .chat-error { text-align: center; color: var(--c-muted); padding: 40px 20px; font-size: 14px; }
.chat-message { display: flex; flex-direction: column; max-width: 75%; }
.chat-message.me { align-self: flex-end; align-items: flex-end; }
.chat-message.them { align-self: flex-start; align-items: flex-start; }
.message-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
/* Caramel + white was 3.6:1 — fail. Espresso + white is 8.5:1. */
.chat-message.me .message-bubble { background: var(--c-text); color: var(--c-surface); border-bottom-right-radius: 4px; }
.chat-message.them .message-bubble { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); border-bottom-left-radius: 4px; }
.message-time { font-size: 11px; color: var(--c-muted); margin-top: 4px; }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--c-border); background: var(--c-surface); }
#chat-form { display: flex; gap: 10px; align-items: flex-end; }
#chat-input { flex: 1; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--r-2); font-size: 14px; resize: none; font-family: inherit; }
#chat-input:focus { outline: none; border-color: var(--c-primary); }

/* Helper-profile chat input + send button. The existing `#chat-input-field`
   styles in 25-task-detail.css target a different ID (the task-detail page);
   the helper profile uses `#profile-chat-input`, so it had no styling at all. */
#profile-chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  color: var(--c-text);
  line-height: 1.4;
}
#profile-chat-input:focus {
  outline: none;
  border-color: var(--c-text);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 12%, transparent);
}
#profile-chat-input::placeholder { color: var(--c-muted); }

/* Chat invite hidden state utility (Bootstrap-style hidden attr already does
   this, but spell it out so future utility selectors don't accidentally re-show
   the form). */
.chat-invite[hidden] { display: none; }
.chat-invite {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
}
.chat-invite .form-group { margin-bottom: 10px; }
.chat-invite .form-group:last-of-type { margin-bottom: 0; }

/* Empty-state shown when the viewer has no open tasks. The full invite form
   would be unusable (no task to invite to), so we replace it with a friendly
   nudge to create one. */
.chat-invite--empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.chat-invite-empty-text {
  margin: 0;
  font-size: 13px;
  color: var(--c-text);
  flex: 1 1 auto;
  min-width: 200px;
}
.chat-invite--empty .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Task Detail - Owner View */
.task-owner-section { border-top: 1px solid var(--c-border); padding-top: 16px; margin-top: 16px; }
.owner-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.interested-helpers h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.helpers-list { display: flex; flex-direction: column; gap: 10px; }
.helper-request { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); transition: all 0.15s; }
.helper-request:hover { border-color: var(--c-primary); }
.helper-info { flex: 1; }
.helper-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.helper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.helper-details { display: flex; flex-direction: column; }
.helper-name { font-size: 14px; font-weight: 700; }
.helper-vouches { font-size: 12px; color: var(--c-text); }
.helper-message { font-size: 12px; color: var(--c-muted); margin: 4px 0 0; }
.helper-actions { display: flex; gap: 8px; }
.no-helpers { font-size: 13px; color: var(--c-muted); margin: 0; }

/* Task Detail - Helper View */
.task-helper-section { border-top: 1px solid var(--c-border); padding-top: 16px; margin-top: 16px; }
.poster-info h4 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--c-muted); }
.poster-card { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.poster-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; overflow: hidden; }
.poster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.poster-name { font-size: 14px; font-weight: 700; }
.request-section h4 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.request-form textarea { width: 100%; padding: 12px; border: 1px solid var(--c-border); border-radius: 12px; font-size: 14px; font-family: inherit; resize: vertical; margin-bottom: 12px; background: var(--c-glass); color: var(--c-text); outline: none; }
.request-form textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.already-requested { text-align: center; padding: 20px; background: var(--c-surface-2); border-radius: var(--r-2); }
.already-requested p { margin: 0 0 12px; color: var(--c-success); font-weight: 700; }
.task-in-progress, .task-completed { padding: 16px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); text-align: center; }
.task-in-progress p, .task-completed p { margin: 0; color: var(--c-muted); font-size: 14px; }

/* Task Form */
.budget-row { display: flex; gap: 12px; }
.budget-row > .form-group{flex:1; margin-bottom:0}
.time-range { display: flex; align-items: center; gap: 10px; }
.time-range input { width: 120px; }
.days-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.day-check { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: 10px; cursor: pointer; font-size: 13px; }
.day-check:has(input:checked) { background: var(--c-surface-2); border-color: var(--c-primary); }
.day-check input { display: none; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-primary); }
.preference-options { display: flex; gap: 10px; margin-top: 8px; }
.radio-card { flex: 1; display: block; padding: 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: 12px; cursor: pointer; transition: all 0.15s; }
.radio-card:has(input:checked) { background: var(--c-ring); border-color: var(--c-primary); }
.radio-card input { display: none; }
.radio-card .card-content { display: flex; flex-direction: column; gap: 2px; }
.radio-card strong { font-size: 13px; font-weight: 700; }
.radio-card span { font-size: 12px; color: var(--c-muted); }

/* Wallet Panel */
.panel-wallet { padding: 16px; }
.wallet-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.balance-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast, 120ms),
              box-shadow var(--t-med, 220ms),
              border-color var(--t-med, 220ms);
  overflow: hidden;
}
.balance-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  box-shadow: var(--shadow-2);
}
.balance-card.primary {
  background: var(--grad-primary);
  color: var(--c-surface);
  border-color: color-mix(in srgb, var(--c-primary) 80%, black);
  box-shadow: 0 12px 30px color-mix(in oklab, var(--c-primary) 35%, transparent);
}
.balance-card.primary::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 160%;
  background: radial-gradient(circle, color-mix(in oklab, #fff 18%, transparent), transparent 60%);
  pointer-events: none;
}
.balance-card.primary::after {
  content: "";
  position: absolute;
  bottom: -50%; left: -20%;
  width: 50%; height: 120%;
  background: radial-gradient(circle, color-mix(in oklab, #fff 10%, transparent), transparent 60%);
  pointer-events: none;
}
.balance-card.primary .balance-label { color: color-mix(in oklab, #fff 80%, transparent); }
.balance-card.primary .balance-amount { color: #fff; text-shadow: 0 4px 14px color-mix(in oklab, #000 30%, transparent); }
.balance-card.credits {
  background: color-mix(in srgb, var(--c-lime-tint) 80%, var(--c-surface));
  border-color: color-mix(in oklab, var(--c-lime) 35%, var(--c-border));
}
.balance-card.credits .balance-amount { color: var(--c-lime-text); }
.balance-label {
  font-size: 10px;
  font-weight: 800;
  color: color-mix(in srgb, var(--c-muted) 65%, var(--c-text));
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}
.balance-amount {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  position: relative;
  line-height: 1.1;
}
.balance-hint { font-size: 11px; color: var(--c-muted); }
.balance-actions { margin-top: 8px; }
.wallet-section { margin-bottom: 20px; }
.wallet-section h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.transaction-list { display: flex; flex-direction: column; gap: 6px; }
.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-border);
  border-radius: var(--r-2);
  transition: transform var(--t-fast, 120ms),
              box-shadow var(--t-med, 220ms),
              border-color var(--t-med, 220ms),
              background var(--t-fast, 120ms);
}
.transaction-item:has(.transaction-amount.positive){ border-left-color: var(--c-lime-deep); }
.transaction-item:has(.transaction-amount.negative){ border-left-color: var(--c-secondary); }
.transaction-item:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)) 50%, var(--c-surface));
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  box-shadow: var(--shadow-1);
}
/* Alternating stripe on dense lists */
.transaction-list .transaction-item:nth-child(even) {
  background: color-mix(in srgb, var(--c-surface-2) 65%, var(--c-surface));
}
.transaction-list .transaction-item:nth-child(even):hover {
  background: color-mix(in srgb, color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)) 50%, var(--c-surface));
}
.transaction-icon {
  font-size: 20px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--c-primary) 14%, var(--c-surface));
  box-shadow: 0 6px 14px color-mix(in oklab, var(--c-primary) 18%, transparent);
  flex-shrink: 0;
}
.transaction-item:has(.transaction-amount.positive) .transaction-icon {
  background: color-mix(in srgb, var(--c-lime) 22%, var(--c-surface));
  box-shadow: 0 6px 14px color-mix(in oklab, var(--c-lime) 22%, transparent);
}
.transaction-item:has(.transaction-amount.negative) .transaction-icon {
  background: color-mix(in srgb, var(--c-secondary) 18%, var(--c-surface));
  box-shadow: 0 6px 14px color-mix(in oklab, var(--c-secondary) 22%, transparent);
}
.transaction-info { flex: 1; min-width: 0; }
.transaction-desc { font-size: 13px; font-weight: 700; color: var(--c-text); }
.transaction-date { font-size: 11px; color: color-mix(in srgb, var(--c-muted) 65%, var(--c-text)); }
.transaction-amount { font-size: 14px; font-weight: 900; }
.transaction-amount.positive { color: var(--c-lime-text); }
.transaction-amount.negative { color: color-mix(in srgb, var(--c-secondary) 80%, black); }
.section-footer { margin-top: 12px; }
.panel-empty-sm { padding: 20px; text-align: center; color: var(--c-muted); }
.panel-empty-sm p { margin: 0; font-size: 13px; }
.quick-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: transform var(--t-fast, 120ms),
              box-shadow var(--t-med, 220ms),
              border-color var(--t-med, 220ms),
              background var(--t-fast, 120ms);
}
.quick-action:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  background: color-mix(in srgb, color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)) 50%, var(--c-surface));
  box-shadow: var(--shadow-2);
}
.qa-icon {
  font-size: 22px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--c-primary) 16%, var(--c-surface));
  box-shadow: 0 6px 14px color-mix(in oklab, var(--c-primary) 20%, transparent);
}
.qa-label { font-size: 12px; font-weight: 700; text-align: center; color: var(--c-text); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.stat-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  padding: 14px;
  text-align: center;
  transition: transform var(--t-fast, 120ms),
              box-shadow var(--t-med, 220ms),
              border-color var(--t-med, 220ms);
}
.stat-box:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  box-shadow: var(--shadow-2);
}
.stat-box .stat-value { font-size: 18px; font-weight: 900; color: var(--c-text); }
.stat-box .stat-label { font-size: 11px; color: color-mix(in srgb, var(--c-muted) 65%, var(--c-text)); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* Edit Profile Panel */
.photo-upload { display: flex; align-items: center; gap: 16px; }
.current-photo { width: 80px; height: 80px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; overflow: hidden; }
.current-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; gap: 8px; }
.verification-status { display: flex; flex-direction: column; gap: 10px; }
.verification-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.verification-item.verified { background: var(--c-surface-2); border-color: var(--c-surface-2); }
.verification-icon { font-size: 16px; }
.verification-label { flex: 1; font-size: 13px; font-weight: 600; }

/* Skills Panel */
.rate-inputs { display: flex; gap: 12px; }
.input-with-prefix { display: flex; align-items: center; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-glass); overflow: hidden; }
.input-with-prefix .prefix { padding: 10px 12px; background: var(--c-divider); font-weight: 700; color: var(--c-muted); }
.input-with-prefix input { border: none; padding: 10px 12px; flex: 1; background: transparent; outline: none; }
.checkbox-item { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--c-primary); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-glass); min-height: 44px; }
.tag-input input { border: none; background: transparent; outline: none; flex: 1; min-width: 100px; font-size: 13px; }
.tag-input .tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--c-surface-2); border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-input .tag button { border: none; background: transparent; cursor: pointer; font-size: 14px; color: var(--c-muted); padding: 0 2px; }

/* Job Card */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-3); padding: 16px; }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.job-details { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border-radius: var(--r-2); }
.job-detail { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; }
.detail-value { font-size: 14px; font-weight: 700; }
.job-description { margin-bottom: 12px; }
.job-description p { font-size: 13px; margin: 4px 0 0; line-height: 1.5; }
.job-address { margin-bottom: 12px; padding: 12px; background: var(--c-surface-2); border-radius: var(--r-2); }
.job-address p { font-size: 14px; margin: 4px 0 8px; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Inbox Panel */
.inbox-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab-btn { padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 999px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.tab-btn:hover { border-color: var(--c-primary); }
.tab-btn.active { background: var(--grad-accent); color: var(--c-surface); border-color: transparent; }
.message-list { display: flex; flex-direction: column; gap: 8px; }
.message-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); cursor: pointer; transition: all 0.15s; }
.message-item:hover { border-color: var(--c-primary); }
.message-item.unread { background: var(--c-surface-2); border-color: var(--c-surface-2); }
.message-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-avatar .system-icon { font-size: 20px; }
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.message-sender { font-size: 14px; font-weight: 700; }
.message-time { font-size: 11px; color: var(--c-muted); }
.message-subject { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.message-preview { font-size: 12px; color: var(--c-muted); line-height: 1.4; }
.message-task-link { margin-top: 6px; }
.task-badge { display: inline-block; padding: 3px 8px; background: var(--c-ring); border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--c-text); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); flex-shrink: 0; }
.load-more { text-align: center; padding: 16px 0; }

/* Conversation thread */
.chat{display:flex; flex-direction:column; gap: 12px;}
.chat-log{display:flex; flex-direction:column; gap: 10px; padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-3); background: var(--c-glass);}
.chat-row{display:flex; justify-content:flex-start;}
.chat-row.me{justify-content:flex-end;}
.chat-bubble{max-width: min(560px, 92%); border: 1px solid var(--c-border); background: color-mix(in srgb, var(--c-surface) 50%, transparent); border-radius: 14px; padding: 10px 12px;}
.chat-bubble.me{background: var(--c-surface-2); border-color: var(--c-ring);}
.chat-text{font-size: 13px; font-weight: 650; line-height: 1.45; color: var(--c-text); white-space: pre-wrap;}
.chat-meta{margin-top: 6px; font-size: 11px; color: var(--c-muted); font-weight: 650;}
.chat-compose{display:flex; gap: 10px; align-items:center;}
.chat-input{flex:1; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-glass);}

/* Earnings Panel */
.panel-earnings { padding: 16px; }
.panel-filters select { padding: 8px 12px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-glass); font-size: 13px; font-weight: 600; }
.earnings-summary { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.earnings-total { flex: 1; min-width: 180px; background: linear-gradient(145deg, var(--c-surface-2), var(--c-surface-2)); border: 1px solid var(--c-primary); border-radius: var(--r-3); padding: 20px; text-align: center; }
.earnings-amount { font-size: 32px; font-weight: 900; color: var(--c-text); }
.earnings-label { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.earnings-change { font-size: 12px; margin-top: 6px; font-weight: 700; }
.earnings-change.positive { color: var(--c-success); }
.earnings-change.negative { color: var(--c-danger); }
.earnings-breakdown { flex: 1; min-width: 180px; background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-3); padding: 16px; }
.breakdown-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.breakdown-item:last-child { border-bottom: none; }
.breakdown-label { font-size: 13px; color: var(--c-muted); }
.breakdown-value { font-size: 14px; font-weight: 700; }
.earnings-chart { margin-bottom: 20px; }
.earnings-chart h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.chart-container { background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-2); padding: 16px; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.chart-bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; }
.chart-bar { width: 100%; height: var(--h, 0); background: linear-gradient(180deg, var(--c-primary), var(--c-ring)); border-radius: 4px 4px 0 0; min-height: 4px; }
.chart-label { font-size: 10px; color: var(--c-muted); margin-top: 6px; }
.earnings-by-category { margin-bottom: 20px; }
.earnings-by-category h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-item { display: flex; align-items: center; gap: 12px; }
.category-info { min-width: 100px; }
.category-name { font-size: 13px; font-weight: 600; display: block; }
.category-jobs { font-size: 11px; color: var(--c-muted); }
.category-bar { flex: 1; height: 8px; background: var(--c-divider); border-radius: 4px; overflow: hidden; }
.category-fill { height: 100%; width: var(--w, 0); background: linear-gradient(90deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 50%, var(--c-surface))); border-radius: 4px; }
.category-amount { font-size: 14px; font-weight: 700; min-width: 70px; text-align: right; }
.earnings-jobs h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.job-earnings-list { display: flex; flex-direction: column; gap: 8px; }
.job-earning-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.job-earning-info { flex: 1; }
.job-earning-title { font-size: 14px; font-weight: 700; }
.job-earning-meta { font-size: 12px; color: var(--c-muted); display: flex; gap: 8px; }
.job-earning-amount { font-size: 14px; font-weight: 800; color: var(--c-success); }
.tip-badge { display: inline-block; padding: 2px 6px; background: var(--c-surface-2); border-radius: 4px; font-size: 11px; color: var(--c-warn); margin-left: 6px; }

/* Vouches Panel */
.panel-vouches { padding: 16px; }
.vouch-summary { display: flex; gap: 12px; margin-bottom: 20px; }
.vouch-stat { flex: 1; background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-2); padding: 16px; text-align: center; }
.vouch-stat.received { background: var(--c-surface-2); border-color: var(--c-surface-2); }
.vouch-stat.given { background: var(--c-surface-2); border-color: var(--c-ring); }
.vouch-stat-num { font-size: 28px; font-weight: 900; color: var(--c-text); }
.vouch-stat-label { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.vouches-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.vouch-list { display: flex; flex-direction: column; gap: 10px; }
.vouch-item, .vouch-request { background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-2); padding: 14px; }
.vouch-from { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vouch-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-accent); color: var(--c-surface); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; cursor: pointer; }
.vouch-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vouch-info { flex: 1; }
.vouch-name { font-size: 14px; font-weight: 700; }
.vouch-date { font-size: 12px; color: var(--c-muted); }
.vouch-message { font-size: 13px; font-style: italic; color: var(--c-text); margin-bottom: 8px; padding: 10px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border-radius: 8px; }
.vouch-context { font-size: 12px; color: var(--c-muted); }
.vouch-request-actions { display: flex; gap: 8px; margin-top: 10px; }
.vouch-info-section { margin-top: 24px; padding: 16px; background: color-mix(in srgb, var(--c-surface) 50%, transparent); border: 1px solid var(--c-border); border-radius: var(--r-2); }
.vouch-info-section h3 { font-size: 14px; font-weight: 800; margin: 0 0 10px; }
.vouch-info-text p { font-size: 13px; margin: 0 0 8px; line-height: 1.5; }
.vouch-info-text p:last-child { margin-bottom: 0; }

/* Neighborhood page */
.hood-cover{
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background-image: var(--bg-url);
  background-size: cover;
  background-position: center;
}
.hood-cover-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag-input.tag-input-singleline{ cursor:text; }
.tag-input.tag-input-singleline .tag-input-field{
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.email-setup-container{ max-width: 600px; margin: 2rem auto; padding: 2rem; }
.email-setup-card{ text-align: center; padding: 3rem 2rem; background: var(--c-glass); border: 1px solid var(--c-border); border-radius: var(--r-3); }
.email-setup-icon{ font-size: 4rem; margin-bottom: 1rem; }
.email-setup-title{ font-size: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-display); }
.email-setup-subtext{ color: var(--c-muted); margin-bottom: 1.5rem; }
.email-setup-address{ background: color-mix(in srgb, var(--c-surface) 50%, transparent); padding: 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; }
.email-setup-address code{ font-size: 1.25rem; color: var(--c-primary); }
.email-setup-note{ color: var(--c-muted); font-size: 0.875rem; }
.email-setup-actions{ margin-top: 2rem; }
.email-setup-btn{ display: inline-flex; align-items: center; gap: 0.5rem; }
.email-setup-footnote{ color: var(--c-muted); font-size: 0.75rem; margin-top: 1.5rem; }

/* Empty state small variant */
.empty-sm { padding: 20px; text-align: center; color: var(--c-muted); }
.empty-sm p { margin: 0; font-size: 13px; }

/* Helper Profile — sections get top dividers */

/* Helper Profile Panel */
.helper-profile-card {
  position: relative; /* anchor for .helper-header-actions */
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  padding: 24px;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--c-text) 6%, transparent);
}

/* Header actions row — heart + friend button, top-right of identity card */
.helper-header-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 1;
}

/* Heart "favorite this helper" toggle */
.favorite-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  cursor: pointer;
  z-index: 1;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.favorite-btn:hover {
  transform: scale(1.06);
  border-color: var(--c-text);
  color: var(--c-text);
}
.favorite-btn:active { transform: scale(0.94); }
.favorite-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 25%, transparent);
}
.favorite-btn:disabled { opacity: 0.6; cursor: progress; }
.favorite-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.15s, stroke 0.15s;
}
.favorite-btn[data-saved="true"] {
  background: color-mix(in srgb, var(--c-danger) 12%, var(--c-surface));
  border-color: var(--c-danger);
  color: var(--c-danger);
}
.favorite-btn[data-saved="true"] svg {
  fill: var(--c-danger);
  stroke: var(--c-danger);
}
@keyframes favorite-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.favorite-btn.pulsing { animation: favorite-pulse 0.32s ease; }
.helper-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.helper-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-text));
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--c-text) 18%, transparent);
}
.helper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.helper-info { flex: 1; min-width: 0; }
.helper-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.helper-name { font-size: 22px; font-weight: 700; margin: 0; color: var(--c-text); }
.helper-edit-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-glass);
  text-decoration: none;
  flex-shrink: 0;
}
.helper-edit-link:hover { background: var(--c-surface-2); border-color: var(--c-text); }
.helper-handle { font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.helper-location {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.helper-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}
.helper-stat {
  font-size: 13px;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
}
.helper-stat strong { font-weight: 700; font-size: 15px; }
.helper-stat + .helper-stat {
  border-left: 1px solid var(--c-border);
}
/* var(--c-primary)=caramel ~3.4:1 on light bg. Espresso = 8.5:1. */
.helper-stat.accent { color: var(--c-text); font-weight: 600; }
.helper-stat.accent span[aria-hidden] { color: var(--c-primary); }

.helper-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.helper-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.helper-section p, .helper-bio { font-size: 14px; color: var(--c-text); margin: 0; line-height: 1.55; }

.helper-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.helper-actions .btn { min-width: 140px; }

/* Chat container inside the profile card — no double border */
.helper-profile-card .chat-container { border: none; border-radius: 0; }

/* Redesigned public helper profile */
.helper-profile-page {
  gap: 18px;
  padding-bottom: 86px;
}
.helper-profile-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, var(--c-surface), color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)));
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.helper-profile-hero-main {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.helper-profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  background: var(--grad-primary);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: var(--shadow-2);
}
.helper-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.helper-profile-intro { min-width: 0; }
.helper-profile-kicker {
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.helper-profile-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.helper-profile-name {
  margin: 0;
  color: var(--c-text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}
.helper-profile-location {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--c-muted);
  font-size: 14px;
  margin-top: 8px;
}
.helper-profile-skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.helper-profile-skill-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 800;
}
.helper-profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.helper-profile-metric {
  padding: 14px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.helper-profile-metric strong {
  display: block;
  color: var(--c-text);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 5px;
}
.helper-profile-metric span {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
}
.helper-profile-metric.primary {
  border-color: var(--c-ring);
  background: color-mix(in srgb, var(--c-primary) 8%, var(--c-surface));
}
.helper-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}
.helper-profile-main {
  display: grid;
  gap: 14px;
}
.helper-profile-section,
.helper-hire-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.helper-profile-section {
  padding: 22px;
}
.helper-profile-section h3 {
  margin: 0 0 12px;
  color: var(--c-text);
  font-size: 18px;
  line-height: 1.2;
}
.helper-profile-section h4 {
  margin: 0 0 8px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.helper-profile-copy {
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.helper-section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.helper-section-note {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
}
.helper-profile-tags .skill-tag {
  background: var(--c-surface-2);
  color: var(--c-text);
}
.helper-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.helper-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  color: var(--c-muted);
  background: var(--c-surface-2);
  font-size: 13px;
  font-weight: 700;
}
.helper-trust-item span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-surface);
  background: color-mix(in srgb, var(--c-muted) 65%, var(--c-text));
  font-size: 12px;
  flex: 0 0 auto;
}
.helper-trust-item.verified {
  color: var(--c-text);
  background: color-mix(in srgb, var(--c-success) 8%, var(--c-surface));
  border-color: color-mix(in srgb, var(--c-success) 30%, var(--c-border));
}
.helper-trust-item.verified span { background: var(--c-success); }
.helper-profile-badges { margin-top: 14px; }
.helper-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.helper-portfolio-item {
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
}
.helper-portfolio-title {
  color: var(--c-text);
  font-weight: 800;
  margin-bottom: 4px;
}
.helper-portfolio-meta {
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}
.helper-portfolio-item p,
.helper-review-card p,
.helper-review-summary p,
.profile-message-start p,
.helper-hire-availability {
  margin: 0;
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.5;
}
.helper-profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.helper-review-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
}
.helper-review-score {
  font-size: 34px;
  font-weight: 900;
  color: var(--c-text);
  line-height: 1;
}
.helper-review-stars {
  color: var(--c-warn);
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 800;
}
.helper-review-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.helper-review-card {
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface);
}
.helper-review-card span {
  display: block;
  margin-top: 8px;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 800;
}
.helper-hire-panel {
  position: sticky;
  top: 18px;
}
.helper-hire-card {
  padding: 20px;
}
.helper-hire-eyebrow {
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.helper-hire-rate {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  color: var(--c-text);
  margin-bottom: 4px;
}
.helper-hire-rate strong {
  font-size: 30px;
  line-height: 1;
}
.helper-hire-rate span {
  color: var(--c-muted);
  font-weight: 800;
}
.helper-hire-note {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.helper-hire-availability {
  padding: 12px;
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  margin-top: 12px;
}
.helper-hire-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.helper-social-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.helper-social-actions .favorite-btn {
  width: auto;
  min-height: 38px;
  height: auto;
  border-radius: 999px;
  padding: 8px 12px;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}
.helper-social-actions .favorite-btn svg { flex: 0 0 auto; }
.helper-friend-state { cursor: default; }
.helper-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.helper-profile-chat {
  display: grid;
  gap: 14px;
}
.helper-profile-chat .chat-invite,
.profile-message-start {
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
}
.helper-profile-chat #profileInviteNote {
  margin: 0 0 10px;
}
.profile-message-start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.profile-message-start[hidden] { display: none; }
.helper-mobile-actionbar {
  display: none;
}

@media (max-width: 980px) {
  .helper-profile-layout {
    grid-template-columns: 1fr;
  }
  .helper-hire-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .helper-profile-page {
    padding-bottom: 90px;
  }
  .helper-profile-hero,
  .helper-profile-section,
  .helper-hire-card {
    border-radius: var(--r-2);
    padding: 16px;
  }
  .helper-profile-hero-main {
    align-items: flex-start;
  }
  .helper-profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    font-size: 30px;
  }
  .helper-profile-name {
    font-size: 28px;
  }
  .helper-profile-metrics,
  .helper-trust-grid,
  .helper-portfolio-grid,
  .helper-profile-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .helper-profile-metric strong {
    font-size: 20px;
  }
  .profile-message-start {
    align-items: stretch;
    flex-direction: column;
  }
  .helper-mobile-actionbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    background: color-mix(in srgb, var(--c-surface) 96%, transparent);
    border: 1px solid var(--c-border);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(12px);
  }
  .helper-mobile-actionbar .btn {
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .helper-profile-hero-main {
    flex-direction: column;
  }
  .helper-profile-metrics,
  .helper-trust-grid,
  .helper-portfolio-grid,
  .helper-profile-detail-grid,
  .helper-glance-strip {
    grid-template-columns: 1fr;
  }
}

/* Helper profile — webface upgrade: surfaces rates, response time,
   availability, specialties, service area, portfolio media, and review
   axis breakdowns. Reuses helper-profile-section / skill-tag /
   helper-hire-card containers. */
.helper-member-since {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.helper-status-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.helper-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid var(--c-border);
  background: var(--c-glass);
  color: var(--c-text);
}
.helper-status-pill.verified {
  background: color-mix(in srgb, var(--c-success) 16%, var(--c-glass));
  border-color: color-mix(in srgb, var(--c-success) 40%, var(--c-border));
  color: var(--c-success);
}
.helper-status-pill.pro {
  background: color-mix(in srgb, var(--c-primary) 14%, var(--c-glass));
  border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border));
  color: var(--c-primary);
}
.helper-rating-stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}
.helper-rating-stars::before {
  content: "★★★★★";
  color: color-mix(in srgb, var(--c-warn) 18%, var(--c-border));
}
.helper-rating-stars::after {
  content: "★★★★★";
  color: var(--c-warn);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--rating-pct, 0%);
  overflow: hidden;
  white-space: nowrap;
}

.helper-glance-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.helper-glance-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
}
.helper-glance-chip .helper-glance-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-muted);
}
.helper-glance-chip .helper-glance-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--c-text);
}

.helper-availability-callout {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--c-primary);
  background: var(--c-surface-2);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.5;
}

.helper-advanced-skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--c-border);
}
.helper-advanced-skill-row:first-of-type {
  border-top: none;
}
.helper-advanced-skill-name {
  font-weight: 700;
  color: var(--c-text);
  font-size: 14px;
}
.helper-advanced-skill-meta {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 2px;
}
.helper-skill-dots {
  display: inline-flex;
  gap: 4px;
}
.helper-skill-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-primary) 18%, var(--c-border));
}
.helper-skill-dots span.filled {
  background: var(--c-primary);
}

.helper-portfolio-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  overflow: hidden;
}
.helper-portfolio-tile .helper-portfolio-media {
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
  background-color: color-mix(in srgb, var(--c-primary) 12%, var(--c-surface-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: color-mix(in srgb, var(--c-primary) 60%, var(--c-text));
  font-weight: 900;
}
.helper-portfolio-tile .helper-portfolio-body {
  padding: 12px 14px;
}
.helper-portfolio-view-all {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.helper-service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.helper-service-area-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-glass);
  font-size: 13px;
  color: var(--c-text);
  font-weight: 700;
}
.helper-service-area-pill .helper-service-area-radius {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-muted);
  padding: 1px 6px;
  background: var(--c-surface-2);
  border-radius: 999px;
}
.helper-service-area-pill .helper-service-area-fee {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-primary);
}

.helper-review-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
}
.helper-review-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.helper-review-breakdown-row span:first-child {
  color: var(--c-muted);
  font-weight: 700;
}
.helper-review-breakdown-row strong {
  color: var(--c-text);
  font-weight: 800;
  min-width: 28px;
  text-align: right;
}

.helper-section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.helper-section-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-glass);
  color: var(--c-muted);
}
.helper-section-badge.is-available {
  background: color-mix(in srgb, var(--c-success) 18%, var(--c-glass));
  border-color: color-mix(in srgb, var(--c-success) 40%, var(--c-border));
  color: var(--c-success);
}
.helper-section-note {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 600;
}

.doer-schedule-hour-cell.is-signin-prompt {
  cursor: pointer;
}
.doer-schedule-hour-cell.is-signin-prompt:hover {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}

.helper-hire-rate strong {
  font-weight: 900;
}
.helper-hire-billing-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}
.helper-hire-response {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}
.helper-hire-response .icon {
  font-size: 14px;
  color: var(--c-primary);
}

.quick-offer-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
}
.quick-offer-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
}
.quick-offer-box {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  padding: 16px;
}
.quick-offer-rate {
  font-size: 13px;
  color: var(--c-text);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--c-glass);
  border-radius: 8px;
  border: 1px solid var(--c-border);
}

.skill-tag {
  padding: 5px 12px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Form utilities */
.form-group { margin-bottom: 10px; }
.form-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.form-label-hint { color: var(--c-muted); font-weight: 400; }
.form-input { width: 100%; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 14px; background: var(--c-glass); }
.form-textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 13px; resize: none; background: var(--c-glass); }
.form-select { width: 100%; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 13px; background: var(--c-glass); }

/* SEO Sites directory */
.seo-sites {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}
.seo-sites li {
  color: var(--c-text);
  line-height: 1.45;
}
.seo-sites a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-sites span {
  color: var(--c-muted);
}

/* Locations directory */
.loc-lang-section { margin-bottom: 16px; }
.loc-lang-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-primary);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-ring);
}
.loc-country { margin-bottom: 18px; }
.loc-country-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}
.loc-province { margin-bottom: 10px; }
.loc-province-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  margin: 0 0 4px;
}
.loc-cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.loc-cities li { display: inline; }
.loc-cities a {
  font-size: 13px;
  color: var(--c-primary);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  border: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.loc-cities a:hover {
  border-color: var(--c-ring);
  background: color-mix(in srgb, var(--c-primary) 6%, var(--c-surface));
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Spacing utilities */
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 12px; }
.mb-lg { margin-bottom: 16px; }
.mt-sm { margin-top: 8px; }
.mt-lg { margin-top: 16px; }
.p-md { padding: 16px; }
.cursor-pointer { cursor: pointer; }
.flex-1 { flex: 1; }
.icon-sm { width: 14px; height: 14px; }

/* Circle colors */
.circle-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--c-surface); background: var(--c-primary); }

/* Neighbors Panel */
.panel-neighbors { padding: 16px; }

.neighbor-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.neighbor-filters select {
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-glass);
  font-size: 13px;
  font-weight: 600;
}

.neighbors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.neighbor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast, 120ms),
              box-shadow var(--t-med, 220ms),
              border-color var(--t-med, 220ms);
}
.neighbor-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  background: var(--grad-glass);
  pointer-events: none;
}
.neighbor-card > * { position: relative; }
.neighbor-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  box-shadow: var(--shadow-2);
}

.neighbor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.neighbor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-success);
  border: 2px solid var(--c-surface);
}

.neighbor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.neighbor-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.neighbor-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text);
}

.neighbor-vouches {
  font-size: 12px;
  color: var(--c-muted);
}

.neighbor-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 2px;
}

.skill-tag-sm {
  padding: 2px 8px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text);
}

.neighbor-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.vouched-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-success);
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .neighbors-grid {
    grid-template-columns: 1fr;
  }
  .neighbor-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .neighbor-info {
    align-items: flex-start;
    text-align: left;
  }
  .neighbor-skills {
    justify-content: flex-start;
  }
  .neighbor-actions {
    margin-top: 0;
    margin-left: auto;
    flex-direction: column;
  }
}

/* Downloads Page */
.downloads-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  background: linear-gradient(145deg, var(--c-glass), color-mix(in srgb, var(--c-surface) 50%, transparent));
  box-shadow: var(--shadow-1);
}
.downloads-copy h3 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.downloads-copy p { margin: 4px 0 0; color: var(--c-muted); font-weight: 650; }
.downloads-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.downloads-actions .btn-ghost { border: 1px solid var(--c-border); }
.downloads-meta-code {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--c-text);
  word-break: break-all;
}
.downloads-empty {
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  background: var(--c-glass);
}
.downloads-empty h3 { margin: 0; font-family: var(--font-display); }

/* Security Panel */
.session-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.session-item.current { border-color: var(--c-ring); background: var(--c-surface-2); }
.session-icon { font-size: 20px; }
.session-info { flex: 1; min-width: 0; }
.session-device { font-size: 14px; font-weight: 700; }
.session-details { font-size: 12px; color: var(--c-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.current-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  margin-top: 4px;
}
.login-history { display: flex; flex-direction: column; gap: 6px; }
.login-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.login-item.failed { border-color: color-mix(in srgb, var(--c-danger) 40%, var(--c-border)); }
.login-status { font-size: 16px; font-weight: 700; flex-shrink: 0; }
.login-item.success .login-status { color: var(--c-success); }
.login-item.failed .login-status { color: var(--c-danger); }
.login-info { flex: 1; min-width: 0; }
.login-time { font-size: 13px; font-weight: 600; }
.login-details { font-size: 12px; color: var(--c-muted); display: flex; gap: 12px; }
.failed-reason { font-size: 11px; color: var(--c-danger); font-weight: 600; flex-shrink: 0; }
.security-alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--r-2);
  border: 1px solid color-mix(in srgb, var(--c-danger) 40%, var(--c-border));
  background: color-mix(in srgb, var(--c-danger) 8%, transparent);
  font-size: 13px;
}
.security-alert strong { display: block; margin-bottom: 4px; }
.security-alert p { margin: 0; color: var(--c-text); font-weight: 600; }
.app-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.app-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.app-icon { font-size: 20px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 14px; font-weight: 700; }
.app-permissions { font-size: 12px; color: var(--c-muted); }
.app-connected { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.danger-zone { border-color: color-mix(in srgb, var(--c-danger) 30%, var(--c-border)); }
.danger-zone h3 { color: var(--c-danger); }
.danger-actions { display: flex; flex-direction: column; gap: 12px; }
.danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.danger-info { flex: 1; }
.danger-info strong { font-size: 14px; }
.danger-info p { margin: 4px 0 0; font-size: 12px; color: var(--c-muted); }

/* Payouts Panel */
.panel-payouts { padding: 16px; }
.payout-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-ring);
  border-radius: var(--r-3);
  margin-bottom: 20px;
}
.balance-info .balance-label { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.balance-info .balance-amount { font-size: 28px; font-weight: 900; color: var(--c-text); }
.balance-info .balance-hint { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.pending-payout-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  margin-bottom: 20px;
}
.pending-icon { font-size: 24px; }
.pending-info { flex: 1; }
.pending-title { font-size: 14px; font-weight: 700; }
.pending-amount { font-size: 16px; font-weight: 800; color: var(--c-text); }
.pending-details { font-size: 12px; color: var(--c-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.pending-status {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--c-surface-2);
  border-radius: 999px;
  color: var(--c-warn);
}
.payout-methods { margin-bottom: 20px; }
.payout-methods h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.method-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.method-card.default { border-color: var(--c-ring); background: var(--c-surface-2); }
.method-icon { font-size: 20px; }
.method-info { flex: 1; min-width: 0; }
.method-name { font-size: 14px; font-weight: 700; }
.method-details { font-size: 12px; color: var(--c-muted); }
.default-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  margin-top: 2px;
}
.method-actions { display: flex; gap: 6px; flex-shrink: 0; }
.payout-history { margin-bottom: 20px; }
.payout-history h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.history-table { border: 1px solid var(--c-border); border-radius: var(--r-2); overflow: hidden; }
.table-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--c-surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
}
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  border-top: 1px solid var(--c-border);
}
.payout-settings { margin-bottom: 20px; }
.payout-settings h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }

/* My Neighborhood Panel */
.panel-neighborhood { padding: 16px; }
.neighborhood-card {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  padding: 16px;
  margin-bottom: 20px;
}
.neighborhood-card.primary { border-color: var(--c-ring); }
.hood-header { margin-bottom: 12px; }
.hood-info h3.hood-name { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.hood-location { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.hood-stats { display: flex; gap: 12px; font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.hood-actions { display: flex; gap: 8px; }
.neighborhood-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.neighborhood-section:last-child { border-bottom: none; padding-bottom: 0; }
.neighborhood-section h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.section-hint { font-size: 13px; color: var(--c-muted); font-weight: 600; margin: 0 0 12px; }
.leaders-list { display: flex; flex-direction: column; gap: 8px; }
.leader-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all 0.15s;
}
.leader-item:hover { border-color: var(--c-primary); }
.leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-role { font-size: 12px; color: var(--c-muted); }
.activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.activity-stat {
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  padding: 14px;
  text-align: center;
}
.activity-stat .stat-value { font-size: 20px; font-weight: 900; color: var(--c-text); }
.activity-stat .stat-label { font-size: 11px; color: var(--c-muted); font-weight: 650; }
.top-helpers-list { display: flex; flex-direction: column; gap: 8px; }
.top-helper-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all 0.15s;
}
.top-helper-item:hover { border-color: var(--c-primary); }
.top-helper-item .rank {
  font-size: 16px;
  font-weight: 900;
  color: var(--c-primary);
  min-width: 24px;
  text-align: center;
}
.top-helper-item .helper-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.top-helper-item .helper-avatar img { width: 100%; height: 100%; object-fit: cover; }
.top-helper-item .helper-info { flex: 1; }
.top-helper-item .helper-name { font-size: 14px; font-weight: 700; }
.top-helper-item .helper-jobs { font-size: 12px; color: var(--c-muted); }
.top-helper-item .helper-rating { font-size: 13px; font-weight: 700; color: var(--c-text); flex-shrink: 0; }
.other-hoods-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.other-hood-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.other-hood-name { font-size: 14px; font-weight: 700; }
.other-hood-location { font-size: 12px; color: var(--c-muted); }

/* Transactions Panel */
.panel-transactions { padding: 16px; }
.panel-actions { display: flex; gap: 8px; }
.transaction-filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-group { }
.filter-group select, .filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-glass);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}
.filter-group input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.transaction-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.summary-item {
  padding: 14px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  text-align: center;
}
.summary-label { font-size: 12px; color: var(--c-muted); font-weight: 600; display: block; margin-bottom: 4px; }
.summary-value { font-size: 18px; font-weight: 900; }
.summary-value.positive, .summary-item.positive .summary-value { color: var(--c-success); }
.summary-value.negative, .summary-item.negative .summary-value { color: var(--c-danger); }
.summary-item.net .summary-value { color: var(--c-text); }
.transaction-list.detailed { display: flex; flex-direction: column; gap: 16px; }
.transaction-date-group { }
.date-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.transaction-date-group .transaction-item { margin-bottom: 6px; }
.transaction-meta { font-size: 11px; color: var(--c-muted); display: flex; gap: 8px; margin-top: 2px; }
.transaction-type { text-transform: capitalize; }
.transaction-task { }
.transaction-user { }
.transaction-balance { font-size: 11px; color: var(--c-muted); flex-shrink: 0; text-align: right; }

/* Job History & Task History (shared) */
.panel-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.panel-stats .stat-item { font-size: 12px; font-weight: 700; color: var(--c-muted); }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-border);
  border-radius: var(--r-2);
  transition: transform var(--t-fast, 120ms),
              box-shadow var(--t-med, 220ms),
              border-color var(--t-med, 220ms),
              background var(--t-fast, 120ms);
}
.history-item:has(.task-item-status.completed){ border-left-color: var(--c-lime-deep); }
.history-item:has(.task-item-status.cancelled),
.history-item:has(.task-item-status.expired){ border-left-color: color-mix(in srgb, var(--c-muted) 65%, var(--c-text)); }
.history-item:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)) 50%, var(--c-surface));
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  box-shadow: var(--shadow-1);
}
.history-list .history-item:nth-child(even) {
  background: color-mix(in srgb, var(--c-surface-2) 65%, var(--c-surface));
}
.history-list .history-item:nth-child(even):hover {
  background: color-mix(in srgb, color-mix(in srgb, var(--c-primary) 8%, var(--c-surface)) 50%, var(--c-surface));
}
.history-date { font-size: 12px; color: var(--c-muted); font-weight: 600; flex-shrink: 0; min-width: 80px; }
.history-content { flex: 1; min-width: 0; }
.history-title { font-size: 14px; font-weight: 700; }
.history-meta { display: flex; gap: 8px; font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.history-category {
  padding: 1px 6px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.history-client { font-weight: 600; }
.history-helper { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.history-status { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.history-review { margin-top: 6px; font-size: 12px; }
.review-stars { color: var(--c-primary); font-weight: 700; }
.review-excerpt { color: var(--c-muted); font-style: italic; margin-left: 6px; }
.history-earnings, .history-price { font-size: 14px; font-weight: 800; color: var(--c-success); flex-shrink: 0; }
.history-actions { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 640px) {
  .history-item { flex-wrap: wrap; }
  .history-date { min-width: auto; }
  .history-actions { width: 100%; }
}

/* Saved Helpers Panel */
.helpers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.helper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}
.helper-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--c-border) 55%, var(--c-primary));
  box-shadow: var(--shadow-2);
  background: var(--c-surface);
}
.helper-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}
.helper-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.helper-card-info { text-align: center; width: 100%; }
.helper-card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.helper-card-rating { font-size: 13px; margin-bottom: 4px; }
.helper-card-rating .stars { color: var(--c-primary); font-weight: 700; }
.helper-card-rating .review-count { color: var(--c-muted); font-size: 12px; }
.helper-card-stats { font-size: 12px; color: var(--c-muted); display: flex; justify-content: center; gap: 10px; }
.helper-card-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.skill-more { font-size: 11px; color: var(--c-muted); font-weight: 600; padding: 2px 6px; }
.helper-card-actions { display: flex; gap: 6px; margin-top: auto; }

/* Find Helpers Panel */
.helper-card .helper-meta { display: flex; gap: 8px; font-size: 12px; color: var(--c-muted); flex-wrap: wrap; justify-content: center; }
.helper-card .helper-rating { color: var(--c-text); font-weight: 700; }
.helper-card .helper-jobs { }
.helper-card .helper-rate { font-weight: 700; color: var(--c-text); }
.helper-card .helper-skills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* Announcements Panel */
.announcements-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-card {
  padding: 16px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-3);
  position: relative;
}
.announcement-card.priority-high { border-color: var(--c-warn); }
.announcement-card.priority-urgent { border-color: var(--c-danger); }
.announcement-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.announcement-type { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c-muted); }
.announcement-type .type-label { text-transform: uppercase; }
.announcement-date { font-size: 12px; color: var(--c-muted); }
.announcement-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.announcement-content { font-size: 13px; line-height: 1.6; color: var(--c-text); font-weight: 600; margin-bottom: 10px; }
.announcement-actions { display: flex; gap: 8px; }
.dismiss-btn { position: absolute; top: 12px; right: 12px; }

/* Availability Panel */
.form-section .form-group:has(.toggle-switch) {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--c-surface, #fff);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch:hover .toggle-slider { border-color: var(--c-ring); }
.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 30%, transparent);
}

.status-toggle { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.status-toggle .toggle-option { flex: 1 1 180px; min-width: 140px; }
@media (max-width: 480px) { .status-toggle { flex-direction: column; } }
.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all 0.15s;
}
.toggle-option:hover { border-color: var(--c-primary); }
.toggle-option:has(input:checked) { background: var(--c-surface-2); border-color: var(--c-ring); }
.toggle-option input { width: 16px; height: 16px; accent-color: var(--c-primary); }
.toggle-label { font-size: 14px; font-weight: 700; }
.toggle-label.available { color: var(--c-success); }
.toggle-label.busy { color: var(--c-warn); }
.toggle-label.away { color: var(--c-muted); }
.schedule-grid { display: flex; flex-direction: column; gap: 8px; }
.schedule-day {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.day-label { font-size: 13px; font-weight: 700; min-width: 36px; }
.day-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.day-slots .slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.day-slots .slot:has(input:checked) { background: var(--c-surface-2); border-color: var(--c-ring); }
.day-slots .slot input { width: 14px; height: 14px; accent-color: var(--c-primary); }
.neighborhood-select { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }

/* Privacy Panel - Blocked Users */
.blocked-users { margin-top: 4px; }
.blocked-users > label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.blocked-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--c-surface) 50%, transparent);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2);
}
.blocked-user { display: flex; align-items: center; gap: 10px; }
.blocked-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.blocked-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blocked-name { font-size: 13px; font-weight: 700; }

/* ---------- Subscription tier cards (subscription.html) ---------- */
.sub-card-icon { color: var(--icon-color, var(--c-primary)); }
.sub-card-tagline {
  font-size: 0.85em;
  color: var(--c-muted);
  margin-bottom: 8px;
}
.tier-note-error,
.tier-note-muted {
  font-weight: 600;
  font-size: 0.85em;
  margin-bottom: 8px;
}
.tier-note-error { color: var(--c-danger); }
.tier-note-muted { color: var(--c-muted); }
