/* Customer workspace only. All color and typography roles come from web-theme.css. */
body.toma-customer { margin:0; min-height:100dvh; background:var(--background); color:var(--text-primary); font:var(--type-body); color-scheme:light; }
body.toma-customer.dark-mode { color-scheme:dark; }
.toma-customer * { box-sizing:border-box; }
.toma-customer [hidden] { display:none !important; }
.toma-customer h1 { font:var(--type-heading); margin:0 0 8px; }
.toma-customer h2 { font:var(--type-subheading); margin:0 0 8px; }
.toma-customer h3, .toma-customer h4 { font:var(--type-subheading); margin:0 0 8px; }
.toma-customer p { margin:0 0 12px; }
.toma-customer a { color:var(--link); text-decoration:none; }
.toma-customer button, .toma-customer input, .toma-customer textarea { font:inherit; }
.toma-customer button { cursor:pointer; }
.toma-customer :focus-visible { outline:3px solid var(--link); outline-offset:3px; }
.toma-customer button:disabled { background:var(--disabled-background); color:var(--disabled-text); cursor:not-allowed; }
.toma-customer .nav-header { background:var(--card); border-bottom:1px solid var(--border); }
.toma-customer .customer-header { max-width:1200px; margin:auto; min-height:72px; display:flex; align-items:center; justify-content:space-between; padding:12px 24px; gap:16px; }
.toma-customer .header-actions { display:flex; align-items:center; gap:8px; }
.toma-customer .customer-brand { font:var(--type-heading); letter-spacing:3px; color:var(--text-primary); }
.toma-customer #currentUser { font:var(--type-caption); color:var(--text-secondary); max-width:200px; overflow:hidden; text-overflow:ellipsis; }
.toma-customer .chrome-button, .toma-customer .back-arrow-btn, .toma-customer .lang-switch { min-height:44px; padding:8px 12px; border:1px solid var(--border); border-radius:var(--radius-button); background:var(--card); color:var(--text-primary); }
.toma-customer main { max-width:1200px; margin:auto; padding:32px 24px 64px; display:grid; grid-template-columns:208px minmax(0,1fr); column-gap:32px; align-items:start; }
.toma-customer .customer-intro { grid-column:1/-1; margin-bottom:24px; }
.toma-customer .customer-back { float:inline-end; margin-inline-start:12px; }
.toma-customer .customer-eyebrow { font:var(--type-caption); color:var(--link); margin-bottom:8px; }
.toma-customer .customer-note { color:var(--text-secondary); }
.toma-customer .dashboard-stats { grid-column:2; display:flex; gap:12px; margin-bottom:24px; }
.toma-customer .stat-card { border:1px solid var(--border); background:var(--card); border-radius:var(--radius-card); display:flex; flex:1; align-items:center; gap:12px; padding:16px; text-align:start; min-width:0; color:var(--text-primary); }
.toma-customer .stat-number { font:var(--type-heading); display:block; font-variant-numeric:tabular-nums; }
.toma-customer .stat-label { font:var(--type-caption); color:var(--text-secondary); }
.toma-customer .stat-icon { width:36px; height:36px; border-radius:var(--radius-input); background:var(--brand-tint-1); color:var(--link); display:grid; place-items:center; flex:none; }
.toma-customer svg { width:20px; height:20px; flex:none; }
.toma-customer .customer-navigation { grid-column:1; grid-row:2/4; position:sticky; top:24px; }
.toma-customer .dashboard-tabs { display:flex; flex-direction:column; gap:6px; }
.toma-customer .tab-btn { display:flex; align-items:center; gap:10px; min-height:48px; padding:12px; border:0; border-radius:var(--radius-button); background:var(--transparent); color:var(--text-secondary); font:var(--type-label); text-align:start; }
.toma-customer .tab-btn[aria-selected=true] { color:var(--link); background:var(--brand-tint-1); }
.toma-customer .tab-content { grid-column:2; min-width:0; }
.toma-customer .dash-card, .toma-customer .account-card { background:var(--card); border:1px solid var(--border); padding:20px; border-radius:var(--radius-card); box-shadow:var(--shadow-small); }
.toma-customer .booking-workspace { padding:0; border:0; background:var(--transparent); box-shadow:none; }
.toma-customer .request-filters { display:flex; gap:8px; overflow:auto; padding:4px 3px 14px; margin:16px -3px 4px; scrollbar-width:thin; }
.toma-customer .requester-filter { flex:none; white-space:nowrap; font:var(--type-caption); }
.toma-customer .btn-primary, .toma-customer .btn-secondary { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:10px 16px; border:1px solid var(--border); border-radius:var(--radius-button); background:var(--card); color:var(--link); font:var(--type-label); }
.toma-customer .btn-primary, .toma-customer .requester-filter.active { background:var(--primary); color:var(--on-primary); border-color:var(--primary); }
.toma-customer .btn-danger { background:var(--error-background); color:var(--error); }
.toma-customer #requestsList, .toma-customer #notificationsList { display:grid; gap:12px; }
.toma-customer .request-card { padding:0; overflow:hidden; }
.toma-customer .request-summary { padding:20px; }
.toma-customer .request-topline, .toma-customer .request-footer, .toma-customer .sheet-header, .toma-customer .notification-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.toma-customer .request-topline { margin-bottom:16px; align-items:start; }
.toma-customer .request-id { color:var(--text-muted); font:var(--type-caption); font-variant-numeric:tabular-nums; }
.toma-customer .request-provider { font:var(--type-subheading); margin-bottom:6px; overflow-wrap:anywhere; }
.toma-customer .request-meta { color:var(--text-secondary); font:var(--type-caption); margin-bottom:16px; }
.toma-customer .request-footer { padding-top:14px; border-top:1px solid var(--border); }
.toma-customer .request-price { color:var(--link); font:var(--type-subheading); }
.toma-customer .status-badge { display:inline-flex; align-items:center; padding:5px 10px; border-radius:var(--radius-badge); font:var(--type-caption); background:var(--warning-background); color:var(--warning); }
.toma-customer .status-approved, .toma-customer .status-completed { background:var(--success-background); color:var(--success); }
.toma-customer .status-in_progress, .toma-customer .status-pending_approval { background:var(--info-background); color:var(--info); }
.toma-customer .status-cancelled { background:var(--error-background); color:var(--error); }
.toma-customer .negotiation-badge { color:var(--info); font:var(--type-caption); margin-bottom:8px; }
.toma-customer .request-detail, .toma-customer #reviewModal { position:fixed; inset:0; z-index:1000; background:var(--scrim); display:flex; align-items:center; justify-content:center; padding:24px; }
.toma-customer .detail-sheet, .toma-customer #reviewModal > div { background:var(--card); color:var(--text-primary); border:1px solid var(--border); border-radius:var(--radius-card); max-width:680px; width:100%; max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; }
.toma-customer .sheet-header { position:sticky; top:0; z-index:1; background:var(--card); border-bottom:1px solid var(--border); padding:16px 20px; }
.toma-customer .sheet-header h2 { margin:0; }
.toma-customer .sheet-body { padding:20px; overflow-wrap:anywhere; }
.toma-customer .detail-block { padding:16px; border:1px solid var(--border); border-radius:var(--radius-input); margin:12px 0; background:var(--elevated); }
.toma-customer .detail-label { color:var(--text-secondary); font:var(--type-caption); margin-bottom:6px; }
.toma-customer .detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.toma-customer .detail-actions > * { flex:1; }
.toma-customer .detail-notice { background:var(--warning-background); color:var(--warning); padding:16px; border-radius:var(--radius-input); margin-top:16px; }
.toma-customer .booking-attachments { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.toma-customer .booking-attachments a { padding:10px 12px; background:var(--info-background); color:var(--info); border-radius:var(--radius-input); }
.toma-customer .empty-state { padding:40px 20px; text-align:center; border:1px dashed var(--border); border-radius:var(--radius-card); color:var(--text-secondary); grid-column:1/-1; }
.toma-customer .empty-state h3 { color:var(--text-primary); margin:12px 0 8px; }
.toma-customer .error-state { color:var(--error); background:var(--error-background); border-radius:var(--radius-card); padding:20px; grid-column:1/-1; }
.toma-customer .skeleton { height:110px; border-radius:var(--radius-card); background:var(--subdued); margin:12px 0; }
.toma-customer #favoritesList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.toma-customer .favorite-cover { width:100%; height:150px; object-fit:cover; border-radius:var(--radius-input); margin-bottom:16px; }
.toma-customer .notification-item { display:flex; gap:12px; align-items:start; padding:16px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--card); overflow-wrap:anywhere; }
.toma-customer .notification-item.unread { border-inline-start:3px solid var(--link); background:var(--brand-tint-1); }
.toma-customer .notification-mark { color:var(--link); background:var(--transparent); border:0; min-height:44px; font:var(--type-caption); }
.toma-customer .notification-badge { min-width:20px; border-radius:var(--radius-full); background:var(--primary); color:var(--on-primary); padding:1px 5px; text-align:center; font:var(--type-caption); }
.toma-customer .account-card { margin-bottom:20px; }
.toma-customer label { display:block; margin:16px 0 8px; font:var(--type-label); }
.toma-customer input, .toma-customer textarea { width:100%; min-height:48px; padding:12px; border:1px solid var(--input-border); border-radius:var(--radius-input); background:var(--input); color:var(--text-primary); }
.toma-customer input:disabled { background:var(--disabled-background); color:var(--disabled-text); }
.toma-customer small { color:var(--text-secondary); display:block; margin:8px 0 20px; }
.toma-customer #updateNameMessage, .toma-customer #reviewMessage { padding:12px; border-radius:var(--radius-input); }
.toma-customer .star, .toma-customer [class^=star-] { display:inline-flex; min-width:44px; min-height:44px; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:var(--radius-input); background:var(--card); font:var(--type-subheading); }
.toma-customer #reviewModal > div { padding:24px; }
.toma-customer .customer-footer-link { display:block; margin-top:24px; padding:12px; font:var(--type-caption); }
@media(max-width:767px) {
  .toma-customer .customer-header { padding:10px 16px; min-height:64px; }
  .toma-customer .customer-brand { font:var(--type-subheading); }
  .toma-customer #currentUser { display:none; }
  .toma-customer .header-actions { gap:4px; }
  .toma-customer .header-actions button { padding:8px; font:var(--type-caption); }
  .toma-customer main { display:block; padding:24px 16px calc(104px + env(safe-area-inset-bottom)); }
  .toma-customer .dashboard-stats { gap:8px; margin-bottom:28px; }
  .toma-customer[data-customer-tab]:not([data-customer-tab="requests"]) .dashboard-stats { display:none; }
  .toma-customer .stat-card { display:block; padding:12px 8px; }
  .toma-customer .stat-icon { display:none; }
  .toma-customer .stat-number { font:var(--type-subheading); }
  .toma-customer .stat-label { font:var(--type-caption); }
  .toma-customer .customer-navigation { position:fixed; inset:auto 0 0; z-index:40; background:var(--card); border-top:1px solid var(--border); padding:6px 8px max(6px,env(safe-area-inset-bottom)); }
  .toma-customer .dashboard-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; }
  .toma-customer .tab-btn { flex-direction:column; gap:4px; min-height:60px; padding:6px 2px; font:var(--type-caption); position:relative; }
  .toma-customer .notification-badge { position:absolute; top:1px; inset-inline-end:4px; }
  .toma-customer .customer-footer-link { display:none; }
  .toma-customer .request-summary { padding:16px; }
  .toma-customer .request-detail { padding:0; align-items:stretch; }
  .toma-customer .detail-sheet { max-height:100dvh; max-width:none; border-radius:0; padding-bottom:env(safe-area-inset-bottom); }
  .toma-customer .sheet-header { padding:12px 16px; }
  .toma-customer .sheet-body { padding:20px 16px 32px; }
  .toma-customer #reviewModal { padding:12px; }
  .toma-customer #reviewModal > div { padding:20px 16px; max-height:calc(100dvh - 24px); }
  .toma-customer #favoritesList { grid-template-columns:minmax(0,1fr); }
  .toma-customer .notification-heading { align-items:start; flex-direction:column; margin-bottom:20px; }
  .toma-customer .notification-item { flex-wrap:wrap; }
}
